LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-23-2004, 03:07 AM   #16
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
IT8212 Raid/ATA contorler w/ Fedora Core 2


I have a Giga-Byte 7n400 Pro motherboard w/ this IT8212 Raid/ATA controller built in and also a Giga-Byte 7n400 Pro2 with the same chip on board.... Can anyone tell me how to get this driver compiled for Fedora Core 2 (I just downloaded it on 5-22-04) its running Kernel version 2.6.5-1.358
and the kernel source is installed at /usr/src/2.6.5-1.358/
I made a sybolic link at /usr/src/linux that pionts to the 2.6.5-1.358 dir.

I'v tried some of the stuff already listed here(everything except irom's post).... I don't know what half those commands he's using and he's got a different kernel version so.... I thought I would post first...

I've downloaded the 2.6.x src from ITE's website for the 8212 controller and all I get when I do a make on it is all these errors... (And I have changed the KERNEL_SRC= in the Makefile accordingly....)

and... now the errors:

make -C /usr/src/linux-2.6.5-1.358 SUBDIRS=/mnt/zip/7n400pro-raid modules
make[1]: Entering directory `/usr/src/linux-2.6.5-1.358'
Makefile:434: .config: No such file or directory
CC [M] /mnt/zip/7n400pro-raid/iteraid.o
In file included from include/linux/module.h:9,
from /mnt/zip/7n400pro-raid/iteraid.c:213:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/linux/module.h:10,
from /mnt/zip/7n400pro-raid/iteraid.c:213:
include/linux/sched.h:4:37: asm/param.h: No such file or directory
In file included from include/linux/types.h:13,
from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /mnt/zip/7n400pro-raid/iteraid.c:213:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /mnt/zip/7n400pro-raid/iteraid.c:213:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /mnt/zip/7n400pro-raid/iteraid.c:213:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
include/linux/types.h:21: warning: data definition has no type or storage class
include/linux/types.h:22: error: syntax error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration of `ino_t'
include/linux/types.h:22: warning: data definition has no type or storage class
include/linux/types.h:23: error: syntax error before "mode_t"
include/linux/types.h:23: warning: type defaults to `int' in declaration of `mode_t'
include/linux/types.h:23: warning: data definition has no type or storage class
include/linux/types.h:24: error: syntax error before "nlink_t"
include/linux/types.h:24: warning: type defaults to `int' in declaration of `nlink_t'


Hope thats not to overwhelming.... I cut it off after a page or so, it goes on for pages and fills my console buffer, but anways if anyone can tell me how I might fix this I could really use some of my data off the drive connected to this device...........


Thanks alot,
~EHart7
 
Old 05-23-2004, 12:39 PM   #17
netdemon
LQ Newbie
 
Registered: May 2002
Location: Northeast US
Distribution: Fedora
Posts: 24

Rep: Reputation: 15
I talked about the solution to that in my posts. You have to build the entire kernel first. Still, even though I could build it, the driver didn't work for me. Then again, I have an ATA133 card with the same chipset and not RAID, so it'll probably work for you.

Last edited by netdemon; 05-23-2004 at 12:42 PM.
 
Old 05-23-2004, 03:37 PM   #18
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
I'm sorry, I'm still really confused. Which post(s) are you refering to? If its the one about recompiling the kernel,........................... yea.... I have no idea on doing that.......... so where does that leave me?

P.S. I'v tried compiling the kernel before but I can't ever seem to get it. Do you perhaps have an IRC chat room of people that could/would help me through the process??

Thanks,
~EHart7
 
Old 05-23-2004, 07:08 PM   #19
netdemon
LQ Newbie
 
Registered: May 2002
Location: Northeast US
Distribution: Fedora
Posts: 24

Rep: Reputation: 15
Its simple... Get the kernel-source package, go in and grab the config file you need from configs/ and place it in the source directory as .config

For instance, as root:

Code:
(/usr/src/linux-2.6.5-1.358)> ls configs
kernel-2.6.5-i586.config      kernel-2.6.5-i686.config
kernel-2.6.5-i586-smp.config  kernel-2.6.5-i686-smp.config
(/usr/src/linux-2.6.5-1.358)>  cp configs/kernel*i686.config .config
You might need to do is modify /usr/src/linux-2.6.5-1.358/Makefile (or whatever) and remove the word custom on: "EXTRAVERSION = -1.358custom" or whatever it says. I'm not sure if that's necessary, but I'd do it just in case.

Then just run "make", "make bzImage", and "make modules" from the main kernel directory. Since you aren't installing a custom kernel, you might not need the "make bzImage". Do it just to be safe.

Code:
(/usr/src/linux-2.6.5-1.358)> make
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-i386
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
And there it goes... Once that's done, just follow the directions they mentioned before. The way I'm having you do it is not exactly how its mentioned on http://www.passys.nl/tips/ite_kernel_image_compile.txt since it will be built seperately from the kernel, and not as a module during the regular kernel build, nor will you be installing a custom kernel for grub to use.
 
Old 05-26-2004, 09:31 AM   #20
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Hi all, first: sorry by my English!!

Ehart7, try this, it worked for me (Debian Woody).

I think you must have the sources of the same kernel you are using (although i'm not sure of this point).

1) Get the last sources from ITE (see the thread), edit the Makefile of ITE and change the line with your kernel source path.

2) Copy all the three files of ITE (.c, .h and Makefile) to /usr/src/linux/drivers/scsi (make a backup of the Makefile of this directory before!).

3) Go to that path and type: make [return]
(if you get an error saying you don't have .config, do what netdemon said to get one and repeat this step).

If I do these three steps I get a iteraid.o and iteraid.ko in the path /usr/src/linux/drivers/scsi. Try to type: insmod iteraid.o (or iteraid.ko?) and look the messages.


Well, i got it this way. But..... i have a question for everybody: What's the difference between .ko and .o modules?

a) if I try insmod iteraid.ko I have an error of Magic Version bla-bla-bla? (does anyone know how to get rid of it?) and an error of the module format too (i don't know why).

b) if I type insmod iteraid.o it "works" (well, it does not works very fine: if i run a cfdisk /dev/sda or a fdisk /dev/sda both, cfdisk and fdisk, have a page fault error and stop). Any idea about this?

c) I've copied both the iteraid.ko and iteraid.o to /lib/modules/..../kernel/scsi directory and I've inserted the iteraid line into /etc/modules. But in the boot the system looks for iteraid.ko (that doesn't work). Can I rename the iteraid.o (this "works") to iteraid.ko?

d) I have an initrd boot. How can i modify it to insert the iteraid.o module into it? I need ite support in the boot because I want to have /, /home, /var, /tmp... into partitions of the disk connected to the ite card.


That's all,
thanks in advance

PD: Ehart7, please, tell us if you made it works
 
Old 05-26-2004, 01:14 PM   #21
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
Drivers and instructions from here
http://www.giga-byte.com/Motherboard...N400%20Pro.htm

state...
04. Most likely, you will not want to type in "insmod iteraid.o" each
time you boot up the system. Therefore you must install the module
and tell the system about it. To install the module, type in the
following commands (first change directory to where the proper
iteraid.o can be loacted):

On Red Hat 9.0, use

# install -d /lib/modules/2.4.20-8/kernel/drivers/scsi
# install -c iteraid.o /lib/modules/2.4.20-8/kernel/drivers/scsi

Then you should inform the system when to load the module.
You can add the driver to the existing RAM disk image (in RedHat 9.0,
it will be /boot/initrd-2.4.20-8.img). Using the following commands:

# gzip -dc /boot/initrd-2.4.20-8.img > /tmp/initrd.ext2
# mkdir /mnt/initrd
# mount -o loop /tmp/initrd.ext2 /mnt/initrd
# cp iteraid.o /mnt/initrd/lib/
# cp /lib/modules/2.4.20-8/kernel/drivers/scsi/scsi_mod.o /mnt/initrd/lib/
# cp /lib/modules/2.4.20-8/kernel/drivers/scsi/sd_mod.o /mnt/initrd/lib/

Now, add following lines to the file /mnt/initrd/linuxrc, you can use
the editor that you fimilar with like vi. Example of linuxrc:

# vi /mnt/initrd/linuxrc

===============================================================
#!/bin/sh
echo "Loading scsi_mod module" <-- new insert line
insmod /lib/scsi_mod.o <-- new insert line
echo "Loading sd_mod module" <-- new insert line
insmod /lib/sd_mod.o <-- new insert line
echo "Loading IT8212 module" <-- new insert line
insmod /lib/iteraid.o <-- new insert line
...
...
...
===============================================================

# umount /mnt/initrd
# gzip -c /tmp/initrd.ext2 > /boot/initrd-2.4.20-8.img

If you are using Lilo to boot your system, you also need to run lilo:

# lilo

Then reboot your system and the driver will be loaded.

05. Configure system to mount volumes when startup.

Now you can inform the system to automatically mount the array by
modifying the file /etc/fstab. E.g. You can add the following line
to tell the system to mount /dev/sda1 to location /mnt/raid after startup:

/dev/sda1 /mnt/raid ext2 defaults 0 0

=================================================
I think actualy since everyone on this thread have been compiling the driver in the .../`uname -r`/kernel/driver/scsi/ directory you can skip the first few steps of
install -d
and install -c
and just start with the gzip -dc ........

P.S.
I'v used these steps many time on Redhat 9.0 and my Fedora Core 1 machines... and it works flawless.... hope it works for other distro's aswell (including my new FC2)
 
Old 05-26-2004, 01:42 PM   #22
netdemon
LQ Newbie
 
Registered: May 2002
Location: Northeast US
Distribution: Fedora
Posts: 24

Rep: Reputation: 15
Ehart7: In my experience, you have to compile the entire kernel first. The .ko files give you that error because you did not modify the Makefile in /usr/src/linux and remove the custom, i.e.
EXTRAVERSION = -1.358custom

custom should be removed. I have already said all this stuff, people should really read what I wrote, it'll save them trouble.

Do you have the regular ATA133 card? This driver only seems to work with the RAID version on Gigabyte boards. I don't have the RAID version

Last edited by netdemon; 05-26-2004 at 01:44 PM.
 
Old 05-26-2004, 01:48 PM   #23
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
I was answering Goala's question and Goala's question only.... that last post had nothing to do with my personal trial's and errors w/ these drivers as.... I haven't had time to play with them since the the other day when I first posted.... But I'll be sure to try all this stuff "when" I get a chance to...
 
Old 05-27-2004, 03:00 AM   #24
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Hi EHart7!

I had read that instructions before. The problem is both the module and the instructions are distribution & kernel specific. I think the instructions and the modules are taken from the linux driver package from ITE:

http://www.ite.com.tw//productInfo/Download.html
http://www.ite.com.tw//pc/LinuxDrive..._092005-09.zip

I need something generic. I have Debian Woody and I want to update the linux kernel to a 2.6.6-smp version, so I need to compile the module into the kernel or, if I get a debian package with a precompiled kernel, i will need to compile the module and embed it into the initrd-image to get support of the controller at the boot time.

I reinstalled Debian yesterday using (in the install process) a driver disk with the iteraid.o module (included in the mentioned zip, path /drivedisk_8212_ata/deb30/iteraid.o) and all was ok: I managed to make partitions (cfdisk didn't crash) and to install the Debian base system. The Debian installation system embedded the iteraid.o module into an initrd-image so i've got support of the ite controller at the boot.

The next steps I'm going to follow are:
1) try to compile a 2.6.6-smp kernel with support of ite controller inside or...
2) install a 2.6.6-smp kernel package and compile the ITE controller like a module and embed into the initrd-image.

But that will be on the following days. At least i have a running Debian with a 80Gb disk


Greetings from Spain!

PS1: thank you for the directions about how to make and inintrd image. I don't know which is the format of the initrd-image in Debian but a gzip -dc initrd.... command results in a "gzip: format unknown" message (more or less . I don't know if I'm making something wrong.

PS2: In Debian to load a module at the boot, you only have to copy the iteraid.o module as /lib/modules/.../kernel/drivers/scsi/iteraid.ko and add a line to /etc/modules with iteraid typed in it (it's somewhat different of Redhat-Fedora).

Last edited by Goala; 05-27-2004 at 10:24 AM.
 
Old 05-27-2004, 10:54 AM   #25
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
Goala....

Goala...

Hey are you trying to boot to a drive on the controller or you just want access to it early in the boot up stage???
(aka, where is your main installation??)


Thanks,
EHart7
 
Old 05-27-2004, 01:22 PM   #26
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Original Poster
Rep: Reputation: 30
Hi!
Anyone knows if is feasible to use a cd-writer (or a dvd, or a dvd-writer) with such controller (ITE RAID ...). I tried, but the controller bios doesn't detect the cd-writer; however some people told me that it is possible (They didn't tell me how though).

(almost) Any comment will be welcome

TIA

Regards
 
Old 05-27-2004, 03:53 PM   #27
EHart7
LQ Newbie
 
Registered: May 2004
Location: Idaho / Washington
Distribution: RH 9.0 / Fedora C1 / Fedora C2 / Debian (woody)
Posts: 8

Rep: Reputation: 0
Should be able to... but...

Hi Y0jiMb0,

hummm... you should be able to I have 3 or 4 of these controllers between work and home and I'v hooked CD-Rom's / DVD-Rom's / CD-RW to all of them.

In your case though... something seems to be wrong. The bios "should" be detecting any IDE device you put on the IDE chain.
The only thing I can think of that might be causing it not to detect is if you have both drives on a single chain set as master or both as slave. Or... the device might be bad?? Does it work on another IDE controller??

check these couple of things and post back.... because the controllers on board bios should be finding any devices...
 
Old 05-27-2004, 06:57 PM   #28
ren-uk
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
I have been trying to get the ITE8212 pci card working with Vector Linux 4.0 (based on Slackware 9.0)
I have compiled a 2.6.5 kernel with the driver built in & a 2.4.26 kernel with it as a module (now also a 2.4.26 with it built in but untested yet).

