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.

[参考译文] Linux/TCI6636K2H:hello world 二进制文件不可执行

Guru**** 2589300 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/588901/linux-tci6636k2h-hello-world-binary-not-executable

器件型号:TCI6636K2H

工具/软件:Linux

你(们)好  

我在 Ubuntu 16.4中使用 ARM - Linux gnueabi-gcc 编译器构建 hello world 程序、并使用 TFTB 服务器将可执行文件传输到可执行文件中。  当我在目标中运行可执行文件时、我收到以下错误  

hello world 二进制文件不可执行 或文件在目录中不可用  

请参阅以下用户手册:MCSDK UG 章节 devloping KS II  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    这意味着它没有正确交叉编译。 要在 Ubuntu 中验证、请在 shell 中执行以下操作:
    #file hello.out //假设您的 hello world 二进制文件被称为 hello.out
    上述命令将确认是否已交叉编译。 将其与在 TI 硬件中成功运行的任何其他二进制文件进行比较

    此外、建议使用 TI 软件包随附的 GCC 编译器。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    感谢 Dwarakesh 现在的工作
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    相关知识。 问题是什么以及如何解决该问题以供参考。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    //*********
    一次性环境设置:
    在界面中键入以下命令:
    导出 cross_compile=arm-linux-gnueabihf-
    导出 arch=arm
    导出
    path=/opt/ti/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$path
    //*********