![]() |
2010-08-25
, 18:08
|
Posts: 165 |
Thanked: 78 times |
Joined on Jun 2010
|
#132
|
Well, I'm not opposed; If someone who knows Multiboot code wants to try to figure it out, I'll do my best to help out.
I have a feeling though that, without changing Multiboot's code, there are two options:
1. run it via console mode or,
2. set up an item that loads the Maemo OS, but somehow launches BackupMenu in the boot process. (with boot options?)
main() { local sel i init_hw init_fs init_pm if [ -f ${BOOT_FAST} ] then FAST_BOOT=YES rm -f ${BOOT_FAST} fi if [ -f ${BOOT_ITEM} ] then load_config 99 ${BOOT_ITEM} fi if is_fast_boot || ! is_slide_open then boot_item 99 fi init_screen init_backlight read_config while : do print_menu sel=$(wait_keypress) echo -e -n '\r' case $sel in # Timeout D) sel=99 ;; # Enter 28) sel=99 ;; # 0-9 16) sel=1 ;; 17) sel=2 ;; 18) sel=3 ;; 19) sel=4 ;; 20) sel=5 ;; 21) sel=6 ;; 22) sel=7 ;; 23) sel=8 ;; 24) sel=9 ;; 25) sel=0 ;; # S - shell 31) boot_shell ;; # Backscape - reboot 14) safe_reboot ;; # X - poweroff 45) safe_poweroff ;; # B - Fallback if everything else fails 48) boot_script /sbin/preinit_real ;; # D - Debugging another script 32) boot_script /sbin/multiboot_debug ;; esac if [ -n "$(array NAME $sel)" ] then wait_screen $sel boot_item $sel fi done } main # End
# D - Debugging another script 32) boot_script /sbin/BackupMenu.item ;;
![]() |
2010-08-25
, 20:07
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#133
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
![]() |
2010-08-26
, 01:01
|
Posts: 165 |
Thanked: 78 times |
Joined on Jun 2010
|
#134
|
Remember that all this is happening in the initrd, not in the normal N900 filesystem. You'll also need to make sure all the programs used by the BackupMenu script are also available in the initrd.
Multiboot:
As I have been asked about 4 times in this thread, when I already posted the answer on the second page...
Will Multiboot work with my script?
I just took a look at it - it probably -won't-, at least not by copying it into /etc/multiboot.d/.
You can -probably- get it to work the same by:
1. at the boot prompt, press C for console.
2. type "/path/to/BackupMenu.item"
If that doesn't work, make sure its marked as executable by running:
"chmod +x /path/to/BackupMenu.item"
![]() |
2010-08-26
, 06:23
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#135
|
![]() |
2010-08-26
, 14:17
|
Posts: 162 |
Thanked: 52 times |
Joined on Feb 2010
|
#136
|
![]() |
2010-08-27
, 06:57
|
Posts: 326 |
Thanked: 335 times |
Joined on Feb 2010
|
#137
|
![]() |
2010-08-28
, 04:21
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#138
|
![]() |
2010-08-28
, 04:34
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#139
|
![]() |
2010-08-28
, 07:20
|
Posts: 326 |
Thanked: 335 times |
Joined on Feb 2010
|
#140
|
Go ahead and post it; it can't hurt. I'd also like to see other people trying it and see if these images can be transfered between N900 most of the time or if they can't.
flasher-3.5.exe -r nameOFyourROOTimage -f -R
instead of
flasher-3.5.exe -r nameOFyourROOTimage -f