[NTLUG:Discuss] More about kernel recompiling.
Scott Denlinger
sbd at dakotacom.net
Mon Aug 5 12:32:32 CDT 2002
Lance,
I followed your directions here precisely, and the result is still the same: a bootable kernel which includes the module for ftape, but not other modules. One thing I do notice, is that when I boot from my original kernel, I see all kinds of modules loaded when I do 'lsmod'. After I boot from the new kernel I've compiled, there are *no* modules loaded. I can load the zftape module using 'insmod', but nothing else is loaded.
>cd <kernel source directory>
> Be sure you have write permission in the directory and
> for all the files. One way would be:
> su
> cd ..
> chown -R <user>.<user> <source-directory>
> exit
>
> cp /boot/config-2.4.18-bf2.4 ./.config
>
> make oldconfig
> (answer the questions to the best of your ability)
>
> make menuconfig
> (look through the configuration to make changes, such
> as the module you want)
>
> fakeroot make-kpkg clean
>
> rm debian/official
> (in case you've got the official stamp)
> makeroot make-kpkg --append_to_version=-2002-07-26 kernel_image
>
> cd ..
>
> su
> (to install the package)
>
> dpkg -i kernel-image-2.4.18-2002-07-26_10.00.Custom_i386.deb
> (Answer the installation questions)
>
> exit
> (to become a normal user)
>
> ls -l /vmlinuz*
> (to see that the symbolic links point to the right images)
>
> Study /etc/lilo.conf to be sure /vmlinuz and /vmlinuz.old are entries
>
> lilo
> (just to be sure)
>
> reboot
>
Another thing I noticed is that when I did 'make oldconfig', I saw that there were a lot of things installed as modules which I actually want built directly into the kernel, which is what I'm changing when I do 'make xconfig' to get a new kernel. I have pasted in some lines from my kernel log, in the hopes that they may give you some specific information which might help you understand what is going wrong.
Here is what I see when I boot from my "good" kernel:
Jul 24 10:32:29 Alfie kernel: klogd 1.4.1#10, log source = /proc/kmsg started.
Jul 24 10:32:30 Alfie kernel: Symbols match kernel version 2.4.18.
Jul 24 10:32:30 Alfie kernel: Loaded 412 symbols from 20 modules.
Jul 24 10:32:30 Alfie kernel: Linux version 2.4.18-bf2.4 (root at zombie) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Son Apr 14 09:53:28 CEST 2002 [. . .]
^^^^^^^^^^^^
Notice the default version from my initial Woody install.
Now here is the kernel log after I recompile:
Jul 24 10:51:51 Alfie kernel: klogd 1.4.1#10, log source = /proc/kmsg started.
Jul 24 10:51:51 Alfie kernel: Inspecting /boot/System.map-2.4.18
Jul 24 10:51:52 Alfie kernel: Loaded 16424 symbols from /boot/System.map-2.4.18.
Jul 24 10:51:52 Alfie kernel: Symbols match kernel version 2.4.18.
Jul 24 10:51:52 Alfie kernel: No module symbols loaded.
Jul 24 10:51:52 Alfie kernel: Linux version 2.4.18 (root at Alfie) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Wed Jul 24 09:55:36 MST 2002 [. . .]
^^^^^^
Now it has picked up the new kernel version, but the same modules which are loaded when my "good" kernel boots are not loaded in this new kernel, and 'lsmod' shows *no* modules loaded.
As always, any insights gratefully appreciated.
Scott Denlinger
More information about the Discuss
mailing list