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)

n950 2018-03-04 20:52

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

Originally Posted by wicket (Post 1541980)
I've added support for additional kexec options. That will allow you to specify an initrd image in ubiboot.conf.

I also replaced the Ubuntu graphic for a Maemo Leste graphic. ;)

Let's see if juiceme likes it. :D

https://github.com/juiceme/ubiboot-animatronics/pull/1

Can you build and send me .conf file please?

juiceme 2018-03-05 09:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Did something I should have done ages past, prompted by @wicket actually :D
Branched https://github.com/juiceme/kernel-ad...t_v037_patched so that there'd be no trouble to find what is the correct repository to build ubiboot kernel :)

n950 2018-03-06 05:01

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

Originally Posted by juiceme (Post 1542045)
Did something I should have done ages past, prompted by @wicket actually :D
Branched https://github.com/juiceme/kernel-ad...t_v037_patched so that there'd be no trouble to find what is the correct repository to build ubiboot kernel :)

I see readme file but little complicated for me.
can you explain me how to build kernel and other files like .conf etc...?
Or please can you do it and upload new file here please?

juiceme 2018-03-06 08:26

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

Originally Posted by n950 (Post 1542070)
I see readme file but little complicated for me.
can you explain me how to build kernel and other files like .conf etc...?
Or please can you do it and upload new file here please?

I'll release 0.3.8 soon, maybe today.

juiceme 2018-03-06 21:14

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Released new version of ubiboot, 4 years and some after the previous one :D

http://swagman.org/juice/ubiboot/ubi...3.8_060318.tar

n950 2018-03-06 22:01

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I have ubiboot small (tiny) installed on my N9.
if i flash kernel with this new version it will cause problem or not? like upgrade...
Or do i need to install with fresh PR1.3?

thanks for your work :)

juiceme 2018-03-07 06:34

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

Originally Posted by n950 (Post 1542107)
I have ubiboot small (tiny) installed on my N9.
if i flash kernel with this new version it will cause problem or not? like upgrade...
Or do i need to install with fresh PR1.3?

thanks for your work :)

You need to change 3 things,
1.) Update the new ubiboot.conf to your configuration partition
2.) Update the new ubiboot-02.menus.cpio to same place
3.) Flash the new kernel zImage_2.6.32.54-ubiboot-02_06032018

The new ubiboot is not compatible with the previous one, as internal interface version has changed.

However; you do not need to change any other partitions (OS installations), just make sure you copy to the new ubiboot.conf the same configuration you have now.

n950 2018-03-07 10:24

Re: Introducing ubiboot N9 (multiboot OS loader)
 
How to pass this error on 64GB device?

Code:

Battery level 61 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[_] kernel      [init        0 %      0 /      0 kB      NA    ]
ERROR: SU_PREPARE_DATA_BLOCK_REQ terminated with error code 3: Invalid state

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[f] kernel      [init        0 %      0 /  11848 kB      NA    ]
Fetching error list:
========================================
Image too big to fit partition: image 219776+12133248 bytes
[Pipe  0] Finishing in error state with status 1
========================================

Thanks

juiceme 2018-03-07 11:10

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

Originally Posted by n950 (Post 1542119)
How to pass this error on 64GB device?

Code:

Battery level 61 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[_] kernel      [init        0 %      0 /      0 kB      NA    ]
ERROR: SU_PREPARE_DATA_BLOCK_REQ terminated with error code 3: Invalid state

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[f] kernel      [init        0 %      0 /  11848 kB      NA    ]
Fetching error list:
========================================
Image too big to fit partition: image 219776+12133248 bytes
[Pipe  0] Finishing in error state with status 1
========================================

Thanks

Ah, so it happens that your kernel partition is not large enough to hold the image. (so could be there is so much worn areas that the usable size has shrunken too much?)

Or is he device N9 or N950? I am not sure if the partition is smaller on N950 device?

n950 2018-03-07 11:12

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

Originally Posted by juiceme (Post 1542122)
Ah, so it happens that your kernel partition is not large enough to hold the image. (so could be there is so much worn areas that the usable size has shrunken too much?)

Or is he device N9 or N950? I am not sure if the partition is smaller on N950 device?

It's N9.
How can i do now? to flash new ubiboot kernel.
nb. i try with n9 16GB it's the same error :(
perhaps your ubiboot is for N950 kernel...

juiceme 2018-03-07 17:42

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

Originally Posted by n950 (Post 1542123)
It's N9.
How can i do now? to flash new ubiboot kernel.
nb. i try with n9 16GB it's the same error :(
perhaps your ubiboot is for N950 kernel...

Works for me;

Code:

juice@firefly:~/n9_stuff/PR1.3$
juice@firefly:~/n9_stuff/PR1.3$
juice@horseye:~/n9_stuff/PR1.3$ sudo flasher -a firmware.bin -k zImage_2.6.32.54-ubiboot-02_06032018 --flash-only=kernel --suppress-warranty-warning -f -R
flasher 3.12.1 (Oct  5 2011) Harmattan

Picked ape-algo from a FIASCO file
Suitable USB interface (bootloader/phonet) not found, waiting...
USB device found at bus 001, device address 015.
Device identifier: 357923042386401 (SN: N/A)
Found device RM-696, hardware revision 1603
NOLO version 2.3.6
Version of 'sw-release': DFL61_HARMATTAN_40.2012.21-3_PR_001
Sending ape-algo image (7096 kB)...
100% (7096 of 7096 kB, avg. 14815 kB/s)
Suitable USB interface (phonet) not found, waiting...
USB device found at bus 001, device address 016.
Device identifier: 357923042386401 (SN: N/A)
Raw data transfer EP found at EP2.
Ping attempt 1 (250 ms)
Server application: 1.7.2
Found product RM-696 rev. 1603
Server implements softupd protocol version 1.8
Image SW version <none>
Image cert-sw not present
Image cmt-2nd skipped
Image cmt-algo skipped
Image cmt-mcusw skipped
Image xloader skipped
Image secondary skipped
Image moslo skipped
Image rootfs skipped
Image mmc skipped
Image tar skipped
Image config skipped
Charging battery, 10 % battery level (11 % required). Ctrl-c to exit
Battery level 11 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[x] kernel      [finished  100 %  11848 /  11848 kB    5631 kB/s]
Updating SW release
Success
juice@horseye:~/n9_stuff/PR1.3$


filip.pz 2018-03-08 15:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I've upgraded to 0.3.8 (copied over new cpio, updated conf and flashed kernel) and I'm experiencing an issue with g_multi.ko kernel module:
Code:

/ # modprobe g_multi
[  91.806549] g_multi: no symbol version for module_layout
[  91.818725] g_multi: no symbol version for module_layout
modprobe: 'g_multi.ko': invalid module format

Because of that maintenance mode doesn't export partitions via USB (other stuff seem to be working). Can anyone confirm an issue or maybe even offer a solution?

I'm in need of initrmafs support so I can boot postmarketOS w/o using command line, but I'm facing an issue due to a fact that pmOS uses 2 partitions - one for kernel + initramfs, and another for rootfs. If I specify ubiboot to use the partition with kernel + initramfs ubiboot fails while checking for existatnce of /sbin/init script since that partition doesn't contain init (Checking 2nd stage kernel init file:...). Is there any way around that?
Using command line I'm able to load pmOS with:
Code:

mount /dev/mmcblk0p5 /mnt/5 && /usr/bin/disable_pm  && kexec -l /mnt/5/vmlinuz-nokia-n9 --initrd=/mnt/5/initramfs-nokia-n9 --append=cma=24M\ debug\ ignore_loglevel\ log_buf_len=1M\ console=ttyO2\ PMOS_NO_OUTPUT_REDIRECT && kexec -e
In any case thanks for keeping ubiboot alive!

juiceme 2018-03-08 17:18

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

Originally Posted by filip.pz (Post 1542159)
I've upgraded to 0.3.8 (copied over new cpio, updated conf and flashed kernel) and I'm experiencing an issue with g_multi.ko kernel module:
Code:

/ # modprobe g_multi
[  91.806549] g_multi: no symbol version for module_layout
[  91.818725] g_multi: no symbol version for module_layout
modprobe: 'g_multi.ko': invalid module format

Because of that maintenance mode doesn't export partitions via USB (other stuff seem to be working). Can anyone confirm an issue or maybe even offer a solution?

