ltib error for mpc8308RDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ltib error for mpc8308RDB

Jump to solution
3,485 Views
joe_wang
Contributor II

when I use ltib.iso for mpc8308RDB, some error flowing:

 

 

+ make 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin/' HOSTSTRIP=/usr/bin/strip CROSS_COMPILE= OPTFLAGS=-Os O=/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1 all
Generating include/autoconf.mk
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
Generating include/autoconf.mk.dep
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
make[1]: Entering directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/examples/api'
make -C tools all
make -C examples/standalone all
make -C examples/api all
make -C cpu/mpc83xx start.o
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
make[1]: Entering directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/examples/api'
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
make[1]: Entering directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/cpu/mpc83xx'
make[1]: Nothing to be done for `u-boot.lds'.
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/cpu/mpc83xx'
ccache /usr/bin/gcc -B/usr/bin/ -g -Wall -idirafter /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/include -idirafter /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/include2 -idirafter /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/include -I /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/libfdt -I /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/tools -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fit_image.o /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/tools/fit_image.c
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/examples/api'
make[1]: *** [hello_world.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ppc_longjmp.o] Error 1
make[1]: *** [sched.o] Error 1
idirafter /opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/include -I /opt/freescale/ltib-
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
make[1]: *** [ppc_setjmp.o] Error 1
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/examples/standalone'
make: *** [examples/standalone] Error 2
make: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-mrelocatable"
cc1: error: unrecognized command line option "-meabi"
cc1: warning: unknown register name: r2
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/cpu/mpc83xx'
make: *** [cpu/mpc83xx/start.o] Error 2
make: *** [u-boot.lds] Error 1
make[1]: Leaving directory `/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/tools'
error: Bad exit status from /opt/freescale/ltib-mpc8308erdb-20100413/tmp/rpm-tmp.82003 (%build)
RPM build errors:
    Bad exit status from /opt/freescale/ltib-mpc8308erdb-20100413/tmp/rpm-tmp.82003 (%build)
Build time for u-boot-2009.11-rc1-mpc8308erdb: 7 seconds
Failed building u-boot-2009.11-rc1-mpc8308erdb
f_buildrpms() returned an error, exiting
traceback:
 main:560
Started: Fri Oct  8 02:10:08 2010
Ended:   Fri Oct  8 02:10:15 2010
Elapsed: 7 seconds
These packages failed to build:
u-boot-2009.11-rc1-mpc8308erdb 
Build Failed
Exiting on error or interrupt

the attachment is the full error log, It seems that built error with uboot, how can I handle this?

I'm new for ltib.

My host is debian lenny, and my board is mpc8308RDB version 2 from freescale official.

thanks.

1 Solution
1,425 Views
joe_wang
Contributor II

If you changed the glibc as uclibc like what i did, you should select your own crosstool chain using uclibc.

 

and Post 2's reason:

cause some uboot source depdends error  and cannot cleanup.

 

Post 3's reason:

cause changed config file to leave source, and build it twice , the ltib must download source file from internet as the same project, but the source file do not exist on the internet.

 

I think debian lenny can run ltib well.

I'll try it tomorrow.

freescale, thanks

 

View solution in original post

0 Kudos
16 Replies
1,425 Views
asma
Contributor I

Hi,

I have the same error, can you indicate to me the way to fix it:

this is the error message:

 

Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch.md5 from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...
14:45:32 ERROR 404: Not Found.
Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...
14:45:32 ERROR 404: Not Found.
Can't get: kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch at ./ltib line 790.


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Wed Feb  1 14:45:22 2012
Ended:   Wed Feb  1 14:45:32 2012
Elapsed: 10 seconds

These packages failed to build:
kernel-2.6.29.6-mpc8308erdb

Build Failed


0 Kudos
1,425 Views
Stanley_OZ
Contributor I

Got exactly the same problem on ubuntu 10.04 for my MPC8308NSG too. Could someone point out a fix for this tool chain build?

0 Kudos
1,425 Views
Stanley_OZ
Contributor I

Been plugging the whole day and had to comment out the patch #24 and #84. Now the fatal error is:

 

DTC: dts->dtb  on file "arch/powerpc/boot/dts/mpc8308wmg.dts"

FATAL ERROR: Couldn't open "arch/powerpc/boot/dts/mpc8308wmg.dts": No such file or directory

error: Bad exit status from /home/stanley/ltib-mpc8308wmg-20110728/tmp/rpm-tmp.2286 (%install)

 

RPM build errors:

    Bad exit status from /home/stanley/ltib-mpc8308wmg-20110728/tmp/rpm-tmp.2286 (%install)

 

Can anyone who have sorted this out point me in the right direction? Can't wait to start some coding ...

 

Thank you in advance. I have attached my host_config.log file for reference.

0 Kudos
1,425 Views
gustav
Contributor I

I just got the device and am experiencing exactly the same problem

 

Have you found a solution for it?

0 Kudos
1,425 Views
trolbold
Contributor I

Just modify file:

config/platform/mpc8308wmg/boardlist
of your ltib:

new, workaround:

CONFIG_DTC_LIST="mpc8308erdb"

old, error cause:

CONFIG_DTC_LIST="mpc8308wmg mpc8308erdb mpc8308seg"

 

Note:

This is a workaround, which allows to run the ltib-script through the end.

It may not solve the problem that's behind.

 

