分页: 1 / 1

编译2.6.27.4内核的问题

发表于 : 2008-11-02 8:24
sgsdxzy
我第一次编译内核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.

不能编译。我太菜,这是为什么啊?

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 9:21
jeffwei
make xconfig或者其他方式配置内核没有

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 9:47
sgsdxzy
配置过了

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 13:51
jeffwei
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

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 21:19
sgsdxzy
到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. 。 停止。
老样子……

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 21:40
想入非非
编译内核还真是不在行阿。。。尤其是配置的阶段 :em04

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-02 22:11
xhy
配置完之后
make && make modules_install && make install
三条命令就够了 什么initrd也是几年前的东西 不需要了

编译出来的内核应该不超过1.5M,如果超过,就别自己编译了,弄出来还不如默认的好

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-03 9:30
jeffwei
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
打包问题,你的周边软件没有安装好

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-03 17:25
sgsdxzy
可我成功编译过一次呀~

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-03 22:04
jeffwei
sgsdxzy 写了:可我成功编译过一次呀~
还是这个版本?

Re: 编译2.6.27.4内核的问题

发表于 : 2008-11-07 17:29
sgsdxzy
还是,一模一样。不过中间系统更新过一次,是更新出了问题?如果是,该如何解决呢?