Loading ...
Sorry, an error occurred while loading the content.

Cross-compiling u-boot segfault

Expand Messages
  • Guennadi Liakhovetski
    Hi Trying to cross-compile u-boot with the patch from linuxnotincluded with a self-built toolchain (works fine for kernel and apps, gcc-3.4.5, glibc-2.3.6) on
    Message 1 of 2 , Sep 22, 2006
    • 0 Attachment
      Hi

      Trying to cross-compile u-boot with the patch from linuxnotincluded with a
      self-built toolchain (works fine for kernel and apps, gcc-3.4.5,
      glibc-2.3.6) on a Linux PC I'm getting a segfault linking u-boot:

      UNDEF_SYM=`powerpc-hdhglan-linux-objdump -x lib_generic/libgeneric.a
      board/linkstation/liblinkstation.a cpu/mpc824x/libmpc824x.a
      lib_ppc/libppc.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
      net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a
      drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a
      common/libcommon.a |sed -n -e
      's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
      powerpc-hdhglan-linux-ld -Bstatic -T
      /home/lyakh/usr/src/packages/kurobox/u-boot-1.1.4/board/linkstation/u-boot.lds
      -Ttext 0x07F00000 -n $UNDEF_SYM cpu/mpc824x/start.o \
      --start-group lib_generic/libgeneric.a
      board/linkstation/liblinkstation.a cpu/mpc824x/libmpc824x.a
      lib_ppc/libppc.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
      net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a
      drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a
      common/libcommon.a --end-group -L
      /usr/local/kurobox/gcc-3.4.5-glibc-2.3.6/powerpc-hdhglan-linux/lib/gcc/powerpc-hdhglan-linux/3.4.5/nof
      -lgcc \
      -Map u-boot.map -o u-boot

      --- SIGSEGV (Segmentation fault) @ 0 (0) ---
      +++ killed by SIGSEGV +++

      I've set variables:

      CROSS_COMPILE=powerpc-hdhglan-linux- ARCH=ppc CPU=mpc824x BOARD=linkstation

      Then according to
      http://downloads.linkstationwiki.net/uboot/u-bootinstall.html I did

      make linkstation_HGLAN_RAM_config
      make linkstation_HGLAN_RAM

      then it crashed. Ideas?

      Thanks
      Guennadi
      ---
      Guennadi Liakhovetski
    • Guennadi Liakhovetski
      ... Found it, damn t: http://sourceforge.net/mailarchive/message.php?msg_id=11309012 Buggy binutils, grrrr... Ok, will through that -Map ... option away for
      Message 2 of 2 , Sep 22, 2006
      • 0 Attachment
        On Sat, 23 Sep 2006, Guennadi Liakhovetski wrote:

        > Trying to cross-compile u-boot with the patch from linuxnotincluded with a
        > self-built toolchain (works fine for kernel and apps, gcc-3.4.5,
        > glibc-2.3.6) on a Linux PC I'm getting a segfault linking u-boot:

        Found it, damn't:

        http://sourceforge.net/mailarchive/message.php?msg_id=11309012

        Buggy binutils, grrrr... Ok, will through that "-Map ..." option away for
        now. Got it built...

        Thanks
        Guennadi
        ---
        Guennadi Liakhovetski
      Your message has been successfully submitted and would be delivered to recipients shortly.