[U-Boot] Issues building for the P2020 (linking)

Hi,
I'm currently trying to build out of git and am seeing an issue with the final linking during the build. I've included the relevant dump:
Using P2020DS_config
UNDEF_SYM=`powerpc-linux-gnu-objdump -x board/freescale/p2020ds/libp2020ds.o api/libapi.o arch/powerpc/cpu/mpc85xx/libmpc85xx.o arch/powerpc/cpu/mpc8xxx/ddr/libddr.o arch/powerpc/cpu/mpc8xxx/lib8xxx.o arch/powerpc/lib/libpowerpc.o board/freescale/common/libfreescale.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/qe/libqe.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.a drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o | sed -n -e 's/.*(__u_boot_cmd_.*)/-u\1/p'|sort|uniq`; cd /home/mstafford/sandbox/u-boot && powerpc-linux-gnu-ld -n -T u-boot.lds --gc-sections -Bstatic -Ttext 0xeff80000 $UNDEF_SYM arch/powerpc/cpu/mpc85xx/start.o arch/powerpc/cpu/mpc85xx/resetvec.o --start-group api/libapi.o arch/powerpc/cpu/mpc85xx/libmpc85xx.o arch/powerpc/cpu/mpc8xxx/ddr/libddr.o arch/powerpc/cpu/mpc8xxx/lib8xxx.o arch/powerpc/lib/libpowerpc.o board/freescale/common/libfreescale.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/qe/libqe.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.a drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o board/freescale/p2020ds/libp2020ds.o --end-group -L /opt/freescale/usr/local/gcc-4.4.78-eglibc-2.10.78/powerpc-linux-gnu/lib /gcc/powerpc-linux-gnu/4.4.1/nof -lgcc -Map u-boot.map -o u-boot powerpc-linux-gnu-ld: section .bootpg loaded at [effff000,effff237] overlaps section .data loaded at [efffc16c,f000347b] powerpc-linux-gnu-ld: u-boot: section .bootpg vma 0xeffff000 overlaps previous sections powerpc-linux-gnu-ld: u-boot: section .resetvec vma 0xeffffffc overlaps previous sections powerpc-linux-gnu-ld: u-boot: section .u_boot_cmd vma 0xf000347c overlaps previous sections make: *** [u-boot] Error 1
Any thoughts?
Regards, Matthew

/opt/freescale/usr/local/gcc-4.4.78-eglibc-2.10.78/powerpc-linux-gnu/lib /gcc/powerpc-linux-gnu/4.4.1/nof -lgcc -Map u-boot.map -o u-boot powerpc-linux-gnu-ld: section .bootpg loaded at [effff000,effff237] overlaps section .data loaded at [efffc16c,f000347b] powerpc-linux-gnu-ld: u-boot: section .bootpg vma 0xeffff000 overlaps previous sections powerpc-linux-gnu-ld: u-boot: section .resetvec vma 0xeffffffc overlaps previous sections powerpc-linux-gnu-ld: u-boot: section .u_boot_cmd vma 0xf000347c overlaps previous sections make: *** [u-boot] Error 1
Any thoughts?
It looks like the .bootpg code segment is too big. It could be that recent changes to the NAND spl used by PPC chips is causing this. I will try to recreate your error.
Regards, Alex

Dear "Stafford, Matthew",
In message 0B0A20D0B3ECD742AA2514C8DDA3B06505122647@VGAEXCH01.hq.corp.viasat.com you wrote:
Hi,
I'm currently trying to build out of git and am seeing an issue with the final linking during the build. I've included the relevant dump:
Using P2020DS_config
It's a tool chain issue. The same config builds fine for me.
Best regards,
Wolfgang Denk

Hi again,
Sorry for the slow reply time to this. Could you tell me what toolchain you are using as well as your compile time options? I've tried this using the ELDK 5.0 (powerpc-softfloat) as well as the Freescale toolchain provided with the P2020DS.
Thank you, Matthew
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, June 02, 2011 4:48 PM To: Stafford, Matthew Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Issues building for the P2020 (linking)
Dear "Stafford, Matthew",
In message 0B0A20D0B3ECD742AA2514C8DDA3B06505122647@VGAEXCH01.hq.corp.viasat.com you wrote:
Hi,
I'm currently trying to build out of git and am seeing an issue with the final linking during the build. I've included the relevant dump:
Using P2020DS_config
It's a tool chain issue. The same config builds fine for me.
Best regards,
Wolfgang Denk

On Jun 7, 2011, at 7:36 AM, Stafford, Matthew wrote:
Hi again,
Sorry for the slow reply time to this. Could you tell me what toolchain you are using as well as your compile time options? I've tried this using the ELDK 5.0 (powerpc-softfloat) as well as the Freescale toolchain provided with the P2020DS.
Thank you, Matthew
You can try and reduce the u-boot size by removing CONFIG_VIDEO support from include/configs/P2020DS.h
[ assuming that's not a feature you need ]
- k

That did the trick. No more issues with compilation (with ELDK at least, haven't tried again with the Freescale toolchain). Thank you very much for your help.
Regards, Matthew
-----Original Message----- From: Kumar Gala [mailto:galak@kernel.crashing.org] Sent: Tuesday, June 07, 2011 9:33 AM To: Stafford, Matthew Cc: Wolfgang Denk; u-boot@lists.denx.de Subject: Re: [U-Boot] Issues building for the P2020 (linking)
On Jun 7, 2011, at 7:36 AM, Stafford, Matthew wrote:
Hi again,
Sorry for the slow reply time to this. Could you tell me what toolchain you are using as well as your compile time options? I've tried this using the ELDK 5.0 (powerpc-softfloat) as well as the Freescale toolchain provided with the P2020DS.
Thank you, Matthew
You can try and reduce the u-boot size by removing CONFIG_VIDEO support from include/configs/P2020DS.h
[ assuming that's not a feature you need ]
- k

Dear "Stafford, Matthew",
In message 0B0A20D0B3ECD742AA2514C8DDA3B06505122A9E@VGAEXCH01.hq.corp.viasat.com you wrote:
Sorry for the slow reply time to this. Could you tell me what toolchain you are using as well as your compile time options? I've tried this using the ELDK 5.0 (powerpc-softfloat) as well as the Freescale toolchain provided with the P2020DS.
I used ELDK 4.2.
Best regards,
Wolfgang Denk
participants (4)
-
Alex Waterman
-
Kumar Gala
-
Stafford, Matthew
-
Wolfgang Denk