简体   繁体   中英

where can I find a good enough default config to compile the Linux kernel?

i want to compile a custom linux kernel for myself. because i dont know every option of kernel therefore i am looking for a good default config for start.

You should check out KernelCheck . It's basically an app that will help you figure out what kernel options are worth tweaking for your particular system. It will also automatically download, compile and install the selected kernel for you.

如果你有一个内置支持存储配置的良好运行内核(即存在/proc/config.gz ),那么你可以复制该内核配置并将其用作起点:

zcat /proc/config.gz > /path/to/kernel/source/.config

查看您正在使用的Linux发行版的存储库,它们通常具有通用或巨大的内核.config ,这些是“最佳选择”。

From the Linux kernel source tree, type make help and look for the lines that include defconfig . Default configurations for various platforms are typically included here. Once you find the one that matches your platform, type, for example make defconfig to get your default .config file. For example, to build on a Nexus S, I use make herring_defconfig . (herring is, I guess, the code name for the Nexus S hardware, which can incidentally be found if you look at /proc/cpuinfo on the Nexus S)

If you are not building for x86 (for example, like in my case, if you are building for Android) be sure to remember to export ARCH (for example, export ARCH=arm before running make ). Otherwise, make help will not show the correct defconfig targets for the architecture you want to build.

我有一段时间没有这样做但在配置对话框中没有明智的默认值?

这个问题很老,但是我觉得有必要将http://kernel-seeds.org/作为一个非常可行的选项添加到编译适合的自定义内核的起点 - 因为有香草源的种子,即使你不是gentoo。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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