maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   PostmarketOS on Nokia N9 (https://talk.maemo.org/showthread.php?t=100210)

danpio 2018-02-17 18:14

PostmarketOS on Nokia N9
 
https://postmarketos.org

With interest, I'm looking at the work on the new system for the Nokia N9 :) https://wiki.postmarketos.org/wiki/Nokia_N9
https://wiki.postmarketos.org/images/c/c3/N9_tty.jpg
https://wiki.postmarketos.org/images/9/90/N9_xfce4.jpg

source of the system https://github.com/postmarketOS/pmbootstrap

n950 2018-02-17 19:34

Re: PostmarketOS on Nokia N9
 
Hi,
Congratulations for your project.
How to install it like on your pictures?
I am interested.
Thank you

danpio 2018-02-17 19:51

Re: PostmarketOS on Nokia N9
 
Do not ask me :)
I wants to know how to install it!! :)
https://wiki.postmarketos.org/wiki/Installation_guide

https://github.com/postmarketOS/pmbootstrap


Ask this guys

Filip Matijević (filippz)

https://twitter.com/fi1ippz
probably it's the same person
https://talk.maemo.org/member.php?u=66790

Pavel Machek (pavelmachek)
https://pavelmachek.livejournal.com

that's all I know :(

n950 2018-02-17 20:05

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by danpio (Post 1541316)
Do not ask me :)
I wants to know how to install it!! :)

https://github.com/postmarketOS/pmbootstrap


Ask this guys

Filip Matijević (filippz)

https://twitter.com/fi1ippz
probably it's the same person
https://talk.maemo.org/member.php?u=66790

Pavel Machek (pavelmachek)
https://pavelmachek.livejournal.com

that's all I know :(

I will try.
Thanks

badpixel 2018-02-17 20:51

Re: PostmarketOS on Nokia N9
 
https://wiki.postmarketos.org/wiki/Nokia_N9
It cannot be flashed currently, only starts by preloading kernel and initrd over USB to RAM.

But as we already got multiboot for n9, it should be pretty easy to start from it from internal flash memory.

But as with SailfishOS/FirefoxOS/Android you will have crippled OS support(because of old kernel) or lack of bluetooth/telephony/bme[battery charging], etc (on new kernel).

So this OS will be as usable as other 3rd party OSes ported to n9, unless somebody will backport old drivers to new kernel (so we are again back to the point kernel-update-project for n9, which never succeed and there were 2 big attemps).

I really wish the best for this project and love n9(it's still my daily driver), but after looking past, I'm a bit sceptical...

@danpio: Aren't you BeOS fan that uploaded some image for me maaany years ago?

BTW, I would love to have white n9 :-/

nieldk 2018-02-18 07:42

Re: PostmarketOS on Nokia N9
 
I believe they are using the work going on with filippz kernel update project which would be 3.5

n950 2018-02-25 11:03

Re: PostmarketOS on Nokia N9
 
2 Attachment(s)
Hi,

For starting:

I have installed PR1.3 and ubiboot small.
sdb1: MyDocs (partitionned)
sdb2: Harmattan rootfs (untouched)
sdb3: when i install ubiboot make this partition
sdb4: extended partition to make 2 others.
sdb5: pmOS rootfs
sdb6: initramfs for pmOS

Attached picture is my N9 partitions.

I have a problem now: impossible to have the ubiboot start menu. Check my logs.
I have in error:
Boot menu script not found. when ubiboot run by default Harmattan.
I think partition MyDocs is damaged i tried to format it but no succes. How to repair this partition? for exemple when i try to copy some files from MyDocs to my HDD it says: Error splicing file: Input/output error.
Each time i split MyDocs with extended partition and ext3/4 partition i have this problem.

I would like to keep Harmattan OS cause i can't charge my device if there is no OS inside N9. pmOS doesn't support usb charge.

Any help?

wicket 2018-02-25 16:14

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by badpixel (Post 1541320)
It cannot be flashed currently, only starts by preloading kernel and initrd over USB to RAM.

filippz has it working with ubiboot with a serial console.

Quote:

Originally Posted by nieldk (Post 1541323)
I believe they are using the work going on with filippz kernel update project which would be 3.5

No. They are using mainline plus a few patches. postmarketOS on N9 is currently configured to build 4.15.rc6, the config file says 4.15-rc5, but when I try to build either manually with the patches, it brings up the interactive config which leads me to believe there is a config mismatch. filippz has it working on 4.16 but hasn't published the patches yet.

I've been trying to boot 4.14 stable with ubiboot on the N950 for Maemo Leste based on the patches used to bring it up on the Droid 4 (display patches are the same). It doesn't help that I don't have a serial cable but I just discovered CONFIG_USB_G_SERIAL so I'm going to see if I can get a serial console that way.

n950 2018-02-25 19:23

Re: PostmarketOS on Nokia N9
 
When partitions and pmOS on device are done you need to run kexec command with ubiboot telnet and it will run pmOS.
I have the kexec command.
Can you help me to charge my device when harmattan can't boot?

juiceme 2018-02-25 21:14

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by n950 (Post 1541584)
I have a problem now: impossible to have the ubiboot start menu. Check my logs.

Your logfile seems to me a word document that I cannot open with libreoffice, it says it's corrupted.
Why not use plain ascii format?

pichlo 2018-02-26 08:01

Re: PostmarketOS on Nokia N9
 
1 Attachment(s)
Quote:

Originally Posted by juiceme (Post 1541605)
Your logfile seems to me a word document that I cannot open with libreoffice, it says it's corrupted.

Use a proper Word, then! Mine opens it just fine :D

Quote:

Why not use plain ascii format?
Amen! (.txt format attached)

juiceme 2018-02-26 08:45

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by pichlo (Post 1541607)
Use a proper Word, then! Mine opens it just fine :D

Lovely, thanks for log conversion!
(see, not all of us can afford a msword installarion...)

Now, for the logfile;

1.) First when the device is booted, it copies the menus cpio archive correctly from your mmcblk0p1 so at least that is not corrupted.

2.) The device is booted in maintanance mode, (usb attached) so it exports the partitions out of the device over usb. According to the logs this looks to be OK.

3.) After about 10 seconds you plug the usb cord off, and you should then reboot the device.

Now, can you tell me what did you observe in the computer side of things, did you have some problem mounting the exported partitions or what?

n950 2018-02-26 09:16

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by juiceme (Post 1541609)
Lovely, thanks for log conversion!
(see, not all of us can afford a msword installarion...)

Now, for the logfile;

1.) First when the device is booted, it copies the menus cpio archive correctly from your mmcblk0p1 so at least that is not corrupted.

2.) The device is booted in maintanance mode, (usb attached) so it exports the partitions out of the device over usb. According to the logs this looks to be OK.

3.) After about 10 seconds you plug the usb cord off, and you should then reboot the device.

Now, can you tell me what did you observe in the computer side of things, did you have some problem mounting the exported partitions or what?

Hi,

Before having done the 3 partitions inside MyDocs Harmattan OS run correctly with zimage openmode.
I am in maintenance mode with usb attached i make all my partitions.
After my partitions with gparted are done. It's impossible to boot Harmattan OS. Can you explain me why?

In Ubuntu, when i export my partitions i have an error on MyDocs. like it's impossible to copy files inside...
Perhaps it's more secured to connect the device once i am in Harmattan and i can try to partition MyDocs?

Thanks

EDIT: It's resolved.

n950 2018-02-26 12:44

Re: PostmarketOS on Nokia N9
 
My N9 is good now and i have all my partitions and Harmattan OS.
How to build Nokia N9 pmOS image?
Anybody can upload with a link the image here please?
I try to follow this guide : https://wiki.postmarketos.org/wiki/Installation_guide

i am at this point:
Code:

Run 'pmbootstrap zap' to delete all chroots once a day before working with pmbootstrap!
It only takes a few seconds, and all packages are cached.
Done!

After that any help?

juiceme 2018-02-26 16:41

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by n950 (Post 1541611)
Hi,

Before having done the 3 partitions inside MyDocs Harmattan OS run correctly with zimage openmode.
I am in maintenance mode with usb attached i make all my partitions.
After my partitions with gparted are done. It's impossible to boot Harmattan OS. Can you explain me why?

What does the ubiboot logs show when you try to boot harmattan?
In the logfile converted to text by @pichlo it only shows log of an attempt to export the partitions via usb...

In another words; when you boot it, with no usb connection and select the harmattan icon and kernel, what happens after that?
And what do you get in the log in that case? (The log probably shows why it fails...)


Quote:

Originally Posted by n950 (Post 1541611)
In Ubuntu, when i export my partitions i have an error on MyDocs. like it's impossible to copy files inside...
Perhaps it's more secured to connect the device once i am in Harmattan and i can try to partition MyDocs?

Yes it could be corrupted, but that should not stop Harmattan from booting; after all you know Harmattan tolerates the umounting of MyDocs even when running :)

juiceme 2018-02-26 16:42

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by n950 (Post 1541611)
EDIT: It's resolved.

Ah, OK.

Mind telling what was the problem and how did you fix it?

n950 2018-02-26 18:29

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by juiceme (Post 1541647)
Ah, OK.

Mind telling what was the problem and how did you fix it?

I tried to reinstall pr1.3
Install ubiboot small
Split 1st extended partition reboot device with harmattan its ok
Split 2nd and 3rd ext4/3 partition for pmOS, reboot and it's ok
It's good now.
Now i try tp build n9 pmOS image without success
Anybody have image file i will try to continue?

n950 2018-02-28 15:52

Re: PostmarketOS on Nokia N9
 
Hi,

I try to build image.

My commands:

Code:

git clone https://github.com/postmarketOS/pmbootstrap
cd pmbootstrap
./pmbootstrap.py init (enter nokia-n9 as target device, xfce4 as GUI)
./pmbootstrap.py install --no-fde

My error:

