|
没有/usr/src/linux-2.4,我怎么编译内核?
我买的盒装的redhat9,现在由于要使用silicon image的3112芯片的SATA卡用来上串行硬盘,下了C语言的驱动,准备编译内核,但没有/usr/src/linux-2.4
这个目录,怎么办?
[root@localhost src]# pwd
/usr/src
[root@localhost src]# ls -al
×ÜÓÃÁ¿ 16
drwxr-xr-x 4 root root 4096 1ÔÂ 27 00:16 .
drwxr-xr-x 15 root root 4096 1ÔÂ 26 20:36 ..
drwxr-xr-x 2 root root 4096 2003-01-25 debug
drwxr-xr-x 7 root root 4096 1ÔÂ 27 00:16 redhat
555,怎么办?还有,我能不能把这个siimage.c和siimage.h编译成.o的模块动态加载呀,我不用串行硬盘启动,我用普通ide硬盘作系统的。
lspci的结果
00:09.0 Unknown mass storage controller: CMD Technology Inc Silicon Image SiI 3112 SATARaid Controller (rev 02)
看样子是认不得这个卡
dmesg
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686a (rev 1b) IDE UDMA66 controller on pci00:07.1
ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:pio, hdd:DMA
SiI3112 Serial ATA: IDE controller at PCI slot 00:09.0
PCI: Found IRQ 9 for device 00:09.0
SiI3112 Serial ATA: chipset revision 2
SiI3112 Serial ATA: not 100% native mode: will probe irqs later
ide2: MMIO-DMA at 0xc880d000-0xc880d007, BIOS settings: hde:pio, hdf:pio
ide3: MMIO-DMA at 0xc880d008-0xc880d00f, BIOS settings: hdg:pio, hdh:pio
hda: ST34342A, ATA DISK drive
blk: queue c03c9f40, I/O limit 4095Mb (mask 0xffffffff)
hdd: CD-RW IDE1610, ATAPI CD/DVD-ROM drive
hde: no response (status = 0xfe)
hdg: no response (status = 0xfe)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 8404830 sectors (4303 MB) w/128KiB Cache, CHS=523/255/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
那这样的话,是不是我插上硬盘还是能认成hde和hdg?我不用raid. |
|