How to update/install microcode downloaded from Intel site on Linux* Operating System

This solution has been verified by our customers to fix the issue with these environment variables

Knowledge

Troubleshooting

000029051

05/22/2019

What are you seeing?

How to update/install microcode downloaded from Intel site on Linux Operating System* 


Environment:

Intel® Xeon® Processor E5-2609


How to fix it:

How to update/install microcode downloaded from Intel site:

Only use the following method when it is recommended by the vendor otherwise stick to Linux packages as described above. Most Linux distro maintainer update microcode via the package manager. Package manager method is safe as tested by many users.

How to install Intel processor microcode blob for Linux (20180108 release):

First, visit: Linux* Processor Microcode Data File to grab the latest microcode firmware. In this example, the file named ~/Downloads/microcode-20180108.tgz (don’t forget to check for checksum) that suppose to help with meltdown/Spectre.

1) First extract it using the tar command:

$ mkdir firmware
$ cd firmware
$ tar xvf ~/Downloads/microcode-20180108.tgz
$ ls –l

Sample outputs:

drwxr-xr-x 2 vivek vivek    4096 Jan  8 12:41 intel-ucode
-rw-r--r-- 1 vivek vivek 4847056 Jan  8 12:39 microcode.dat
-rw-r--r-- 1 vivek vivek    1907 Jan  9 07:03 releasenote

2) Make sure /sys/devices/system/cpu/microcode/reload exits:
$ ls -l /sys/devices/system/cpu/microcode/reload

3) Copy all files from intel-ucode to /lib/firmware/intel-ucode/ using the cp command:
$ sudo cp -v intel-ucode/* /lib/firmware/intel-ucode/

4) Copy intel-ucode directory to /lib/firmware/. Write the reload interface to 1 to reload the microcode files:
# echo 1 > /sys/devices/system/cpu/microcode/reload

5) Update an existing initramfs so that next time it get loaded via kernel:
$ sudo update-initramfs -u
$ sudo reboot

6) Verifying that microcode got updated on boot or reloaded by echo command:
# dmesg | grep microcode


CPU microcode is a mechanism to correct certain errata in existing systems.

THE INFORMATION IN THIS ARTICLE HAS BEEN USED BY OUR CUSTOMERS BUT NOT TESTED, FULLY REPLICATED, OR VALIDATED BY INTEL. INDIVIDUAL RESULTS MAY VARY. ALL POSTINGS AND USE OF THE CONTENT ON THIS SITE ARE SUBJECT TO THE TERMS AND CONDITIONS OF USE OF THE SITE.