Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Compiled kernel wrong, can't load modules now
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
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 8:36 am    Post subject: [SOLVED] Compiled kernel wrong, can't load modules now Reply with quote

I tried to get audio to work by emerging with the "pulseaudio" and "alsa" flags globally enabled, as well as by following this post which prompted me to enable the PINCTRL and CONFIG_PINCTRL_SUNRISEPOINT options in my kernel, since my sound card wasn't being recognized. After a reboot, I got a bunch of errors regarding failures to load present modules, one of which was holding me back from logging in. Thinking that I probably shouldn't have changed the kernel in this way, I reverted this change through a LiveCD chroot, yet nothing changed — strangely. I removed said problematic module (x86_pkg_temp_thermal.ko) from /etc/modules-load.d/modules.conf, and was able to log in with dmesg outputting: https://pastebin.com/iPTF2Z6U

This wouldn't be as bad if, as evidenced by this post, my wireless network interface's functionality didn't depend on iwlwifi, iwlmvm, and (probably) iwldvm actually loading. I tried to force-load them by putting them in /etc/modules-load.d/modules.conf to no avail. I don't think the absence of the other modules will matter that much.

Also, in case I should make any further changes to my kernel, it would be nice to first fix the clock being skewed. I stupidly recompiled the kernel when I was able to log in with no changes made (make && make modules_install), "to make sure modules were properly installed". Now most options are unsynced with significant variable delay, and neither tinkering with the date command nor re-emerging the sys-libs/timezone-data package have had any positive effect.


Last edited by Darkyyo on Sat Oct 01, 2022 11:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 30, 2022 9:43 am    Post subject: Reply with quote

Hi
Plz dpaste your kernel .config and your emerge --info
You cant load the iwlwifi module because it can not load the associated firmware.
Plz install
linux-firmware.
_________________
:)
Back to top
View user's profile Send private message
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 11:41 am    Post subject: Reply with quote

Terribly sorry for the late reply.

emerge --info:
Code:
Portage 3.0.36 (python 3.10.6-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r8, 5.15.69-gentoo x86_64)
=================================================================
System uname: Linux-5.15.69-gentoo-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-glibc2.35
KiB Mem:    12156368 total,  11727976 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 25 Sep 2022 18:30:01 +0000
Head commit of repository gentoo: 722232c6fbcbbea9fa46aa6aecc96221581fb5c1
sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.6_p4::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.aliyun.com/gentoo/ http://mirrors.aliyun.com/gentoo/ https://mirrors.163.com/gentoo/ http://mirrors.163.com/gentoo/ https://mirrors.tuna.tsinghua.edu.cn/gentoo https://download.nus.edu.sg/mirror/gentoo/ http://download.nus.edu.sg/mirror/gentoo/ rsync://download.nus.edu.sg/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="acl alsa amd64 bzip2 cli crypt dri eme-free fortran gdbm hwaccel iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl unicode xattr 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" 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="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_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, 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

kernel .config: https://pastebin.com/LsFz6vGF
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 30, 2022 12:31 pm    Post subject: Reply with quote

Did you recently update your kernel?
From your dmesg it seems that it has problem loading iwlwifi firmware chunk and the firmware needed for your i915 module
In your .config you have

Code:

CONFIG_DRM_I915=y

which means that it can not load the firmware because the i915 module is in-built in the kernel.
Generally you should prefer modular kernels than in-built ones especially if you have newer hardware that need a ton of firmware to function.
Now your iwlwifi is
Code:

CONFIG_IWLWIFI=m


which is ok but your dmesg indicates that it cant load the firmware.
There is talk that
Code:

intel_iommu=off

kernel parameter might help OR a reboot OR a different kernel.
You are trying to have sound.Sound usually means a desktop profile but you are using a plain profile.
Plz switch to a desktop profile and
Code:

env-update
emerge -uDUav @world

As for your time issue try
Code:

emerge -av net-misc/ntp
ntpdate pool.ntp.org

This should syncronize your clock.
For a permanent solution see
alamahant wrote:
Plz let the kernel take care of system time
Code:

