LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   IT8212 driver problems (https://www.linuxquestions.org/questions/linux-hardware-18/it8212-driver-problems-227833/)

alien900 12-10-2004 05:23 AM

I agree with hezaplaya, don't waste too much time.

I managed to build a kernel with the driver, and I could see the harddisks during boot time...but then the boot sequence would stop, and there was nothing I could do to continue the boot process.

I had different problems with different BIOS settings for the chip, but essentially they all resulted in the same problem - not being able to boot into linux.

I gave up for the moment and wait for another kernel.

My OS is Suse 9.1.

nemoxx 01-01-2005 06:58 PM

is there any way to install linux with the it8212 card nowdays?

have not payed so much attention to *nix news lately..so i was just hoping that someone came up with a solution..

cheers:))

nemoxx 01-03-2005 09:28 AM

bumpz

nemoxx 01-09-2005 08:19 AM

bump again

nemoxx 01-14-2005 04:34 AM

sigh...

Frontier 01-26-2005 02:59 PM

Great news
 
Great news my friends, especially ones with SuSE 9.1/9.2.

I've managed to compile successfully the driver as a module and now SuSE install can see the hard drives on the RAID controller.

Here's what I did:

0. You have to use another working Linux machine, with the same version of running kernel as used in the installation. For example, SuSE 9.2 Professional has kernel 2.6.8-24, so you must compile the source inside a kernel 2.6.8-24 tree, not an earlier one, not a later one as kernel modules are binary incompatible across versions (I do hope that the kernel gurus will come up with some solution to this problem).
1. Go to www.ite.com.tw and from the Software download section, download the driver for IT8212F (it's a new one). It contains binaries (not useful to kernels >2.4) but we'll compile it from source.
2. Unpack the file and grab the contents of src/2.6.x directory.
3. CD to /usr/src/linux/drivers/scsi
4. mv Makefile Makefile.previous
5. Copy iteraid.c, iteraid.h and Makefile from the driver source directory (2.6.x) to /usr/src/linux/drivers/scsi
6. Edit the Makefile file inside /usr/src/linux/drivers/scsi. Note the first line which refers to your linux kernel source directory (it says "linux-2.6.1", change it to the name of your kernel directory. For SuSE 9.2 this is "linux-2.6.8-24").
7. Type "make" (without the quotes). The source should compile - with some warnings regarding obsolete files and some other stuff - and in the end the files "iteraid.ko" and "iteraid.o" will be built. Copy them to a vfat floppy disk

Now, go to the machine you want to install SuSE and has the IT8212 controler. Before doing anything, enter the ITE8212 BIOS (Ctrl-G) and set-up your RAID arrays accordingly. For example, on my system I have a 120Gb hard disk (with windows) and two more disks (total 10Gb) which I set up as a spanned array (6GB + 4GB = 10GB).

1. Boot the system from the SuSE DVD-ROM.
2. When the graphical user interface appears (not the lilo one, but the actual installation interface), press ALT-F2 in order to get to the command prompt.
3. Insert the disk with the compiled iteraid.ko files
4. mount -t vfat /dev/fd0 /mnt
5. cd /mnt
6. insmod iteraid.ko

after a brief delay, the command prompt will re-appear and if there are no messages, the driver was loaded successfully :)

7. cd /
8. Press ALT-F7 to return to the graphical interface (do not remove the floppy disk until installation is over) and SuSE install should recognize the disks in the ITE 8212 as SCSI disks.

Now, if only I could find some info on how to make a driver disk out of these, then I could install the driver on my new system without having to recompile the driver in the kernel. Any ideas?

Greetings from Greece.

nemoxx 01-31-2005 04:55 AM

saved my day:)

VinnySem 02-25-2005 08:13 AM

Re: Great news
 
Quote:

Originally posted by Frontier
Great news my friends, especially ones with SuSE 9.1/9.2.

I've managed to compile successfully the driver as a module and now SuSE install can see the hard drives on the RAID controller.

Here's what I did:

0. You have to use another working Linux machine, with the same version of running kernel as used in the installation. For example, SuSE 9.2 Professional has kernel 2.6.8-24, so you must compile the source inside a kernel 2.6.8-24 tree, not an earlier one, not a later one as kernel modules are binary incompatible across versions (I do hope that the kernel gurus will come up with some solution to this problem).
1. Go to www.ite.com.tw and from the Software download section, download the driver for IT8212F (it's a new one). It contains binaries (not useful to kernels >2.4) but we'll compile it from source.
2. Unpack the file and grab the contents of src/2.6.x directory.
3. CD to /usr/src/linux/drivers/scsi
4. mv Makefile Makefile.previous
5. Copy iteraid.c, iteraid.h and Makefile from the driver source directory (2.6.x) to /usr/src/linux/drivers/scsi
6. Edit the Makefile file inside /usr/src/linux/drivers/scsi. Note the first line which refers to your linux kernel source directory (it says "linux-2.6.1", change it to the name of your kernel directory. For SuSE 9.2 this is "linux-2.6.8-24").
7. Type "make" (without the quotes). The source should compile - with some warnings regarding obsolete files and some other stuff - and in the end the files "iteraid.ko" and "iteraid.o" will be built. Copy them to a vfat floppy disk

Now, go to the machine you want to install SuSE and has the IT8212 controler. Before doing anything, enter the ITE8212 BIOS (Ctrl-G) and set-up your RAID arrays accordingly. For example, on my system I have a 120Gb hard disk (with windows) and two more disks (total 10Gb) which I set up as a spanned array (6GB + 4GB = 10GB).

1. Boot the system from the SuSE DVD-ROM.
2. When the graphical user interface appears (not the lilo one, but the actual installation interface), press ALT-F2 in order to get to the command prompt.
3. Insert the disk with the compiled iteraid.ko files
4. mount -t vfat /dev/fd0 /mnt
5. cd /mnt
6. insmod iteraid.ko

after a brief delay, the command prompt will re-appear and if there are no messages, the driver was loaded successfully :)

7. cd /
8. Press ALT-F7 to return to the graphical interface (do not remove the floppy disk until installation is over) and SuSE install should recognize the disks in the ITE 8212 as SCSI disks.

Now, if only I could find some info on how to make a driver disk out of these, then I could install the driver on my new system without having to recompile the driver in the kernel. Any ideas?

Greetings from Greece.

I followed your instructions to the letter, but I don't get an iteraid.ko file, only iteraid.o. Any ideas? Thanks in advance.

drink 03-12-2005 01:06 AM

FYI
 
ac-sources for 2.6.10 and 2.6.11 have ITE8212 support. However, it has "issues". I've been getting bus errors and input/output errors leading to filesystem corruption. it seems to happen most during periods of heavy use. I've been stripping stuff out of my kernel to try to get it working reliably, the next thing I will try removing is preempt.

raven.sorrow 03-12-2005 07:06 AM

I personally have given up on this card, it's linux support is still too far away and it's too far unreilable right now. I ditched it for an HPT370, this works everytime.

zWaR 04-18-2005 12:33 PM

VinnySem did you figure out how to make the dirver disk?

custerfluck 04-24-2005 10:01 PM

Fedora core 3
 
I've been able to use this controller in 2.6.9 and 2.6.10, but when I upgraded to 2.6.11 my raid went bye bye :mad:

chinacaros 05-17-2005 09:58 AM

to Frontier:

(sorry for my english, i'm italian) i have 2hd pata connected to raid port on mainboard. I use raid as normal ide channel. When i launch suse installation my hard disk don't exist!!! i have ITE IT8212 raid chip, but i didn't find any driver for suse 9.3 (kernel 2.6.11). I try to compile the drive but i found many errors:

linux:/usr/src/linux/drivers/scsi # make
make -C /usr/src/linux SUBDIRS=/usr/src/linux/drivers/scsi modules
make[1]: Entering directory `/usr/src/linux-2.6.11.4-20a'
Makefile:494: .config: No such file or directory


WARNING: Symbol version dump /usr/src/linux-2.6.11.4-20a/Module.symvers is
missing; modules will have no modversions.

CC [M] /usr/src/linux/drivers/scsi/iteraid.o
In file included from /usr/src/linux/drivers/scsi/iteraid.c:259:
/usr/src/linux/drivers/scsi/hosts.h:1:2: warning: #warning "This file is
obsolete, please use <scsi/scsi_host.h> instead"
/usr/src/linux/drivers/scsi/iteraid.c: In function `itedev_open':
/usr/src/linux/drivers/scsi/iteraid.c:5579: error: `MOD_INC_USE_COUNT'
undeclared (first use in this function)
/usr/src/linux/drivers/scsi/iteraid.c:5579: error: (Each undeclared
identifier is reported only once
/usr/src/linux/drivers/scsi/iteraid.c:5579: error: for each function it appearsin.)
/usr/src/linux/drivers/scsi/iteraid.c: In function `itedev_close':
/usr/src/linux/drivers/scsi/iteraid.c:5816: error: `MOD_DEC_USE_COUNT'
undeclared (first use in this function)
/usr/src/linux/drivers/scsi/scsi_module.c: At top level:
/usr/src/linux/drivers/scsi/iteraid.c:4666: warning: `IdeMediaStatus'
defined but not used
make[2]: *** [/usr/src/linux/drivers/scsi/iteraid.o] Error 1
make[1]: *** [_module_/usr/src/linux/drivers/scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11.4-20a'
make: *** [modules] Error 2

i try with noapic command, but dom't seem the solution

thanks

scr02bcg 07-21-2005 10:41 AM

Hi All,

the various solutions to this now seem to have been solved. See

http://www.linuxquestions.org/questi...hreadid=342500

or

http://www.linuxquestions.org/questi...highlight=it81

I hope these help

Ben


All times are GMT -5. The time now is 05:09 AM.