LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-28-2003, 07:42 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
compiling kernel/first time...issue


I am compiling the 2.4.20 kernel and following this page http://p-two.net/modules.php?op=modl...=article&sid=5
i am on the make install part and getting this (went up a few lines to show a better picture....

+ mv /boot/System.map /boot/System.old
+ cat bzImage
+ cp /usr/src/linux-2.4.20/System.map /boot/System.map
+ '[' -x /sbin/lilo ']'
+ /sbin/lilo
Warning: LBA32 addressing assumed
Added DOS *
Fatal: open /vmlinuz: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/i386/boot'
make: *** [install] Error 2
root@nixbox:/usr/src/linux-2.4.20#

I have followed that guide step by step....lilo, edit makefile, etc, etc.. -thnaks for any help


EDIT: nevermind....fixed for now

Last edited by wr3ck3d; 02-28-2003 at 07:47 PM.
 
Old 02-28-2003, 08:13 PM   #2
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
ok, finished compiling and rebooted and lilo had a checksum error...used boot disk to boot and ran liloconfig, it booted up into the new kernel and everything seems fine.....but why did it have the lilo checksum error?? was i supposed to have ran liloconfig after compiling?? also, what can/should i delete from the last kernel?? And lastly i used the old kernel config as kinda a guide to what i should choose...but was wondering since it was a fresh install and that kernel was really never compiled was the options checked in the 2.4.18 kernel source the ones being used in the actual kernel?? -thanks

Last edited by wr3ck3d; 02-28-2003 at 08:39 PM.
 
Old 02-28-2003, 08:46 PM   #3
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
Wr3ck3d

Good thinking with that boot disk! Yes, you did need to run liloconfig after installing the new kernel. I actually run /sbin/lilo, but I think they do the same thing - that being making a map of the new kernel image (in your case, vmlinuz). Users of grub need run no such command after installing their new kernels.

If your new kernel is working flawlessly, it is probably safe to delete the old kernel's source. Kernel source takes up a lot of space, so it isn't always a good idea to have a lot of it sitting around. You may want to get a second opinion, though.

Even if you delete the old kernel's source, it is still a good idea to hang on to the old kernel itself (probably renamed to /boot/vmlinuz.old). Also, bear in mind that vmlinuz and vmlinuz.old are usually dynamic links - that is, the actually kernel image is someplace else. Make sure you know where the real kernel image resides before you go around deleting stuff!

And if you do keep the old kernel, be sure it is in lilo.conf (be sure it appears in your boot-up menu) or it isn't of much use to you. And, once again, if you modify lilo.conf follow up by running /sbin/lilo (or, in your case, liloconfig)!

Are the options specified in the old kernel's config the same as those in the old kernel? Since you've never compiled the old kernel, the answer is: probably not. I know this is the case for RedHat 8 and Mandrake 9. Regardless, you now have the current options situated in the current kernel's config, so I don't see how the old config would be of any use to you.

-kc8tbe

Last edited by kc8tbe; 02-28-2003 at 08:50 PM.
 
Old 02-28-2003, 09:27 PM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Ok, yea, i guess i did have to run just lilo, not liloconfig because i noticed that everything in lilo was reset, so just edited it and ran lilo....about the kernel options what i meant was i used the 2.4.18 menuconfig as sorta a guideline of what to fill in with the 2.4.20 kernel. So what I was asking was if the items/modules that were checked in the 2.4.18 menuconfig the actual options that were used on the system...i suppose since that actual source was not used to install slackware i would doubt if the items checked were actually the items made...but then again it could be, thats why asking. But i think sometime this weekend i am going to go thru the kernel config again slowly and learn what each item does, was kinda rushing thru it jsut to see if it was going to work. -thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a Kernel for the first time? RodWC Debian 12 10-31-2005 06:55 AM
Cannot cp the bzImage. Help plz first time compiling kernel sendas4 Linux - Newbie 6 07-20-2004 12:48 AM
Compiling kernel for first time, unsure about 1 thing Nigh Unstoppabl Slackware 1 07-15-2004 04:23 AM
Kernel Compiling time Contest! lokee General 15 05-16-2003 04:04 PM
Kernel Compiling Issue -> USB Mouse Annex Linux - Software 2 03-14-2002 06:09 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration