Jump to content

Driver for LSI MegaRAID SAS family

RAID LSI

  • Please log in to reply
285 replies to this topic

#281
noradninj

noradninj

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
Attached is a version compiled for Mac OS X 10.6.8 running a 64 bit kernel. Tested on Mac OS X 10.6.8 Server running on a Dell PowerEdge 2900 with a PERC 5/i card.

You will need to run sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.Boot ‘Kernel Flags’ ‘arch=x86_64’ in Terminal to force 64-bit kernel loading.


Forked Git repository is here https://github.com/n....8-x64bitKernel



Attached File  Screen Shot 2015-05-27 at 9.33.54409 AM.jpg   109.15KB   0 downloads

Attached File  SASMegaRAID.kext.zip   60.35KB   4 downloads

#282
Music_remedy

Music_remedy

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

So, to my understanding:

 

- In order to load this kext, my yosemite installation would need to run in developer mode

- Although the HP SmartArray P400 is Running an LSI 1078 Controller, it's not supported, because the firmware on it is actually an HP one and not the original LSI one 

 

(i've checked the PCI IDs don't match for sure, although it seems to be detected by Yosemite, so at least it's getting loaded in EFI) 



#283
dukzcry

dukzcry

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Russia

So, to my understanding:

 

- In order to load this kext, my yosemite installation would need to run in developer mode

- Although the HP SmartArray P400 is Running an LSI 1078 Controller, it's not supported, because the firmware on it is actually an HP one and not the original LSI one 

 

(i've checked the PCI IDs don't match for sure, although it seems to be detected by Yosemite, so at least it's getting loaded in EFI) 

 

Well, you should be able to load it after OS is booted without need of dev mode, since its added in permitted kexts list

cat /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist | grep SASMega

                <string>cc.dukzcry.SASMegaRAID  1</string>

However it most likely won't work in case you try to boot OS X from the volume on a raid card. At least last time I've checked, the non-signed kext granting didn't work for kexts with early boot requirement: http://www.insanelym...14#entry2134840

 

The 3rd party firmware is compatible if it at least exposes the same ABI as LSI fw does. Dell firmware works, for example.



#284
ElStuiterbal

ElStuiterbal

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

ElStuiterbal,

If there is no output, that most likely means the kext doesn't match against your device. What PCI device ID do you have (you could look at using dspci/lspci or using another OS)?

justroach,

I remember you were successfully using H310 cards. Could you still look at DevIDs and FW revisions of your cards, so we could help ElStuiterbal to get running?

 

I went to Windows and used the Device Manager to get the vendor and device id. This gave me the following:

PCI\VEN_8086&DEV_8CA2&SUBSYS_50011458&REV_00\3&11583659&0&FB

If I am correct, this means that the vendor id = 8086 and the device id = 8CA2, which seems weird. Maybe I didn't properly flash my H310?



#285
dukzcry

dukzcry

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Russia

I went to Windows and used the Device Manager to get the vendor and device id. This gave me the following:

PCI\VEN_8086&DEV_8CA2&SUBSYS_50011458&REV_00\3&11583659&0&FB

If I am correct, this means that the vendor id = 8086 and the device id = 8CA2, which seems weird. Maybe I didn't properly flash my H310?

That's wrong device. 8086 is intel, perhaps some device on your mobo.

Correct one would be VEN_1000&DEV_0073:

http://www.pcidataba...e_search=Search

Here's a little utility to show devices id under OS X: http://www.insanelym...10#entry2026275



#286
vindu

vindu

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

i've got an ibm m1115 which i had crossflashed to a lsi 9211-8i IR previously which i've re-flashed with the m1015 bootrom and the newest firmware from ibm which appears to be 20.11.1-0184

currently running 10.10.3
installed the release sasmegaraid.kext and have it showing up in the system information which is great
problem is it doesn't seem to be recognising any disks connected to it though, i know the driver will only present logical disks so the os so i've tried creating single disk raid0 arrays as well as creating a 2 disk raid0 array but they don't seem to show up in the os at all?
mfiutil is able to identify the individual disks as well as the volumes but nothing shows up in disk utility
have tried flipping the prefermsi key as well as the uncontiguous enumeration kext too without any change
 

here's the output from mfiutil

sh-3.2# mfiutil show adapter
mfi0 Adapter:
    Product Name: ServeRAID M1015 SAS/SATA Controller
   Serial Number: SP30205654
        Firmware: 20.11.1-0184
     RAID Levels: JBOD, RAID0, RAID1, RAID10
  Battery Backup: not present
           NVRAM: 32K
  Onboard Memory: 0M
  Minimum Stripe: 8K
  Maximum Stripe: 64K
sh-3.2# mfiutil show drives
mfi0 Physical Drives:
 1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA E1:S4
 2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA E1:S7
 3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA E1:S0
 4 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA E1:S3
sh-3.2# mfiutil show config
mfi0 Configuration: 1 arrays, 1 volumes, 0 spares
    array 0 of 4 drives:
        drive  3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA
        drive  4 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA
        drive  1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA
        drive  2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA
    volume mfid0 (950G) RAID-0 64K OPTIMAL <ssdraid0> spans:
        array 0
sh-3.2# mfiutil show volumes
mfi0 Volumes:
  Id     Size    Level   Stripe  State   Cache   Name
 mfid0 (  950G) RAID-0      64K OPTIMAL Disabled <ssdraid0>

any idea guys?

 

 

update: managed to flash the m1115 with the lsi megaraid 9240-8i firmware which made it pickup as an actual m1115, still no difference in osx :( sasmegaraid picks it up, shows the disks but just won't passthrough the virtualdisks

here's the new output:

sh-3.2# mfiutil show adapter
mfi0 Adapter:
    Product Name: ServeRAID M1115 SAS/SATA Controller
   Serial Number: SP30205654
        Firmware: 20.13.1-0208
     RAID Levels: JBOD, RAID0, RAID1, RAID10
  Battery Backup: not present
           NVRAM: 32K
  Onboard Memory: 0M
  Minimum Stripe: 8K
  Maximum Stripe: 64K
sh-3.2# mfiutil show drives
mfi0 Physical Drives:
 0 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA E1:S7
 1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA E1:S0
 2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA E1:S4
 3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA E1:S3
sh-3.2# mfiutil show config
mfi0 Configuration: 1 arrays, 1 volumes, 0 spares
    array 0 of 4 drives:
        drive  1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA
        drive  3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA
        drive  2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA
        drive  0 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA
    volume mfid0 (950G) RAID-0 64K OPTIMAL <sandisk_4xr0> spans:
        array 0
sh-3.2# mfiutil show volumes
mfi0 Volumes:
  Id     Size    Level   Stripe  State   Cache   Name
 mfid0 (  950G) RAID-0      64K OPTIMAL Disabled <sandisk_4xr0>

update2: turns out it's been working all along, just didn't show up in disk utility gui or in terminal. read through the entire thread again and had found a post mentioning needing to format the drive in windows first before showing up in osx so i booted a windows installation, formatted in ntfs then formatted it in hfs+ in osx and all is well :)

Attached Files








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy