Compiling u-boot on Gentoo

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  ZubairLK 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48563

    Yuguang
    Member

    I am compiling uboot https://github.com/MIPS/CI20_u-boot on Gentoo. I get the following error when running make ARCH=mips CROSS_COMPILE=mipsel-unknown-linux-gnu- ci20_mmc

    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), arch/mips/cpu/xburst/libxburst.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), arch/mips/lib/libmips.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), board/imgtec/ci20/libci20.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), common/spl/libspl.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), drivers/mmc/libmmc.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: Warning: u-boot-spl uses -mhard-float (set by arch/mips/cpu/xburst/start.o), lib/libgeneric.o uses -msoft-float
    mipsel-unknown-linux-gnu-ld.bfd: u-boot-spl section .data' will not fit in region.sram’
    mipsel-unknown-linux-gnu-ld.bfd: region `
    .sram’ overflowed by 436 bytes
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0xc): relocation truncated to fit: R_MIPS_CALL16 against `timer_init’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x28): relocation truncated to fit: R_MIPS_CALL16 against `pll_init’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x100): relocation truncated to fit: R_MIPS_CALL16 against `sdram_init’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x114): relocation truncated to fit: R_MIPS_CALL16 against `enable_caches’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x128): relocation truncated to fit: R_MIPS_GOT16 against `__bss_start’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x12c): relocation truncated to fit: R_MIPS_GOT16 against `__bss_end’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x130): relocation truncated to fit: R_MIPS_CALL16 against `memset’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `board_init_f’:
    (.text.board_init_f+0x144): relocation truncated to fit: R_MIPS_CALL16 against `board_init_r’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `jump_to_image_no_args’:
    (.text.jump_to_image_no_args+0xc): relocation truncated to fit: R_MIPS_CALL16 against `flush_cache_all’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `pll_init’:
    (.text.pll_init+0xc): relocation truncated to fit: R_MIPS_CALL16 against `memcpy’
    arch/mips/cpu/xburst/jz4780/libjz4780.o: In function `pll_init’:
    (.text.pll_init+0x168): additional relocation overflows omitted from the output
    Makefile:200: recipe for target ‘/root/CI20_u-boot/spl/u-boot-spl’ failed
    make[2]: *** [/root/CI20_u-boot/spl/u-boot-spl] Error 1
    make[2]: Leaving directory ‘/root/CI20_u-boot/spl’
    Makefile:623: recipe for target ‘spl/u-boot-spl.bin’ failed
    make[1]: *** [spl/u-boot-spl.bin] Error 2
    make[1]: Leaving directory ‘/root/CI20_u-boot’
    .boards.depend:463: recipe for target ‘ci20_mmc’ failed
    make: *** [ci20_mmc] Error 2
    
    #48668

    ZubairLK
    Member

    Hi Yuguang,

    The first stage part of the bootloader (uboot-spl) is supposed to fit in a very small area.

    Some toolchains are unable to optimize the code enough to do that.

    The toolchain listed here should work.
    http://www.elinux.org/CI20_Dev_Zone#Toolchain

    Regards,
    ZubairLK

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Creator Platforms’ is closed to new topics and replies.