LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2008, 08:15 AM   #16
t3chn0m0nk3y
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Original Poster
Rep: Reputation: 0

>currently when the module is loaded and you run modprobe -a and then a modprobe -l |grep rr174x.ko does it still give you the FATAL: error?

No it reads:

/lib/modules/2.6.9-78.0.1.ELsmp/kernel/drivers/scsi/rr174x.ko

>Also, what directory is the module you're loading located?

I compiled the source in a dir I created /drivers, which contained the source tree in a convoluted dir structure:

/drivers/rr174x-linux-src-v2.1/product/rr1740pm/linux

Here the config.c, Makefile, and .build/ are located. I ran Make to create rr174x.ko

from this directory I ran insmod. However later as stated in the OP, I cp the .ko file to the location above /lib/...

I will attempt the other commands later today after a conference call is planned to do some other pertinent work on this box. Feel free to IM me at the names provided in my email reply.

thanks again!
 
Old 09-04-2008, 08:37 AM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Does the module load fine manually and work? If so, I think you want to add the module to your initrd so that it is loaded as soon as you need it. Especially if your system partitions are on the raid controller.

Look at man "mkinitrd" for the --with=MODULE option.

Also, it this is a 2.6 kernel, try using modprobe instead of insmod.

---

I looked at one of the driver downloads. It contains a script that performs these two lines:
Code:
                /sbin/depmod -a ${kver} &&
                /sbin/mkinitrd --preload scsi_mod --preload sd_mod --with=${DRIVER} --builtin=sata_mv /boot/initrd-${kver}.img ${kver}

Last edited by jschiwal; 09-04-2008 at 08:49 AM.
 
Old 09-04-2008, 10:13 AM   #18
t3chn0m0nk3y
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Original Poster
Rep: Reputation: 0
I will be attempting to use the mkinitrd option that misconfiguration suggested, I'm just wainting for an opportunity since the server is live.

The reason I'm using insmod instead of modprobe, is that modprobe doesn't work properly. again as stated in earlier posts, it gives a FATAL error unable to locate the module.

Also, the driver was compiled from source, so I'm not sure where that script was. It certainly wasn't in any of the docs included in the compile process as I followed them to the letter.

-TM
 
Old 09-04-2008, 12:42 PM   #19
t3chn0m0nk3y
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks to both misconfiguration and jschiwal for their help!

made a backup of kern.img in /boot

ran "mkinitrd -f --with=rr174x initrd-$(uname -r).img $(uname -r)"

made sure the entry in /etc/fstab was correct and rebooted

WORKED LIKE A CHARM!!

thanks again to all!!

-TM
 
  


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
modprobe and insmod not working navin_karnam Linux - General 8 07-31-2007 11:37 PM
modprobe or insmod? GT_Onizuka Linux - Newbie 7 04-10-2004 06:03 PM
modprobe or insmod agts Linux - Newbie 2 03-14-2004 01:18 PM
modprobe and insmod same modules, diff kernel ? qwijibow Linux - Software 1 11-06-2003 09:22 AM
insmod/modprobe Problem Compuholic Linux - General 19 12-24-2002 10:39 AM


All times are GMT -5. The time now is 09:20 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