beautypg.com

5 usbfatboot and usbext2boot, Bsp operations – Artesyn COMX-P4080 Installation and Use (August 2014) User Manual

Page 116

background image

BSP Operations

COMX-P4080 COM Express Module Installation and Use (6806800L20C)

116

setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath

ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off

console=$consoledev,$baudrate $hwbootargs $othbootargs;tftp

$loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr -

$fdtaddr

The "nfsboot" will load Linux kernel and DTB into RAM via network by TFTP and then boot. NFS
will then mount on the remote server as rootfs.

The following are the critical environment variables for "nfsboot".

Below are examples of critical environment variables.

7.19.5 USBFATboot and USBEXT2boot

COMX-P4080 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

COMX-P4080 has a U-Boot variable called "usbext2boot".

ethact

-

Active ethernet port

netdev

-

The NFS mounting network port

bootfile

-

Linux kernel file name on TFTP server

fdtfile

DTB file name on TFTP server

rootpath

The NFS path the remote server exports

=> 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