| |||||||
General Mac OS X Discussion General Apple and Mac OS X Discussion
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||||||||
| |||||||
General Mac OS X Discussion General Apple and Mac OS X Discussion
![]() |
| | LinkBack | Thread Tools | Display Modes |
(#21)
|
(#22)
|
| Member Posts: 82 Join Date: Nov 2008 | I figured from the Linux code that the SD slot that it was a standard interface. So, after some Googling, I found this driver with source code for a different Inspiron's sdhc slot: http://forum.insanelymac.com/index.php?showtopic=62711 First, I downloaded PCI Utils and ran lspci -nn to get the vendor ID and device ID of the slot. After changing the PCI vendor ID to 0x197b (JMicron) and Device ID to 0x2381 (SD Host Controller), that translated to a PCI match string of 0x2381197b. I loaded the kernel extension and, LIFE! It was able to read the header of a 1GB card. It didn't end up mounting it and it doesn't show up in /dev. Something is definitely wrong because kextunload fails. However, if it can read the header, presumably a bit of debugging should fix it. Not sure if I'll be able to do this myself, but I'm going to give it a whirl. I've written many device drivers, but they're for Irix and Linux not MacOS.... |
| | |
(#23)
|
(#24)
|
(#25)
|
(#26)
|
(#27)
|
| Member Posts: 59 Join Date: Oct 2008 Location: Barrie, ON, Canada | Quote:
AR aka. loonix --------------------------------------------------- Dell 9 mini - OSX (Type 11 method) 10.5.6 | |
| | |
(#28)
|
| Member Posts: 79 Join Date: Oct 2008 Location: Sedalia, CO | Very exciting news.. Thanks again for all this great work.. I think many of us would love to contribute for your time and energy... Thanks again and yes, you are the man!! :-) |
| | |
(#29)
|
| Member Posts: 82 Join Date: Nov 2008 | Ok, here is a working READ ONLY sd card driver. I have disabled write mode (it kernel panics) so it *should* work for you. It handles card insertion and removal. It's not the zippiest thing in the world - I need to get it to use DMA and interrupts to fix that. I ported the exceptions for the JMicron host controller from 2.6 linux/drivers/mmc/host/sdhci.c to the driver I got from InsanelyMac. For some reason the JMicron code has been removed from current Linux (2.6.23). WARNING: The driver will hang if you use an SDHC card so normal cards only right now. For anyone else debugging this, there are two problems with the existing driver that need to be fixed to get read mode working. 1) The driver doesn't correctly set the Timeout control register before performing a transfer. 2) The host controller (according to the Linux driver) must have a command and data reset before every command. I also had to reset interrupt flags before checking them. |
| | |
(#30)
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Copyright © 2008-2010 MyDellMini.com.
Hosted on a CatN PHP vCluster.