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

Re: lm-sensors

David Z Maze <dmaze@debian.org> writes:

> I believe unstable's make-kpkg has
> some support for building kernel modules given

I use stable, and there is some kind of support in it. According to the docs in /usr/share/doc/kernel-package/README.modules is should do something like this:

make-kpkg --revision number kernel_image
make-kpkg modules_image

But it keeps complaining about version numbers and dependencies not being correct when I try to install the .deb file make-kpkg is producing (only installing the lm-sensors-..-.deb).

I suspect that I have to chage something in the Makefile of the kernel-source to get this right. Should line 4 look like EXTRAVERSION = -1-686 ???

> bug 189513 points at http://lists.debian.org/debian-devel/2002/debian-devel-200203/msg01794.html,
> suggests doing this:

Yes, that helped me. In the end I did this, and I was able to installa the .deb file:

  cd /tmp
  dpkg -i kernel-image-2.4.18-1-686_2.4.18-11_i386.deb
  dpkg -i kernel-source-2.4.18_2.4.18-13_all.deb
  dpkg -i kernel-headers-2.4.18-1-686_2.4.18-11.deb
  dpkg -i lm-sensors-source-2.6.3-5.deb

  cd /usr/src
  tar xjf kernel-source-2.4.18.tar.bz2
  tar xzf lm-sensors.tar.gz

  ln -s kernel-source-2.4.18 linux
  cd /usr/src/linux
  cp /boot/config-2.4.18-1-686 ./.config

  fakeroot debian/rules kdist_image \
     KSRC=/usr/src/kernel-headers-2.4.18-1-686 \
     KVERS=2.4.18-1-686 KDREV=2.4.18-11

  cd /usr/src;ls -l

-rw-r--r-- 116612 Sep 3 21:10 lm-sensors-2.4.18-1-686_2.6.3-5+2.4.18-11_i386.deb

  dpkg -i lm-sensors-2.4.18-1-686_2.6.3-5+2.4.18-11_i386.deb

Is this "standard procedure"? Do it again when kernel 2.4.18-14 is released?
Or, will this be easier in the next release of Debian (as in unstable?).


Reply to: