SessionPing
驱动牛犊
驱动牛犊
  • 注册日期2003-02-12
  • 最后登录2004-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1793回复:7

如何编译linux内核?

楼主#
更多 发布于:2003-07-28 11:40
如何编译linux内核?
SessionPing
驱动牛犊
驱动牛犊
  • 注册日期2003-02-12
  • 最后登录2004-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-28 11:41
可以看书〉〉〉〉〉〉〉〉〉〉〉〉〉
pingzhenyu
驱动牛犊
驱动牛犊
  • 注册日期2003-07-28
  • 最后登录2003-07-28
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-07-28 11:46
对么,很多书都有
stonepine
驱动牛犊
驱动牛犊
  • 注册日期2002-12-09
  • 最后登录2009-03-15
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-07-31 02:12
这个我回答,有分没?我挣!哈哈
#make menuconfig (or make xconfig)
  change the kernel options as you wish.
#make dep;
#make zImage(if there are errors,modify the kernel source code or take out the relevent options,then do this again until it pass through.)


[编辑 -  7/31/03 by  stonepine]
super_hzh
驱动牛犊
驱动牛犊
  • 注册日期2002-11-14
  • 最后登录2004-03-02
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-07-31 10:29
如何编译linux内核?


you can follow the steps below,redhat9.0 as the target OS,

1.enter /usr/src/linux-2.4.20-8/
2.#make menuconfig , make some choice in the menu as you need,
3.#make dep , if there are errors,rerun 2 according to the error messages
4.#make bzImage, build the kernel, it will took you about 30 minutes or so
5.#make modules modules_install, build modules & install the modules
6.#cp bzImage /boot/vmlinuz-2.4.20-8custom, copy the kernel to boot dir
7.#cp System.map /boot/System.map-2.4.20-8custom
8.#vi /etc/lilo.conf, modify the config file
9.#lilo , enable the configuration
10.#reboot
jiaoyer_lin
驱动牛犊
驱动牛犊
  • 注册日期2002-12-21
  • 最后登录2005-02-06
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-08-12 20:49
 :P:我也来凑热闹来了。
其实很多书上都有讲的,而且讲得很清楚。
要学这个就要靠自己,才会是最好的创造!!



[编辑 -  8/12/03 by  jiaoyer_lin]
千程万里路,一步一艰辛。 世间百花园,一朵亦芳香!
LinuxARM7
驱动牛犊
驱动牛犊
  • 注册日期2003-01-24
  • 最后登录2004-01-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2003-08-20 10:52
surf internet, search it in google, you could get lots of things about this issue. that\'s far enough to handle your problem
dilemma
驱动牛犊
驱动牛犊
  • 注册日期2003-08-02
  • 最后登录2003-08-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2003-08-20 20:54
#make menuconfig (or make xconfig)
#make dep;make clean
#make bzImage
#make modules;make modules_install
#make install
 /* This step will auto copy the new kernel to the right folder and moddify your lilo.conf or grub.conf */
#reboot
  /* After reboot, you will see the new option in the boot menu */

/* You can refer the attachment for more information */
附件名称/大小 下载次数 最后更新
2003-08-20_l-kernel.pdf (163KB)  3
游客

返回顶部