Re: [ILUG] Please help "make"ing PCTel modules

From: Ronan Waide (waider at domain waider.ie)
Date: Wed 04 Sep 2002 - 08:51:43 IST


On September 4, michael.conry at domain ucd.ie said:
> To create the modversions.h file, we had to take the following steps...
> unpack the source
> tar -xjvf linux-2.4.18.tar.bz2
> cd into the source directory, then configure the kernel
> make menuconfig

Woah.

If you do this, you'll end up with a kernel directory that doesn't
quite match the kernel you're running, or you'll have to go through
the 'fun' of a kernel install. You can get a working modversions.h on
a RedHat system like so:
* install kernel-source package
* cd /usr/src/linux-2.4
* cp configs/kernel-2.4.*-i686.config .config
(obviously you need to make sure the config file matches your setup,
 so check if you need an smp version or a different x86; in this case
 from information available I think i686 is the correct version)
* make oldconfig
* make dep

You should now have enough stuff in /usr/src/linux-2.4 to build add-on
modules. There will be a slight kernel-version difference: your header
files, above, will be tagged as version "2.4.18-10custom" rather than
"2.4.18-10". However, you will at least be assured that everything
else - i.e. modules, build settings, etc. - are identical to your
running kernel without having to go to the trouble of doing a full
kernel build & install.

While I'm all in favour of people learning about kernel compiles and
installing their own kernels, it's also a good way to mess up your
system. As it says somewhere in the random assortment of quotes that
gets appended to my .sig,

"Installing a new kernel is not rocket-science, but it's not Jerry Springer
 either." - Nick Vargish

:)

Cheers,
Waider.

-- 
waider at domain waider.ie / Yes, it /is/ very personal of me.
"even when american adverts try for the oblique and wordless, they're so
 obvious they may as well put the logo on a fish and slap you with it." - AjD


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:37 GMT