Jump to content

dutchcow

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by dutchcow

  1. Well after long a rigerous testing with EMlyDinEsH it is possible to enable AHCI with a DSDT patch, but not in OSX. I'm too clueless to explain the details, but I think OSX is somehow blocking it. Maybe EMlyDinEsH can explain some details here. For anyone who still wants to get this to work you should look into chainloading into chameleon via grub/grub4dos and use grub or dos commands to set the pci stuff and then boot OSX. However I havent gotten this to work, when I do I will share the image here. It will be Linux or Freedos based.
  2. I ran into this a couple of more time. Things to check; modules chameleon loads, the /boot file, 2172 seems to work really well while some newer 218x builds fail hard when booting into OSX. I've also noticed that playing around with setpci stuff in Linux and doing a normal reboot will make OSX very unhappy So when things get weird here I make sure I have the 2172 /boot file, ran a full myfix, have a good hot cup of coffee and do a proper turning it off and on again to fix most things. I'm currently modding a Lion installer so it can be used as utility stick/disk, basically I just removed all packages and put on some nice applications. But I guess it would be illegal to share it. It's simple enough to make and nice to have. Or a SuperDuper! live usb disk ofcourse (but I like to create a tiny rescue thingy for my hackingtoshes).
  3. I would create a folder and collect the kexts from /E/E and other places that work for you, create your own Extra or one with your own Extensions folder and then install those via myHack. There's also an option of using the OLD EDP installers. I'm not sure if the management likes if I attach those to my post. I have both Lion and SL old EDP installers. They may just get you a working system and then you can upgrade kexts where needed. I have a D820 myself which works very smoothly, if you need anything from me let me know. I do have the Intel version though.
  4. You could download the bootpack and decompile the DSDT.aml file. It also has some but not all kexts, to see those check out the svn, or browse it online.
  5. And sugar too, I know it is bad, but it is so good.
  6. If served with free coffee and chocolate chip cookies.
  7. dsdt.aml.zipI did some testing under Linux and the speed difference with normal drives can be upto 5-10MB/s once AHCI is enabled. I think the legacy IDE mode limits the bus speed or something.
  8. @Herve Interesting, I will try that on my D630. I will also try the other suggestions. A Chameleon module or a kext (if possible) would be sweet too. @Bronxteck I linked to that on page 1 According to DiffMerge the DSDTs are identical from the D630 AHCI and IDE modes. D630_DSDT_IDE_VS_AHCI.zip
  9. If anything it has to be done from the RAM or something. I can toggle the interface in the grub menu, but I can't boot in to the OS. However if I make the changes from a USB grub install the system doesn't crash but I'm unable to access any drives (I think this has to do with memory space/mapping but is far above my level). The best method would be via BIOS/DSDT and if that fails some other way like you said with a module that gets loaded into the RAM before boot. I also have no idea if my disk names stay the same when switch mode. On my D630 switching AHCI on or off still makes OSX boot fine. So I don't think that should be a problem. If only I can find the old free version of DIY ViDOck bootdisk. I know that can change pci registers and then use grub4dos to chainload into anything. But I'm not willing to pay to test it, there will be no refund if it doesn't work on my system. If anyone has an old version laying around let me know so I can test it.
  10. Oh right, I did a diff and it a showed a lot but I think thats due to the headers being different and so all the line numbers too, oops. I read somewhere there can be differences, oh well. Lets hope something can figured out.
  11. There seems to be more code in the BIOS one. @Bronxteck That won't work until OSX can access TRIM and NCQ without AHCI enabled, Windows can do it. Linux has a bootflag to switch the controller in to AHCI mode. It's just OSX unfortunatly. There is no new firmware for my drive. I'm using a V300 Kingston in the D820, there are no updates yet. It has build in garbage collection, so TRIM is not really my first worry. The lack of NCQ and having the controller in legacy mode is what's costing speed, a lot of it. Ideally Dell would release a new BIOS with a switch for AHCI mode. But even on a lot of ICH8-M notebooks the option is nowhere to be found. This fix applies to that chipset too.
  12. Many people also succeed though. I mean if I can toggle the thing into SATA mode with some simple commands, surely there must be a way to either put the fixes in the DSDT or create some ramdisk that can execute them without crashing as is the case now, even when booting from external media, the system freezes. This can also have todo by the lack of AHCI address space, which need to put in the DTST or via setpci commands too. The speed increase right now is a lot already but with NCQ and TRIM it will be faster and better for the lifetime of my SSD. For the record I'm attaching my Linux and BIOS extracted unmodified DSDT to this post. Linux_BIOS_DSDT.zip
  13. Some more 'technical' information on this 'patch'. http://tlasd.wordpress.com/2009/11/06/intel-sata-chipsets-and-ahci/ http://mjg59.livejournal.com/76062.html I really think we need a DSDT wizard to make this work. I'm def. willing to chip in some money as this will not only benefit me but anyone with a ICH7/8-M chipset without AHCI mode in the BIOS. The speed gain even with normal drives can be quite a lot. Let alone SSDs. Getting NCQ to work will be a major boost, TRIM would be super sweet for us SSD users. The "quirks.ich_force_ahci=1" kernel flag for Linux is very interesting and I wonder if its possible to port that, or create a very tiny loader that loads a linux kernel, sets the sata mode and then boots into chameleon.
  14. Hrm.. When executing "setpci -s 00:1f.2 90.b=40" from the grub prompt and then doing a lspci shows the controller in sata mode, but I can't see any disks. When I boot the system freezes, ctrl-alt-del can reboot though, previously I had to hold down the power button. Any command inside grub that requires loading files from the grub folder on the hdd results in a freeze too, like the help command.
  15. Yeah, I think my best bet is to make a grub .img file that can execute the setpci commands and then chainload chameleon. That bootdisk found inside that $25 software can actually do it, but I'm not paying money for a suite of software I only need to use 1% of. I've tried looking everywhere for the old free version of it. It would be a perfect solution, could install grub in the EFI, which sets the controller in sata mode and then loads chameleon or an installer if I need to reinstall. Making a chainloading mini grub isn't the problem, the dos apps they use to change the pci registers are very hard to find. Another option is to figure out how Windows gets access to TRIM and NCQ, because I checked the device id in windows and its also still on *4 and not *5 (sata mode) yet TRIM and NCQ work, verified with fstool. But figuring that out isn't my strong point. I'm a unix guy really. I don't know if this is helpful for DSDT modding, but this is what they do to make AHCI work on ICH7-M: ahci.bat: :: Based off Coreboot i82801gx AHCI SATA code http://tiny.cc/cbahci :: :: Enable BARs setpci -s 0:1f.2 4.w=0007 :: Allow both Legacy and Native mode setpci -s 0:1f.2 9.b=8f :: set interrupt line.Interrupt Pin is set by D31IP.PIP setpci -s 0:1f.2 3c.b=a :: set timings setpci -s 0:1f.2 40.w=A307 setpci -s 0:1f.2 42.w=A303 :: sync DMA setpci -s 0:1f.2 48.b=1 setpci -s 0:1f.2 4a.b=1 :: Set IDE I/O Configuration setpci -s 0:1f.2 54.l=3002 :: Set Sata Controller Mode. setpci -s 0:1f.2 90.b=40 :: Port 0 and 4 enable setpci -s 0:1f.2 92.b=1011 :: SATA initialisation register setpci -s 0:1f.2 94.l=4a000180 :: SATA initialisation sequence setpci -s 0:1f.2 a0.b=40 setpci -s 0:1f.2 a6.b=22 setpci -s 0:1f.2 a0.b=78 setpci -s 0:1f.2 a6.b=22 setpci -s 0:1f.2 a0.b=88 setpci -s 0:1f.2 a4.l=1b1b1212 setpci -s 0:1f.2 a0.b=8c setpci -s 0:1f.2 a4.l=121212AA setpci -s 0:1f.2 a0.b=0 setpci -s 0:1f.2 3c=0 setpci -s 0:1f.2 94.l=c4a000180 autoexec.bat: echo off echo ICH7M/ICH8M: 27c48086/28288086 = IDE, 27c58086/27298086 = AHCI echo ICH7M/ICH8M: original sata PCI ID. Visually confirm it is 27c48086/28288086 (IDE) setpci -s 0:1f.2 0.l :: setup PCI Configuration space. You'll need to find free space in PCI Configuration Space to allocate to :: Use PCI Scope Trial to easily identify free space :: register 4, bit 1: Memory space enable (for AHCI) :: Must be done while in IDE mode (register 90=0) setpci -s 0:1f.2 4.b=2:2 :: Register 90: 0x00=IDE, 0x40=AHCI, 0x80=RAID. Set it to AHCI + non-combined. setpci -s 0:1f.2 90.b=40 call ahcipci.bat :: Register 94: set the SCRAE bit 9 :: setpci -s 0:1f.2 94.w=200:200 :: Register 9: set pci_class_prog=0x01 setpci -s 0:1f.2 9.b=1 :: Register a: set pci_class_device=0x06 setpci -s 0:1f.2 a.b=6 :: Switch off, then on the sata port setpci -s 0:1f.2 92.w=0000 setpci -s 0:1f.2 92.w=1011 echo Visually inspect output below. Want a "1" on the left side to indicate a device was found setpci -s 0:1f.2 92.w echo ICH7M/ICH8M AHCI FIX APPLIED echo ICH7M/ICH8M new sata PCI ID. Visually confirm it is 27c58086/27298086 (AHCI) setpci -s 0:1f.2 0.l :: quirk: Required a hardset to enable AHCI memory space setpci -s 0:1f.2 4.b=7 :: rescan pci-bus lspci > nul :: Chainload operating system :: grub --config-file="menu.xp" :: Or for Vista/Win7 :: grub --config-file="menu.w7"
  16. Will do. I booted into my live Lion with the previous one, and I think it sort of works. Check this out: sh-3.2# kextstat | grep -i ahci 54 1 0x11ff000 0xb000 0xa000 com.apple.iokit.IOAHCIFamily (2.0.8) <5 4 3 1> 55 0 0x1a1c000 0x1b000 0x1a000 com.apple.driver.AppleAHCIPort (2.3.1) <54 14 5 4 3 1> The kexts seem to be loaded right? sh-3.2# lspci -s 00:1f.2 -nnvvxxx | grep -i sata 00:1f.2 IDE interface [0101]: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [iDE mode] [8086:27c4] (rev 01) (prog-if 80 [Master]) That didn't change, and system profiler can't find any SATA controller. I will reboot into the new one and see how that goes. I read somewhere that what they do is address the SATA controller on 0x80 and store it at 0x40 or whatever that means. I will try and find those forum posts later (should've bookmarked those). Booting in the new one doesn't differ from the first. I also see a "applesmbpci failed to get provider" or something comes by fast too. But that could be normal. Booting with the stock DSDT from USB I can set the controller in SATA mode with success in OSX, but after about 10 seconds the system freezes and doesn't recover. I was able to verify the controller indeed switched using setpci in OSX terminal. Hope this helps.
  17. It seems to hang on IO something, boot device stuff. It's expected if the patch works, I will put it on an install stick and try there. When I tried switching the interface via grub on the same disk the disk just dies/and or the OS can't find the drives. I think it has to be done from external boot disk, or from the memory. The bootdisk thats now behind a paywall can be loaded as an img file into the ram and then do setpci stuff and chainload any OS. Will report back on how it goes on an installer. I made a pic of the screen, it's kinda hard to read, but not impossible. Sorry about that. http://i.imgur.com/ZvXyqKr.jpg (seems to miss the root device uuid in the string section?) I will also try loading the DSDT from grub which chainloads into chameleon at the moment for testing those setpci commands. But it can also load DSDT tables. Grub is pretty neat, though still a bit limited as I cant reinitialize/rescan the bus with echo commands or anything else. The installer loads fine in verbose mode, then loads the grey screen and then goes to black using this DSDT. Will try it on my USB Live Lion stick and see if it loads the ahci kexts. I think as long as the root device isn't using the controller it should be possible to switch it into sata mode and see the drives form the installer right?
  18. I can't wait to try this when I get home! Exciting Thanks.
  19. That only works once AHCI is working, it does the same as Trim Enabler. It shows enabled as the patch has been applied. But as long as the controller is running in ide (compatible) mode instead of native sata it will be hard. The speed benefit for normal drives could be noticed too. Right now the ICH7-M is speed limited, stuck in IDE compat mode. This is potentially very interesting for anyone with a ICH7-M chipset and no ability to turn AHCI on in the bios like me. Because it is supported and can be enabled either via setpci commands via an external boot disk or a properly patched DTST. This is why I originally replied in that thread but it was moved to a new topic here. All we need is the DSDT fix fixed for the Dx20s with the ICH7-M chip to enable AHCI/force sata mode, the Linux kernel already does this. Windows has its own magic for gaining access to TRIM and NCQ. This should be possible under OSX too.
  20. Did some more research on those setpci commands, I can execute setpci commands via grub but there is no way to reinitialize the device as there no rescan option for the bus and no fakephp grub module. Another option was used a long time ago but the software that bootdisk is part of costs $25 today, and the free version has been wiped out from the internet. So still no joy. So close, yet so far. I have TRIM in every OS except the one I run.
  21. I'm still at a loss on howto get TRIM to work under OSX. It is possible, I read some people put SSDs in their old non-ahci macbooks and it worked for them. Here's a screenshot of a clean win7 install on the D820: http://i.imgur.com/10fm0pu.png Everything works as it should. If anyone knows howto get TRIM to work under OSX on this machine let me know Edit 1: These guys use dsdt to force the ICH7 controller into AHCI mode, apparently it does support it. I've tried their DSDT method but it didn't work. Devices still don't have a media type in system info. My knowledge at this is very limited. How Windows can use TRIM/NCQ without AHCI is a riddle to me. Windows switches the ICH7-M in AHCI mode in the boot process. Edit 2: After some fighting with phoenixtool refusing to add a new dsdt I finally managed to flash my bios with the fix and it didn't do anything. It is loaded though (verified with acpidump) and the machine works fine with the additions. But still no TRIM joy. Edit 3: The final stretch. The controller does support AHCI mode under Linux, the trick above probably doesn work on the D820 dsdt without modification but I really have no idea how to do that. Here is some Linux stuff: root@custom:~# lspci -s 00:1f.2 -nnvvxxx | grep -i sata 00:1f.2 IDE interface [0101]: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] [8086:27c4] (rev 01) (prog-if 01 [PriO]) root@custom:~# setpci -s 00:1f.2 90.b=40 root@custom:~# setpci -s 00:1f.2 90.b 40 root@custom:~# modprobe fakephp root@custom:~# echo 0 > /sys/bus/pci/slots/0000\:00\:1f.2/power root@custom:~# echo 1 > /sys/bus/pci/slots/0000\:00\:00.0/power root@custom:~# lspci -s 00:1f.2 -nnvvxxx | grep -i sata 00:1f.2 SATA controller [0106]: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [AHCI mode] [8086:27c5] (rev 01) (prog-if 01 [AHCI 1.0])
  22. Trim enabler doesn't detect it though. The system info tool should show "media types" but I'm missing that line completely. I wasn't sure where to post, some googling led me to believe it had to do with dtst. Is TRIM not support on non-ahci sata interfaces under OSX? It should work. Maybe I bought an incompatible one... TRIM works fine under Lion/ML on my D630. Guess I'm out of luck on the D820 when it comes to TRIM. The build-in garbage collection should be enough but I'm not too sure about it. At least we know the Kingston V300 & V200+ SSD are compatible with the D630, sure you won't get the 400MB/s R/W but it sure is quieter and much much faster than the noisy and warm 7K2 drive and it was on offer
  23. I'm trying to get OSX to see my SSD as SSD so I can enable TRIM on it. Right system information doesn't show "media type" at all, I think this is dtst related? Correct me if I'm wrong. TRIM works fine on the same machine under other OSs.
  24. This morning I started my D820 which was running fine for weeks and got greeted with a KP caused by AppleEFIRuntime and AppleEFINvram. The weird thing is that nothing has changed. I then tried booting from my Lion install USB that has the last bootpack on it, it booted fine. I rebooted and booted the Lion install USB with -f and also got the KP. I changed the HDD, wiped it, and tried it all again with the same result. Now I can't even boot into Lion or the installer anymore. The same happens on my backups, as soon as I boot with -f I get a KP. I did myfixes, reinstalled Extra, restored working backups, reinstalled EDP v5. Nothing seems to sort this out. Does anyone know howto fix this? Edit: The same happened on my SL install. Booting into a 64bit kernel solves it, but alas no drivers for the graphics card. Can't seem to figure out whats causing the KPs when booting with arch=i386. Edit2: After deep cleaning the bios (erase nvram+defaults) things seem to have returned to normal. Lets hope it stays that way. I like my D820!
  25. I went looking for a T9400 today, it is cheaper to buy a 2nd hand laptop with one than just the CPU. So I may pick me up an old HP ProBook they seem to go pretty cheap 2nd hand. I'd get one, swap the CPU and sell it onwards. Unless ProBooks also make great hackingtoshes like the Dell laptops do. I also managed to get Lion to work on an old 13" weird Asian branded C2D laptop, feels good! Edit: Forgot to tick the "worldwide" box on ebay. Duh! Found some very nicely priced CPUs indeed, hopefully customs won't add too much tax on them, they are 2nd hand after all. Probably gonna get myself a T9400, which is still doable price wise. I don't want to burn holes in my pockets, and hopefully not the D630 with a faster CPU too
×
×
  • Create New...