Jump to content

[SOLVED] Proper way to flash MMC


DrSchottky

Recommended Posts

Hi all,

I'm experimenting with OPi Zero 2+ and I would like to flash onboard eMMC with a fresh Armbian (from a clean img, not from running system).

What I did is booting from SD, downloading an Armbian img and dd'ing it into emmc device file, being sure it would have been enough since is what we do (I think?) when we write img to SD cards.

I found out it won't boot unless I manually flash sunxi-spl.bin at 0x2000.

What am I missing? Isn't that supposed to be flashed with image?

Is dd a proper method to flash a clean image on mmc from a running system?

 

Thank you

 

Link to comment
Share on other sites

Why not make a "clean" SD-card, boot this, create root-pwd/your first user with pwd and then install this "clean" image to eMMC

via armbian-config -> system -> install (to eMMC)

 

I have - personally - never dd the image to eMMC

Link to comment
Share on other sites

Yes, surely it's an easier way, but that's just a starting point for something more complicated where I won't flash a clean image (but a customized one that should be different from the OS used for flashing) and, last but not least,  I'm interested in knowing where the problem is :)

 

UPDATE: Ok, I reflashed it and now it works :huh:

So flashing through dd seems fine

 

From serial monitor I see that sometime it hangs on

U-Boot SPL 2018.11-armbian (Feb 08 2019 - 11:35:32 +0100)
DRAM: 512 MiB
Trying to boot from MMC2

that's what was happening before, but it's another kind of problem (looks like u-boot for h5 has a few issues)

Link to comment
Share on other sites

  • DrSchottky changed the title to [SOLVED] Proper way to flash MMC
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines