Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about Kernel Compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sohal
n00b
n00b


Joined: 03 Feb 2004
Posts: 15

PostPosted: Sun Jan 23, 2005 8:52 pm    Post subject: Question about Kernel Compiling Reply with quote

Whenever I forget to add support for something in my kernel, I always do this:

Boot the livecd, mount the partitions, chroot, cd /usr/src/linux && make menuconfig... blah blah

Is there a better way to make changes to the kernel without having to use the livecd? I must have recompiled like 10x today.
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Sun Jan 23, 2005 8:55 pm    Post subject: Reply with quote

don't you have another kernel already working to boot? otherwise I don't think so...
Back to top
View user's profile Send private message
sohal
n00b
n00b


Joined: 03 Feb 2004
Posts: 15

PostPosted: Sun Jan 23, 2005 9:04 pm    Post subject: Reply with quote

I only have 1 kernel configured on my system.

Let me get this straight: If I have only 1 kernel, I must use the LiveCD and mount the partitions, chroot, etc etc.

I was afraid someone would say that. I've been installing Gentoo on my notebook and everything works great, it's just that for some of the software I have been installing (ipw2100 for example), I've had to go back and enable some options in the kernel. Having to reboot and use the LiveCD is getting old...

Thanks for the fast reply.
Back to top
View user's profile Send private message
Frodg
l33t
l33t


Joined: 11 Feb 2004
Posts: 761

PostPosted: Sun Jan 23, 2005 9:09 pm    Post subject: Reply with quote

Does your PC boot normally but just not have a particular device enabled?
If you can boot to a prompt then you can just change to the /usr/src/linux dirtectory and run menuconfig from there....
_________________
Aerosolo ergo sum - I spray therefore I am

Gentoo - Registered Linux User # 361400
Back to top
View user's profile Send private message
dacha_san
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2004
Posts: 82

PostPosted: Mon Jan 24, 2005 2:40 pm    Post subject: Re: Question about Kernel Compiling Reply with quote

sohal wrote:
Whenever I forget to add support for something in my kernel, I always do this:

Boot the livecd, mount the partitions, chroot, cd /usr/src/linux && make menuconfig... blah blah

Is there a better way to make changes to the kernel without having to use the livecd? I must have recompiled like 10x today.


You can have a numbers of kernels compiled for your system. Which one will be used to fire up the system depends on what you put in grub or lilo loader.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Jan 24, 2005 3:12 pm    Post subject: Reply with quote

Keep two lilo/grub entries, one with a backup (working and stable) kernel, the other one for experimenting. At least, that's what I do...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Praxxus
Apprentice
Apprentice


Joined: 26 Nov 2002
Posts: 193
Location: Indiana, US

PostPosted: Mon Jan 24, 2005 3:35 pm    Post subject: Another thing Reply with quote

Also, if all you're adding in are modules, you don't have to reboot at all. Just configure it, then do a
Code:
make && make modules_install
Then insert the new modules, and you're good to go!

But if you change anything that's compiled into the kernel, yes you'll have to reboot (and add a "make install," of course).
_________________
My glaucoma just got worse!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum