Microcode

Introduction

Microcode is a technique that imposes an interpreter between the hardware and the architectural level of a computer. Processor vendors, e.g., Intel and AMD, release updates to the processor microcode for some reasons, e.g., bug fixes, which can be applied by the Linux kernel during boot.

Installation

Taking ArchLinux for instance, intel-ucode should be installed for Intel processors; while amd-ucode is needed for AMD processors.

Configuration

After the installation, in order to make the Linux kernel apply the microcode, image /boot/intel-ucode.img must be enabled as te first initrd in the bootloader configuration file. For systemd-boot, an example configuration can be listed as follows.

/boot/loader/entries/arch.conf

title	Arch Linux
linux	/vmlinuz-linux
initrd	/intel-ucode.img
initrd	/initramfs-linux.img
options	root=UUID=a2d1afa4-4a38-4849-a4e7-ab5a5c4dba8d rw

Afterwards, the updated microcode will be loaded at the boot.