beautypg.com

2 norboot, 3 nandboot, 2 norboot 7.23.3 nandboot – Artesyn COMX-P40x0 ENP2 Installation and Use (January 2015) User Manual

Page 131: Norboot, Nandboot

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95C)

131

The following are the examples of critical environment variables:

7.23.2 NORboot

The COMX-P40x0 ENP2 has a U-Boot variable called "norboot"

setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate

$hwbootargs $othbootargs;bootm $norbootaddr $norfsaddr $norfdtaddr

"norboot" will load RAMDISK, Linux kernel and DTB from NOR Flash into RAM then boot.

The following are the critical environment variables for "norboot":

The following are the examples of critical environment variables:

7.23.3 NANDboot

The COMX-P40x0 ENP2 has a U-Boot variable called "nandboot".

nandboot=setenv bootargs root=/dev/$jffs2nand rw

console=$consoledev,$baudrate rootfstype=jffs2 $hwbootargs

$othbootargs;bootm $norbootaddr - $norfdtaddr

=> setenv ethact FM1@DTSEC1

=> setenv ramdiskfile comx_p4080/COMX_P4080_V100R00/rootfs_ext2.img

=> setenv bootfile comx_p4080/COMX_P4080_V100R00/uImage

=> setenv fdtfile comx_p4080/COMX_P4080_V100R00/comx.dtb

norfsaddr

-

RAMDISK address on NOR FLASH

norbootaddr

-

Linux kernel address on NOR FLASH

norfdtaddr

-

DTB address on NOR FLASH

=> setenv norfsaddr E9000000

=> setenv norbootaddr EE000000

=> setenv norfdtaddr EFD00000