u-boot v2017.03 cross compilation failed

620 views
Skip to first unread message

malkowki

unread,
Mar 30, 2017, 8:38:48 AM3/30/17
to BeagleBoard
Hi,

I have tried to compile the u-boot as described from Robert Nelson eewiki but I have ended up with the following compilation error after executing the following steps:

make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} omap3_beagle_defconfig
make ARCH=arm CROSS_COMPILE=${CC}




  LD      spl/fs/built-in.o
  LDS     spl
/u-boot-spl.lds
  LD      spl
/u-boot-spl
/home/mppdev/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: u-boot-spl section `.rodata' will not fit in region `.sram'
/home/mppdev/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld.bfd: region `.sram'
overflowed by 3448 bytes
make
[1]: *** [spl/u-boot-spl] Error 1
make
: *** [spl/u-boot-spl] Error 2

I am using VM running on Windows.

Thanks for your help!

arun kumar

unread,
Apr 19, 2017, 7:13:49 AM4/19/17
to BeagleBoard
Hi,
      I am using the same toolchain as you. But I could not recreate the problem that you faced.
I will list down my steps..

1. Clone the mainline u-boot . ( git clone git://git.denx.de/u-boot.git)
        I have faced issues too with the ee-wiki sources, but the steps more or less work with mainline sources too, just avoid the patches.)
2. make clean
3. make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- omap3_beagle_defconfig
4. make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

This did it for me, no issues faced.. have the MLO and u-boot.img generated.
Reply all
Reply to author
Forward
0 new messages