motorola-ali: How to use mainline?
Describe your issue
The device wiki page says that "A 64bit build using the mainline Linux kernel works. ". I want to see if that fixes the issues in #1494 (closed). However, I can't find the instructions for how to run the 64-bit main Linux kernel. I'm completely new to PostmarketOS and Alpine Linux so I'm sorry if I've missed something obvious.
I switched the APKBUILD file to linux-postmarketos-qcom-msm8953
instead of linux-motorola-ali
but then it failed to build. It said something about the arch not being supported. I then switched the arch from armv7
to aarch64
in the APKBUILD file and deviceinfo file, and updated the sha512 sum in the APKBUILD file. It then built successfully.
When I try to boot the new kernel I get following error message:
$ pmbootstrap flasher boot
[18:44:03] (rootfs_motorola-ali) mkinitfs postmarketos-qcom-msm8953
[18:44:05] (native) boot postmarketos-qcom-msm8953 kernel
Sending 'boot.img' (12128 KB) OKAY [ 0.289s]
Booting FAILED (remote: '')
fastboot: error: Command failed
[18:44:06] NOTE: The failed command's output is above the ^^^ line in the log file: /home/michael/.local/var/pmbootstrap/log.txt
[18:44:06] ERROR: Command failed (exit code 1): (native) % fastboot --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 vmalloc=400M buildvariant=user boot /mnt/rootfs_motorola-ali/boot/boot.img
I also tried flashing the new kernel but then I see some message about corruption and uname -a
says I'm still running the 32-bit kernel.
I see an attempt was made by @uclydde in merge request !1281 (merged) to upgrade to 64-bit but that was reverted in !1956 because the boot.img image was too large. Is that still the case? Is that why I can't boot a 64-bit mainline Linux kernel?
How to reproduce your issue?
Change linux-motorola-ali
in the APKBUILD file to linux-postmarketos-qcom-msm8953
. Then change the arch from armv7
to aarch64
in the APKBUILD file and deviceinfo file. Finally, update the deviceinfo sha512 sum in the APKBUILD file.
What device are you using?
motorola-ali
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.12
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment ("none" in pmbootstrap) -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm) -
console UI -
framebufferphone
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device