ELDK Linux Compile problem
Sorry if this is the wrong list for this. I hunted around for an ELDK specific list, but came up empty.
I got u-boot to compile with ELDK for the Lite5200 board, and I'm moving on to getting Linux to work. When I was using version2 of the ELDK and u-boot 1.0.1, I got it up and running and reading the hard disk, so I'd like to get up at least to where I was before (I moved to the newer version because of the USB and RTC support).
I'm trying to compile a kernel for the Lite5200 board. I can successfully compile it with an incomplete IDE configuration, like this:
CONFIG_IDE=yCONFIG_BLOCK_DEV_IDE_MODES=y
But when I add the hardware driver:
CONFIG_BLOCK_DEV_IDE_MPC5xxx=y
the compile crashes. I'm using ELDK 3.0 (not the CVS), which has the modified 2.4.24 kernel.
Here's the error message, which appears to be happening in the linker:
ppc_82xx-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.odrivers/net/net.odrivers/ide/idedriver.o drivers/pci/driver.o drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o drivers/media/media.o
arch/ppc/5xxx_io/5xxx_io.o \
net/network.o \
/usr/local/ELDK/ppc_82xx/usr/src/linux-2.4.24/lib/lib.a \
--end-group \
-o vmlinuxarch/ppc/platforms/platform.o(.text.init+0xf2): In function `platform_init':
: undefined reference to mpc5xxx_ide_get_base' arch/ppc/platforms/platform.o(.text.init+0xfa): In function platform_init':
: undefined reference to mpc5xxx_ide_get_base' arch/ppc/platforms/platform.o(.text.init+0x10e): In function platform_init':
: undefined reference to mpc5xxx_ide_init_hwif_ports' arch/ppc/platforms/platform.o(.text.init+0x116): In function platform_init':
: undefined reference to mpc5xxx_ide_init_hwif_ports' drivers/ide/idedriver.o(.text.init+0xacc): In function probe_for_hwifs':
: undefined reference to mpc5xxx_ide_probe' drivers/ide/idedriver.o(.text.init+0xacc): In function probe_for_hwifs':
: relocation truncated to fit: R_PPC_REL24 mpc5xxx_ide_probe
ppc_82xx-make: *** [vmlinux] Error 1
-------------------------------------
My apologies if this has already been fixed in CVS. If it has, I'll get current and try again.
Victor Wren
Victor Wren
Designer,
Timension Inc.
1350 C Pear Ave
Mountain View CA 94043
(650) 564-9397
Fax: (650) 564-9398
Opinions stated in this letter are not necessarily those of Timension Inc. or the management. All Rights Reserved. No spitting.
Quoted 2 lines · In message <41079E6B.10148.6C0CCA@localhost> you wrote:
Sorry if this is the wrong list for this. I hunted around for an ELDK specific list, but came up empty.
Maybe we should really start an ELDK list one day...
Quoted 2 lines
I'm trying to compile a kernel for the Lite5200 board. I can successfully compile it with an incomplete IDE configuration, like this:
...
Quoted 4 lines
But when I add the hardware driver:
CONFIG_BLOCK_DEV_IDE_MPC5xxx=y
the compile crashes. I'm using ELDK 3.0 (not the CVS), which has the modified 2.4.24 kernel.
This just means that your kernel configuration is broken.
Quoted 2 lines
My apologies if this has already been fixed in CVS. If it has, I'll get current and try again.
I recommend to use the CVS version anyway since it has a couple of fixes. But the real fix is just chosing a correct configuration; try our default configuration for the Coral-P setup (feel free to disable the Coral-P related stuff later, but try the configuration first as is): ftp://ftp.denx.de/pub/fujitsu/Coral-P/LITE5200_CoralP_defconfig
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Anything free is worth what you pay for it.