3 out of 4 samsung devices have too small boot partitions after initramfs changes
Describe your issue
What's the expected behaviour?
pmbootstrap flasher flash_kernel
should successfully flash kernel onto device's boot partition
What's the current behaviour?
For a lot of devices the boot partition is smaller than the boot.img, and flashing fails.
How to reproduce your issue?
pmbootstrap init # choose some samsung device
pmbootstrap install
pmbootstrap flasher flash_kernel
In my tests 9 out of 12 samsung devices could not be flashed.
What device are you using?
I tested:
- samsung-jflte, 10 MB boot partition
- samsung-hero{,2}lte, 40 MB boot partition
- samsung-chagallwifi, 8 MB boot partition
- samsung-klimtlte, 8 MB boot partition
- samsung-zerofltexx, 28 MB boot partition
- samsung-zeroltexx, 28 MB boot partition
- samsung-n1awifi, 8 MB boot partition
- samsung-v1awifi, 8 MB boot partition
and found that generated boot.img is too large. For 3 tested devices the boot.img fit:
- samsung-dream, 40 MB boot partition
- samsung-gts210lte, 14 MB boot partition
- samsung-treltexx, 17 MB boot partition
Since devices with as large boot partitions as 40 MB are affected I think issue can happen on basically any device, I guess it depends more on kernel config than on boot partition size.
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
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
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
Issues were likely introduced in !5000 (closed). !5365 (merged) fixes issue for the devices I tested.