public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
@ 2011-12-03  2:56 Robert P. J. Day
  2011-12-03  5:12 ` Marek Vasut
  0 siblings, 1 reply; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03  2:56 UTC (permalink / raw)
  To: u-boot


  so i got permission to try to update u-boot on one of the TQM860
boards, so i checked out the u-boot git repo, ran:

$ make TQM860L_config
$ make

and eventually got:

u-boot.lds:76 cannot move location counter backwards (from 40008604 to 40008000)
make: *** [u-boot] Error 1

i can read an explanation of what that allegedly means here:

http://www.denx.de/wiki/view/DULG/PortingProblemCannotMoveLocationCounterBackwards

but that explanation is in the context of someone *porting* u-boot to
a new board.  should i expect this for what should be an already
supported board?

  in any event, it's late so i'll tackle this again tomorrow.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  2:56 [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards Robert P. J. Day
@ 2011-12-03  5:12 ` Marek Vasut
  2011-12-03  7:59   ` Robert P. J. Day
  0 siblings, 1 reply; 13+ messages in thread
From: Marek Vasut @ 2011-12-03  5:12 UTC (permalink / raw)
  To: u-boot

>   so i got permission to try to update u-boot on one of the TQM860
> boards, so i checked out the u-boot git repo, ran:
> 
> $ make TQM860L_config
> $ make
> 
> and eventually got:
> 
> u-boot.lds:76 cannot move location counter backwards (from 40008604 to
> 40008000) make: *** [u-boot] Error 1
> 
> i can read an explanation of what that allegedly means here:
> 
> http://www.denx.de/wiki/view/DULG/PortingProblemCannotMoveLocationCounterBa
> ckwards
> 
> but that explanation is in the context of someone *porting* u-boot to
> a new board.  should i expect this for what should be an already
> supported board?
> 
>   in any event, it's late so i'll tackle this again tomorrow.
> 
> rday

What version of uboot do you use? What compiler and it's version do you use?

M

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  5:12 ` Marek Vasut
@ 2011-12-03  7:59   ` Robert P. J. Day
  2011-12-03  8:16     ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03  7:59 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Marek Vasut wrote:

> >   so i got permission to try to update u-boot on one of the TQM860
> > boards, so i checked out the u-boot git repo, ran:
> >
> > $ make TQM860L_config
> > $ make
> >
> > and eventually got:
> >
> > u-boot.lds:76 cannot move location counter backwards (from 40008604 to
> > 40008000) make: *** [u-boot] Error 1
> >
> > i can read an explanation of what that allegedly means here:
> >
> > http://www.denx.de/wiki/view/DULG/PortingProblemCannotMoveLocationCounterBa
> > ckwards
> >
> > but that explanation is in the context of someone *porting* u-boot to
> > a new board.  should i expect this for what should be an already
> > supported board?
> >
> >   in any event, it's late so i'll tackle this again tomorrow.
> >
> > rday
>
> What version of uboot do you use? What compiler and it's version do you use?

  i'm using the latest "git pull" of u-boot, and:

$ powerpc-unknown-linux-gnu-gcc --version
powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
...

i get the same result with u-boot 2010.12.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  7:59   ` Robert P. J. Day
@ 2011-12-03  8:16     ` Wolfgang Denk
  2011-12-03  8:30       ` Robert P. J. Day
  2011-12-03 17:47       ` Robert P. J. Day
  0 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Denk @ 2011-12-03  8:16 UTC (permalink / raw)
  To: u-boot

Dear Robert,

In message <alpine.DEB.2.02.1112030255250.24308@oneiric> you wrote:
> 
> > What version of uboot do you use? What compiler and it's version do you use?
> 
>   i'm using the latest "git pull" of u-boot, and:
> 
> $ powerpc-unknown-linux-gnu-gcc --version
> powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
> ...
> 
> i get the same result with u-boot 2010.12.

Your tool chain is broken / generates inefcient code.

Top of tree:
-> git describe
v2011.09-1259-g7708d8b
-> eldk-switch -r 4.2 ppc_8xx
Setup for ppc_8xx (using ELDK 4.2)
-> ${CROSS_COMPILE}gcc -v
...
gcc version 4.2.2
-> ./MAKEALL TQM860L
Configuring for TQM860L board...
   text    data     bss     dec     hex filename
 261815   14100   27240  303155   4a033 ./u-boot

--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------
-> eldk-switch -r 5.1 powerpc
Setup for powerpc (using ELDK 5.1)
-> ${CROSS_COMPILE}gcc -v
...
gcc version 4.6.1 20110627 (prerelease) (GCC) 
-> ./MAKEALL TQM860L
Configuring for TQM860L board...
   text    data     bss     dec     hex filename
 256410    4444   27212  288066   46542 ./u-boot

--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------


So both older tool chains (GCC 4.2.2) and more recent ones (gcc
6.6.1) build top of tree fine. I save the efforts of building
v2010.12 because I already did as part of the QA for that release.

Get yourself a working 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
I paid too much for it, but its worth it.

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  8:16     ` Wolfgang Denk
@ 2011-12-03  8:30       ` Robert P. J. Day
  2011-12-03  8:36         ` Marek Vasut
  2011-12-03 17:47       ` Robert P. J. Day
  1 sibling, 1 reply; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03  8:30 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Wolfgang Denk wrote:

> Dear Robert,
>
> In message <alpine.DEB.2.02.1112030255250.24308@oneiric> you wrote:
> >
> > > What version of uboot do you use? What compiler and it's version do you use?
> >
> >   i'm using the latest "git pull" of u-boot, and:
> >
> > $ powerpc-unknown-linux-gnu-gcc --version
> > powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
> > ...
> >
> > i get the same result with u-boot 2010.12.
>
> Your tool chain is broken / generates inefcient code.

  ok, i'll grab another one, thanks.

rday

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  8:30       ` Robert P. J. Day
@ 2011-12-03  8:36         ` Marek Vasut
  2011-12-03  8:46           ` Robert P. J. Day
  0 siblings, 1 reply; 13+ messages in thread
