设为首页 加入收藏

TOP

Ubuntu 10.04 内核2.6.33编译(success)
2014-11-24 03:08:10 来源: 作者: 【 】 浏览:1
Tags:Ubuntu 10.04 内核 2.6.33 编译 success

本文假定你对Linux系统有了解,具备一定的计算机知识,文中所提的是简化的步骤转ROOT用户
sudo -s
装编译软件 GCC 库
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev


进入已经下载好的内核 解压 下载:http://www.kernel.org/
cd


内核配置
make menuconfig


第二次包括第二次后编译请
make-kpkg clean
自定义名称(小写,数字)
sudo make-kpkg -initrd --initrd --append-to-version=自定义名称 kernel_image kernel-headers
然后等估计好久,电脑好就快(我花了30分钟)


最后在上目录有2个DEB包


其中Linux-headers 开发人员有用


另外一个就不用说了吧


双击安装 ,命令


sudo dpkg -i Linux-image-包的名称


看看我的结果


dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if “/home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464/usr/src/Linux-headers-2.6.33inspiron1464/scripts/kconfig/conf” were not uselessly linked against it (they use none of its symbols).
test ! -e debian/control~ || rm -f debian/control~
dpkg-gencontrol -isp -DArchitecture=amd64 -pLinux-headers-2.6.33inspiron1464 \
-P/home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464/
create_md5sums_fn () { cd $1 ; find . -type f ! -regex ‘./DEBIAN/.*’ ! -regex ‘./var/.*’ -printf ‘%P\0′ | xargs -r0 md5sum > DEBIAN/md5sums ; if [ -z "DEBIAN/md5sums" ] ; then rm -f “DEBIAN/md5sums” ; fi ; } ; create_md5sums_fn /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
chown -R root:root /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
chmod -R og=rX /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
dpkg –build /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464 ..
dpkg-deb: building package `Linux-headers-2.6.33inspiron1464′ in `../Linux-headers-2.6.33inspiron1464_2.6.33inspiron1464-10.00.Custom_amd64.deb’.
cp -pf debian/control.dist debian/control
make[2]: Leaving directory `/home/heray/Downloads/Linux-2.6.33′
make[1]: Leaving directory `/home/heray/Downloads/Linux-2.6.33′
root@heray-laptop:/home/heray/Downloads/Linux-2.6.33#


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++拷贝构造函数以及运算符重载例.. 下一篇Ubuntu Linux下写的第一个代码

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Announcing October (2025-12-24 15:18:16)
·MySQL有什么推荐的学 (2025-12-24 15:18:13)
·到底应该用MySQL还是 (2025-12-24 15:18:11)
·进入Linux世界大门的 (2025-12-24 14:51:47)
·Download Linux | Li (2025-12-24 14:51:44)