Jump to content

Dell Bios, AHCI/RAID, SSD


  • Please log in to reply
91 replies to this topic

#1
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
I have installed ML to a Dell Inspiron 530 desktop that was running Lion on a SATA HDD. I had AppleIntePIIXATA kext in the E/E folder that allowed me to use the hard drive in IDE mode.

For ML, I have added an SSD into the mix. I can have it recognized, installed and booting with the same set of kexts (and DSDT) I used for Lion. Which means I have to have the SATA mode set to IDE. However, when running from SSD, I am supposed to enable TRIM commands and I have no success doing that when running under IDE mode.

Dell bios does not have an AHCI enable setting. It uses RAID to enable AHCI. But when I set the SATA mode to RAID, it gets stuck at [PCI Hardware detection begin] or whatever the message is called. Before you say it, I have tried the npci=0x2000 switch and that does not make a difference. I am guessing it is stuck at finding the SSD but not having any luck. This is confirmed by switching the SATA mode to IDE. It boots up fine in that mode.

There is a post on these forums that talks about using AHCIPortInjector.kext. I have copied it to the E/E folder. But I am supposed to remove the AppleIntelPIIXATA.kext and when I do that, I cannot boot at all (RAID or IDE mode). Then I have to boot back in Lion and restore the kexts. I have spent a lot of time experimenting today and I am stuck for any ideas now. If I get some ideas here, I will try them tomorrow. Thanks in advance.

#2
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
If that is where it's stuck and repeating PCI Configuration Begin, try: PCIRootUID=1 npci=0x2000

or: PCIRootUID=1 npci=0x3000

or just: npci=0x3000

If it's sits there and after a minute or two says Still waiting on Root Device, which would make more sense, see here: About "Still waiting for root device"

#3
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
he has to fake ESB2 (orange icon fix) in dsdt for sat0 then set to raid in bios.. done.
raid= ahci in this model

and the dsdt also has
Device (PCI0)
_UID, 0x01 needs 0x00

#4
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
Thanks eep, I will try the PCI Root UID switch and see if it gets past the PCI Configuration begin message.

Latin, I don't have a problem with orange icons (yet). Do you think the ESB2 fix in dsdt helps with recognizing the drive properly in RAID mode? I have learned that RAID mode turns on AHCI in Dell's Bios. And I need AHCI to enable TRIM properly on my SSD.

The wrong PCI root should also be addressed by the boot switch suggested above by eep. I will try it as a boot switch first. Thanks.

#5
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
its called orange icon fix in dsdt editor patches.. it uses device id 2681 for ahci instead of the ide mode.
make a dsdt with orange icon patch and set bios raid and it works... dunno about ssdt. what bios version 1.0.18 ?

#6
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
My Bios is 1.0.15 but I can upgrade if that is needed for this to work.

I will try the dsdt patch in a little bit. But what kexts do I need to make it work? There is a AHCIPortInjector.kext floating around which has the orange icon patch in it. Is that going to help?

Do I need to delete the AppleIntelPIIXATA.kext (and IOATAFamily.kext) from my E/E folder? Here is what I currently have:


AHCIPortInjector.kext
AppleRTL8139Ethernet.kext
fakesmc.kext
Intel82566MM.kext
IOAHCIBlockStorageInjector.kext
NullCPUPowerManagement.kext
OpenHaltRestart.kext
PlatformUUID.kext
SleepEnabler.kext
VoodooHDA.kext

My sleep, restart etc also doesn't work on Lion or ML since the time I had to switch my power supply. Thanks for your help.

#7
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
eep, thanks so much again. using the PCIRootUID=1 switch did the trick and it got stuck at the Waiting for root device just like you said it would. And the link you gave for that fix (how clairvoyant of you!) was the ticket. I already had the AHCIPortInjector.kext in the right place so all that was left for me was to try the LegacyAppleAHCIPort.kext and that did the trick.

Sata mode is now RAID, TRIM is enabled and Mountain Lion is usable now. I still have that power supply issue which causes it to restart instead of shutdown and sleep doesn't work yet, but I can wait for fixing those things.

Thanks for your help.

Latin, I was going to download and install the patch next, but this worked so I don't have to. I will focus on looking for a fix for shutdown/restart next. Thanks for your help.

