PINE64
Buildroot 2021.08 not booting from SD card - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Buildroot 2021.08 not booting from SD card (/showthread.php?tid=15274)



Buildroot 2021.08 not booting from SD card - jimmy - 11-06-2021

Good evening,

Has anyone been able to get the recent versions of Buildroot working with the rock64_defconfig? 

As of this writing, it pulls in the following:

All I can get on the UART console is the following:
Code:
U-Boot SPL 2021.07 (Nov 06 2021 - 16:11:06 -0500)
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
Trying to boot from MMC2
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

I've tried with more recent 5.13.x kernels as well, but no matter what, I'm not able to get past this point.  There is no eMMC connected, only the SD card.  Armbian seems to boot from the SD card just fine.

Any help would be appreciated!


RE: Buildroot 2021.08 not booting from SD card - hunderteins - 11-08-2021

Hello,
the linux-kernel does not matter with this output. Your rock64 has mastered to boot the spl (the idbloader-part of u-boot, at 0x8000 offset), but can not find the  u-boot.itb on mmc1.
Did you write it at 0x40000 offset of  your mmc?
# dd if=u-boot.itb of=/dev/mmcblk0 seek=512 bs=512

Did you overwrite it with the first partition of your mmc? You should leave about 2M at the start of the mmc for u-boot. So start your first partition at least at sector 4096, make it an EFI System with vfat and /extlinux/extlinux.conf in it. After that you can worry about your linux-kernel.
Good luck,
hunderteins