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
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 170

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: 2289
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
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 170

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
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

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
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 170

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: 3942
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
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 170

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: 3942
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: 2305
Location: Adendorf, 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?
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
hariskar
Apprentice
Apprentice


Joined: 29 Jan 2017
Posts: 170

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
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
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: 14

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
k9dog
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2009
Posts: 104
Location: Denmark

PostPosted: Sun Mar 27, 2022 9:25 am    Post subject: Reply with quote

Well answered a bit off topic in my previous posts.

Copying your old configuration is answered with the previous answers and I think your own solution with emerge @module-rebuild was your answer.

It might be an idea to create a new kernel from scratch though (if you can boot more than one :) )

I think I'd go with a new boot cd (you could "-o loop" mount the iso, the config is in /boot).
I would copy the config into a recent kernel source as .config.
Update system if you haven't and can
Since you are running nvidia proprietary driver, i would disable the nouveau driver.
I'd run : lspci | grep VGA to see my driver
Visit https://www.nvidia.com/Download/index.aspx to search for my driver version
Install the driver: emerge =x11-drivers/nvidia-driver-<version> (or something close but not later)
^^ You could install after you build kernel too, otherwise emerge @module-rebuild rebuilds
(I'll presume grub and genkernel is installed)
For compile of kernel I use this script:
Code:
cd /usr/src/linux
make clean
# edit -j4 if you got more/fewer kernels
nice -n 10 make -j4
make modules
emerge @module-rebuild
make modules_install
mount /boot
make install

genkernel initramfs
grub-mkconfig -o /boot/grub/grub.cfg


This might help a bit. just be sure you can fallback on your old kernel etc.
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