Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How 2 manage # kernel configs with low disk usage?[SOLVED]
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
CaptainBlood
Guru
Guru


Joined: 24 Jan 2010
Posts: 511

PostPosted: Mon Jan 03, 2011 10:15 am    Post subject: How 2 manage # kernel configs with low disk usage?[SOLVED] Reply with quote

Because Ati proprietary driver don't support KMS, I wish to be able to switch from a KMS to a non KMS kernel and vice-versa.

The only solution I see would be to duplicate the concerned gentoo-sources in /usr/src; each instance containing its own config file.
Although KMS configuration options should be the only one to differ between the two, the main constraint I see is that whatever kernel/module configuration is active, a
Code:
make modules_install
from the alternate kernel should be required before reboot.

I'm wondering if there is any space saving but also convenient (integrated?) way to manage such an environment?

Thanks for your attention


Last edited by CaptainBlood on Thu Apr 24, 2014 8:31 pm; edited 4 times in total
Back to top
View user's profile Send private message
aderesch
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2010
Posts: 123
Location: Berlin, Germany

PostPosted: Mon Jan 03, 2011 10:40 am    Post subject: Re: How 2 manage # kernel configs with low disk usage? Reply with quote

First of all, by setting the environment variable KBUILD_OUTPUT to a directory of your choice it is possible to only duplicate config and object files, working off the same source directory. If on the other hand you don't expect to frequently recompile both kernels, why not configure one with a suffix (e.g. "-fglrx")? Then there will be separate module directories, which will be used depending on the currently booted kernel.

ad
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 03, 2011 11:26 am    Post subject: Reply with quote

CaptainBlood,

Save your two .config files outside the kernel tree, or turn on /proc/config.gz in the kernel.
Edit the EXTRVERSION at the top of the Makefile.
There is an option in menuconfig that has a similar effect but its not respected by all out of kernel modules. You would need to test if it works with fglrx.

This will give you two different kernel names and two different /lib/module/... destinations for the kernel modules
_________________
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
CaptainBlood
Guru
Guru


Joined: 24 Jan 2010
Posts: 511

PostPosted: Thu Apr 24, 2014 8:23 pm    Post subject: Reply with quote

Hi dear all,

For the last 3 yeas I've been duplicating gentoo-sources to a directory which name reflects my change of the EXTRAVERSION variable in the Makefile.

By doing so uname command relfects kernel signature.
/etc/conf.d/modules
/etc/local.d/start.local
/etc/local.d/stop.local
can behave accordingly.

Thanks for your attention, help and support.
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