Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for a Howto about compiling source kernel modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Tue Dec 20, 2005 6:14 pm    Post subject: Looking for a Howto about compiling source kernel modules Reply with quote

Hello gentoo,

Can some one please point me to a guide explaining how to compile kernel modules that come as source into my kernel.

I'm tried of searching the web and not finding anything relevent.

I'm using a 2.6 ofcurse and tring (and failing) to compile a mpt fusion scsi controller into my kernel.
The thing is that this drivers comes either as an rpm or as source, which is cool if only I know how to compile it in.


Please (please) do me a favor and go over your bookmarks to pull me the link.

Ahhh.

Thank's,
Maxim.
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
AmosMutke
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 235
Location: Akita, Japan.

PostPosted: Wed Dec 21, 2005 4:52 am    Post subject: Reply with quote

sry for dbl post.. sump'n screwy happened.

Last edited by AmosMutke on Wed Dec 21, 2005 4:54 am; edited 1 time in total
Back to top
View user's profile Send private message
AmosMutke
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 235
Location: Akita, Japan.

PostPosted: Wed Dec 21, 2005 4:53 am    Post subject: Reply with quote

I would go with the tar'd and bzip'd source code over the rpm.

Here's what I would do.

    *Download the file
    *First create a directory for the source file and put in in there before you extract it. Just in case the files are not compressed in a directory. untar/unzip it (varies depending how it was done) try
    Code:
    tar -zxvf <file name>

    *look for a readme file or an install file and read it.. it should tell you how

If you can't fine the install/readme file with instructions, go into the source directory and try
Code:
./configure
make install


give me a link to the driver file and I can look at it.
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Wed Dec 21, 2005 7:50 am    Post subject: Reply with quote

Thanks,

Here it is :

http://www.lsilogic.com/files/support/ssp/fusionmpt/Linux/mptlinux-30252-1.zip
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
AmosMutke
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 235
Location: Akita, Japan.

PostPosted: Wed Dec 21, 2005 10:45 am    Post subject: Reply with quote

OK.. I've been looking around for a solution for you.. Looks like good news and bad news...

First of all the good news. It appears that there is already support for you in the 2.6.? kernel... sorry, I don't know when it was added, but it's in my 2.6.14-r2 gentoo sources
Code:
grep -i fusion /usr/src/linux/.config
# Fusion MPT device support
# CONFIG_FUSION is not set
# CONFIG_FUSION_SPI is not set
# CONFIG_FUSION_FC is not set
# CONFIG_FUSION_SAS is not set


Have you tried these yet?
Code:

Device Drivers --->
        Fusion MPT device support --->
                < > Fusion MPT ScsiHost drivers for SPI
                < > Fusion MPT ScsiHost drivers for FC
                < > Fusion MPT ScsiHost drivers for SAS


The bad news, it also appears that the Fusion-MPT controller is slow under several 2.6.x kernels.
http://seclists.org/lists/linux-kernel/2005/Nov/0180.html

If the controller is acting slow for you and you want to try the work-around, I recommend backing up your kernel source before hand.
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Wed Dec 21, 2005 5:09 pm    Post subject: Reply with quote

:D

Thanks, that usefull.

I'm not using gentoo patched kernel.

I have downloaded the vanilla 2.6.14 source & the 2.6.15-rc6 patch and am trying to get this working (on serveral different distro's) for now the kernel compilies but I have another problem : The module doesn't find the controller and existed.

Even when I try to modprobe mptspi it.

Any ideas ?


b.t.w.

Thank you very much for helping me :)
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
AmosMutke
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 235
Location: Akita, Japan.

PostPosted: Wed Dec 21, 2005 11:08 pm    Post subject: Reply with quote

hq4ever wrote:

Any ideas ?


b.t.w.

Thank you very much for helping me :)


umm.. not really.. Can you see the device with "lspci" ? Can you copy the exact error message here? What relivant information about your card is printed during boot and when you try to load the module?

__possibly__ you can try using the exact kernel that the patch was made for. If the ebuild isn't on your system, do an emerge sync.

Code:
echo "=sys-kernel/vanilla-sources-2.6.15_rc6 ~x86" >> /etc/portage/package.keywords
emerge -vp =sys-kernel/vanilla-sources-2.6.15_rc6
emerge -v =sys-kernel/vanilla-sources-2.6.15_rc6


then apply your patch and try again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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