Linux/Tipps/Gentoo/Kernel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
→Microcode patches for Spectre
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 273: | Zeile 273: | ||
dmesg | grep microcode | dmesg | grep microcode | ||
Install microcode and tool: | |||
emerge --ask --noreplace sys-firmware/intel-microcode sys-apps/iucode_tool | emerge --ask --noreplace sys-firmware/intel-microcode sys-apps/iucode_tool | ||
iucode_tool -S --write-earlyfw=/boot/early_ucode.cpio /lib/firmware/intel-ucode/* | iucode_tool -S --write-earlyfw=/boot/early_ucode.cpio /lib/firmware/intel-ucode/* | ||
Enable kernel options: | |||
* CONFIG_BLK_DEV_INITRD: '''General setup -> Initial RAM filesystem and RAM disk (initramfs/initrd) support''' = y | * CONFIG_BLK_DEV_INITRD: '''General setup -> Initial RAM filesystem and RAM disk (initramfs/initrd) support''' = y | ||
* CONFIG_MICROCODE: '''Processor type and features -> CPU microcode loading support''' = y | * CONFIG_MICROCODE: '''Processor type and features -> CPU microcode loading support''' = y | ||
Zeile 283: | Zeile 285: | ||
vi /etc/portage/package.keywords | vi /etc/portage/package.keywords | ||
=sys-kernel/genkernel-3.5.1.1 | =sys-kernel/genkernel-3.5.1.1 | ||
Install newer genkernel: | |||
emerge --ask genkernel | emerge --ask genkernel | ||
Create new kernel: | |||
genkernel --microcode --kernel-config=.config --no-clean --makeopts=-j5 all | genkernel --microcode --kernel-config=.config --no-clean --makeopts=-j5 all |