Notices


Reply
Thread Tools
Posts: 284 | Thanked: 320 times | Joined on May 2010 @ Peterborough, UK
#551
Oh, and my launcher doesn't actually copy flash_eraseall yet (I only recently figured out it was the best option to use). It only has libgcc_s.so.1 as a library dependency though (other than the standard libc.so.6 and ld-linux.so.3) which is already copied by the launcher anyway, so it's just a one-line addition.
 
sub7's Avatar
Posts: 69 | Thanked: 10 times | Joined on Sep 2010 @ Spain
#552
Robie, the version that is in the repositories is 0.60.1 and have problems, can you up the 0.60.2?

Another thing, you know because when I use backupmenu fsck I get this error when analyzing Optfs?

Code:
errors may have been encountered: code:8
e2fsck: Only one of the options -p/-a, -n or -y may be specified.
EDIT: seems the option w usb mass storage read and write is not working on the new version.

Last edited by sub7; 2011-01-27 at 15:21.
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#553
I'll take more of a look tonight(and release v0.61), but right now I've fixed the fsck issue(I -thought- I'd forgotten something).

As for write-USB-Mass-Storage, remember that you've got to be root to write to the OptFS/2GB FS. I just tried that and had it work, so...

Tigerite, I'll look at your code tonight. Do you have a set of commands/options that you've gotten working? (i.e. what commands, options, and order you need to produce a valid file)
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 
Posts: 330 | Thanked: 97 times | Joined on Dec 2010 @ saudi arabia
#554
SSH didnt work for me.

thank you.
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#555
Ok, Version 0.61-1 has been uploaded.
This version:
1. Fixes those pesky battery-charger issues.
2. Fixes a slightly-broken SSH issue(login was possible, but getting a terminal was not)
3. FSCK mode should be fixed.
4. Removed some debug output; changed some black-on-black text to white-on-black so it can be seen.

edit: and it's now available in the repo.
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520

Last edited by RobbieThe1st; 2011-01-28 at 08:49.
 

The Following 5 Users Say Thank You to RobbieThe1st For This Useful Post:
Posts: 284 | Thanked: 320 times | Joined on May 2010 @ Peterborough, UK
#556
Originally Posted by RobbieThe1st View Post
Tigerite, I'll look at your code tonight. Do you have a set of commands/options that you've gotten working? (i.e. what commands, options, and order you need to produce a valid file)
Yep, I've got some scripts that I've successfully run chrooted. Backup is quite straightforward:

Code:
mkfs.ubifs -x zlib -g 0 -m 2048 -e 129024 -c 2047 -R 4MiB -r /tmp/mnt/rootfs -v /home/user/MyDocs/systemBackups/rootfs.ubi.img
Naturally, replace zlib with lzo for that option and /tmp/mnt/rootfs to wherever the rootfs partition is mounted. Then ubinize that image:

Code:
ubinize -o /home/user/MyDocs/systemBackups/rootfs.zlib.img ubinize.cfg -m 2048 -p 128KiB -s 512
rm /home/user/MyDocs/systemBackups/rootfs.ubi.img
The zlib here is of course optional, I just use it to distinguish between zlibbed and lzo'd images. BackupMenu would need to add the date stamp too, but as these are just my testing, I didn't bother; the ubinize.cfg is the standard one posted previously, with /home/user/MyDocs/systemBackups/rootfs.ubi.img in the image parameter. This can stay without any date/time as it's only a temporary image anyway.

Then for restore:

Code:
flash_eraseall /dev/mtd5
nandwrite -q /dev/mtd5 /home/user/MyDocs/systemBackups/rootfs.zlib.img
This assumes that the rootfs partition is at mtd5, I can't imagine it would ever be anywhere else, but perhaps some sanity check to be completely sure. Again the rootfs.zlib.img would need a date/time for BackupMenu. I also think doing a ubidetach prior to flash_eraseall and nandwrite, then ubiattach afterwards, would be safer; the rootfs partition should be umounted too:

Code:
ubidetach /dev/ubi_ctrl -m 5
...
ubiattach /dev/ubi_ctrl -m 5
Neither ubiattach/detach need new libraries, just the standard libc and linux.

Hope this helps

Last edited by Tigerite; 2011-01-28 at 09:11.
 

The Following 2 Users Say Thank You to Tigerite For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#557
Originally Posted by RobbieThe1st View Post
Ok, Version 0.61-1 has been uploaded.
I've had a few issues with these latest versions, which I've (eventually) managed to track down. On my system, /bin/tar is a symlink to /usr/bin/gnu/tar (which is linked under /opt and unavailable) - I'm not sure whether this is as a result of something I've installed or whether it's something I've manually changed - so it fails to extract the extrafiles archive. This means the rest of the process fails (dumping a load of symlinks into the root) as the expected directories aren't there. Changing the BackupMenuLauncher.item script to call "busybox tar" instead of just "tar" fixes this (or using "/usr/share/backupmenu/tar" instead).

While playing around with that, I've also got BackupMenu showing up in the boot menu (instead of just launching it) - to do this, the /etc/bootmenu.d/backupmenu.item file needs to contains:
Code:
ITEM_NAME="BackupMenu"
ITEM_ID="flash"
ITEM_LINUXRC="/usr/share/backupmenu/BackupMenuLauncher.item"
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#558
Today I had some spare time and so I tried again to make an ubifs image of my rootfs, by processing the latest tar generated by backupmenu. Well, I can confirm that the obtained image, when flashed, cannot boot. These are the commands I used:
Code:
mkdir rootfs

tar xvf mylatestrootfs.tar -C ./rootfs/

mkfs.ubifs -x zlib -g 0 -m 2048 -e 129024 -c 2047 -R 4MiB -r ./rootfs -v ./base.ubi.img

ubinize -o ./rootfs.zlib.img ./ubinize.cfg -m 2048 -p 128KiB -s 512

flasher-3.5 -r ./rootfs.zlib.img -f
Is there anything wrong in your opinion in the above?

You know what? My suspect is the last line, the one which flashes the img.
After my n900 was in unbootable state, I reflashed the flashable_rootfs_v0.56-1-20101109.img that is available on Robbiethe1st site. Didn't flash the kernel.
After that I rebooted with keyboard open, intending to restore my latest rootfs. Well, I couldn't, because backupmenu couldn't see the sdcard (where my tar images were allocated).
I had to reflash the stock 1.3 firmware, then the image with backupmenu 0.56, then my rootfs (and of course reinstall kernel-power).

So my question is, what happened in the reflash with the zlib'd image that prevented my n900 to see mmc1, and was over when a full reflash with stock image was performed?

Might be that the last line reflashes in a wrong way and touches something that hadn't to be touched?

Sorry if this seems delirious. After all, I'm playing with things I don't fully understand
__________________
Ernesto de Bernardis


Last edited by debernardis; 2011-01-28 at 11:42.
 
Posts: 284 | Thanked: 320 times | Joined on May 2010 @ Peterborough, UK
#559
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.
 

The Following User Says Thank You to Tigerite For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#560
Originally Posted by Rob1n View Post
I've had a few issues with these latest versions, which I've (eventually) managed to track down. On my system, /bin/tar is a symlink to /usr/bin/gnu/tar (which is linked under /opt and unavailable) - I'm not sure whether this is as a result of something I've installed or whether it's something I've manually changed - so it fails to extract the extrafiles archive. This means the rest of the process fails (dumping a load of symlinks into the root) as the expected directories aren't there. Changing the BackupMenuLauncher.item script to call "busybox tar" instead of just "tar" fixes this (or using "/usr/share/backupmenu/tar" instead).

While playing around with that, I've also got BackupMenu showing up in the boot menu (instead of just launching it) - to do this, the /etc/bootmenu.d/backupmenu.item file needs to contains:
Code:
ITEM_NAME="BackupMenu"
ITEM_ID="flash"
ITEM_LINUXRC="/usr/share/backupmenu/BackupMenuLauncher.item"
Can you check this?
http://talk.maemo.org/showpost.php?p...&postcount=540
 
Reply

Tags
backup, backupmenu, cssusupplement, max(useful), rescue-console, restore, system


 
Forum Jump


All times are GMT. The time now is 12:34.