LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   kernel, yet again (https://www.linuxquestions.org/questions/slackware-14/kernel-yet-again-48410/)

SLaCk_KiD 03-05-2003 10:19 AM

kernel, yet again
 
i am sory everyone, i knwo that i keep posting the same thing, but i still am having trouble getting my new kernel to boot. I boot to lilo and then is automatically selects the kernel, and i get a black screen, it just stays blank... so i booted from the CD that i have, and checked the lilo configurator in KDE, and when i let it check the configurations this is what i get.....

Configuration NOT ok. LILO said:
LILO version 22.2 (test mode), Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 00:41:25 on Mar 9 2002.
MAX_IMAGES = 27
Warning: LBA32 addressing assumed
Reading boot sector from /dev/hda
Merging with /boot/boot.b
Mapping message file /boot/message
Boot image: /boot/vmlinuz.old
Added 2.4.18 *
Boot image: /usr/src/linux/vmlinux
Fatal: Kernel /usr/src/linux/vmlinux is too big

how do i make the kernel smaller? how is it too big?? i dont get it. is the kernel not vmlinux?? is the kernel not added correctly?? i keep reading different how-to's and i dont see that wnyone is having as much trouble as me, I am really geting fustrated with this, but it cant be that hard, no on else has these problems, i dont know what to do...any help is appreciated.

DaOne 03-05-2003 10:23 AM

http://www.p-two.net/modules.php?op=...=article&sid=5

Works every single time...IF YOU FOLLOW THE INSTRUCTIONS...EXACTLY.

DaOne 03-05-2003 02:53 PM

It's obvious that one of two things didn't happen...

1...Lilo.conf was not correctly edited to prepare for the newly compiled kernel...
or...
2...Makefile was not properly edited to have the newly compiled kernel copied to /boot/vmlinuz...

If these things are done, make install copies the correct files to the correct locations, AND properly updates lilo. So....FIRST EDIT THE FILES PROPERLY ACCORDING TO THE LINK I GAVE YOU EARLIER...then...

cd /usr/src/linux-2.4.20
make mrproper
make menuconfig (configure your kernel, then save)
make dep
make clean
make bzImage
make
make install
make modules
make modules_install
reboot

Works every single time. Give us an update...

kater 03-05-2003 03:34 PM

/usr/src/linux/vmlinuz is not the compressed kernel.

R0N1N 03-05-2003 03:38 PM

You need to find "bzImage" that was created while compiling the kernel and copy it to your kernel location. Don't forget to rerun lilo.

It usually something like : /usr/src/linux/arch/i386/boot/bzImage

DaOne 03-05-2003 09:46 PM

SLaCk_KiD

How about an update...smooth flight? Crash and burn? :)

SLaCk_KiD 03-06-2003 12:14 PM

so far, no good, i did everything by the way that you told me, i must be a complete idiot...i will keep you updated, as i will try again today to get it to work...thanks for all your help though

SLaCk_KiD 03-06-2003 12:54 PM

alright i got it to work correctly, i think i will remember how to do this from now on, i have certainly tried so many time, i dont see how i could fforget it, thanks to everyone who helped me out, especially DaOne, i think that the thing i was missing was in the editing lilo.conf. its not very explanitory. i was just adding a .old onto the end the existing boot image, no this time i copied the same thing, and added the .old to one of them, and it seemed to work. did i do that correctly or not?? but thanks again!!

DaOne 03-06-2003 03:24 PM

Glad you got it to work.
Quote:

no this time i copied the same thing, and added the .old to one of them
Correct.


All times are GMT -5. The time now is 05:56 PM.