This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error compiling bootloader

Hi.
I'm trying compile the bootloader in my beaglebone black but the makefile return the error: section `.bss' will not fit in region `IRAM_MEM'
I added to makefile:

  DIRS+=${USBLIB_BLD} 

   SOURCE+=$(PLATFORM_SRC)/sysdelay.c


What is "IRAM_MEM" ? There is anyway to change this size ?
Thanks in advance.

  • Hi Matheus,

    Please, Check with  "boot.lds" file.

     What is the size of the built bootloader size?

     Bootloader code will be copied from MMC/NAND/Other Peripeherals to IRAM and size usually be less than 128/256KB.

     Bootloader code will be executed from IRAM (Applications from DDR, as per ****.lds file, where load address and memory sections will be defined)

     -Murali Krishna Dama

  • Hi Murali.
    Thanks for the answer.
    The problem is that I'm trying to compile the bootloader with libusb.a linked but only libusb has 400 kB of size.
    My question is, its possible a bootloader so big ?
    Thanks in advance.

  • Matheus

    RBL (ROMBootloader) checks MMC/NAND/UART/xx to find any valid image to boot and it boots on to IRAM (size<128/256KB). From there it will initialize DDR and PLLs. So bootloader should execute from IRAM only.
    So bootloader size should not be beyond the size of IRAM.

    -Murali Krishna Dama