All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0)
@ 2010-09-25 22:16 Xianghua Xiao
  2010-09-25 22:37 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Xianghua Xiao @ 2010-09-25 22:16 UTC (permalink / raw)
  To: u-boot

Hi,

Has anyone seen this, binutils 2.10.1 can never finish generating srec by doing:
objcopy --gap-fill=0xff -O srec u-boot u-boot.srec

however with new u-boot release it works fine, the u-boot.srec can be
produced quickly.

xianghua

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0)
  2010-09-25 22:16 [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0) Xianghua Xiao
@ 2010-09-25 22:37 ` Wolfgang Denk
  2010-09-26  2:57   ` Xianghua Xiao
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2010-09-25 22:37 UTC (permalink / raw)
  To: u-boot

Dear Xianghua Xiao,

In message <AANLkTi=N3AgzAxLUdSFdvyDEb5nz=teF=eh0f4knXu-j@mail.gmail.com> you wrote:
> 
> Has anyone seen this, binutils 2.10.1 can never finish generating srec by doing:
> objcopy --gap-fill=0xff -O srec u-boot u-boot.srec
> 
> however with new u-boot release it works fine, the u-boot.srec can be
> produced quickly.

Hmmm... binutils 2.10.1 are 10 (in words: TEN !!!) years old.

It takes some courage to dig out such old code...

U-Boot 1.2.0 is also way over 3 years old.


Please consider both versions as hopelessly obsoleted and completely
unsupported.


Please update both U-Boot and especially your tool chain.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Virtual" means never knowing where your next byte is coming from.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0)
  2010-09-25 22:37 ` Wolfgang Denk
@ 2010-09-26  2:57   ` Xianghua Xiao
  2010-09-26  8:25     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Xianghua Xiao @ 2010-09-26  2:57 UTC (permalink / raw)
  To: u-boot

On Sat, Sep 25, 2010 at 5:37 PM, Wolfgang Denk <wd@denx.de> wrote:
> Dear Xianghua Xiao,
>
> In message <AANLkTi=N3AgzAxLUdSFdvyDEb5nz=teF=eh0f4knXu-j@mail.gmail.com> you wrote:
>>
>> Has anyone seen this, binutils 2.10.1 can never finish generating srec by doing:
>> objcopy --gap-fill=0xff -O srec u-boot u-boot.srec
>>
>> however with new u-boot release it works fine, the u-boot.srec can be
>> produced quickly.
>
> Hmmm... binutils 2.10.1 are 10 (in words: TEN !!!) years old.
>
> It takes some courage to dig out such old code...
>
> U-Boot 1.2.0 is also way over 3 years old.
>
>
> Please consider both versions as hopelessly obsoleted and completely
> unsupported.
>
>
> Please update both U-Boot and especially your tool chain.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "Virtual" means never knowing where your next byte is coming from.
>

my bad, it's 2.20.1 instead of 2.10.1.
also tried 2.19 the same problem stays.
of course 2.20.1 with newest u-boot works perfectly fine.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0)
  2010-09-26  2:57   ` Xianghua Xiao
@ 2010-09-26  8:25     ` Wolfgang Denk
  2010-09-26 22:49       ` Xianghua Xiao
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2010-09-26  8:25 UTC (permalink / raw)
  To: u-boot

Dear Xianghua Xiao,

In message <AANLkTimb_BmZCaF9nn3ic13xV2NX_QJqWTJRsUj7vt5B@mail.gmail.com> you wrote:
>
> > U-Boot 1.2.0 is also way over 3 years old.
...
> my bad, it's 2.20.1 instead of 2.10.1.
> also tried 2.19 the same problem stays.
> of course 2.20.1 with newest u-boot works perfectly fine.

Combining recent tool chains with very old code is also a pretty
reliable recipy to run into trouble.  Don't do it, then.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You get a wonderful view from the point of no return.
                                    - Terry Pratchett, _Making_Money_

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0)
  2010-09-26  8:25     ` Wolfgang Denk
@ 2010-09-26 22:49       ` Xianghua Xiao
  0 siblings, 0 replies; 5+ messages in thread
From: Xianghua Xiao @ 2010-09-26 22:49 UTC (permalink / raw)
  To: u-boot

On Sun, Sep 26, 2010 at 3:25 AM, Wolfgang Denk <wd@denx.de> wrote:
> Dear Xianghua Xiao,
>
> In message <AANLkTimb_BmZCaF9nn3ic13xV2NX_QJqWTJRsUj7vt5B@mail.gmail.com> you wrote:
>>
>> > U-Boot 1.2.0 is also way over 3 years old.
> ...
>> my bad, it's 2.20.1 instead of 2.10.1.
>> also tried 2.19 the same problem stays.
>> of course 2.20.1 with newest u-boot works perfectly fine.
>
> Combining recent tool chains with very old code is also a pretty
> reliable recipy to run into trouble. ?Don't do it, then.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> You get a wonderful view from the point of no return.
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Terry Pratchett, _Making_Money_
>

looking at the u-boot elf I found rodata.str1.1 is located far from
the rest sections, which is causing gap-fill to make a 4G u-boot.srec,
I moved all *rodata* in 8349's linker script to a separate rodata
section:
------------------------
.rodata :
  {
    *(.rodata)
    *(.rodata1)
    *(.rodata.str1.4)
  }
------------------------

seems it did the trick.

xianghua

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-26 22:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 22:16 [U-Boot] binutils 2.10.1 did not work with old u-boot(1.2.0) Xianghua Xiao
2010-09-25 22:37 ` Wolfgang Denk
2010-09-26  2:57   ` Xianghua Xiao
2010-09-26  8:25     ` Wolfgang Denk
2010-09-26 22:49       ` Xianghua Xiao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.