maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] BackupMenu - OS backup & restore | New version - Jul 9th(v1.1) (https://talk.maemo.org/showthread.php?t=63975)

RobbieThe1st 2011-01-20 09:11

Re: [Announce] BackupMenu V2 - OS backup & restore
 
@pali, post 1:
I'll try that. That would certainly be nice.
edit:
I did as you suggest, and added that bit to the /etc/bootmenu.d/backupmenu.item
After that, my n900 wouldn't boot into backupmenu, or bootmenu - it just continues booting normally, even with the keyboard open.
I edited the file back to what it was before, and it booted into backupmenu with the keyboard open. Any ideas?

@pali, post 2:
I'm not sure - Does having /dev/ devices for mounting harddisks require udev? If it does, I need it.

pali 2011-01-20 13:19

Re: [Announce] BackupMenu V2 - OS backup & restore
 
I'm using old patched version of backupmenu. Code is here: https://code.launchpad.net/~pali/+junk/maemo_backupmenu
It works for me fine with bootmenu-n900 1.9.
I look at new version and try find problem...

Bootmenu use this code to create all harddisks devices in /dev (needed to mount device and boot from it):

Code:

        #echo "Loading MMC drivers..."
        cd /dev; /sbin/MAKEDEV input; cd /
        modprobe mmc_block
        modprobe mmc_core
        modprobe omap_hsmmc

        #echo "Sleeping 2 to allow spin-up..."
        sleep 2

        #echo "Creating mmc devices..."
        for p in /sys/block/mmcblk*/mmcblk*p*/; do
                n=`basename $p`
                rm -f /dev/$n
                mknod /dev/$n b `cat $p/dev | sed "s/:/ /g"`
                #ls -l /dev/$n
        done

This not need to run udev.

pali 2011-01-20 13:32

Re: [Announce] BackupMenu V2 - OS backup & restore
 
I only download backupmenu deb package from maemo.org/packages to PC.

I see two problems why it does not work (if you use usr/share/backupmenu/BackupMenuLauncher.item)
1. usr/share/backupmenu/BackupMenuLauncher.item do not have executable flag
2. usr/share/backupmenu/BackupMenuLauncher.item do not have #!/bin/sh header

Note that bootmenu for ITEM_LINUXRC need valid sh skript or binary.

Mr. Incredible 2011-01-20 13:56

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Dear RobbieThe1st, 1st of all thanks for your app.
When I backup my N900 with BackupMenu V2 now and hypothetically spoken next week comes out PR 1.4 and I do a complete reflash with PR1.4 and then want to restore my settings, programs - will this remove PR1.4 an reinstall PR1.3?

ndi 2011-01-20 14:13

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Yes. However, it will not restore hardware components's flash. If PR 1.4 updates the GSM modem software to an incompatible verion (like PR 1.1 did), you will have issues.

It's not a good idea to revert flashes, generally, and reverting 1.1 to 1.0 is known to break GSM. Also, GSM refuses to flash to a lower flash version, so that's it.

RobbieThe1st 2011-01-21 01:46

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Quote:

Originally Posted by pali (Post 924578)
I only download backupmenu deb package from maemo.org/packages to PC.

I see two problems why it does not work (if you use usr/share/backupmenu/BackupMenuLauncher.item)
1. usr/share/backupmenu/BackupMenuLauncher.item do not have executable flag
2. usr/share/backupmenu/BackupMenuLauncher.item do not have #!/bin/sh header

Note that bootmenu for ITEM_LINUXRC need valid sh skript or binary.

Good point. But even if it can't launch the script, why am I not getting the bootmenu-menu?

edit:
I tried both of those things, just in case. No difference - What happens is that it seems to "hang" at the nokia screen until the keyboard is closed, at which point it continues booting normally.

Mentalist Traceur 2011-01-21 04:25

Re: [Announce] BackupMenu V2 - OS backup & restore
 
I also would love to get some soft of on-N900 terminal/shell/command-line-interface. I'd live with it being basic and simple,

What's the technical limitation (if you mentioned it earlier in this thread - it sounds vaguely familiar - feel free to point me to that post) that keeps us from getting a full normal shell/terminal from BackupMenu?

RobbieThe1st 2011-01-21 07:10

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Mentalist:
The main problem is the lack of a framebuffer in the stock kernel(or power kernel, for that matter); with that, it'd simply be a matter of running "/bin/sh", and there you go.
Without it, however, I'm stuck using text2screen to print characters, and evkey to get keypresses. What I did with my limited command-line interface was have an "input box", which was then run through eval. It worked... sort of. But as a run-command box, and not a terminal.

Tigerite 2011-01-21 10:25

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Would this be of any help? I'm still hoping to have a modified BackupMenu with mkfs.ubifs (including option for zlib compression), ubinize, and flasher/nandwrite up and running soon - it's just been a lack of time on my part preventing it, I have the scripts to run it in a chroot.

pali 2011-01-21 10:49

Re: [Announce] BackupMenu V2 - OS backup & restore
 
Quote:

Originally Posted by RobbieThe1st (Post 925122)
Good point. But even if it can't launch the script, why am I not getting the bootmenu-menu?

I'm not author of bootmenu... but I see in code that when evkey input (with rendering menu) loop quit, bootmenu will execute functions for prepairing boot (mount HDD, load modules, ...). The last step is exec init script. Init script is default /sbin/init but may be specified by ITEM_LINUXRC. If exec fail it is not possible to jump into screen boot again. So bootmenu exec /sbin/init...

Quote:

Originally Posted by RobbieThe1st (Post 925122)
I tried both of those things, just in case. No difference - What happens is that it seems to "hang" at the nokia screen until the keyboard is closed, at which point it continues booting normally.

Can you send me source/deb package (or what you are trying)? This was problem in old bootmenu. Maybe I find where is problem. This sounds like that init script is executed, but it crashed... Maybe output in framebuffer console will be usefull (with fbcon.ko)

Why is not in kernel-power fbcon.ko module? What about creating deb package (and upload to extras-devel) kernel-module-fbcon which will be contain fbcon.ko for nokia default kernel?


All times are GMT. The time now is 02:13.

vBulletin® Version 3.8.8