Rob1n
|
2011-01-28
, 16:59
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#561
|
|
2011-01-28
, 17:27
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#562
|
|
2011-01-28
, 17:38
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#563
|
|
2011-01-28
, 21:00
|
Posts: 284 |
Thanked: 320 times |
Joined on May 2010
@ Peterborough, UK
|
#564
|
Yes, I believe that flasher doesn't like the ubinized file when it's compressed with zlib. However nandwrite isn't as fussy and just happily, well, writes the data to the mtd5 block - the reason that flash_eraseall is needed is so that the ubi controller doesn't get in a tizzy and fail to mount the device once attached.
I'll test later (to simulated NAND) if it's possible to use nandwrite with the file created via mkfs.ubifs, i.e. prior to ubinizing, if ubiupdatevol is called first. It probably won't work, but worth a try anyway.
ubirmvol /dev/ubi0 -N rootfs ubimkvol /dev/ubi0 -N rootfs -S 1986 ubiupdatevol /dev/ubi0_0 /home/user/MyDocs/systemBackups/rootfs.ubi.img
|
2011-01-29
, 00:14
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#565
|
|
2011-01-29
, 07:48
|
Posts: 284 |
Thanked: 320 times |
Joined on May 2010
@ Peterborough, UK
|
#566
|
|
2011-01-29
, 11:31
|
|
Posts: 2,050 |
Thanked: 1,425 times |
Joined on Dec 2009
@ Bucharest
|
#567
|
|
2011-01-29
, 12:10
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#568
|
Well, only the lzo-compressed, ubinized version would be flashable. However, there are two benefits to using ubiupdatevol with the pre-ubinized version (or flash_eraseall/nandwrite if you prefer, as this would work with flashable images also), rather than the tarred file: namely, the backup would take up less space in MyDocs, which is good if you want to have several; and it gives back space on the rootfs partition (in my tests, the space before was 56MiB and afterwards 83MiB - a difference of slightly more than 10% of the total amount available).
|
2011-01-29
, 16:05
|
|
Posts: 433 |
Thanked: 312 times |
Joined on Nov 2009
@ U.K
|
#569
|
Tags |
backup, backupmenu, cssusupplement, max(useful), rescue-console, restore, system |
|