...
This will generate SPL and u-boot.img to be used when booting from eMMC. To target other boot media, set one of the following options in configs/mx6cuboxi_defconfig or through menuconfig:
eMMC data partition (default)
Code Block CONFIG_SPL_BOOT_DEVICE_MMC=y
eMMC boot0 partition
Code Block CONFIG_SYS_MMC_ENV_PART=1
eMMC boot1 partition
Code Block CONFIG_SYS_MMC_ENV_PART=2
SD-Card
Code Block CONFIG_SPL_BOOT_DEVICE_SDHC=y
mSATA SSD
Code Block CONFIG_SPL_BOOT_DEVICE_SATA=y CONFIG_SCSI_AHCI=y CONFIG_SPL_SATA_RAW_U_BOOT_USE_SECTOR=y CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR=0x8a CONFIG_ENV_IS_NOWHERE=y
SPI
Code Block CONFIG_SPL_BOOT_DEVICE_SPI_FLASH=y
Note: The resulting binaries are SPL
and u-boot.img
.
eMMC Tips
Size matters: The production line burns the image to emmc. the process runs at 5.6 MB/sec, which means that burning 8GB image of which 80% is free space is very wasteful. The best way to optimize for production is to create a single partition (as small as possible to contain all the data), and a “firstboot” script that will complete the image creation.
...