BackupSuite
Re: BackupSuite #261
Posted 22 April 2014 - 14:49
Please rename the file to kernel_cfe_auto.bin and put it into backup folder and flash that backup. Does it now works?
Can you log the flash/boot process with null modem cable?
Re: BackupSuite #262
Re: BackupSuite #263
Re: BackupSuite #264
Posted 22 April 2014 - 16:16
The size of the kernel looks too small, it should be, as I'm not mistaken, 4194304 bytes (4096KB, 4MB) and yours is, according to the log you placed (http://openpli.org/f...attach_id=58273 ), 4063232 bytes (3968 KB).
So why this is I haven't a clue?
Is there really no solo user who can confirm or deny if the back-ups work?
Re: BackupSuite #265
Posted 22 April 2014 - 17:11
How big is the kernel shipped by OpenPli?
Re: BackupSuite #266
Re: BackupSuite #267
Posted 22 April 2014 - 18:38
@scottyboyz
can you execute this command and report the exact number of bytes of the file and the output of the command (if it differs from the previous one)
/usr/sbin/nanddump --bb=dumpbad /dev/mtd1 > /tmp/vmlinux.gz
It should make no difference because no bad blocks were reported, but you'll never know
Re: BackupSuite #268
Posted 22 April 2014 - 19:47
The size of the kernel is at the moment 3,530,628.
Is there an easy way to check if there is a bad block and if so mark it as bad?
I heard that writing to that block should mark it as bad.
But it's still strange. If the kernel is only 3,530,628 big and only 1 eraseblock is missing in the dump file and the kerneldump is not usable, then it seems that the 1 missing eraseblock contains kernel data. And the bootloader can read this data(as the box normally boots) and nanddump not. How can that be??
Edited by betacentauri, 22 April 2014 - 19:48.
Re: BackupSuite #269
Re: BackupSuite #270
Posted 22 April 2014 - 22:06
Well, maybe you should stop using a nanddump binary from Stoneage (version 1.29) and switch to the latest version of mtd-utils (dflash uses 1.50)
And a recent nanddum would offer skipbad:
nanddump --bb=skipbad --omitoob --quiet /dev/mtdX > kernel_cfe_auto.bin
If you use a kernel in a raw mtd device, then the bootloader is clever enough to skip blocks marked bad and recent nanddump does this also nicely. You are omitting it and then your extract runs short in exactly this length.
At least nobody so far complained when doing backups in BA with the above command.
And nand_check binary in dFlash for checking for bad blocks is non-toxic :-)
Edited by gutemine, 22 April 2014 - 22:10.
Re: BackupSuite #271
Posted 22 April 2014 - 22:47
I had a similar strange case some months ago: In this case the kernel partition had 1 bad eraseblock. The kernel was quite big, so that it didn't fit in the kernel partition with the 1 bad eraseblock. But the box was booting without problems and the via nanddump generated kernel dump didn't work. If somebody is interested and can understand German, here is the thread:
http://www.opena.tv/...ei-ImageBackup-(Komplett-Backup)&p=22847&viewfull=1#post22847
Link don't work properly. The interesting part starts at post 36
Edited by betacentauri, 22 April 2014 - 22:49.
Re: BackupSuite #272
Re: BackupSuite #273
Posted 23 April 2014 - 05:58
The version in Openpli is 1.50, at least on my Solo2.
The parameters as mentioned by you are already the default values as I read the helptext
root@vusolo2:~# /usr/sbin/nanddump --help Usage: nanddump [OPTIONS] MTD-device Dumps the contents of a nand mtd partition. --help Display this help and exit --version Output version information and exit --bb=METHOD Choose bad block handling method (see below). -a --forcebinary Force printing of binary data to tty -c --canonicalprint Print canonical Hex+ASCII dump -f file --file=file Dump to file -l length --length=length Length -n --noecc Read without error correction --omitoob Omit OOB data (default) -o --oob Dump OOB data -p --prettyprint Print nice (hexdump) -q --quiet Don't display progress and status messages -s addr --startaddress=addr Start address --bb=METHOD, where METHOD can be `padbad', `dumpbad', or `skipbad': padbad: dump flash data, substituting 0xFF for any bad blocks dumpbad: dump flash data, including any bad blocks skipbad: dump good data, completely skipping any bad blocks (default)
root@vusolo2:~# /usr/sbin/nanddump --version nanddump 1.5.0 nanddump comes with NO WARRANTY to the extent permitted by law. You may redistribute copies of nanddump under the terms of the GNU General Public Licence. See the file `COPYING' for more information.
As you can see in my plugin I'm no coder/programmer whatsoever, so for a good laugh on your side take a look at the code ,
But I'm trying to make something which can benefit some people.
But when skipbad is the default why is it still running short and is there no report of finding bad blocks?
Re: BackupSuite #274
Posted 23 April 2014 - 06:03
I'm quite sure, that OpenPli uses a newer version, but I cannot verify it, because sourceforge is down.
I had a similar strange case some months ago: In this case the kernel partition had 1 bad eraseblock. The kernel was quite big, so that it didn't fit in the kernel partition with the 1 bad eraseblock. But the box was booting without problems and the via nanddump generated kernel dump didn't work. If somebody is interested and can understand German, here is the thread:
http://www.opena.tv/...ei-ImageBackup-(Komplett-Backup)&p=22847&viewfull=1#post22847
Link don't work properly. The interesting part starts at post 36.
Will read this tonight after work.
@scottyboyz
Please execute the command in post 267
Re: BackupSuite #275
Re: BackupSuite #276
Re: BackupSuite #277
Re: BackupSuite #278
Re: BackupSuite #279
Re: BackupSuite #280
Posted 24 April 2014 - 15:11
Did you try to restore your image with replacing the kernel_cfe_auto.bin with the biggest vmlinux.gz.
So rename your vmlinux.gz (the big one) to kernel_cfe_auto.bin and copy this to your corrupt back-up and try to restore it.
I don't see any means to help you, fact is probably that there is a badblock and that's interfering with the restore.
Anybody an educated guess how to go further?
1 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
-
Bing (1)