View previous topic :: View next topic |
Author |
Message |
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Wed Mar 03, 2004 10:25 pm Post subject: ?emerging "old" sources |
|
|
hello all!
a beginner question: have the gentoo-dev sources installed and the kernel ist running. for experimental reasons i would like to use the gentoo-sources based on 2.4 again.
my question: can i just emerge the sources, biuld the kernel and run in on the machine (so replacing a new kernel with an old one).
are there any files overwritten which might be 2.6 specific?
many regards for your help
dscha |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Wed Mar 03, 2004 10:55 pm Post subject: |
|
|
dscha,
You can have both kernels and choose one at boot time.
When you copy your new bzImage file to /boot, rename it on the way.
In /boot/grub/grub.conf, create a new block beginning with the title line.
Use a title that means something to you and use the name if the new kernel in the boot line.
The only problem is with the /etc/modules/autoload file, which needs to be different between 2.4 and 2.6 kernels. You can put up with some error messages or do some manual module loading with modprobe.
The make modules_install will keep the modules for your kernels seperate in /lib/modules/<kernel_ver> _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Wed Mar 03, 2004 11:09 pm Post subject: |
|
|
many thanks for the info.
so can i also use the genkernel when i use the gentoo-sources? are the modules then still separated?
regarging autoload: so a backup would be possible and manual change when i change the kernel, is this right?
regards
dscha |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Wed Mar 03, 2004 11:26 pm Post subject: |
|
|
dscha,
I'm not sure how genkernel names the kernel image files. As long as the old an new image are under different names there is no problem.
Your modules will still be kept seperate.
/etc/modules.autoload is a symbolic link to a file within /etc/modules.autoload.d, its not a file itself so you already have seperate autoload files for major kernel versions. You will forget (or not know) to change this link. Leave it set for the kernel you use most and put up with the error messages you get with the other kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dscha n00b
Joined: 06 Dec 2003 Posts: 35 Location: Austria
|
Posted: Thu Mar 04, 2004 12:02 am Post subject: |
|
|
ok, many thanks again!!!
regards
dscha |
|
Back to top |
|
|
steel300 Veteran
Joined: 10 Jul 2003 Posts: 1155
|
Posted: Thu Mar 04, 2004 6:18 am Post subject: |
|
|
The only problem you might have is if you're using nptl with the 2.6 kernel. The 2.4 series doesn't support nptl, so it won't boot. _________________ Rationality is the recognition of the fact that nothing can alter the truth and nothing can take precedence over that act of perceiving it. |
|
Back to top |
|
|
|