09-16-2018, 02:38 AM
(This post was last modified: 09-16-2018, 05:15 AM by dukla2000.
Edit Reason: update mmc-utils
)
OK - bad assumption on my part (that you would be missing mmcblk1boot0 etc).
But, to stop my machine trying to boot from my eMMC it wasn't sufficient to clear mmcblk1p1-p7, I also had to clear mmcblk1boot0 and mmcblk1boot1.
To do that I had to disable the Read-Only bit:
su (or login as root - sudo did not work for me)
echo 0 > /sys/block/mmcblk1boot0/force_ro
I then did a dd if=/dev/zero there: you have to do the reverse probably dd a u-boot there. (Note the ro bit resets after a reboot so no need to revert it)
This page seems to be dealing with a similar challenge.
PPS - just discovered mmc-utils - have installed and busy playing with it to try fully clean my eMMC. Would imagine you can add uboot with it?
PPPs - cant find major use for mmc-utils except removing ro bit, guess you folks will still need to figure manual dd of uboot?
But, to stop my machine trying to boot from my eMMC it wasn't sufficient to clear mmcblk1p1-p7, I also had to clear mmcblk1boot0 and mmcblk1boot1.
To do that I had to disable the Read-Only bit:
su (or login as root - sudo did not work for me)
echo 0 > /sys/block/mmcblk1boot0/force_ro
I then did a dd if=/dev/zero there: you have to do the reverse probably dd a u-boot there. (Note the ro bit resets after a reboot so no need to revert it)
This page seems to be dealing with a similar challenge.
PPS - just discovered mmc-utils - have installed and busy playing with it to try fully clean my eMMC. Would imagine you can add uboot with it?
PPPs - cant find major use for mmc-utils except removing ro bit, guess you folks will still need to figure manual dd of uboot?
- 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