主题 : 关于linux内核的默认配置文件 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 16283
精华: 0
发帖: 67
金钱: 335 两
威望: 67 点
贡献值: 0 点
综合积分: 134 分
注册时间: 2010-03-16
最后登录: 2021-07-28
楼主  发表于: 2012-01-18 10:28

 关于linux内核的默认配置文件

请教各位高手:我记得linux内核源码里面包含几种默认的配置文件:如:x86_64_defconfig,S3C2440_defconfig,loongson_defconfig等,好像有一个命令可以在命令行里列出所有的默认内核配置文件,类似于make ***defconfig,具体记不清了,还望各位赐教!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-01-18 12:32
对于ARM平台, make ARCH=arm help
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 16283
精华: 0
发帖: 67
金钱: 335 两
威望: 67 点
贡献值: 0 点
综合积分: 134 分
注册时间: 2010-03-16
最后登录: 2021-07-28
2楼  发表于: 2012-01-18 16:36
我现在有一个可以使用vmlinux,但是我没有它的内核配置文件,我该如何获得这个配置文件呢,因为我想编入initramfs到内核中
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-01-18 17:01
你是说ELF格式的vmlinux?如果你有对应的zImage或uImage的话可以试试把它烧到开发板里,运行起来后可以在/proc/config.gz找到它的配置文件。前提是这个kernel镜像打开了CONFIG_IKCONFIG_PROC选项。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."