PINE64
PInebook not booting with eMMC enabled - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: PInebook not booting with eMMC enabled (/showthread.php?tid=15157)



PInebook not booting with eMMC enabled - aragaer - 10-21-2021

Right now I have an SD card with Manjaro. If I disable eMMC and press reset, the power led goes red and then pinebook boots to Manjaro from SD. If I enable eMMC and press reset, power led goes off and nothing happens. I did check that eMMC is properly connected. What else can I try?


RE: PInebook not booting with eMMC enabled - wdt - 10-22-2021

(10-21-2021, 03:35 PM)aragaer Wrote: Right now I have an SD card with Manjaro. If I disable eMMC and press reset, the power led goes red and then pinebook boots to Manjaro from SD. If I enable eMMC and press reset, power led goes off and nothing happens. I did check that eMMC is properly connected. What else can I try?

You have a "bad" uboot on emmc,, search order for uboot (really idbloader)  is SPI, emmc, uSD
Boot from SD, re-enable emmc, use the bind command (search forum), change uboot on emmc


RE: PInebook not booting with eMMC enabled - aragaer - 10-22-2021

(10-22-2021, 09:48 AM)wdt Wrote:
(10-21-2021, 03:35 PM)aragaer Wrote: Right now I have an SD card with Manjaro. If I disable eMMC and press reset, the power led goes red and then pinebook boots to Manjaro from SD. If I enable eMMC and press reset, power led goes off and nothing happens. I did check that eMMC is properly connected. What else can I try?

You have a "bad" uboot on emmc,, search order for uboot (really idbloader)  is SPI, emmc, uSD
Boot from SD, re-enable emmc, use the bind command (search forum), change uboot on emmc

Tried that -- when I boot and re-enable emmc, it's not visible in the system: /dev/mmc* only shows the SD card. When I try the commands in the https://wiki.pine64.org/index.php/Pinebook_Pro#eMMC_information I'm getting "write error: No such device"

When I look in /sys/platform/devices, there is no ff330000.sdhci device, but there is ff330000.mmc device instead. I tried the following commands:
Code:
echo ff330000.mmc > /sys/bus/platform/drivers/sdhci-arasan/unbind
echo ff330000.mmc > /sys/bus/platform/drivers/sdhci-arasan/bind
These worked but no effect -- I only got a couple of error messages in dmesg.


RE: PInebook not booting with eMMC enabled - aragaer - 10-25-2021

I've got me an A-A USB cable to try the recovery process but failed to do that (probably didn't do the sequence right). Instead I tried again to boot with eMMC disabled and enable it once the boot started. I've stopped the U-boot from automatically booting and it showed that eMMC does indeed exist. After that I booted into Linux and did `dd if=/dev/mmcblk1 of=/dev/mmcblk2` (from SD card to eMMC). Rebooted again and it booted from eMMC.


RE: PInebook not booting with eMMC enabled - wdt - 10-25-2021

That's good
Really, all you needed to do was copy mbr (1 sector) to sd, dd 1st 16M sd->emmc, restore emmc mbr
If it should be a little 'flakey' a non-booted distro has the /dev, /sys, /proc, /run
directories empty, just the top directories and the kernel fills them with virtual files
So, you may have to boot from sd, mount emmc and empty those directories
I've found mc (as root) the quickest and least hassle