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.

build U-Boot with USB/RNDIS support

i want to make a emmc flasher on beaglebone black. And I got this reference from TI. 

When i try to make, logs as follow:

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher_usb am335x_evm_usbspl_config all
make[1]: Entering directory `/work/develop/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/u-boot-2014.07-g7e537bf/flasher_usb'
GEN ./Makefile
#
# configuration written to .config
#
#
# configuration written to spl/.config
#
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
GEN spl/include/autoconf.mk
CHK include/config/uboot.release
Using .. as source for U-Boot
GEN ./Makefile
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC tools/mkenvimage.o
HOSTLD tools/mkenvimage
HOSTCC tools/image-host.o
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
AS arch/arm/cpu/armv7/start.o
CC common/main.o
CC common/board_f.o
CC common/cmd_version.o
LD common/built-in.o
CC lib/display_options.o
LD lib/built-in.o
LD u-boot
OBJCOPY u-boot.bin
MKIMAGE u-boot.img
OBJCOPY u-boot.srec
AS spl/arch/arm/cpu/armv7/start.o
CC spl/common/spl/spl.o
CC spl/common/spl/spl_mmc.o
LD spl/common/spl/built-in.o
CC spl/lib/display_options.o
LD spl/lib/built-in.o
LD spl/u-boot-spl
arm-linux-gnueabihf-ld.bfd: u-boot-spl section `.data' will not fit in region `.sram'
arm-linux-gnueabihf-ld.bfd: region `.sram' overflowed by 684 bytes
make[3]: *** [spl/u-boot-spl] Error 1
make[2]: *** [spl/u-boot-spl] Error 2
make[1]: *** [__build_one_by_one] Error 2
make[1]: Leaving directory `/work/develop/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/u-boot-2014.07-g7e537bf/flasher_usb'
make: *** [sub-make] Error 2

All sources from TI SDK, and NEVER be modified.

Please anyone help to tell me what happened?

Thanks.

  • Hi,

    I will forward this to the SW team.
  • Hi,

    I was getting the same error at first, because I was executing:

      cd ~/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/u-boot-2014.07-g7e537bf

      export PATH="~/ti-processor-sdk-linux-am335x-evm-01.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin":$PATH

      make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=emmc am335x_boneblack_config all

    In order to resolve the issue you need to follow the bellow procedure (as described in the wiki):

         cd ~/ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/u-boot-2014.07-g7e537bf  

         git branch emmc

         git checkout emmc

         export PATH="~/ti-processor-sdk-linux-am335x-evm-01.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin":$PATH

         make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=emmc am335x_boneblack_config all

    Best Regards,

    Yordan

  • Hi, Yordan,

    Thanks for your reply.

    By this wiki page, I made all images step-by-step.

    I made these two images successfully.

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=emmc am335x_boneblack_config all

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher_eth am335x_evm_config all

    But, failed to make this 

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher_usb am335x_evm_usbspl_config all

    Could you try to build U-Boot with USB/RNDIS support again?

    Thanks.

    Best Regards,

    Felix

  • Felix,

    The steps I took were:

      x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76$ export PATH=$PATH:/home/x0155517/ti-processor-sdk-linux-am335x-evm-01.00.00.03/linux-devkit/sysroots/i686-arago-linux/usr/bin/

      x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76$ make mrproper

      x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76$ git branch flasher

      x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76$ git checkout flasher

      x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-01.00.00.03/board-support/u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher_usb am335x_evm_usbspl_config all

    And I was able to compile the u-boot sources without any errors.

    Best Regards,

    Yordan

  • hi, Yordan,

    Under version u-boot-2014.07-g7e537bf , there are two results:

    1. if branched from master, make failed. (my issue came from here)
    2. if branched from processor-sdk-1.0, make OK.

    By the way, if under version u-boot-2014.07+gitAUTOINC+fb6ab76dad-gfb6ab76, i didn't found any errors.

    Thanks again.

    Best Regards,

    Felix