What's the HW revision of your device?


Quote:

Originally Posted by filip.pz (Post 1542159)
I'm in need of initrmafs support so I can boot postmarketOS w/o using command line, but I'm facing an issue due to a fact that pmOS uses 2 partitions - one for kernel + initramfs, and another for rootfs. If I specify ubiboot to use the partition with kernel + initramfs ubiboot fails while checking for existatnce of /sbin/init script since that partition doesn't contain init (Checking 2nd stage kernel init file:...). Is there any way around that?
Using command line I'm able to load pmOS with:
Code:

mount /dev/mmcblk0p5 /mnt/5 && /usr/bin/disable_pm  && kexec -l /mnt/5/vmlinuz-nokia-n9 --initrd=/mnt/5/initramfs-nokia-n9 --append=cma=24M\ debug\ ignore_loglevel\ log_buf_len=1M\ console=ttyO2\ PMOS_NO_OUTPUT_REDIRECT && kexec -e

Yes, that is also solvable of course.
When ubiboot first was designed there was no need for using separate partitions for system and kernel & initramfs, however implementing that is not too difficult.
I think it ought to be done so that widest possible set of configurations is easy to handle, I'll have to think about it a bit.


Quote:

Originally Posted by filip.pz (Post 1542159)
In any case thanks for keeping ubiboot alive!

hehe, I had ignored it for a long time; only now as these new alternate OS'es start appearing it's worth continuing work on it :)

filip.pz 2018-03-08 18:16

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

Originally Posted by juiceme (Post 1542164)
What's the HW revision of your device?

1601. Previous version worked fine, and I'd say that it's and build/install issue rather than something HW related - but I guess you have something in mind :)


Quote:

Originally Posted by juiceme (Post 1542164)
I think it ought to be done so that widest possible set of configurations is easy to handle, I'll have to think about it a bit.

I was thinking of skipping the check (and passing and empty value to kernel) when G_OSX_INITSCRIPT is not set.

wicket 2018-03-09 02:00

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

Originally Posted by filip.pz (Post 1542159)
I've upgraded to 0.3.8 (copied over new cpio, updated conf and flashed kernel) and I'm experiencing an issue with g_multi.ko kernel module:
Code:

/ # modprobe g_multi
[  91.806549] g_multi: no symbol version for module_layout
[  91.818725] g_multi: no symbol version for module_layout
modprobe: 'g_multi.ko': invalid module format


Sounds to me like a mismatch between the kernel and the module. I couldn't find any kernel modules within the cpio archive or ubifs so my guess is that these are coming from the rootfs of Harmattan (is that right juiceme?). If this is the case, the new kernel probably differs sufficiently that it would cause the problem. One possible solution could be to bundle the newly built modules with ubiboot and mount them over the top the rootfs.

juiceme, what's the reason for the new ubiboot kernel? Has anything changed there? I never bothered to flash the new ubiboot kernel as the changes I submitted didn't require them so I'm still on the previous kernel (0.3.6 tiny) and have no problems with loading g_multi.

EDIT:
P.S. I haven't been able to get any recent (patched) mainline kernel to boot at all via ubiboot, not even by entering the kexec command manually via telnet. It's very difficult to debug without a serial console and can't find any info on how to build a cable for the N950 (I don't have an N9). One option I was hoping for was to build a ubiboot kernel with the serial USB gadget but as juiceme knows, it's broken and doesn't build right now.

My only (semi) success with booting patched mainline has been with Pali's 0xFFFF with the default (NULL?) kernel cmdline. With that I'm able to bring up initrd and the display comes up. The strange thing is that if I try to specify a cmdline, it breaks it.

juiceme 2018-03-09 06:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
I have to admit I did not test that so extensively, just that it launched harmattan correctly on my device. Indeed something mus have gone amiss when I built and packaged it.

Quote:

Originally Posted by wicket (Post 1542181)
Sounds to me like a mismatch between the kernel and the module. I couldn't find any kernel modules within the cpio archive or ubifs so my guess is that these are coming from the rootfs of Harmattan (is that right juiceme?). If this is the case, the new kernel probably differs sufficiently that it would cause the problem. One possible solution could be to bundle the newly built modules with ubiboot and mount them over the top the rootfs.

Yes, modules are built in the initramfs, if you check the ubifs.list file you see how it populates the filesystem when kernel is built


Quote:

Originally Posted by wicket (Post 1542181)
juiceme, what's the reason for the new ubiboot kernel? Has anything changed there? I never bothered to flash the new ubiboot kernel as the changes I submitted didn't require them so I'm still on the previous kernel (0.3.6 tiny) and have no problems with loading g_multi.

Technically there was no forced reason to update the kernel but I wanted to do that, to check that my toolchain still works :D
Also as there was new functional interface to kexec I pushed up the internal version number which needs to match between the kernel, the cpio and the configuration file.

I'll have to recheck what went wrong with the build.

juiceme 2018-03-20 21:18

Re: Introducing ubiboot N9 (multiboot OS loader)
 
There is something here that I am not seeing now; I build the modules in the same kernel tree as the kernel itself, and install them correctly. Nothing has changed since the last time I built these, and the version strings and everytihing match, yet I still get the "g_multi: no symbol version for module_layout" error...

juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ grep g_multi ubifs/ubifs_list
file /lib/modules/2.6.32.54-ubiboot-02-b/g_multi.ko drivers/usb/gadget/g_multi.ko 744 0 0
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ strings ./drivers/usb/gadget/g_multi.ko | grep ubiboot
vermagic=2.6.32.54-ubiboot-02-b preempt mod_unload modversions ARMv7
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$

juiceme 2018-03-23 09:32

Re: Introducing ubiboot N9 (multiboot OS loader)
 
OK search me, just how stupid can one be... :)

I realized the reason my modules were incompatible, and now I remembered I actually knew this 4 years ago but had forgotten it. Woot, me growing old or what???

So; this is the problem/solution; I'll note it down here so when in another 4 years I forget it again someone can point me to this and call me a bloody feather-head... :eek:

When building a kernel with modules that are to be included in the built-in-initramfs there is a slight inconsistancy in the build mechanics; the initramfs image is built in "make" phase but the modules are built in "make modules"; this means that you have to build modules before zImage, else your make will of course fail due to the missing modules.
Now, when you do "make modules" before "make", you get the modules but there are some dependencies missing and the build system will not warn you about it....

The correct procedure to do it is this;
  • make clean; make mrprop
  • ARCH=arm make ubiboot-02_defconfig
  • [edit your ubifs/ubifs.list so that you comment out all modules-to-be-included]
  • ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
  • ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make modules
  • rm -rf ./usr/built-in.o usr/initramfs_data.cpio ./usr/initramfs_data.o ./arch/arm/boot/zImage ./arch/arm/boot/Image
  • [edit your ubifs/ubifs.list so that you re-enable all modules-to-be-included]
  • ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make

And now Bob's your uncle and you will have a new shiny working combined kernel image in ./arch/arm/boot/zImage

Note to self; I need to write a sedscript to do the comment/uncomment thingy...

peterleinchen 2018-03-23 10:06

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


I realized the reason my modules were incompatible, and now I remembered I actually knew this 4 years ago but had forgotten it. Woot, me growing old or what???

He he,
it feels good not to be the only one! :D

juiceme 2018-03-23 19:32

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Released ubiboot-02 (integrated) version, rev. 0.3.9

New features:
N/A
Bug fixes:
Fix login to device in repair mode
General enhancements:
N/A
Work in progress:
N/A
Get it fresh from HERE
See the README file
See the Changelog file

Installation notes:
This version uses internal interface version 5 which was introduced in version 0.3.8. If you have 0.3.8 it is enough to just flash the kernel. If you are updating from older version you need to update the kernel, config file and cpio to be of the new version.

FotixChiang 2018-07-23 20:18

Re: Introducing ubiboot N9 (multiboot OS loader)
 
OMG,cant believe it comes back again!

nonsuch 2019-09-29 18:38

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hello all,
I'm having some trouble getting into openmode.
I must have tried a dozen different ways, incl. the version in the wiki and the version in the README.
I use this flasher version, the firmware.bin and emmc.bin from here, and this openmode kernel.
Do all these files fit together?
I am not getting any errors.
The last command's full output:
Code:

