samsung qt210

uboot-----------kernel-----------rootfs.cramfs

uboot's address form 0.....


eg:

[    0.675000] 0x0000000c0000-0x000000100000 : "misc"
[    0.680000] 0x000000100000-0x000000600000 : "recovery"
[    0.685000] 0x000000600000-0x000000b00000 : "kernel"
[    0.690000] 0x000000b00000-0x000000e00000 : "ramdisk"
[    0.695000] 0x000000e00000-0x000007c00000 : "system"  => e00000  
[    0.720000] 0x000007c00000-0x00000cc00000 : "cache"
[    0.735000] 0x00000cc00000-0x000010000000 : "userdata"

1.)read to memory

fatload mmc 0:1 c0008000 rootfs.cramfs

2.)erase flash

nand erase e00000 6e00000

3.)Rewrite

nand write c0008000 e00000 6e00000

(pls remember write block size)

...............

then:

setenv bootcmd 'nand read C0008000 600000 400000; bootm C0008000'

setenv bootargs 'console=ttySAC0,115200 mem=512M root=/dev/mtdblock4 init=/linuxrc'

你可能感兴趣的:(c,cache,System,qt)