[PATCH 0/8] Impedance matcher for Samsung boards

Nicolas Pitre nico at fluxnic.net
Wed Dec 11 10:48:27 EST 2013


On Wed, 11 Dec 2013, Daniel Mack wrote:

> On 12/11/2013 03:28 PM, Tomasz Figa wrote:
> > There are some parameters that bootloaders normally pass with ATAGS
> > and can't be hardcoded in DT, such as initrd location in memory, serial
> > number, board revision, command line and in some cases even memory,
> > as on some boards it might vary between units.
> 
> Ok, that was my question :) Sure, if you have units that differ in
> hardware details, but are indistinguishable by their machine ID or board
> revision number, there's not much that we can do but modify the FDT at
> runtime. Serial numbers are also something that can't be solved in a
> nicer way.
> 
> What bugs me, though, is that it blows up the code base so massively.

You could investigate gcc's -ffunction-sections argument.  This won't 
help with the code size, but it does help for discarding unreferenced 
functions from the final lbinary.


Nicolas



More information about the linux-arm-kernel mailing list