Can't install PMOS on kminilte[G900F]
Using the android recovery method because normal install doesn't work (heimdall wont flash SYSTEM) and not even the sideloading approach works because of an error.
https://wiki.postmarketos.org/wiki/Samsung_Galaxy_S5_mini_(samsung-kminilte)
The wiki page for the device isn't in best shape so no help there, planning to edit it once I get this running.
Log from trying to sideload -
c0rn3j@Luxuria ‹ master › : ~/pmbootstrap
[1] % adb devices
List of devices attached
32041cad18f48137 recovery
c0rn3j@Luxuria ‹ master › : ~/pmbootstrap
[0] % ./pmbootstrap.py flasher --method adb sideload
< wait for any device >
* daemon not running; starting now at tcp:5038
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 10215
--- adb starting (pid 10215) ---
adb I 08-08 14:28:43 10215 10215 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 08-08 14:28:43 10215 10215 main.cpp:57] Version ADB_VERSION
adb I 08-08 14:28:43 10215 10215 main.cpp:57] Installed as /usr/bin/adb
adb I 08-08 14:28:43 10215 10215 main.cpp:57]
adb I 08-08 14:28:43 10215 10215 adb_auth_host.cpp:416] adb_auth_init...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
* failed to start daemon
error: cannot connect to daemon
[16:28:44] NOTE: The failed command's output is above the ^^^ line in the log file: /home/c0rn3j/.local/var/pmbootstrap/log.txt
[16:28:44] ERROR: Command failed: (native) % adb -P 5038 wait-for-usb-sideload
[16:28:44] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.
log from pmboostrap.
[0] % pmbootstrap install --android-recovery-zip --no-fde
[16:54:37] *** (1/4) PREPARE NATIVE CHROOT ***
[sudo] password for c0rn3j:
[16:54:40] (native) install alpine-base
[16:54:41] (native) install cryptsetup util-linux e2fsprogs parted dosfstools
[16:54:42] *** (2/4) CREATE DEVICE ROOTFS ("samsung-kminilte") ***
[16:54:42] (native) install qemu-user-static-repack qemu-user-static-repack-binfmt
[16:54:42] Register qemu binfmt (arm)
[16:54:43] (rootfs_samsung-kminilte) install alpine-base
[16:54:44] (rootfs_samsung-kminilte) install postmarketos-base ttf-droid device-samsung-kminilte
[16:55:37] (rootfs_samsung-kminilte) write /etc/os-release
[16:55:37] (rootfs_samsung-kminilte) mkinitfs samsung-kminilte
[16:55:39] *** SET LOGIN PASSWORD FOR: 'c0rn3j' ***
New password:
Retype new password:
passwd: password updated successfully
[16:55:43] NOTE: No valid keymap specified for device
[16:55:45] *** (3/4) CREATING RECOVERY-FLASHABLE ZIP ***
[16:55:45] (buildroot_armhf) install alpine-base
[16:55:46] (buildroot_armhf) install postmarketos-android-recovery-installer
[16:55:49] (buildroot_armhf) create recovery zip
[16:56:16] *** (4/4) FLASHING TO DEVICE ***
[16:56:16] Run the following to flash your installation to the target device:
[16:56:16] * pmbootstrap flasher --method adb sideload
[16:56:16] Flashes the installer zip to your device.
[16:56:16] * If this does not work, you can also create a symlink to the generated zip with 'pmbootstrap export' and flash outside of pmbootstrap.
[16:56:16] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[16:56:16] Done
log from TWRP install (latest TWRP 3.2.3)
[0] % cat pmos.log
+ export CHROOT=/tmp/postmarketos/chroot
+ unzip -o /sdcard/pmos-samsung-kminilte.zip chroot/* -d /tmp/postmarketos
Archive: /sdcard/pmos-samsung-kminilte.zip
inflating: chroot/install_options
inflating: chroot/bin/umount
inflating: chroot/bin/pmos_install
inflating: chroot/bin/cryptsetup
inflating: chroot/bin/partprobe
inflating: chroot/bin/kpartx
inflating: chroot/bin/findfs
inflating: chroot/bin/tar
inflating: chroot/bin/mkfs.ext2
inflating: chroot/bin/mkfs.ext4
inflating: chroot/bin/parted
inflating: chroot/bin/pmos_setpw
inflating: chroot/bin/pmos_install_functions
inflating: chroot/bin/busybox
inflating: chroot/lib/libncursesw.so.6.1
inflating: chroot/lib/libcrypto.so.43
inflating: chroot/lib/libncursesw.so.6
inflating: chroot/lib/libparted.so.2.0.1
inflating: chroot/lib/libmount.so.1
inflating: chroot/lib/libpopt.so.0
inflating: chroot/lib/libparted.so.2
inflating: chroot/lib/ld-musl-armhf.so.1
inflating: chroot/lib/libblkid.so.1
inflating: chroot/lib/libcom_err.so.2.1
inflating: chroot/lib/libreadline.so.7
inflating: chroot/lib/libpopt.so.0.0.0
inflating: chroot/lib/libe2p.so.2
inflating: chroot/lib/libjson-c.so.4
inflating: chroot/lib/libmount.so.1.1.0
inflating: chroot/lib/libext2fs.so.2.4
inflating: chroot/lib/libcom_err.so.2
inflating: chroot/lib/libdevmapper.so.1.02
inflating: chroot/lib/libjson-c.so.4.0.0
inflating: chroot/lib/libargon2.so.1
inflating: chroot/lib/libc.musl-armhf.so.1
inflating: chroot/lib/libcryptsetup.so.12
inflating: chroot/lib/libe2p.so.2.3
inflating: chroot/lib/libext2fs.so.2
inflating: chroot/lib/libuuid.so.1
inflating: chroot/lib/libuuid.so.1.3.0
inflating: chroot/lib/libblkid.so.1.1.0
inflating: chroot/lib/libreadline.so.7.0
inflating: chroot/lib/libcryptsetup.so.12.2.0
inflating: chroot/lib/libcrypto.so.43.0.1
+ . /tmp/postmarketos/chroot/install_options
+ DEVICE=samsung-kminilte
+ FLAVOR=samsung-kminilte
+ FLASH_KERNEL=true
+ ISOREC=false
+ KERNEL_PARTLABEL=BOOT
+ INITFS_PARTLABEL=RECOVERY
+ SYSTEM_PARTLABEL=SYSTEM
+ INSTALL_PARTITION=system
+ CIPHER=aes-cbc-plain64
+ FDE=false
+ [ false = true ]
+ umount /tmp/postmarketos/chroot/pmos.log
+ rm /tmp/postmarketos/chroot/pmos.log
+ touch /tmp/postmarketos/chroot/pmos.log
+ umount /tmp/postmarketos/chroot/pmos.zip
+ rm /tmp/postmarketos/chroot/pmos.zip
+ touch /tmp/postmarketos/chroot/pmos.zip
+ mount --bind /tmp/postmarketos/pmos.log /tmp/postmarketos/chroot/pmos.log
+ mount --bind /sdcard/pmos-samsung-kminilte.zip /tmp/postmarketos/chroot/pmos.zip
+ cp /etc/recovery.fstab /tmp/postmarketos/chroot/recovery.fstab
cp: can't stat '/etc/recovery.fstab': No such file or directory
+ [ 1 = 255 ]
+ exit 1
log from another TWRP attempt
+ export CHROOT=/tmp/postmarketos/chroot
+ unzip -o /external_sd/pmos-samsung-kminilte.zip chroot/* -d /tmp/postmarketos
Archive: /external_sd/pmos-samsung-kminilte.zip
creating: chroot/
inflating: chroot/install_options
creating: chroot/bin/
inflating: chroot/bin/umount
inflating: chroot/bin/pmos_install
inflating: chroot/bin/cryptsetup
inflating: chroot/bin/partprobe
inflating: chroot/bin/kpartx
inflating: chroot/bin/findfs
inflating: chroot/bin/tar
inflating: chroot/bin/mkfs.ext2
inflating: chroot/bin/mkfs.ext4
inflating: chroot/bin/parted
inflating: chroot/bin/pmos_setpw
inflating: chroot/bin/pmos_install_functions
inflating: chroot/bin/busybox
creating: chroot/lib/
inflating: chroot/lib/libncursesw.so.6.1
inflating: chroot/lib/libcrypto.so.43
inflating: chroot/lib/libncursesw.so.6
inflating: chroot/lib/libparted.so.2.0.1
inflating: chroot/lib/libmount.so.1
inflating: chroot/lib/libpopt.so.0
inflating: chroot/lib/libparted.so.2
inflating: chroot/lib/ld-musl-armhf.so.1
inflating: chroot/lib/libblkid.so.1
inflating: chroot/lib/libcom_err.so.2.1
inflating: chroot/lib/libreadline.so.7
inflating: chroot/lib/libpopt.so.0.0.0
inflating: chroot/lib/libe2p.so.2
inflating: chroot/lib/libjson-c.so.4
inflating: chroot/lib/libmount.so.1.1.0
inflating: chroot/lib/libext2fs.so.2.4
inflating: chroot/lib/libcom_err.so.2
inflating: chroot/lib/libdevmapper.so.1.02
inflating: chroot/lib/libjson-c.so.4.0.0
inflating: chroot/lib/libargon2.so.1
inflating: chroot/lib/libc.musl-armhf.so.1
inflating: chroot/lib/libcryptsetup.so.12
inflating: chroot/lib/libe2p.so.2.3
inflating: chroot/lib/libext2fs.so.2
inflating: chroot/lib/libuuid.so.1
inflating: chroot/lib/libuuid.so.1.3.0
inflating: chroot/lib/libblkid.so.1.1.0
inflating: chroot/lib/libreadline.so.7.0
inflating: chroot/lib/libcryptsetup.so.12.2.0
inflating: chroot/lib/libcrypto.so.43.0.1
+ . /tmp/postmarketos/chroot/install_options
+ DEVICE=samsung-kminilte
+ FLAVOR=samsung-kminilte
+ FLASH_KERNEL=true
+ ISOREC=false
+ KERNEL_PARTLABEL=BOOT
+ INITFS_PARTLABEL=RECOVERY
+ SYSTEM_PARTLABEL=SYSTEM
+ INSTALL_PARTITION=system
+ CIPHER=aes-cbc-plain64
+ FDE=false
+ [ false = true ]
+ umount /tmp/postmarketos/chroot/pmos.log
umount: can't umount /tmp/postmarketos/chroot/pmos.log: No such file or directory
+ rm /tmp/postmarketos/chroot/pmos.log
rm: can't remove '/tmp/postmarketos/chroot/pmos.log': No such file or directory
+ :
+ touch /tmp/postmarketos/chroot/pmos.log
+ umount /tmp/postmarketos/chroot/pmos.zip
umount: can't umount /tmp/postmarketos/chroot/pmos.zip: No such file or directory
+ rm /tmp/postmarketos/chroot/pmos.zip
rm: can't remove '/tmp/postmarketos/chroot/pmos.zip': No such file or directory
+ :
+ touch /tmp/postmarketos/chroot/pmos.zip
+ mount --bind /tmp/postmarketos/pmos.log /tmp/postmarketos/chroot/pmos.log
+ mount --bind /external_sd/pmos-samsung-kminilte.zip /tmp/postmarketos/chroot/pmos.zip
+ cp /etc/recovery.fstab /tmp/postmarketos/chroot/recovery.fstab
cp: can't stat '/etc/recovery.fstab': No such file or directory
+ [ 1 = 255 ]
+ exit 1
Edited by Administrator