# flasher -f -F firmware.bin -F emmc.bin -R ; flasher -a firmware.bin -k zImage_2.6.32.54-openmode_l2fix --flash-only=kernel -f -R
flasher 3.12.1 (Oct  5 2011) Harmattan
WARNING: This tool is intended for professional use only. Using it may result
in permanently damaging your device or losing the warranty.

USB device found at bus 001, device address 007.
Device identifier: 357923041515935 (SN: N/A)
Found device RM-696, hardware revision 1507
NOLO version 2.3.6
Version of 'sw-release': DFL61_HARMATTAN_40.2012.21-3_PR_001
Sending ape-algo image (7096 kB)...
100% (7096 of 7096 kB, avg. 23734 kB/s)
Suitable USB interface (phonet) not found, waiting...
USB device found at bus 001, device address 008.
Device identifier: 357923041515935 (SN: N/A)
Raw data transfer EP found at EP2.
Ping attempt 1 (250 ms)
Server application: 1.7.2
Found product RM-696 rev. 1507
Server implements softupd protocol version 1.8
Image SW version DFL61_HARMATTAN_40.2012.21-3_PR_001
Image moslo not present
Image tar skipped
Image config skipped

Battery level 72 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[x] cert-sw      [finished  100 %      1 /      1 kB      NA    ]
[x] cmt-2nd      [finished  100 %      95 /      95 kB      NA    ]
[x] cmt-algo    [finished  100 %    789 /    789 kB      NA    ]
[x] cmt-mcusw    [finished  100 %    6050 /    6050 kB    2973 kB/s]
[x] xloader      [finished  100 %      23 /      23 kB      NA    ]
[x] secondary    [finished  100 %      94 /      94 kB      NA    ]
[x] kernel      [finished  100 %    2714 /    2714 kB    1931 kB/s]
[x] rootfs      [finished  100 % 1170282 / 1170282 kB  11121 kB/s]
[x] mmc          [finished  100 % 1264659 / 1264659 kB  19622 kB/s]
Updating SW release
Success
flasher 3.12.1 (Oct  5 2011) Harmattan
WARNING: This tool is intended for professional use only. Using it may result
in permanently damaging your device or losing the warranty.

Picked ape-algo from a FIASCO file
Suitable USB interface (bootloader/phonet) not found, waiting...
USB device found at bus 001, device address 009.
Device identifier: 357923041515935 (SN: N/A)
Found device RM-696, hardware revision 1507
NOLO version 2.3.6
Version of 'sw-release': DFL61_HARMATTAN_40.2012.21-3_PR_001
Sending ape-algo image (7096 kB)...
100% (7096 of 7096 kB, avg. 43805 kB/s)
Suitable USB interface (phonet) not found, waiting...
USB device found at bus 001, device address 010.
Device identifier: 357923041515935 (SN: N/A)
Raw data transfer EP found at EP2.
Ping attempt 1 (250 ms)
Server application: 1.7.2
Found product RM-696 rev. 1507
Server implements softupd protocol version 1.8
Image SW version <none>
Image cert-sw not present
Image cmt-2nd skipped
Image cmt-algo skipped
Image cmt-mcusw skipped
Image xloader skipped
Image secondary skipped
Image moslo skipped
Image rootfs skipped
Image mmc skipped
Image tar skipped
Image config skipped

Battery level 81 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[x] kernel      [finished  100 %    2712 /    2712 kB    2105 kB/s]
Updating SW release
Success

It looks OK.
But no matter what and how I try, I keep getting a yellow warning triangle when I boot.

At some point I managed to ssh into the phone and executed this command:
Code:

~ # whoami
root
~ # uname -a
Linux RM696 2.6.32.54-dfl61-20121301 #1 PREEMPT Sat Mar 2 23:11:21 EET 2013 armv7l GNU/Linux
~ # disclaimer-cal remove View-openmode
CAL ERROR: nand_write: write (4096 bytes at around 0021f000): Input/output error
disclaimer-cal: Failed to write to CAL

I also tried the same command as user and got the same error.

Did the open kernel even flash properly? the uname command suggests otherwise?

juiceme 2019-10-01 16:29

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

Originally Posted by nonsuch (Post 1560660)
It looks OK.
But no matter what and how I try, I keep getting a yellow warning triangle when I boot.