KERNEL Letting the kernel sync the system clock
    Device Drivers --->
      [*] Real Time Clock --->
            [*]   Set system time from RTC on startup and resume
            (rtc0)  RTC used to set the system time
            [*]   Set the RTC time based on NTP synchronization
            (rtc0)  RTC used to synchronize NTP adjustment
            [*]   /sys/class/rtc/rtcN (sysfs)
            [*]   /proc/driver/rtc (procfs for rtc0)
            [*]   /dev/rtcN (character devices)
            <*>   PC-style 'CMOS'


Run something like
Code:

ln -s /usr/share/zoneinfo/Europe/London /etc/localtime


Install and enable chronyd.
In
/etc/chrony/chrony.conf
make sure you have
Code:

pool pool.ntp.org iburst auto_offline
# Enable kernel synchronization of the real-time clock (RTC).
rtcsync
hwclockfile /etc/adjtime
rtconutc


Disable hwclock @boot runlevel and enable osclock @default.

from
https://forums.gentoo.org/viewtopic-p-8702840.html?sid=eca9ba7dc6c7adf068f9fdd0d58604d2
Lastly you mention
Quote:

I got a bunch of errors regarding failures to load present modules, one of which was holding me back from logging in

How exactly?Plz elaborate a bit on the errors.
_________________
:)
Back to top
View user's profile Send private message
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 1:25 pm    Post subject: Reply with quote

Yes, as I said, I did naively update my kernel as soon as I was able to log in.

I applied the temporary fix for my system's clock, and then loaded CONFIG_DRM_I915 as a module. However, my kernel's options' update times continue to remain wildly unsynced (some are 74s, others are 5000s), so just synchronizing synchronizing the clock always ends up satisfying only a portion of such. Is there not a way to reset these options' times and compile from scratch, or should I just switch kernels? I wouldn't mind the wait.

As for switching profiles, is it documented somewhere what exact changes/packages it will make/emerge? I would like my system to remain minimal and thus remove what's unnecessary, if this is what enables sound.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Fri Sep 30, 2022 1:28 pm    Post subject: Reply with quote

Darkyyo,

it seems to me you have edited your .config manually ... please read this: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config

I can see in your dmesg it is a notebook: Dell Inc. Inspiron 5559. But you are missing in your kernel config very important settings, like (and many more):
Code:
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_PINCTRL is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_I2C_HID_ACPI is not set

Pleaase read also: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware

... or better ... the whole page ;-)

Now your .config is broken in many ways AND you are missing important options I can only recommend to start completely new. If you want to configure your kernel manually you should read all linked pages (from my link above). Boot with our Gentoo Minimal CD and notice all modules you will see with:
Code:
# lspci -k
# lsmod | more


Then start configuring all what you will need.

BTW: At the moment your i915 is missing firmware, but this is not a problem - your GPU will work. Of course you will put its firmware into:
Code:
CONFIG_EXTRA_FIRMWARE=""

... but not by editing your .config ...

Look also always in our Gentoo WiKi ... like:

https://wiki.gentoo.org/wiki/Category:Laptops
https://wiki.gentoo.org/wiki/Dell_Latitude_5580
https://wiki.gentoo.org/wiki/Category:Kernel
Back to top
View user's profile Send private message
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 2:25 pm    Post subject: Reply with quote

pietinger,

You raise a good conclusion: I should've acknowledged this from earlier broken/unrecognised driver problems. Would "start[ing] completely new" be as easy as deleting my current .config file and then doing
Code:
make menuconfig
I've heard that you can also do
Code:
make defconfig
but I'm scared that my seriously skewed clock will mess things up again.

By the way, what part of my .config file suggests that it was manually edited? Only the username was censored — and I made that change in the pastebin. I swear the only way I've ever interacted with my kernel through was
Code:
make menuconfig


Many thanks for the resources; definitely should've looked beyond the handbook's basic suggested configurations.


Last edited by Darkyyo on Fri Sep 30, 2022 6:02 pm; edited 2 times in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 30, 2022 3:03 pm    Post subject: Reply with quote

At the present time with a kernel seriously misconfigured plz use
gentoo-kernel-bin
Code:

