[U-Boot] at91 family status

Claudio claudyus84 at gmail.com
Mon Nov 8 19:33:57 CET 2010


Hi all,
I started to rework the netus board patch for a second submission. In
the last few months a lot of changes have broken the entire at91
family boards according to MAKEALL at91 [1].
For a few boards, like mine, make fails with a segfault during final
link; how to deal with this problem?

make[1]: uscita dalla directory
«/home/claudyus/code/u-boot-git/board/acmesystems/netusg20»
make -C /home/claudyus/code/u-boot-git/arch/arm/cpu/arm926ejs/ u-boot.lds
make[1]: ingresso nella directory
«/home/claudyus/code/u-boot-git/arch/arm/cpu/arm926ejs»
make[1]: Nessuna operazione da eseguire per «u-boot.lds».
make[1]: uscita dalla directory
«/home/claudyus/code/u-boot-git/arch/arm/cpu/arm926ejs»
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-gcc
-E -g  -Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__
-DCONFIG_SYS_TEXT_BASE=0x23f00000
-I/home/claudyus/code/u-boot-git/include -fno-builtin -ffreestanding
-nostdinc -isystem
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3/include
-pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux
-mno-thumb-interwork -march=armv5te  -include
/home/claudyus/code/u-boot-git/include/u-boot/u-boot.lds.h  -ansi
-D__ASSEMBLY__ -P -
</home/claudyus/code/u-boot-git/arch/arm/cpu/arm926ejs/u-boot.lds
>u-boot.lds
UNDEF_SYM=`/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-objdump
-x board/acmesystems/netusg20/libnetusg20.a lib/libgeneric.a
lib/lzma/liblzma.a lib/lzo/liblzo.a
arch/arm/cpu/arm926ejs/libarm926ejs.a
arch/arm/cpu/arm926ejs/at91/libat91.a arch/arm/lib/libarm.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a
drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a
drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a
drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a
drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a
drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a
drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a
drivers/pcmcia/libpcmcia.a drivers/power/libpower.a
drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a
drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a
drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a
drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a
drivers/watchdog/libwatchdog.a common/libcommon.a lib/libfdt/libfdt.a
api/libapi.a post/libpost.a | sed  -n -e
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd
/home/claudyus/code/u-boot-git &&
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld
-Bstatic -T u-boot.lds  -pie -Ttext 0x23f00000 $UNDEF_SYM
arch/arm/cpu/arm926ejs/start.o --start-group lib/libgeneric.a
lib/lzma/liblzma.a lib/lzo/liblzo.a
arch/arm/cpu/arm926ejs/libarm926ejs.a
arch/arm/cpu/arm926ejs/at91/libat91.a arch/arm/lib/libarm.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a
drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a
drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a
drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a
drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a
drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a
drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a
drivers/pcmcia/libpcmcia.a drivers/power/libpower.a
drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a
drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a
drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a
drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a
drivers/watchdog/libwatchdog.a common/libcommon.a lib/libfdt/libfdt.a
api/libapi.a post/libpost.a board/acmesystems/netusg20/libnetusg20.a
--end-group /home/claudyus/code/u-boot-git/arch/arm/lib/eabi_compat.o
-L /home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3
-lgcc -Map u-boot.map -o u-boot
arch/arm/lib/libarm.a(board.o): In function `board_init_r':
/home/claudyus/code/u-boot-git/arch/arm/lib/board.c:599: undefined
reference to `reset_phy'
drivers/spi/libspi.a(atmel_dataflash_spi.o): In function `AT91F_SpiWrite':
/home/claudyus/code/u-boot-git/drivers/spi/atmel_dataflash_spi.c:161:
undefined reference to `reset_timer_masked'
/home/claudyus/code/u-boot-git/drivers/spi/atmel_dataflash_spi.c:165:
undefined reference to `get_timer_masked'
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld:
BFD (GNU Binutils) 2.20.1 assertion fail elf32-arm.c:12195
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld:
BFD (GNU Binutils) 2.20.1 assertion fail elf32-arm.c:12195
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld:
BFD (GNU Binutils) 2.20.1 assertion fail elf32-arm.c:12195
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld:
BFD (GNU Binutils) 2.20.1 assertion fail elf32-arm.c:12429
/bin/sh: riga 1: 32508 Segmentation fault
/home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/bin/arm-openwrt-linux-ld
-Bstatic -T u-boot.lds -pie -Ttext 0x23f00000 $UNDEF_SYM
arch/arm/cpu/arm926ejs/start.o --start-group lib/libgeneric.a
lib/lzma/liblzma.a lib/lzo/liblzo.a
arch/arm/cpu/arm926ejs/libarm926ejs.a
arch/arm/cpu/arm926ejs/at91/libat91.a arch/arm/lib/libarm.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a
drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a
drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a
drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a
drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a
drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a
drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a
drivers/pcmcia/libpcmcia.a drivers/power/libpower.a
drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a
drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a
drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a
drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a
drivers/watchdog/libwatchdog.a common/libcommon.a lib/libfdt/libfdt.a
api/libapi.a post/libpost.a board/acmesystems/netusg20/libnetusg20.a
--end-group /home/claudyus/code/u-boot-git/arch/arm/lib/eabi_compat.o
-L /home/claudyus/code/openwrt-svn/trunk/staging_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.31_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3
-lgcc -Map u-boot.map -o u-boot
make: *** [u-boot] Errore 139
$

Best Regards

1. http://pastebin.com/KpL0CPSj


More information about the U-Boot mailing list