View previous topic :: View next topic |
Author |
Message |
sohal n00b
Joined: 03 Feb 2004 Posts: 15
|
Posted: Sun Jan 23, 2005 8:52 pm Post subject: Question about Kernel Compiling |
|
|
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 |
|
|
kmare l33t
Joined: 20 Nov 2004 Posts: 619 Location: Thessaloniki, Greece
|
Posted: Sun Jan 23, 2005 8:55 pm Post subject: |
|
|
don't you have another kernel already working to boot? otherwise I don't think so... |
|
Back to top |
|
|
sohal n00b
Joined: 03 Feb 2004 Posts: 15
|
Posted: Sun Jan 23, 2005 9:04 pm Post subject: |
|
|
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 |
|
|
Frodg l33t
Joined: 11 Feb 2004 Posts: 761
|
Posted: Sun Jan 23, 2005 9:09 pm Post subject: |
|
|
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 |
|
|
dacha_san Tux's lil' helper
Joined: 26 Dec 2004 Posts: 82
|
Posted: Mon Jan 24, 2005 2:40 pm Post subject: Re: Question about Kernel Compiling |
|
|
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 |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Mon Jan 24, 2005 3:12 pm Post subject: |
|
|
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 |
|
|
Praxxus Apprentice
Joined: 26 Nov 2002 Posts: 193 Location: Indiana, US
|
Posted: Mon Jan 24, 2005 3:35 pm Post subject: Another thing |
|
|
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 |
|
|
|