工具/软件:Linux
您好!
我在尝试使用我自己的 defconfig 为定制的 am3352板配置 linux-ti-staging-4.9内核时遇到了相当困难。
我已经使用 Arago 的"设置构建环境 "页面上的步骤设置了 meta-Arago 集中式构建环境、但我使用的是 Linaro 6.2.1-2016工具链而不是 Linaro 5.3-2016工具链、我使用了 Arago-morty-next 配置进行层配置。
我还为电路板添加了一个定制层(我使用 Yocto 项目的 Yocto-BSP 工具创建的、位于不同目录中)、名为 meta-custom、并添加了我的 defconfig (实际上是我为4.9.10内核制作的完整.config)和针对 meta-custom/ti-kernel/linux-4.9配置的特定于电路板的补丁。 meta-custom/meta-kernel/Linux 中的 linux-ti-staging_4.9.bbappend 文件如下所示:
FILESEXTRAPATHS_PREPEND:="${THISDIR}/${PN}-4.9:"
SRC_URI +="文件://defconfig"
SRC_URI +="文件://0001-added_support-for-my-board.patch"
对于 meta-custom/conf/machine/中的 custom.conf 机器配置、我需要 meta-ti/conf/machine/include 中的 ti33x.inc。 我认为这是我大多数问题的根源、因为这包括声明 SOC_family ="ti33x"、这似乎强制 meta ti/prometa-kernel/linux-ti-stage-4.9/t33x/进行 defconfig。 从那里、defconfig (以及最终的.config)看起来是从 tisdk/build/Arago-tmp-extern-linaro-toolchain/work / custom-linux-gnueabi/linux-ti-staging /4.9.10+gitblahblahblah/build/sources/ti_config_frages/using defconfig_builder.sh 脚本中的 defconfig 片段生成的 defconfig 片段。
在我的图层的 layers.conf 中、我将 BBFILE_PRIORY_CUSTOM 更改为等于"11"、并已将图层添加到 tisdk/build/conf/中 bblayers.conf 文件中的 BBLAYERS 变量的末尾
我能够成功完成针对电路板的 bitbake 内核镜像-最小化构建、但内核工作目录中的.config 文件与我的 defconfig 不同、我认为这是由于 defconfig_builder.sh 脚本覆盖了我的 defconfig、因此不能为我的电路板生成正确的内核。 有人可以帮助我纠正这种情况吗?
谢谢、
Jon