PDA

View Full Version : ITE8212 Driver Problem



kelman
10-26-2005, 11:26 AM
So I'm yet another newbie.... here we go! So I've been working on this for about 3 weeks now and I've made a lot of progress... First I'll tell you why I'm doing this, what I've done... and what I can't get!

1) I want to install a stage 1 install of Gentoo on my computer... perhaps just to see if I can do it or just to have a dual boot... who knows!! I'm currently running a GA-7N400Pro Rev. 2 with 2 40 gigabyte PATA drives on the onboard ite8212 controller in raid 0. So from what I read, I needed to resize my ntfs partition and make space for grub at the first cylinder and the best (FREE) way to do this was with qtparted booting from a LIVE CD (Knoppix) A small problem however was that Knoppix still doesn't supposrt ite8212 drivers so I was stuck compiling my own.

2)What I did: I compiled the source using the source tree from /usr/src/linux-2.6.12 (I'm using KNoppix 4.02) with a few modifications:
the ite driver writer used the old version of scsi.h so I managed to discover that if I got the kernel archive of 2.6.12 the scsi.h in the /drivers/scsi section was different from the /include/scsi/scsi.h file. This is why many people have been able to make this work by replacing the Makefile in drivers/scsi because the driver writer #included both "scsi.h" and "hosts.h" both of which glue several includes together. So I moved those over to the Knoppix source tree and everything compiled fine except for the macros MOD_DEC_USE_COUNT and MOD_INC_USE_COUNT which are both outdated from 2.4 kernel versions so I just commented them out.... THIS_MODULE was defined so I thouught the modulel would be ok.....
So it compiled into a .ko for me. Here is the tricky part..... I insmoded the module into the kernel and command hangs... so I pull up another console and lsmod and iteraid is present in the list! so I try to mount my harddisk partition to see if it works and I can't fdisk -l to see the parttion...

3)I've dmesg and apparently the disks are constantly resetting the channel and getting send errors... I have NO clue how to modify the device drivers and I DON"T want to mess up my harddrives(they are backed up but I don't want to go through the pain!!) Here is the lspci and the dmesg outputs.. does anyone know a good place to learn about this? HELP!

Thanks,

Kelly


------------------dmesg output-------------------
Found Controller: IT8212 UDMA/ATA133 RAID Controller
FindDevices: device 0 is IDE
Channel[0] BM-DMA at 0xA400-0xA407
Channel[1] BM-DMA at 0xA408-0xA40F
scsi3 : ITE RAIDExpress133
Vendor: ITE Model: IT8212F Rev: 1.3
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 156330496 512-byte hdwr sectors (80041 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
SCSI device sdb: 156330496 512-byte hdwr sectors (80041 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
sdb:AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
SCSI error : <3 0 0 0> return code = 0x6000000
end_request: I/O error, dev sdb, sector 0
Buffer I/O error on device sdb, logical block 0
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit
SCSI error : <3 0 0 0> return code = 0x6000000
end_request: I/O error, dev sdb, sector 0
Buffer I/O error on device sdb, logical block 0
unable to read partition table
Attached scsi disk sdb at scsi3, channel 0, id 0, lun 0
AtapiStartIo: already have a request!
AtapiResetController enter
IT8212ResetAdapter: reset channel 0
IT8212ResetAdapter Success!
AtapiResetController exit

------------------------------------lspci -v output-------------------------------
0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
Flags: bus master, 66MHz, fast devsel, latency 0
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>

0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
Subsystem: nVidia Corporation: Unknown device 0c17
Flags: 66MHz, fast devsel

0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
Subsystem: nVidia Corporation: Unknown device 0c17
Flags: 66MHz, fast devsel

0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
Subsystem: nVidia Corporation: Unknown device 0c17
Flags: 66MHz, fast devsel

0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
Subsystem: nVidia Corporation: Unknown device 0c17
Flags: 66MHz, fast devsel

0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
Subsystem: nVidia Corporation: Unknown device 0c17
Flags: 66MHz, fast devsel

0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
Subsystem: Giga-byte Technology: Unknown device 0c11
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: <available only to root>

0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
Subsystem: Giga-byte Technology: Unknown device 0c11
Flags: 66MHz, fast devsel, IRQ 9
I/O ports at e000 [size=32]
Capabilities: <available only to root>

0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology: Unknown device 5004
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
Memory at e8003000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>

0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology: Unknown device 5004
Flags: 66MHz, fast devsel, IRQ 21
Memory at e8004000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>

0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 20 [EHCI])
Subsystem: Giga-byte Technology: Unknown device 5004
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 9
Memory at e8005000 (32-bit, non-prefetchable) [size=256]
Capabilities: <available only to root>

0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
Subsystem: Giga-byte Technology: Unknown device a002
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
I/O ports at d000 [size=256]
I/O ports at d400 [size=128]
Memory at e8001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>

0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 00009000-0000bfff
Memory behind bridge: e6000000-e7ffffff

0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2) (prog-if 8a [Master SecP PriP])
Subsystem: Giga-byte Technology: Unknown device 5002
Flags: bus master, 66MHz, fast devsel, latency 0
I/O ports at f000 [size=16]
Capabilities: <available only to root>

0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 32
Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: e4000000-e5ffffff
Prefetchable memory behind bridge: d0000000-dfffffff

0000:01:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
Subsystem: Giga-byte Technology: Unknown device e000
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
I/O ports at 9000 [size=256]
Memory at e7006000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at e6000000 [disabled] [size=64K]
Capabilities: <available only to root>

0000:01:0c.0 RAID bus controller: Integrated Technology Express, Inc. IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212, embedded seems (rev 10)
Subsystem: Integrated Technology Express, Inc.: Unknown device 0001
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 5
I/O ports at 9410 [size=8]
I/O ports at 9800 [size=4]
I/O ports at 9c10 [size=8]
I/O ports at a000 [size=4]
I/O ports at a400 [size=16]
Capabilities: <available only to root>

0000:01:0d.0 Unknown mass storage controller: Silicon Image, Inc. (formerly CMD Technology Inc) SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02)
Subsystem: Silicon Image, Inc. (formerly CMD Technology Inc) SiI 3112 [SATALink/SATARaid] Serial ATA Controller
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
I/O ports at a800 [size=8]
I/O ports at ac00 [size=4]
I/O ports at b000 [size=8]
I/O ports at b400 [size=4]
I/O ports at b800 [size=16]
Memory at e7004000 (32-bit, non-prefetchable) [size=512]
Capabilities: <available only to root>

0000:01:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
Subsystem: Giga-byte Technology: Unknown device 1000
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at e7005000 (32-bit, non-prefetchable) [size=2K]
Memory at e7000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <available only to root>

0000:02:00.0 VGA compatible controller: ATI Technologies Inc Radeon R300 ND [Radeon 9700 Pro] (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc: Unknown device 4f72
Flags: bus master, stepping, 66MHz, medium devsel, latency 32, IRQ 11
Memory at d0000000 (32-bit, prefetchable) [size=128M]
I/O ports at c000 [size=256]
Memory at e5000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <available only to root>

0000:02:00.1 Display controller: ATI Technologies Inc Radeon R300 [Radeon 9700 Pro] (Secondary)
Subsystem: ATI Technologies Inc: Unknown device 4f73
Flags: bus master, stepping, 66MHz, medium devsel, latency 32
Memory at d8000000 (32-bit, prefetchable) [size=128M]
Memory at e5010000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <available only to root>

kelman
11-03-2005, 02:36 AM
I've had little success figuring out how to debug this but here is a message output by syslogd

Nov 2 19:02:43 Knoppix scsi.agent[7613]: Attribute /sys/devices/platform/host5/target5:0:0/5:0:0:0/type does not exist

the host# and target# are different with each try of modprobe but they are always the same