Danilo Raineri <[EMAIL PROTECTED]> writes: > I am trying to get to work i2c and lm-sensors on my Debian testing/unstable. > > I downloaded and installed i2c-source and lm-sensors-source; then extracted > them, and proceeded to build the modules like I did with ALSA and nvidia, > with a line like this: > > sudo make-kpkg --append-to-version=-k7-fb --added-modules=i2c,lm-sensors > modules_image --config=menuconfig
...yup, cool. (This should also work with 'fakeroot' instead of 'sudo', or even with '--root_cmd=fakeroot'.) > In the config, I chose to compile i2c as a module. I later found that the > kernel has built-in support for i2c, but I remember to have read in i2c > docs that, as long as everything is built as a module, this shouldn't be a > problem. Hmm. I think lm-sensors 2.7.x requires i2c 2.7.0 or newer, but kernel 2.4.21 only has i2c 2.6.1. You might run into problems when things actually start working because of the version mismatch, if modprobe finds the kernel modules before the i2c-source modules; see, for example, http://bugs.debian.org/179236. > The compilation succeeds, and I find the two packages correctly built in > /usr/src. > > I then install the packages, and run sensors-detect which should configure > everything for me; however, this fails because > > modprobe: Can't locate module i2c-viapro > modprobe: Can't locate module i2c-riva > modprobe: Can't locate module i2c-dev > > The modules are installed by the packages in > > /lib/modules/2.4.20-k7-fb/lm-sensors > > and in > > /lib/modules/2.4.20-k7-fb/misc Have you at this point rebooted to run the 2.4.20-k7-fb kernel? Otherwise sensors-detect isn't going to be able to load modules for the old kernel, and you'll lose in pretty much this way. -- David Maze [EMAIL PROTECTED] http://people.debian.org/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]