lu_zero
(Luca Barbato)
May 20, 2024, 8:14am
1
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?
CyReVolt
(Daniel Maslowski)
July 11, 2024, 3:19am
2
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
lu_zero
(Luca Barbato)
July 11, 2024, 5:29am
3
Thank you for the investigation !
I guess it is time to ask spacemit for the sources for it.
1 Like
CyReVolt
(Daniel Maslowski)
August 9, 2024, 9:07pm
4
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
lu_zero
(Luca Barbato)
August 10, 2024, 11:52am
5
Did you manage to flash using only a recent fastboot?