maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Introducing ubiboot N9 (multiboot OS loader) (https://talk.maemo.org/showthread.php?t=89345)

juiceme 2013-12-04 15:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by mcbook (Post 1392538)
You don't...

This is a feature if ubiboot!

Why would you want to start with USB connected if not for maintenance mode?

Actually, there is a way to do it :D
Just start the menuscript manually when you are in telnet/ssh session;

This command will launch the menu and when selection is done, reboot automatically to the selected OS: "/boot/menu/select_and_boot_os.sh"

This command will launch the menu and load up the kernel, but not boot device (so you can tweak the scripts, launch it again, etc...) : "/boot/menu/select_os_animated.sh"

mcbook 2013-12-04 15:45

Oh, well... ;)

script.ninja 2013-12-04 15:55

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1392565)
Quote:

Originally Posted by mcbook (Post 1392538)
You don't...

This is a feature if ubiboot!

Why would you want to start with USB connected if not for maintenance mode?

Actually, there is a way to do it :D
Just start the menuscript manually when you are in telnet/ssh session;

This command will launch the menu and when selection is done, reboot automatically to the selected OS: "/boot/menu/select_and_boot_os.sh"

This command will launch the menu and load up the kernel, but not boot device (so you can tweak the scripts, launch it again, etc...) : "/boot/menu/select_os_animated.sh"

...This may be exactly what I was looking for...

Because to answer mcbook: In my case, I'm trying to recover fro a flat battery, and I keep getting the ubiboot menu instead of the computer recognizing there's something to flash.

Based on one of the things I read about it somewhere, I think I'd be having an easier time with this if I'd ever actually gotten anything besides Harmattan configured correctly before I stopped playing with it last...

peterleinchen 2013-12-04 16:12

Re: Introducing ubiboot N9 (multiboot OS loader)
 
But this sounds more like a (flashing) driver problem. You are on Windows, right?
I have one laptop where I need to plug it in several times. And also to the extent that the N9 was not detected also. Plugging it in to another works always.
So what are you using?

juiceme 2013-12-04 16:34

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by script.ninja (Post 1392570)
I'm trying to recover fro a flat battery, and I keep getting the ubiboot menu instead of the computer recognizing there's something to flash.

If the device is in power-OFF state and you connect it to computer, before it wakes up NOLO will check for flasher connection, and if it exists then flasher gets priority. If this does not happen there are 2 possibilities:

1.) Your flasher is not getting access to the USB port
2.) Your device is not in real power-off mode

For problem 1, you need to fix your PC
For problem 2, you might want to try to press and hold the N9 power button for about 30 seconds or until flasher notices that the device is connected when you plug it in.

mcbook 2013-12-04 16:36

Have you tried to run flasher -i and then connect and just let it charge for a while...

michaelmhk 2013-12-04 16:55

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1392565)
Actually, there is a way to do it :D
Just start the menuscript manually when you are in telnet/ssh session;

This command will launch the menu and when selection is done, reboot automatically to the selected OS: "/boot/menu/select_and_boot_os.sh"

This command will launch the menu and load up the kernel, but not boot device (so you can tweak the scripts, launch it again, etc...) : "/boot/menu/select_os_animated.sh"

After I select harmattan/nemo, the screen show:
Boot OS/kernel selection failed!
Please run a maintenance boot
Code:

/ # /boot/menu/select_and_boot_os.sh
/boot/menu/select_and_boot_os.sh: line 84: try_to_mount: not found
/boot/menu/select_and_boot_os.sh: line 84: can't create /mnt/1//boot/ubiboot.log: nonexistent directory
/boot/menu/select_and_boot_os.sh: line 84: can't create /mnt/1//boot/ubiboot.log: nonexistent directory
/boot/menu/select_and_boot_os.sh: line 84: can't create /mnt/1//boot/ubiboot.dmesg: nonexistent directory
/boot/menu/select_and_boot_os.sh: line 84: can't create /mnt/1//boot/ubiboot.dmesg: nonexistent directory
/boot/menu/select_and_boot_os.sh: line 84: can't create /mnt/1//boot/ubiboot.dmesg: nonexistent directory
umount: can't umount /mnt/1: Invalid argument

boot fine when run the sh again and disconnect the usb.
I have not mount any partition or umount them all.

juiceme 2013-12-04 18:46

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by michaelmhk (Post 1392589)
boot fine when run the sh again and disconnect the usb.
I have not mount any partition or umount them all.

I forgot to say that :)

The scripts assume that all your partitions are mounted under /mnt/1, /mnt/2, /mnt/3, ... etc
When init calls the script, partitions are mounted so. When you are in maintanance console, your partitions are exported via USB, and thus not mounted.

