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/TDA2EVM5777:使用软件包编译内核、并将更改应用于.config 文件

Guru**** 2609285 points
Other Parts Discussed in Thread: DRA746

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/652645/linux-tda2evm5777-compiling-kernel-with-packages-and-applying-changes-to-config-file

器件型号:TDA2EVM5777
主题中讨论的其他器件: DRA746

工具/软件:Linux

您好!

我下载了适用于 Vision SDK 的 TDAx Linux 和 RTOS PROCESSOR_SDK V_03_01_00_00并为 Linux 编译。 我想将软件包添加到 rootfs 并对.config 文件进行更改。

1.我想将 openvpn 或 minicom 等软件包添加到 Linux 文件系统中。 我可以在何处将这些软件包添加到 rootfs?


2.我尝试使用 directory <PROCESSOR_SDK> 中的 make menuconfig 命令手动更改.config 文件/ti_components/os_tools/linux/kernel/omap/
。 当我使用命令 make linux  in the directory Linux/vision_sdk/build/中的命令重新编译<PROCESSOR_SDK> 时、<PROCESSOR_SDK> 中的.config 文件/ti_compons/os_tools/linux/kernel/omap/ 恢复为默认值。

谢谢、
iFer

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

    您好!

    您可以尝试解决方法

    1. /ti_components/os_tools/linux/kernel/OMAP 下的“make menuconfig”以获取您的.config
    2. 使用生成的.config 覆盖原始 defconfig (如 arch/arm/configs/ti_sdk_dra7x_release_defconfig)

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

    感谢你的帮助。 我将尝试在/vision_sdk/build/目录中运行"make linux"、并假设将使用 corret/modified .config 文件重新编译 rootfs。 (是这样吗?)

    其次,您是否知道在编译过程中在 rootfs 中安装包(如 minicom)的方法?

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

    您可以参阅 Processor SDK Linux 软件开发人员指南(以下链接)、请参阅"构建 Yocto 文件系统"一章

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

    谢谢、

    我已经下载并正在构建它、但我注意到步骤5 (启动电路板、在开始软件开发下)中的文档为我指出了一组不同于 tda2evm5777的 EVM (链接)。

    如何配置 tda2evm5777的编译?

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

    我按照您发送给我的链接操作、在步骤4 (准备 SD 卡)中、我能够使用预构建的 SDK、并能够使其在 TDA2EVM5777上引导。

    不幸的是、当我进入正在构建 Yocto 文件系统的部件时、我遇到了一个问题。 当我运行命令"./build-core-sdk.sh dra7xx-evm"时、我收到错误:

    [PSDKLA]>
    [PSDKLA]>当前目录是/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers
    [PSDKLA]>路径为/home/user01/LinaroCrossCompilerToolchain/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/user01/LinaroCrossCompilerToolchain/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/bin:/home/user01/ti/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:/opt/PHYTEC_BSPs/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin::/sbin:/bin:/usr/games:/usr/local/games
    [PSDKLA]>建立在运行 Linux Gantz04 4.4.4.0-83-generic #106~14.04.1-Ubuntu SMP Mon Jun 26 18:10:19 UTC 2017 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 GNU/Linux 的 Gantz04之上
    [PSDKLA]>从2018年1月4日12:39:07 PST 开始 Yocto 编译
    [PSDKLA]>
    [PSDKLA]>CD 构建
    [PSDKLA]>。 配置/设置
    [PSDKLA]>CP conf/local.conf conf/local.conf 原始
    [PSDKLA]> machine=dra7xx-EVM bitbake tisdk-rootfs-image
    注:已启动具有 DBfile 的 PRServer:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/cache/prserv.sqlite3、IP:127.0.0.1、端口:34245、PID:22148
    正在加载高速缓存:100%|########################################################################################################## | ETA:00:00:00
    从依赖关系缓存加载2849条目。
    注:解决任何缺失的任务队列相关性

    编译配置:
    BBB_VERSION ="1.30.0"
    BUIL_SYS ="x86_64 Linux 版"
    NATIVELSBSTRING ="Uubuntu-14.04"
    Target_SYS ="arm-linux-gnueabi"
    机器 ="dra7xx-evm"
    发行版 ="阿拉戈"
    DISTR_VERSION ="2016.12"
    TUNE_FUNCures ="arm armv7a VFP thumb NEON 难以规避"
    Target_FPU ="硬"
    Meta-glsdk ="标题:66cfd8ef55344508d6e7b306259f34c05b828194"
    meta-arago-distro
    meta-Arago-Extras ="标题:4c01410ffde8853224567fb6078d7d9f190b942f"
    meta-qt5. ="标题:f8584d7a7c90afc71484a40279aa3df651d0e04f"
    元网络
    meta ruby
    Meta-python
    Meta-OE ="标题:55c8a76da5dc099a7bc38495c672140cedb78e"
    meta-ti ="标题:5f3a1169d307fect41626f850f5c700437dedbe93"
    meta-linaro-toolchain
    元-选项 ="标题:2f51d38048599d9878f149d6d15539fb97603f8f"
    元数据 ="标题:bfa04fa71c47e8fe9528208848cfcec2e232777d"

    注:准备 RunQueue
    注:执行 SetScene 任务
    注:执行 RunQueue 任务
    错误:gstreamer1.0-plugins-hevc-git -R5 do_configure:函数失败:do_configure (日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317)
    错误:gstreamer1.0-plugins-vpe-git -r2.16 do_configure:函数失败:do_configure (日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314)
    错误:故障日志文件存储在:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314中
    日志数据如下:
    |调试:执行 python 函数 sysroot_清洁 状态
    |调试:Python 函数 sysroot_清洁 完成
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:执行 shell 函数 autotools_preconfigure
    |调试:shell 函数 autotools_preconfigure 完成
    |调试:执行 python 函数 autotools_copy_ac局部 变量
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:Python 函数 autotools_copy_ac局部 变量已完成
    |调试:执行 shell 函数 DO 配置
    |+设置通用子模块
    |无法运行命令'submodule':数值结果超出范围
    |无法运行命令'submodule':数值结果超出范围
    |源树出了问题。
    |您缺少 common/gst-autogen.sh
    |警告:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/run.do_configure.22314:1从'./autogen.sh --host=arm-linux --with -libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'中退出1
    |错误:功能失败:DO 配置(日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314)
    错误:故障日志文件存储在:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317中
    日志数据如下:
    |调试:执行 python 函数 sysroot_清洁 状态
    |调试:Python 函数 sysroot_清洁 完成
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:执行 shell 函数 autotools_preconfigure
    |调试:shell 函数 autotools_preconfigure 完成
    |调试:执行 python 函数 autotools_copy_ac局部 变量
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:Python 函数 autotools_copy_ac局部 变量已完成
    |调试:执行 shell 函数 DO 配置
    |+设置通用子模块
    |无法运行命令'submodule':数值结果超出范围
    |无法运行命令'submodule':数值结果超出范围
    |源树出了问题。
    |您缺少 common/gst-autogen.sh
    |警告:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/run.do_configure.22317:1从'./autogen.sh --host=arm-linux --with -libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'中退出1
    |错误:功能失败:DO 配置(日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317)
    错误:任务6113 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-vpe_git.bb、DO 配置)失败、退出代码为"1"
    错误:任务6071 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-hevc_git.bb、DO 配置)失败、退出代码为"1"
    错误:gstreamer1.0-plugins-ducati-git-r2.25_psdkla do_configure:函数失败:do_configure (日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315)
    错误:故障日志文件存储在:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315中
    日志数据如下:
    |调试:执行 python 函数 sysroot_清洁 状态
    |调试:Python 函数 sysroot_清洁 完成
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:执行 shell 函数 autotools_preconfigure
    |调试:shell 函数 autotools_preconfigure 完成
    |调试:执行 python 函数 autotools_copy_ac局部 变量
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:Python 函数 autotools_copy_ac局部 变量已完成
    |调试:执行 shell 函数 DO 配置
    |无法运行命令'submodule':数值结果超出范围
    |+传递参数--host=arm-linux 进行配置
    |+传递参数--with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm 进行配置
    |+传递参数--prefix=/usr 以进行配置
    |+传递给配置的选项:--host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr
    |+检查构建工具
    |./autogen.sh:第40行:version_check: command not found
    |./autogen.sh:第42行:version_check: command not found
    |./autogen.sh:第44行:version_check: command not found
    |./autogen.sh:第46行:version_check: command not found
    |./autogen.sh:第48行:version_check:命令未找到
    |./autogen.sh:第51行:DIE_CHECK:找不到命令
    |./autogen.sh:第53行:aclocal_check:找不到命令
    |./autogen.sh:第54行:autoster_check:找不到命令
    |./autogen.sh:第56行:Die 检查:找不到命令
    |+跑步--force……
    | common/gst-autogen.sh:第108行:--force:找不到命令
    |
    |--force 失败
    |警告:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/run.do_configure.22315:1从'./autogen.sh --host=arm-linux --with -libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'中退出1
    |错误:功能失败:DO 配置(日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315)
    错误:任务6099 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-ducati_git.bb、DO 配置)失败、退出代码为"1"
    错误:gstreamer1.0-plugins-dsp66-gIT-R1 do_configure:函数失败:do_configure (日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316上)
    错误:故障日志文件存储在:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316中
    日志数据如下:
    |调试:执行 python 函数 sysroot_清洁 状态
    |调试:Python 函数 sysroot_清洁 完成
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:执行 shell 函数 autotools_preconfigure
    |调试:shell 函数 autotools_preconfigure 完成
    |调试:执行 python 函数 autotools_copy_ac局部 变量
    |调试:站点文件['endian-little'、'bit-32'、'arm-common'、'arm-32'、'common-linux'、 'common-glibc'、'arm-linux'、'arm-linux-gnueabi'、'common"]
    |调试:Python 函数 autotools_copy_ac局部 变量已完成
    |调试:执行 shell 函数 DO 配置
    |+设置通用子模块
    |无法运行命令'submodule':数值结果超出范围
    |无法运行命令'submodule':数值结果超出范围
    |源树出了问题。
    |您缺少 common/gst-autogen.sh
    |警告:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/run.do_configure.22316:1从'./autogen.sh --host=arm-linux --with -libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'中退出1
    |错误:功能失败:DO 配置(日志文件位于/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316)
    错误:任务6085 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-dsp66_git.bb、DO 配置)失败、退出代码为"1"
    注:任务摘要:已尝试4214个任务、其中4210不需要重新运行、4个任务失败。
    注意:编写历史记录
    等待0个正在运行的任务完成:

    摘要:4个任务失败:
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-vpe_git.bb、DO 配置
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-hevc_git.bb、DO 配置
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-ducati_git.bb、DO 配置
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-dsp66_git.bb、DO 配置
    摘要:显示了4条错误消息、返回非零退出代码。
    [PSDKLA]>
    [PSDKLA]>于2018年1月4日12:39:55 PST 完成了 Yocto 构建
    [PSDKLA]>



    如何解决此问题以完成编译?

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

    抱歉、我没有亲自构建文件系统。 有关"Processor SDK Linux Automotive"的问题、请在以下论坛寻求帮助。

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

    谢谢、

    我尝试通过您发送的链接发布到该论坛、但不接受器件型号:TDA2EVM5777
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    iFer、

    您可以改用 DRA746。 内核与 DRA746和 TDA2x 相同