[kapper@kapper pmbootstrap]$ ./pmbootstrap.py init [23:32:32] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there. [23:32:32] Work path [/home/kapper/.local/var/pmbootstrap]: [23:32:34] NOTE: pmaports path: /home/kapper/.local/var/pmbootstrap/cache_git/pmaports [23:32:34] Target device (either an existing one, or a new one for porting). [23:32:34] Available (129): amazon-thor, asus-duma, asus-flo, asus-grouper, asus-me176c, asus-t00f, asus-tf101, asus-z00t, asus-z00vd, bq-chaozu, fairphone-fp1, fairphone-fp2, google-crosshatch, google-glass, gp-peak, htc-a5ul, htc-ace, htc-bravo, htc-evita, htc-flounder, htc-m8, htc-ville, htc-vision, htc-vivo, huawei-angler, huawei-cameron, huawei-y530, infocus-flatfish, jolla-sbj, leeco-s2, lenovo-karate, lg-bullhead, lg-d285, lg-d722, lg-d855, lg-dory, lg-h815, lg-hammerhead, lg-lenok, lg-mako, lg-w5, meizu-turbo, motorola-athene, motorola-cedric, motorola-falcon, motorola-ghost, motorola-harpia, motorola-maserati, motorola-montana, motorola-osprey, motorola-peregrine, motorola-potter, motorola-shamu, motorola-surnia, motorola-titan, nextbit-robin, nokia-frt, nokia-n9, nokia-n900, nokia-rm885, oneplus-bacon, oneplus-oneplus2, oneplus-onyx, ouya-ouya, pine-a64lts, planet-geminipda, purism-librem5dev, qemu-aarch64, qemu-amd64, qemu-vexpress, raspberry-pi, raspberry-pi0, raspberry-pi3, samsung-apexq, samsung-espresso10, samsung-gts210vewifi, samsung-hero2lte, samsung-i747m, samsung-i8190, samsung-i8200, samsung-i9003, samsung-i9070, samsung-i9100, samsung-i9195, samsung-i927, samsung-i9305, samsung-jflte, samsung-klte, samsung-kminilte, samsung-kylepro, samsung-kylessopen, samsung-kylevess, samsung-lt01wifi, samsung-lt023g, samsung-maguro, samsung-manta, samsung-n5110, samsung-n7100, samsung-p4wifi, samsung-s6500d, samsung-serranodsdd, semc-anzu, semc-smultron, sony-amami, sony-aries, sony-castor-windy, sony-coconut, sony-honami, sony-nicki, sony-scorpion, sony-seagull, sony-sirius, sony-taoshan, sony-tulip, sony-yuga, surftab-wintron7.0, t2m-flame, tablet-x64uefi, teclast-x80pro, wiko-lenny3, wingtech-wt88047, xiaomi-aries, xiaomi-armani, xiaomi-cancro, xiaomi-ido, xiaomi-mido, xiaomi-santoni, xiaomi-tissot, zte-kis3 [23:32:34] Device [lg-hammerhead]: [23:32:45] This device has proprietary components, which trade some of your freedom with making more peripherals work. [23:32:45] We would like to offer full functionality without hurting your freedom, but this is currently not possible for your device. [23:32:45] device-lg-hammerhead-nonfree-firmware: Wifi, GPU, Modem and ADSP firmware [23:32:45] Enable this package? (y/n) [y]: [23:32:52] Username [kapper]: [23:32:53] Available user interfaces (8): [23:32:53] * none: No graphical environment [23:32:53] * hildon: (X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens) [23:32:53] * i3wm: (X11) Tiling WM (keyboard required) [23:32:53] * matchbox: (X11) Very basic user interface for handhelds [23:32:53] * mate: (X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended) [23:32:53] * plasma-mobile: (Wayland) Mobile variant of KDE Plasma, optimized for touchscreen (slow without hardware acceleration!) [23:32:53] * plasma-mobile-extras: Plasma Mobile with more apps pre-installed (video and music players, pdf reader, etc.) [23:32:53] * weston: (Wayland) Reference compositor (demo, not a phone interface) [23:32:53] * xfce4: (X11) Lightweight GTK+2 desktop (stylus recommended) [23:32:53] User interface [mate]: plasma-mobile-extras [23:33:10] Build options: Parallel jobs: 5, ccache per arch: 5G [23:33:10] Change them? (y/n) [n]: [23:33:12] Additional packages that will be installed to rootfs. Specify them in a comma separated list (e.g.: vim,file) or "none" [23:33:12] Extra packages [none]: [23:33:15] Your host timezone: Asia/Tokyo [23:33:15] Use this timezone instead of GMT? (y/n) [y]: [23:33:16] Device hostname (short form, e.g. 'foo') [lg-hammerhead]: [23:33:17] Zap existing chroots to apply configuration? (y/n) [y]: [sudo] kapper のパスワード: [23:33:21] % rm -rf /home/kapper/.local/var/pmbootstrap/chroot_native [23:33:22] % rm -rf /home/kapper/.local/var/pmbootstrap/chroot_rootfs_lg-hammerhead [23:33:22] Cleared up ~1334 MB of space [23:33:22] WARNING: The applications in the chroots do not get updated automatically. [23:33:22] Run 'pmbootstrap zap' to delete all chroots once a day before working with pmbootstrap! [23:33:22] It only takes a few seconds, and all packages are cached. [23:33:22] Done! [kapper@kapper pmbootstrap]$ ./pmbootstrap.py install --no-fde [23:33:29] *** (1/5) PREPARE NATIVE CHROOT *** [23:33:30] (native) install alpine-base [23:33:32] (native) install cryptsetup util-linux e2fsprogs parted dosfstools [23:33:33] *** (2/5) CREATE DEVICE ROOTFS ("lg-hammerhead") *** [23:33:34] (native) install qemu-arm [23:33:34] Register qemu binfmt (arm) [23:33:34] (rootfs_lg-hammerhead) install alpine-base [23:33:39] WARNING: package ofono: aport version 1.21_p20180307-r3 is lower than 1.28-r0 from the binary repository. 1.28-r0 will be used when installing ofono. See also: [23:33:46] (rootfs_lg-hammerhead) install postmarketos-base ttf-droid device-lg-hammerhead device-lg-hammerhead-nonfree-firmware postmarketos-ui-plasma-mobile-extras [23:36:34] (rootfs_lg-hammerhead) write /etc/os-release [23:36:35] (rootfs_lg-hammerhead) mkinitfs postmarketos-qcom [23:36:40] *** SET LOGIN PASSWORD FOR: 'kapper' *** New password: Retype new password: Sorry, passwords do not match. passwd: Failed preliminary check by password service passwd: password unchanged [23:39:06] NOTE: The failed command's output is above the ^^^ line in the log file: /home/kapper/.local/var/pmbootstrap/log.txt [23:39:06] WARNING: Failed to set the password. Try it one more time. New password: Retype new password: passwd: password updated successfully [23:39:13] NOTE: No valid keymap specified for device [23:39:17] *** (3/5) PREPARE INSTALL BLOCKDEVICE *** [23:39:18] (native) create lg-hammerhead.img (1024M) [23:39:18] (native) mount /dev/install (lg-hammerhead.img) [23:39:19] (native) partition /dev/install (boot: 46M, root: the rest) [23:39:20] (native) format /dev/installp2 [23:39:21] (native) mount /dev/installp2 to /mnt/install [23:39:21] (native) format /dev/installp1 (boot, ext2), mount to /mnt/install/boot [23:39:22] *** (4/5) FILL INSTALL BLOCKDEVICE *** [23:39:22] (native) copy rootfs_lg-hammerhead to /mnt/install/ [23:40:43] *** (5/5) FLASHING TO DEVICE *** [23:40:43] Run the following to flash your installation to the target device: [23:40:43] * pmbootstrap flasher flash_rootfs [23:40:43] Flashes the generated rootfs image to your device: [23:40:43] /home/kapper/.local/var/pmbootstrap/chroot_native/home/pmos/rootfs/lg-hammerhead.img [23:40:43] (NOTE: This file has a partition table, which contains /boot and / subpartitions. That way we don't need to change the partition layout on your device.) [23:40:43] * pmbootstrap flasher flash_kernel [23:40:43] Flashes the kernel + initramfs to your device: [23:40:43] /home/kapper/.local/var/pmbootstrap/chroot_rootfs_lg-hammerhead/boot [23:40:43] (NOTE: fastboot also supports booting the kernel/initramfs directly without flashing. Use 'pmbootstrap flasher boot' to do that.) [23:40:43] * If the above steps do not work, you can also create symlinks to the generated files with 'pmbootstrap export' and flash outside of pmbootstrap. [23:40:43] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) [23:40:43] Done [kapper@kapper pmbootstrap]$ ./pmbootstrap.py flasher flash_rootfs --partition userdata [23:42:14] (native) flash rootfs image [23:42:17] (native) install android-tools target reported max download size of 1073741824 bytes Erasing 'userdata'... OKAY [ 15.834s] Sending 'userdata' (1048576 KB)... OKAY [ 37.205s] Writing 'userdata'... OKAY [ 67.881s] Finished. Total time: 121.321s [23:44:21] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) [23:44:21] Done [kapper@kapper pmbootstrap]$ ./pmbootstrap.py flasher flash_kernel [23:45:13] WARNING: package ofono: aport version 1.21_p20180307-r3 is lower than 1.28-r0 from the binary repository. 1.28-r0 will be used when installing ofono. See also: [23:45:14] (rootfs_lg-hammerhead) mkinitfs postmarketos-qcom [23:45:18] (native) flash kernel postmarketos-qcom target reported max download size of 1073741824 bytes Sending 'boot' (5532 KB)... OKAY [ 0.390s] Writing 'boot'... OKAY [ 0.538s] Finished. Total time: 1.321s [23:45:20] You will get an IP automatically assigned to your USB interface shortly. [23:45:20] Then you can connect to your device using ssh after pmOS has booted: [23:45:20] ssh kapper@172.16.42.1 [23:45:20] NOTE: If you enabled full disk encryption, you should make sure that osk-sdl has been properly configured for your device [23:45:20] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) [23:45:20] Done [kapper@kapper pmbootstrap]$ ./pmbootstrap.py shutdown [23:45:26] Unregister qemu binfmt (arm) [23:45:26] Done