Before calling the scripts, you need to fo the following;
echo "" > /sys/devices/platform/musb_hdrc/gadget/lun0/file
mount /dev/mmcblk0p1 /mnt/1
mount /dev/mmcblk0p2 /mnt/2
mount /dev/mmcblk0p3 /mnt/3
mount /dev/mmcblk0p4 /mnt/4
# (and also the rest of partitions, if you have more...)

Garp 2013-12-04 21:08

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi, up running with Ubiboot at last:D
Gparted made it, creating Alt_os for Nemo

Thanks for all the help received at this place:):

taixzo 2013-12-05 05:04

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1392411)
@Taixo; It seems to be like peterleinchen says, unless the logs from your /var/log/ubiboot.log are older remains of the previous ubiboot version 0.3.3 you had there, you are still running the old ubiboot kernel.

Your ubiboot.conf, however is from the new version, so might it be possible that you have the nef conf, new CPIO but flashing has failed so you are still running with the old ubiboot kernel.
If that was the case, it sure would cause problems like these.

Thanks! It turned out I forgot to flash the new kernel. I flashed it and now I can boot again.

Edit: But I can only boot Harmattan. If I try to boot Android, Nemo or Firefox OS, the screen just goes black and stays that way.

juiceme 2013-12-05 06:03

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by taixzo (Post 1392752)
Thanks! It turned out I forgot to flash the new kernel. I flashed it and now I can boot again.

Edit: But I can only boot Harmattan. If I try to boot Android, Nemo or Firefox OS, the screen just goes black and stays that way.

I suspect your preinit/init files hawe incorrect premissions, that seems to be the most common problem.
I have a new version 0.3.6 coming which includes checks for these kind of problems, too, but I was not going to release it until btrfs support is ready... :p

Garp 2013-12-05 06:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Installing kernel plus for Harmattan in Ubiboot. Unpack:
tar xvzf /mnt/1/linux_2.6.32.61-plus-20131128.tar.gz -C /mnt/2

But how to do the depmod: depmod -a 2.6.32.61-plus?:confused:

coderus 2013-12-05 06:58

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@Garp boot current harmattan kernel and do it in terminal :)

Garp 2013-12-05 07:05

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by coderus (Post 1392771)
@Garp boot current harmattan kernel and do it in terminal :)

depmod not found?:confused:

juiceme 2013-12-05 07:21

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Garp (Post 1392773)
depmod not found?:confused:

cd /lib/modules/2.6.32.61-plus
/sbin/depmod -a 2.6.32.61-plus

taixzo 2013-12-06 07:19

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1392760)
I suspect your preinit/init files hawe incorrect premissions, that seems to be the most common problem.
I have a new version 0.3.6 coming which includes checks for these kind of problems, too, but I was not going to release it until btrfs support is ready... :p

Ok, I changed them to have correct permissions, and now Android and Firefox OS work but Nemo still just gives a black screen.

peterleinchen 2013-12-06 07:55

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Read changelog yesterday and fix manually (see 'older') or just download latest image.
btw first boot always take looonger and may show no screen at all. Just connect via usb and ssh/telnet and reboot.

mikal2100 2013-12-06 08:34

Re: Introducing ubiboot N9 (multiboot OS loader)
 
CaN anyone show the full tutorial with help of a video...??? It will be alot easier if someone upload a video tutorial for ubiboot... Plzzz someone take the job... Its a request.... PLzzz!

taixzo 2013-12-06 08:58

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1393034)
Read changelog yesterday and fix manually (see 'older') or just download latest image.
btw first boot always take looonger and may show no screen at all. Just connect via usb and ssh/telnet and reboot.

Thanks! Updated the image and it booted fine! (Though I remember the older images being more usable than this one, for example the wifi used to work.)

peterleinchen 2013-12-06 09:20

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by taixzo (Post 1393042)
... for example the wifi used to work.)

Is it really still like this?
That was the reason to not install latest x11 image from June but stay on April version.
But hey ... You have wayland now ;)

script.ninja 2013-12-06 18:44

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1392582)
If the device is in power-OFF state and you connect it to computer, before it wakes up NOLO will check for flasher connection, and if it exists then flasher gets priority. If this does not happen there are 2 possibilities:

1.) Your flasher is not getting access to the USB port
2.) Your device is not in real power-off mode

For problem 1, you need to fix your PC
For problem 2, you might want to try to press and hold the N9 power button for about 30 seconds or until flasher notices that the device is connected when you plug it in.

I don't think it's 1, because when it was coming up to the ubiboot console, if I unplugged it and replugged at that point, flasher was clearly detecting SOMETHING it thought was relevant (and then saying it timed out waiting for the flashing interface, or something like that...if I can't get it to do something more productive than that, I'll pastebin it--probably in another thread). But thanks for the advice.

coderus 2013-12-06 18:51

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@peterleinchen @taixzo wifi working in latest Nemo. something broken with you or your phone :D
and with wayland nemo you can use most of Sailfish apps on it ;)

