Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can boot with kernel 4.18.10, but not with 4.18.11
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
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 104
Location: Greece/Kavala

PostPosted: Mon Oct 01, 2018 5:31 am    Post subject: I can boot with kernel 4.18.10, but not with 4.18.11 Reply with quote

I get no screens found error. I use nvidia drivers. Is it some new configuration in the kernel I have to do?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Mon Oct 01, 2018 5:45 am    Post subject: Reply with quote

How did you configure the new kernel ?
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 104
Location: Greece/Kavala

PostPosted: Mon Oct 01, 2018 6:33 am    Post subject: Reply with quote

root #cd /usr/src/linux
root #make olddefconfig
root #make

but before that with
emerge -c sources of 4.18.10 were deleted (by mistake) and re-installed. I guess all configuration of config file of 4.18.10 is lost?
Back to top
View user's profile Send private message
joanandk
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2017
Posts: 80

PostPosted: Mon Oct 01, 2018 8:44 am    Post subject: Reply with quote

hariskar wrote:
root #cd /usr/src/linux
root #make olddefconfig


Prior to make oldconfig, you did copy the running .config from the 4.18.10 source directory to /usr/src/linux?

BR
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 104
Location: Greece/Kavala

PostPosted: Mon Oct 01, 2018 8:55 am    Post subject: Reply with quote

Yes I did. I have done the proceedure many times with previous kernel updates without problem.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3684
Location: Hamburg

PostPosted: Mon Oct 01, 2018 10:56 am    Post subject: Reply with quote

hariskar wrote:
but before that with
emerge -c sources of 4.18.10 were deleted (by mistake) and re-installed. I guess all configuration of config file of 4.18.10 is lost?
Well, that's why
Code:
/proc/config.gz
was developed for.
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 104
Location: Greece/Kavala

PostPosted: Mon Oct 01, 2018 1:22 pm    Post subject: Reply with quote

I don't have such a file.. Will I stay with 4.18.10 forever?? 8O
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3684
Location: Hamburg

PostPosted: Mon Oct 01, 2018 1:52 pm    Post subject: Reply with quote

hariskar wrote:
I don't have such a file.. Will I stay with 4.18.10 forever?? 8O
IMO "emerge -C" does not delete files outside of its (==Gentoos ebuild) scope, therefore /usr/src/linux/.config should therefore stay where it is. Of course it is overwritten/backed up my the next "make menuconfig" to .config.old. It is still worth a try to look for that file.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2273
Location: Bardowick, Germany

PostPosted: Mon Oct 01, 2018 2:07 pm    Post subject: Reply with quote

The old config is in
/usr/src/linux-4.18.10-gentoo/.config
and stays there when you unmerge the sources.

The new config will be in
/usr/src/linux-4.18.11-gentoo/.config

The simplest way is to copy the old .config into the new folder and run 'make oldconfig' and not olddefconfig. That one will set new symbols to their default value without prompting, which was not what I wanted in many cases. Like supporting new hardware, which always defaults to Y.

However, normally a patchlevel update never yields any additions/removals that would make 'oldconfig' prompt for anything...

Well, you *did* remember to run 'emerge @module-rebuild" after building the new kernel?
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
hariskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2017
Posts: 104
Location: Greece/Kavala

PostPosted: Mon Oct 01, 2018 3:47 pm    Post subject: Reply with quote

'emerge @module-rebuild"
was the solution!

But I wonder why. I never run it and never had problems..

Thank you!
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Mon Oct 01, 2018 4:58 pm    Post subject: Reply with quote

Amplifying Toralf's remarks:

When you make menuconfig, under "General Setup" you with find a checkbox " Enable access to .config through /proc/config.gz "
This will enable CONFIG_IKCONFIG_PROC which will do as it says. So if you ever lose the .config you can restore it from the running kernel with
Code:
zcat /proc/config.gz > /usr/src/linux/.config
Back to top
View user's profile Send private message
ups
n00b
n00b


Joined: 06 Sep 2018
Posts: 12

PostPosted: Tue Oct 02, 2018 4:19 am    Post subject: Reply with quote

Yamakuzure wrote:

The simplest way is to copy the old .config into the new folder and run 'make oldconfig' and not olddefconfig. That one will set new symbols to their default value without prompting, which was not what I wanted in many cases. Like supporting new hardware, which always defaults to Y.

However, normally a patchlevel update never yields any additions/removals that would make 'oldconfig' prompt for anything...

I usually do 'make localmodconfig', the benefit of this is that all unnecessary stuff is removed from the kernel. But you need to carefully configure the first kernel on every machine by hand and load all modules just before every updates.
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