编译自己功能定制的Fedora7内核
来源:互联网 发布:fc2手机版无法连接网络 编辑:程序博客网 时间:2024/05/19 22:52
编译自己功能定制的Fedora7内核
第一步:
从 http://www.kernel.org/pub/ 下载需要的内核版本
我照旧先下载一个和系统版本一样的内核源码下来
然后 www.ahlinux.com
#cp ~/Downlocd/linux-2.6.21.tar.gz /usr/src
#cd /usr/src
#tar -xzf linux-2.6.21.tar.gz
第二步:
#cp /boot/config-2.6.21-1.3194.fc7 ./.config
然后运行make oldconfig,
make oldconfig会提示新内核中出现的新配置选
项,旧的配置选项使用原有的.config中的配置。
再运行make menuconfig查看都选中了什么配置选项,根据自己的需要勾选或者去掉某些选项。
第三步: www.ahlinux.com
运行make
第四步:
安装编译模块
#make modules_install
第五步:
# cp /usr/src/linux-2.6.21/arch/i386/boot/bzImage /boot/vmlinuz-2.6.21
# cp /usr/src/linux-2.6.21/System.map /boot/System.map-2.6.21
第六步:
制作initrd-2.6.21.img
#cd /boot
#mkinitrd /boot/initrd-2.6.21.img 2.6.21
(备注:Ubuntu/Debian下是用mkintramfs.
用法如下所示:
mkintramfs 2.6.21 -o /boot/initrd-2.6.21.img
其中2.6.21为/lib/modules下的相应内核目录名称.)
第七步:
修改文件/boot/grub/grub.conf添加新内核的启动项,
title Fedora (2.6.21-1.3194.fc7)
root (hd0,7) www.ahlinux.com
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet vga=792
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title Fedora (2.6.21)
root (hd0,7)
kernel /boot/vmlinuz-2.6.21 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21.img
备注:笔者使用的台式机的有线网卡是marvell的型号marvell-88E8057,所以去marvell官网下载驱动,不确定在内核里面是否能支持,能用了就不管了。
- 本文来自:Linux教程网
- 编译自己功能定制的Fedora7内核
- 编译自己功能定制的Fedora7内核
- Fedora7内核功能定制(重新编译内核或内核升级)
- 定制自己的内核
- 定制自己的linux内核
- Fedora7下安装编译UPnP的过程
- 编译Bootstrap,定制自己的模板。
- 编译自己的uclinux内核
- 转载:升级Fedora7内核
- 内核定制与编译准备工作
- centos5.2内核定制编译
- centos6.2内核定制编译
- 定制我的Nexus系统之内核编译
- 编译一个 RHEL 定制的内核 rpm 包
- linux编译内核定制不同的版本号扩展名
- linux内核编译(自己实践过的)
- Ubuntu删除自己编译的内核
- Ubuntu删除自己编译的内核
- bottle中文教程
- UML图解二
- 微信公众平台开发教程第19篇-应用实例之人脸检测
- Burst mode (computing)
- 1187-简单编码
- 编译自己功能定制的Fedora7内核
- 弹出网页窗口
- Mysql常用操作语句
- AUTH测试
- APK扩展文件及使用
- ActionServlet详解
- VC 和 Halcon 之间的互相赋值
- IOS的Crash
- Let the Balloon Rise