2011年1月14日 星期五

Program image to flash

* 0x00000000-0x00080000 : "X-Loader"
* 0x00080000-0x00260000 : "U-Boot"
* 0x00260000-0x00280000 : "U-Boot environment data"
* 0x00280000-0x00680000 : "Kernel"
* 0x00680000-0x08000000 : "File system" for 128MB
* 0x00680000-0x10000000 : "File system" for 256MB


mmc init
fatload mmc 0:1 80000000 MLO
nandecc hw
nand erase 0 80000
nand write.i 80000000 0 80000

mmc init
fatload mmc 0:1 80000000 u-boot.bin
nandecc sw
nand erase 80000 160000
nand write.i 80000000 80000 160000

mmc init
fatload mmc 0:1 80000000 uImage
nandecc sw
nand erase 280000 400000
nand write.i 80000000 280000 400000

// for 128M flash
mmc init
fatload mmc 0:1 84000000 rootfs.jffs2
nandecc sw
nand erase 680000 7980000
nand write.i 84000000 680000 D40000



// for 256M flash
mmc init
fatload mmc 0:1 84000000 rootfs.jffs2
nandecc sw
nand erase 680000 F980000
nand write.i 84000000 680000 D40000


沒有留言: