[Successful] installation of PureOS on PinePhone

Detailed description is here but what I figured is:

  • Librem5 u-boot is heavily customized comparing to mainline one
  • Librem5 kernel in its L5 build (expectedly) cannot boot on A64 despite both being A53 ARMv8 little-endian architecture.

Comparing to any x86 kernel being still able to boot (at least somehow) on any x86 hardware. The biggest problem with locked x86 is usually bootloader, but once you can load the kernel you can at least initialize basic services. But yes I know a bit arm achitecture and didn’t have high hopes :slight_smile:

So next step would be to build kernel for a64 and replace kernel and ramdisk in pre-built L5 image…
P.S. I know about debos-pinephone project and was inspired by it but I really want to run genuine pureos image :slight_smile: stay tuned.

13 Likes

Today, I managed to install PureOS on a PinePhone following these instructions. It looks great.

9 Likes

yea, that’s basically the next step (take the kernel and ramdisk from working pinephone image) but this is excatly what I’ve tried to avoid in my first step - making dependency on two projects. Preferred approach would be to generate new kernel+ramfs (even if using their kernel .config)

Edit: Interesting, in referred instructions the existing (pureos) initramfs was reused with pmos kernel. I’ve also tried that (the kernel which is shipped with the phone is pmos 5.4 kernel) but that didn’t fly. Perhaps need to add kernel modules, maybe it actually managed to reach the fsmount phase just didn’t manage to init serial console and spit back anything without modules. The other difference though is the kernel in link above is 5.5 (not 5.4 as the one pre-installed) and pureos is using 5.6.

6 Likes

I’ve tried PureOS on my pinephone and it’s impressive. Purism is doing great! I can’t wait to have my Librem5 on my hands. Meanwhile it’d be nice to have PureOS on my Pinephone.

So yea, it works. I just should have used what I originally planned - ci build artefacts from pine64-org/linux repo. Somehow I thought that was what would be sent in a stock image but apparently it wasn’t.
Oh yea and forgot to mention

7 Likes

Does anyone know how the CPU in the Pinephone compares to the Librem 5? I mean I assumed the L5’s cpu is more powerful, but the L5 has more RAM as well right?

The Pinephone has a nice design, and it is good to see PureOS firing up on it as well.

I don’t know whether this is up to date but: Comparing specs of upcoming Linux phones

Right, that says that they are different chips, but I’m interested in relative performance.

My moto g7 power feels just as fast as the pixel 2 I had, but they are different chipsets, etc.

I haven’t seen any benchmarks of the two phones, but look at the specs:
Librem 5: i.MX 8M Quad (4x Cortex-A53, 1.5 GHz, 28nm), LPDDR4-3200
PinePhone: Allwinner A64 (4x Cortex-A53, 1.2 GHz, 40nm), LPDDR3

The CPU clock is 25% faster in the i.MX 8M and with the faster RAM, I would expect 1/3 better CPU performance on the Librem 5 than on the PinePhone, once Purism solves the heat dissipation problem in Dogwood. However, the GPU performance is significantly better in the Librem 5. Sebastian Krzyszkowiak (seb_dos1) posted on reddit a couple weeks ago the glxgears score on the Librem 5, and it was roughly 2.5 times better than on the PinePhone.

6 Likes

Hi luisfsr,

Do you have somewhere the prebuild img for the PinePhone i can flash on my emmc ? Thanks!

1 Like

I would be interested in knowing if one exists as well. Thanks!

There was one exists, look here https://wiki.pine64.org/index.php/PinePhone_Software_Releases#PureOS
But for some resion the you can not download it anymore…

Thanks. Maybe I’ll try and build it myself.

Ok if you can please share it then with me, my computer is to slow for that. thanks!

I certainly will if I manage to do it!

That’s nice thanks!

I have manage to get the rootfs of the lasted build what i was talk before, but now it need to build to and image if you like to have them let me know.

Thanks! I am going to try build it later today; I am curious how the build process is.

I’m uploading it on Gitlab now as soon i have it ready i send you the link, i try to make a build via the GitLab CI :wink:

Here it is : https://gitlab.com/ruditimmer/pureos-pinephone

1 Like