From: Marek Vasut @ 2011-12-03  8:36 UTC (permalink / raw)
  To: u-boot

> On Sat, 3 Dec 2011, Wolfgang Denk wrote:
> > Dear Robert,
> > 
> > In message <alpine.DEB.2.02.1112030255250.24308@oneiric> you wrote:
> > > > What version of uboot do you use? What compiler and it's version do
> > > > you use?
> > > > 
> > >   i'm using the latest "git pull" of u-boot, and:
> > > $ powerpc-unknown-linux-gnu-gcc --version
> > > powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
> > > ...
> > > 
> > > i get the same result with u-boot 2010.12.
> > 
> > Your tool chain is broken / generates inefcient code.
> 
>   ok, i'll grab another one, thanks.
> 
> rday

I think I told you already to try ELDK 5.0 / 5.1.

M

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  8:36         ` Marek Vasut
@ 2011-12-03  8:46           ` Robert P. J. Day
  0 siblings, 0 replies; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03  8:46 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Marek Vasut wrote:

> > On Sat, 3 Dec 2011, Wolfgang Denk wrote:
> > > Dear Robert,
> > >
> > > In message <alpine.DEB.2.02.1112030255250.24308@oneiric> you wrote:
> > > > > What version of uboot do you use? What compiler and it's version do
> > > > > you use?
> > > > >
> > > >   i'm using the latest "git pull" of u-boot, and:
> > > > $ powerpc-unknown-linux-gnu-gcc --version
> > > > powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
> > > > ...
> > > >
> > > > i get the same result with u-boot 2010.12.
> > >
> > > Your tool chain is broken / generates inefcient code.
> >
> >   ok, i'll grab another one, thanks.
> >
> > rday
>
> I think I told you already to try ELDK 5.0 / 5.1.

  downloading as we speak.

rday

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03  8:16     ` Wolfgang Denk
  2011-12-03  8:30       ` Robert P. J. Day
@ 2011-12-03 17:47       ` Robert P. J. Day
  2011-12-03 18:40         ` Anatolij Gustschin
  1 sibling, 1 reply; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03 17:47 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Wolfgang Denk wrote:

> Dear Robert,
>
> In message <alpine.DEB.2.02.1112030255250.24308@oneiric> you wrote:
> >
> > > What version of uboot do you use? What compiler and it's version do you use?
> >
> >   i'm using the latest "git pull" of u-boot, and:
> >
> > $ powerpc-unknown-linux-gnu-gcc --version
> > powerpc-unknown-linux-gnu-gcc (crosstool-NG-1.10.0) 4.4.5
> > ...
> >
> > i get the same result with u-boot 2010.12.
>
> Your tool chain is broken / generates inefcient code.
>
> Top of tree:
> -> git describe
> v2011.09-1259-g7708d8b
> -> eldk-switch -r 4.2 ppc_8xx
> Setup for ppc_8xx (using ELDK 4.2)

  i'm sure someone will yell at me for this question as well, but