The problems I had were as follows...

The driver would keep resetting itself with the 2.6.5 ( I understand that there is a SCSI looping fix in 2.6.6 which may or may not help).

The driver in 2.4.26 would not keep resetting as the 2.6.5 one but the drive could not be recognised.

Apparently there is some issue with the ACPI impimentation in some BIOSes (the board I was using was EPOX). Sometimes this causes a sharing with USB which causes problems. A BIOS upgrade if available may possibly fix this but an alternative that worked for me was to use pci=noacpi as a boot parameter at the lilo prompt. You can of course add append = "pci=noacpi" to /etc/lilo.conf to make a permanent fix if the boot parameter works for you. After using this fix I was able to copy files to the RAID (I was using RAID1) without any problems.
 
Old 05-27-2004, 08:43 PM   #29
netdemon
LQ Newbie
 
Registered: May 2002
Location: Northeast US
Distribution: Fedora
Posts: 24

Rep: Reputation: 15
I wouldn't be surprised if it is the BIOS. I have had ACPI issues before. This board is the MSI i845G Max. I think I can turn off ACPI within the BIOS.

Ren: So this is an issue that won't be fixed by the BIOS manufacturers, right? Will Linux 2.6 ever have a workaround for this BIOS issue? This issue seemed to also affect my ability to boot into DOS on thie computer with drives connected to the ATA 133 card. It might be related. What is your particular BIOS?

I have AMIBIOS 2/17/2002 A6580IMS V1.6
Board MSI i845G Max-L

I had tried upgrading the card's BIOS, but the ITEFLASH.EXE utility I used from a DOS boot floppy kept saying the erase failed and write failed.

I went to CompUSA and got a Belkin ATA133 card and this worked with Linux no problems.

Ultra ATA/133 PCI Card, PC
Manufacturer: Belkin
Mfg Part #: F5U098
Product Number: 305320

http://www.compusa.com/products/prod...5320&pfp=srch1

Last edited by netdemon; 05-28-2004 at 05:11 AM.
 
Old 05-28-2004, 02:47 AM   #30
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Hi EHart7 and Y0jiMb0:

EHart7, my server is a Compaq Workstation 5100 with two PII 300, only one ide channel and a scsi channel (with no disk attached to it). The bios does not recognize hds greater than 8 gb, although linux does. So I have a 800 mb hd (/dev/hda) and a cdrom (/dev/hdb) connected to the motherboard ide channel and I've bought an ITE IT8212 PCI IDE-Raid Controller to attach the 80 Gb HD (/dev/sda) to it.

Well... the boot disk is hda (this fuc*** Compaq bios doesn't let you any flexibility). I've made several partitions in it (one for Compaq Diagnostics/Bios Setup, one for /boot with kernels and initrd-image, one with ext2 for rescue with an image of the base installation of Debian with support of the it8212.... [it will be very useful if the primary installation dies ] and one with fat16 with msdos to apply it8212 bios updates and so on...).

I've partitioned /dev/sda too. I've made partitions for / (root=/dev/sda1), /var, /home, /usr, /tmp and several for data. So I need IT8212 support at boot time (or I will not be able to run linux )

I have got it running fine. Now I want to install a 2.6.6-smp kernel... let's see if I manage to.

any suggestion?

*****

Hola Y0jiMb0 ¿que tal?. First, my IT8212 is a PCI card (it is not integrated in the motherboard like yours, isn't it? but I think there is not any difference). In my tests I attached a cdrom to the card (it was the only device connected) and the it8212 didn't recognize it, at least it didn't show the unit at the boot post.

I've seen in the ITE web: http://www.ite.com.tw//productInfo/Download.html an ATAPI BIOS (for ATAPI device) update. There is another update for the RAID BIOS (for RAID, IDE). Perhaps you need to update the bios with that first file to make it recognize the cdrom . Although probably this will cause the raid (and non atapi devices?) stop to run. You should ask ITE client support about it.


Bye.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Linux on a HDD connected to a PCI Ultra ATA 133 controller ncp100 Linux - Newbie 1 03-09-2005 01:41 PM
Installing Fedora Core from HD on external ATA controller punchycool Linux - Software 0 02-04-2005 11:19 AM
Installing Fedora Core from HD on external ATA controller punchycool Linux - Hardware 0 02-04-2005 10:43 AM
Problems with ATA controller on AX45-8XN? lqdengineer Linux - Hardware 3 08-05-2003 04:50 PM
Newbie; Maxtor ATA 100 IDE controller DavidBowman Linux - Hardware 5 10-31-2002 10:43 AM

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

All times are GMT -5. The time now is 08:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration