【发布时间】:2014-08-08 01:42:05
【问题描述】:
我从 kernel.org 获得了最新的内核源代码(使用 git),并按照this page 中描述的步骤构建内核。内核成功启动,但是,我不知道在配置过程中做了什么错误,initrd.img-3.16.0 比内置的大得多(initrd.img-3.13.0-32-generic)
我从 /boot/ 复制了配置文件 .config 并使用“yes '' | make oldconfig”进行内核配置。
文件大小total 191M
-rw-r--r-- 1 root root 1.2M Jul 14 21:29 abi-3.13.0-32-generic
-rw-r--r-- 1 root root 162K Jul 14 21:29 config-3.13.0-32-generic
-rw-r--r-- 1 root root 167K Aug 4 19:48 config-3.16.0
-rw-r--r-- 1 root root 20M Jul 28 15:14 initrd.img-3.13.0-32-generic
-rw-r--r-- 1 root root 151M Aug 4 19:48 initrd.img-3.16.0
-rw-r--r-- 1 root root 173K Mar 12 05:31 memtest86+.bin
-rw-r--r-- 1 root root 174K Mar 12 05:31 memtest86+.elf
-rw-r--r-- 1 root root 175K Mar 12 05:31 memtest86+_multiboot.bin
-rw------- 1 root root 3.3M Jul 14 21:29 System.map-3.13.0-32-generic
-rw-r--r-- 1 root root 3.4M Aug 4 19:48 System.map-3.16.0
-rw------- 1 root root 5.6M Jul 14 21:29 vmlinuz-3.13.0-32-generic
-rw-r--r-- 1 root root 5.7M Aug 4 19:48 vmlinuz-3.16.0
谢谢! 威廉
【问题讨论】:
-
我在Debian上使用
make-kpkg --initrd binary来构建内核。 -
对比新旧配置时你看到了什么?
-
嗨,n.m.,我可以看到可用的新配置(从 3.16 到 3.13)已将所有新配置配置为“y”。这基本上就是我们在“make listnewconfig”中看到的所有选项。提前致谢!
-
谢谢,Basile,但还是一样。我仍然认为我在生成 .config 进程时出错了
-
你用的是yes吗"" | make oldconfig 它将使用所有选项的默认值。
标签: linux linux-kernel