LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Linux-4.8-rc2 fails reading AMD microcode, /boot/amd-ucode.cpio (https://www.linuxquestions.org/questions/linux-kernel-70/linux-4-8-rc2-fails-reading-amd-microcode-boot-amd-ucode-cpio-4175587110/)

aaazen 08-15-2016 11:31 AM

Linux-4.8-rc2 fails reading AMD microcode, /boot/amd-ucode.cpio
 
On Slackware-current, I run this script to create a /boot/amd-ucode.cpio file:
Code:

#! /bin/sh
set -x
set -e

LIB=/lib/firmware/amd-ucode/
TDIR=kernel/x86/microcode
CPIO=/boot/amd-ucode.cpio

echo "Create the $CPIO file from the $LIB directory of files"
rm -rf  /tmp/amd-ucode-cpio
mkdir -p /tmp/amd-ucode-cpio
cd      /tmp/amd-ucode-cpio
mkdir -p  $TDIR
find $LIB -type f -name \*bin | sort | xargs cat > $TDIR/AuthenticAMD.bin
find . | cpio --no-absolute-filenames -H newc -o -F $CPIO

exit

echo "Concatenate $CPIO and /boot/initrd-4.4.15.gz creating /boot/initrd.gz"
cat $CPIO /boot/initrd-4.4.15.gz > /boot/initrd.gz
exit

When I use the /boot/amd-ucode.cpio with the Linux-4.8-rc2 kernel the system immediately reboots with no error messages.

The /boot/amd-ucode.cpio file works fine with other kernels version 4.7 and older.

Here is my lilo entry for 4.8-rc2:
Code:

# Linux bootable partition config begins
image = /boot/vmlinuz-huge-4.8-rc2
  initrd = /boot/amd-ucode.cpio
  root = /dev/sda8
  label = linux-huge-4.8
  read-only  # Partitions should be mounted read-only for checking
#  addappend="console=ttyS0,38400"
# Linux bootable partition config ends

Version 4.8-rc1 fails too in the same way.

I tested 4.8-rc2 with the Intel microcode, /boot/intel-ucode.cpio and it boots fine.

The intel microcode can be created by installing the iucode-tool and intel-microcode packages from Slackbuilds.org:

https://slackbuilds.org/repository/1...m/iucode_tool/

https://slackbuilds.org/repository/1...tel-microcode/

aaazen 08-22-2016 08:33 AM

This is now fixed in linux 4.8-rc3

Thanks to all the kernel developers!

Update 14:59 UTC:

Kernel patch: https://lkml.org/lkml/2016/8/17/131

Kernel announcement: https://lkml.org/lkml/2016/8/21/378


All times are GMT -5. The time now is 09:51 AM.