Package Details: linux-amd-znver3 6.12.v.1-1

Git Clone URL: https://aur.archlinux.org/linux-amd-znver3.git (read-only, click to copy)
Package Base: linux-amd-znver3
Description: Linux kernel aimed at the znver3 AMD Ryzen CPU based hardware
Upstream URL: https://www.kernel.org/
Licenses: GPL2
Submitter: None
Maintainer: bebna
Last Packager: bebna
Votes: 12
Popularity: 0.20
First Submitted: 2023-05-04 15:47 (UTC)
Last Updated: 2024-12-04 21:07 (UTC)

Latest Comments

1 2 3 4 5 6 .. 12 Next › Last »

gluceri commented on 2024-09-29 18:30 (UTC) (edited on 2024-09-30 06:32 (UTC) by gluceri)

2GB seems a bit too much for a custom kernel. Furthermore, dkms modules don't build because of

/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory

Archttila commented on 2024-09-29 11:13 (UTC) (edited on 2024-09-29 11:14 (UTC) by Archttila)

12GB of tmpfs is not enough for compiling the kernel... :O (16GB RAM, Sway WM)

xiota commented on 2024-08-27 10:32 (UTC)

This package needs a full review, and kernels are not good first packages. It probably should have been retired when the original maintainer quit.

My guess is debug info and modules compiled into the kernel. The config file doesn't match the Arch config.

Unlikely to be uncompressed tar files because kernel modules are individually compressed with zstd and installed kernel should be little larger than compressed package.

$ pacman -Si core/linux | grep Size
Download Size   : 135.52 MiB
Installed Size  : 135.74 MiB

Unlikely to be source code, because compressed source is only 139MiB, so including it would only double the package size.

$ du -m linux-6.10.6.tar.xz
139     linux-6.10.6.tar.xz

bebna commented on 2024-08-27 10:17 (UTC)

probably have to go over the build file and see what is going in there, perhaps it is packing the whole kernel source code in there

bebna commented on 2024-08-27 10:15 (UTC)

Sounds like uncompressed pkg.tar files.

[bebna@filcoL linux-amd-znver3]$ ls -lah linux*.pkg.*
-rw-r--r-- 1 bebna bebna 2.1G Aug 20 20:20 linux-amd-znver3-6.10.v.6-1-x86_64.pkg.tar
-rw-r--r-- 1 bebna bebna 1.9G Aug 20 20:20 linux-amd-znver3-6.10.v.6-1-x86_64.pkg.tar.lz4
-rw-r--r-- 1 bebna bebna  73M Aug 20 20:22 linux-amd-znver3-headers-6.10.v.6-1-x86_64.pkg.tar
-rw-r--r-- 1 bebna bebna  19M Aug 20 20:22 linux-amd-znver3-headers-6.10.v.6-1-x86_64.pkg.tar.lz4

scruffidog commented on 2024-08-26 18:45 (UTC) (edited on 2024-08-26 19:14 (UTC) by scruffidog)

I'm looking at the chaotic-aur prebuilt pkg and am scratching my head:

$ pacman -Si linux-amd-znver3
Repository      : chaotic-aur
Name            : linux-amd-znver3
Version         : 6.10.v.6-1
Description     : Linux kernel aimed at the znver3 AMD Ryzen CPU based hardware
Architecture    : x86_64
URL             : https://www.kernel.org/
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : coreutils  linux-firmware  kmod  lzop
Optional Deps   : crda: to set the correct wireless channels of your country
Conflicts With  : None
Replaces        : None
Download Size   : 1686.71 MiB
Installed Size  : 1958.64 MiB
Packager        : UFSCar HPC Builder <hpc.ufscar@chaotic.cx>
Build Date      : Sun 25 Aug 2024 06:01:25 AM EDT
Validated By    : SHA-256 Sum

pkg is almost 1.7G in size, which I'm very not used to. Almost everything I've looked at is typically ~140-150M in size. From the same repository, linux-amd and linux-amd-znver2 are both ~135M. Heck, even the standard arch kernel from core is in the same ballpark, as is the cachyos kernel from their regular and v3 repository.

Can anyone else who makepkg this, send a quick size count of the built pkg ?

HumphryClinker commented on 2024-08-22 15:53 (UTC) (edited on 2024-08-22 15:54 (UTC) by HumphryClinker)

Quick hack - in PKGBUILD replace

mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install

# remove build link
rm -f "${pkgdir}"/lib/modules/${_kernver}/build
# remove the firmware
rm -rf "${pkgdir}/lib/firmware"

# move module tree /lib -> /usr/lib
mkdir -p "${pkgdir}/usr"
mv "${pkgdir}/lib" "${pkgdir}/usr/"

with

mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot,usr}
ln -s "${pkgdir}"/lib "${pkgdir}"/usr/
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install

# remove build link
rm -f "${pkgdir}"/lib/modules/${_kernver}/build
# remove the firmware
rm -rf "${pkgdir}/lib/firmware"

# move module tree /lib -> /usr/lib
rm -rf "${pkgdir}"/usr/lib
mv "${pkgdir}/lib" "${pkgdir}/usr/"

teJECSke commented on 2024-08-20 14:59 (UTC) (edited on 2024-08-20 14:59 (UTC) by teJECSke)

  DEPMOD  /run/media/welder/MOL/yay/linux-amd-znver3/pkg/linux-amd-znver3/lib/modules/6.10.5-AMD-znver3
depmod: ERROR: could not open directory /run/media/welder/MOL/yay/linux-amd-znver3/pkg/linux-amd-znver3/usr/lib/modules/6.10.5-AMD-znver3: No such file or directory

/lib vs. /usr/lib

xiota commented on 2024-08-16 10:52 (UTC)

Version shouldn't have a v in middle.

bebna commented on 2024-08-15 22:27 (UTC)

@deemon @scruffidog I changed the config, tried to merge as much as possible from the mainline kernel w/o dropping the AMD changes. Probably have overseen some stuff or took to much from the mainline kernel.

I compiled and run the kernel on my system and it didn't show any problems in the first look. Drop me a comment if you find anything. Probably with the stuff I shall change in the config.