【问题标题】:buildroot for arm kernel defconfigARM内核defconfig的buildroot
【发布时间】:2011-05-18 23:41:31
【问题描述】:

我正在尝试使用内核映像构建 buildroot,并且在执行 make menuconfigmake 之后,我得到:

No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting

我可以为defconfig 设置一个字符串,但我不知道该放什么。

我的目标系统是 AT91SAM9RL 板。

编辑:我发现有些设备有一些预先制作的配置文件,实际上与我的目标不完全匹配。

【问题讨论】:

标签: linux-kernel kernel arm cross-compiling buildroot


【解决方案1】:

您可以通过运行make xxx_defconfig 发出默认配置过程,并且make target 是文件夹arch/arm/configs/ 中的一个文件。这些默认配置并非完全适合您的目标,而是旨在成为超集,因此您只需稍作修改即可。

make xxx_defconfig 创建您的初始.config,您现在可以通过make menuconfig 对其进行编辑并进行更改。之后,您可以运行make,然后使用您的设置编译内核。

【讨论】:

  • 好的,我知道了,似乎它的工作。在虚拟机中构建时间相当长。
  • 我只想补充一点,defconfig 文件现在位于 buildroot 根目录的 configs 子文件夹中 (buildroot-2012.02)。
  • 不完全是。 configs 子文件夹包含 buildroot defconfig,它指向位于 board 子文件夹中的 linux defconfig。例如BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/freescale/mpc8315erdb/linux-3.12.config"
  • 为什么配置文件的名字必须以'defconfig'结尾?
  • 当你克隆 buildroot 的 git 仓库时,你可以在 config 目录中找到一些默认的配置文件。所有这些文件都被称为 _defconfig (like raspberrypi_defconfig)
猜你喜欢
  • 2016-09-10
  • 2019-10-21
  • 2017-06-26
  • 1970-01-01
  • 2012-03-10
  • 1970-01-01
  • 2020-07-27
  • 2019-07-09
  • 1970-01-01
相关资源
最近更新 更多