Linux Android tftp
1.fastboot-burn.bin: spi
sf probe 0
mw.b 0x81000000 ff 0x70000
tftp 0x81000000 fastboot-burn.bin
sf erase 0x0 0x70000
sf write 0x81000000 0x0 0x70000
2.bootargs-DDR-512MB.bin: spi
sf probe 0
mw.b 0x81000000 ff 0x10000
tftp 0x81000000 bootargs-DDR-512MB.bin
sf erase 0x70000 0x10000
sf write 0x81000000 0x70000 0x10000
3.base.img: nand
mw.b 82000000 ff 600000
tftp 82000000 base.img
nand erase 0x0 600000
nand write 82000000 0 600000
4.logo.img: nand
mw.b 82000000 ff 200000
tftp 82000000 logo.img
nand erase 600000 200000
nand write 82000000 600000 200000
5.kernel: nand
mw.b 82000000 ff A00000 #alloc mem:addr,len
tftp 82000000 kernel #get kernel to addr
nand erase 4000000 A00000 #erase nand:addr,len
nand write 82000000 4000000 A00000 #write mem->nand
6.system: nand
mw.b 82000000 ff A400000
tftp 82000000 system.yaffs2_8k4b
nand erase 4A00000 A400000
nand write.yaffs 82000000 4A00000 REAL_SIZE
7.userdata: nand
mw.b 82000000 ff 1000000
tftp 82000000 userdata.yaffs2_8k4b
nand erase EE00000 1000000
nand write.yaffs 82000000 EE00000 REAL_SIZE
8.NOTE:
1K = 0x400, 1M = 0x100000
CMD: sf probe 0 \
sf erase: will erase all spi!
nand erase: will erase all nand!
nand erase 4A00000 B400000: erase sys usr!
[Above addr and len reference Patation DemoVerb]
sf probe 0
mw.b 0x81000000 ff 0x70000
tftp 0x81000000 fastboot-burn.bin
sf erase 0x0 0x70000
sf write 0x81000000 0x0 0x70000
2.bootargs-DDR-512MB.bin: spi
sf probe 0
mw.b 0x81000000 ff 0x10000
tftp 0x81000000 bootargs-DDR-512MB.bin
sf erase 0x70000 0x10000
sf write 0x81000000 0x70000 0x10000
3.base.img: nand
mw.b 82000000 ff 600000
tftp 82000000 base.img
nand erase 0x0 600000
nand write 82000000 0 600000
4.logo.img: nand
mw.b 82000000 ff 200000
tftp 82000000 logo.img
nand erase 600000 200000
nand write 82000000 600000 200000
5.kernel: nand
mw.b 82000000 ff A00000 #alloc mem:addr,len
tftp 82000000 kernel #get kernel to addr
nand erase 4000000 A00000 #erase nand:addr,len
nand write 82000000 4000000 A00000 #write mem->nand
6.system: nand
mw.b 82000000 ff A400000
tftp 82000000 system.yaffs2_8k4b
nand erase 4A00000 A400000
nand write.yaffs 82000000 4A00000 REAL_SIZE
7.userdata: nand
mw.b 82000000 ff 1000000
tftp 82000000 userdata.yaffs2_8k4b
nand erase EE00000 1000000
nand write.yaffs 82000000 EE00000 REAL_SIZE
8.NOTE:
1K = 0x400, 1M = 0x100000
CMD: sf probe 0 \
sf erase: will erase all spi!
nand erase: will erase all nand!
nand erase 4A00000 B400000: erase sys usr!
[Above addr and len reference Patation DemoVerb]
Комментарии
Отправить комментарий