²©¿ÍÊ×Ò³ ×¢²á ½¨ÒéÓë½»Á÷ ÅÅÐаñ ¼ÓÈëÓÑÇéÁ´½Ó
ÍÆ¼ö ͶËß ËÑË÷£º °ïÖú

Ò°¹·Ö®¼Ò

ɽ¼äÒ»ËÂÒ»ºø¾Æ,¶À×ÃĪÈçÈ¥ÏàÇ×,ºÎ±ØÁ涡̾¼ÅÁÈ,±Ìº£ÇàÌìÒ¹Ò¹ÐÄ,γîǰ·ÎÞÖª¼º,ÌﱎȮ½ðʼ¼ûɳ,¹ý¾¡Ç§·«½Ô²»ÊÇ,ÖÕÓÐÒ»¿îÊʺÏÄú.--ŵ»ùÑÇÕæÆ¤Êµ!
wysilly.cublog.cn
gentoo(2.6.20.4)ÏÂʹÓÃmkinitrd(4.2.17)
ÓÉÓÚÓöµ½ÁËÔÚvmvareÖÐ,´Ó2.6.9µ½2.6.21Éý¼¶ÄÚºËʱ£¬³öÏÖ
 
Red Hat nash version 4.2.1.8 starting
Reading all physical volumes. This may take a while...
No volume groups found
Volume group ¡°VolGroup00¡± not found
ERROR: /bin/lvm exited abnormally! (pid 302)

´íÎó£¬scsi¿¨Îª
SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI
 
±¾ÒÔΪgoogleºó»áÓнá¹û£¬Î´¹û£¬Ö»ÓÐ×Ô¼º¶¯ÊÖÁË£®£¨ÔÚgentooÏÂ×öʵÑé)
 
Ê×ÏȾõµÃÓбØÒªÊ¹ÓÃаæµÄmkinitrd.ÏÂÁËÒ»¸ö£¬Éú³É
Îļþ: mkinitrd-4.2.17.tar.gz
´óС: 85KB
ÏÂÔØ: ÏÂÔØ
±àÒëºó°²×°£®(´ËΪÎÒÐ޸ĺóµÄ°æ±¾)
 
¿ÉÒÔ×öʵÑéÁË£®
1£®cp /usr/src/linux/arch/i386/bzImage  /boot/boot.img
2. cd /boot
3. mkinitrid -v --preload mptspi --preload dm-mod -f initrd-2.6.20.4 2.6.20.4
Êä³ö¼ì²éÁËÒ»ÏÂûÓÐÎÊÌ⣮
4. vi grub/grub.conf
¼ÓÈë
title=Gentoo Linux (2.6.20.4)
root (hd0,0)
kernel /boot.img root=/dev/sda3 console=ttyS0,57600 console=tty0
(console=ttyS0,57600ÊÇ´Ó´ËÐéÄâ»úÓÐÒ»¸ö´®¿Ú£¬´®¿ÚµÄÊä³öΪһ¸öÎļþ,ÕâÑù¿ÉÒÔ¸üÏêϸ¿´µ½ÄÚºËÆô¶¯µÄÎÊÌâ)
initrd /initrd-2.6.20.4
5.ÓôËÏîÖØÆô.ʧ°Ü
pivot root: pivot_root (/sysroot, /sysroot/initrd) failed:2 
˵ÎÒµÄ/ÏÂûÓÐinitrdÕâ¸öĿ¼£¬¿´ÁËÒ»ÏÂredhatµÄ£¬ÊÇ¿ÕĿ¼£®
6.ÓÃÕý³£ÏîÆô¶¯.
mkdir -p /initrd
7.ÓÃʵÑéÏîÖØÆô£®
ok,Ò»ÇÐÕý³££®
 
8.ºÃÁË£¬±È¶ÔÒ»ÏÂ2.6.9Óë2.6.20£®4¼ÓÔØµÄÓйØscsiµÄÄ£¿é£®
 
2.6.20.4 (¼ÓÔØÄ£¿éÊÇÓÐ˳ÐòµÄ£©
insmod /lib/mptbase.ko
insmod /lib/mptscsih.ko
insmod /lib/scsi_transport_spi.ko (´ËÄ£¿éÒªÔÚmptspiǰ¼ÓÔØ,mkinitrd-4.2.1.8ĬÈÏʹÓÃ/etc/modprobe.confÎļþ,/etc/fstab,¶ÔÓÚLABEL=µÄÖ§³Ö²»ºÃ.)
insmod /lib/mptspi.ko
insmod /lib/dm-mod.ko
 
ÆäËüµÄ²»ÖØÒªÁË£®
 
9.½áÂÛ,¹ØÓÚÓÐʹÓÃscsi¿¨²¢ÒªÉý¼¶Äں˻ò×ÔÐбàÒëÄÚºË,¶ÔÓÚ¿ÉÄܳöÏÖµÄkernel panicµÄ½â¾ö·½·¨¾ÍÊÇ.
1)ÒªÎÊÊDz»ÊÇûÓÐÏà¹ØscsiÉ豸Çý¶¯Ä£¿é¼ÓÔØ.
2)ÓÐÏà¹ØÇý¶¯¼ÓÔØ,ÐÂÄÚºËÊDz»ÊÇÓÐеÄÌØÐÔ,ÐèÒªÆäËüÄ£¿éÖ§³ÖÈç(scsi_transport_spi.ko)
3)ÓñȽÏеÄmkinitrdÉú³ÉinitrdÎļþÀ´²âÊÔ,È·¶¨Ä£¿éÒÀÀµ¹ØÏµÕýÈ·.È·¶¨É豸Äܱ»Õý³£Ê¶±ð.È·¶¨¼ÓÔØ¹ý³ÌÕý³£.(mkinitrd-5.1.19-1.i386.rpm)
4)ÔÚgentooÖÐʹÓÃ,²»ÒªÍüÁ˽¨/initrdÕâ¸ö¿ÕĿ¼.
 
´ËÎÄÊÇÔÚ·­ÔÄ´óÁ¿Ïà¹ØÎĵµ·ÖÎömkinitrdºÍinitrdÎļþºó£¬µÃ³öµÄ½áÂÛ£®Ïà¹Ø·ÖÎöÃüÁî.
1)ÀϰæµÄinitramfs,ÓÃÒÔÏ·½·¨
mv initrd-2.6.20.4 initrd-2.6.20.4.gz
gunzip initrd-2.6.20.4.gz
losetup /dev/loop0 initrd-2.6.20.4
mount /dev/loop0 /mnt/temp
 
2)ʹÓÃcpioÉú³ÉµÄinitrd-2.6.20.4
zcat initrd-2.6.20.4 | cpio -i
zcat initrd-2.6.20.4 | cpio -t | sort

3)gentooµÄinitramfs
zcat /boot/initramfs-genkernel-x86-2.6.22.6 | (while true; do cpio -t -H newc --no-absolute-filenames || exit; done)

 zcat /boot/initramfs-genkernel-x86-2.6.22.6 | (while true; do cpio -i -H newc --no-absolute-filenames || exit; done)

¶ÔÓÚеÄÄÚºËʹÓõÄÊÇcpio -H newc -o ·½Ê½Éú³ÉµÄinitrd,¶ø·Çcpio -c -oҪעÒâ,·ñÔòÎÞ·¨Õý³£Ê¹ÓÃ.
 
¸½:ÔÚvmwareÖÐÈçºÎ½«ideÐéÄâÅ̵±×öscsiÅÌʹÓÃ.
1.ÐÂÉú³ÉÒ»¸öscsiÅÌ.
2.ÐÞ¸Ä*.vmxÎļþ.
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic" (´Ë´¦¶¨ÒåʹÓÃʲôscsiÉ豸)
scsi0:0.present = "TRUE"
scsi0:0.fileName = "1.vmdk" (1.vmdkÔ­Ïȶ¨ÒåµÄÊÇide,ΪÓÐÄÚÈݵÄÅÌ,ÔÚÕâÀï±»¼Ó¸øscsi0ʹÓÃ)
 
ÄÚºË2.6.21ʹÓÃFusion MPT 3.04.04ÓÐÎÊÌâ,ʹÓÃ3.04.03,ÈçÏÂ(ÖÁÉÙLSI53C1030¿ÉÒÔÕý³£¼ÓÔØ)
Îļþ: fusion.tar.gz
´óС: 223KB
ÏÂÔØ: ÏÂÔØ
ÁíÒ»½â¾ö·½·¨.
Edit /usr/src/linux/drivers/message/fusion/mptbase.c to match the following

--- drivers/message/fusion/mptbase.orig.c 2007-07-20 18:47:21.000000000 +0000
+++ drivers/message/fusion/mptbase.c 2007-07-20 11:23:32.000000000 +0000
@@ -2564,6 +2564,10 @@
pfacts->IOCStatus = le16_to_cpu(pfacts->IOCStatus);
pfacts->IOCLogInfo = le32_to_cpu(pfacts->IOCLogInfo);
pfacts->MaxDevices = le16_to_cpu(pfacts->MaxDevices);
+ /* Fix VMware bug */
+ if(pfacts->MaxDevices == 0) {
+ pfacts->MaxDevices = 16;
+ }
pfacts->PortSCSIID = le16_to_cpu(pfacts->PortSCSIID);
pfacts->ProtocolFlags = le16_to_cpu(pfacts->ProtocolFlags);
pfacts->MaxPostedCmdBuffers = le16_to_cpu(pfacts->MaxPostedCmdBuffers);
 
ÊÇVMwareµÄÄ£ÄâlsiµÄÒ»¸öbug.

 
 

·¢±íÓÚ£º 2007-05-09£¬ÐÞ¸ÄÓÚ£º 2007-09-03 14:51£¬ÒÑä¯ÀÀ3309´Î£¬ÓÐÆÀÂÛ7Ìõ ÍÆ¼ö ͶËß
ÍøÓÑ£º todaygood ʱ¼ä£º2007-06-01 22:11:25 IPµØÖ·£º121.35.220.¡ï
ºÃÇ¿°¡£¬ ÎÒ2¡£6¡£16µÄÄÚºËÔÚvmwareÖиãÁËÁ½Ì죬ӲÊÇÆô¶¯²»³É¹¦£¬
Éú³ÉµÄinitrd2.6.16ÓëԭϵͳÖеÄ2.6.5µÄ°æ±¾ÖеÄlinuxrcÊÇÒ»ÑùµÄ£¬¾ÍÊDz»ÖªµÀΪºÎ£¿ 

ÓÃ2.6.6°æ±¾µÄÄںˣ¬¿ÉÒÔÆô¶¯£¬·¢ÏÖinitrdÈÔÒ»ÑùµÄ¡£

ºÃ¹í÷Ȱ¡£¿

ÍøÓÑ£º todaygood ʱ¼ä£º2007-06-01 22:18:02 IPµØÖ·£º121.35.129.¡ï
2.6.16 ÓÃÄãµÄmkinitrd-4.2.1.8 Éú³ÉµÄinitrd £¬Æô¶¯Ö®ºóµÄÐÅÏ¢ÈçÏ£º
Linux version 2.6.16.17 (root@hujun.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #2 Fri Jun 1 10:56:25 CST 2007

BIOS-provided physical RAM map:

 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)

 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)

 BIOS-e820: 00000000000ca000 - 00000000000cc000 (reserved)

 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)

 BIOS-e820: 0000000000100000 - 0000000009ef0000 (usable)

 BIOS-e820: 0000000009ef0000 - 0000000009eff000 (ACPI data)

 BIOS-e820: 0000000009eff000 - 0000000009f00000 (ACPI NVS)

 BIOS-e820: 0000000009f00000 - 000000000a000000 (usable)

 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)

 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)

 BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)

0MB HIGHMEM available.

160MB LOWMEM available.

DMI present.

ACPI: PM-Timer IO Port: 0x1008

Allocating PCI resources starting at 10000000 (gap: 0a000000:f4c00000)

Built 1 zonelists

Kernel command line: ro root=/dev/sda2 console=ttyS0,57600

Enabling fast FPU save and restore... done.

Enabling unmasked SIMD FPU exception support... done.

Initializing CPU#0

PID hash table entries: 1024 (order: 10, 16384 bytes)

Detected 1596.745 MHz processor.

Using pmtmr for high-res timesource

Console: colour VGA+ 80x25

Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

Memory: 158268k/163840k available (1894k kernel code, 4980k reserved, 798k data, 156k init, 0k highmem)

Checking if this processor honours the WP bit even in supervisor mode... Ok.

Calibrating delay using timer specific routine.. 3198.43 BogoMIPS (lpj=6396873)

Security Framework v1.0.0 initialized

SELinux:  Initializing.

SELinux:  Starting in permissive mode

selinux_register_security:  Registering secondary module capability

Capability LSM initialized as secondary

Mount-cache hash table entries: 512

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)

CPU: L2 Cache: 256K (64 bytes/line)

Intel machine check architecture supported.

Intel machine check reporting enabled on CPU#0.

CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-50 stepping 02

