[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help with the proper way to build i2c and lm-sensors modules

"Moore, Louis" <moore.louis@tchden.org> writes:
> I have what I hope is a brain dead user issue trying to build the i2c and
> lm-sensor modules on a 2.4.18 debian install.
> I installed the 2.4.18-5 kernel source package and soft linked
> /usr/src/linux to the top level directory.

(shouldn't be necessary)

> Next, I unpacked the i2c and lm-sensors tarballs into the
> /usr/src/modules
> Then I cd into /usr/src/linux and cp /boot/config-2.4.18-686 to .config
> and ran the make-kpkg modules-image which built a couple of .debs for me:
> i2c-2.4.18_2.6.3-5+10.00.Custom_i386.deb
> lm-sensors-2.4.18_2.6.3-5+10.00.Custom_i386.deb

...where'd that "+10.00.Custom" come from?  How exactly did you invoke

> A dpkg --contents suggests that the custom .debs are going to install into
> /lib/modules/2.4.18/misc/ but the kernel-image package installs into
> /lib/modules/2.4.18-686/kernel/drivers/i2c

Right; otherwise the standalone i2c modules would need to conflict
with the kernel, which would be poor.  :-)  The discrepancy between
"2.4.18" and "2.4.18-686" does appear problematic; did you correctly
specify "--append-to-version 686" to make-kpkg?

It'd also be useful to know what version of i2c-source and
lm-sensors-source you have.  I'm pretty sure unstable and testing have
the same version which should work to build modules against the
official kernel source, though.

> This doesn't seem right and they don't seem to install.

Why do you think this?

> Is there a good guide that gives a newbie a walk through of this process
> or did I simply miss something important?

Perhaps /usr/share/doc/lm-sensors-source/README.Debian?

David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell

To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: