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 2014-04-13 16:53

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

Originally Posted by pasko (Post 1421213)
Hi.
I have a bricked device I can flash without problems,but is not booting in any way. However I have been able to boot the ubiboot kernel and see the exported partitions.
Is it possible to either:
1. Install the backup from another device (including the filesystem, partitions, all )

Yes, pretty easy to do. All you have to do, is first boot the alive device with ubiboot, note down the partition layout, and "tar -cvf" the partitions to external mount or network drive.
Then ubiboot the broken device, create partitions and restore the data from tarfiles.
There's just one caveat; the dead device must not have broken CAL or boot partitions on the mtd NAND, since there is no way you can safely rewrite those areas under Open Mode.


Quote:

Originally Posted by pasko (Post 1421213)
2.- Boot the device on Sailfish without Harmattan installed in the device ?

That's even easier, with ubiboot you do not need harmattan at all if you choose not to use it.
You can even have your own partition layout, even delete all partitions and create just one to hold your SailfishOS, to get easy access to full filesystem :D

pasko 2014-04-13 17:22

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Wow!
Many thanks for your answer.
Do you know how can I check the CAL and mtd NAND part ?. Does it mean that there are two copies of the boot partition in the device ?
Sorry if it has been answered before.
Regards.

pasko 2014-04-13 17:36

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
One more question.
Regarding the 'alive' device:
Will it be back to 'normal' if I reflash it with the stock kernel image (I suppose that I can extract it before from the file sistem) after flashing the ubiboot image, or do I have to take something else into account ?
Regards.

peterleinchen 2014-04-13 21:25

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Yes, alive device will be fully functional as before. With one differemce: it will be in OpenMode (no write acccess to CAL ?: no device lock code possible! But even for that there is a solution) as flashing an OpenMode (ubiboot) kernel will bring the device to that stage. No return (other than full reflash).
To bring your alive device back to normal just flash the FW image with option --flash-only=kernel.

pasko 2014-04-13 22:33

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

Originally Posted by juiceme (Post 1421247)
That's even easier, with ubiboot you do not need harmattan at all if you choose not to use it.
You can even have your own partition layout, even delete all partitions and create just one to hold your SailfishOS, to get easy access to full filesystem :D

I've been tinkering with the 2nd option, following the wiki and a youtube video. I have also used the special ubiboot version for dual-boot with sailfish.... still not working.
When booting with ubiboot I can see the initial animation with two options: Meego and Sailfish.
When I tap in the Info option, the credits are showed and tapping on 'back' the main menu is shown, but whenever I tap on Sailfish (or Meego) icons, the screen turns to black and nothing happens. Only once it showed the text message:
Code:

Boot OS/kernel selection failed! Please run a maintanance boot
I'm starting to think there's a problem between bootmanager and actual OS/Kernel loading since it is happening the same with Sailfish and Harmattan, or even a hardware problem...
The weird thing is that I can boot/telnet/tinker into the device with ubiboot (i.e: when connected to usb cable), and all files/partitions, etc. look ok. I've even been able to see the logs/dmesg files generated by ubiboot.
Can this be related to the CAL or mtd NAND mentioned for the first option?

Thank you very much for your suggestions juiceme (and for peterleinchen too)

Regards.

juiceme 2014-04-14 07:27

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

Originally Posted by pasko (Post 1421294)
Only once it showed the text message:
Code:

Boot OS/kernel selection failed! Please run a maintanance boot

Whenever there's a boot problem, you should look at the ubiboot log file which will detail what the actual problem is.

Now boot back to ubiboot, and do one of these things; Either look at the exported folders on your PC for the place you have your ubiboot.config file or mount it to ubiboot filesyftem while telnetted in the device. (the default location is mmcblk0p1:/boot/ubiboot.log unless you have changed it yourself)

Please post the logfile, so I can see what is your problem.


Quote:

Originally Posted by pasko (Post 1421294)
I'm starting to think there's a problem between bootmanager and actual OS/Kernel loading since it is happening the same with Sailfish and Harmattan, or even a hardware problem...

No, fortunately this is not the case here.
If you can boot with ubiboot up to the stage where you see the icons, then it means your device is well bootable up to SailfishOS or Nemo. It most probably is also bootable to Harmattan, at least you know now that the bootchain is healthy.


Quote:

Originally Posted by pasko (Post 1421294)
The weird thing is that I can boot/telnet/tinker into the device with ubiboot (i.e: when connected to usb cable), and all files/partitions, etc. look ok. I've even been able to see the logs/dmesg files generated by ubiboot.
Can this be related to the CAL or mtd NAND mentioned for the first option?

No, if you can flash ubiboot kernel and boot up with it, your device is healthy.

