LINUX.ORG.RU

Проблемы при установке поддержки SATA-винтов в ядре


0

0

Пытаюсь скомпилировать ванильное ядро 2.6.23 для gentoo 2007.0 для ноута Toshiba Satellite M100-150, в котором стоит SATA винт (он может работать как SATA так и как PATA(ATA-7)). Чипсет 945PM, ICH7. У меня не получается добиться от ядра определять винт как SATA. Если не ошибаюсь, то оно вообще загружается в PIO. Подскажите что сделать. Ниже привожу часть dmesg от этого ядра, а следующее - dmesg от knoppix 5.x - в принципе то, чего я хочу добиться.

[dmesg-gentoo]:
...
SCSI subsystem initialized
libata version 2.21 loaded.
...
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Clocksource tsc unstable (delta = -303218356 ns)
hda: Hitachi HTS541612J9SA00, ATA DISK drive
Probing IDE interface ide1...
hdc: HL-DT-ST DVDRAM GMA-4082N, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 512KiB
hda: Host Protected Area detected.
current capacity is 234050985 sectors (119834 MB)
native capacity is 234441648 sectors (120034 MB)
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: 0x37
hda: 234050985 sectors (119834 MB) w/7516KiB Cache, CHS=16383/255/63
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4
hdc: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
3ware Storage Controller device driver for Linux v1.26.02.002.
ata_piix 0000:00:1f.2: version 2.12
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19
PCI: Unable to reserve I/O region #1:8@1f0 for device 0000:00:1f.2
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 0 (errno=-16)
PCI: Unable to reserve I/O region #3:8@170 for device 0000:00:1f.2
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 1 (errno=-16)
ata_piix 0000:00:1f.2: no available native port

[dmesg-knoppix]:
...
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
hdc: HL-DT-ST DVDRAM GMA-4082N, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 63X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
Loading iSCSI transport class v2.0-724.<7>ata_piix 0000:00:1f.2: version 2.00ac6
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 18
ata: 0x170 IDE port busy
ata: conflict with ide1
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0x18B0 irq 14
ata2: DUMMY
scsi0 : ata_piix
ata1.00: ATA-7, max UDMA/100, 234050985 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 16
ata1.00: configured for UDMA/100
scsi1 : ata_piix
scsi 0:0:0:0: Direct-Access ATA Hitachi HTS54161 SBDO PQ: 0 ANSI: 5
SCSI device sda: 234050985 512-byte hdwr sectors (119834 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 234050985 512-byte hdwr sectors (119834 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
...

мой .config
<Device drivers --->>:
<*> ATA/ATAPI/MFM/RLL support --->
<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
[ ] Support for SATA (deprecated; ...)
<*> Include IDE/ATA-2 DISK support
[*] Use multi-mode by default
<*> Include IDE/ATAPI CDROM support
...
<*> Intel PIIXn chipsets
<*> Serial ATA and PATA -->
<*> AHCI SATA support
<*> Intel ESB, ICH, PIIX3, PIIX4, PATA/SATA support

Подскажите плз, что не так?


> <*> ATA/ATAPI/MFM/RLL support --->

Это можно выключить совсем. Делай всё через libata. Если чипсет держит AHCI, то включай AHCI SATA support. Если не держит, то Intel ESB, ICH, PIIX3, PIIX4, PATA/SATA support.

Deleted
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.