LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 04-30-2013, 01:11 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
How to enabled LSI SAS driver in kernel?


Hi,

I'm trying to build a kernel for a blade server, but I can't seem to get the LSI SAS driver in there.

I have tried booting up to Mandriva in the server, and its kernel detects the hardware. When I type an lsmod, I get the following output:

Code:
Module                  Size  Used by
sco                    14533  2 
bnep                   13141  2 
l2cap                  59314  3 bnep
bluetooth              90486  5 sco,bnep,l2cap
rfkill                 15106  2 bluetooth
af_packet              17763  2 
nfs                   267889  0 
lockd                  68538  1 nfs
fscache                54663  1 nfs
nfs_acl                 2209  1 nfs
auth_rpcgss            33521  1 nfs
sunrpc                190693  5 nfs,lockd,nfs_acl,auth_rpcgss
tun                    13550  0 
cdc_ether               6941  0 
usbnet                 23350  1 cdc_ether
mii                     4409  1 usbnet
i7core_edac            14944  0 
shpchp                 24020  0 
sg                     25213  0 
dm_mirror              12062  0 
dm_region_hash          9037  1 dm_mirror
dm_log                  8615  2 dm_mirror,dm_region_hash
tpm_tis                 8751  0 
tpm                    14523  1 tpm_tis
i2c_i801                8654  0 
evdev                   7721  8 
tpm_bios                4913  1 tpm
i2c_core               25378  1 i2c_i801
button                  4865  0 
iTCO_wdt                9728  0 
ioatdma                44565  16 
iTCO_vendor_support     2502  1 iTCO_wdt
edac_core              39008  1 i7core_edac
pci_hotplug            24893  1 shpchp
dca                     5599  1 ioatdma
serio_raw               3686  0 
processor              25276  0 
ipv6                  276190  74 
autofs4                20152  6 
ext4                  331809  2 
jbd2                   68864  1 ext4
crc16                   1367  2 l2cap,ext4
sd_mod                 31958  5 
crc_t10dif              1247  1 sd_mod
sr_mod                 13620  0 
uas                     6941  0 
usb_storage            40530  3 
usbhid                 38134  0 
hid                    67285  1 usbhid
mptsas                 49874  1 
mptscsih               30704  1 mptsas
mptbase                88850  2 mptsas,mptscsih
ehci_hcd               47721  0 
uhci_hcd               22058  0 
scsi_transport_sas     27318  1 mptsas
scsi_mod              176396  8 sg,sd_mod,sr_mod,uas,usb_storage,mptsas,mptscsih,scsi_transport_sas
scsi_mod              176396  8 sg,sd_mod,sr_mod,uas,usb_storage,scsi_transport_sas
usbcore               162865  8 cdc_ether,usbnet,uas,usb_storage,usbhid,ehci_hcd,uhci_hcd
bnx2                   66322  0 
ide_cd_mod             25232  0 
ide_core               97656  1 ide_cd_mod
loop                   15037  0 
dm_mod                 63717  2 dm_mirror,dm_log
I'm guessing the relevant modules are scsi_transport_sas and scsi_mod.

In my kernel config, I've already enabled the following:
CONFIG_SCSI_MOD
CONFIG_RAID_ATTRS
CONFIG_SCSI
CONFIG_SCSI_DMS
CONFIG_SCSI_NETLINK
CONFIG_SCSI_PROC_FS
CONFIG_BLK_DEV_SD
CONFIG_BLK_DEV_SG
CONFIG_SCSI_CONSTANTS
CONFIG_SCSI_SPI_ATTRS
CONFIG_SCSI_FC_ATTRS
CONFIG_SCSI_ISCSI_ATTRS
CONFIG_SCSI_SAS_ATTRS
CONFIG_SCSI_SAS_LIBSAS
CONFIG_SCSI_LOWLEVEL
CONFIG_MEGARAID_NEWGEN
CONFIG_MEGARAID_MM
CONFIG_MEGARAID_MAILBOX
CONFIG_MEGARAID_LEGACY
CONFIG_MEGARAID_SAS
CONFIG_SCSI_MPT2SAS
CONFIG_SCSI_MPT2SAS_LOGGING
CONFIG_SCSI_DH
CONFIG_SCSI_DH_RDAC
CONFIG_SCSI_DH_HP_SW
CONFIG_SCSI_DH_EMC
CONFIG_ATA
CONFIG_ATA_VERBOSE_ERROR
CONFIG_ATA_ACPI
CONFIG_SATA_PMP

I've also enabled all SATA drivers, as well as most RAID drivers.

What am I missing out here?

I tried to extract the .config from the Mandriva kernel but was unable to do so.

Thanks!
 
Old 05-01-2013, 02:58 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,009

Rep: Reputation: 71
The kernel have included the LSI SAS low level module. But the module isn't loaded. You need use "modprobe megasr" to load it.
 
Old 05-01-2013, 08:32 PM   #3
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
Thanks.

I forgot to mention that I'm compiling everything into the kernel and not using modules. Hence I shouldn't need to modprobe anything.
 
Old 05-02-2013, 03:42 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,009

Rep: Reputation: 71
I don't know how you configure the kernel, using "make menuconfig" or editing .config file. It is better use "make menuconfig" except you really know what are you doing if editing .config.
You can check boot-up message to make sure loading is successful if the module is built in.
 
Old 05-02-2013, 10:24 PM   #5
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
I use make menuconfig. What should I be looking out for in the boot up messages? Well they appear in dmesg as well?
 
Old 05-03-2013, 02:16 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,009

Rep: Reputation: 71
All module relative to LSI should be included into kernel using make menuconfig. And then dumping dmesg to check which module match your LSI SAS driver.
 
  


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
Anyone get LSI SAS drivers to load properly? JMCraig Red Hat 4 12-19-2011 03:48 PM
LSI SAS RAID driver for Debian JMCraig Linux - Hardware 10 12-19-2011 03:43 PM
[Needed]:LSI MegaRaid SAS driver version 4.08 and above with kernel 2.6.19 piyush08 Linux - Kernel 1 06-13-2010 04:28 AM
Can't load LSI SAS Megaraid on Fedora 9 Installation erickwellem Fedora - Installation 4 07-23-2008 02:33 AM
Loading LSI/Dell PERC SAS driver under Openfiler (CentOS) MitchD Linux - Hardware 0 07-30-2006 06:35 AM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration