debian lenny成功编译3.0.3内核

试了四次终于成功编译出来了,主要遇到有两个问题,这里要记录一下.

第一个是在编译的过程中提示说:
Documentation/lguest not found

这个目录已经移到Documentation/virtual/lguest下面了,所以找不到.
参照 http://billy.com.mx/archives/660 有两个方法
一个是改文件,把所有的Documentation/lguest都换成Documentation/virtual/lguest $ find “.” -type f | xargs grep “Documentation/lguest”
s, Documentation/lguest, Documentation/virtual/lguest
或者是干脆禁用lguest,在.config里找到:
CONFIG_LGUEST_GUEST=y
CONFIG_PARAVIRT_SPINLOCKS=y
CONFIG_LGUEST=y
改成
# CONFIG_LGUEST_GUEST is not set
# CONFIG_PARGVIRT_SPINLOCKS is not set
# CONFIG_LGUEST is not set

第二个问题是快要结束的时候,报错:
The UTS Release version in include/linux/version.h
“”
does not match current version:
“3.0.3”
Please correct this.
解决的方法在这里
http://forum.ubuntu.org.cn/viewtopic.php?f=97&t=264540&start=0

编辑debian/ruleset/misc/version_vars.mk
将echo include/linux/version.h;
改作echo include/generated/utsrelease.h;
然后继续编译make-kpkg –initrd kernel_image kernel_headers

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s