Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The recompiled kernel is not installed.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 302
Location: Nijmegen

PostPosted: Mon Feb 26, 2024 2:14 pm    Post subject: Reply with quote

grknight wrote:

A gentoo-sources config never included a "local version set to '-gentoo'". If it did, this was a new change.


gentoo-sources has '-gentoo'
gentoo-kernel has '-gentoo-dist'
vanilla-sources has none
vanilla-kernel has '-dist'
_________________
OS: Gentoo 6.8.10-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1716

PostPosted: Mon Feb 26, 2024 2:31 pm    Post subject: Reply with quote

grknight wrote:
logrusx wrote:
Those are the kernel sources. They come with a config with local version set to "-gentoo". The config you shared does not include a local version. You didn't answer neither mine, nor Neddy's questions. When you ask for help you've got to provide the information asked for, otherwise it makes no sense. We're not psychics.

I suspect there's more to it than meets the eye. What are the outputs of emerge -pvc and emerge --info?

A gentoo-sources config never included a "local version set to '-gentoo'". If it did, this was a new change.


Maybe you always used a custom config from a previous version and that's why it's new to you.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 26, 2024 2:59 pm    Post subject: Reply with quote

logrusx

gentoo-sources says

/usr/src/linux/Makefile:
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 7
SUBLEVEL = 6
EXTRAVERSION = -gentoo
NAME = Hurr durr I'ma ninja sloth

and
Code:
grep LOCAL /usr/src/linux/.config
CONFIG_LOCALVERSION=""


Are you confusing EXTRAVERSION and LOCALVERSION ?
_________________
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
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1716

PostPosted: Mon Feb 26, 2024 3:17 pm    Post subject: Reply with quote

NeddySeagoon wrote:
logrusx

gentoo-sources says

/usr/src/linux/Makefile:
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 7
SUBLEVEL = 6
EXTRAVERSION = -gentoo
NAME = Hurr durr I'ma ninja sloth

and
Code:
grep LOCAL /usr/src/linux/.config
CONFIG_LOCALVERSION=""


Are you confusing EXTRAVERSION and LOCALVERSION ?


You're right.

@grknight, in fact it was I who was dragging this from old config files and I don't know how I got it there. Apologies for the confusion.

Still OP should provide exactly the information being asked for.

Best Regards,
Georgi
Back to top
View user's profile Send private message
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Wed Feb 28, 2024 9:45 am    Post subject: Reply with quote

logrusx wrote:
UnderTaket wrote:
Currently there is only one core in the system
Code:

Available kernel symlink targets:
  [1]   linux-6.6.13-gentoo*


Those are the kernel sources. They come with a config with local version set to "-gentoo". The config you shared does not include a local version. You didn't answer neither mine, nor Neddy's questions. When you ask for help you've got to provide the information asked for, otherwise it makes no sense. We're not psychics.

I suspect there's more to it than meets the eye. What are the outputs of emerge -pvc and emerge --info?

Best Regards,
Georgi


Perhaps I'm missing something, but it seems like I sent information from all the requested commands.
If you don't mind, can you clarify which command output should be shown?

Output emerge -pvc and emerge --info
Code:

localhost ~ # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/systemd, gcc-12, glibc-2.38-r10, 6.6.13-gentoo x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-AMD_EPYC_7763_64-Core_Processor-with-glibc2.38
KiB Mem:     2025036 total,   1257356 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 24 Feb 2024 05:00:00 +0000
Head commit of repository gentoo: 30f21ccf8a4aa568b783131ff98dea64f9c0a5bc
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.8-r1::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=znver3 -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 pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver3 -O2 -pipe"
GENTOO_MIRRORS="https://gentoo-mirror.alexxy.name/     http://mirror.mephi.ru/gentoo-distfiles/     https://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
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 amd64 bzip2 cli crypt dri fortran gdbm gzip iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre pulseaudio python readline seccomp split-usr ssl systemd test-rust udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Output emerge -pvc posted on pastebin
https://pastebin.com/6knQ1Kwh

Code:

localhost ~ # grep -r '\-gentoo' /usr/src/linux/.config
# Linux/x86 6.6.13-gentoo Kernel Configuration


Code:

/usr/src/linux/Makefile

# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 6
SUBLEVEL = 13
EXTRAVERSION = -gentoo
NAME = Hurr durr I'ma ninja sloth


Code:

localhost ~ # grep LOCAL /usr/src/linux/.config
CONFIG_LOCALVERSION=""
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 302
Location: Nijmegen

PostPosted: Wed Feb 28, 2024 9:47 am    Post subject: Reply with quote

UnderTaket wrote:

Perhaps I'm missing something, but it seems like I sent information from all the requested commands.
If you don't mind, can you clarify which command output should be shown?


We'd like to see 'uname -a'

NeddySeagoon wrote:
UnderTaket

Please post the output of
Code:
uname -a

_________________
OS: Gentoo 6.8.10-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Wed Feb 28, 2024 9:51 am    Post subject: Reply with quote

As for the order of starting the build and installation.
I have never had problems with writing
Code:

make && make modules_install install

I also assembled kernels on many servers.
But I also tried to build the kernel as follows:
Code:

make clean && make && make modules_install && make install

and
Code:

make clean
make
make modules_install
make install

Either option leads to the same result.
The only difference I see now is the strange output I get after make install
Code:

  INSTALL /boot
Loading /usr/lib/kernel/install.conf…
layout=compat set via /usr/lib/kernel/install.conf
INITRD_GENERATOR (none) set via /usr/lib/kernel/install.conf.
UKI_GENERATOR (none) set via /usr/lib/kernel/install.conf.
Loaded /usr/lib/kernel/install.conf.
MACHINE_ID=499a93591e894154a0ad62ae039a0397 set via /etc/machine-id.
Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
Found container virtualization none.
Directory "/boot" is not the root of the file system.
Couldn't find an XBOOTLDR partition.
Failed to check file system type of "/efi": No such file or directory
File system "/boot" is not a FAT EFI System Partition (ESP) file system.
Failed to check file system type of "/boot/efi": No such file or directory
Couldn't find EFI system partition, ignoring.
KERNEL_INSTALL_BOOT_ROOT autodetection yielded no candidates, using "/boot".
Using entry token: 499a93591e894154a0ad62ae039a0397
kernel version (6.6.13-gentoo) set via command line.
kernel image file (/usr/src/linux/arch/x86/boot/bzImage) set via command line.
Using ENTRY_DIR=/boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo
Using plugins:
  /usr/lib/kernel/install.d/00-00machineid-directory.install
  /usr/lib/kernel/install.d/10-copy-prebuilt.install
  /usr/lib/kernel/install.d/50-depmod.install
  /usr/lib/kernel/install.d/50-dracut.install
  /usr/lib/kernel/install.d/51-dracut-rescue.install
  /usr/lib/kernel/install.d/90-compat.install
  /usr/lib/kernel/install.d/90-loaderentry.install
  /usr/lib/kernel/install.d/90-uki-copy.install
Plugin environment:
  LC_COLLATE=C.UTF-8
  KERNEL_INSTALL_VERBOSE=1
  KERNEL_INSTALL_IMAGE_TYPE=pe
  KERNEL_INSTALL_MACHINE_ID=499a93591e894154a0ad62ae039a0397
  KERNEL_INSTALL_ENTRY_TOKEN=499a93591e894154a0ad62ae039a0397
  KERNEL_INSTALL_BOOT_ROOT=/boot
  KERNEL_INSTALL_LAYOUT=compat
  KERNEL_INSTALL_INITRD_GENERATOR=none
  KERNEL_INSTALL_UKI_GENERATOR=none
  KERNEL_INSTALL_STAGING_AREA=/tmp/kernel-install.staging.SNU4u2
Plugin arguments: add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(sd-executor)' as PID 93458.
About to execute /usr/lib/kernel/install.d/00-00machineid-directory.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93459.
/usr/lib/kernel/install.d/00-00machineid-directory.install succeeded.
About to execute /usr/lib/kernel/install.d/10-copy-prebuilt.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93460.
/usr/lib/kernel/install.d/10-copy-prebuilt.install succeeded.
About to execute /usr/lib/kernel/install.d/50-depmod.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93462.
+depmod -a 6.6.13-gentoo
/usr/lib/kernel/install.d/50-depmod.install succeeded.
About to execute /usr/lib/kernel/install.d/50-dracut.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93463.
/usr/lib/kernel/install.d/50-dracut.install succeeded.
About to execute /usr/lib/kernel/install.d/51-dracut-rescue.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93464.
Skipping, 'dracut_rescue_image' not set to 'yes' in any dracut configuration file
/usr/lib/kernel/install.d/51-dracut-rescue.install succeeded.
About to execute /usr/lib/kernel/install.d/90-compat.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93469.
/usr/lib/kernel/install.d/90-compat.install succeeded.
About to execute /usr/lib/kernel/install.d/90-loaderentry.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93471.
/usr/lib/kernel/install.d/90-loaderentry.install succeeded.
About to execute /usr/lib/kernel/install.d/90-uki-copy.install add 6.6.13-gentoo /boot/499a93591e894154a0ad62ae039a0397/6.6.13-gentoo /usr/src/linux/arch/x86/boot/bzImage
Successfully forked off '(direxec)' as PID 93472.
/usr/lib/kernel/install.d/90-uki-copy.install succeeded.
(sd-executor) succeeded.

I have not seen this on any of the servers.
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 302
Location: Nijmegen

PostPosted: Wed Feb 28, 2024 9:55 am    Post subject: Reply with quote

UnderTaket wrote:

The only difference I see now is the strange output I get after make install

I have not seen this on any of the servers.


That's systemd's kernel-install (sys-kernel/installkernel[systemd]). It may be a bit more verbose than you are used to but from this log it appears to install your kernel successfully and you did find it in /boot, so I doubt the problem is here.
_________________
OS: Gentoo 6.8.10-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1716

PostPosted: Wed Feb 28, 2024 10:23 am    Post subject: Reply with quote

Now this is a bit beyond me, but I hope more knowledgeable fellow Gentooers will comment on it.

I see GCC 12 and 13. From the kernel config it looks like 12 is used, but if 13 is used for the rest of the system, can than cause issues?

Furthermore, after the recent changes in installkernel, kernels are installed differently and with different names. That might confuse the user to look for something else somewhere else and just by habits, the best description for which for me is muscle memory, the user can overlook that stuff.

Having different use flags on installkernell will cause make install to behave differently/it's actually installkernel behaving differently, being invoked by make install/. For example I think having systemd enabled will cause the kernel to be installed as kernel-<version>-gentoo in boot. Not having it will install the kernel as vmlinuz-<version>-gentoo and not having installkernel at all will leave it in /usr/src/linux/arch/x86_64/boot/bzImage where make already put it and let you deal with the rest.

So, maybe post what use flags you have enabled on installkernel?

My working hypothesis is you're not booting the kernel you think you are. Judging byt the contents of /boot you posted earlier and the output of make install you posted last, I also suspect /boot not being mounted or similar issue, because I don't see the directories reported by make install in your /boot directory.

Best Regards,
Georgi


Last edited by logrusx on Wed Feb 28, 2024 12:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 302
Location: Nijmegen

PostPosted: Wed Feb 28, 2024 10:35 am    Post subject: Reply with quote

logrusx wrote:
Having different use flags on installkernell will cause make install to behave differently/it's actually installkernel behaving differently, being invoked by make install/. For example I think having systemd enabled will cause the kernel to be installed as kernel-<version>-gentoo in boot. Not having it will install the kernel as vmlinuz-<version>-gentoo and not having installkernel at all will install it in /usr/src/linux/arch/x86_64/boot/bzImage and let you deal with the rest.


Small correction, the kernel is always installed to /usr/src/linux/arch/x86/boot/bzImage, this is where 'make' puts it.
'make install', without /sbin/installkernel will copy this bzImage to /boot/bzImage.
_________________
OS: Gentoo 6.8.10-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1716

PostPosted: Wed Feb 28, 2024 12:01 pm    Post subject: Reply with quote

AndrewAmmerlaan wrote:
logrusx wrote:
Having different use flags on installkernell will cause make install to behave differently/it's actually installkernel behaving differently, being invoked by make install/. For example I think having systemd enabled will cause the kernel to be installed as kernel-<version>-gentoo in boot. Not having it will install the kernel as vmlinuz-<version>-gentoo and not having installkernel at all will install it in /usr/src/linux/arch/x86_64/boot/bzImage and let you deal with the rest.


Small correction, the kernel is always installed to /usr/src/linux/arch/x86/boot/bzImage, this is where 'make' puts it.
'make install', without /sbin/installkernel will copy this bzImage to /boot/bzImage.


Yes, thanks for the clarification. Maybe I should have said it leaves it alone where it already is.

I'm actually nor fully aware of all the cases, that's why I only mentioned the ones I observer recently, just as an example

