ok, no luck here either.
Let's start hacking the module source then
1. Install the required dependencies to build the modules:
Code:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
2. Get the kernel source:
Code:
apt-get source linux-image-$(uname -r)
3. Edit applesmc.c to apply your changes:
Code:
cd linux-$(uname -r|cut -d- -f1)/drivers/hwmon
vim applesmc.c
I'd start by printing messages like this:
Code:
pr_warn("applesmc_whatever failed\n");
4. Compile the module:
Code:
make -C /lib/modules/$(uname -r)/build M=$(pwd) applesmc.ko
5. try the compiled module:
Code:
sudo insmod ./applesmc.ko
The messages you have inserted using pr_warn() will be printed in dmesg each time you insmod the module, start with the applesmc_init() function, it's like main() in a regular C program.
Good luck and let us know your progress! (I'm available via gtalk if you need any further help with this).
Bookmarks