View previous topic :: View next topic |
Author |
Message |
hariskar Apprentice
Joined: 29 Jan 2017 Posts: 170
|
Posted: Mon Oct 01, 2018 5:31 am Post subject: I can boot with kernel 4.18.10, but not with 4.18.11 |
|
|
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 |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Mon Oct 01, 2018 5:45 am Post subject: |
|
|
How did you configure the new kernel ? |
|
Back to top |
|
|
hariskar Apprentice
Joined: 29 Jan 2017 Posts: 170
|
Posted: Mon Oct 01, 2018 6:33 am Post subject: |
|
|
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 |
|
|
joanandk Apprentice
Joined: 12 Feb 2017 Posts: 169
|
Posted: Mon Oct 01, 2018 8:44 am Post subject: |
|
|
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 |
|
|
hariskar Apprentice
Joined: 29 Jan 2017 Posts: 170
|
Posted: Mon Oct 01, 2018 8:55 am Post subject: |
|
|
Yes I did. I have done the proceedure many times with previous kernel updates without problem. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3942 Location: Hamburg
|
Posted: Mon Oct 01, 2018 10:56 am Post subject: |
|
|
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 was developed for. |
|
Back to top |
|
|
hariskar Apprentice
Joined: 29 Jan 2017 Posts: 170
|
Posted: Mon Oct 01, 2018 1:22 pm Post subject: |
|
|
I don't have such a file.. Will I stay with 4.18.10 forever?? |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3942 Location: Hamburg
|
Posted: Mon Oct 01, 2018 1:52 pm Post subject: |
|
|
hariskar wrote: | I don't have such a file.. Will I stay with 4.18.10 forever?? | 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 |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2305 Location: Adendorf, Germany
|
Posted: Mon Oct 01, 2018 2:07 pm Post subject: |
|
|
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 |
|
|
hariskar Apprentice
Joined: 29 Jan 2017 Posts: 170
|
Posted: Mon Oct 01, 2018 3:47 pm Post subject: |
|
|
'emerge @module-rebuild"
was the solution!
But I wonder why. I never run it and never had problems..
Thank you! |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Oct 01, 2018 4:58 pm Post subject: |
|
|
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 |
|
|
ups n00b
Joined: 06 Sep 2018 Posts: 14
|
Posted: Tue Oct 02, 2018 4:19 am Post subject: |
|
|
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 |
|
|
k9dog Tux's lil' helper
Joined: 22 Jun 2009 Posts: 104 Location: Denmark
|
Posted: Sun Mar 27, 2022 9:25 am Post subject: |
|
|
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 |
|
|
|