6 mmcfatboot and mmcext2boot, Mmcfatboot and mmcext2boot – Artesyn COMX-P40x0 ENP2 Installation and Use (January 2015) User Manual
Page 134

BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95C)
134
The following are the examples of critical environment variables:
Users need to create two partitions on the USB stick. FAT32 is the first partition and the EXT2
is the second partition. Both partitions contain a directory /boot/ and the directory has kernel
DTB files. EXT2 partition contains the rootfs which can be from rootfs_nfs.tar.gz
7.23.6 MMCFATboot and MMCEXT2boot
The COMX-P40x0 ENP2 has a U-Boot variable called "mmcfatboot".
setenv bootargs root=/dev/$mmcbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs
$othbootargs;mmcinfo;fatload mmc 0:1 $loadaddr
/boot/$bootfile;fatload mmc 0:1 $fdtaddr /boot/$fdtfile;bootm
$loadaddr - $fdtaddr
The COMX-P40x0 ENP2 also has a U-Boot variable called "mmcext2boot".
setenv bootargs root=/dev/$mmcbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs
$othbootargs;mmcinfo;ext2load mmc 0:2 $loadaddr
/boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm
$loadaddr - $fdtaddr
The "mmcfatboot" will load Linux kernel and DTB from the FAT partition (1st partition) on
MMC/SDHC card into RAM and then boot. EXT2 partition (2nd partition) will mount on this
card as rootfs.
"mmcext2boot" will load Linux kernel and DTB from the EXT2 partition (2nd partition) on
MMC/SDHC card into RAM and then boot. The same partition will mount on this card as rootfs.
The following are the critical environment variables for "mmcfatboot" and "mmcext2boot":
=> setenv bootfile COMX_P4080_V100R00/uImage
=> setenv fdtfile COMX_P4080_V100R00/comx.dtb
bootfile
-
Linux kernel file name
fdtfile
-
DTB file name