Your device is in openmode after that, no problems there.
However this does not get rid of the "ugly-triangle-and-warning" screen in the startup.

The problem is that to remove the openmode-warning with disclaimer-cal you need to do that before booting into openmode, because it is stored in a memory location hat is no longer accessible in openmode :eek:

So, the correct procedure is;
  • 1. Flash the device clean in closed mode
  • 2. remove the ugly warning
  • 3. Flash the device back-to-back to openmode


Quote:

Originally Posted by nonsuch (Post 1560660)
At some point I managed to ssh into the phone and executed this command:
[~ # whoami
root
~ # uname -a
Linux RM696 2.6.32.54-dfl61-20121301 #1 PREEMPT Sat Mar 2 23:11:21 EET 2013 armv7l GNU/Linux
~ # disclaimer-cal remove View-openmode
CAL ERROR: nand_write: write (4096 bytes at around 0021f000): Input/output error
disclaimer-cal: Failed to write to CAL

I also tried the same command as user and got the same error.

Did the open kernel even flash properly? the uname command suggests otherwise?

Yes, most likely the openmode flashing went quite OK.

The reason the kernel string in uname looks exactly like in the closed-mode kernel is because I made it so :p:p:p
If the kernel version string had changed, then you'd have to copy in new modules too. Now as it is the openmode kernel works as a drop-in and uses the same modules under /lib/modules/

juiceme 2019-10-01 16:31

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

Originally Posted by juiceme (Post 1560748)
If the kernel version string had changed, then you'd have to copy in new modules too. Now as it is the openmode kernel works as a drop-in and uses the same modules under /lib/modules/

I forgot to say, just if you don't believe that check the few first lines in dmesg to see the kernel build and version... :D

nonsuch 2019-10-01 17:01

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

Originally Posted by juiceme (Post 1560748)
The problem is that to remove the openmode-warning with disclaimer-cal you need to do that before booting into openmode, because it is stored in a memory location hat is no longer accessible in openmode :eek:

I actually figured it out while I was waiting for my post to be published! Sorry for the noise.

I must say it's a bit of a treasure hunt wild web adventure with half the files referenced in the tutorials gone... But your (swagman.org yours?) website has everything I need now - I hope.

Quote:

The reason the kernel string in uname looks exactly like in the closed-mode kernel is because I made it so :p:p:p
If the kernel version string had changed, then you'd have to copy in new modules too. Now as it is the openmode kernel works as a drop-in and uses the same modules under /lib/modules/
I figured that much, but it didn't stop me from slightly panicking at the time... :o

peterleinchen 2019-10-01 19:01

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

Originally Posted by juiceme (Post 1560748)
Your device is in openmode after that, no problems there.
However this does not get rid of the "ugly-triangle-and-warning" screen in the startup.

The problem is that to remove the openmode-warning with disclaimer-cal you need to do that before booting into openmode, because it is stored in a memory location hat is no longer accessible in openmode :eek:

So, the correct procedure is;
  • 1. Flash the device clean in closed mode
  • 2. remove the ugly warning
  • 3. Flash the device back-to-back to openmode

For the next poor soul that tries (is described elsewhere as well),
with back-to-back is meant to do;
3.a flash device (firmware) in closed mode
do NOT boot up
3.b flash open-mode-kernel
Have fun! :D

veeall 2020-07-22 16:16

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

Originally Posted by peterleinchen (Post 1560752)
For the next poor soul that tries (is described elsewhere as well),
with back-to-back is meant to do;
3.a flash device (firmware) in closed mode
do NOT boot up
3.b flash open-mode-kernel
Have fun! :D

This still eludes me, after doing 'disclaimer-cal remove View-openmode', how could i flash the device again without it restoring the warning message. Because that's what happend.

Finally, after removing the warning with 'disclaimer-cal remove View-openmode', i settled to not doing a full flash but just this:
Code:

./flasher64 -f -F main.bin  -F emmc.bin  --flash-only=mmc
./flasher64 -a main.bin -k zImage_2.6.32.54-openmode_l2fix --flash-only=kernel -f

Then afterwards, just in case, because i didn't know any better:
Code:

rm -fr .accounts/*
rm -fr .activesync/*
rm -fr .aegis/*

Still now i get crashes after installing an app using dpkg or apt-get. I mean, terminal window and open apps closing after final phase of an install process - 'updating desktop entries'. So i have to run some n9qtweaks multiple times to get everything installed.

Can somebody hint what could be wrong. Or what are the correct flashing commands, after disabling the warning message.

juiceme 2020-07-22 19:35

Re: Introducing ubiboot N9 (multiboot OS loader)
 
It's exactly like you described; first do the 'disclaimer-cal remove View-openmode', then flash back to back.

However I cannot remember exactly what was the command line so that the device gets flashed so that the openmode warning is still off. (I should dig up one of my old N9's and check it...)

About the other problem, crashing of applications when installing stuff; I remember that was a problem which was patched and the patch/explanation should be somewhere on TMO too.

peterleinchen 2020-07-23 06:41

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Skimming through the README and the thread I just found (after 7y) that juiceme has a small quirk in his description :eek: which I never noticed as I was doing it on my own way.

See here
https://talk.maemo.org/show.hreadt.p...&postcount=698
and here (kne post earlier)
https://talk.maemo.org/showthread.ph...&postcount=697

Quote:

Originally Posted by juiceme
If you want to remove the openmode warning, you need to flash it clean to cosed mode first;
sudo flasher -F firmware.bin -F emmc.bin -f -R
Then remove the warning:
disclaimer-cal remove View-openmode
And last, do the back-to-back flashing.

Quote:

The back-to-back flashing procedure is to make sure that when the device boots up the first time after a clean flash, it boots to open mode.Why this is important; After a clean flash, the first boot creates the aegis keys for the device. These keys are different for open mode and closed mode, and if you have closed mode keys in open mode device you will have lots of random problems.
So, how this is done, is you need to clean-flash, and then immediately flash an open mode kernel before the device boots after the clean flash.In Linux (as well as Windoze) you can enter 2 flashing commands on the same row, separated by semicolon, so that when first command is executed, the second command is executed right after it:
sudo flasher -F firmware.bin -F emmc.bin -f -R ; sudo flasher -a firmware.bin -k zImage_2.6.32.54-openmode_l2fix --flash-only=kernel -f -R
afair you do not need to flash emmc for back-to-back, firmware is enough. It does not hurt either.
BUT what you must not give is the parameter '-R' for the firmware flash after disclaimer removal and before kernel flash.

juiceme 2020-07-23 17:03

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Thanks @peterleinchen; Indeed it has been quite a few years since I last played with those that I was not sure any longer what was the exact flasher command to get the desired result :)

tsuragi 2020-12-28 04:05

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Has anyone been able to install postmarketos successfully? I can't find a guide and i didn't know where else to ask :)

juiceme 2020-12-28 14:38

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

Originally Posted by tsuragi (Post 1570585)
Has anyone been able to install postmarketos successfully? I can't find a guide and i didn't know where else to ask :)

It should not be that difficult if only the userland works with the fairly dated range of kernels supported by n9.

sicelo 2020-12-28 23:25

Re: Introducing ubiboot N9 (multiboot OS loader)
 
https://wiki.postmarketos.org/wiki/Nokia_N9_(nokia-n9)

That said, you may want to also consider Maemo Leste ... they haven't updated N9 support in a bit, but can definitely help you with it. With postmarketOS you'll likely be stuck to something like XFCE4 only due to non-working 3d acceleration. Leste has the acceleration working on N900 and Droid 4, and it's very likely they could help you get it up and running on N9 too

EDIT: Looks like 3d has worked on pmOS after all, at some point, https://twitter.com/fi1ippz/status/9...194349056?s=09.
Leaving the previous text intact though, since you'll likely still get better accel support on Leste than anywhere else.

smatkovi 2025-04-02 13:39

Re: Introducing ubiboot N9 (multiboot OS loader)
 
i estimate the chances of still getting help here near zero, nevertheless i try it. so i want to put ubiboot on my two recently received n950s. on both when i try to flash the ubiboot kernel the flasher says the image is too big for the partition. i even tried the small image. maybe it is because both n950 are the 512MB ram version? funny thing is that one of them is black with 16GB storage, the other one is silver with 64GB storage.


All times are GMT. The time now is 23:10.

vBulletin® Version 3.8.8