where does one find "eldk-switch"?  i have a fully updated git clone
of uboot and there is no such script (which is what i assume i'm
looking for).

rday

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03 17:47       ` Robert P. J. Day
@ 2011-12-03 18:40         ` Anatolij Gustschin
  2011-12-03 20:12           ` Robert P. J. Day
  0 siblings, 1 reply; 13+ messages in thread
From: Anatolij Gustschin @ 2011-12-03 18:40 UTC (permalink / raw)
  To: u-boot

Hi Robert,

On Sat, 3 Dec 2011 12:47:47 -0500 (EST)
"Robert P. J. Day" <rpjday@crashcourse.ca> wrote:
...
> > Top of tree:
> > -> git describe
> > v2011.09-1259-g7708d8b
> > -> eldk-switch -r 4.2 ppc_8xx
> > Setup for ppc_8xx (using ELDK 4.2)
> 
>   i'm sure someone will yell at me for this question as well, but
> where does one find "eldk-switch"?  i have a fully updated git clone
> of uboot and there is no such script (which is what i assume i'm
> looking for).

eldk-switch is internally used script, it is not distributed with
U-Boot since its purpose is to configure environment in preparation
for building using desired ELDK version.

You don't need this script. You can setup environment i. e. by
running

$ export ARCH=powerpc
$ export CROSS_COMPILE=ppc_8xx-
$ export PATH=<your-eldk-root-dir>/usr/bin:$PATH

To check if the environment is set correctly you can try to run
installed cross gcc, i.e. run:

${CROSS_COMPILE}gcc -v

More info is available in ELDK documentation, i. e. [1]

HTH,
Anatolij

[1] http://www.denx.de/wiki/view/DULG/ELDKUsage

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03 18:40         ` Anatolij Gustschin
@ 2011-12-03 20:12           ` Robert P. J. Day
  2011-12-03 21:15             ` Anatolij Gustschin
  2011-12-03 22:58             ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03 20:12 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Anatolij Gustschin wrote:

> Hi Robert,
>
> On Sat, 3 Dec 2011 12:47:47 -0500 (EST)
> "Robert P. J. Day" <rpjday@crashcourse.ca> wrote:
> ...
> > > Top of tree:
> > > -> git describe
> > > v2011.09-1259-g7708d8b
> > > -> eldk-switch -r 4.2 ppc_8xx
> > > Setup for ppc_8xx (using ELDK 4.2)
> >
> >   i'm sure someone will yell at me for this question as well, but
> > where does one find "eldk-switch"?  i have a fully updated git clone
> > of uboot and there is no such script (which is what i assume i'm
> > looking for).
>
> eldk-switch is internally used script, it is not distributed with
> U-Boot since its purpose is to configure environment in preparation
> for building using desired ELDK version.
>
> You don't need this script. You can setup environment i. e. by
> running
>
> $ export ARCH=powerpc
> $ export CROSS_COMPILE=ppc_8xx-
> $ export PATH=<your-eldk-root-dir>/usr/bin:$PATH
>
> To check if the environment is set correctly you can try to run
> installed cross gcc, i.e. run:
>
> ${CROSS_COMPILE}gcc -v
>
> More info is available in ELDK documentation, i. e. [1]

  um, my understanding for the need of that script (or its equivalent,
which i assume is just to switch to the git 4.2 branch), is to avoid
this issue:

  http://lists.denx.de/pipermail/eldk/2011-November/002052.html

which is *precisely* what i ran into, so i'm assuming i need to back
off to v4.2. unless that issue has been addressed already in the ELDK
toolchain development branch but i didn't see any git commit that
referred to it.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03 20:12           ` Robert P. J. Day
@ 2011-12-03 21:15             ` Anatolij Gustschin
  2011-12-03 21:27               ` Robert P. J. Day
  2011-12-03 22:58             ` Wolfgang Denk
  1 sibling, 1 reply; 13+ messages in thread
