Sony Xperia Z2 (sony-sirius) - Can't build image
Device page and maintainer: @z3ntu - https://gitlab.postmarketos.org/postmarketos/pmaports/-/tree/master/device/testing/device-sony-sirius
Describe your issue
I was trying to build image for sony-sirius couple times but cannot succeed. I asked for help on matrix. Team proposed analyzing boot.img it showed nothing that may help. Then they agreed that it might be port issue. I build other devices images without problem like asus-flo, sony-aries
What's the expected behavior?
Build device image
What's the current behavior?
Cannot build device image
How to reproduce your issue?
- Install pmbootstrap using python3-pip on Ubuntu 20.04
pmbootstrap init
- Choices: edge, sony-sirius, non-free: yes, UI: gnome
-
pmbootstrap install
<-- crashes here
What device are you using?
sony-sirius
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch)
On what environment did you encounter the issue?
Ubuntu 20.04 focal fossa amd64
Phone environments
-
GNOME But I think it'll fail on other too
How did you get postmarketOS image?
-
I built it using pmbootstrap
What's the build date of the image? (in yyyy-mm-dd format)
2021.01.05 (but previously, about month/two ago I had same issue. One year ago I didn't)
Additional information
Build log:
(...)
Executing postmarketos-mkinitfs-0.20-r0.trigger
==> initramfs: creating /boot/initramfs-postmarketos-qcom-msm8974
Scanning kernel module dependencies...
NOTE: ** modprobe warnings below can be ignored ** if your device does not run the
mainline kernel yet (most devices!) or if the related kernel options are enabled
with 'y' instead of 'm' (module).
- deviceinfo: pm8941_pwrkey qnoc_msm8974 max1187x
- 00-default.modules: dm_crypt ext4 usb_f_rndis
==> initramfs: creating boot.img
ERROR: File not found: /boot/dt.img, but
'deviceinfo_bootimg_qcdt' is set. Please verify that your
device is a QCDT device by analyzing the boot.img file
(e.g. 'pmbootstrap bootimg_analyze path/to/twrp.img')
and based on that, set the deviceinfo variable to false or
adjust your linux APKBUILD to properly generate the dt.img
file. See also: <https://postmarketos.org/deviceinfo>
ERROR: postmarketos-mkinitfs-0.20-r0.trigger: script exited with error 1
Executing postmarketos-base-6-r0.trigger
Executing shared-mime-info-2.0-r0.trigger
Executing gdk-pixbuf-2.42.2-r0.trigger
Executing gtk-update-icon-cache-2.24.33-r0.trigger
Executing cracklib-2.9.7-r4.trigger
sort: out of memory
Executing gvfs-1.46.1-r0.trigger
Executing desktop-file-utils-0.26-r0.trigger
OK: 902 MiB in 496 packages
(034916) [20:22:25] (rootfs_sony-sirius) % apk --no-progress add postmarketos-base device-sony-sirius device-sony-sirius-nonfree-firmware postmarketos-ui-gnome
WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory
1 error; 902 MiB in 496 packages
(034916) [20:22:26] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(034916) [20:22:26] NOTE: The failed command's output is above the ^^^ line in the log file: /home/sirius/pmos/1/log.txt
(034916) [20:22:26] ERROR: Command failed: (rootfs_sony-sirius) % apk --no-progress add postmarketos-base device-sony-sirius device-sony-sirius-nonfree-firmware postmarketos-ui-gnome
(034916) [20:22:26] See also: <https://postmarketos.org/troubleshooting>
(034916) [20:22:26] Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pmb/__init__.py", line 49, in main
getattr(frontend, args.action)(args)
File "/usr/local/lib/python3.8/dist-packages/pmb/helpers/frontend.py", line 279, in install
pmb.install.install(args)
File "/usr/local/lib/python3.8/dist-packages/pmb/install/_install.py", line 745, in install
create_device_rootfs(args, step, steps)
File "/usr/local/lib/python3.8/dist-packages/pmb/install/_install.py", line 702, in create_device_rootfs
pmb.chroot.apk.install(args, install_packages, suffix)
File "/usr/local/lib/python3.8/dist-packages/pmb/chroot/apk.py", line 245, in install
pmb.chroot.root(args, ["apk", "--no-progress"] + command,
File "/usr/local/lib/python3.8/dist-packages/pmb/chroot/root.py", line 74, in root
return pmb.helpers.run_core.core(args, msg, cmd_sudo, None, output,
File "/usr/local/lib/python3.8/dist-packages/pmb/helpers/run_core.py", line 342, in core
check_return_code(args, code, log_message)
File "/usr/local/lib/python3.8/dist-packages/pmb/helpers/run_core.py", line 218, in check_return_code
raise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: (rootfs_sony-sirius) % apk --no-progress add postmarketos-base device-sony-sirius device-sony-sirius-nonfree-firmware postmarketos-ui-gnome
Edited by Administrator