[U-Boot] TQM860L_config: u-boot.lds:76 cannot move location counter backwards

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/PortingProblemCannotMoveLocationCounterBac...
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

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

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

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

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

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

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

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

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

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

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

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

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
participants (4)
-
Anatolij Gustschin
-
Marek Vasut
-
Robert P. J. Day
-
Wolfgang Denk