View previous topic :: View next topic |
Author |
Message |
Jonboy n00b
Joined: 03 Jan 2004 Posts: 20
|
Posted: Wed Jun 16, 2004 7:19 pm Post subject: changing kernels |
|
|
ok bit of a newb question - sorry if this is the wrong forum and all
anyway - i'm wanting to change the current kernel i'm using (linux-2.4.22-gentoo-r2) to something more upto date, like 2.6 or something
i think i have the general idea on how to do this
1) emerge the desired kernel
2) run genkernel
hey presto - new kernel
is that about right?
also what flags/options should a newb such as myself run genkernel with?
if i do switch from 2.4 to 2.6 is there anything else i will need to do to my system? as i understand they are quite different.
will i have to re-emerge and re-configure all the modules i have loaded - such as network, graphics, sound etc?
thanks _________________ there are mad people everywhere |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Wed Jun 16, 2004 7:33 pm Post subject: |
|
|
Jonboy,
Its a big change from 2.4 to 2.6. You want to run them both side by side for a while until you get everything the way you like it on 2.6.
See this thread for maintaining multiple kerenls https://forums.gentoo.org/viewtopic.php?t=185009&highlight=
Ween yourself off genkernel. You will need to roll your own one day. Sit down with a lot of coffee (not beer [1]) for a few hours and use make xconfig to configure your next kernel. It will be a few hours the first time because you will need to read all the help text. With practice and help from make oldconfig you can get configure time down to a few minutes.
Here is a few rules of thumb to getting it right:-
1. Say 'Y' to everything you need to boot. Thats hardware drivers and filesystem drivers for the root filesystem.
2. Say 'N' to everything you know you don't need.
3. Say 'M' to other drivers you need (or have ambitions to need)
4. If you really don't understand it, leave the default alone, its probably sensible.
[1] if you use beer as a refresment, you will lose you concentration before you get to the end. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jonboy n00b
Joined: 03 Jan 2004 Posts: 20
|
Posted: Wed Jun 16, 2004 7:52 pm Post subject: |
|
|
thanks - will look into it
running 2 kernels - heh didn't know you could do that - cool
will i need to emerge all the modules into the new kernel or can i use what i have lying around for the old one? and how would i do it in either case?
thanks _________________ there are mad people everywhere |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Wed Jun 16, 2004 8:17 pm Post subject: |
|
|
Jonboy,
Get the new 2.6 kernel of your choice. (2.6.7 is just out buut not yet in portage)
Configure it.
do
Code: | make
make modules_install | thats all you do to build a 2.6 kernel.
It will make a whole new module tree.
Install it in the usual way then try to reboot. When it won't boot (it happens to everyone) boot your old kernel and fix it.
There is no hard limit to the number of kernels you may install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|