5 usbfatboot and usbext2boot, Usbfatboot and usbext2boot – Artesyn COMX-P40x0 ENP2 Installation and Use (January 2015) User Manual
Page 133

BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95C)
133
The following are the examples of critical environment variables:
7.23.5 USBFATboot and USBEXT2boot
The COMX-P40x0 ENP2 has a U-Boot variable called "usbfatboot".
setenv bootargs root=/dev/$usbbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs $othbootargs;usb
start;fatload usb 0:1 $loadaddr /boot/$bootfile;fatload usb 0:1
$fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr
The COMX-P40x0 ENP2 has a U-Boot variable called "usbext2boot".
setenv bootargs root=/dev/$usbbdev rw rootdelay=30
console=$consoledev,$baudrate $hwbootargs $othbootargs;usb
start;ext2load usb 0:2 $loadaddr /boot/$bootfile;ext2load usb 0:2
$fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr
The "usbfatboot" will load Linux kernel and DTB from the FAT partition (1st partition) on USB
stick into RAM and then boot. EXT2 partition (2nd partition) will be mounted on the USB stick
as rootfs.
The "usbext2boot" will load Linux kernel and DTB from the EXT2 partition (2nd partition) on
USB stick into RAM and then boot. Mounting it on the same partition on this USB stick will boot
as rootfs
The following are the critical environment variables for "usbfatboot" and "usbext2bot":
=> setenv ethact FM1@DTSEC1
=> setenv netdev eth0
=> setenv bootfile comx_p4080/COMX_P4080_V100R00/uImage
=> setenv fdtfile comx_p4080/COMX_P4080_V100R00/comx.dtb
=> setenv rootpath /tftpboot/comx_p4080/rootfs_nfs
bootfile
-
Linux kernel file name
fdtfile
-
DTB file name