【问题标题】:Building Kernel from a custom .config with Buildroot使用 Buildroot 从自定义 .config 构建内核
【发布时间】:2019-10-13 04:42:47
【问题描述】:

我正在尝试使用 buildroot 为 raspberrypi 3 生成自定义图像。我有一个用于 Buildroot 选项的自定义 .config,我在其中提供了位于 /boards/raspberrypi3/linux.config 中的 BR2_KERNEL_CUSTOM_CONFIG_FILE 的路径

但是在构建的补丁阶段我发现以下错误:

for f in boards/raspberrypi3/.config ; do
    if [ ! -f "${f}" ]; then
        printf "Kconfig fragment '%s' for '%s' does not exist\n" "${f}" "linux";
        exit 1;
    fi;
done

Kconfig 片段

'boards/raspberrypi3/linux.config' for 'linux' does not exist
linux/linux.mk:555: recipe for target 'boards/raspberrypi3/.config' failed

当我只使用 buildroot 的 .config 而没有任何自定义 Linux 内核配置的路径(使用 menuconfig 中的默认内核)时,一切正常。

【问题讨论】:

标签: linux raspberry-pi kernel config buildroot


【解决方案1】:

您的 linux 配置文件的正确文件名是什么?您提到您将 BR2_KERNEL_CUSTOM_CONFIG_FILE 指向 /boards/raspberrypi3/linux.config (可能没有前导斜杠),但您的输出 sn-p 显示 board/raspberrypi3/.config?

raspberrypi 3 文件的上游位置在 board/raspberrypi3 下(注意 BOARD 不是 BOARDS)。请仔细检查

【讨论】:

  • 你好彼得,谢谢你的回答。错误实际上是PATH中的“Boards”而不是“Board”。构建的这个阶段很顺利,但现在的问题在于“bcm2710-rpi-b-plus.dtb”,它与我迄今为止下载的任何内核 repo 版本都不兼容。总是可以手动将 .dtb 复制到文件夹中,但我想避免这种情况。有什么建议吗?
  • bcm2710-rpi-b-plus.dtb?你不是说 bcm2708-rpi-b-plus.dtb, E.G.树莓派内核用于 rpi 0/rpi 1 的 dtb?
猜你喜欢
  • 2015-08-24
  • 1970-01-01
  • 2018-10-28
  • 1970-01-01
  • 2017-06-26
  • 2019-10-21
  • 2016-04-29
  • 2012-04-02
  • 2018-01-29
相关资源
最近更新 更多