0
DrSchottky

[SOLVED] Proper way to flash MMC

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

 

Share this post


Link to post
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

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0