Greets

 

0 Kudos
1,425 Views
msamuels0
Contributor I

I've also just received the 8308 NSG, and am trying to set up my environment...

 

Also getting exactly the same thing:

 

Processing: kernel-2.6.29.6-mpc8308erdb
=========================================
Build path taken because: no prebuilt rpm,
Testing network connectivity
OK GPP:

Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch.md5 from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...
11:48:35 ERROR 404: Not Found.
Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...
11:48:35 ERROR 404: Not Found.
Can't get: kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch at ./ltib line 790.


f_buildrpms() returned an error, exiting
traceback:
main:560


Started: Wed Jun 27 11:48:34 2012
Ended: Wed Jun 27 11:48:35 2012
Elapsed: 1 seconds

These packages failed to build:
kernel-2.6.29.6-mpc8308erdb

Build Failed

Exiting on error or interrupt

 

And this is after taking the above suggestion and modifying config/platform/mpc8308wmg/boardlist to just the following:

CONFIG_DTC_LIST="mpc8308erdb"

 

Has a hard-fix been found for this?  Has anyone who had this issue been able to resolve it?

 

Thanks in advance!


0 Kudos
1,425 Views
Parsley72
Contributor I

I've got it working. The problem is that all the patches are installed from the ISO but some of the names are cut off. If you look in the subdirectory 'pkgs' you'll find these files:

kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gi.patch

kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Giga.md5

 

If you rename these to the files that are missing:

kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch

kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch.md5

then the error disappears. I had to rename one other file:

kernel-2.6.29.6-mpc8308wmg-mpc8308rdb-mpc8308seg-dts-updat.patch

to:

kernel-2.6.29.6-mpc8308wmg-mpc8308rdb-mpc8308seg-dts-update-1.patch

 

My build has just completed!


1,425 Views
yibbidy
Contributor V

Nice one Tom, sorted for me now thanks.

For anyone else with this problem, you can change those filenames in the /opt/freescale/pkgs directory, rather than on the ISO in the case of your ISO being read only.

Shaun

0 Kudos
1,425 Views
msamuels0
Contributor I

That fixed it!

 

I did indeed have to rename those particular filenames that were truncated, and everything just successfully built for the first time!

 

Thank you very much!

0 Kudos
1,425 Views
Parsley72
Contributor I

Good to hear. Can you click on the star to raise the Kudos of the post? Hopefully someone from Freescale will spot this thread and fix the installer.

 

Thanks.


1,425 Views
joe_wang
Contributor II

I found, the Post 1's error because I select libc library as uclibc......

 

0 Kudos
1,426 Views
joe_wang
Contributor II

If you changed the glibc as uclibc like what i did, you should select your own crosstool chain using uclibc.

 

and Post 2's reason:

cause some uboot source depdends error  and cannot cleanup.

 

Post 3's reason:

cause changed config file to leave source, and build it twice , the ltib must download source file from internet as the same project, but the source file do not exist on the internet.

 

I think debian lenny can run ltib well.

I'll try it tomorrow.

freescale, thanks

 

0 Kudos
1,425 Views
joe_wang
Contributor II

if you wanna keep sources and donot use intel pro pci card, you should comment two lines of the "kernel-2.6.29.6-mpc8308erdb.spec.in" file:

 

#Patch20         : %{name}-%{version}-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch

#%patch20 -p1

 

 


0 Kudos
1,425 Views
joe_wang
Contributor II

some times the only uboot build error is

/opt/freescale/ltib-mpc8308erdb-20100413/rpm/BUILD/u-boot-2009.11-rc1/cpu/mpc83xx/start.S:953: undefined reference to `__got2_entries'

the attachment is the full output message.

thanks for your reply.

0 Kudos
1,425 Views
joe_wang
Contributor II

Thx for you reply.
when I flow these steps:
./install my ISO
./ltib
and, the ltib can build and install successfully.

And on, I change some ltib configure file.
Actually, my only change is ./ltib -m config
let "leave the source file after build" option on.
and ./ltib
the error occurs like what i described before.
did my steps made a big mistake? I'm a newbie for ltib.
does' on your mechine has this problem?
if do not have, I will change my host linux as needed, even it will take much more time.

0 Kudos
1,425 Views
joe_wang
Contributor II

the last news:

 

 

when I following these steps:

 

./ltib -m shell

LTIB>cd rpm/BUILD/u-boot-2009.11-rc1/

LTIB>make clean

LTIB>make MPC8308ERDB_config

LTIB>make MPC8308ERDB_config

LTIB>make

 

the uboot build successfully.

 

and then, I

LTIB>make clean

LTIB>exit

 

and run ./ltib agin

 

the uboot build also successfully, but the following error occurs:

Processing: kernel-2.6.29.6-mpc8308erdb
=========================================
Build path taken because: no prebuilt rpm,
Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch.md5 from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...:
04:06:12 ERROR 404: Not Found.
Try kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch from the GPP
http://bitshrine.org/gpp/kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-dr...:
04:06:13 ERROR 404: Not Found.
Can't get: kernel-2.6.29.6-fix-a-bug-of-Intel-PRO-1000-PCI-Express-Gigabit-Ethernet-driver.patch at ./ltib line 790.

why the ltib try to download the patches from the internet?

the iso exist these package, isnot it?

 

please help me! and many many thanks.

0 Kudos