02-13-2020, 04:40 AM
(This post was last modified: 02-13-2020, 05:38 AM by dukla2000.
Edit Reason: to add solution
)
SOLVED IN MY CASE: TOP TIP FROM Funeral_Chris ON IRC TO FORMAT THE eMMC FIRST TO CLEAR THE FACTORY IMAGE.
I have also just failed to install to eMMC.
My Brave Heart has booted pmOS/phosh from SDcard fine.
I have pmbootstrap setup fine on the phosh installation.
AFAIK emmc appears as /dev/mmcblk2
Everything runs fine with pmbootstrap until the actual copy to eMMC
Any suggestions how to get mkfs to overcome its inhibitions?
I have also just failed to install to eMMC.
My Brave Heart has booted pmOS/phosh from SDcard fine.
I have pmbootstrap setup fine on the phosh installation.
AFAIK emmc appears as /dev/mmcblk2
Everything runs fine with pmbootstrap until the actual copy to eMMC
Code:
$ pmbootstrap install --sdcard /dev/mmcblk2
...
(003064) [10:28:16] *** (3/5) PREPARE INSTALL BLOCKDEVICE ***
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/var/cache/distfiles
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/var/cache/apk
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/proc
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-rust
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-packages
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-git
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-ccache
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/mnt/pmbootstrap-abuild-config
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/etc/apk/keys
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/dev/shm
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/dev
(003064) [10:28:16] % sudo du --summarize --block-size=1 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
1075089408 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone
(003064) [10:28:16] % sudo du --summarize --block-size=1 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
46227456 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/boot
(003064) [10:28:16] % sudo du --summarize --block-size=1 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
8192 /home/chris/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone/home
(003064) [10:28:16] (native) mount /dev/install (host: /dev/mmcblk2)
(003064) [10:28:16] % sudo touch /home/chris/.local/var/pmbootstrap/chroot_native/dev/install
(003064) [10:28:16] % sudo mount --bind /dev/mmcblk2 /home/chris/.local/var/pmbootstrap/chroot_native/dev/install
(003064) [10:28:16] % sudo touch /home/chris/.local/var/pmbootstrap/chroot_native/dev/sdcardp1
(003064) [10:28:16] % sudo mount --bind /dev/mmcblk2p1 /home/chris/.local/var/pmbootstrap/chroot_native/dev/sdcardp1
(003064) [10:28:16] (native) % blkid -s LABEL -o value /dev/sdcardp1
/dev/sdcardp1: LABEL="pmOS_boot" UUID="e1c1b6b8-94f9-4b91-9438-3f4aea445694" TYPE="ext2"
(003064) [10:28:16] % sudo umount /home/chris/.local/var/pmbootstrap/chroot_native/dev/sdcardp1
[10:28:16] WARNING: This device has a previous installation of pmOS. CONTINUE? (y/n) [n] y
(003064) [10:28:22] (native) partition /dev/install (boot: 69M, root: the rest)
(003064) [10:28:22] (native) % parted -s /dev/install mktable msdos
(003064) [10:28:22] (native) % parted -s /dev/install mkpart primary ext2 2048s 69M
(003064) [10:28:22] (native) % parted -s /dev/install mkpart primary 69M 100%
(003064) [10:28:22] (native) % parted -s /dev/install set 1 boot on
(003064) [10:28:22] % sudo touch /home/chris/.local/var/pmbootstrap/chroot_native/dev/installp1
(003064) [10:28:22] % sudo mount --bind /dev/mmcblk2p1 /home/chris/.local/var/pmbootstrap/chroot_native/dev/installp1
(003064) [10:28:22] % sudo touch /home/chris/.local/var/pmbootstrap/chroot_native/dev/installp2
(003064) [10:28:22] % sudo mount --bind /dev/mmcblk2p2 /home/chris/.local/var/pmbootstrap/chroot_native/dev/installp2
(003064) [10:28:22] (native) format /dev/installp2
(003064) [10:28:22] (native) % mkfs.ext4 -O ^metadata_csum -F -q -L pmOS_root /dev/installp2
/dev/installp2 is apparently in use by the system; will not make a filesystem here!
(003064) [10:28:22] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(003064) [10:28:22] NOTE: The failed command's output is above the ^^^ line in the log file: /home/chris/.local/var/pmbootstrap/log.txt
- ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
- PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
- PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC