[PATCH 0/3] Update riscv's SYS_BOOTM_LEN to the most commonly used value.
E Shattow
e at freeshell.de
Wed Jul 16 18:23:14 CEST 2025
On 7/16/25 03:11, Martin Herren wrote:
> Hej all,
>
> On Wednesday, July 16th, 2025 at 3:35 AM, E Shattow <e at freeshell.de> wrote:
>>
>
>>
>
>> Is there some reason for the value from documentation about the
>> architecture? Or is it arbitrary?
>>
>
>> I don't really see the sense in a default value which is simply popular
>> but not founded in an architectural reasoning.
>>
>
>> The values do not change often (ever?) so I miss why there is any
>> default at all.
>>
>
>> -E
>
> No, there is no documentation justifying this value. My reasoning was the reverse, there is no justification either that this default value should be almost an order of magnitude lower than ARM64 as typically generated RISCV code size is similar and thus the typical kernel size as well.
>
> This is reflected in the most commonly used value in the existing riscv defconfigs as well as other boards not yet mainlined into u-boot.
>
> With a lower value, typical kernels generated from Yocto or others are too big to be able to be booted.
>
> In my idea the default value, when provided, should reflect the most common use case which can then be overridden if wanted.
>
> I understand it was a very bold move on my side as a first submission to challenge a default value and touch over 30 boards, so i won't be offended if this is not accepted. The learning experience on just submitting a patch here and learning about patman and co is already a success for me.
>
> Still I consider the proposed new default as sane and maybe more future oriented for new boards to come.
>
> Cheers,
>
> Martin
My concern is to not-find what I am looking for where I am looking for
it and then hunt around to determine where this value comes from. A
default ceases to be a default when there are more than a few
exceptions, as it then becomes an obfuscation.
I do tend to complain when the code base becomes clever for the sake of
being clever, and defer to actual programmers however... all else being
the same (it compiles the same?) go with what you think is most
maintainable and readable.
-E
More information about the U-Boot
mailing list