
On Sat, Oct 16, 2021 at 01:22:35PM +0200, Sören Tempel wrote:
Tom Rini trini@konsulko.com wrote:
I believe, that risc-v, until the current dev tree (so v2022.01) doesn't set the flag to prevent itself from being overwritten when preparing to boot the OS.
If I understand your comment correctly, this means that the issue has been fixed in the v2022.01 dev tree? If so: Could you point me to the commit fixing the issue?
It's a series actually: https://patchwork.ozlabs.org/project/uboot/list/?series=258110&state=*
So the correct change is indeed to set CONFIG_SYS_BOOTMAPSZ as this does tell U-Boot to always contain kernel/dtb/initrd to within that size window, from start of memory (roughly).
Alright, I guess we are applying this CONFIG_SYS_BOOTMAPSZ change downstream then until v2022.01 is released.
Sounds like a good plan, yes.