LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-01-2004, 12:46 PM   #1
LaoNiu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Question IDE controller ( 8212 ) and Disk as Slave


Hi,
I ve been using the Eagle ITE 8212 PCI IDE Controller for over a year, with
one Hard Drive as master on each of the two IDE channels the card provides.
With no trouble at all.
Im not using any of the RAID capacities of the card, just plain IDE controller.

Recently I added a third Hard Drive as Slave on one of the channels,
and then the strangest things began to happen:

in a terminal, text might appear without I typing it,
the Up arrow itself would no longer bring back the previous line , but type "A" instead
in mozilla, the font for what I type switches to some strange kind of cyrillic or alike,

and what more.

The keyboard was plugged in fine, no worries there.

The jumpers on the new Drive , I d set to "DS Slave" , and the same problems didnt spring up when using another OS with the same 3-drive arrangement , but still did occur when i switched the slave drive (which was FAT-32) for another hard drive (in ext2) - so I imagine its a driver / software issue ?

Im using the
ite.com.tw/pc/LinuxDriverSrc_it8212_092005-09.zip
Driver from the builders site, which I compiled for my kernel 2.4.21 ( I use Sarge) , and dug into the ite.com.tw/pc/USER%20MANUAL%20_093015-02.zip Users guide , but that s mostly concerned with RAID implementation, and didnt help me.

lspci has this to say about it :

. IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212, e mbedded seems (rev 11)

and dmesg :

Found Controller: IT8212 UDMA/ATA133 RAID Controller
FindDevices: device 0 is IDE
Channel[0] BM-DMA at 0xA400-0xA407
FindDevices: device 2 is IDE
Channel[1] BM-DMA at 0xA408-0xA40F
scsi0 : RAIDExpress133
Vendor: ITE Model: IT8212F Rev: 1.3
Type: Direct-Access ANSI SCSI revision: 00
Vendor: ITE Model: IT8212F Rev: 1.3
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 2, lun 0
SCSI device sda: 320173056 512-byte hdwr sectors (163929 MB)
sda: sda1 < sda5 sda6 >
SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB)
sdb: sdb1 < sdb5 sdb6 >

you notice i ve only left two drives there, if I get a chance I ll post again the output of dmesg with one drive as slave, but i think there s little difference - the drive could be mounted no problem after having done
insmod iteraid.o
to insert the module (as compiled from (link-given) source).

I d be glad to hear from anyone who s using this controller succesfully with two drives on one IDE channel, be it with kernel 2.4.x or 2.6.x - (though in my experience 2.4.21 is the only one , for "modversions.h" reasons, to ever compile the driver succesfully)

Thanks

Last edited by LaoNiu; 11-01-2004 at 04:00 PM.
 
Old 11-02-2004, 06:24 PM   #2
LaoNiu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Blame the Driver

After further observation, troubles begin after

insmod iteraid.o then

after a while which can be some minutes but never much more than 10,
the mouse goes wild first, runs into the top right corner,
then becomes uncontrollable.
Then all the other symptoms I mentioned creep in quite quickly.

After these troubles start, wether I kill gnome and restart it, launch kde instread or stick to the console, they persist IN ALL TTYS until I reboot.

No clue why, will post more symptoms as I gather. (Did I mention these problems dont appear in the other OS I can boot, and that writing and reading from that slave drive is not a problem.)
Thanks who ll shed light on this.

One suggests it is a problem with the keyboard s IRQ .

-> Are such conflicts possible? wouldnt the system force one of the two devices fighting over an IRQ to just "stop" ? Here, I still have activity in keyboard and drive after it begins, only the keyboard is hardly controllable. I ll read up on IRQs ...

but this doesnt seem like a conflit situation to me :

:/# cat /proc/interrupts
CPU0
0: 17054545 XT-PIC timer
1: 116314 XT-PIC keyboard
2: 0 XT-PIC cascade
9: 34650407 XT-PIC usb-uhci, eth0, it8212
11: 1779981 XT-PIC RIPTIDE
12: 2342175 XT-PIC PS/2 Mouse
15: 5710717 XT-PIC ide1
NMI: 0
LOC: 17054801
ERR: 0
MIS: 0


