DFU and directly flashing the eMMC using simpler tools

I noticed that the board on first boot presents itself as DFU device:

ERROR:   CMD8
ERROR:   sd f! l:76
bm:0
ERROR:   emmc: invalid bootinfo magic code:0x0
ERROR:   invalid bootinfo image.
ERROR:   entering download mode.
ROM: usb download handler
usb2d_initialize : enter
Force usb FS mode!
Controller Run
usb rst int
SETUP: 0x0 0x5 0x1
SETUP: 0x80 0x6 0x100
SETUP: 0x80 0x6 0x100
SETUP: 0x80 0x6 0x302
SETUP: 0x80 0x6 0x302
SETUP: 0x80 0x6 0x301
SETUP: 0x80 0x6 0x301
SETUP: 0x80 0x6 0x30a
SETUP: 0x80 0x6 0x30a
SETUP: 0x80 0x6 0x200
SETUP: 0x80 0x6 0x200
SETUP: 0x80 0x6 0x300

but dfu-utils does not seem to recognize it.

Is there something missing?

Yea that was hard to figure out, and thanks to this forum and such, I figured that you’d need the flashserver binary. See my notes here on how to get there:

Hope that helps. Feedback is welcome; just reply here or add questions/remarks to the gist.

1 Like

Thank you for the investigation !

I guess it is time to ask spacemit for the sources for it.

1 Like

Alright, I figured this out; see: SpacemiT K1 SPL/FSBL/DRAM init · GitHub

The oreboot code I’m using is staged here:

though that is just my personal use case; you will figure out how to do the same thing with any other set of binaries / partitions you want :slight_smile:

Did you manage to flash using only a recent fastboot?