Update u-boot @ SD-card (Debian Buster)

Started by JimT, April 27, 2020, 10:05:10 am

Previous topic - Next topic

JimT

Some weeks ago, I finally made it to install Debian Buster on SD-card using a modified u-boot on a A20-lime2 Revision K.

How can I update my u-boot to the latest release?

Has anyone done this bevore and can it explain it in short words or maybe there's a tutorial available somewhere.
Thanks a lot in advance!
Greetz Jim


JimT

I spent some time on that, searching "the whole" internet:

Firstly get the newest u-boot.bin by compiling it, e.g.
Then get in u-boot prompt by serial console.

1. set usb-drive to current one: "usb dev 0" (or whatever usb device)
2. "mw.b 0x48000000 0x00 0x100000"
3. "ext2load usb 0 0x48000000 u-boot-sunxi-with-spl.bin"
3. "mmc erase 0x10 0x400"
4. "mmc write 0x48000000 0x10 0x400"

BUT, after a reboot Debian is not booting:

Boot message:
U-Boot SPL 2020.07 (Jul 10 2020 - 11:00:01 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


and constantly repeating...

Has anybody ever upgraded u-boot and can me pleas explain how to do it or post some links to a tutorial on that?


kuleszdl

It looks like not Debian is not booting but your u-boot does not get past one of its early stages.

I recommend the following approach:

- get a fresh sdcard or zero out the first sectors of the existing one (e. g. with dd)
- compile your u-boot using the right config (not sure if you selected the right one since it does not print the board correctly).
- flash u-boot as follows (replace `sdX` by your actual device:

dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 conv=notrunc
Can you please post how you actually compiled your u-boot? Maybe something in these steps was not correct. Or you just flashed the wrong file from the binaries u-boot produces.