I'm trying to compile a kernel for firewall support and when I try to boot the new kernel the box reboots, and I have to boot the old kernel. Here's what I'm doing:
(pent 166, 64m, ide everything, Debian 3.0 stable, going from 2.2.20 to 2.4.19)
-Do a very lean 3.0 install, no options
-Apt-get libc6-dev, libncurses5-dev, make, gcc, lynx, sudo, less. NOTE-when I install binutils, it gives a big error which I enclosed below.
-unpack source in ~/
-cd linux*
-make mrproper
-make menuconfig. I get rid of scsi, agp, usb and other abrieviations i don't need, but leave the ide stuff alone
-make dep; make bzImage; make modules
-sudo make install (it runs lilo for me, and looks ok)
-sudo make modules_install
-reboot
I think it says Uncompressing Linux, but it blinks by and reboots so fast it's hard to tell. This is a needle in a haystack I know, but if anyone can help that'd be great. Also the problem happens on other machines as well. I've done kernels before I just don't know what I'm missing here.
Here is the binutils error, I did try the workaround but it didn't help:
Kernel link failure info
you may experience problems linking older (and some newer) kernels with this version of binutils. This is not becasue of a bug in the linker, but reather a bug in the kernel source. This is being worked out and fixed by the upstream kernel group in newer kernels, but not all of the problems may have been fixed at this time. Older kernel versions will almost always exhibit the problem, however, and no attempts are being made to fix those that we know of.
There are a few work-arounds, but the most reliable is to edit the linker script for your architecture (e.g. arch/i386/vmlinux.lds) and remove the '*(.text.exit)' entry from the 'DISCARD' line. It will bloat the kernel somewhat, but it should link properly.
Thanks again all
(pent 166, 64m, ide everything, Debian 3.0 stable, going from 2.2.20 to 2.4.19)
-Do a very lean 3.0 install, no options
-Apt-get libc6-dev, libncurses5-dev, make, gcc, lynx, sudo, less. NOTE-when I install binutils, it gives a big error which I enclosed below.
-unpack source in ~/
-cd linux*
-make mrproper
-make menuconfig. I get rid of scsi, agp, usb and other abrieviations i don't need, but leave the ide stuff alone
-make dep; make bzImage; make modules
-sudo make install (it runs lilo for me, and looks ok)
-sudo make modules_install
-reboot
I think it says Uncompressing Linux, but it blinks by and reboots so fast it's hard to tell. This is a needle in a haystack I know, but if anyone can help that'd be great. Also the problem happens on other machines as well. I've done kernels before I just don't know what I'm missing here.
Here is the binutils error, I did try the workaround but it didn't help:
Kernel link failure info
you may experience problems linking older (and some newer) kernels with this version of binutils. This is not becasue of a bug in the linker, but reather a bug in the kernel source. This is being worked out and fixed by the upstream kernel group in newer kernels, but not all of the problems may have been fixed at this time. Older kernel versions will almost always exhibit the problem, however, and no attempts are being made to fix those that we know of.
There are a few work-arounds, but the most reliable is to edit the linker script for your architecture (e.g. arch/i386/vmlinux.lds) and remove the '*(.text.exit)' entry from the 'DISCARD' line. It will bloat the kernel somewhat, but it should link properly.
Thanks again all