Thread (2 messages) 2 messages, 1 author, 2002-04-01

Re: Compiling 2.4.18 for Motorola MBX board

From: Ed Brady <hidden>
Date: 2002-04-01 18:41:14

Possibly related (same subject, not in this thread)

This problem seems to have been caused by an incorrectly configured gcc
cross-compiler.    Originally the compiler was built to target
powerpc-unknown-eabi.

The compiler was rebuilt to target powerpc-linux, and the problem was
solved, (however I have not had time to download the image to an MBX board
and actually see it run as of yet.)

Thanks to all that helped.


----- Original Message -----
From: "Ed Brady" <redacted>
To: "Wolfgang Denk" <redacted>
Cc: <redacted>
Sent: Wednesday, March 27, 2002 11:59 PM
Subject: Re: Compiling 2.4.18 for Motorola MBX board

Wolfgang,

Thank you for the reply....

I was able to perform the following functions

make mbx_config
make oldconfig
make dep
make zImage

Using make zImage, the kernel itself would build, but I got the following
errors when attempting to link the original boot code.

-------
powerpc-eabi-objcopy -O elf32-powerpc \
        --add-section=.image=../images/vmlinux.gz \
        --set-section-flags=.image=contents,alloc,load,readonly,data \
        ../common/dummy.o image.o
powerpc-eabi-ld -T ../ld.script -Ttext 0x00180000 -Bstatic -o zvmlinux
head.o ../common/relocate.o  misc-embedded.o ../common/misc-common.o
../common/string.o ../common/util.o embed_config.o iic.o m8xx_tty.o
image.o
../lib/zlib.a
image.o: In function `main':
image.o(.text+0xc): undefined reference to `__eabi'
make[2]: *** [zvmlinux] Error 1
make[2]: Leaving directory `/usr/src/ppc/linux/arch/ppc/boot/simple'
make[1]: *** [zImage] Error 2
make[1]: Leaving directory `/usr/src/ppc/linux/arch/ppc/boot'
make: *** [zImage] Error 2
-----

Could this error be related to an incorrectly built cross-compiler?
Using
some information that I found on the web, I build the ppc cross compiler,
as
ppc-unknown-eabi,  which I interpret to mean ppc eabi on unknown O.S.
Should I have built the cross-compiler as ppc-linux-eabi?

I have not yet tried the 'make pImage' build yet, however I have noticed
that 'make pImage' command can not be performed at the Top Level directory
with the standard makefile.  In order to run it I have to export TOPDIR to
be the linux ppc source directory, and then CD to the arch/ppc/boot
directory first.  I will give more details on this once I have given it a
try.

Ed Brady



----- Original Message -----
From: "Wolfgang Denk" <redacted>
To: "Ed Brady" <redacted>
Sent: Wednesday, March 27, 2002 4:02 PM
Subject: Re: Compiling 2.4.18 for Motorola MBX board

quoted
Ed,

in message [ref] you
wrote:
quoted
quoted
I am trying to cross compile the latest 2.4.18 kernel to run on an MBX
board
quoted
quoted
(MPC 860).  However, I consistently run into problems whenever the
final
quoted
quoted
link is performed.    See error text below....
It seems your kernel configuration is broken. You better restart with
the default configuration fro the  MBX  board;  check  that  this  is
compiling fine, and then start modifying according to your needs:

$ make mbx_config
$ make oldconfig
$ make dep
$ make pImage # with PPCBoot firmware
$ make zImage # with old bootstrap loader code

If this works, you can start modifying the configuration
using

$ make menuconfig

etc.

Hope this helps,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
The trouble with our times is that the future is not what it used  to
be.                                                     - Paul Valery

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help