Flashing u-boot on SD card

Hi all.

I have been trying to get my distro to boot on the Vim3 for a while now and have concluded that I need to flash uboot on the SD card to make it boot it.

So, since there is no documentation on this part in the Khadas Docs, I am asking here.

I have a u-boot.bin.sd.bin file built. But I have no flashing info on this file.
Other boards usually have a dd if=uboot.bin of=/dev/mmcblkX seek=X command for this.
So what is the specific uboot flashing command for the Vim3?

Thanks for the help.

For directly boot from SD card, both VIM1,VIM2 and VIM3 are the same.

You can refer to this documentation:

https://docs.khadas.com/vim3/CreateBootableSDCard.html

Note: If you want to boot from SD card, you have to erase the eMMC storage

kvim3#store init 3
kbvi3#reset
1 Like

Thanks.

I think we got it now.

Found these DD commands for SD cards which seems to work:

dd if=/boot/u-boot.bin.sd.bin of=/dev/mmcblk1 bs=1 count=444
dd if=/boot/u-boot.bin.sd.bin of=/dev/mmcblk1 bs=512 skip=1 seek=1
1 Like