Sokat töprengtem azon, megosszam e ezt a tudást is a világgal, de mivel el fogom felejteni megosztom. Van egy videó is ennek mikéntjéről a csatornámon, íme a könnyebb megértésért.
A videóban szereplő microcode_EXT.sh shell szkript a következő volt:
microcode_EXT.sh:
#!/bin/bash
#if [ -z "$1" ]; then
# echo "You need to supply an initrd file"
# exit 1
#fi
#INITRD="$1"
CURDLL="$(dirname "$(readlink -f "$0")")"
DSTDIR=kernel/x86/microcode
TMPDIR=/tmp/initrd
rm -rf $TMPDIR
mkdir $TMPDIR
cd $TMPDIR
mkdir -p $DSTDIR
if [ -d "$CURDLL"/lib/firmware/amd-ucode ]; then
cat "$CURDLL"/lib/firmware/amd-ucode/microcode_amd*.bin > $DSTDIR/AuthenticAMD.bin
fi
if [ -d "$CURDLL"/lib/firmware/intel-ucode ]; then
cat "$CURDLL"/lib/firmware/intel-ucode/* > $DSTDIR/GenuineIntel.bin
fi
find . | cpio -o -H newc >../ucode.cpio
cd ..
#mv $INITRD $INITRD.orig
#cat ucode.cpio $INITRD.orig > $INITRD
#rm -rf $TMPDIR
Illetve az előbb említett videóban szereplő HTTP.txt tartalma:
HTTP.txt:
https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ ---
forrás irodalom: https://docs.kernel.org/arch/x86/microcode.html | https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ | https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