Just post the log, let's see what's wrong with it.

pasko 2014-04-14 15:57

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Hi.

Here's what I did to generate the log files:

1.- Boot the device connected to usb
2.- Disconnect from USB, boot menu appears.
3.- Select Sailfish OS
3.- Black screen..... waith 2 minutes and turn-off via power button
4.- Reconnect USB. Device boots again
5.- Copy logs from mmcblk0p1:/boot/ (Nokia N9 partition)

And this is all :)

The tar file in the attachment contains both ubiboot.dmesg and ubiboot.log

juiceme 2014-04-15 05:39

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

Originally Posted by pasko (Post 1421371)
Hi.

Here's what I did to generate the log files:

1.- Boot the device connected to usb
2.- Disconnect from USB, boot menu appears.
3.- Select Sailfish OS
3.- Black screen..... waith 2 minutes and turn-off via power button
4.- Reconnect USB. Device boots again
5.- Copy logs from mmcblk0p1:/boot/ (Nokia N9 partition)

And this is all :)

The tar file in the attachment contains both ubiboot.dmesg and ubiboot.log

Okay, according to the logfiles, your system does find both SailfishOS and Harmattan kernels correctly, which is a nice thing.
However, this version of ubiboot you have does not make further checks on whether your init files are reachable, so that is a potential problem;

Please check that you have /sbin/preinit_harmattan on your mmcblk0p2 and that it is readable and executable by root, and similarily that you have /sbin/init on mmcblk0p4, also readable and executable by root.

I assume here that you have your Harmattan on p2 and SailfisOS on p4, right?

Also, please can you post your ubiboot.conf.

There is one thing also which caugth my eye, which might be relevant or not; The HW revision of your device is 1507 which is fairly rare AFAIK and as I checked my logs, there were previously some reports that some people could not boot 2nd-level kernel with it.
At least Hurrian, valdur55 and Max9 have had problems with 1507 but I do not remember if the issues were resolved at some point.

pasko 2014-04-15 16:17

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

Originally Posted by juiceme (Post 1421430)
I assume here that you have your Harmattan on p2 and SailfisOS on p4, right?

Also, please can you post your ubiboot.conf.

There is one thing also which caugth my eye, which might be relevant or not; The HW revision of your device is 1507 which is fairly rare AFAIK and as I checked my logs, there were previously some reports that some people could not boot 2nd-level kernel with it.

Hi.
Yes, the preinit* files had read/exec permission in both cases, and the distribution of OS/partitions is the one you mentioned. I changed all permissions to 777 for both files, just in case :P

In one of the attempts I made, the message of 'Maintenance boot' was displayed, afterwards I saw some modified files (depmod,insmod, modprobe, lsmod and others according to their modification/access dates) at /sbin in Sailfish partition. I was trying something I've read Coderus wrote: tapping several times after selecting the sailfish icon.

Regarding the HW revision I think there's not much to add, but would explain the fact that none of the OSs is booting in 2nd stage (i.e: after ubiboot kernel)

The ubiboot.conf file I think is the original one, without modifications.

Regards.

juiceme 2014-04-15 19:32

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

Originally Posted by pasko (Post 1421488)
Hi.
Yes, the preinit* files had read/exec permission in both cases, and the distribution of OS/partitions is the one you mentioned. I changed all permissions to 777 for both files, just in case :P

In one of the attempts I made, the message of 'Maintenance boot' was displayed, afterwards I saw some modified files (depmod,insmod, modprobe, lsmod and others according to their modification/access dates) at /sbin in Sailfish partition. I was trying something I've read Coderus wrote: tapping several times after selecting the sailfish icon.

Regarding the HW revision I think there's not much to add, but would explain the fact that none of the OSs is booting in 2nd stage (i.e: after ubiboot kernel)

The ubiboot.conf file I think is the original one, without modifications.

Regards.

Okay, as you have the default installation those things should be in order.

Basically there are 2 different cases here, booting Harmattan and booting SailfishOS.

Booting Harmattan is usually the trickier one, even Harmattan in Open Mode has some ties to the device's securety framework and problems accessing either the chipset internal functions or the mtd CAL partition will prevent booting. Also there might be something with the HW version that affect things.
One thing you could try, is to set the device in developer mode and disable the life-saver watchdogs. In some cases that has helped.

Booting SailfishOS should be easier in theory. At least booting Nemo works in cases that Harmattan won't boot and Sailfish base is built on top of Nemo.
Now, problems with Nemo/Sailfish usually are caused by incorrect extraction of the FS tarfile, which needs to be done with the --numeric-owner option to recreate the correct permissions to all files.

What is your SailfishOs version, and how did you extract it to partition 4?


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

vBulletin® Version 3.8.8