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.

关于最新版本am335xsdk04.03 在uboot中make 遇到的问题

您好!

在am335xsdk最新版sdk中的uboot2017中的配遇到的问题!

版本号:ti-processor-sdk-linux-am335x-evm-04.03.00.05-Linux-x86-Install

通过make am335x_evm_defconifg

然后配置 make menuconfig

配置完成然后退出

进行make

出现了一下的问题

root@007:/home/ob/u-boot-2017.01# make
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
make[1]: *** [lib/asm-offsets.s] Error 1
Makefile:1286: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
root@007:/home/ob/u-boot-2017.01#

通过提示,到lib/asm-offsets.c 中进行查看, 没找出相应的东西,

请问关于最新版的sdk  make中出现的这个问题,是什么原因导致的,

有人遇见过相同的问题么?

  • uboot 编译不是直接make吧

  • 你好!
    这个uboot是2017版的,在software-dl.ti.com/.../Foundational_Components.html menuconfig后需要make下,把配置好的 东西编译到里面进去的。
    不知道是不是我理解错了,你也可以看看。
    谢谢你的回复!
  • 请参考下面链接的步骤:

    Setting the tool chain path

    We strongly recommend using the toolchain that came with the Linux Core release that corresponds to this U-Boot release. For e.g:

    export PATH=$HOME/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH


    Cleaning the Sources

    If you did not use a separate object directory:

    $ make CROSS_COMPILE=arm-linux-gnueabihf- distclean
    

    If you used ‘O=am335x_evm’ as your object directory:

    $ rm -rf ./am335x_evm


    # Use 'am335x_evm' and 'AM335x GP EVM' in this example
    $ make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_defconfig
    $ make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm

    config选项见下表:
    BoardSD BooteMMC BootNAND BootUART BootEthernet BootUSB Ethernet BootUSB Host BootSPI Boot
    AM335x GP EVM am335x_evm_defconfig   am335x_evm_defconfig am335x_evm_defconfig am335x_evm_defconfig am335x_evm_defconfig   am335x_evm_spiboot_defconfig
    AM335x EVM-SK am335x_evm_defconfig     am335x_evm_defconfig   am335x_evm_defconfig    
    AM335x ICE am335x_evm_defconfig     am335x_evm_defconfig        
    BeagleBone Black am335x_evm_defconfig am335x_evm_defconfig   am335x_evm_defconfig        
    BeagleBone White am335x_evm_defconfig     am335x_evm_defconfig        


  • 上面遇到的问题就解决了
    需要编译的时候再次添加下环境变量

    export CROSS_COMPILE=arm-linux-gnueabihf-
    export ARCH=arm
    通过这样的操作,就可以不出现那种情况了