diff options
author | Yong, Jonathan <jonathan.yong@intel.com> | 2019-12-02 13:57:07 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-12-03 13:28:24 +0800 |
commit | 1470348df12e4fa9df66aee50b8faba64e16cdad (patch) | |
tree | 27de8c959ee3bef503313e152ac49d6fbdd4669b /recipes-core/microcode | |
parent | f227e3a0cac5a6193550f12426366b6afad2f778 (diff) | |
download | meta-intel-1470348df12e4fa9df66aee50b8faba64e16cdad.tar.gz |
intel-microcode: fix microcode loading on newer kernels
The /dev/microcode interface and microcode-ctl utility has
been deprecated in favor of the new kernel
/sys/devices/system/cpu/microcode/reload interface as documented in:
https://github.com/torvalds/linux/blob/master/Documentation/x86/microcode.rst
It expects the microcode binaries to be split out and loaded from
/lib/firmware, eg:
/lib/firmware/intel-ucode/06-01-01
/lib/firmware/intel-ucode/06-01-02
/lib/firmware/intel-ucode/06-01-06
/lib/firmware/intel-ucode/06-01-07
/lib/firmware/intel-ucode/06-01-09
...
This change does not affect the earlyfw cpio generated by inte-ucode.
Signed-off-by: Yong, Jonathan <jonathan.yong@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-core/microcode')
-rw-r--r-- | recipes-core/microcode/intel-microcode_20190618.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/microcode/intel-microcode_20190618.bb b/recipes-core/microcode/intel-microcode_20190618.bb index 2edf947e..fd68230a 100644 --- a/recipes-core/microcode/intel-microcode_20190618.bb +++ b/recipes-core/microcode/intel-microcode_20190618.bb | |||
@@ -45,10 +45,10 @@ do_compile() { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | do_install() { | 47 | do_install() { |
48 | install -d ${D}${base_libdir}/firmware/intel-ucode/ | 48 | install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/ |
49 | install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/ | 49 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ |
50 | cd ${D}${base_libdir}/firmware/intel-ucode/ | 50 | --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \ |
51 | ln -sf microcode_${PV}.bin microcode.bin | 51 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* |
52 | } | 52 | } |
53 | 53 | ||
54 | do_deploy() { | 54 | do_deploy() { |
@@ -63,6 +63,6 @@ addtask deploy before do_build after do_compile | |||
63 | 63 | ||
64 | PACKAGES = "${PN}" | 64 | PACKAGES = "${PN}" |
65 | 65 | ||
66 | FILES_${PN} = "${base_libdir}" | 66 | FILES_${PN} = "${nonarch_base_libdir}" |
67 | 67 | ||
68 | UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$" | 68 | UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z])$" |