Can someone responsible for the BCM2708 SD card driver please comment on the possibility of building it as a module?
I've attempted the following:
- CONFIG_MMC_SDHCI_BCM2708=m
- Moved the definition of `enable_llm` from sdhci-bcm2708.c to sdhci.c
- Exported `enable_llm`, `sdhci_spin_lock` and `sdhci_spin_unlock` as GPL symbols in sdhci.c using EXPORT_SYMBOL_GPL.
- Also exported `frc_clock_ticks32` as GPL symbol in arch/arm/mach-bcm2708/bcm2708.c
Otherwise this is a stock 3.6.11+ kernel from the raspberrypi/linux github latest. This gives me a loadable module, but when I load it, nothing happens (AFAICT). On a RPI running the raspbian wheezy 3.6.11+ kernel, there is a device known as /sys/dev/block/179:0 which is attached to the MMC subsystem; on a system with sdhci-bcm2708 built as a module, there is no such device. Note that I have my root filesystem on a USB stick to give a bootable system in this case. Specifying emmc_clock_freq=100000000 on the modprobe commandline doesn't seem to help, either.
Has anyone seen this configuration working? Anyone got any tips on getting it working?
Thanks,
Tom