From: Anatolij Gustschin @ 2011-12-03 21:15 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011 15:12:44 -0500 (EST)
"Robert P. J. Day" <rpjday@crashcourse.ca> wrote:
...
>   um, my understanding for the need of that script (or its equivalent,
> which i assume is just to switch to the git 4.2 branch), is to avoid
> this issue:
> 
>   http://lists.denx.de/pipermail/eldk/2011-November/002052.html
> 
> which is *precisely* what i ran into, so i'm assuming i need to back
> off to v4.2. unless that issue has been addressed already in the ELDK
> toolchain development branch but i didn't see any git commit that
> referred to it.

For mpc860 you have to use pre-build ELDK-4.2, available at [1].
Mount the iso file, install ppc_8xx cpu family version as described
in ELDK documentation [2].

Anatolij

[1] ftp://ftp.denx.de/pub/eldk/4.2/ppc-linux-x86/iso/ppc-2008-04-01_freescale.iso
[2] http://www.denx.de/wiki/view/DULG/ELDKInitialInstallation

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03 21:15             ` Anatolij Gustschin
@ 2011-12-03 21:27               ` Robert P. J. Day
  0 siblings, 0 replies; 13+ messages in thread
From: Robert P. J. Day @ 2011-12-03 21:27 UTC (permalink / raw)
  To: u-boot

On Sat, 3 Dec 2011, Anatolij Gustschin wrote:

> On Sat, 3 Dec 2011 15:12:44 -0500 (EST)
> "Robert P. J. Day" <rpjday@crashcourse.ca> wrote:
> ...
> >   um, my understanding for the need of that script (or its equivalent,
> > which i assume is just to switch to the git 4.2 branch), is to avoid
> > this issue:
> >
> >   http://lists.denx.de/pipermail/eldk/2011-November/002052.html
> >
> > which is *precisely* what i ran into, so i'm assuming i need to back
> > off to v4.2. unless that issue has been addressed already in the ELDK
> > toolchain development branch but i didn't see any git commit that
> > referred to it.
>
> For mpc860 you have to use pre-build ELDK-4.2, available at [1].
> Mount the iso file, install ppc_8xx cpu family version as described
> in ELDK documentation [2].
>
> Anatolij
>
> [1] ftp://ftp.denx.de/pub/eldk/4.2/ppc-linux-x86/iso/ppc-2008-04-01_freescale.iso
> [2] http://www.denx.de/wiki/view/DULG/ELDKInitialInstallation

  ok, i've gone through that process before, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards
  2011-12-03 20:12           ` Robert P. J. Day
  2011-12-03 21:15             ` Anatolij Gustschin
@ 2011-12-03 22:58             ` Wolfgang Denk
  1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Denk @ 2011-12-03 22:58 UTC (permalink / raw)
  To: u-boot

Dear Robert,

In message <alpine.DEB.2.02.1112031509420.1813@oneiric> you wrote:
> 
>   um, my understanding for the need of that script (or its equivalent,
> which i assume is just to switch to the git 4.2 branch), is to avoid
> this issue:
> 
>   http://lists.denx.de/pipermail/eldk/2011-November/002052.html
> 
> which is *precisely* what i ran into, so i'm assuming i need to back
> off to v4.2. unless that issue has been addressed already in the ELDK
> toolchain development branch but i didn't see any git commit that
> referred to it.

This is fixed in ELDK 5.1.  A beta version is available at
ftp://ftp.denx.de/pub/eldk/5.1-beta/targets/powerpc/

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
Oblivion together does not frighten me, beloved.
	-- Thalassa (in Anne Mulhall's body), "Return to Tomorrow",
	   stardate 4770.3.

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

end of thread, other threads:[~2011-12-03 22:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-03  2:56 [U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards Robert P. J. Day
2011-12-03  5:12 ` Marek Vasut
2011-12-03  7:59   ` Robert P. J. Day
2011-12-03  8:16     ` Wolfgang Denk
2011-12-03  8:30       ` Robert P. J. Day
2011-12-03  8:36         ` Marek Vasut
2011-12-03  8:46           ` Robert P. J. Day
2011-12-03 17:47       ` Robert P. J. Day
2011-12-03 18:40         ` Anatolij Gustschin
2011-12-03 20:12           ` Robert P. J. Day
2011-12-03 21:15             ` Anatolij Gustschin
2011-12-03 21:27               ` Robert P. J. Day
2011-12-03 22:58             ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox