View previous topic :: View next topic |
Author |
Message |
Horatio Apprentice
Joined: 25 Feb 2004 Posts: 246 Location: Houston, TX
|
Posted: Sun Sep 19, 2004 8:32 pm Post subject: how to compile an external module into the kernel |
|
|
I have a GigaRAID raid cotroller on board, and I want to compile the module available from http://www.iteusa.com/ in to the kernel.
The steps I have tried as of now. I copy the files iteraid.c and iteraid.h in to the kernel tree's subfolder drivers/scsi. Then I change directory to the kernel top-level directory, and execute:
Code: |
patch -p1 < ../linux-2.6.7-gentoo-r8a.patch
|
linux-2.6.7-gentoo-r8a.patch contents:
Code: |
diff -urN linux-2.6.7-gentoo-r8/drivers/scsi/Kconfig linux-2.6.7-gentoo-r8a/drivers/scsi/Kconfig
--- linux-2.6.7-gentoo-r8/drivers/scsi/Kconfig 2004-07-04 16:15:23.000000000 -0400
+++ linux-2.6.7-gentoo-r8a/drivers/scsi/Kconfig 2004-07-14 14:42:51.454872080 -0400
@@ -384,6 +384,14 @@
To compile this driver as a module, choose M here: the
module will be called in2000.
+config SCSI_ITE_RAID
+ tristate "ITE IT8212 support"
+ depends on SCSI && PCI && EXPERIMENTAL
+ help
+ For use of the ITE IT8212 RAID controller. This includes GigaRAID.
+
+ If unsure say no.
+
config SCSI_MEGARAID
tristate "AMI MegaRAID support"
depends on PCI && SCSI
diff -urN linux-2.6.7-gentoo-r8/drivers/scsi/Makefile linux-2.6.7-gentoo-r8a/drivers/scsi/Makefile
--- linux-2.6.7-gentoo-r8/drivers/scsi/Makefile 2004-07-04 16:15:23.000000000 -0400
+++ linux-2.6.7-gentoo-r8a/drivers/scsi/Makefile 2004-07-14 14:46:56.878562008 -0400
@@ -96,6 +96,7 @@
obj-$(CONFIG_SCSI_EATA) += eata.o
obj-$(CONFIG_SCSI_DC395x) += dc395x.o
obj-$(CONFIG_SCSI_DC390T) += tmscsim.o
+obj-$(CONFIG_SCSI_ITE_RAID) += iteraid.o
obj-$(CONFIG_SCSI_MEGARAID) += megaraid.o
obj-$(CONFIG_SCSI_ACARD) += atp870u.o
obj-$(CONFIG_SCSI_SUNESP) += esp.o
|
I then move on to configuring the kernel, but the configuration menu only gives me two options. Not compiling ITE IT8212 support, or compiling ITE IT8212 support as a module. I want ITE IT8212 support built in the kernel. So I can boot directly off the ide raid. Can I do this with ite's code, and how can I do this.
Side note, any suggested changes to Title "howto compile module in the kernel" that could make it easier to find though a search.
Last edited by Horatio on Sun Sep 19, 2004 11:50 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Sun Sep 19, 2004 8:45 pm Post subject: |
|
|
Horatio,
Your patch says:-
Code: | +config SCSI_ITE_RAID
+ tristate "ITE IT8212 support"
+ depends on SCSI && PCI && EXPERIMENTAL |
The tristate means the options Y/M/N are available.
It depends on SCSI and PCI however, so if either of those are modules, you will not be able to say Y here.
Check the top level setting for SCSI it must be Y before you get to see the option you want. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Sep 19, 2004 8:45 pm Post subject: |
|
|
I would change it to "how to compile an external module into the kernel".
The iteraid module will only be available as a builtin if you enabled that for everything it depends on as well.
That specifically means scsi support.
I.e. if scsi support = M, then anything scsi has to be M as well. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Horatio Apprentice
Joined: 25 Feb 2004 Posts: 246 Location: Houston, TX
|
Posted: Mon Sep 20, 2004 5:39 am Post subject: |
|
|
Gosh, I'm new at kernel hacking. Those suggestions did the trick. I've yet to really test this driver. I've only use fdisk to test if I could see the partions, drive size, etc.
Anyway, the line of the patch that reads:
Code: |
+ depends on SCSI && PCI && EXPERIMENTAL
|
should be changed to:
Code: |
+ depends on SCSI && BLK_DEV_SD && PCI && EXPERIMENTAL
|
Cheers. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|