[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to compile driver for ITE 8212?



On Mon, 2005-05-02 at 13:26 -0400, Thom DeCarlo wrote:
> Hi,
> Sorry if this is a newbie question, but I didn't find any references in the
> archive.
> 
> I just installed RH Enterprise (2.4.21-27.0.4.ELsmp) and discovered that the
> ITE 8212 RAIDExpress card is not supported. I found drivers on the ITE
> website (www.ite.com.tw) but they are only compiled for RH 7.3 (2.4.20-8). 
> 
> It also includes a src directory, but running "make smp" in there produces
> lots of error messages. 
> 
> Can anyone tell me how to build and install the drivers for this card?

Tested on RHEL 3 U5 Beta (x86).

Just requires a one line patch to their Makefile, patch attached to this
email.

I ran make all, with the patch applied (and kernel-source installed).

This generated four files:
iteraid.big (for hugemem kernel)
iteraid.bot (for the BOOT kernel)
iteraid.o (for the Uniprocessor kernel)
iteraid.smp (for the SMP kernel)

I then took the iteraid.o (since I don't have an SMP test box handy),
copied it into /lib/modules/`uname -r`/kernel/drivers/block, and ran
depmod -a. In your case, you'd want to copy iteraid.smp
to /lib/modules/`uname -r`/kernel/drivers/block/iteraid.o

After that, you should be able to run: modinfo iteraid
And see something like:

filename:    /lib/modules/2.4.21-31.ELsmp/kernel/drivers/block/iteraid.o
description: "ITE IT8212 RAID Controller Linux Driver"
author:      "ITE Tech,Inc."
license:     "GPL"

No idea if it works or not, as I don't have this hardware.

~spot
-- 
Tom "spot" Callaway: Red Hat Sales Engineer || GPG Fingerprint: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!
--- 2.4.x/Makefile.BAD	2005-05-02 12:34:56.000000000 -0500
+++ 2.4.x/Makefile	2005-05-02 12:47:01.000000000 -0500
@@ -23,7 +23,7 @@
 
 BIGOBJS = iteraid.big
 iteraid.big:iteraid.c iteraid.h
-	$(CC) $(CFLAGS) $(shell if echo $(CC) | grep 'kgcc' > /dev/null 2>&1 || uname -r | grep '2.4' > /dev/null 2>&1; then echo "-D__module__bigmem"; fi) $(shell if uname -r | grep '2.2.' > /dev/null 2>&1; then echo "-DMODVERSIONS"; fi) -I. -I$(SRCPATH)/drivers/scsi -I$(SRCPATH)/include -include $(SRCPATH)/include/linux/modversions.h -c -o iteraid.big iteraid.c
+	$(CC) $(CFLAGS) -D__SMP__ $(shell if echo $(CC) | grep 'kgcc' > /dev/null 2>&1 || uname -r | grep '2.4' > /dev/null 2>&1; then echo "-D__module__hugemem"; fi) $(shell if uname -r | grep '2.2.' > /dev/null 2>&1; then echo "-DMODVERSIONS"; fi) -I. -I$(SRCPATH)/drivers/scsi -I$(SRCPATH)/include -include $(SRCPATH)/include/linux/modversions.h -c -o iteraid.big iteraid.c
 
 
 up: $(OBJS)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]