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 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
UnderTaket
n00b
n00b


Joined: 10 Oct 2023
Posts: 17

PostPosted: Sat Feb 24, 2024 9:10 am    Post subject: The recompiled kernel is not installed. Reply with quote

Hello,
The recompiled kernel is not installed.
I don't quite understand what output I get from make install.
All I did when recompiling was adding the nftables modules according to the instructions https://wiki.gentoo.org/wiki/Nftables

Code:

localhost /usr/src/linux # make install
  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.8d6FNf
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 384.
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 385.
/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 386.
/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 388.
+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 389.
/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 390.
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 395.
/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 397.
/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 398.
/usr/lib/kernel/install.d/90-uki-copy.install succeeded.
(sd-executor) succeeded.
[/code
]
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 277
Location: Nijmegen

PostPosted: Sat Feb 24, 2024 9:32 am    Post subject: Re: The recompiled kernel is not installed. Reply with quote

What makes you think it is not installed?

Since you have `layout=compat`, 90-compat.install will handle installing your kernel and it says:

Code:
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 395.
/usr/lib/kernel/install.d/90-compat.install succeeded.


There is no error so you should find the installed kernel at /boot/kernel-6.6.13-gentoo
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
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: Sat Feb 24, 2024 10:18 am    Post subject: Reply with quote

It’s strange then that nftables won’t start.
In dmesq I see these errors:
Code:

[ 3.044351] nf_tables: Unknown symbol crc32c (err -2)
[ 3.053822] nf_tables: Unknown symbol crc32c (err -2)
[ 10.204269] (udev-worker) (152) used greatest stack depth: 12744 bytes left
[ 94.762194] nf_tables: Unknown symbol crc32c (err -2)
[ 94.766335] nf_tables: Unknown symbol crc32c (err -2)
[ 4450.238561] nf_tables: Unknown symbol crc32c (err -2)
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 277
Location: Nijmegen

PostPosted: Sat Feb 24, 2024 10:21 am    Post subject: Reply with quote

To double check, could you show us the contents of /boot, and the configuration of your bootloader (e.g. grub.cfg)?
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
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
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 24, 2024 10:23 am    Post subject: Reply with quote

UnderTaket,

Installing the kernel is one thing. Booting it is another.

What does
Code:
uname -a
say?
I get
Code:
$ uname -a
Linux neddy_static 6.7.3-gentoo #1 SMP PREEMPT_DYNAMIC Sun Feb  4 10:24:32 GMT 2024 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux


Check your kernel version that's 6.7.3-gentoo above.
Check the kernel build time Sun Feb 4 10:24:32 GMT 2024.

Are you running the kernel you think you are?

Code:
Unknown symbol
errors are often the result of running a kernel from one build and the modules from another build of the same kernel version.
_________________
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: Sat Feb 24, 2024 11:34 am    Post subject: Reply with quote

There were several reassemblies, maybe the modules were from another one, but I don’t know how to check.

uname -a
Code:

Linux localhost 6.6.13-gentoo #2 SMP PREEMPT_DYNAMIC Wed Feb 21 17:50:41 +07 2024 x86_64 AMD EPYC 7763 64-Core Processor AuthenticAMD GNU/Linux


ls -al /boot
Code:

-rw-r--r--  1 root root   140604 Sep 18 13:38 config-6.1.53-gentoo
-rw-r--r--  1 root root   144376 Feb 21 18:27 config-6.6.13-gentoo
drwxr-xr-x  4 root root     4096 Feb 24 18:01 grub
-rw-r--r--  1 root root 12550688 Feb 24 18:00 kernel-6.6.13-gentoo
-rw-r--r--  1 root root  4702284 Sep 18 13:38 System.map-6.1.53-gentoo
-rw-r--r--  1 root root  7603804 Feb 21 18:27 System.map-6.6.13-gentoo
-rw-r--r--  1 root root 11959360 Sep 18 13:38 vmlinuz-6.1.53-gentoo
-rw-r--r--  1 root root 13281280 Feb 21 18:27 vmlinuz-6.6.13-gentoo


