Issues running Cooker on Pinephone

Hello,

Requirements:

[I] I have [Searched] the forum for my issue and found nothing related or helpful
[I] I have checked the [Resources category ] ([Resources Index]
[I] I have reviewed the [Wiki] for relevant information
[I] I have read the the [Release Notes and Errata]

OpenMandriva Lx version:
OpenMandriva Lx release 26.90 (Nickel) Cooker for aarch64
Running on a Pinephone Explorer Edition

Desktop environment (KDE, LXQT…):
KDE Plasma Mobile

Description of the issue (screenshots if relevant):
I downloaded the Pinephone image for Openmandriva (following the link on the Pine64 wiki).

The initial install worked, although I had to manually resize the partition to use the full storage available. I have then been running into countless issues:

  • When trying to upgrade the Rolling system with the command $ sudo dnf clean all ; sudo dnf --allowerasing distro-sync (as found in [openmandriva main website domain]+en/news/article/openmandriva-lx-4-3-rc-available-for-testing)
  1. I firstly had to do sudo rpm -ivh --force --nodeps /var/cache/dnf/cooker-aarch64-/packages/[conflicting package name].rpm commands on various packages.

  2. Once that had been done and the upgrade ran, it broke dbus since the old version was using dbus-daemon but the new one was using dbus-broker, but it failed to automatically activate the new way.

  3. Once I managed to get back in (had to mount using Towboot and manually fix dbus) the UI wasn’t loading. I needed to reinstall SCCM and plasma-mobile, then config so it uses the mobile UI by default.

  4. The issue now is the UI runs like molasses, and I believe its down to there not being a 6.x kernel available for the Pinephone- its still stuck on 5.10.4. As such, I cannot get the ‘panfrost’ graphics module to run since all these modules now expect the new kernel following the dpm update. This means its rendering the UI with the CPU.

Trying ‘sudo dnf install kernel-pinephone kernel-pinephone-modules-extra’ returns ‘nothing to do’, which makes me think there isn’t a Pinephone kernel available for 6.x.

Relevant informations (hardware involved, software version, logs or output…):

OS: OpenMandriva Lx 26.90 (Nickel) Cooker aarch64
Host: Pine64 PinePhone (1.2)
Kernel: Linux 5.10.4-00001-g8c0b40456d7e
Uptime: 53 mins
Packages: 1474 (rpm)
Shell: bash 5.3.3
Display (DSI-1): 720x1440 @ 1.8x in 6", 60 Hz
WM: KWin (Wayland)
WM Theme: Breeze
Cursor: wonderland
Terminal: /dev/pts/0
CPU: sun50i-a64 (4) @ 1.15 GHz
GPU: Allwinner sun50i-a64-mali [Integrated]
Memory: 808.64 MiB / 2.87 GiB (28%)
Swap: Disabled
Disk (/): 7.21 GiB / 28.71 GiB (25%) - f2fs
Battery: 86% [Charging, AC Connected]
Locale: en_US.utf8

@rocky
welcome1

1 Like

Please see How to update system | OpenMandriva wiki
also applying to cooker systems.

Just tried that
($ sudo dnf clean all ; dnf clean all ; dnf repolist
$ sudo dnf distro-sync --refresh --allowerasing)

It updated a few packages but still no dice with the kernel.

When I try sudo dnf reinstall kernel-pinephone kernel-firmware-pinephone it returns Packages for argument ‘kernel-pinephone’ installed, but not available.

1 Like

I’m moving this to Development > Development Testing since it’s out of scope for Support. Mobile installs might not be as up to date as the desktop ones. @bero should be able to assist with that. Thanks for your patience.

1 Like

Just some preliminary things, you will want to be in the Cooker chat channel and monitoring ABF for what builds are taking place if you are using a Cooker release:

https://matrix.to/#/%23openmandriva-cooker%3Amatrix.org?via=matrix.org&via=t2bot.io&via=envs.net

Cooker is where all our dev/testing takes place, and you would therefore be a tester.

There were some package renames that would require the GUI session be logged out and the dsync take place in a TUI. Otherwise sddm stops the GUI session and that terminates the dsync process. This is something that has been reported in the forum with desktops and would more than likely affect mobile devices, as well. Those announcements typically get posted and pinned in Support or Announcements and Communications.

sonic-mobile-interface is on the github org for sonicde feel free to give this a shot on pinephone im pretty sure aarch64 is built for sonic-win and sonic-workspace if you would like to try!

1 Like

I’ve since stuck a different distro on as wasn’t getting much success. It’d be useful to have a more up to date img to use before I try again- I discussed it on the Cooker chat channel and not sure its worth the effort for the devs to compile though. Sounds like I’m one of the only ones trying to run Openmandriva on the Pinephone nowadays.

1 Like

if you wanna give testing a shot later. i would love to try and help you get it setup I am trying to root a oneplus 8T to install openmandriva on with the aarch64 build it should have similar setup process

I’m up for that then, whats the best image to use? Is it still the LX 4.2 img for aarch, or is there one a bit more recent?

from what it looks like i need to apply kernel patches to cooker kernel for pinephone its upgrading from 5.10 to 6.19.3 and its got all the wrong flags for that target device let me read the docs for this more

1 Like

codeberg dot org /megi/linux cant share links. looks like they have multiple chipset types here we could just try building that under openmandriva with our .config file and see how it goes as a stopgap for right now. i see pinetab and other a64 branches here

Just for reference, this is the furthest I got with it last time:

I couldn’t get a kernel higher than 5.10.4, when I ran ‘sudo dnf install kernel-pinephone kernel-pinephone-modules-extra’ it returned ‘nothing to do’.

Trying to reinstall the existing kernel with sudo dnf reinstall kernel-pinephone kernel-firmware-pinephone gave the error Packages for argument ‘kernel-pinephone’ installed, but not available.

Guess the only way around that is manually compiling a newer kernel?

I managed to brick the last install by trying to use the generic 6.19.0 kernel.

1 Like

Let me take a look at that kernel-pinephone spec file and see if i can make it build for a newer kernel version pinephone-tools i see this first of all but thats not the kernel

1 Like

github dot com torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi seems to have our missing kernel file you need to add for building the omv kernel from source linux-sunxi dot org /PinePhone add that to this git clone github dot com /OpenMandrivaAssociation/kernel.git omv-kernel
cd omv-kernel
git checkout master
cd ..

it should have a defconfig if not you might need to pull that from the torvalds or megi kernel tree also /arch/arm64/configs/pinephone_defconfig

make ARCH=arm64 pinephone_defconfig
make -j$(nproc) Image dtbs modules

1 Like

I’ve tried again- have got to the part where I’m trying to cross-compile the kernel.

Downloaded the Github OpenMandrivaAssociation/kernel to omv-kernel, and got the Megi pinephone_defconfig file (codeberg org /megi/linux/src/branch/orange-pi-6.19/arch/arm64/configs/pinephone_defconfig).

Issue is I couldn’t see a ‘Makefile’ anywhere. After checking with AI, it seems like the omv-kernel is comprised of .patch and .fragment files rather than the actual kernel source code.

I then decided to download the standard Linux kernel and use that with the pinephone_defconfig file. However, when I copied across and installed the modules from it and rebooted, it gave a kernel panic: ‘kernel panic - not syncing: requested init /sbin/init failed (error -2)’.

Seems like the issue now is its expecting an initrd.img file but one doesn’t exist.

I then tried mounting the Pinephone again with Towboot and trying to create an initrd, but got chroot errors.

At that point things got so complicated I got lost (was trying to find a pine_mods directory but had no idea where that was).

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