emerge -av dracut
emerge -av gentoo-kernel-bin
grub-mkconfig -o /boot/grub/grub.cfg
reboot

Then start anew working on your gentoo-sources.
_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Fri Sep 30, 2022 3:57 pm    Post subject: Reply with quote

Darkyyo,

If you delete the .config file then run make meneconfig, you will get make defconfig for free, on x86 anyway.

Do not continue while your clock is in a mess. Sort that out first,

make is lazy to save CPU time.
It looks at the timestamps on the output files that exist and checks that all the input files are older than the output file.
If so, it does nothing and reuses the existing output file.

To force make to rebuild everything, run
Code:
make clean
That will remove all the build products from the kernel tree, so everything is rebuilt.
The .config file is not harmed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Fri Sep 30, 2022 4:12 pm    Post subject: Reply with quote

Darkyyo wrote:
Many thanks for the resources

You are very welcome, Darkyyo ! I like your goal to configure a slim kernel (I want always the same because of security reasons).

Darkyyo wrote:
By the way, what part of my .config file suggests that it was manually edited? Only the username was censored — and I made that change in the pastebin. I swear the only way I've ever interacted with my kernel was through

This from your dmesg told me:
Code:
[    3.416262] RIP: 0010:sys_get_trip_temp+0x26/0xb0 [x86_pkg_temp_thermal]
[    3.416921] Code: 1f 44 00 00 41 55 41 54 55 53 48 83 ec 10 4c 8b af 38 03 00 00 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 83 fe 01 7f 7e <41> 8b 7d 00 48 8d 4c 24 04 45 19 e4 48 89 d5 41 83 e4 f8 48 89 e2

Anyway ... boot first into your BIOS and set it to UTC. If you want boot with an initramfs go the way @alamahant already recommended.

If you want to go the manual way, maybe you want look into my german installation guide for a No-Multilib system - forget my german sayings (or translate with google); just orientate with my (english) steps:
https://forums.gentoo.org/viewtopic-t-1112800.html
Here you will see how you can manage your system time (be aware: it must be correct before an "emerge --snyc").
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Fri Sep 30, 2022 4:22 pm    Post subject: Reply with quote

Darkyyo,

With your system time being in a fankle (a Scottish term for a bit of a mess) and
Code:
[    0.000000] Linux version 5.15.69-gentoo (root@splervus) (gcc (Gentoo 11.3.0 p4) 11.3.0, GNU ld (Gentoo 2.38 p4) 2.38) #15 SMP Fri Sep 30 22:49:09 +07 2022
your 15th kernel build.
your kernel issues highlighted in dmesg could be caused by things not being rebuilt when the needed to be.

To test that theory, fix your time.
That rebuild and reinstall your kernel starting with
Code:
make clean
so that there is no danger of incorrect build products being used.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Fri Sep 30, 2022 4:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
If you delete the .config file then run make meneconfig, you will get make defconfig for free, on x86 anyway.

Neddy, I have thought the same, until we had a problem (in german section) before some weeks. There I learned from @Josef.95 this ->
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Starting_with_a_clean_environment
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Fri Sep 30, 2022 4:52 pm    Post subject: Reply with quote

pietinger,

Every day is a school day. Thank you.

I don't keep .config files in /boot, so its not bitten me yet.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 5:20 pm    Post subject: Reply with quote

I would really like to follow through with your recommended steps to rebuild my kernel, but I just can't get around unskewing my clock. BIOS displays UTC; installed system displays "[date] [UTC] +07"; chroot displays "[date] [localtime] +07" (LiveCD displays UTC outside of chroot, of course). Regardless of which of the two I go with, when I delete .config, do "make clean", and then "make menuconfig" (or vice-versa regarding the last two steps), I am warned that my clock is skewed. I don't get a warning while doing "make clean" on the LiveCD.

Since my installed system's network interface doesn't work, I can only access the ntp's servers or re-emerge sys-libs/timezone-data on the LiveCD, which aren't of much use when "date" already displays the correct time there.

* After doing "make distclean", only Makefile is now complaining about the clock being skewed. Any way to refresh its modification time?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Fri Sep 30, 2022 6:40 pm    Post subject: Reply with quote

