LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-20-2007, 02:12 PM   #1
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Add driver at boot time for Fedora Core 6


I'm trying to install FC 6 on old Dell 6300 which has the PERC2/SC RAID Controller for its SCSI drives.

It worked on RH 7.3 and I've found a post suggesting the driver is not in the 2.6 kernel.

Is there a way to tell it to use the driver originally made for the 2.4 kernel during the install of a 2.6 kernel distro?

By the way - Google shows other people talking about the Dell 6300 and PERC but they are talking about an Adaptec PERC card not the PERC2/SC which is a Megatrends PERC card instead.
 
Old 02-20-2007, 06:36 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
A driver module compiled for a 2.4 kernel will not work on a 2.6 kernel. During installation, most distros have an option to use alternative kernels, including the latest 2.4 kernel. That route is probably your best bet when trying to install FC 6.
 
Old 02-21-2007, 10:32 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831

Original Poster
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Luckily we had a spare PERC 4/DC card around so were able to swap out the PERC 2/DC for that. FC 6 (with 2.6 kernel) recognized the PERC 4/DC and installed like a champ.

I did that last night. This morning I saw a response from the same question I'd posted on my LUG's mail list. Since I'm under time pressure I'm not going to put the PERC 2/SC back and reinstall. However, I'll post that response for people that may not have a spare PERC avaialable as I did:

The response suggests the 2.6 kernel will recognize the older PERC card:

Quote:
There is a 2.6 driver for those old megaraid cards. It is considered a "legacy" card, and you need the CONFIG_MEGARAID_LEGACY option set to Y or M in your kernel to use it.

I'm not familiar with FC, but on openSuSE 10.20, they currently deliver these modules:
/lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid.ko
/lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid/megaraid_mm.ko
/lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid/megaraid_sas.ko
/lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid/megaraid_mbox.ko

# modinfo /lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid.ko
filename: /lib/modules/2.6.18.2-34-default/kernel/drivers/scsi/megaraid.ko
author: sju@lsil.com
description: LSI Logic MegaRAID legacy driver
 
Old 07-18-2007, 09:02 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831

Original Poster
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Other information gathered since my original post. I haven't gone very far in this but will post it here in case someone else has more cycles to try any of this than I do:

This Suse forum talks about how the guy solved the issue for another old MegaRAID card. My read of it suggests that it could be adapted to Fedora:

http://www.suseblog.com/?p=156

Where he says to hit "Ctrl-Alt-F2" you can just hit F5 on the FC6 boot to enter Rescue Mode and from there do the /cat/proc/version.

That's as far as I got on another system like the one I first described that still has a PERC2 in it.

Other links that may help with above for FC:

How to compile kernel for Fedora:
http://www.howtoforge.com/kernel_compilation_fedora

Doc for intrd build:
http://boink.pbwiki.com/LinuxP2V
 
Old 08-16-2007, 03:01 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831

Original Poster
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
PERC2/SC on Fedora Core 6 (FC6) SOLVED

Well I finally started to work on this again yesterday since I had some spare cycles. On doing a Google for comments in the above link about megaraid.h I eventually found my way to a site that had the answer for FC4 (and later in thread FC5) which led me to believe it would work for FC6.

I tried it and sure enough it worked.

Short answer: The driver is already there.

Complete answer: The 2.6 kernel in FC4 FC5 FC6 (and presumably later) contains TWO megaraid drivers which are LSI MEGARAID AND LSI MEGARAID_MBOX.
When you do the initial boot it probes your hardware and defaults to using the LSI MEGARAID_MBOX. This however, won't work on the older cards like the Dell PERC 2/SC (made by American Megatrends which later became LSI).

However, you can tell your system NOT to probe and then manually select the driver.

Steps:
1) Boot from the FC6 installation CD
2) At first screen hit F4 for Kernel
3) At next screen at "boot:" prompt type "linux noprobe" and hit return.
4) At prompts to pick language and keyboard select as normal.
5) A box will appear to select driver.
Scroll down the list and highlight the LSI MEGARAID driver (you'll also see LSI MEGARAID_MBOX - do NOT use MBOX).
6) NOTE: This step only needed if you have additional SCSI adapters.
On my system there were also 2 Adaptec 7890 SCSI adapters and an Adaptec 7860 SCSI (only God knows why this box had 3 Adaptecs AND the PERC 2). Because it found other SCSI adapters it opened the box to select driver again.
Chose "AHA-2470, 28xx, 29xx, 39xx (AIC7xxx)" driver.
7) It will go to the screen asking to test the media. I chose "skip"
8) It goes to a Devices screen - this should show all the drivers you selected in 5 and 6. Click "Done".
9) Proceed with the installation as normal from there.

After following the above the system booted up cleanly from the LUN on the PERC 2/SC. Also I ran "yum update" to update all the software to latest version after the install - this installed a new kernel and that also booted fine from the LUN.
 
  


Reply



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
How to add a service at boot time cherif SUSE / openSUSE 2 04-21-2006 03:30 PM
Fedora Core 4 - how do i stop unnecessary programs from starting up at boot time? nickleus Fedora 5 01-24-2006 09:18 AM
Fedora Core 3 freezes every other time I boot! satyakanth Fedora 2 03-28-2005 06:58 AM
Problems w/ manually add. a driver at install. time Toshi3 Linux - General 0 09-13-2004 11:35 PM

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

All times are GMT -5. The time now is 12:31 PM.

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
Open Source Consulting | Domain Registration