LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-22-2020, 08:14 PM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 476

Rep: Reputation: 60
A question about Microcode on HP GEN-8 microserver


On my Dell INTEL laptop, I have upgrade with this Slackbuild microcode from git
Code:
#!/bin/sh

# Slackware build script for intel-ucode
# Requires: iucode-tool

PRGNAM=intel-ucode
VERSION=`date +%m%Ygit`
BUILD=${BUILD:-2}
TAG=${TAG:-_mg}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

# Exit at first error
set -e

# Prepare package
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION

# Git clone
git clone https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git $PRGNAM-$VERSION
cd $PRGNAM-$VERSION

# Install for boot
rm -f intel-ucode{,-with-caveats}/list
mkdir -p kernel/x86/microcode
iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode{,-with-caveats}
echo kernel/x86/microcode/GenuineIntel.bin | bsdcpio -o -H newc -R 0:0 > /boot/intel-ucode.cpio
mkdir -p $PKG/boot
cp -a /boot/intel-ucode.cpio  $PKG/boot/intel-ucode.cpio

# Install for system
mkdir -p $PKG/lib/firmware/intel-ucode
cp intel-ucode/* $PKG/lib/firmware/intel-ucode
cd intel-ucode-with-caveats
for microcode in *;do
    cp $microcode $PKG/lib/firmware/intel-ucode/$microcode
done

# Docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -a license releasenote $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

# Install slack-desc and doinst.sh
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh

# Create Slackware Package
cd $PKG
/sbin/makepkg -l y -c n $CWD/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
The doinst.gz create the necessary initrd

Code:
#!/bin/sh

# First mkinitrd
if [ -e /etc/mkinitrd.conf ]; then
  mkinitrd -F
else
  echo "Configure /etc/mkinitrd.conf or do mkinitrd manual"
  echo "to update intel microcode"
fi

# If first op was ok update grub
if [ "$?" == "0" ]
then
grub-mkconfig -o /boot/grub/grub.cfg
else
echo "error!"
exit 1
fi
Now the results, on Dell laptop is perfect

Code:
dmesg |grep -i code|grep -i micro
microcode: microcode updated early to revision 0x26, date = 2019-11-12
[mar giu 23 01:58:08 2020] SRBDS: Mitigation: Microcode
[mar giu 23 01:58:12 2020] microcode: sig=0x40651, pf=0x40, revision=0x26
[mar giu 23 01:58:12 2020] microcode: Microcode Update Driver: v2.2.
On my HP Gen-8 with the same package still load an old(form where?) microcode.
My suspect is we have to wait HPE firmware update..

Code:
dmesg |grep -i microcode
SRBDS: Vulnerable: No microcode
microcode: sig=0x306a9, pf=0x2, revision=0x21
microcode: Microcode Update Driver: v2.2.
Any idea? Of course I have rebooted, and in mkinitrd.conf I specify to use microcode
MICROCODE_ARCH="/boot/intel-ucode.cpio"

Last edited by camerabambai; 06-22-2020 at 08:19 PM.
 
Old 06-22-2020, 11:28 PM   #2
obobskivich
Member
 
Registered: Jun 2020
Posts: 614

Rep: Reputation: Disabled
What CPU does each machine have? If the HP server is significantly older CPU, that may be the latest and greatest available from Intel. If you know what CPUs each machine has, you can check against the Intel microcode docs to see what the actual maximum version/updates available are relative to the 'newest' package.
 
Old 06-23-2020, 07:26 AM   #3
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 476

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by obobskivich View Post
What CPU does each machine have? If the HP server is significantly older CPU, that may be the latest and greatest available from Intel. If you know what CPUs each machine has, you can check against the Intel microcode docs to see what the actual maximum version/updates available are relative to the 'newest' package.
On the laptop I have the

Code:
Intel(R) Celeron(R) 2957U @ 1.40GHz
On the HP server I have the

Code:
 Intel(R) Xeon(R) CPU E3-1220L V2 @ 2.30GHz
 
Old 03-01-2021, 01:13 PM   #4
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 476

Original Poster
Rep: Reputation: 60
Solution found: Intel don't update the microcode for some olds cpus.
 
Old 03-02-2021, 04:17 PM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by camerabambai View Post
Solution found: Intel don't update the microcode for some olds cpus.
2 reasons for that.
1. They want you to buy new
2. The older hardware can't handle newer features.

They feel that if you want better buy newer.
 
  


Reply

Tags
intel, microcode


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply new Intel microcode- no microcode.dat file Naks110 Linux - Kernel 2 06-12-2018 05:20 PM
3rd gen CPU in a 2nd Gen Laptop Motherboard benifits are? BW-userx Linux - Hardware 4 05-18-2016 01:56 PM
LXer: How I Store My 1?s and 0?s: ZFS + Bargain HP Microserver = JOY LXer Syndicated Linux News 0 06-18-2012 09:00 AM
LXer: How I Store My 1?s and 0?s: ZFS + Bargain HP Microserver = JOY LXer Syndicated Linux News 0 06-18-2012 02:40 AM
LXer: Thinking out of the server box: HP ProLiant MicroServer LXer Syndicated Linux News 0 10-28-2011 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration