Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could not find a usable .config in kernel source directory.
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
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 2:42 pm    Post subject: Could not find a usable .config in kernel source directory. Reply with quote

Hello Gentoo Community Support,
I did a @world update last night and it was interrupted when unable to install the x11-drivers/nvidia-drivers-510.47.03. I'm really wondering where the .config file in /usr/src/linux went to?

Here are the Pastebin links

https://pastebin.com/efKLXBXq

https://pastebin.com/1Ua0ukCF
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Feb 06, 2022 2:48 pm    Post subject: Reply with quote

What does
Code:
eselect kernel list
returns?
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 3:09 pm    Post subject: Reply with quote

Code:
don@Polaris ~ $ eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.16.2-gentoo
  [2]   linux-5.16.3-gentoo
  [3]   linux-5.16.4-gentoo
  [4]   linux-5.16.6-gentoo *


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Feb 06, 2022 3:42 pm    Post subject: Reply with quote

Do you have empty
Code:
 ls /usr/src/linux/.config
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Feb 06, 2022 3:51 pm    Post subject: Reply with quote

Fails to check second pastebin, sorry...
Code:
System uname: Linux-5.15.10-gentoo-x86_64-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.34
seems weird enough...
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 4:25 pm    Post subject: Reply with quote

Code:
don@Polaris ~ $ emerge --info '=x11-drivers/nvidia-drivers-510.47.03::gentoo'
Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r7, 5.15.10-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.10-gentoo-x86_64-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.34
KiB Mem:    32342060 total,  26410300 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sat, 05 Feb 2022 19:30:01 +0000
Head commit of repository gentoo: 40fddaea1a0329095468d66fafde1babcbc16ce8
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.9.10-r1::gentoo, 3.10.2-r1::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=2"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=znver2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=znver2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi activities adns alsa amd64 ao atm branding bzip2 cairo caps cdda cddb cdr cgi clamav cli colord crypt cups cxx dbm dbus declarative dri dts dvd dvdr elogind emacs encode exif fastcgi fbcon ffmpeg flac fortran ftp gd gdbm geoip geolocation gif gimp git gmp gpm gps gsl gtk gui guile iconv icu ipv6 jack jbig joystick jpeg kde kwallet lcms libglvnd libnotify libtirpc mad man mng mp3 mp4 mpeg multilib nas ncurses nls nptl ogg opengl openmp pam pango pcre pdf pdfperlphp plasma png policykit postscript ppds python qml qt5 readline ruby sasl screencast sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg symlink tiff touchpad truetype udev udisks unicode upower usb vorbis widgets wifi wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="touchpad keyboard mouse joystick evdev wacom libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

don@Polaris ~ $  ls /usr/src/linux/.config
ls: cannot access '/usr/src/linux/.config': No such file or directory


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5394
Location: Bavaria

PostPosted: Sun Feb 06, 2022 4:41 pm    Post subject: Reply with quote

Applescruff,

your "emerge --info" tells us, your working kernel is 5.15.10.

Your "eselect kernel list"s only 4 x 5.16.X available, meaning there exists no 5.15.10 sources anymore. Your actual symlink "usr/src/linux/" points to "usr/src/linux-5.16.6/ (you see the *).

You have set useflag "symlink" ... you know what this useflag does ... ?

I suppose you did some "emerge --sync" and "emerge -u @world" WITHOUT switching to newer kernels. One day you did an "emerge -c" and this cleaned up your /usr/src/linux-5.15.10. Usually it will not delete your .config there. So, please check if you have a .config there. If not, then you have deleted this directory. Maybe you have copied your .config into the other ones (in /usr/src/linux-5.16.6 you have no .config)

Do you need help for updating your kernel ?
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 5:00 pm    Post subject: Reply with quote

Yes I do need help updating my kernel. I was getting messages earlier about not being able to locate my kernel. I reviewed the Gentoo Kernel Configuration Guide. When I checked the symlink it was there so that is when I added the useflag 'symlink'. Duplication overkill?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5394
Location: Bavaria

