All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Issues building for the P2020 (linking)
@ 2011-06-02 18:58 Stafford, Matthew
  2011-06-02 19:26 ` Alex Waterman
  2011-06-02 20:48 ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Stafford, Matthew @ 2011-06-02 18:58 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-02 18:58 [U-Boot] Issues building for the P2020 (linking) Stafford, Matthew
@ 2011-06-02 19:26 ` Alex Waterman
  2011-06-02 20:48 ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Waterman @ 2011-06-02 19:26 UTC (permalink / raw)
  To: u-boot


> /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

-- 
Alex Waterman
Computer Engineer
Phone: 215-896-4920
Email: awaterman at dawning.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-02 18:58 [U-Boot] Issues building for the P2020 (linking) Stafford, Matthew
  2011-06-02 19:26 ` Alex Waterman
@ 2011-06-02 20:48 ` Wolfgang Denk
  2011-06-07 12:36   ` Stafford, Matthew
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2011-06-02 20:48 UTC (permalink / raw)
  To: u-boot

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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is a human characteristic to love little  animals,  especially  if
they're attractive in some way.
	-- McCoy, "The Trouble with Tribbles", stardate 4525.6

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-02 20:48 ` Wolfgang Denk
@ 2011-06-07 12:36   ` Stafford, Matthew
  2011-06-07 13:33     ` Kumar Gala
  2011-06-07 15:44     ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Stafford, Matthew @ 2011-06-07 12:36 UTC (permalink / raw)
  To: u-boot

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 at denx.de] 
Sent: Thursday, June 02, 2011 4:48 PM
To: Stafford, Matthew
Cc: u-boot at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It
is a human characteristic to love little  animals,  especially  if
they're attractive in some way.
	-- McCoy, "The Trouble with Tribbles", stardate 4525.6

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-07 12:36   ` Stafford, Matthew
@ 2011-06-07 13:33     ` Kumar Gala
  2011-06-07 15:27       ` Stafford, Matthew
  2011-06-07 15:44     ` Wolfgang Denk
  1 sibling, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2011-06-07 13:33 UTC (permalink / raw)
  To: u-boot


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-07 13:33     ` Kumar Gala
@ 2011-06-07 15:27       ` Stafford, Matthew
  0 siblings, 0 replies; 7+ messages in thread
From: Stafford, Matthew @ 2011-06-07 15:27 UTC (permalink / raw)
  To: u-boot

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 at kernel.crashing.org] 
Sent: Tuesday, June 07, 2011 9:33 AM
To: Stafford, Matthew
Cc: Wolfgang Denk; u-boot at 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] Issues building for the P2020 (linking)
  2011-06-07 12:36   ` Stafford, Matthew
  2011-06-07 13:33     ` Kumar Gala
@ 2011-06-07 15:44     ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2011-06-07 15:44 UTC (permalink / raw)
  To: u-boot

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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-07 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02 18:58 [U-Boot] Issues building for the P2020 (linking) Stafford, Matthew
2011-06-02 19:26 ` Alex Waterman
2011-06-02 20:48 ` Wolfgang Denk
2011-06-07 12:36   ` Stafford, Matthew
2011-06-07 13:33     ` Kumar Gala
2011-06-07 15:27       ` Stafford, Matthew
2011-06-07 15:44     ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.