02-10-2020, 03:58 AM
In order to install PostmarketOS on EMMC, Pinephone page on postmarketos' wiki instruct to run the following :
I currently run postmarketOS from SD card (not the demo image, but current release), and still have stock test image on EMMC. The partitions looks as follow :
when I try to run :
I get the following error :
Now, if I try :
or
or
I got this error:
if i try :
I got this error :
Does anyone know which command I should run to install on EMMC ?
Code:
pmbootstrap install --sdcard=/dev/mmcblk(...)
I currently run postmarketOS from SD card (not the demo image, but current release), and still have stock test image on EMMC. The partitions looks as follow :
Code:
sudo ls /dev/mmcblk*
/dev/mmcblk0 /dev/mmcblk0p2 /dev/mmcblk2boot0 /dev/mmcblk2p1
/dev/mmcblk0p1 /dev/mmcblk2 /dev/mmcblk2boot1 /dev/mmcblk2p2
when I try to run :
Code:
pmbootstrap install --sdcard=/dev/mmcblk
I get the following error :
Code:
.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
(006470) [10:30:29] NOTE: (1/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (2/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (3/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (4/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (5/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (6/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (7/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (8/20) failed to find the install partition. Retrying...
(006470) [10:30:29] NOTE: (9/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (10/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (11/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (12/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (13/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (14/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (15/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (16/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (17/20) failed to find the install partition. Retrying...
(006470) [10:30:30] NOTE: (18/20) failed to find the install partition. Retrying...
(006470) [10:30:31] NOTE: (19/20) failed to find the install partition. Retrying...
(006470) [10:30:31] NOTE: (20/20) failed to find the install partition. Retrying...
(006470) [10:30:31] ERROR: Unable to find the partition prefix, expected the first partition of /dev/mmcblk1 to be located at /dev/mmcblk11 or /dev/mmcblk1p1!
(006470) [10:30:31] See also: <https://postmarketos.org/troubleshooting>
(006470) [10:30:31] Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pmb/__init__.py", line 63, in main
getattr(frontend, args.action)(args)
File "/usr/lib/python3.8/site-packages/pmb/helpers/frontend.py", line 196, in install
pmb.install.install(args)
File "/usr/lib/python3.8/site-packages/pmb/install/_install.py", line 547, in install
install_system_image(args)
File "/usr/lib/python3.8/site-packages/pmb/install/_install.py", line 397, in install_system_image
pmb.install.partitions_mount(args)
File "/usr/lib/python3.8/site-packages/pmb/install/partition.py", line 49, in partitions_mount
raise RuntimeError("Unable to find the partition prefix,"
RuntimeError: Unable to find the partition prefix, expected the first partition of /dev/mmcblk1 to be located at /dev/mmcblk11 or /dev/mmcblk1p1!
Now, if I try :
Code:
pmbootstrap install --sdcard=/dev/mmcblk0
Code:
pmbootstrap install --sdcard=/dev/mmcblk1
Code:
pmbootstrap install --sdcard=/dev/mmcblk2
Code:
(006763) [10:42:19] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/dev
(006763) [10:42:19] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
1711869952 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
(006763) [10:42:19] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
53035008 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
(006763) [10:42:19] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
8192 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
(006763) [10:42:19] % sudo touch /home/laurent/.local/var/pmbootstrap/chroot_native/dev/installp1
(006763) [10:42:19] % sudo mount --bind /dev/mmcblk0p1 /home/laurent/.local/var/pmbootstrap/chroot_native/dev/installp1
(006763) [10:42:19] % sudo touch /home/laurent/.local/var/pmbootstrap/chroot_native/dev/installp2
(006763) [10:42:19] % sudo mount --bind /dev/mmcblk0p2 /home/laurent/.local/var/pmbootstrap/chroot_native/dev/installp2
(006763) [10:42:19] (native) mount /dev/installp2 to /mnt/install
(006763) [10:42:19] (native) % mkdir -p /mnt/install
(006763) [10:42:19] (native) % mount /dev/installp2 /mnt/install
(006763) [10:42:19] (native) format /dev/installp1 (boot, ext2), mount to /mnt/install/boot
(006763) [10:42:19] (native) % mkfs.ext2 -F -q -L pmOS_boot /dev/installp1
/dev/installp1 is apparently in use by the system; will not make a filesystem here!
(006763) [10:42:20] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(006763) [10:42:20] NOTE: The failed command's output is above the ^^^ line in the log file: /home/laurent/.local/var/pmbootstrap/log.txt
(006763) [10:42:20] ERROR: Command failed: (native) % mkfs.ext2 -F -q -L pmOS_boot /dev/installp1
(006763) [10:42:20] See also: <https://postmarketos.org/troubleshooting>
(006763) [10:42:20] Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pmb/__init__.py", line 63, in main
getattr(frontend, args.action)(args)
File "/usr/lib/python3.8/site-packages/pmb/helpers/frontend.py", line 196, in install
pmb.install.install(args)
File "/usr/lib/python3.8/site-packages/pmb/install/_install.py", line 547, in install
install_system_image(args)
File "/usr/lib/python3.8/site-packages/pmb/install/_install.py", line 407, in install_system_image
pmb.install.format(args)
File "/usr/lib/python3.8/site-packages/pmb/install/format.py", line 94, in format
format_and_mount_boot(args)
File "/usr/lib/python3.8/site-packages/pmb/install/format.py", line 35, in format_and_mount_boot
pmb.chroot.root(args, ["mkfs.ext2", "-F", "-q", "-L", "pmOS_boot", device])
File "/usr/lib/python3.8/site-packages/pmb/chroot/root.py", line 90, in root
return pmb.helpers.run_core.core(args, msg, cmd_sudo, None, output,
File "/usr/lib/python3.8/site-packages/pmb/helpers/run_core.py", line 301, in core
raise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: (native) % mkfs.ext2 -F -q -L pmOS_boot /dev/installp1
if i try :
Code:
pmbootstrap install --sdcard=/dev/mmcblk0p1
I got this error :
Code:
(007060) [10:47:53] *** (3/5) PREPARE INSTALL BLOCKDEVICE ***
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_native/mnt/install
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/var/cache/distfiles
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/var/cache/apk
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/proc
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-rust
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-packages
(007060) [10:47:53] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-git
(007060) [10:47:54] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-ccache
(007060) [10:47:54] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-abuild-config
(007060) [10:47:54] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/etc/apk/keys
(007060) [10:47:54] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/dev/shm
(007060) [10:47:54] % sudo umount /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/dev
(007060) [10:47:54] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
1711869952 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
(007060) [10:47:54] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
53035008 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
(007060) [10:47:54] % sudo du --summarize --block-size=1 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
8192 /home/laurent/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
(007060) [10:47:54] NOTE: (1/20) failed to find the install partition. Retrying...
(007060) [10:47:54] NOTE: (2/20) failed to find the install partition. Retrying...
(007060) [10:47:54] NOTE: (3/20) failed to find the install partition. Retrying...
(007060) [10:47:54] NOTE: (4/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (5/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (6/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (7/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (8/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (9/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (10/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (11/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (12/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (13/20) failed to find the install partition. Retrying...
(007060) [10:47:55] NOTE: (14/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (15/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (16/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (17/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (18/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (19/20) failed to find the install partition. Retrying...
(007060) [10:47:56] NOTE: (20/20) failed to find the install partition. Retrying...
(007060) [10:47:56] ERROR: Unable to find the partition prefix, expected the first partition of /dev/mmcblk0p1 to be located at /dev/mmcblk0p11 or /dev/mmcblk0p1p1!
Does anyone know which command I should run to install on EMMC ?
* PinePhone BraveHeart Edition