LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-17-2011, 08:12 AM   #1
zxlwyx9219
LQ Newbie
 
Registered: Jun 2011
Posts: 16

Rep: Reputation: Disabled
Thumbs down uboot compiling segment default!!


hi ,
i spent days on compiling uboot-2010.12, but only got a segment default, i didn't understood why? some adresse was linked to the wrong place? but i couldn't found it out? Can anyone help me ?

thanks evry much!


attachments for the error msg:

make[1]: Entering directory `/home/zhang/homework/u-boot-2010.12/post'
make[1]: Leaving directory `/home/zhang/homework/u-boot-2010.12/post'
make[1]: Entering directory `/home/zhang/homework/u-boot-2010.12/post'
rm -f libpost.o; arm-linux-gnu-ar rcs libpost.o
make[1]: Leaving directory `/home/zhang/homework/u-boot-2010.12/post'
make -C board/samsung/smdk2410/
make[1]: Entering directory `/home/zhang/homework/u-boot-2010.12/board/samsung/smdk2410'
make[1]: Leaving directory `/home/zhang/homework/u-boot-2010.12/board/samsung/smdk2410'
make[1]: Entering directory `/home/zhang/homework/u-boot-2010.12/board/samsung/smdk2410'
arm-linux-gnu-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_ TEXT_BASE=0x33F80000 -I/home/zhang/homework/u-boot-2010.12/include -fno-builtin -ffreestanding -nostdinc -isy stem /home/zhang/homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-linux-gnu/3.4.5/in clude -pipe -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -Wall -Wstrict-proto types \
-o smdk2410.o smdk2410.c -c
arm-linux-gnu-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SYS_ TEXT_BASE=0x33F80000 -I/home/zhang/homework/u-boot-2010.12/include -fno-builtin -ffreestanding -nostdinc -isy stem /home/zhang/homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-linux-gnu/3.4.5/in clude -pipe -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -Wall -Wstrict-proto types \
-o flash.o flash.c -c
arm-linux-gnu-gcc -D__ASSEMBLY__ -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL __ -DCONFIG_SYS_TEXT_BASE=0x33F80000 -I/home/zhang/homework/u-boot-2010.12/include -fno-builtin -ffreestandin g -nostdinc -isystem /home/zhang/homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-li nux-gnu/3.4.5/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 \
-o lowlevel_init.o lowlevel_init.S -c
arm-linux-gnu-ld -r -o libsmdk2410.o smdk2410.o flash.o lowlevel_init.o
make[1]: Leaving directory `/home/zhang/homework/u-boot-2010.12/board/samsung/smdk2410'
make -C /home/zhang/homework/u-boot-2010.12/arch/arm/cpu/arm920t/ u-boot.lds
make[1]: Entering directory `/home/zhang/homework/u-boot-2010.12/arch/arm/cpu/arm920t'
make[1]: Nothing to be done for `u-boot.lds'.
make[1]: Leaving directory `/home/zhang/homework/u-boot-2010.12/arch/arm/cpu/arm920t'
arm-linux-gnu-gcc -E -g -Os -fno-common -ffixed-r8 -msoft-float -malignment-traps -D__KERNEL__ -DCONFIG_SY S_TEXT_BASE=0x33F80000 -I/home/zhang/homework/u-boot-2010.12/include -fno-builtin -ffreestanding -nostdinc -i system /home/zhang/homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-linux-gnu/3.4.5/ include -pipe -DCONFIG_ARM -D__ARM__ -marm -mapcs-32 -mno-thumb-interwork -march=armv4 -include /home/zha ng/homework/u-boot-2010.12/include/u-boot/u-boot.lds.h -DLD_MAJOR=2 -DLD_MINOR=15 -ansi -D__ASSEMBLY__ -P - < /home/zhang/homework/u-boot-2010.12/arch/arm/cpu/arm920t/u-boot.lds >u-boot.lds
UNDEF_SYM=`arm-linux-gnu-objdump -x board/samsung/smdk2410/libsmdk2410.o api/libapi.o arch/arm/cpu/arm920t/li barm920t.o arch/arm/cpu/arm920t/s3c24x0/libs3c24x0.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o dr ivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libm isc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o d rivers/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/rtc/librtc.o drivers/serial/libseria l.o drivers/spi/libspi.o drivers/twserial/libtws.o 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 li b/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o | sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|s ort|uniq`; cd /home/zhang/homework/u-boot-2010.12 && arm-linux-gnu-ld -Bstatic -T u-boot.lds -pie -Ttext 0x3 3F80000 $UNDEF_SYM arch/arm/cpu/arm920t/start.o --start-group api/libapi.o arch/arm/cpu/arm920t/libarm920t.o arch/arm/cpu/arm920t/s3c24x0/libs3c24x0.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/bio s_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 drive rs/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/rtc/librtc.o drivers/serial/libserial.o drivers /spi/libspi.o drivers/twserial/libtws.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o dri vers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdo g.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiser fs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/libl zma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o board/samsung/smdk2410/libsmdk2410.o --end-group -L /home/ zhang/homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-linux-gnu/3.4.5 -lgcc -Map u- boot.map -o u-boot
/bin/bash: line 1: 6528 Segmentation fault arm-linux-gnu-ld -Bstatic -T u-boot.lds -pie -Ttext 0x33F800 00 $UNDEF_SYM arch/arm/cpu/arm920t/start.o --start-group api/libapi.o arch/arm/cpu/arm920t/libarm920t.o arch/ arm/cpu/arm920t/s3c24x0/libs3c24x0.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/bios_emu lator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgp io.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mm c/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/l ibspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o dri vers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/ libspi.o drivers/twserial/libtws.o 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 f s/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/li breiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o net/libnet.o post/libpost.o board/samsung/smdk2410/libsmdk2410.o --end-group -L /home/zhang /homework/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linux-gnu/bin/../lib/gcc/arm-linux-gnu/3.4.5 -lgcc -Map u-boot. map -o u-boot
make: *** [u-boot] Error 139
 
Old 08-19-2011, 04:07 AM   #2
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
Can you try another version of the ARM compiler and see if the result is the same ?
 
Old 08-20-2011, 05:45 AM   #3
zxlwyx9219
LQ Newbie
 
Registered: Jun 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
successed in compiling with another kind of compiler,but no booting

Quote:
Originally Posted by cnxsoft View Post
Can you try another version of the ARM compiler and see if the result is the same ?
hi,
i just tried the arm-none-eabi-g++ compiler,and i successed in compiling; then i let the u-boot.bin download to the target, but couldn't bootup, there seemed i got other problems.when i used arm-linux-gnu, i got sizeof(u-boot.bin)=142.5K,while used the arm-none-eabi sizeof(u-boot.bin)=117.5K.
by the way, i didn't farmilar with the arm-none-eabi-g++, i didn't known whethere the problem was caused by the compiler;
i planed to try a latesd version of arm-linux-gnu to see any of difference till i was busy those days!
Thanks!
lewis

Last edited by zxlwyx9219; 08-20-2011 at 05:48 AM. Reason: appendex
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Understabd UBoot Code priyadarshan Linux - Embedded & Single-board computer 1 08-05-2010 02:21 PM
uboot is not comin rajeesh_r@cms.com Linux - Embedded & Single-board computer 0 07-01-2010 01:17 AM
uboot env setting shariefbe Linux - Software 1 01-13-2010 09:18 AM
UBoot Vs RedBoot ramalingampc2008 Linux - Software 0 10-20-2009 06:04 AM
compiling default kernel suse 9.3 fireedo SUSE / openSUSE 6 08-11-2005 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration