pine64-pinephone: u-boot: loading user script for vccq mod overwrites initramfs, causing boot failure
This is a repeat of #1415 (closed).
On the Pinephone, the eMMC voltage can be changed to achieve faster eMMC speeds (https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone)#Increasing_eMMC_speed_(Vccq_mod) ). This requires a Device Tree overlay which is loaded using a user script.
During u-boot startup, this user script is loaded into memory at address 0x50700000
.
After the update to 24.12, the initramfs size is 9977809 bytes. The initramfs is loaded by u-boot at address 0x4FF00000
and thus uses addresses 0x4FF00000
to 0x50883fd1
.
When the user script is loaded at address 0x50700000
, it overwrites part of the initramfs and causes a boot failure.
I solved the issue by increasing the user script address to 0x50900000
. I can provide a fix similar to !2952 (merged) if that's the correct way forward.
Describe your issue
What's the expected behaviour?
The phone boots after updating to 24.12.
What's the current behaviour?
The phone starts boot looping after updating to 24.12.
How to reproduce your issue?
Upgrade a Pinephone with full disk encryption and the device-pine64-pinephone-vccq-mod package installed from 24.06 to 24.12.
What device are you using?
pine64-pinephone v1.2a
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: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
If the on devices installer permitted setting up full disk encryption, then I used an image. If not, I may also have have built my own image. I believe I last installed the phone in August 2023 and have updated to the latest release a few times since.