有关编译2.4.30内核的问题
时间:2006-07-17
来源:互联网
机器配置:HP DL380 G3, CPU: Xeon3.06G*2 , SCSI硬盘: compaq array 5i
当前内核:Linux srv 2.4.27-3-686-smp #1 SMP Mon May 29 23:26:59 UTC 2006 i686 GNU/Linux
预期目标:在标准2.4.30内核基础上patch linux-2.4.30-mppe-mppc-1.3.patch 之后后编译
配置文件:请参考附件。说明:已经编译EXT2,EXT3文件系统,p4,4*cpu,initrd surport
配置方法:
tar -jxvf linux-2.4.30.tar.bz2 -C /usr/src
patch -p0 -i linux-2.4.30-mppe-mppc-1.3.patch
make-kpkg clean
make clean
make menuconfig
fakeroot make-kpkg --revision=mykernel.1.0 kernel_image
dpkg -i kernel-image-2.4.30_mykernel.1.0_i386.deb
mkinitrd -o /boot/initrd.img-2.4.30-p4-smp
/boot/grub/menu.lst内容如下:
title Debian GNU/Linux, kernel 2.4.30
root (hd0,0)
kernel /boot/vmlinuz-2.4.30 root=/dev/cciss/c0d0p1 ro
initrd /boot/initrd.img-2.4.30-p4-smp
savedefault
boot
title Debian GNU/Linux, kernel 2.4.30 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.4.30 root=/dev/cciss/c0d0p1 ro single
initrd /boot/initrd.img-2.4.30-p4-smp
savedefault
boot
故障现象:
kernel panic:VFS:unable to mount root fs on 68:01
系统停止启动
全部清除,再次重新编译之后,故障重现
恭请各位高人指教……不胜荣幸
当前内核:Linux srv 2.4.27-3-686-smp #1 SMP Mon May 29 23:26:59 UTC 2006 i686 GNU/Linux
预期目标:在标准2.4.30内核基础上patch linux-2.4.30-mppe-mppc-1.3.patch 之后后编译
配置文件:请参考附件。说明:已经编译EXT2,EXT3文件系统,p4,4*cpu,initrd surport
配置方法:
tar -jxvf linux-2.4.30.tar.bz2 -C /usr/src
patch -p0 -i linux-2.4.30-mppe-mppc-1.3.patch
make-kpkg clean
make clean
make menuconfig
fakeroot make-kpkg --revision=mykernel.1.0 kernel_image
dpkg -i kernel-image-2.4.30_mykernel.1.0_i386.deb
mkinitrd -o /boot/initrd.img-2.4.30-p4-smp
/boot/grub/menu.lst内容如下:
title Debian GNU/Linux, kernel 2.4.30
root (hd0,0)
kernel /boot/vmlinuz-2.4.30 root=/dev/cciss/c0d0p1 ro
initrd /boot/initrd.img-2.4.30-p4-smp
savedefault
boot
title Debian GNU/Linux, kernel 2.4.30 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.4.30 root=/dev/cciss/c0d0p1 ro single
initrd /boot/initrd.img-2.4.30-p4-smp
savedefault
boot
故障现象:
kernel panic:VFS:unable to mount root fs on 68:01
系统停止启动
全部清除,再次重新编译之后,故障重现
恭请各位高人指教……不胜荣幸
上传的附件
20060716-2351.txt (24.6 KB, 3 次查看) |
作者: lvzg 发布时间: 2006-07-17
内核config里似乎没有你scsi硬盘的驱动,所以在initrd起来后,装载硬盘驱动失败.
作者: nicle 发布时间: 2006-07-17
引用:
作者: nicle
内核config里似乎没有你scsi硬盘的驱动,所以在initrd起来后,装载硬盘驱动失败.
|
x x --- SCSI support type (disk, tape, CD-ROM) x x
x x <*> SCSI disk support x x
x x (40) Maximum number of SCSI disks that can be loaded as modules x x
x x < > SCSI tape support x x
x x < > SCSI OnStream SC-x0 tape support x x
x x < > SCSI CD-ROM support x x
x x < > SCSI generic support x x
x x --- Some SCSI devices (e.g. CD jukebox) support multiple LUNs x x
x x[*] Enable extra checks in new queueing code x x
x x[*] Probe all LUNs on each SCSI device x x
x x[*] Verbose SCSI error reporting (kernel size +=12K) x x
x x [ ] SCSI logging facility x x
x x SCSI low-level drivers ---> x x
x x PCMCIA SCSI adapter support ---> x x
以上是有关SCSI的配置,应该选择哪一项呢?
作者: lvzg 发布时间: 2006-07-17
选中SCSI disk support x x 还不够,这个只是scsi的通用接口,你还得选中"SCSI low-level drivers "里边具体的scsi驱动程序。这里我没有找到compaq array 5i的驱动,也许它和某种通用驱动兼容的,这个我实在不能确定!两个建议:
1. 用dmesg命令,查找RAID项,看看在内核里你的硬盘他用的是什么驱动模块
2. 把通用的buslogic选上,还有里边一个叫Compaq Fibre Channel 64-bit/66Mhz HBA support也选上,撞撞大运,哈哈!!!
1. 用dmesg命令,查找RAID项,看看在内核里你的硬盘他用的是什么驱动模块
2. 把通用的buslogic选上,还有里边一个叫Compaq Fibre Channel 64-bit/66Mhz HBA support也选上,撞撞大运,哈哈!!!
作者: nicle 发布时间: 2006-07-17
解决方法:
1、添加block device以下选项
x x <*> Normal floppy disk support x x
x x < > XT hard disk support x x
x x < > Compaq SMART2 support x x
x x <*> Compaq Smart Array 5xxx support x x
x x[*] SCSI tape drive support for Smart Array 5xxx x x
x x[*] Enable monitor thread x x
x x < > Mylex DAC960/DAC1100 PCI RAID Controller support x x
x x < > Micro Memory MM5415 Battery Backed RAM support (EXPERIMENTAL) x x
x x < > Promise SATA SX8 support x x
x x <*> Loopback device support x x
x x < > Network block device support x x
x x <*> RAM disk support x x
x x (4096) Default RAM disk size x x
x x[*] Initial RAM disk (initrd) support x x
x x [ ] Per partition statistics in /proc/partitions x x
2、添加SCSI device support选项
x x <*> SCSI disk support x x
x x (40) Maximum number of SCSI disks that can be loaded as modules x x
x x < > SCSI tape support x x
x x < > SCSI OnStream SC-x0 tape support x x
x x < > SCSI CD-ROM support x x
x x <*> SCSI generic support x x
问题解决,哈哈
1、添加block device以下选项
x x <*> Normal floppy disk support x x
x x < > XT hard disk support x x
x x < > Compaq SMART2 support x x
x x <*> Compaq Smart Array 5xxx support x x
x x[*] SCSI tape drive support for Smart Array 5xxx x x
x x[*] Enable monitor thread x x
x x < > Mylex DAC960/DAC1100 PCI RAID Controller support x x
x x < > Micro Memory MM5415 Battery Backed RAM support (EXPERIMENTAL) x x
x x < > Promise SATA SX8 support x x
x x <*> Loopback device support x x
x x < > Network block device support x x
x x <*> RAM disk support x x
x x (4096) Default RAM disk size x x
x x[*] Initial RAM disk (initrd) support x x
x x [ ] Per partition statistics in /proc/partitions x x
2、添加SCSI device support选项
x x <*> SCSI disk support x x
x x (40) Maximum number of SCSI disks that can be loaded as modules x x
x x < > SCSI tape support x x
x x < > SCSI OnStream SC-x0 tape support x x
x x < > SCSI CD-ROM support x x
x x <*> SCSI generic support x x
问题解决,哈哈
作者: lvzg 发布时间: 2006-07-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28