My problem is the following :
I have successfully built an image using Buildroot ( u-boot.imx at offset 0x400 + vfat partition containing the kernel and a .dtb + ext2 partition containing the file system ) then flashed the image to an SDCard using dd. So far everything work as expected : i have set the i.MX6Q boot mode to internal and the appropriate GPIO to select the boot device - that is the SdCard slot. U-Boot runs and load the kernel as expected.
Now, as my BSP is ready, i would like the flash it to the eMMC and this is what i have tried, unsuccessfully :
Is this related to the CRC32 protection of the u-boot environment variables or something else ?
Is there a better way to achieve this ?
Thank you.
Hi, gregoryciapa
In order to flash an eMMC from SDCard, kindly follow the below steps:
Hope this will help you.
Regards,
Shivani
Hello Gregoryciapa,
The bootloader has some differences depending on where it will be stored. If you are booting from an eMMC you would need to setup the BSP to build the bootloader for the eMMC. (The kernel and root file system remain unchanged)
You would need to add the following line to the conf/local.conf file on the build directory:
UBOOT_CONFIG = "emmc"
And then build using:
$ MACHINE=<machine name> bitbake -c deploy u-boot-imx
You can find more details of this on the i.MX Yocto Project User’s Guide inside of the Linux BSP documentation bundle.
I hope this helps!
Regards,