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.

CCS/TMDXIDK5718: U-boot build problem

Part Number: TMDXIDK5718

Tool/software: Code Composer Studio

Hi ,

     I   have an Tmdxidk5718 EVM ,and I'd like to rebuild the boot and to debug the uboot with JTAG in CCS8. and I got some problem as I describe as following,I will be appropriated with your help.

     I created a c/c++ project with option "makefile project with exiting code",then I select "~/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd$ " for the exiting code location and "Linux Gcc " for the toolchain. Then I build the project ,and I am  failure with the following information:

20:55:57 **** Build of configuration Default for project u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd ****
make all
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CC      lib/asm-offsets.s
lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch
Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
 /*
 ^
Makefile:1286: recipe for target 'prepare0' failed
make[1]: *** [lib/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

20:55:57 Build Finished (took 241ms)

  • Follow the steps outlined here (change your config from am335x_evm_config to am57xx_evm_config)
    processors.wiki.ti.com/.../Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5

    This will generate u-boot with debug symbols
    Afterwards you can load the generated u-boot file (u-boot) containing the symbols in CCS.
  • Sir,
    Thank a lot for your help.but I meet problem again when I according the setups to type the following command(Build U-Boot for Debug at Lab setups 5):
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am57xx_evm_config;
    and the following is my path information and the failure information. How should I do ?

    [linux-devkit]:/opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd> echo $PATH
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qt5:/opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:/opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabi:/home/bobhuang/bin:/home/bobhuang/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

    [linux-devkit]:/opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am57xx_evm_config
    HOSTCC scripts/basic/fixdep
    In file included from /opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/features.h:392:0,
    from /opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/sys/types.h:25,
    from scripts/basic/fixdep.c:106:
    /opt/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
    compilation terminated.
    scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
    make[1]: *** [scripts/basic/fixdep] Error 1
    Makefile:398: recipe for target 'scripts_basic' failed
    make: *** [scripts_basic] Error 2
  • I am sorry , right now ,I solved this problem and thanks a lot . it my SDK don't install the correct directory. just change to /home/usr , then I build the uboot success.
  • and the anther question is :
    when I load uboot-spl.bin (TI RAW data) into the memory , and set the Address 0x402f0400 and datasize 32bit. and I get the following failure. what's wrong with that? please

    CortexA15_0: Data verification failed at address 0x402f0400
    CortexA15_0: Unable to terminate memory download: NULL buffer pointer at 0x3aa4 (Emulation package 8.0.27.9)
    CortexA15_0: File Loader: Verification failed: Values at address 0x402F0400 do not match Please verify target memory and memory map.
    CortexA15_0: GEL: File: /home/bobhuang/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/spl/u-boot-spl.bin: a data verification error occurred, file load failed.
    CortexA15_0: Unable to terminate memory download: NULL buffer pointer at 0x3aa4 (Emulation package 8.0.27.9)
    CortexA15_0: Data verification failed at address 0x3808c
    CortexA15_0: Unable to terminate memory download: NULL buffer pointer at 0x3aa4 (Emulation package 8.0.27.9)
  • The following document can provide some guidance to debug the Data Verification Errors.

    processors.wiki.ti.com/.../Troubleshooting_CCS_-_Data_Verification_Errors