Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
?emerging "old" sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Wed Mar 03, 2004 10:25 pm    Post subject: ?emerging "old" sources Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Wed Mar 03, 2004 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Wed Mar 03, 2004 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Wed Mar 03, 2004 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
dscha
n00b
n00b


Joined: 06 Dec 2003
Posts: 35
Location: Austria

PostPosted: Thu Mar 04, 2004 12:02 am    Post subject: Reply with quote

ok, many thanks again!!!

regards

dscha
Back to top
View user's profile Send private message
steel300
Veteran
Veteran


Joined: 10 Jul 2003
Posts: 1155

PostPosted: Thu Mar 04, 2004 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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