[BH] Issues booting from eMMC with NON-BOOTABLE SD card inserted
#6
(05-14-2020, 07:08 PM)Segfault Wrote:
(05-14-2020, 03:29 PM)Boern Wrote: I think it's looking for u-boot somewhere in the first MB or so of the card. If you had an OS on there and just deleted everything from the partitions u-boot might still be on there. You have to overwrite everything with zeroes, i think 8k from the start to the start of the first partition.
Something along the lines of
Code:
dd if=/dev/zero of=/dev/mmcblk0 bs=8k seek=1 count=64
will probably be enough.
I had used this drive as an OS drive prior, however it never occurred to me the boot sector might still be populated.  Thanks for the reminder that unflagged is not overwritten!

Unfortunately, even after using dd it still would not boot with the SD card inserted.  I even went so far as to set the count to 128, thus overwritting the entire 1st MB of the drive, to no avail.

After digging around in a few drawers I found an SD card I was sure had not ever been set to boot (I've been testing allot of distro/revs on the pinephone...) and it booted up perfectly!

So, thanks for the help!

I've checked the drive in question on serveral OS's (linux and windows) using different partition managers and I'm not seeing anything that would cause it to appear as a bootable device.  Is there anyone else that is booting off of internal storage that would be willing to test if a formerly-bootable SD card causes the same issues I'm seeing?

The boot stub is located outside partitions.
On the SD card, the partition sector is located at sector 0.
This partition sector locates the first partition at, for example, sector 128 (can be another value).
In the gap between sector 0 and sector 128, there is a boot stub. Removing partitions has no effect on the boot stub.
You have to erase the first sectors of the SD card to remove the boot stub.


Messages In This Thread
RE: [BH] Issues booting from eMMC with NON-BOOTABLE SD card inserted - by drpi - 05-15-2020, 04:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  emmc speed via usb? joe1 0 44 04-27-2024, 08:07 PM
Last Post: joe1
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 1,406 11-16-2023, 05:03 AM
Last Post: DrYak
  eMMC upgrade EuvzO8 5 1,713 11-08-2023, 11:58 PM
Last Post: brken
  PinePhone Beta Edition will not boot from MicroSD card Timothy_Ecc 27 24,225 01-29-2023, 12:20 PM
Last Post: skandigraun
  RAM corruption, possible eMMC corruption alnyan 3 1,767 08-24-2022, 03:07 AM
Last Post: JeremyWadsworth
  Emmc yvan 1 1,416 07-07-2022, 08:16 AM
Last Post: Chief
  Issues with HDMI-out from convergence dock folgaran 1 1,213 06-16-2022, 04:35 PM
Last Post: alaraajavamma
  Pinephone won't boot from SD card arkadione 3 3,483 05-25-2022, 03:26 PM
Last Post: sfb
  Any experiences with hardware mod to improve eMMC speeds? kqlnut 9 6,013 04-19-2022, 02:36 PM
Last Post: kk22
  Largest supported micro SD card? zooidic 2 2,037 01-08-2022, 06:01 AM
Last Post: zooidic

Forum Jump:


Users browsing this thread: 1 Guest(s)