Checking 'hlt' instruction... OK.

ACPI: setting ELCR to 0200 (from 0a00)

checking if image is initramfs... it is

Freeing initrd memory: 280k freed

NET: Registered protocol family 16

ACPI: bus type pci registered

PCI: PCI BIOS revision 2.10 entry at 0xfd9a0, last bus=1

PCI: Using configuration type 1

ACPI: Subsystem revision 20060127

ACPI: Interpreter enabled

ACPI: Using PIC for interrupt routing

ACPI: PCI Root Bridge [PCI0] (0000:00)

PCI quirk: region 1000-103f claimed by PIIX4 ACPI

PCI quirk: region 1040-104f claimed by PIIX4 SMB

ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 11 14 15) *0, disabled.

ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *9 10 11 14 15)

ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 14 15)

ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 14 15) *0, disabled.

Linux Plug and Play Support v0.97 (c) Adam Belay

pnp: PnP ACPI init

pnp: PnP ACPI: found 12 devices

usbcore: registered new driver usbfs

usbcore: registered new driver hub

PCI: Using ACPI for IRQ routing

PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report

PCI: Bridge: 0000:00:01.0

  IO window: disabled.

  MEM window: disabled.

  PREFETCH window: disabled.

Simple Boot Flag at 0x36 set to 0x1

apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)

apm: overridden by ACPI.

audit: initializing netlink socket (disabled)

audit(1180738716.744:1): initialized

Total HugeTLB memory allocated, 0

SELinux:  Registering netfilter hooks

Initializing Cryptographic API

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler deadline registered

io scheduler cfq registered

Limiting direct PCI/PCI transfers.

tridentfb: Trident framebuffer 0.7.8-NEWAPI initializing

ACPI: Processor [CPU0] (supports 8 throttling states)

SyncLink serial driver $Revision: 4.38 $

SyncLink serial driver $Revision: 4.38 $, tty major#254

HDLC line discipline: version $Revision: 4.8 $, maxframe=4096

N_HDLC line discipline registered.

Real Time Clock Driver v1.12ac

Linux agpgart interface v0.101 (c) Dave Jones

agpgart: Detected an Intel 440BX Chipset.

agpgart: AGP aperture is 64M @ 0xec000000

[drm] Initialized drm 1.0.1 20051102

PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:MOUS] at 0x60,0x64 irq 1,12

serio: i8042 AUX port at 0x60,0x64 irq 12

serio: i8042 KBD port at 0x60,0x64 irq 1

Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled

ÿserial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

pcnet32.c:v1.31c 01.Nov.2005 tsbogend@alpha.franken.de

netconsole: not configured, aborting

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

PIIX4: IDE controller at PCI slot 0000:00:07.1

PIIX4: chipset revision 1

PIIX4: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0x1050-0x1057, BIOS settings: hda:DMA, hdb:pio

    ide1: BM-DMA at 0x1058-0x105f, BIOS settings: hdc:DMA, hdd:pio

hda: VMware Virtual IDE Hard Drive, ATA DISK drive

ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive

ide1 at 0x170-0x177,0x376 on irq 15

hda: max request size: 128KiB

hda: 234441648 sectors (120034 MB) w/32KiB Cache, CHS=65535/15/63, UDMA(33)

 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >

hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache, UDMA(33)

Uniform CD-ROM driver Revision: 3.20

ide-floppy driver 0.99.newide

usbmon: debugfs is not available

usbcore: registered new driver hiddev

usbcore: registered new driver usbhid

drivers/usb/input/hid-core.c: v2.6:USB HID core driver

mice: PS/2 mouse device common for all mice

md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27

md: bitmap version 4.39

NET: Registered protocol family 2

input: AT Translated Set 2 keyboard as /class/input/input0

IP route cache hash table entries: 2048 (order: 1, 8192 bytes)

TCP established hash table entries: 8192 (order: 3, 32768 bytes)

