pmboostrap to emmc
#2
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

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
Any suggestions how to get mkfs to overcome its inhibitions?
  • 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


Messages In This Thread
pmboostrap to emmc - by Gobelin - 02-10-2020, 03:58 AM
RE: pmboostrap to emmc - by dukla2000 - 02-13-2020, 04:40 AM
RE: pmboostrap to emmc - by hk135 - 02-17-2020, 04:55 AM
RE: pmboostrap to emmc [Resolved] - by Gobelin - 02-18-2020, 04:31 PM
RE: pmboostrap to emmc - by catalin - 06-17-2020, 02:32 AM
RE: pmboostrap to emmc - by PureTryOut - 06-18-2020, 04:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  phone won't boot from emmc with sdcard inserted ssilvi 3 4,339 06-06-2021, 02:47 AM
Last Post: ssilvi
  eMMC Partitioning/Formatting Izzet 3 4,846 01-12-2021, 03:57 PM
Last Post: Izzet
  Cannot find a method of flashing to EMMC that works MarkF 4 7,100 10-30-2020, 09:06 PM
Last Post: discogribbs

Forum Jump:


Users browsing this thread: 3 Guest(s)