简体   繁体   English

buildroot中的内核defconfig(arm目标)

[英]Kernel defconfig in buildroot (arm target)

Debian 8 x64, buildroot 2016.02 / 2016-05-07 / 2016-05-13. Debian 8 x64,buildroot 2016.02 / 2016-05-07 / 2016-05-13。 After make menuconfig and set some settings I run make . make menuconfig并设置一些设置后,我运行make There is an error appears: 出现错误:

linux/linux.mk:424: *** No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting. linux / linux.mk:424:***没有指定内核defconfig名称,检查你的BR2_LINUX_KERNEL_DEFCONFIG设置。 Stop. 停止。

This answer does not help: my arch/arm/configs/ folder does not exist in every release/snapshot I've tried. 这个答案没有帮助:我试过的每个版本/快照中都不存在我的arch/arm/configs/文件夹。 There is only arch folder with this content: 此内容只有arch文件夹:

-rw-r--r--  1 user user  11K May 12 19:21 Config.in
-rw-r--r--  1 user user  176 May 12 19:21 Config.in.aarch64
-rw-r--r--  1 user user 1.7K May 12 19:21 Config.in.arc
-rw-r--r--  1 user user  15K May 12 19:21 Config.in.arm
-rw-r--r--  1 user user 2.2K May 12 19:21 Config.in.bfin
-rw-r--r--  1 user user  735 May 12 19:21 Config.in.m68k
-rw-r--r--  1 user user  279 May 12 19:21 Config.in.microblaze
-rw-r--r--  1 user user 2.1K May 12 19:21 Config.in.mips
-rw-r--r--  1 user user   70 May 12 19:21 Config.in.nios2
-rw-r--r--  1 user user 5.5K May 12 19:21 Config.in.powerpc
-rw-r--r--  1 user user  693 May 12 19:21 Config.in.sh
-rw-r--r--  1 user user  617 May 12 19:21 Config.in.sparc
-rw-r--r--  1 user user 7.5K May 12 19:21 Config.in.x86
-rw-r--r--  1 user user 1.5K May 12 19:21 Config.in.xtensa

I've tried to create arch/arm/configs/ folder and put there arch/Config.in.arm file (renamed to arm_defconfig /whatever) or empty file (renamed). 我试图创建arch/arm/configs/文件夹并将arch/Config.in.arm文件(重命名为arm_defconfig / whatever)或空文件(重命名)放在那里。 Whatever Kernel - Defconfig name I set, it does not helps. 无论我设置什么Kernel - Defconfig name ,它都没有帮助。 make BR2_LINUX_KERNEL_DEFCONFIG also does not helps. make BR2_LINUX_KERNEL_DEFCONFIG也没有帮助。 Option is not documented in Buildroot user manual. Buildroot用户手册中未记录选项。 make linux-menuconfig returns same error if no Kernel - Defconfig name seted or make linux-menuconfig如果没有Kernel - Defconfig name则返回相同的错误或

Can't find default configuration "arch/arm/configs/name_defconfig"! 找不到默认配置“arch / arm / configs / name_defconfig”!

where name is Kernel - Defconfig name variable. 其中nameKernel - Defconfig name变量。 I've tried to set this to arm , BR2_LINUX_KERNEL_DEFCONFIG and many other names. 我试图将其设置为armBR2_LINUX_KERNEL_DEFCONFIG和许多其他名称。

Can you help me, how to set default kernel configuration from buildroot developers? 你能帮助我,如何从buildroot开发人员设置默认的内核配置?

The kernel defconfig is a configuration file in the kernel tree, not the buildroot tree. 内核defconfig是内核树中的配置文件,而不是buildroot树。 You have to look in arch/arm/configs in the kernel . 你必须在内核中查看arch/arm/configs Find the defconfig there that is appropriate for your target CPU. 找到适合您的目标CPU的defconfig。 If you are not using an upstream kernel, you'll have to check with the vendor which defconfig to use. 如果您没有使用上游内核,则必须与供应商核实要使用的defconfig。 Remember to remove the _defconfig part of the name. 请记住删除名称的_defconfig部分。

If you really have no idea at all, multi_v5 and multi_v7 are safe options: they include support for all possible processors with an ARMv5 resp. 如果您根本不知道, multi_v5multi_v7是安全选项:它们包括对所有可能具有ARMv5 resp的处理器的支持。 ARMv7 architecture. ARMv7架构。

You will probably encounter the same issue with the device tree. 您可能会遇到与设备树相同的问题。 You can find the device trees (the .dts files) in arch/arm/boot/dts in the kernel tree . 您可以在内核树中的arch/arm/boot/dts找到设备树( .dts文件)。 This one does have to match exactly with your board. 这个必须与您的电路板完全匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM