Fails to boot on Nokia 2780
Describe your issue
pmOS won't boot on Nokia 2780 out of the box (but see below)
What's the expected behaviour?
OS boots
What's the current behaviour?
OS stuck at KaliOS boot screen and USB exposed as QHSUSB__BULK
How to reproduce your issue?
Build an image for the 2780 (I selected the console variant) and follow
https://wiki.postmarketos.org/wiki/Nokia_2780_Flip_(nokia-weeknd)
What device are you using?
Nokia 2780
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v24.12
-
v24.06
(supported until 2025-01-23) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: console (but pulled in bananui)
Which init system are you using?
-
OpenRC -
systemd
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
Additional information
Building an image for the device using pmbootstrap and flashing on an SD card and then following the instructions at
https://wiki.postmarketos.org/wiki/Nokia_2780_Flip_(nokia-weeknd)
wouldn't give me a booting device. I then used
git clone https://git.abscue.de/affe_null/weeknd-toolbox.git
cd weeknd-toolbox
./build.sh
./flash.sh
to verify that the phone can boot a recovery image just fine. This got me a working weeknd-toolbox.
I then did
# Break the weeknd-toolbox
dd if=/dev/zero of=boot.img count=10000;
dd if=boot.img of=lk2nd.img seek=512 bs=1024
./flash.sh
to get a lk2nd only onto the device that wouldn't boot into the toolbox right away.
This allows one to enter lk2nd's fastboot with the vol-up
, wait, vol-up
dance
from now on.
One can then create a bootable image by combining the kernel from weeknd-toolbox with the initramfs from pmOS:
python3 mkbootimg.py -o franken.img \
--kernel Image.gz-dtb \
--ramdisk /path/to/pmbootstrap/chroot_rootfs_nokia-weeknd/boot/initramfs \
--cmdline 'earlycon console=tty1 pmos_boot_uuid=2c300474-3991-408a-8465-a10e8da7056c pmos_root_uuid=38ecc4a9-b344-4a11-abe3-bc36de3d4484 pmos_rootfsopts=defaults'
This can then be booted by switching lk2nd to fastboot mode (as described above) and then running:
fastboot boot franken.img
and one can then ssh into the device via ssh which boots up to the bananui (which currently doesn't work (https://git.abscue.de/obp/bananui/shell/-/issues/1, https://gitlab.gnome.org/World/Phosh/phoc/-/issues/395) but that is fixable.
Wanted to leave that here in case someone wants to pick that up to get the device into shape again which.