LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-16-2003, 07:05 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
kernel recompile


i just recompiled a new kernel (2.4.21) following DaOne's *superb!* instructions, and it all seemed to go pretty well. i was surprised at how fast it took, only about 4-5 minutes, whereas i was expecting something like 15-20 or more. (hope that doesn't mean i missed a step or anything...)

a few things did go wrong, though (e.g., forgot to use M for the modules, unselected some choices i probably should have left, etc.), and i'm wondering, what do i do now? can i just recompile it again from the same place (/usr/src/linux), this time using the correct options (hopefully )? if i use M will the new kernel automatically read the old modules (nvnet, audio, etc.) or do i have to reinstall the drivers or do a depmod -a or anything?

also, i thought make menuconfig scanned the current config and used that as the default to start from. however, i got the choice for pentium CPU whereas i have an Athlon, ext2 whereas i am using reiserfs, and some other differences. why is that? should i just ignore them and select the right choices?

i was only booted into the new kernel for a minute or two, but apparently it did not read my fstab or rc.local file, and i don't get that at all. what possibly happened there? a win partition i had set to automount didn't, and the commands in rc.local to turn on swap and to hdparm my hard drives didn't happen, either. since the first thing i would do to automount a drive would be to put it in fstab, wtf do i do?

finally, my old boot used the "vesa framebuffer" (i guess it's called) to produce the nice, smaller text while booting and using the terminal (and also had the kewl penguin at the top ). the new kernel uses the big, "DOS" text that is super ugly, and no penguin. where do i set that in the new kernel?

i know that's a lot of questions, but i'm a kernel virgin so i hope y'all can be patient as i go through this. i'm really encouraged that at least it boots, but i think there must be a few things i'm missing post-compile. appreciate!
 
Old 08-16-2003, 07:30 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Yes, just use make menuconfig and go back thru everything and add/subtract what you want and don't want.

first things first, get the kernel set up the way you want and we can deal with the fstab, rc.local next.
<edit/> there is an option in kernel config to turn on or off the support for hdparm, you could have turned it off without knowing.
just look for it and enable!!

Last edited by 320mb; 08-16-2003 at 07:32 PM.
 
Old 08-16-2003, 07:32 PM   #3
antken
Member
 
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368

Rep: Reputation: 30
Quote:
can i just recompile it again from the same place (/usr/src/linux), this time using the correct options (hopefully )? if i use M will the new kernel automatically read the old modules (nvnet, audio, etc.) or do i have to reinstall the drivers or do a depmod -a or anything?
Yes, i do this all the time. you mention you used menu config, may i suggest xconfig? you can use that to load and save configs from other locations too.
if you said n or y to options and not m then the module will not have existed in the first place. dont forget to do do make modules_install to install the modules



Quote:
a win partition i had set to automount didn't
make sure you have the support in the kernel for windows partitions, either as modules or compliled into it

Quote:
my old boot used the "vesa framebuffer" (i guess it's called) to produce the nice, smaller text while booting and using the terminal (and also had the kewl penguin at the top ). the new kernel uses the big, "DOS" text that is super ugly, and no penguin. where do i set that in the new kernel?
edit your lilo.conf and make note of the extra options values for your old kernel and new kernel
whats different?
 
Old 08-16-2003, 08:04 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 46
d@mn! now booting the new kernel in Lilo goes to a blank screen, and the slack.old choice boots the new messed up kernel! what happened??? i heard the sound card give the little noise it always makes during start up, so i guess something's booting -- no video, though. a lilo boot disk i had from before boots to the dreaded 99s. did i lose my old kernel???

Quote:
Originally posted by antken
Yes, i do this all the time. you mention you used menu config, may i suggest xconfig? you can use that to load and save configs from other locations too.
if you said n or y to options and not m then the module will not have existed in the first place. dont forget to do do make modules_install to install the modules
yep, i did that, thanks. i'll try xconfig, but i think i might still need the menu at this point. plus i lost the original config, and only have the modified one to work from. so i have to try to remember what i changed, and so on. d@mn!

Quote:
make sure you have the support in the kernel for windows partitions, either as modules or compliled into it
you mean MSDOS/FAT, etc. support in the filesystem section?

Quote:
edit your lilo.conf and make note of the extra options values for your old kernel and new kernel
whats different? [/B]
nothing. i think it was something in the video section of menuconfig, and i think that's why the video isn't working, either. but there are only two choices there, and no submenus. i remember both were selected, and i unselected one the first time. the second time i set it back, though, so w-t-h ? thx.
 
Old 08-16-2003, 09:01 PM   #5
antken
Member
 
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368

Rep: Reputation: 30
Quote:
you mean MSDOS/FAT, etc. support in the filesystem section?
yes, those are the ones, if you have any NTFS you can put NTFS in there too. NTFS does not automaticaly have write support, the kernel says it is dangerous, that can be added in or left out as config time.

i am sorry to hear your kernels have gotten mixed up, nice to hear you have a boot disk though !

keep at it, and you'll get there, make sure you read all the documentation ( kernel how-to etc ) and it will help you on your way

normally for the text size is an option on the boot loader either by typing or put into the lilo config file
when i compiled a 2.4 kernel last week and left something off the kernel gave me the option of wither pressing return for a list of modes, or either pressing space or waiting 30secs to proceed and use default
 
Old 08-16-2003, 09:35 PM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 46
i tried recompiling, and this time it bumped even the semi-working 2.4.21 from the "slack.old" position -- each new compile seems to bump the previous one to the .old position. now i can't boot to any screen to get to menuconfig, they're all blank. any suggestions? #1 preference would be to restore the original kernel, if possible.

i tried booting from the slack CD and got a kernel panic error -- it said something about not being able to read the reiserfs or something. and as i mentioned the lilo boot disk doesn't work. don't even tell me i'm going to have to reinstall slack!

i suppose i could boot the knoppix CD and then mount the slack partition. what would i do from there, however? run the slack /usr/src/linux make menuconfig from knoppix?
 
Old 08-17-2003, 09:09 AM   #7
antken
Member
 
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368

Rep: Reputation: 30
my thinking is that you have over written you normal working kernel, not to worry you could do as you have suggested by booting from knoppix and re-doing it.

however i have never installed lilo from another linux on the same system, my guess on that is you may need to chroot to your linux system on your harddrive, otherwise when you type lilo you will install the lilo and its configuration settings from the knoppix cd


when you come to re-doing you kernel, dont over write your existing kernel when you go to copy the bzImage over do something like below:
( presuming your in the /usr/src/linux directory )
cp ./arch/i386/boot/bzImage /boot/bzImage.antken

and make the oppropriate change in lilo, that way then you'll have an old working kernel there to use if your new one failed, that what i do
also if its a production server ( live, mission critical ) i would say the above is a must, then if your new kernel does not have a required feature or it just generaly messes up you can switch back to one you know works
 
Old 08-17-2003, 11:10 AM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 46
thanks for all the help. i finally was able to boot from the slack disk (the first time i forgot the partition number after hdb), so i am just going to copy the bare.i kernel to /boot and use that while i mess around with getting the new one configured properly.

i thought each new kernel compile would just overwrite the previous new one, but now that i understand the process better, i realize what was happening with the .old kernels getting overwritten (duh! ). so that was a dumb n00b mistake not to make a copy of the original vmlinuz, but at least i learned something. thanks!
 
  


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
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 01:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile kernel 2.6 heema Linux - General 3 05-26-2004 10:29 AM
9.2 kernel recompile dukeinlondon Mandriva 3 11-10-2003 06:34 AM
Recompile Kernel ? Amerist Linux - Newbie 5 04-16-2002 04:13 AM


All times are GMT -5. The time now is 08:51 AM.

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