编译2.6.27.4内核的问题

编译打包和其他
回复
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

编译2.6.27.4内核的问题

#1

帖子 sgsdxzy » 2008-11-02 8:24

我第一次编译内核2.6.27.4,按照http://forum.ubuntu.org.cn/viewtopic.php?t=110461&highlight=的办法,成功了。当时配置文件没去改,编完200+MB,吓死我了……后来打算重编,可
代码:
make mrproper

后执行
代码:
sudo make-kpkg clean

显示
代码:
exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
/usr/share/kernel-package/ruleset/misc/version_vars.mk:161: *** Error. The version number 2.6.27.4Lightning VERSION=[2], PATCHLEVEL=[6], SUBLEVEL=[27], EXTRAVERSION=[.4], iatv=[], LOCALVERSION=[Lightning], GIT_VERSION=[] UTS_RELEASE_VERSION=[], KERNELRELEASE=[ ]. is not all lowercase. Since the version ends up in the package name of the kernel image package, this is a Debian policy violation, and the packaging system shall refuse to package the image. 。 停止。

再执行
代码:
sudo make-kpkg -initrd --initrd --append-to-version=gkr kernel_image

显示
代码:
exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=gkr INITRD=YES
/usr/share/kernel-package/ruleset/misc/version_vars.mk:161: *** Error. The version number 2.6.27.4gkrLightning VERSION=[2], PATCHLEVEL=[6], SUBLEVEL=[27], EXTRAVERSION=[.4], iatv=[gkr], LOCALVERSION=[Lightning], GIT_VERSION=[] UTS_RELEASE_VERSION=[], KERNELRELEASE=[ ]. is not all lowercase. Since the version ends up in the package name of the kernel image package, this is a Debian policy violation, and the packaging system shall refuse to package the image. 。 停止。
Failed to create a ./debian directory: 没有该文件或目录 at /usr/bin/make-kpkg line 1096.

不能编译。我太菜,这是为什么啊?
头像
jeffwei
帖子: 1344
注册时间: 2007-05-12 22:48

Re: 编译2.6.27.4内核的问题

#2

帖子 jeffwei » 2008-11-02 9:21

make xconfig或者其他方式配置内核没有
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

Re: 编译2.6.27.4内核的问题

#3

帖子 sgsdxzy » 2008-11-02 9:47

配置过了
头像
jeffwei
帖子: 1344
注册时间: 2007-05-12 22:48

Re: 编译2.6.27.4内核的问题

#4

帖子 jeffwei » 2008-11-02 13:51

sudo apt-get install build-essential kernel-package libncurses5-dev
sudo dpkg-reconfigure dash#在弹出的界面种选择NO
sudo aptitude install libqt3-headers libqt3-mt-dev libqt3-compat-headers libqt3-mt
make xconfig
make-kpkg clean
sudo make-kpkg -initrd --initrd --append-to-version=你的版本号 kernel_image kernel_headers
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

Re: 编译2.6.27.4内核的问题

#5

帖子 sgsdxzy » 2008-11-02 21:19

到make-kpkg clean 这步还是

代码: 全选

$ make-kpkg clean
exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean 
/usr/share/kernel-package/ruleset/misc/version_vars.mk:161: *** Error. The version number 2.6.27.4Lightning VERSION=[2], PATCHLEVEL=[6], SUBLEVEL=[27], EXTRAVERSION=[.4], iatv=[], LOCALVERSION=[Lightning], GIT_VERSION=[] UTS_RELEASE_VERSION=[], KERNELRELEASE=[  ]. is not all lowercase. Since the version ends up in the package name of the kernel image package, this is a Debian policy violation, and the packaging system shall refuse to package the image. 。 停止。
老样子……
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: 编译2.6.27.4内核的问题

#6

帖子 想入非非 » 2008-11-02 21:40

编译内核还真是不在行阿。。。尤其是配置的阶段 :em04
Ubuntu User
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

Re: 编译2.6.27.4内核的问题

#7

帖子 xhy » 2008-11-02 22:11

配置完之后
make && make modules_install && make install
三条命令就够了 什么initrd也是几年前的东西 不需要了

编译出来的内核应该不超过1.5M,如果超过,就别自己编译了,弄出来还不如默认的好
目前负债150多万
头像
jeffwei
帖子: 1344
注册时间: 2007-05-12 22:48

Re: 编译2.6.27.4内核的问题

#8

帖子 jeffwei » 2008-11-03 9:30

is not all lowercase. Since the version ends up in the package name of the kernel image package, this is a Debian policy violation, and the packaging system shall
refuse to package the image
打包问题,你的周边软件没有安装好
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

Re: 编译2.6.27.4内核的问题

#9

帖子 sgsdxzy » 2008-11-03 17:25

可我成功编译过一次呀~
头像
jeffwei
帖子: 1344
注册时间: 2007-05-12 22:48

Re: 编译2.6.27.4内核的问题

#10

帖子 jeffwei » 2008-11-03 22:04

sgsdxzy 写了:可我成功编译过一次呀~
还是这个版本?
头像
sgsdxzy
帖子: 430
注册时间: 2008-07-19 11:14

Re: 编译2.6.27.4内核的问题

#11

帖子 sgsdxzy » 2008-11-07 17:29

还是,一模一样。不过中间系统更新过一次,是更新出了问题?如果是,该如何解决呢?
回复