View previous topic :: View next topic |
Author |
Message |
pmam Veteran

Joined: 30 Dec 2013 Posts: 1145
|
Posted: Wed Oct 18, 2017 8:40 am Post subject: [SOLVED] How upgrade genkernel? |
|
|
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 |
|
 |
mrbassie Guru

Joined: 31 May 2013 Posts: 563
|
Posted: Wed Oct 18, 2017 9:17 am Post subject: |
|
|
Code: | # cp /usr/src/linux-4.12.5/.config /usr/src/linux/.config |
|
|
Back to top |
|
 |
fedeliallalinea Bodhisattva


Joined: 08 Mar 2003 Posts: 22645 Location: here
|
Posted: Wed Oct 18, 2017 9:23 am Post subject: |
|
|
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 |
|
 |
kajzer Guru


Joined: 27 Nov 2014 Posts: 488
|
Posted: Wed Oct 18, 2017 10:48 am Post subject: |
|
|
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 |
|
 |
pmam Veteran

Joined: 30 Dec 2013 Posts: 1145
|
Posted: Wed Oct 18, 2017 11:32 am Post subject: |
|
|
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 |
|
 |
kajzer Guru


Joined: 27 Nov 2014 Posts: 488
|
Posted: Wed Oct 18, 2017 2:14 pm Post subject: |
|
|
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 |
|
 |
pmam Veteran

Joined: 30 Dec 2013 Posts: 1145
|
Posted: Wed Oct 18, 2017 5:44 pm Post subject: |
|
|
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 |
|
 |
|