version 1.1.2.6, 2014/01/23 23:06:49
|
version 1.2, 2014/09/15 19:06:41
|
Line 8 u-boot 8MB nand map::
|
Line 8 u-boot 8MB nand map::
|
0x007E0000 - 0x007F0000 cfg (64KB == 65536) // +0x10000 |
0x007E0000 - 0x007F0000 cfg (64KB == 65536) // +0x10000 |
0x007F0000 - 0x00800000 ART (64KB == 65536) // +0x10000 |
0x007F0000 - 0x00800000 ART (64KB == 65536) // +0x10000 |
|
|
|
Helper nand map for easy updates :) |
|
* 0x00050000 - 0x007E0000 firmware (7929856) // +0x790000 |
|
|
|
|
u-boot environment:: |
u-boot environment:: |
mtdids=nor0=ar7240-nor0 |
mtdids=nor0=ar7240-nor0 |
mtddevnum=0 |
mtddevnum=0 |
Line 25 device nor0 <ar7240-nor0>, # parts = 6
|
Line 29 device nor0 <ar7240-nor0>, # parts = 6
|
5: ART 0x00010000 0x007f0000 0 |
5: ART 0x00010000 0x007f0000 0 |
active partition: nor0,0 - (u-boot) 0x00040000 @ 0x00000000 |
active partition: nor0,0 - (u-boot) 0x00040000 @ 0x00000000 |
|
|
|
u-boot make mtdparts on NAND:: |
|
mtd default |
|
|
Helper nand map for easy updates :) | mtd del nor0,5 |
* 0x00050000 - 0x007E0000 firmware (7929856) // +0x790000 | mtd del nor0,4 |
| mtd del nor0,3 |
| mtd del nor0,2 |
|
|
|
mtd add nor0 0x600000 rootfs |
|
mtd add nor0 0x190000 uImage |
|
mtd add nor0 0x10000 cfg |
|
mtd add nor0 0x10000 ART |
|
|
|
save |
|
|
|
|
1. update kernel |
1. update kernel |
tftp 0x81000000 kernel.lzma.uImage |
tftp 0x81000000 kernel.lzma.uImage |
era 0x9F650000 +0x190000 |
era 0x9F650000 +0x190000 |
Line 39 tftp 0x80100000 rootfs.ulzma
|
Line 55 tftp 0x80100000 rootfs.ulzma
|
era 0x9F050000 +0x600000 |
era 0x9F050000 +0x600000 |
cp.b 0x80100000 0x9F050000 0x600000 |
cp.b 0x80100000 0x9F050000 0x600000 |
|
|
3. update cfg | 3. update entire firmware image |
tftp 0x80100000 cfg.dsk | tftp 0x80100000 elwix_firmware.bin |
era 0x9f7E0000 +0x10000 | era 0x9F050000 +0x790000 |
cp.b 0x80100000 0x9f7e0000 0x10000 | cp.b 0x80100000 0x9F050000 0x790000 |
| |
| 4. update entire firmware image + vendor specific config |
| tftp 0x80100000 elwix_firmware_vendor.bin |
| era 0x9F050000 +0x7A0000 |
| cp.b 0x80100000 0x9F050000 0x7A0000 |