AMD microcode/ucode update for Slackware 14.2?
Just a curiosity - I am wondering if there is a way to update AMD CPU ucode in 14.2 - I see on slackbuilds that the Intel ucode is available (iucode-tool), but I have not found amd64-ucode like other distros (e.g. Ubuntu, Arch). Is there something that exists like this for Slackware?
|
AMD microcode updates are included with the kernel-firmware package. However, I've heard that even though the kernel is supposed to load those automatically on boot, that it hasn't been.
Another way to update your microcode is by updating your BIOS/UEFI, if there's supported updates for your motherboard. |
Quote:
I had read about kernel-firmware providing that, and I've got the latest updates via slackpkg (as of a few days ago) for 14.2, but know its a bit 'behind' where -current or other distros are in terms of kernel revision, so figured maybe that was part of it. According to what I've polled off of the CPU, it has a recent but not latest firmware, which is also what led me to this reasoning. Motherboard updates ended a long time ago (like most motherboards older than 3 months ha!) - it's had the latest BIOS installed for years, but that's not in-line with the latest updates from AMD. Ah well, it's not like it is having any problems and it does have a recent-ish firmware (if I'm not mistaken, its not *that* far behind the latest, which leads me to believe 14.2 *is* updating it over the motherboard, just not 'enough' because it doesn't have the latest package (yet?)). |
Have you checked your dmesg to see what microcode is being loaded (and compare that with what is the latest for your CPU)? According to Gentoo's wiki on Ryzens, my Ryzen 7 has the latest microcode already provided (via my UEFI).
Code:
dmesg | grep microcode Code:
+--------------------------+ Code:
echo 1 > /sys/devices/system/cpu/microcode/reload |
Yes I did check dmesg and cpuinfo - it was a revision or two behind (just based on the version #s) according to the latest I'm aware of (via spectre-meltdown-checker, which also nicely checks microcode updates for us). Is there a way to check what specific package is being distributed within the kernel-firmware package (as in, what is it 'supposed to be' doing)? (the release notes don't seem to have more information than what you copy/pasted that I could find)
|
If you use an initrd, you can use that to load the new firmware at boot.
EDIT: I only have AMD CPUs on my laptops/desktops. (My wife has an Intel laptop, but I don't hold that against her.) I think I've posted this somewhere else, but another version isn't horrible. Note that my swap lives on an lvm logical volume and this is from a laptop where I do encrypt my lvm physical volume(s). Code:
bash-5.0$ cat mkinitrd.conf Code:
root@sonicmaster:~# cat bin/make-amd-ucode-cpio.sh Code:
root@sonicmaster:~# cat bin/mkinit.sh Code:
root@sonicmaster:~# cat bin/mkgrub.sh |
Quote:
https://git.kernel.org/pub/scm/linux.../log/amd-ucode But it doesn't really show much. I'm not sure if there's a place to get more detailed information. |
Quote:
Jul 15 15:59:52 darkstar kernel: [ 4.356400] microcode: CPU0: patch_level=0x07030105 Jul 15 15:59:52 darkstar kernel: [ 4.357769] microcode: CPU1: patch_level=0x07030105 Jul 15 15:59:52 darkstar kernel: [ 4.359207] microcode: CPU2: patch_level=0x07030105 Jul 15 15:59:52 darkstar kernel: [ 4.360576] microcode: CPU3: patch_level=0x07030105 Jul 15 15:59:52 darkstar kernel: [ 4.361927] microcode: Microcode Update Driver: v2.2. |
To be honest, I'm positive that someone else posted the original in this forum sometime in the past.
|
All times are GMT -5. The time now is 12:30 PM. |