How To: Early-loading of Intel Microcode
After slogging thru Linux forums and Wiki-pages, and Intel's website, I pieced together a process for obtaining and installing (for early-loading) appropriate Intel microcode for the processor on my Slackare Linux box.
So I do not have to worry about forgetting the process I "wrote" it down. The process - which can be mostly-completed by copying-n-pasting example shell commands in the document - is available at: https://www.bernieland.com/share/how...y_loading.html |
Thank you BernieK. I hadn't updated in a long time and the reminder was appreciated. I never use initrd so I had to dig a bit deeper to first recall lilo.conf entry (for older installs) and then adapt to rEFInd (for newer). This was just to confirm it loaded the newest but apparently once the /boot/intel-ucode.cpio directory and the /lib/firmware/ has an entry, it apparently just loads, maybe not as early as other methods, but sufficient for my requirements.
|
Quote:
Ehm.. Is there any chance you could add the information to docs.slackware? I made this article there: https://docs.slackware.com/howtos:se...rocode_loading And there is still a rather empty initrd section. I didn't yet get around to it, but at some point I will for sure. Or perhaps you could help me get it done? |
Quote:
Thank you for writing the microcode-loading page for the Slackware Documentation Project at docs.slackware.com Good news regarding the reference on that page to manually creating the /lib/firmware/amd-ucode/ directory; As of Slackware 15.0 that directory is created and populated during Slackware installation and subsequent kernel-firmware package updates. Code:
$ cat /etc/slackware-version |
Quote:
Quote:
I added that section because I didn't have those folders in the standard Slackware 15 installation :scratch: |
Quote:
I am sure with respect to the full Slackware 15.0 installations on one each of my AMD and Intel boxes. The kernel.org GIT repository suggests so as well since it includes a populated amd-ucode directory (but no intel-ucode directory): Code:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ |
All --
Just to add a me too ... there is an amd-ucode/ directory in the official Slackware64 15.0 a/kernel-firmware-20220124_eb8ea1b-noarch-1.txz Package ... HTH -- kjh Code:
# pwd |
There is another method, mentioned in a previous thread (I haven't searched for it, but I made notes at the time):
Install iucode_tool & intel-microcode from SBo. Then (as root,of course) check your present microcode: Code:
dmesg -t | grep 'microcode' Code:
iucode_tool -S -l /tmp/SBo/intel-microcode-20220510/intel-ucode/* Then (this is assuming you already have a /boot/initrd.gz): Code:
cp /boot/initrd.gz /tmp/ Code:
cat /boot/intel-ucode.cpio /tmp/initrd.gz > /boot/initrd.gz Thanks to whoever I got this information from. :hattip: |
Iucode tool is not available in Slackware by default. But ok, interesting enough.
|
Quote:
https://slackbuilds.org/repository/1...tel-microcode/ |
Quote:
|
TIMTOWTDI as somebody said.
|
Quote:
|
For those using alternative bootloaders or just too lazy to muck about with initrds, there isn't much to do. You can load intel microcode "late":
echo 1 > /sys/devices/system/cpu/microcode/reload as described in section 22.2 here: https://www.kernel.org/doc/html/late...microcode.html Of course intel-microcode from slackbuilds has to be installed. Why isn't intel microcode included in the binary blob monster package called kernel-firmware? It's got blobs for 20-year-old USB tv tuners in there but not Intel's latest CPU updates?! Edit: Sorry, I didn't see that it said "Early" in the subject line. Maybe my head needs a micorcode update. |
Quote:
|
All times are GMT -5. The time now is 07:53 AM. |