mmc does not work on HP NC6220

Alexander Motin mav at FreeBSD.org
Mon Aug 24 07:41:35 UTC 2009


ales-76 at seznam.cz wrote:
> I have tried the hack and it works. By changing the one register value 
> in pci config space of the FlashMedia one can reroute the card slot to 
> the SD controller. The config of the controller after the manipulation 
> looks like this:
> 
> The process of the reconfiguration is easy:
> 
> setpci -s 06.3 4c=0x22
> 
> My instistence on pciutils is due to my Linux background, pciconf can do 
> the trick as well:
> 
> pciconf -w pci0:2:6:3 76 34
> 
> You can check the result with:
> 
> lspci -s 02:6.3 -vvvxxx
> or
> pciconf -r pci0:2:6:3 76
> 
> Then I was able to see mmcsd0 device in /dev and mount the file system 
> on it.
> 
> Alexander, do you think you can incorporate this hack into the sdhci 
> driver? At least as an option, like hw.sdhci.ti_hack or something. Well, 
> I understand that driver poking in config space of a device that does 
> not belong to it is not very elegant, but it should not do any harm, at 
> least until there is a working FlashMedia driver. I also understand that 
> if it works for me does not necessarily mean it will work for everybody, 
> but as an option and with some safety checks it would be worthwhile.

I think it could be better done in form of dummy FlashMedia driver that 
will do nothing for now, except disabling it.

-- 
Alexander Motin


More information about the freebsd-mobile mailing list