BY THE WAY, people in 2.6.x, this same problem s been noted with a 2.6 kernel

Last edited by LaoNiu; 11-04-2004 at 07:38 PM.
 
Old 11-07-2004, 09:53 PM   #3
LaoNiu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Angry ATKBD.C

Ok so I gather this problem is related to atkbd.c (? "" an input driver handling the keyboard ""?)

here s what syslog spews upon

insmod iteraid.o

when 3+ drives are attached:

Nov 6 22:19:03 mypc kernel: scsi9 : ITE RAIDExpress133
Nov 6 22:19:04 mypc kernel: Vendor: ITE Model: IT8212F Rev: 1.3
Nov 6 22:19:04 mypc kernel: Type: Direct-Access ANSI SCSI revision: 00
Nov 6 22:19:04 mypc kernel: SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
Nov 6 22:19:04 mypc kernel: sda: asking for cache data failed
Nov 6 22:19:04 mypc kernel: sda: assuming drive cache: write through
Nov 6 22:19:04 mypc kernel: sda:<4>atkbd.c: Unknown key pressed (translated set 2, code 0x0 on isa0060/serio0).
Nov 6 22:19:04 mypc kernel: atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.
Nov 6 22:19:04 mypc kernel: sda1<4>atkbd.c: Unknown key pressed (translated set 2, code 0x0 on isa0060/serio0).
Nov 6 22:19:04 mypc kernel: atkbd.c: Use 'setkeycodes 00 <keycode>' to make it known.

and then alot of those last lines.

It seems many things can cause that atkbd.c to go nuts.

But Im still hoping someone s managed to get 3+ drives working (without RAID) on this ITE EAGLE 8212 IDE controller, and can post his precise config - until then, I banish all hope because this problem is beyond my
 
Old 11-10-2004, 01:58 AM   #4
albertb
LQ Newbie
 
Registered: Nov 2004
Location: Malawi Central Africa
Posts: 4

Rep: Reputation: 0
Hi LaoNio
Myself am failing to install Suse 9.1. With the Hard Disk and the CD-ROM connected to a similar type of adapter like your's.
How did you configure it in the begin.

Regards
Albert
 
Old 11-10-2004, 05:32 AM   #5
LaoNiu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Are you trying to install the OS on a disk attached to the IDE controller?

In that case, *I think* you must have no other hard drive attached to IDE controllers on your motherboard.

If you want to attach a CD-reader (maybe even burner?) and a hard drive, well i havent tried it,
but then you d have to have sufficient scsi support built into the kernel (I think).

If you want to use the ITE card for data storage only, and attach only hard drives, then you should be able to compile with just a little of tailoring the Makefile

Make sure what wants to point to the kernel sources is correct, ie this line:

SRCPATH =$(shell if uname -r | grep '2.4' > /dev/null 2>&1; then echo /usr/src/linux-2.4; else echo /usr/src/linux; fi)

If you dont have the sources in /usr/src/linux-2.4 then expect it wont work

Just by making an alias (ln -s /wherever/i/put/my/kernel/sources /usr/src/linux-2.4) so it finds the sources there was enough for it to compile on my kernel 2.4.21.

Other versions will complain about "modversions.h" and that requires a little more Makefile hacking.
But then thats in Debian, and Suse probably has a specific place for those files not the same as in Debian.

If you're using a 2.6 kernel, it might not be that simple,
check this thread:
http://www.linuxquestions.org/questi...ight=81+driver
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with new slave drive on secondary controller linuxnube Fedora 2 01-29-2005 03:55 PM
Using ITE 8212 PCI IDE Controller lplates Linux - Hardware 1 11-04-2004 12:12 PM
promise IDE controller boot disk selection Clansman Linux - Hardware 6 02-07-2004 03:28 PM
hpt372 ide controller and on-the-fly ide removeing captgoodnight Linux - Hardware 0 01-25-2004 12:38 AM
CDROM as slave IDE Alexop Linux - General 2 08-18-2002 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration