SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Here are my notes for running microcode just before the initrd with elilo:
Code:
2021/02/24
https://wiki.gentoo.org/wiki/AMD_microcode
do after kernel-firmware update (as needed)
check: dmesg | grep microcode
Firmware files preparation
linux-firmware method
Enable the initramfs USE flag for sys-kernel/linux-firmware to get
/boot/amd-uc.img and re-generate the initramfs.
Manual initramfs
Create the specified directory and cd into it. It might be a different dir
than /tmp. The kernel/x86/microcode part is important.
as root user
--- START cut & paste ---
mkdir -p /tmp/amd-ucode/kernel/x86/microcode
cd /tmp/amd-ucode
#Concatenate the AMD firmware files into a single file. The path and filename
#of the output file must not be altered.
cat /lib/firmware/amd-ucode/microcode_amd*.bin > kernel/x86/microcode/AuthenticAMD.bin
#Create a cpio archive in /boot/amd-uc.img using bsdcpio from
#app-arch/libarchive:
echo kernel/x86/microcode/AuthenticAMD.bin | bsdcpio -o -H newc -R 0:0 > /boot/amd-uc.img
--- END cut & paste ---
mkinitrd.conf, add:
MICROCODE_ARCH="/boot/amd-uc.img"
mkinitrd -F [kernel version]
Here's my mkinitrd.conf file. This is used with the mkinitrd command at the end of my notes above:
BUT I ran grub-mkconfig -o /boot/grub/grub.cfg and this is the output;
Code:
>grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.36
Found initrd image: /boot/amd-ucode.img /boot/initrd.gz
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
And aus9 there is no update-grub or grub-update in grub-2.06, when making changes like this, you run; grub-mkconfig -o /boot/grub/grub.cfg
Now this is a line inside the grub.cfg, reflecting changes/adding in the amd-ucode.img; (Now I have several entires like this...)
suggests when they updated, Debian forgot to remove the executable that Slackware is now missing.
But anyone getting a nightly/monthly snapshot will miss out......which is interesting to note, as I have always relied on it.
but its only a script so in case it helps others
Code:
cat /usr/sbin/update-grub
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
and yes I can see you have already posted similar, IMHO update-grub is easier to type and remember.
Be kind as I am an oldie
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.