[U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

Alexander Graf agraf at suse.de
Thu Oct 19 12:10:51 UTC 2017


On 10/19/2017 11:11 AM, Maxime Ripard wrote:
> On Thu, Oct 19, 2017 at 10:44:54AM +0200, Alexander Graf wrote:
>> On 10/19/2017 10:26 AM, Maxime Ripard wrote:
>>> Hi,
>>>
>>> Most featureful boards, such as the Cubietruck, have been broken since
>>> the release 2017.09.
>>>
>>> This is due to a size increase of the binary that will trip us across
>>> the size we've been using in the u-boot-sunxi-with-spl.bin file.
>>>
>>> We would have two ways to work around it. The first one would be to
>>> just increase the offset of the environment. However, since it would
>>> break all the environments of our users and possibly the custom
>>> partition scheme that they would have created, it doesn't really seem
>>> like a smart move.
>>>
>>> Another one would be to start trimming down a bit our enabled options
>>> in order to reduce the size and to gain some extra space for users
>>> customisations. I've taken care some of the low hanging fruits, and we
>>> should probably take another go at it in the future (and add a size
>>> check in the image build somehow?)
>> How about we add the size check first before crippling the feature
>> set of sunxi boards? Then maybe rather disable lesser used features
>> than efi_loader?
> All the features have some users. All the kind of arguments that have
> been sent so far are that "but I use this feature". Yes. You probably
> do. But you can have the same kind of argument for any of the features
> enabled.

I agree, but my first statement still holds: Please make sure we don't 
overrun our size restrictions first so that these issue get caught early 
during the development cycle, not when U-Boot is already released.

That said, how about we just imply SYS_THUMB_BUILD in ARCH_SUNXI? That 
way we save even more (going from 537K to 417K with gcc7.1) without 
losing any feature set on 32bit systems.


Alex



More information about the U-Boot mailing list