-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest firmware images freeze on load #25
Comments
In Ubuntu we find that meta-sifive layer patches alone are not enough. We apply more patches to enable correct preboot, and to fix memory allocation of the initrd & kernel. As otherwise it doesn't boot. |
For Ubuntu, you have to at least add the lines:
to the CONFIG_EXTRA_ENV_SETTINGS #define in include/configs/sifive-unmatched.h. |
Thanks! I just applied it here and it worked. |
I guess it's not required for OE. The way I found it was by comparing the old CONFIG_EXTRA_ENV_SETTINGS that used to get patched into a file called The new file was added to U-Boot with this commit u-boot/u-boot@70415e1#diff-81a3360df41d45f826e71e3e1112f522790a594ff8bc108a35fe0010de9f5728 |
It was submitted upstream to u-boot, further issues were identified and are being worked on to improve there. Basically memory map in u-boot at the moment is sub-optimal and either requires time-consuming relocation on every boot, or fails to boot, or has low-ish limits on kernel/initrd sizes. |
I came up with a different solution: I am not 100% sure if that's better (AFAICT it reserves more low address space for boot loader shenanigans which is needed here because the Ubuntu initrd is too large to fit inbetween the different images and thus overwrite something important (I forgot what)) but I have read on stackoverflow(?) that simply setting the |
IIRC (but might be wrong) we have noticed such issuies on BeagleV back in June. Doing something like this starfive-tech/u-boot#24 (comment) There is a patch posted on Aug 15: I am a bit surprised that I personally never hit this issue on any of the boards :/ We have increased Most likely |
This issue is fixed. |
I've built the latest versions of the images for OpenSBI, U-Boot and Linux Kernel, applied the patches from the meta-sifive repository but it freezes on load:
Using the same Kernel with previous firmware (built based on meta-sifive 2021.06 and uboot 2021.01) works fine:
The text was updated successfully, but these errors were encountered: