[U-Boot] "arm: keep all sections in ELF file" breaks Arndale

Tom Rini trini at ti.com
Tue Dec 17 16:57:48 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/17/2013 10:47 AM, Andre Przywara wrote:
> (CCing Inderpal, Chander and Minkyu)
> 
> On 12/17/2013 04:30 PM, Tom Rini wrote:
> On 12/17/2013 10:24 AM, Andre Przywara wrote:
>>>> Hi,
>>>>
>>>> the Arndale board does not work anymore with current master HEAD.
>>>> If I turn on the board, I see exactly nothing.
>>>>
>>>> I bisected it down to:
>>>> 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 is the first bad commit
>>>> commit 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7
>>>> Author: Albert ARIBAUD <albert.u.boot at aribaud.net>
>>>> Date:   Thu Nov 7 14:21:46 2013 +0100
>>>>
>>>>      arm: keep all sections in ELF file
>>>>
>>>> That patch looks like Chinese to me, does one of you have an idea what's
>>>> wrong here?
>>>> Are we missing a section, maybe for the SPL build?
> 
> So on Arndale, what file do you boot exactly?  It sounds like not
> u-boot.img but some tool stripping / modifying u-boot (or
> spl/u-boot-spl) and having relied on certain sections being stripped out
> before being run.
> 
>> Good point. Indeed I boot u-boot-dtb.bin (the SPL is
>> spl/arndale-spl.bin). So the Makefile does:
>> cat u-boot.bin u-boot.dtb >u-boot-dtb.bin
> 
>> I guess the address under which U-boot expects to find the attached dtb
>> changes due to the non-discarding.
> 
>> Does any of the Arndale people have an idea how to fix this?

That's a little confusing as we use objcopy -O binary to make
u-boot.bin/u-boot-spl.bin and that would, I would think, drop these
sections anyhow.  But some checking of binary size with the patch in
question locally reverted would help shed some light here.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSsHR8AAoJENk4IS6UOR1W+7MQALP3dn79SRWgTTxHQ1SVMUbB
FC0mVsupa296m5WfcDRPkijtZecAeTkFGVmizTSqjLepKhV5Tnqy4uQePhwxwdcg
v9oC5/hq7NXuJIB+bzUyc05kznrBqqJ4nyS7FGJDZNmXYhbtt6BdUDSrPMVX1eLk
TkPPZ1ksD2oyJL8el/f8LlQRrKu68GaJY63qdvgFtRfGaQ+OuRYLJZ6ow3IZDbuu
+Cl9easvbEaq/db/t2U72s5VozGyMgx855w+aU9eZW7OmS2pSpSjETx3VBRW8vDv
HsHKFwykHOtajp644oGEQHvUA7PWZdPsfFOh38POp+7x5YYYNSdNO3D0yZ0PmzrD
E7w6p4bWUlZK/xQ3Bi5BYKI4Ps+0Rf64fGUHc13ML9P0aG4quNHDhHm98UT9EEWD
ZoJLRccoGvZjGNonz/Q8Hx18NWBfcFpwSFHhxMGUGfWiyjSDwaiplpXHujcOXlSC
zZQs7WT4vPfaWsTdpyaREEZ+4W6nJgf2Zyaakdn/ul+6EUjERrHEvVIe9RrsG7Ut
NsOCk0P0txWW+gEHrViorNL6n142Fb/0gwhJnAvUmpvPqOZlQqaDvE998/PzBWmi
E7cY+CEktxaTHGFWsSo/QYS+AUZBx1k7Oq+yKnFXn+pvLnnr4Z9qF2cF/RByJ2v3
1vBudkiMaREUsuKm6H6x
=aMwD
-----END PGP SIGNATURE-----


More information about the U-Boot mailing list