R: [BusyBox] cross compiling
Sanges Michele
Michele.Sanges at otomelara.it
Mon May 17 09:13:09 UTC 2004
> -----Messaggio originale-----
> Da: Wolfgang Denk [mailto:wd at denx.de]
> Inviato: giovedì 6 maggio 2004 16.15
> A: Sanges Michele
> Cc: busybox at busybox.net
> Oggetto: Re: R: [BusyBox] cross compiling
> > Using a gcc cross compiler, from i386 to ppc target, in many network
> > files (for example 'nslookup.c', 'inetd.c', ....) I obtain
> the following
> > errors:
> > - can't find a register in class 'MQ_REGS' while reloading 'asm'
> > - Unrecognized opcode: 'rorw', 'rorl'.
>
> These don't look like PowerPC instructions to me.
>
> > Is the problem that my gcc is bad configured?
>
> It sees so. Try using the ELDK...
>
> Best regards,
>
> Wolfgang Denk
Yes, I tried...
Using the ELDK cross compiler, I successfully compiled Busybox 1.0.0-pre10 for a PPC target (CPU 74xx).
Now I'm trying to compile the kernel that comes with the Denx ELDK (2.4.24), but I get the following linker error:
make[1]: Leaving directory `/root/Eldk/ppc_74xx/usr/src/linux-2.4.24/arch/ppc/lib'
ppc_74xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/ide/idedriver.o drivers/pci/driver.o drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o drivers/video/video.o drivers/media/media.o \
net/network.o \
/root/Eldk/ppc_74xx/usr/src/linux-2.4.24/lib/lib.a \
--end-group \
-o vmlinux
arch/ppc/kernel/kernel.o(__ksymtab+0x490): In function `sys_call_table':
arch/ppc/kernel/entry.S: undefined reference to `__res'
make: *** [vmlinux] Error 1
Where is the problem?
Thanks.
Michele.
More information about the busybox
mailing list