PostPosted: Sun Feb 06, 2022 5:13 pm    Post subject: Reply with quote

Applescruff wrote:
[...] When I checked the symlink it was there so that is when I added the useflag 'symlink'. Duplication overkill?

Useflag "symlink" sets your symlink automatically to the new kernel-sources when you emerge a new one. If you dont change to your new kernel it is better to link back to your working kernel (or not to use "symlink" as useflag; then you have to do an "eselect kernel set X" by yourself when updating to a new kernel). Before we can help you with a kernel update, we must know if you have done your configuration by yourself your if you did it with genkernel. Do you use an initramfs/initrd ? Have you found a .config somewhere ? (if not, do you have a backup ?)
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 5:20 pm    Post subject: Reply with quote

I realized earlier I omitted the -a in the ls of /usr/src/linux.

don@Polaris /usr/src/linux-5.15.10-gentoo $ ls -a
. Makefile .tmp_System.map
.. .missing-syscalls.d .tmp_vmlinux.kallsyms1
arch mm .tmp_vmlinux.kallsyms1.o
block modules.builtin .tmp_vmlinux.kallsyms1.S
certs modules.builtin.modinfo .tmp_vmlinux.kallsyms2
.config modules-only.symvers .tmp_vmlinux.kallsyms2.o
.config--2021-12-20--17-31-19.bak .modules-only.symvers.cmd .tmp_vmlinux.kallsyms2.S
.config.old modules.order tools
crypto .modules.order.cmd usr
drivers Module.symvers .version
fs .Module.symvers.cmd virt
include net vmlinux
init scripts .vmlinux.cmd
ipc security vmlinux.o
kernel sound vmlinux.symvers
lib System.map
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 5:30 pm    Post subject: Reply with quote

I have just now removed symlink from my make.conf. Yes I have initramfs. I used genkernel initialially. I think I have also manually gone back in with make menuconfig.\
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 5:34 pm    Post subject: Reply with quote

:?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23103

PostPosted: Sun Feb 06, 2022 5:52 pm    Post subject: Reply with quote

Applescruff wrote:
Yes I do need help updating my kernel.
Please elaborate. What did you do to update the kernel, and how did it fail? The opening post is about a problem with the proprietary nVidia drivers, which you will handle after you build the new kernel.
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 5:53 pm    Post subject: Reply with quote

I went back into Polaris /usr/src # ls -a
. .keep linux-5.15.10-gentoo linux-5.16.0-gentoo linux-5.16.2-gentoo linux-5.16.4-gentoo rpm
.. linux linux-5.15.13-gentoo linux-5.16.1-gentoo linux-5.16.3-gentoo linux-5.16.6-gentoo
I discovered linux-5.15.10-gentoo linux-5.15.13-gentoo linux-5.16.0-gentoo I have .config file.
linux-5.16.1 is when I added symlink to the make.conf and at that point the .config file is gone.
Back to top
View user's profile Send private message
Applescruff
n00b
n00b


Joined: 24 Nov 2021
Posts: 36
Location: Stevensville, MI United States

PostPosted: Sun Feb 06, 2022 6:08 pm    Post subject: Reply with quote

From /usr/src/linux-5.16.0-gentoo I have mv .config /usr/src/linux-5.16.6-gentoo. I'm re emerge --ask --update --deep --newuse @world. I will post again when that completes or fails.
Thank you for your help, it is very appreciated.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Feb 06, 2022 6:19 pm    Post subject: Reply with quote

I have a strange feeling you're putting the cart before the horse, somehow.
Gentoo has a learning curve, whatever path you take.
Take a deep breath and consider you may have neglected some critical path steps.

Consider where you are where you want to go, and which are the steps in between.
Should you call for help, try to describe shortly where you are & where you want to go.

As an example ; you could be first bringing current running kernel to latest with same GPU, if possible.
Secondly switch to alternate GPU.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
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