I’m trying to use upgraded opensbi and u-boot from 2021.07 with meta-sifive patches. For opensbi, the meta-sifive patches either don’t apply or aren’t relevant… For u-boot, I’ve got 13 patches applied.
However, this solution doesn’t work for me, I get this:
U-Boot SPL 2021.07-00020-g44d6cab48e (Aug 01 2021 - 09:14:31 +1200) Trying to boot from MMC1 Could not get FIT buffer of 2735104 bytes check CONFIG_SYS_SPL_MALLOC_SIZE Unhandled exception: Load address misaligned EPC: 0000000008003466 RA: 0000000008003466 TVAL: 00000000856fee5e resetting ... reset not supported yet ### ERROR ### Please RESET the board ###
I am still using the advice of carlosedp for burning u-boot/spl/u-boot-spl.bin to partition1, and u-boot/u-boot.itb to partition2.
fw_payload.bin is 2105640 bytes, and u-boot.itb is 2735047 bytes.
Do the settings in include/configs/sifive-unmatched.h regarding SPL need changing?
I changed them to this, and now it boots:
#define CONFIG_SPL_MAX_SIZE 0x00400000 #define CONFIG_SPL_BSS_MAX_SIZE 0x00400000 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x00400000