Just486 2013-12-06 20:26

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I'm not sure if its totally off topic here, but I have a correctly working UbiBoot setup with nemo (sailfish lipstick), android, harmattan and firefox installed.

Let's just say that I want to restore the phone to it's full original state. My question is that do I have to do anything with the partition created for Nemo, or all I have to do is to reflash the phone with the original arm & emmc.bins?

peterleinchen 2013-12-06 20:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
You have all possibilities,
depending on what you want to achieve.

1. full reset to factory state
flash fw and emmc with option --no-preserve

2. only get rid of ubiboot
flash only the kernel --flash-only=kernel
you may remove nitdroid/firefox folder and MyDocs/boot
partition 4 will stay and may be used for other means

Just486 2013-12-06 20:54

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1393222)
partition 4 will stay and may be used for other means

So if I want to get rid of partition 4 (on which Nemo mobile is installed, I guess?), and attach it back to harmattan's EMMC (as it was set by factory), I'll have to use Moslo again, right?

Or if I use the --no-preserve option, will it "automatically" restore all the partitions & other stuff to it's default states?

peterleinchen 2013-12-06 21:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1393222)
1. full reset to factory state
flash fw and emmc with option --no-preserve

..........

Just486 2013-12-06 21:44

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Thanks. Sorry if I seem to be a bit dumb, but I am. That's why I ask twice (or even more) before I do anything.

EDIT:
Thanky fo patience, it looks like a succesful flash.

Garp 2013-12-07 18:07

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Have searched can't find!
Anyone as I have problems with 'Mail for Exchange' with Ubiboot?
I can't connect to server in N9 with Ubiboot (both l2fix and plus kernels) - no problem in my N9 without Ubiboot (l2fix kernel)?:confused:

juiceme 2013-12-07 19:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Garp (Post 1393421)
Have searched can't find!
Anyone as I have problems with 'Mail for Exchange' with Ubiboot?
I can't connect to server in N9 with Ubiboot (both l2fix and plus kernels) - no problem in my N9 without Ubiboot (l2fix kernel)?:confused:

Well that is strange indeed.

There used to be problem with SIP when using ubiboot and that was caused by the preinit script that was used back then, it was the same one used by Nitdroid and it had USB networking enabled which caused SIP to try to route packets to wrong interface.

However, that has been corrected by the new preinit script which is same as original Harmattan preinit. I wonder if there is something similar here.

Can you do "ls -la /sbin/pre*" on Harmattan console, are your /sbin/preinit and /sbin/preinit_harmattan identical?

taixzo 2013-12-08 00:37

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Ok, I have a problem now. I tried to repartition using GParted to add an extended partition, so I backed up all the data on my Alt_OS, rootfs and the other partition which holds the Nitdroid files, and then repartitioned. I recreated the partitions I'd deleted, and untarred the files back into them. However, none of my OS's boot anymore. I verified that the partition numbers are still the same (i.e. rootfs is on /dev/mmcblk0p3), and now I don't know what to do. All the files are there, the permissions are the same as they used to be, and the partitions are the same - what am I missing?

Garp 2013-12-08 00:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1393441)
Well that is strange indeed.

Can you do "ls -la /sbin/pre*" on Harmattan console, are your /sbin/preinit and /sbin/preinit_harmattan identical?

ls -la /sbin/pre*
N9 openmode kernel l2fix
-rwxr-xr-x 1 root root 16210 Oct 7 2012 /sbin/preinit

N9 Ubiboot plus and l2fix kernel:
-rwxr-xr-x 1 root root 10661 Sep 2011 /sbin/preinit
-rwxr-xr-x 1 root root 5754 Nov 1 08:32 /sbin/preinit_firefox
-rwxr-xr-x 1 root root 10661 Oct 4 06:25 /sbin/preinit_harmattan
-rwxr-xr-x 1 root root 5752 Feb 28 2013 /sbin/preinit_nitdroid

peterleinchen 2013-12-08 07:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@garp
I have also no idea what could be wrong. And cannot imagine ubiboot to be the cause for MfE problems (but hey nobody believed me with SIP ;)). Unfortunately you will be on your own to find out as nobody else experiences this.
Are you sure you boot L2fix and not stock kernel?


Quote:

Originally Posted by taixzo (Post 1393499)
Ok, I have a problem now.
I verified that the partition numbers are still the same (i.e. rootfs is on /dev/mmcblk0p3), and now I don't know what to do.

Self-made problem?
Original partition layout:
p1 vfat MyDocs (lots of GB)
p2 ext4 rootfs (4 GB)
p3 ext4 home (2 GB)
p4 empty not-in-use (0 GB)