TCP bind hash table entries: 8192 (order: 3, 32768 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP reno registered

TCP bic registered

Initializing IPsec netlink socket

NET: Registered protocol family 1

NET: Registered protocol family 17

Using IPI Shortcut mode

ACPI wakeup devices: 

 USB 

ACPI: (supports S0 S1 S5)

Freeing unused kernel memory: 156k freed

Fusion MPT base driver 3.03.07

Red Hat nash version 3.5.22 starting
Mounted /proc filesystem
Mounting sysfs
Loading mptbase.ko module
Copyright (c) 1999-2005 LSI Logic Corporation

SCSI subsystem initialized

Loading scsi_mod.ko module
Fusion MPT SPI Host driver 3.03.07

Loading mptscsih.ko module
Loading mptspi.ko module
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 9

ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9

mptbase: Initiating ioc0 bringup

ioc0: 53C1030: Capabilities={Initiator}

scsi0 : ioc0: LSI53C1030, FwRev=00000000h, Ports=1, MaxQ=128, IRQ=9

  Vendor: VMware,   Model: VMware Virtual S  Rev: 1.0 

  Type:   Direct-Access                      ANSI SCSI revision: 02

input: ImPS/2 Generic Wheel Mouse as /class/input/input1

SCSI device sda: 16777216 512-byte hdwr sectors (8590 MB)

Loading sd_mod.ko module
sda: Write Protect is off

sda: cache data unavailable

sda: assuming drive cache: write through

SCSI device sda: 16777216 512-byte hdwr sectors (8590 MB)

sda: Write Protect is off

sda: cache data unavailable

sda: assuming drive cache: write through

 sda: sda1 sda2 sda3

sd 0:0:0:0: Attached scsi disk sda

EXT3-fs: INFO: recovery required on readonly filesystem.

Loading jbd.ko module
Loading ext3.ko module
Creating block devices
Creating root device
Mounting root filesystem
EXT3-fs: write access will be enabled during recovery.

kjournald starting.  Commit interval 5 seconds

EXT3-fs: recovery complete.

EXT3-fs: mounted filesystem with ordered data mode.

Kernel panic - not syncing: Attempted to kill init!

Switching to new root
ERROR: failed in exec of switchroot
ERROR: switchroot exited abnormally!
 

ÍøÓÑ£º wysilly ʱ¼ä£º2007-06-03 09:13:31 IPµØÖ·£º221.223.96.¡ï
Ó¦¸ÃÊÇmkinitrd-4.2.17,Õâ¾ä»°ËµÃ÷(Red Hat nash version 3.5.22 starting)ÄãÓõÄÊÇgentoo×Ô´øµÄÄǸömkinitrd,²»ÄÜÓúÜÕý³£,ÕýÈ·µÄÓ¦ÊÇ(Red Hat nash version 4.2.17 starting)

ÍøÓÑ£º sttty ʱ¼ä£º2007-09-26 09:54:29 IPµØÖ·£º219.239.50.¡ï
ÇëÎÊÈç¹ûÒªÊÇÓþµÏñÎļþµÄ·½Ê½,Ôõô×öÄØ. 
ÒÔǰÓàdd if=/dev/zero of=/tmp/ramdisk.img bs=1024 count= 2
mke2fs -F -m 0 -b 1024 /tmp/ramdisk.img 2
mount /tmp/ramdisk.img /mnt/initrd -t ext2 -o loop=/dev/loop0
2.6.20Ö®ºó¾Í²»ÄÜÓÃÁË.Ææ¹Ö. 

ÍøÓÑ£º assuming ʱ¼ä£º2007-11-22 00:08:05 IPµØÖ·£º116.21.158.¡ï
ºÃ´óһֻţ`~

ÍøÓÑ£º godknow ʱ¼ä£º2008-04-01 18:30:50 IPµØÖ·£º121.8.235.¡ï
´óÅ£°¡£¬´óÅ£~

ÍøÓÑ£º ÐÂÔ ʱ¼ä£º2008-04-09 11:06:46 IPµØÖ·£º125.77.254.¡ï
ÎÒÓàmkinitrid -v --preload mptspi --preload dm-mod -f initrd-2.6.20.4 2.6.20.4ʱ˵mkinitridÃüÁîûÓÐÕÒµ½,
ÎÒ¸ÄΪmkinitrd -v --preload mptspi --preload dm-mod -f initrd-2.6.20.4 2.6.20.4,¾ÍÊÇmkinitrid¶àÁËÒ»¸ö×Öĸi,È¥µôÖ®ºó³öÏÖÈçÏÂ:
Creating initramfs
Looking for deps of module mptspi
No module mptspi found for kernel 2.6.18.8, aborting.
ºÃÏñÊÇ˵ûÓÐmptspiѽ,Ôõô°ì°¡!!!


¸øÎÒÁôÑÔ
°æÈ¨ËùÓÐ ChinaUnix.net Ò³ÃæÉú³Éʱ¼ä£º3.58491