Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How upgrade 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
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Oct 18, 2017 8:40 am    Post subject: [SOLVED] How upgrade genkernel? Reply with quote

I am quite new with genkernel and now after system updating, need to upgrade kernel source.

Code:
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.12.5-gentoo
  [2]   linux-4.12.12-gentoo *


Please inform how to copy config from old kernel to new one?

Typo corrected in title. — JRG
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”


Last edited by pmam on Wed Oct 18, 2017 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 551

PostPosted: Wed Oct 18, 2017 9:17 am    Post subject: Reply with quote

Code:
# cp /usr/src/linux-4.12.5/.config /usr/src/linux/.config
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22166
Location: here

PostPosted: Wed Oct 18, 2017 9:23 am    Post subject: Reply with quote

Genkernel save kernel config in /etc/kernels/, usually I run
Code:
# genkernel --kernel-config=/etc/kernels/kernel-config-x86_64-version_you_want all

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 443

PostPosted: Wed Oct 18, 2017 10:48 am    Post subject: Reply with quote

You can also edit /etc/genkernel.conf and enable the use of oldconfig.

Code:
# Run 'make oldconfig' before compiling this kernel?
OLDCONFIG="yes"
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Oct 18, 2017 11:32 am    Post subject: Reply with quote

Quote:
Genkernel save kernel config in /etc/kernels/, usually I run
Code:
# genkernel --kernel-config=/etc/kernels/kernel-config-x86_64-version_you_want all

That what was missing to me - I did not know why the kernel's config had not have the right parameters...
I used to work without genkernel, so there are some differences to care of.
Code:
# Run 'make oldconfig' before compiling this kernel?
OLDCONFIG="yes"

Can add this parameter with menuconfig or just manually in: /etc/kernels/kernel-config-x86_64-version_you_want?
And if OLDCONFIG="yes" is added, then need to run following commands?
Code:
make oldconfig
genkernel --menuconfig all


BTW: genkernel compilation takes much time than standard kernel... But works ok and save some configuration's time

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 443

PostPosted: Wed Oct 18, 2017 2:14 pm    Post subject: Reply with quote

pmam wrote:
And if OLDCONFIG="yes" is added, then need to run following commands?
Code:
make oldconfig
genkernel --menuconfig all



You just need "genkernel --menuconfig all" , and if you enable this in the genkernel.conf :
Code:
# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="yes"


then you just need to run "genkernel all"

Note: I'm not sure (I can't remember), but when you enable OLDCONFIG="yes" it's gonna take effect next time you run it, because when you run it for the first time there's no old config available, but after first run it will be, it uses it's own location for config.
I'm running like this for a very long time and it's working fine.

Edit: Actually you might need this as well :
Code:
# Save the new configuration in /etc/kernels upon
# successfull compilation
SAVE_CONFIG="yes"
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Oct 18, 2017 5:44 pm    Post subject: Reply with quote

kajzer,

OK, I will try it.

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
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