grub.cfg
Code:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if loadfont unicode ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
        load_video
        if [ "x$grub_platform" = xefi ]; then
                set gfxpayload=keep
        fi
        insmod gzio
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
        echo    'Loading Linux 6.6.13-gentoo ...'
        linux   /boot/vmlinuz-6.6.13-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro 
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-advanced-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.6.13-gentoo ...'
                linux   /boot/vmlinuz-6.6.13-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro 
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-recovery-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.6.13-gentoo ...'
                linux   /boot/vmlinuz-6.6.13-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro single
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.1.53-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.53-gentoo-advanced-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.1.53-gentoo ...'
                linux   /boot/vmlinuz-6.1.53-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro 
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.1.53-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.53-gentoo-recovery-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.1.53-gentoo ...'
                linux   /boot/vmlinuz-6.1.53-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro single
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-advanced-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.6.13-gentoo ...'
                linux   /boot/kernel-6.6.13-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro 
        }
        menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-recovery-ec88c8e1-a3b7-4037-9b43-1959b3d72a92' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root ec88c8e1-a3b7-4037-9b43-1959b3d72a92
                echo    'Loading Linux 6.6.13-gentoo ...'
                linux   /boot/kernel-6.6.13-gentoo root=PARTUUID=b1f7d751-5f80-5049-9a99-f5c2c8b5a4bc ro single
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        fwsetup --is-supported
        if [ "$?" = 0 ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 277
Location: Nijmegen

PostPosted: Sat Feb 24, 2024 11:49 am    Post subject: Reply with quote

UnderTaket wrote:
ls -al /boot
Code:

-rw-r--r--  1 root root   140604 Sep 18 13:38 config-6.1.53-gentoo
-rw-r--r--  1 root root   144376 Feb 21 18:27 config-6.6.13-gentoo
drwxr-xr-x  4 root root     4096 Feb 24 18:01 grub
-rw-r--r--  1 root root 12550688 Feb 24 18:00 kernel-6.6.13-gentoo
-rw-r--r--  1 root root  4702284 Sep 18 13:38 System.map-6.1.53-gentoo
-rw-r--r--  1 root root  7603804 Feb 21 18:27 System.map-6.6.13-gentoo
-rw-r--r--  1 root root 11959360 Sep 18 13:38 vmlinuz-6.1.53-gentoo
-rw-r--r--  1 root root 13281280 Feb 21 18:27 vmlinuz-6.6.13-gentoo



Your new kernel is kernel-6.6.13-gentoo (installed by installkernel[systemd]), your old kernel is vmlinuz-6.6.13-gentoo (installed by installkernel version 12 or earlier or installkernel[-systemd]). Because vmlinuz is alphabetically later then kernel it will boot this first. To fix your issue, clean-up the vmlinuz file left over by the old installkernel.

[EDIT]As a side note, since you are using GRUB, you may want to enable the grub USE flag on sys-kernel/installkernel to automate updating your grub.cfg.
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
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: Sat Feb 24, 2024 1:26 pm    Post subject: Reply with quote

I removed the old kernel and updated the bootloader, rebuilt the kernel, but the result is the same.
Error nf_tables: Unknown symbol crc32c (err -2)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4264
Location: Bavaria

PostPosted: Sat Feb 24, 2024 1:47 pm    Post subject: Reply with quote

Check with "make menuconfig" if you have this:
Code:
-*- Cryptographic API  --->
    CRCs (cyclic redundancy checks)  --->
        -*- CRC32c

You might (if your cpu is capable; check with "lscpu") also enable the accelerated module with:
Code:
-*- Cryptographic API  --->
    Accelerated Cryptographic Algorithms for CPU (x86)  --->
        [*] CRC32c (SSE4.2/PCLMULQDQ)
        [*] CRC32 (PCLMULQDQ)

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Sat Feb 24, 2024 1:50 pm    Post subject: Reply with quote

It might be a shot in the dark, but did you run make modules_install?

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


Joined: 10 Oct 2023
Posts: 17

PostPosted: Sat Feb 24, 2024 3:09 pm    Post subject: Reply with quote

CRC32c yes
CRC32 added, the necessary instructions are in the processor

I start the build and installation like this:
Code:

make && make modules_install install
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Sat Feb 24, 2024 3:24 pm    Post subject: Reply with quote

You haven't shared your kernel config. Could you please do so?

Best Regards,
Georgi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4264
Location: Bavaria

PostPosted: Sat Feb 24, 2024 3:25 pm    Post subject: Reply with quote

UnderTaket wrote:
[...]
I start the build and installation like this:
Code:
make && make modules_install install

You should use:
Code:
make && make modules_install && make install

;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Sat Feb 24, 2024 3:55 pm    Post subject: Reply with quote

GNU Make can handle more than one target at a time, and in parallel-aware setups, specifying all the desired targets in a single call to Make is better. I think make modules_install install is fine.
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 277
Location: Nijmegen

PostPosted: Sat Feb 24, 2024 4:03 pm    Post subject: Reply with quote

Hu wrote:
GNU Make can handle more than one target at a time, and in parallel-aware setups, specifying all the desired targets in a single call to Make is better. I think make modules_install install is fine.


What about the order here though? If you execute make like this does it do modules_install before install, or at the same time? Because make install is going to call depmod, which you probably don't want to do if the make modules_install has not finished yet.
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
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: Sat Feb 24, 2024 4:26 pm    Post subject: Reply with quote

In this case it doesn't matter
Code:

make && make modules_install && make install

gives the same effect, nftables error
Kernel config in attachment.
https://pastebin.com/TXcqXtzd
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 24, 2024 4:32 pm    Post subject: Reply with quote

UnderTaket,

Has your time stepped backwards?

This time run
Code:
make clean
make -jX (where X is the number of threads to use)
make modules_install
make install


That will clear out all of the output build products and ensure that you get a complete clean kernel build.
The .config will not be harmed.

Its important to run each command separately. If you get any errors, do not perform the next step and report the errors.
_________________
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: Sat Feb 24, 2024 4:44 pm    Post subject: Reply with quote

I run make clean before building the kernel.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21738

PostPosted: Sat Feb 24, 2024 4:52 pm    Post subject: Reply with quote

AndrewAmmerlaan wrote:
What about the order here though? If you execute make like this does it do modules_install before install, or at the same time? Because make install is going to call depmod, which you probably don't want to do if the make modules_install has not finished yet.
The OP did not specify parallelism, so GNU make should process these targets serially, in left-to-right order. (Running fewer Make processes is still good even in the serial case, for the reduced overhead of not re-reading all the Makefile fragments.) If install depends on modules_install, then the Makefile author should write a dependency to express this, which would then force modules_install to complete before install starts. However, as I read the Makefile here, depmod is done by modules_install, not by install.
Code:

modules_install:
   $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
ifndef modules_sign_only
   $(call cmd,depmod)
endif
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Sat Feb 24, 2024 5:25 pm    Post subject: Reply with quote

UnderTaket wrote:
In this case it doesn't matter
Code:

make && make modules_install && make install

gives the same effect, nftables error
Kernel config in attachment.
https://pastebin.com/TXcqXtzd


Is there any reason to still be on GCC 12?

UnderTaket wrote:
I removed the old kernel and updated the bootloader, rebuilt the kernel, but the result is the same.
Error nf_tables: Unknown symbol crc32c (err -2)


How do you make sure you boot the right kernel? I usually go to the advanced menu to see if the fresh kernel is the first option and explicitly select it if necessary.

Best Regards,
Georgi


Last edited by logrusx on Sat Feb 24, 2024 5:37 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 24, 2024 5:30 pm    Post subject: Reply with quote

UnderTaket

Please post the output of
Code:
uname -a

_________________
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
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 277
Location: Nijmegen

PostPosted: Sat Feb 24, 2024 5:31 pm    Post subject: Reply with quote

Hu wrote:
AndrewAmmerlaan wrote:
What about the order here though? If you execute make like this does it do modules_install before install, or at the same time? Because make install is going to call depmod, which you probably don't want to do if the make modules_install has not finished yet.
The OP did not specify parallelism, so GNU make should process these targets serially, in left-to-right order. (Running fewer Make processes is still good even in the serial case, for the reduced overhead of not re-reading all the Makefile fragments.) If install depends on modules_install, then the Makefile author should write a dependency to express this, which would then force modules_install to complete before install starts. However, as I read the Makefile here, depmod is done by modules_install, not by install.
Code:

modules_install:
   $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
ifndef modules_sign_only
   $(call cmd,depmod)
endif


Depmod is also run by /usr/lib/kernel/install.d/50-depmod.install (run by make install) hence my question about the order.
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
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: Mon Feb 26, 2024 12:44 pm    Post subject: Reply with quote

Currently there is only one core in the system
Code:

Available kernel symlink targets:
  [1]   linux-6.6.13-gentoo*
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Mon Feb 26, 2024 1:37 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1693

PostPosted: Mon Feb 26, 2024 1:43 pm    Post subject: Reply with quote

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.
Code:
grknight@server2 ~ $ grep -r '\-gentoo' /usr/src/linux/.config
# Linux/x86 5.15.142-gentoo Kernel Configuration

Code:
grknight@server1 ~ $ grep -r '\-gentoo' /usr/src/linux/.config
# Linux/x86 6.1.67-gentoo Kernel Configuration
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 1, 2  Next
Page 1 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