Package Base Details: linux-amd-znver2

Git Clone URL: https://aur.archlinux.org/linux-amd-znver2.git (read-only, click to copy)
Submitter: eggz
Maintainer: eggz (NhaMeh)
Last Packager: eggz
Votes: 9
Popularity: 1.01
First Submitted: 2020-10-26 18:04
Last Updated: 2021-09-22 11:22

Pinned Comments

eggz commented on 2020-10-26 18:15

Tired of compiling? Use this binary repo instead! Add this at the end of /etc/pacman.conf :

[linuxkernels]
Server = http://nhameh.ovh/$repo/$arch
SigLevel = Optional TrustAll

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

eggz commented on 2021-01-25 10:12

Even more triviatime: aur/linux-amd is currently standing by to be optimised for znver3 (RYZEN 5000 Desktop Series). For now, they are "equal". I will try to use linux-amd to always represent the "upstream" tech, so the latest architecture. Linux-amd will most likely continue working fine for ALL ryzen hardware though on the surface.

DanEng1982 commented on 2021-01-25 09:49

znver2 is the name of the AMD Ryzen Zen2 microarchitecture meaning this is a highly optimized Kernel that, if you have an AMD Ryzen CPU, can be used for gaming, audio/video and things like that.

Moo-Crumpus commented on 2021-01-25 09:46

Just for the newbies asking stupid questions, like me: what is znver?

Kryesh commented on 2021-01-24 11:12

That was fast! I rebuilt the package it looks like it did the trick, awesome work

Thanks again for making and maintaining this build!

eggz commented on 2021-01-24 09:49

Kryesh, thanks to your clear indications, I found the problem.

The "order" you are withnessing with linux-zen (and not with my kernel) is because of the "/usr/share/libalpm/hooks/90-mkinitcpio-install.hook" pacman hook.

Apperantly, it expects the vmlinuz to be also (next to /boot obviously) written to /usr/lib/modules/*/vmlinuz. I adapted the packaging to do this, to respect this particular pacman hook.

For me, this extra copy seems to the trick (and the declaration of the "pkgbase" since this particular hook seems to need that).

Let me know the results.

eggz commented on 2021-01-24 02:03

hey there, thx for letting me know.

there are no real diffrences between my linux.install file and the (hidden, but still on the git of) linux-zen.install file, we both call depmod and then do a mkinicpio in that order.

please note that you are comparing an upgrade to a reinstall, though I do think you are still on to something here.

I'll take a look at this interesting topic when I have the time.

Thanks again.

Kryesh commented on 2021-01-24 01:11

Hi, Thanks for making this package!

I think I've found a minor ordering issue with the package installation, the initcpio image is generated before dkms modules are built. this means that if there is a dkms package included in the mkinicpio config the image fails to build. rerunning "sudo mkinitcpio -p linux-amd-znver2" after package installation builds the images correctly as the dkms processes have completed. In my case it's necessary as I need to include zfs-dkms.

From yay output:

--snip--
-> Running build hook: [zfs]
==> ERROR: module not found: `zavl'
==> ERROR: module not found: `znvpair'
==> ERROR: module not found: `zunicode'
==> ERROR: module not found: `zcommon'
==> ERROR: module not found: `zfs'
==> ERROR: module not found: `spl'
  -> Running build hook: [mdadm_udev]
Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays.
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-amd-znver2-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
(2/2) upgrading linux-amd-znver2-headers                  [###############################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> dkms install --no-depmod -m zfs -v 2.0.1 -k 5.10.10-AMD-znver2
==> dkms install --no-depmod -m ddcci -v 0.3.3 -k 5.10.10-AMD-znver2
==> depmod 5.10.10-AMD-znver2
--snip--

Example from the linux-zen package with correct ordering:

--snip--
:: Processing package changes...
(1/2) reinstalling linux-zen                                                                                                           [##################################################################################] 100%
(2/2) reinstalling linux-zen-headers                                                                                                   [##################################################################################] 100%
:: Running post-transaction hooks...
(1/5) Restoring Linux kernel modules...
++ uname -r
+ KVER=5.10.9-AMD-znver2
+ test -e /usr/lib/modules/backup/5.10.9-AMD-znver2
+ rm -rf /usr/lib/modules/backup
(2/5) Arming ConditionNeedsUpdate...
(3/5) Updating module dependencies...
(4/5) Install DKMS modules
==> dkms install --no-depmod -m zfs -v 2.0.1 -k 5.10.9-zen1-1-zen
==> dkms install --no-depmod -m ddcci -v 0.3.3 -k 5.10.9-zen1-1-zen
==> depmod 5.10.9-zen1-1-zen
(5/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
--snip--

I hope that makes sense, thanks!

DanEng1982 commented on 2021-01-01 12:17

Hey, I wish you a happy new year. I love your work and I was just wondering if you would be happy to upstream your updates to the Hefftor Linux Repo? If so, can you please contact me either via the Hefftor Linux Official Telegram group under nickname Able Archer or under daniel.engelthaler@gmail.com ? Thank you very much! Dan

hockeymikey commented on 2020-12-22 07:18

@eggz you're amazing! Working great

eggz commented on 2020-12-20 11:59

@hockeymikey

Great catch. I made the headerpackage more flexible, normally this shouldn't happen anymore in the future for other modules.

Thanks again. Let me know if the compile works now!