#8
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
If you did want to switch to ESB2, the device ID 2681 is flopped when putting into DSDT, would look like this:

			Device (SATA)
			{
				Name (_ADR, 0x001F0002)
				Method (_DSM, 4, NotSerialized)
				{
					Store (Package (0x02)
						{
							"device-id",
							Buffer (0x04)
							{
								0x81, 0x26, 0x00, 0x00
							}
						}, Local0)
					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					Return (Local0)
				}

your other problems should also be fixable with DSDT edits and make sure nullcpupowermanagement.kext removed. may need to patch appleRTC.kext too but not sure on Dell

#9
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
if u remove nullcpupower .. u also need to enable GeneratePStates and GenerateCStates and remove sleepenabler
have bios 1.0.18 and the dsdt fixes for USB .. ive posted dsdt arround

the only files really needed are
chameleon 2.1
fakesmc.kext
Intel82566MM.kext
VoodooHDA.kext (remove (HDEF) in dsdt)
the dsdt needs Device (PCI0) _UID, 0x00
usb patched (its ich9) and usb5 removed (also in _GPE)
remove in dsdt the internal IGD (integrated graphics display)

who needs this ??? AppleRTL8139Ethernet.kext

#10
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts

who needs this ??? AppleRTL8139Ethernet.kext


Oh that is my Gigabit PCI Network card. Forget the brand but that is why I added that.

I will have to do some reading on generating those states and patching DSDT again. I will do that slowly...

#11
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
gigabit rtl uses lnx2mac driver best.. or the rtgmac

use chameleon wizard or champlist to enable the pstates, cstates

#12
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
I will update the Bios to 1.0.18 tomorrow. But I am attaching a copy of my dsdt.aml zipped. I will delete the null cpu pm and sleep enabler kexts. And I can do the generate p states and c states checkbox in Chameleon Wizard. But I am not sure how to do the other things you mentioned to the dsdt. I don't think I am using the voodooHDA either since I have a USB to Optical dongle for sound but I would like to keep my internal sound card working just in case.

If you could find some time to modify my dsdt I would appreciate it. It would be great to get sleep and shutdown/restart working on this thing. With the new SSD ML install, I could easily push this hackintosh for another year or two.

Thanks in advance.

Attached Files



#13
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
best if u post the dsdt from 1.0.18

#14
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
Ok so I started DSDTSE editor and extracted the DSDT. Then I saved it and compiled it on Mountain Lion running from a new SSD using the 1.0.18 BIOS. See attached.

Attached Files



#15
Toonces Katt

Toonces Katt

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
I am in a very similar spot as yellowguy. I have a Dell Inspiron 530 1.0.18 and a Vostro 400 1.0.15. Both use the same Foxconn g33m03 motherboard. I am trying to set the Vostro 400 up with ML and keep running into waiting on root. I have a working Lion install that was done with iatkos L2 but want to do a clean install of ML using my App store purchased ML. I used myhack to create the boot USB and added IOATAFamily.kext to allow the installer see my drive in IDE mode but after doing a clean install I cannot get it to see me drive in either IDE or RAID. I've made sure the same kexts are in the installer's extra and on the ML drive's extra. I don't have a DSDT for either the Inspiron or the Vostro yet. Is there a kext that I can use to get the system going? yellowguy, could you post your extras? I am trying to get away from the mess that my previous installs were.

LatinMcG, first, thanks for your DSDT and BIOS help! I have been reading your posts and my 1.0.15 Vostro Slic BIOS is one you posted on another forum.

As far as I know, 1.0.15 is the latest for the Vostro 400

Thanks for any assistance!

#16
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
Toonces I will zip and post my extra folder in a few minutes. But first I want to thank Latin McG. I deleted null cpu, open halt restart and sleep enabler kexts. I checked the generate states check boxes in Chameleon Wizard and that took care of the shutdown problem. It now shuts down when asked to. It also sleeps when asked to but it does not shut off all the fans and the power button light stays solid blue (does not blink amber). To be honest I never saw sleep work before so I don't know. And it recovers from sleep without any issues.

I am very happy with what I've got now. Thank you all for your help.

#17
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

Toonces I will zip and post my extra folder in a few minutes. But first I want to thank Latin McG. I deleted null cpu, open halt restart and sleep enabler kexts. I checked the generate states check boxes in Chameleon Wizard and that took care of the shutdown problem. It now shuts down when asked to. It also sleeps when asked to but it does not shut off all the fans and the power button light stays solid blue (does not blink amber). To be honest I never saw sleep work before so I don't know. And it recovers from sleep without any issues.

I am very happy with what I've got now. Thank you all for your help.

needs more patchign in dsdt .. usb and irq's. ill post in next 24 hrs
in meantime.. save as .dsl and compare it with a text tool to the dsdt ive made and you'll see differences

#18
yelloguy

yelloguy

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
Toonces, see the file attached. It is what works for me.

LatinMcG, is there supposed to be a file attached to your post?

Thanks.

Attached Files



#19
Toonces Katt

Toonces Katt

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
  • Gender:Male

Toonces, see the file attached. It is what works for me.

LatinMcG, is there supposed to be a file attached to your post?

Thanks.


Thanks yellowguy! I am going to give it a shot now. Was there anything you deleted out of /S/L/E?

#20
Toonces Katt

Toonces Katt

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
Using Yellowguy's extra I was able to get booted into a clean myhack install of ML. I was able to boot without his DSDT and dumped my Vostro 400's DSDT which is attached. LatinMcG, if it's not too much to ask, could you please take a look at it and make any patches needed? I understand the Orange Icon fix but the others may be needed I am not sure about. My video is HD 5770 which shows correctly using GraphicsEnabler.

The contents of my /E/E/:

fakesmc.kext
Intel82566MM.kext
IOAHCIBlockStorageInjector.kext
LegacyAppleAHCIPortIntelICHx.kext
PlatformUUID.kext

lspcidrv.kext (added by myhack)
Patched_10.7_AppleRTC.kext (added by myhack)
ApplePS2Controller.kext (added by myhack)
AppleACPIPS2Nub.kext (added by myhack)

I am pretty sure I don't need the ones added by myhack, they are part of the generic kexts added by default to all installs.

Thanks again to Yellowguy and LatinMcG! I really appreciate your assistance. I've been messing with ML for the last 2 days and got farther in the last 2 hours than the previous 2 days :D

Attached Files







1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


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