Dear NXP Community,
I have set up a Yocto build system and successfully generated the Yocto images (bootloader, rootfs, etc.) for our custom carrier board based on the i.MX6Q SoC.
Currently, the board is booting from a USB drive (partitioned with boot and rootfs). The boot partition contains the following files:
boot.scr
imx6q-apalis-eval.dtb
overlays/
overlays.txt
zImage
Now, I would like to completely avoid using the USB drive and instead boot the system directly from the internal flash or eMMC.
Could you please guide me with the required steps or commands to achieve this?
Thanks in advance for your support.
Best regards,
Raj
Hello,
Yes you can boot from eMMC, you must first prepare the eMMC by flashing an operating system image to it, typically using the dd
command in Linux . After flashing, the processor's hardware must be configured to select the eMMC as the boot source, often through low-level boot registers or by setting a hardware boot mode. Accessing the uboot promp is a common method to both prepare the eMMC from a secondary source and to configure the eMMC boot environment before the kernel loads.
fatload
to read the image and mmc write
to write it to the eMMC.
dd
(from a running Linux system): dd
command to write the desired operating system image file directly to the eMMC device (e.g., /dev/mmcblk0
). sysfs
(within Linux):
sysfs
interface.
/sys/devices/platform/sdhci-esdhc-imx.2/mmc_host/mmc0/mmc0:0001
, and modify the boot_partition
or other relevant settings in boot_info
.
Regards