Day: February 15, 2013

Reflashing VStarcam H6837WI partitions with backup of original MTD partitions

This is how camera partition is defined:

[ 0.870000] Creating 5 MTD partitions on "NOR flash on ipcam":
[ 0.870000] 0x000000000000-0x000000030000 : "ARMboot"
[ 0.880000] 0x000000030000-0x0000001a0000 : "Kernel"
[ 0.890000] 0x0000001a0000-0x0000005a0000 : "RootFS"
[ 0.900000] 0x0000005a0000-0x0000007f0000 : "IpcamFS"
[ 0.910000] 0x0000007f0000-0x000000800000 : "param"

Flashing Kernel:

object$ loady
object$ erase 0x10030000 0x1019FFFF
object$ cp.b 0x50C07FC0 0x10030000 0x170000

Flashing RootFS:

object$ erase 0x101A0000 0x1059FFFF
object$ loady
object$ cp.b 0x50C07FC0 0x101A0000 0x200000
object$ loady
object$ cp.b 0x50C07FC0 0x103A0000 0x200000

Flashing IpcamFS:

object$ loady
object$ erase 0x105A0000 0x107EFFFF
object$ cp.b 0x50C07FC0 0x105A0000 0x250000

Flashing param:

object$ loady
object$ protect off 1:134 
object$ erase 0x107F0000 0x107FFFFF
object$ cp.b 0x50C07FC0 0x107F0000 0x10000
object$ protect on 1:134 

Update: NickE suggested me to change loady offset to transfer big files (RootFS) : “if you change the loady offset to 0x5100000 rather than the default, it will transfer larger files. The largest I have done is just slightly less than 4mb (mtdblock3).” :

$ loady 0x5100000
$ cp.b 0x05100000 0x101A0000 0x00400000