Re: lm_sensors and alsa for _not_ custom built kernel?
Thanks for your input, the lm-sensors package now builds and installs OK.
I found that the following steps were necessary for a successful build
and to get the correct module dependencies:
(Are there more simple solutions available?)
Install and unpack kernel-source-2.4.18
Install and unpack lm-sensors-source
cp /boot/config-2.4.18-686 ./.config
# Do not make config/menuconfig/xconfig
fakeroot ./debian/rules KSRC=/usr/src/kernel-headers-2.4.18-686 KVERS=2.4.18-686 KDREV=2.4.18-4 kdist_image
With this setup also alsa-modules builds OK.
I also second that kernel-package should support building the
additional kernel modules. Another alternative would be that the
package maintainer builds these packages in addition to the kernels
themself, but this would maybe add a lot to the number of packages to
build and distribute.
Arne Nordmark writes:
> I just successfully built lm-sensors from the kernel-headers package on
> a woody system. From /usr/src/modules/lm-sensors I used
> fakeroot ./debian/rules KSRC=/usr/src/kernel-headers-2.4.18-686
> KVERS=2.4.18-686 KDREV=2.4.18-4 kdist_image
> I think it would be a good idea if kernel-package could do this
> automatically, or at least that it would be documented how to build
> modules form debian kernels. On the other hand, for example the sparc
> architecture does not even provide separate kernel-headers for the
> different kernel-images found in the debian archive.
> > Hello,
> > Building a custom kernel and after that building and installing the
> > lm-sensors and alsa-driver module packages works very well, using for
> > example make-kpkg. I've done so on an SMP box several times running
> > unstable.
> > However, on another box I'm running testing with precompiled kernels
> > installed. One kernel installed is 2.4.18-686, version 2.4.18-4. How
> > are you supposed to proceed if you want to build the modules packages
> > for that kernel? Using make-kpkg seems to always require 'make
> > menuconfig', make-kpkg kernel_image, etc before you can build the
> > modules_image. Also, the modules built are for the custom kernel _not_
> > the already installed prebuilt one!
> > Trying to build the modules from the kernel-source directory using
> > make-kpkg fails, and also directly from the installed modules
> > directory, eg from /usr/src/modules/lm-sensors/ with 'debian/rules
> > binary-modules KVERS=2.4.18-686 KSRC=/usr/src/kernel-source-2.4.18'
> > Installing the kernel-headers for 2.4.18-686 does not help at all. I
> > just would like to add the modules to the already installed kernel,
> > preferably by installing a .deb package. Pointers or input are greatly
> > appreciated.
> > Thanks,
> > Svante Signell
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org