Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I am tired of always having to reconfigure genkernel ..
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
cravengemetzel
n00b
n00b


Joined: 12 Mar 2012
Posts: 40

PostPosted: Wed Dec 19, 2012 3:54 am    Post subject: I am tired of always having to reconfigure genkernel .. Reply with quote

I use the Gentoo Testing branch and I love it. But what I don't like is how many hours I spend configuring genkernel options by memory. After each release upgrade, genkernel uses the default options, by default and I have to go through each section and change things (the --oldconfig option doesn't help me here). I realize that keeping the same configuration file through kernel upgrades is unwise and potentially dangerous.

I have an idea for a mid-way solution to this problem. I will probably have to go through menuconfigs very often for the forseeable future, but what consumes the most of my time is realizing that I forgot to address some cryptic detail, then I have to go back through the menuconfig. Is there a way that I could save old configuration files as a text file, and then when I finish compiling a new kernel, save its config file too and have a program analyze both for differences? This would be an amazing help as I have a very exotic system it would seem. Thank you. (:
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Dec 19, 2012 6:00 am    Post subject: Reply with quote

use --save-config The text file is called .config

Really, There is no good reason why you should not reuse your old .config. If something breaks, that is what the old kernel is for. Is not going to kill your system or anything. My .config has to be more than a year old. make oldnoconfig really does work very well.

EDIT: Use diff or vimdiff to check for differences.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Wed Dec 19, 2012 11:56 am    Post subject: Reply with quote

I use
Code:
genkernel --no-clean --kerneldir=/usr/src/linux-3.$i.x/
which simplifies life for me.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Dec 19, 2012 1:03 pm    Post subject: Reply with quote

I set those settings (and some others) in /etc/genkernel.conf so that I simplify my command line. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Cynede
Retired Dev
Retired Dev


Joined: 30 Nov 2012
Posts: 56

PostPosted: Thu Dec 20, 2012 6:12 am    Post subject: Reply with quote

I'm using
Code:
--oldconfig --menuconfig
( menuconfig just to be sure that it's using my configuration ) and eventually make .config backups.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Dec 20, 2012 10:49 am    Post subject: Reply with quote

I always understood that the .config hack only works with 3.7.X revisions and NOT with 3.X versions.
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 265

PostPosted: Thu Dec 20, 2012 10:55 am    Post subject: Genkernel Reply with quote

I think it is less problematic to do it without genkernel :?:

cp /usr/src/linux/.config /somedir/kernel-config-version

eselect kernel list

eselect kernel set number of choice

cp /somedir/kernel-config-version /usr/src/linux/.config

cd /usr/src/linux

make oldconfig or if lazy make xconfig check that everything seems ok

make && make modules_install

cp arch/x86_64/boot/bz..... /boot/kernel-3.x.x-gentoo

grub2-mkconfig -o /boot/grub2/..

emerge nvidia-drivers

reboot

It was too difficult for me to use genkernel :oops:
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Thu Dec 20, 2012 11:08 am    Post subject: Reply with quote

Well if we are sharing tips on kernel updates here is an extract from my .zhistory :)

Code:
eselect kernel list
eselect kernel set 2
cd /usr/src/linux
cp ../linux-3.7.0-gentoo/.config .
make oldconfig
make nconfig
cp /boot/vmlinuz /boot/vmlinuz-old
make -j3
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz
emerge @module-rebuild


Like The Doctor I have also been using the same kernel .config file for quite some time. You occasionally get some choices pop up with make oldconfig but not often, pretty much set up once and roll with it.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Dec 20, 2012 11:35 am    Post subject: Reply with quote

________________________0 wrote:
I always understood that the .config hack only works with 3.7.X revisions and NOT with 3.X versions.
What do you mean by ".config hack"?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Dec 20, 2012 1:17 pm    Post subject: Reply with quote

I use "genkernel --xconfig all" as a "start and walk away" way to build kernels, but I track and keep my own kernel config files. I keep kernel configs in /usr/src with a naming convention that includes the kernel version as well as when I built it. Once xconfig starts I load my last working kernel config, tweak from there, and exit. I then walk away, and when I come back the kernel is done.

I never really messed with genkernel.conf, but I see some interesting stuff there - not the least of which is "-jN", though build time never really bothered me, because I wasn't watching or waiting.
_________________
.sigs waste space and bandwidth
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