* Re: Compiling 2.4.18 for Motorola MBX board
[not found] <20020327210215.3A202109F4@denx.denx.de>
@ 2002-03-28 4:59 ` Ed Brady
2002-04-01 18:41 ` Ed Brady
0 siblings, 1 reply; 5+ messages in thread
From: Ed Brady @ 2002-03-28 4:59 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
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" <wd@denx.de>
To: "Ed Brady" <mailinglist@ebrady.net>
Sent: Wednesday, March 27, 2002 4:02 PM
Subject: Re: Compiling 2.4.18 for Motorola MBX board
> Ed,
>
> in message <015601c1d5d0$b0278b60$64d4047e@research.liebert.com> you
wrote:
> >
> > I am trying to cross compile the latest 2.4.18 kernel to run on an MBX
board
> > (MPC 860). However, I consistently run into problems whenever the final
> > 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/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Compiling 2.4.18 for Motorola MBX board
2002-03-28 4:59 ` Compiling 2.4.18 for Motorola MBX board Ed Brady
@ 2002-04-01 18:41 ` Ed Brady
0 siblings, 0 replies; 5+ messages in thread
From: Ed Brady @ 2002-04-01 18:41 UTC (permalink / raw)
To: linuxppc-embedded
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" <mailinglist@ebrady.net>
To: "Wolfgang Denk" <wd@denx.de>
Cc: <linuxppc-embedded@lists.linuxppc.org>
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" <wd@denx.de>
> To: "Ed Brady" <mailinglist@ebrady.net>
> Sent: Wednesday, March 27, 2002 4:02 PM
> Subject: Re: Compiling 2.4.18 for Motorola MBX board
>
>
> > Ed,
> >
> > in message <015601c1d5d0$b0278b60$64d4047e@research.liebert.com> you
> wrote:
> > >
> > > I am trying to cross compile the latest 2.4.18 kernel to run on an MBX
> board
> > > (MPC 860). However, I consistently run into problems whenever the
final
> > > 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Compiling 2.4.18 for Motorola MBX board
@ 2002-03-27 21:02 Kerl, John
2002-03-27 21:08 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Kerl, John @ 2002-03-27 21:02 UTC (permalink / raw)
To: 'Ed Brady'; +Cc: 'linuxppc-embedded@lists.linuxppc.org'
I made the same newby bone-headed mistake last fall. :)
The default PPC .config appears to be something that's
appropriate to, say, running Linux on a Macintosh.
Which of course has many more devices than a little
ol' embedded system.
You should go into make menuconfig, & de-select PMAC
and other Mac-type ethernet devices.
In fact, I made sure to go through every (!) menu,
sub-menu, sub-sub-menu, etc. in make menuconfig to
de-select everything that wasn't appropriate for my
system.
-----Original Message-----
From: Ed Brady [mailto:mailinglist@ebrady.net]
Sent: Wednesday, March 27, 2002 1:48 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Compiling 2.4.18 for Motorola MBX board
Hello,
I am trying to cross compile the latest 2.4.18 kernel to run on an MBX board
(MPC 860). However, I consistently run into problems whenever the final
link is performed. See error text below....
This code is comprised of the following:
linux 2.4.18 kernel from kernel.org with the ppc-patch-2.4.18 applied.
I have not tried cross compiling the kernel without the ppc patch applied.
The compiler is the gcc packaged build to cross-compile on an i386 linux
host with a target of powerpc-unknown-eabi.
Note: This is the first time that I have attempted to cross-compile a
kernel for an embedded target, so if this is caused by a bone-headed
mistake, please be kind :)
Any thoughts or pointers would be appreciated...
powerpc-eabi-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic
arch/ppc/kernel/head_8xx.o init/main.o init/version.o \
--start-group \
arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o
kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/xmon/x.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/video/video.o
drivers/i2c/i2c.o arch/ppc/8xx_io/8xx_io.o \
net/network.o \
/usr/src/ppc/linux/lib/lib.a \
--end-group \
-o vmlinux
arch/ppc/kernel/kernel.o: In function `lookup_partitions':
arch/ppc/kernel/kernel.o(.text.init+0xa22): undefined reference to
`pmac_newworld'
arch/ppc/kernel/kernel.o(.text.init+0xa26): undefined reference to
`pmac_newworld'
arch/ppc/kernel/kernel.o: In function `pmac_nvram_init':
arch/ppc/kernel/kernel.o(.text.init+0xb38): undefined reference to
`find_devices'
arch/ppc/kernel/kernel.o(.text.init+0xb38): relocation truncated to fit:
R_PPC_REL24 find_devices
arch/ppc/kernel/kernel.o(.text.init+0xb6c): undefined reference to
`device_is_compatible'
arch/ppc/kernel/kernel.o(.text.init+0xb6c): relocation truncated to fit:
R_PPC_REL24 device_is_compatible
arch/ppc/kernel/kernel.o(.text.init+0xc9a): undefined reference to
`sys_ctrler'
arch/ppc/kernel/kernel.o(.text.init+0xc9e): undefined reference to
`sys_ctrler'
arch/ppc/xmon/x.o: In function `xmon':
arch/ppc/xmon/x.o(.text+0x600): undefined reference to `xmon_enter'
arch/ppc/xmon/x.o(.text+0x600): relocation truncated to fit: R_PPC_REL24
xmon_enter
arch/ppc/xmon/x.o(.text+0x664): undefined reference to `xmon_leave'
arch/ppc/xmon/x.o(.text+0x664): relocation truncated to fit: R_PPC_REL24
xmon_leave
arch/ppc/xmon/x.o: In function `dump_hash_table_seg':
arch/ppc/xmon/x.o(.text+0x16b2): undefined reference to `Hash_size'
arch/ppc/xmon/x.o(.text+0x16ba): undefined reference to `Hash_size'
arch/ppc/xmon/x.o(.text+0x16ce): undefined reference to `Hash'
arch/ppc/xmon/x.o(.text+0x16d6): undefined reference to `Hash'
make: *** [vmlinux] Error 1
Ed Brady
ed@ebrady.net
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Compiling 2.4.18 for Motorola MBX board
2002-03-27 21:02 Kerl, John
@ 2002-03-27 21:08 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2002-03-27 21:08 UTC (permalink / raw)
To: Kerl, John
Cc: 'Ed Brady',
'linuxppc-embedded@lists.linuxppc.org'
In message <C08678384BE7D311B4D70004ACA371050B763357@amer22.avnet.com> you wrote:
>
> The default PPC .config appears to be something that's
> appropriate to, say, running Linux on a Macintosh.
Well, the MBX is an embedded system, so you cannot really expect the
DEFAULT configuration to work on it, right?
> You should go into make menuconfig, & de-select PMAC
> and other Mac-type ethernet devices.
>
> In fact, I made sure to go through every (!) menu,
> sub-menu, sub-sub-menu, etc. in make menuconfig to
> de-select everything that wasn't appropriate for my
> system.
Why not just chosing a working default configuration?
$ make mbx_config
$ make oldconfig
$ make dep
$ make zImage
will do the Right Thing (TM) in a blink or two...
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Landing: a controlled mid-air collision with a planet.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Compiling 2.4.18 for Motorola MBX board
@ 2002-03-27 20:47 Ed Brady
0 siblings, 0 replies; 5+ messages in thread
From: Ed Brady @ 2002-03-27 20:47 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
I am trying to cross compile the latest 2.4.18 kernel to run on an MBX board
(MPC 860). However, I consistently run into problems whenever the final
link is performed. See error text below....
This code is comprised of the following:
linux 2.4.18 kernel from kernel.org with the ppc-patch-2.4.18 applied.
I have not tried cross compiling the kernel without the ppc patch applied.
The compiler is the gcc packaged build to cross-compile on an i386 linux
host with a target of powerpc-unknown-eabi.
Note: This is the first time that I have attempted to cross-compile a
kernel for an embedded target, so if this is caused by a bone-headed
mistake, please be kind :)
Any thoughts or pointers would be appreciated...
powerpc-eabi-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic
arch/ppc/kernel/head_8xx.o init/main.o init/version.o \
--start-group \
arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o
kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/xmon/x.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/video/video.o
drivers/i2c/i2c.o arch/ppc/8xx_io/8xx_io.o \
net/network.o \
/usr/src/ppc/linux/lib/lib.a \
--end-group \
-o vmlinux
arch/ppc/kernel/kernel.o: In function `lookup_partitions':
arch/ppc/kernel/kernel.o(.text.init+0xa22): undefined reference to
`pmac_newworld'
arch/ppc/kernel/kernel.o(.text.init+0xa26): undefined reference to
`pmac_newworld'
arch/ppc/kernel/kernel.o: In function `pmac_nvram_init':
arch/ppc/kernel/kernel.o(.text.init+0xb38): undefined reference to
`find_devices'
arch/ppc/kernel/kernel.o(.text.init+0xb38): relocation truncated to fit:
R_PPC_REL24 find_devices
arch/ppc/kernel/kernel.o(.text.init+0xb6c): undefined reference to
`device_is_compatible'
arch/ppc/kernel/kernel.o(.text.init+0xb6c): relocation truncated to fit:
R_PPC_REL24 device_is_compatible
arch/ppc/kernel/kernel.o(.text.init+0xc9a): undefined reference to
`sys_ctrler'
arch/ppc/kernel/kernel.o(.text.init+0xc9e): undefined reference to
`sys_ctrler'
arch/ppc/xmon/x.o: In function `xmon':
arch/ppc/xmon/x.o(.text+0x600): undefined reference to `xmon_enter'
arch/ppc/xmon/x.o(.text+0x600): relocation truncated to fit: R_PPC_REL24
xmon_enter
arch/ppc/xmon/x.o(.text+0x664): undefined reference to `xmon_leave'
arch/ppc/xmon/x.o(.text+0x664): relocation truncated to fit: R_PPC_REL24
xmon_leave
arch/ppc/xmon/x.o: In function `dump_hash_table_seg':
arch/ppc/xmon/x.o(.text+0x16b2): undefined reference to `Hash_size'
arch/ppc/xmon/x.o(.text+0x16ba): undefined reference to `Hash_size'
arch/ppc/xmon/x.o(.text+0x16ce): undefined reference to `Hash'
arch/ppc/xmon/x.o(.text+0x16d6): undefined reference to `Hash'
make: *** [vmlinux] Error 1
Ed Brady
ed@ebrady.net
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-01 18:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20020327210215.3A202109F4@denx.denx.de>
2002-03-28 4:59 ` Compiling 2.4.18 for Motorola MBX board Ed Brady
2002-04-01 18:41 ` Ed Brady
2002-03-27 21:02 Kerl, John
2002-03-27 21:08 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2002-03-27 20:47 Ed Brady
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).