Microcode

De Wiki Hackstore

Compile os requisitos

emerge sys-apps/iucode_tool sys-firmware/intel-microcode


Identifique qual é o microcode adequado ao seu processador

/usr/sbin/iucode_tool -tb -lS /lib/firmware/intel-ucode/*

No meu caso, foi selecionado o bundle 50:

microcode bundle 50: /lib/firmware/intel-ucode/06-3d-04

selected microcodes:
  050/001: sig 0x000306d4, pf_mask 0xc0, 2017-01-27, rev 0x0025, size 17408


Prepare o kernel

Adicione o bundle à opção CONFIG_EXTRA_FIRMWARE, lembrando de adicionar o diretório /lib/firmware ao CONFIG_EXTRA_FIRMWARE_DIR

Processor type and features --->
   <*> CPU microcode loading support
   [*] Intel microcode loading support
   [] AMD microcode loading support
Device Drivers --->
   Generic Driver Options --->
      (intel-ucode/06-3d-04) External firmware blobs to build into the kernel binary
      (/lib/firmware) Firmware blobs root directory

Recompile o kernel e reboote. Para conferir, após o reboot, digite:

dmesg |grep microcode

Deverá retornar:

[    0.000000] microcode: microcode updated early to revision 0x25, date = 2017-01-27
[    0.358096] microcode: sig=0x306d4, pf=0x40, revision=0x25
[    0.358145] microcode: Microcode Update Driver: v2.2.