taixzo 2013-12-08 07:50

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1393538)
@garp
I have also no idea what could be wrong. And cannot imagine ubiboot to be the cause for MfE problems (but hey nobody believed me with SIP ;)). Unfortunately you will be on your own to find out as nobody else experiences this.
Are you sure you boot L2fix and not stock kernel?



Self-made problem?
Original partition layout:
p1 vfat MyDocs (lots of GB)
p2 ext4 rootfs (4 GB)
p3 ext4 home (2 GB)
p4 empty not-in-use (0 GB)

Current partition layout:
p1 vfat MyDocs (29 GB)
p2 ext4 Alt_OS (4 GB)
p3 ext4 rootfs (4 GB)
p4 extended
p5 ext4 unnamed (2 GB)

This is the same partition layout as I had after installing nemo, except that I originally just had four partitions instead of one of them being an extended partition.

Garp 2013-12-08 07:58

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1393538)
@garp
Are you sure you boot L2fix and not stock kernel?

YES, but you know if problems to have connect two N9/MfE and try sync contacts etc. on same mail address?

peterleinchen 2013-12-08 08:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@garp
afaik there is (should be) no problem having two/few devices configured.
Were both devoces online? If so put one into offline mode and try again...

@taixzo
read a few posts back (last page(s)).
Your partition layout differs from stock one. And that would mean you have edited fstab and init files? To match that?
Possibly you were confused by numbering and physical presence (number) on disk? Idk how gparted shows...

juiceme 2013-12-08 09:18

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by taixzo (Post 1393540)
Current partition layout:
p1 vfat MyDocs (29 GB)
p2 ext4 Alt_OS (4 GB)
p3 ext4 rootfs (4 GB)
p4 extended
p5 ext4 unnamed (2 GB)

This is the same partition layout as I had after installing nemo, except that I originally just had four partitions instead of one of them being an extended partition.

You seem to be missing /home partition, or is that p5 in your layout?
Just as @peterleinchen said, check your /etc/fstab

juiceme 2013-12-08 09:22

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Garp (Post 1393500)
ls -la /sbin/pre*
N9 openmode kernel l2fix
-rwxr-xr-x 1 root root 16210 Oct 7 2012 /sbin/preinit

N9 Ubiboot plus and l2fix kernel:
-rwxr-xr-x 1 root root 10661 Sep 2011 /sbin/preinit
-rwxr-xr-x 1 root root 5754 Nov 1 08:32 /sbin/preinit_firefox
-rwxr-xr-x 1 root root 10661 Oct 4 06:25 /sbin/preinit_harmattan
-rwxr-xr-x 1 root root 5752 Feb 28 2013 /sbin/preinit_nitdroid

So you have 2 N9 devices, one with ubiboot and another without?
That's always good when doing development work :D

So it looks like you've got different preinits on the devices, as the one without ubiboot is 16210 bytes and the other is 10661 bytes.
Actually the Nokia-original /sbin/preinit is 10661 bytes, so I am not sure what is the preinit in the other N9, Nitdroid sillyboot, maybe?

peterleinchen 2013-12-08 09:53

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1393561)
So it looks like you've got different preinits on the devices, as the one without ubiboot is 16210 bytes and the other is 10661 bytes.
Actually the Nokia-original /sbin/preinit is 10661 bytes, so I am not sure what is the preinit in the other N9, Nitdroid sillyboot, maybe?

Oops, good catch. Did not see the 'other' device config at all. :(
So yes juiceme saw it and you should check/answer and maybe post that other preinit for comparison.

Garp 2013-12-08 10:04

Re: Introducing ubiboot N9 (multiboot OS loader)
 
2 Attachment(s)
Quote:

Originally Posted by juiceme (Post 1393561)
So you have 2 N9 devices, one with ubiboot and another without?
That's always good when doing development work :D

So it looks like you've got different preinits on the devices, as the one without ubiboot is 16210 bytes and the other is 10661 bytes.
Actually the Nokia-original /sbin/preinit is 10661 bytes, so I am not sure what is the preinit in the other N9, Nitdroid sillyboot, maybe?

Yes really big developer here!!:D:D

The preinit on N9 16GB could well be from the install of Nitdroid and sillyboot 2012 for a period (removed now), see attached?

peterleinchen 2013-12-08 13:47

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by Garp (Post 1393575)
Yes really big developer here!!:D:D

:D

Quote:

The preinit on N9 16GB could well be from the install of Nitdroid and sillyboot 2012 for a period (removed now), see attached?
Yep, trapped by some android relict (like me):
Code:


~ diff /home/user/preinit.txt  /home/user/preinit_ubiboot.txt
--- /home/user/preinit.txt
+++ /home/user/preinit_ubiboot.txt

-modprobe g_ether
-sleep 1
-/sbin/ifconfig usb0 192.168.2.15 up
-

Just comment these 3 lines and it will be fine (I guess).


All times are GMT. The time now is 07:21.

vBulletin® Version 3.8.8