Darkyyo,

Go into the BIOS and verify that the BIOS time is correctly set to UTC.
At boot either the kernel or the hwclock service (or both) should copy the BIOS time to the system time.
Code:
$ date -u
Fri Sep 30 17:36:26 UTC 2022
will confirm that step worked.

The -u option means to show the date in UTC.

If you run ntp, it will have set the time from the network before you log in, which will overwrite the BIOS time that was copied to system time.
Remove both ntp-client and ntpd from the default runlevel and reboot for this test.

Once you are sure that the BIOS time is copied to system time, move onto the next step.

BIOS losing time can be caused by a flat motherboard battery. The battery is used to run the clock and keep BIOS settings alive.
The usual sign of motherboard battery problems in the BIOS time failing to increment correctly.

If all is well, the difference between
Code:
 date -u
and
Code:
date
is your timezone offset.
Your timezone goes into

/etc/timezone. I have Europe/London There is a list in /usr/share/zoneinfo. Capitalisation matters.
Choose a timezone from one of the regional directories and put its name not including the /usr/share/zoneinfo/ part, into /etc/timezone
Every boot the system copies your timezone file declared in /etc/timezone to /etc/localtime.

Reboot to test.

Now both date -u and date should be correct.
Add ntp-client and ntpd back to the default runlevel and check your timezone setting.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4148
Location: Bavaria

PostPosted: Fri Sep 30, 2022 7:09 pm    Post subject: Reply with quote

Maybe you want delete /var/lib/ntp/ntp.drift (in your chroot). See also here: https://linux.die.net/man/8/ntpd
I recommend for a workstation (doing a dayly shutdown) only "ntp-client" (IMHO only servers need "ntpd"). ntp-client doesnt use a drift file.

P.S.: Try "make distclean" instead of "make clean" (be aware it deletes also your .config).
Back to top
View user's profile Send private message
Darkyyo
n00b
n00b


Joined: 27 Sep 2022
Posts: 21

PostPosted: Fri Sep 30, 2022 11:29 pm    Post subject: Reply with quote

You mentioned the hwclock service... I looked into its available options, and after doing
Code:
hwclock -s
everything just snapped into place. I was able to reset the kernel's configuration, and after compiling with the settings mentioned in the handbook as well as clock dependency on RTC, this thread's problem was solved.

As I continue to integrate my kernel with your recommendations, I realize what I did wrong earlier. When doing "sudo make && make modules_install" as a user, sudo permissions would not pass on to the second command. Not knowing this, I therefore assumed that
Code:
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/hda/snd-intel-dspcfg.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/hda/snd-hda-core.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/hda/snd-intel-sdw-acpi.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/pci/hda/snd-hda-codec.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/pci/hda/snd-hda-intel.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/core/snd-pcm.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/sound/core/snd-hwdep.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/lib/crypto/libarc4.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/pinctrl/intel/pinctrl-sunrisepoint.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/pinctrl/intel/pinctrl-intel.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/mfd/intel-lpss-acpi.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/mfd/intel-lpss-pci.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/mfd/mfd-core.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/mfd/intel-lpss.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/i2c/busses/i2c-designware-core.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/i2c/busses/i2c-designware-platform.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/hid/hid-alps.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/hid/hid-multitouch.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/hid/i2c-hid/i2c-hid.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/hid/i2c-hid/i2c-hid-acpi.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/gpu/drm/ttm/ttm.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/gpu/drm/i915/i915.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/thermal/intel/intel_pch_thermal.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/xt_LOG.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/xt_addrtype.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/xt_mark.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/nf_log_syslog.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/netfilter/xt_nat.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/mac80211/mac80211.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/net/wireless/cfg80211.ko': Permission denied
rm: cannot remove '/lib/modules/5.15.69-gentoo/kernel/fs/efivarfs/efivarfs.ko': Permission denied

was perfectly normal. I also ignored clock skews for the longest time, which probably took their toll. Having overcome these two mistakes, and with the kernel configurations described in the question post, my system now loads everything fine.

I apologize if I took a lot of your time for such a simple issue. Absolutely appreciate the shower of knowledge and continued support.
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