[samsung-p4wifi] LNX partition is too small for given file
Describe your issue
What's the expected behaviour?
I am trying to install PostmarketOS on the Samsung Galaxy Tab 10.1. The device is in 'testing'.
pmbootstrap flasher flash_kernel
should complete without errors.
pmbootstrap flasher flash_rootfs --partition UDA
should complete without errors.
pmbootstrap flasher flash_rootfs
should complete without errors.
What's the current behaviour?
All three commands are aborted with the error message ERROR: LNX partition is too small for given file. Use --skip-size-check to flash anyways.
I tried all three commands and all of them failed.
How to reproduce your issue?
Follow the guide of the device. Everything works just fine but then the above mentioned commands fail. I don't know if this is relevant, but the model number of the target is GT-P7510 and I have TWRP 3.1.1-20171009 with Android 7.1.2 installed on it.
What device are you using?
samsung-p4wifi
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.12
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm) -
console It happened with all the environments I tried. I only tried these two. I tried with FDE and without.
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)
I ran it yesterday so I guess 2022-03-21
Additional information
This is the output of pmbootstrap log:
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna https://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is encouraged.
If you appreciate this software and you would like to support future development please consider donating: https://www.glassechidna.com.au/donate/
Initialising connection... Detecting device... Claiming interface... Initialising protocol... Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond. Please be patient!
Session begun.
Downloading device's PIT file... PIT file download successful.
ERROR: LNX partition is too small for given file. Use --skip-size-check to flash anyways. Ending session... Rebooting device... Releasing device interface...
(023350) [16:16:12] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (023350) [16:16:12] NOTE: The failed command's output is above the ^^^ line in the log file: /home/user/.local/var/pmbootstrap/log.txt (023350) [16:16:12] ERROR: Command failed (exit code 1): (native) % heimdall flash --LNX /mnt/rootfs_samsung-p4wifi/boot/boot.img (023350) [16:16:12] See also: https://postmarketos.org/troubleshooting (023350) [16:16:12] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/pmb/init.py", line 49, in main getattr(frontend, args.action)(args) File "/usr/lib/python3.10/site-packages/pmb/helpers/frontend.py", line 328, in flasher pmb.flasher.frontend(args) File "/usr/lib/python3.10/site-packages/pmb/flasher/frontend.py", line 142, in frontend kernel(args) File "/usr/lib/python3.10/site-packages/pmb/flasher/frontend.py", line 31, in kernel pmb.flasher.run(args, "flash_kernel", flavor) File "/usr/lib/python3.10/site-packages/pmb/flasher/run.py", line 70, in run pmb.chroot.root(args, command, output="interactive") File "/usr/lib/python3.10/site-packages/pmb/chroot/root.py", line 76, in root return pmb.helpers.run_core.core(args, msg, cmd_sudo, None, output, File "/usr/lib/python3.10/site-packages/pmb/helpers/run_core.py", line 347, in core check_return_code(args, code, log_message) File "/usr/lib/python3.10/site-packages/pmb/helpers/run_core.py", line 219, in check_return_code raise RuntimeError(f"Command failed (exit code {str(code)}): " + RuntimeError: Command failed (exit code 1): (native) % heimdall flash --LNX /mnt/rootfs_samsung-p4wifi/boot/boot.img
(024246) [16:17:11] % tail -n 60 -F /home/user/.local/var/pmbootstrap/log.txt (024246) [16:17:11] *** output passed to pmbootstrap stdout, not to this log ***