p.s. corrected in the original post.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Feb 28, 2024 7:25 pm    Post subject: Reply with quote

UnderTaket,

Code:
gcc-12, 6.6.13-gentoo


You have gcc-12 and gcc-13 installed with gcc-12 currently selected. Don't change that now as the kernel and all of its modules must be built with identical gcc versions.
Consider switching to gcc-13 soon though.

You are running 6.6.13-gentoo but when was it built?
Please share the output of
Code:
uname -a


Invoking
Code:
make
to build the kernel on your system is a bit of a waste of time' as it will only use a single thread.
Code:
make -jX
will use X threads.

I still install my kernel with something like
Code:
cp arch/x86_64/boot/bzImage /boot/EFI/EFI/SYSLINUX/6.7.6-gentoo

_________________
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
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Thu Feb 29, 2024 2:00 am    Post subject: Reply with quote

Perhaps my system is not assembled the way gentoo is usually assembled. I install Systemd when installing the system by selecting the appropriate stage3 image. I also don’t mount the /boot directory, I only have mounted / and /boot as a directory.
I did not change the native version of the compiler, perhaps gcc13 was installed by the dependencies of some system component, although I could be wrong.
Code:

UUID=ec88c8e1-a3b7-4037-9b43-1959b3d72a92               /               ext4            defaults,noatime           0 1


use flags used on my system:
Code:

localhost ~ # cat /etc/portage/make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=znver3 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

MAKEOPTS="-j2"
ACCEPT_LICENSE="*"

USE="-gtk -gnome -qt5 -kde -X systemd pulseaudio gzip python"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8

GRUB_PLATFORMS="pc"


I can neglect make -jX in the case of assembling the kernel, since this is a vps with one core, the kernel is assembled in 15-20 minutes, which is not a critical point in working with this server.

Perhaps the bzImage is copied to the /boot directory, since I don't see a time difference between creating the bzImage and kernel-x.x.x-getnoo in the boot directory. The difference of several minutes is due to the human factor, since I ran all the commands separately from each other.
Code:

localhost ~ # ls -al /usr/src/linux/arch/x86/boot/bzImage
-rw-r--r-- 1 root root 12550144 Feb 28 16:39 /usr/src/linux/arch/x86/boot/bzImage
localhost ~ # ls -al /boot/kernel-6.6.13-gentoo
-rw-r--r-- 1 root root 12550144 Feb 28 16:44 /boot/kernel-6.6.13-gentoo


If I understand everything correctly, then the InstallKernel installation date
Code:

2024-02-23T17:44:03 >>> sys-kernel/installkernel: 10s
Back to top
View user's profile Send private message
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Thu Feb 29, 2024 2:02 am    Post subject: Reply with quote

Today I will try to copy bzImage to /boot myself and write information about the results.
Back to top
View user's profile Send private message
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Thu Feb 29, 2024 2:22 pm    Post subject: Reply with quote

The copied bzImage gives the same result.
Code:

nf_tables: Unknown symbol crc32c (err -2)
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1716

PostPosted: Thu Feb 29, 2024 4:13 pm    Post subject: Reply with quote

If you don't answer the questions you're asked, you're not getting help. I don't like it to ask over and over again and when I get a replay for you, because you haven't answered the questions, I have to go back and refresh what the issue was and ask again. That thread is becoming rather long because the lack of answers and random actions by your side. That's too uncomfortable for me. If you had just answered what you were asked right away without you doing random stuff, even with longer delays, that would have flown smoothly. I'm out. Good luck.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Feb 29, 2024 4:52 pm    Post subject: Reply with quote

UnderTaket,

Code:
localhost ~ # ls -al /usr/src/linux/arch/x86/boot/bzImage
-rw-r--r-- 1 root root 12550144 Feb 28 16:39 /usr/src/linux/arch/x86/boot/bzImage
localhost ~ # ls -al /boot/kernel-6.6.13-gentoo
-rw-r--r-- 1 root root 12550144 Feb 28 16:44 /boot/kernel-6.6.13-gentoo


That is required but not sufficient to know which kernel kernel you are actually running.
We can only determine that from
Code:
uname -a


Lets take this one step at a time. Please don't ask for help here, then go away and do random things for yourself.
You helpers need to be able to track the state of your system so that they can understand it.
That tracking ability is lost if you change the system state by doing thing things that were not requested.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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