Chinaunix首页 | 论坛 | 博客
  • 博客访问: 528696
  • 博文数量: 120
  • 博客积分: 3030
  • 博客等级: 中校
  • 技术积分: 1445
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-05 01:00
文章存档

2011年(1)

2009年(2)

2008年(32)

2007年(33)

2006年(52)

我的朋友

分类: LINUX

2009-09-11 12:23:01

1.[root@gliethttp]#make mrproper
2.[root@gliethttp]#make clean
3.[root@gliethttp]#make menuconfig
3.1.选择处理器
      Processor type and features--->Processor family--->386
3.2.Ram Disk驱动
      Block devices--->
      < * > RAM disk support
      (4096) Default RAM disk size (NEW)
      < * > Initial RAM disk (initrd) support
  3.3.文件系统
      File systems--->
      [ * ] Ext3 journalling file system support
      [ * ] Ext3 Security Labels
      [ * ] JBD (ext3) debugging support
  3.4.BusLogic驱动
      SCSI support--->
      SCSI low-level drivers --->
      < M >BusLogic SCSI support
4.[root@gliethttp]#make dep
5.[root@gliethttp]#make bzImage
6.[root@gliethttp]#make modules
7.[root@gliethttp]#make modules_install
  (*
    make modules_install将执行如下操作:
#cp /usr/src/linux/System.map /boot/System.map-2.4.18
#cp /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.4.18                
#cd /boot
#rm -f System.map vmlinuz
#ln -s vmlinuz-2.4.18 vmlinuz
#ln -s System.map-2.4.18 System.map

bzImage是压缩的内核映像
vmlinux是未压缩的内核,vmlinuz是vmlinux的压缩文件。
initrd一般被用来临时的引导硬件到实际内核vmlinuz能够接管并继续引导的状态。
System.map是一个特定内核的内核符号表。它是你当前运行的内核的System.map的链接。
  *)
8.[root@gliethttp]#make install (生成grub下的menu.lst相关文件和RAM启动盘)
9.[root@gliethttp]#reboot (重启计算机)
阅读(1674) | 评论(4) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-09-11 12:45:47

http://fanqiang.chinaunix.net/program/code/2005-04-08/3125.shtml

chinaunix网友2009-09-11 12:42:18

我的linux 内核升级步骤,楼主的稍微有点烦琐,呵呵 tar jxvf linux-2.6.24.4.tar.bz2 cd linux-2.6.24.4 make mrproper 需要先拷贝.config文件,再做下面步骤 make menuconfig make -j 50 make modules_install make install cd /etc/ vi grub.conf (修改用新内核启动系统)

chinaunix网友2009-09-11 12:38:11

从以上步骤来看,基本上已经没有什么问题了,当然,请确认您在make menuconfig里边没有做过任何错误的事情哦,不然重新启动后,依然引导不了的,譬如fs里边一定要选中VFS,EXT3编译为M,因为现在系统一般都采用了ext3格式,您要是漏掉这个东东,加载不了分区,可别怨我没告诉你哦,当然second extended fs更是一定要选啦:)

chinaunix网友2009-09-11 12:25:21

make dep; make clean; make bzImage; make modules; make modules_install 这个命令还没完,还有 make install && depmod -a 然后直接重启就好,祝你好运,我现在也在重新编译2.4内核但是遇到了其他问题,大家一起学习吧