Problems Building Kernel 2.4.9

Donovan J. Edye d.edye at bigfoot.com
Wed Oct 3 22:11:14 EST 2001


G'Day All,

Thanks for all the pointers. Just for the record net-pf-1 is related to the
Packet Socket option in the networking section of the kernel. If you read
the help therein you see the problems that net-pf-1 causes. I am now doing
make menuconfig dep bzImage modules modules_install install as suggested by
Simon. (I also have make-kpkg installed and will give that a go. However I
tried that first before doing things by hand it gave the same errors I was
seeing as when I did things manually)
I am sorry to say that I still have some issues. I have now set the above
option to not be a module and be compiled directly into the kernel. However
upon rebooting I still got the same error, which got me thinking that the
newly built kernel was not the one being booted. This is how the relevant
bits and pieces look on the box:
I have the kernel source directly in /usr/src/linux (No symbolic link I
know, but seeing as though there was no other source on the disk I figured
this was OK)
drwxrwsr-x    3 root     src          4096 Oct  3 07:25 .
drwxr-xr-x   14 root     root         4096 Oct  3 05:13 ..
drwxr-xr-x   15 root     src          4096 Oct  4 08:12 linux
* rw-r-r--    1 root     src      27474071 Oct  3 06:27 linux-2.4.9.tar.gz

When building a kernel it appears that it ends up in
lrwxrwxrwx    1 root     root           16 Oct  4 05:15 System.map ->
System.map
* 2.4.9
* rw-r-r--    1 root     root       269967 Oct  3 04:41
System.map-2.2.18pre21
* rw-r-r--    1 root     root       396564 Oct  4 05:15 System.map-2.4.9
* rw-r-r--    1 root     root       396564 Oct  4 03:35 System.map-2.4.9.old
lrwxrwxrwx    1 root     root           20 Oct  4 05:15 System.map.old ->
System .map-2.4.9.old
* rw-r-r--    1 root     root          512 Oct  3 04:56 boot.0300
* rw-r-r--    1 root     root         4568 Oct  3 04:53 boot.b
* rw-r-r--    1 root     root          612 Oct  3 04:53 chain.b
* rw-r-r--    1 root     root        14155 Oct  3 04:41 config-2.2.18pre21
* rw-r-r--    1 root     root        13685 Oct  3 07:10 config-2.4.9
* rw-------    1 root     root        18944 Oct  4 05:17 map
* rw-r-r--    1 root     root          512 Oct  3 04:53 mbr.b
* rw-r-r--    1 root     root          640 Oct  3 04:53 os2_d.b lrwxrwxrwx
1 root     root           13 Oct  4 05:15 vmlinuz -> vmlinuz-2.4.9
* rwxr-xr-x    1 root     root       985303 Oct  3 04:41 vmlinuz-2.2.18pre21
* rw-r-r--    1 root     root       700723 Oct  4 05:15 vmlinuz-2.4.9
* rw-r-r--    1 root     root       700723 Oct  4 03:35 vmlinuz-2.4.9.old
lrwxrwxrwx    1 root     root           17 Oct  4 05:15 vmlinuz.old ->
vmlinuz-2 .4.9.old

However if I look at lilo.conf I see:
image=/vmlinuz
label=Linux
read-only
#       restricted
#       alias=1

Looking in / I see
* rw-r-r--    1 root     root       700723 Oct  4 05:16 vmlinuz

However the above vmlinuz was not getting updated when I build the new
kernel. So I copied vmlinuz-2.4.9 to /vmlinuz (as you see above). I then
re-ran lilo. A reboot now does not crash the machine with the error seen,
but it appears that the kernel that has booted is 2.2.18pre21 which is what
was installed originally. Can someone please point me in the right direction
on how to get this all working. Am I missing some symbolic links or should I
be doing things another way?
* Donovan


-----Original Message-----
From:	linux-admin at lists.samba.org [mailto:linux-admin at lists.samba.org]  On
	Behalf Of Donovan J. Edye
Sent:	Tuesday, 2 October 2001 23:14
To:	Linux List
Subject:	Problems Building Kernel 2.4.9

G'Day All,

I have decided to take the plunge and build my very first kernel. I
downloaded the source to 2.4.9 and then used make menuconfig to set what I
wanted. Followed this with:
make dep
make clean
make modules
make bzImage
make bzlilo

However when when my Debian system comes up (well it doesn't) I get the
error modprobe: modprobe: Can't locate module net-pf-1. I have physically
searhed the disk and cannot find a module by that name. It appears that it
may be related to "Packet Filtering" on the network page as used by tcpdump
when it (Packet Filtering) is installed as a module. Well it is not
installed as a module, so I am now rather lost. Can anyone point me in the
right direction please?
TIA
--Donovan







More information about the linux mailing list