beautypg.com

3 nandboot, Chapter 7, nandboot – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual

Page 121

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95B)

121

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

The following are examples of critical environment variables.

7.23.3 NANDboot

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

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

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

$othbootargs;bootm $norbootaddr - $norfdtaddr

The "nandboot" will load Linux kernel and DTB from NOR flash into RAM and then boot. JFFS2
will then mount on the file system on NAND flash as rootfs.

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

Below are examples of critical environment variables:

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

jffs2nand

-

MTD device for JFFS2 rootfs on NAND FLASH

norbootaddr

-

Linux kernel address on NOR FLASH

norfdtaddr

-

DTB address on NOR FLASH

=> setenv jffs2nand mtdblock7

=> setenv norbootaddr EE000000

=> setenv norfdtaddr EFD00000