postmarketOS: ten years support?

Anybody’s seen this: Linux-based postmarketOS project aims to give smartphones a 10-year lifecycle - Liliputing https://liliputing.com/2017/08/linux-based-postmarketos-project-aims-give-smartphones-10-year-lifecycle.html?
I know it’s very early, but still this is an interesting ideas, imho

12 Likes

I didn’t know that something like that existed, thanks for the info @lklaus :slight_smile:

1 Like

…and guess who’s already workibg on it for FP2:


@z3ntu …just unbelievable… :slight_smile:

7 Likes

hehe

and I really don’t like the 20 char limit

10 Likes

@z3ntu you’re awesome!
But you should smile more! (this -> :slight_smile: counts as 14 characters)

6 Likes

Hello, I am interested in installing PostmarketOS in my FP2. It’s possible? How can I do it?

Take a look at the wiki linked by @BeMiGro (the link-address has changed)
https://wiki.postmarketos.org/wiki/Fairphone_2_(fairphone-fp2)
and regard the limitations.

[quote]What works

  • Flashing (needs bootloader patch)
  • Booting
  • Screen (needs the msm framebuffer hack)
  • Touchscreen
  • USB networking
  • USB OTG
  • WiFi
    What does not work
  • The rest (probably)[/quote]
    You have to decide, if that’s enough for you or if you are going to wait, until phone-calls, camera, SMS, bluetooth, GPS etc. is working as well.
2 Likes

As @BertG wrote, it’s not usable as a “phone” right now. If you are still interested (you will also have to have access to a Linux machine to make it work), just write it and I’ll write some instructions.

2 Likes

Hi, yes, I would like to have instructions and the file. You never know when I’ll want to play with the phone!

Surely more than one person will appreciate those instructions.

Get lk fixed for flashing the system partition

A patch for not requiring this step is submitted to the Fairphone Gerrit and hopefully will be accepted soon.

Install a arm eabi toolchain (eg arm-none-eabi-gcc on Arch Linux - you have to change the toolchain prefix below to make it fit).

Also the mkbootimg tool has to be a proper one, e.g. from LineageOS or from EFIDroid

git clone https://github.com/z3ntu/android_kernel_lk_fairphone_FP2 -b fastboot-fix
cd android_kernel_lk_fairphone_FP2
make FP2 TOOLCHAIN_PREFIX=arm-none-eabi- -j5
# get the dt.img either from lineage or compile or self etc (efidroid has one: https://github.com/efidroid/device/blob/fairphone/fp2/dt.img)
mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --second_offset 0x00f00000 --tags_offset 0x00000100 --dt dt.img --kernel build-FP2/lk.bin -o lk_boot.img
# sign_img script from https://z3ntu.github.io/2017/06/16/Signing-boot-images.html
sign_img lk_boot.img
# hold the volume button down while running the next command
fastboot boot lk_boot.img.signed

Compile and install postmarketOS

Follow https://wiki.postmarketos.org/wiki/Installation_guide (and select the Fairphone 2 in the menu).
Then run:

./pmbootstrap.py install --no-fde
./pmbootstrap.py flasher flash_kernel
./pmbootstrap.py flasher flash_system

After that, run fastboot reboot to reboot your phone and into postmarketOS. Now you should be able to login using ssh user@172.16.42.1 with USB connected. Due to weird framebuffers on Qualcomm devices, you need to run

su; while [ ! ]; do cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode; done

in the SSH connection to get your screen to refresh (otherwise your screen will be stuck on the Fairphone splash screen).

This wont touch your data partition, so you can simply flash Android (using adb sideload for example), to get back.

If you have any general questions or need help about postmarketOS, please ask in their Matrix/IRC help channel.
Most other useful information is found in the postmarketOS Wiki.
If something Fairphone specific doesn’t work, please message me!

7 Likes

works for me! thanks! I’ll get cracking on my CLI UI, rild/cell support, etc…

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.

Interestingly, there’s a port under development to get NixOS ported to Android (NixOS Mobile). The port is based on PostmarketOS.

Here’s an introduction to the advantages of NixOS: About NixOS.

TL;DR entire OS is configured from one config file, atomic/reliable upgrades, reproducible configuration, and rollback (without using a new gen filesystem like ZFS/btrsfs/…).

6 Likes

just to reanimate this thread for FP4, although still experimental/in testing

https://wiki.postmarketos.org/wiki/Fairphone_4_(fairphone-fp4)

4 Likes

Trivia: FP4 had pmOS booting since day one by the awesome @z3ntu

4 Likes