Code:

==> kernel: appending device-tree omap3-n9
ERROR: File not found: /usr/share/dtb/omap3-n9.dtb
ERROR: postmarketos-mkinitfs-0.5.11-r0.trigger: script exited with error

How to pass this error?

Anybody have image file for this directory by default:

/home/.../.local/var/pmbootstrap/

I think the most important are :

Code:

/chroot_native/home/pmos/rootfs/nokia-n9.img
and
/chroot_rootfs_nokia-n9/boot/

Thanks in advance.

n950 2018-03-03 10:24

Re: PostmarketOS on Nokia N9
 
2 Attachment(s)
Little progress... :)

nieldk 2018-03-03 17:55

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by n950 (Post 1541787)
Hi,

I try to build image.

My commands:

Code:

git clone https://github.com/postmarketOS/pmbootstrap
cd pmbootstrap
./pmbootstrap.py init (enter nokia-n9 as target device, xfce4 as GUI)
./pmbootstrap.py install --no-fde

My error:

Code:

==> kernel: appending device-tree omap3-n9
ERROR: File not found: /usr/share/dtb/omap3-n9.dtb
ERROR: postmarketos-mkinitfs-0.5.11-r0.trigger: script exited with error

How to pass this error?

Anybody have image file for this directory by default:

/home/.../.local/var/pmbootstrap/

I think the most important are :

Code:

/chroot_native/home/pmos/rootfs/nokia-n9.img
and
/chroot_rootfs_nokia-n9/boot/

Thanks in advance.

If you didn’t find it, look here
https://archive.openwrt.org/snapshot...s/omap3-n9.dtb

n950 2018-03-04 15:00

Re: PostmarketOS on Nokia N9
 
5 Attachment(s)
https://youtu.be/sTo-De-Atak

Running... :)

ssh work via my pc with usb cable.

danpio 2018-03-04 20:39

Re: PostmarketOS on Nokia N9
 
revelation!! congratulations :) now I'm trying;)

n950 2018-03-04 20:48

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by danpio (Post 1542024)
revelation!! congratulations :) now I'm trying;)

Good Luck.
If you have some questions feel free.

sicelo 2018-03-05 06:19

Re: PostmarketOS on Nokia N9
 
someone asked what vkbd is best to use on N9 ... he's running xfce4

danpio 2018-03-06 19:59

Re: PostmarketOS on Nokia N9
 
@n950
I was able to create a image file
"nokia-n9.img"
and
initrd file "initramfs-nokia-n9"
kernel file "vmlinuz-nokia-n9"

then what do I have to do to flash the n9 device?

you try using Extra packages: xf86-video-vesa mesa-egl ?

from n900 porting method https://wiki.postmarketos.org/wiki/XFCE4

NX500 2018-03-06 21:18

Re: PostmarketOS on Nokia N9
 
If the N9 gets a fully working port I’m gonna sell my iPhone and start using my N9 again. :D

juiceme 2018-03-06 21:51

Re: PostmarketOS on Nokia N9
 
ubiboot version 0.3.8 released today provides support for booting device off an initramfs. :D

n950 2018-03-06 22:10

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by danpio (Post 1542097)
@n950
I was able to create a image file
"nokia-n9.img"
and
initrd file "initramfs-nokia-n9"
kernel file "vmlinuz-nokia-n9"

then what do I have to do to flash the n9 device?

you try using Extra packages: xf86-video-vesa mesa-egl ?

from n900 porting method https://wiki.postmarketos.org/wiki/XFCE4

- install PR1.3 and old Ubiboot small version.
- split MyDocs in two others partitions 128 GB and 2 GB (extended => ext 4/3) 5th and 6th partition.
- 5th named pmOS_boot with 3 files inside init/vm/extra
- 6th named pmOS_root (dd image file inside or cat command)
- ssh or telnet via usb (ubiboot in maintenance mode)
- run kexec special command and pmOS will boot :)

I don't try extra package. what is it exactly? i use Xfce4.

cmakeshift 2021-03-08 15:48

Re: PostmarketOS on Nokia N9
 
Quote:

Originally Posted by n950 (Post 1542108)
- install PR1.3 and old Ubiboot small version.
- split MyDocs in two others partitions 128 GB and 2 GB (extended => ext 4/3) 5th and 6th partition.
- 5th named pmOS_boot with 3 files inside init/vm/extra
- 6th named pmOS_root (dd image file inside or cat command)
- ssh or telnet via usb (ubiboot in maintenance mode)
- run kexec special command and pmOS will boot :)

I don't try extra package. what is it exactly? i use Xfce4.

I managed to get it running as well, by using the same partition configuration, and invoking kexec withing ubiboot, and by using the same cmdline that booted ubiboot.

I am now trying to get wifi working, but am I bit lost. Is the interface supposed to be up by default? any kernel modules I have to load manually?

thanks in advance. getting this device in such a state I can play around in is a dream come true for me, no joke XD


All times are GMT. The time now is 15:18.

vBulletin® Version 3.8.8