Stumbled across this gem on the OpenSUSE wiki. It's actually fairly simple, albeit kinda temperamental. Create a new file called
81-mmc-config.rules in
/etc/udev/rules.d/ with sudo, and add this to it:
- Code: Select all
KERNEL=="mmc0", RUN+="/usr/bin/setpci -d 197b:2381 AE=47"
It's kinda touchy in that you have to insert a card, remove it, and insert it again to initialize, and after unmounting a card you have to wait a little while for it to register a new card for whatever reason, but it seems to work -- I could easily have my microsd/sd adapter automount 1 in every 3 or 4 times

. This problem may be why the Linpus kernel has a hacked up sdhci.c/h file. These hiccups are why I haven't added it to the ubuntu wiki yet, I'm certain that some settings can be tweaked to make the thing work better. Also, in theory, this only runs on the right-hand side card reader but it could probably be adapted to work on the storage expansion one as well.
This also requires the modules
pciehp and
sdhci to be loaded in /etc/modules.