LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2014, 08:09 PM   #1
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Rep: Reputation: Disabled
Microcodes


I noticed Intel has a new microcode for my processor. I downloaded the file named microcode-20140913.tgz and inside is a file named microcode.dat but have no clue what to do with it. Googling I find to install intel-microcode and iucode-tool which I have on my system.

Can someone instruct how to upload the new signatures?

Using the help file for iucode I found /usr/sbin/iucode_tool -k but I don't know if this is a one time shot or will the new codes load on reboot... And if this is the right thing to do???
 
Old 11-06-2014, 01:01 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Does the following quote from the Intel Download Centre help?

Quote:
The microcode data file contains the latest microcode definitions for all Intel processors. Intel releases microcode updates to correct processor behavior as documented in the respective processor specification updates. While the regular approach to getting this microcode update is via a BIOS upgrade, Intel realizes that this can be an administrative hassle. The Linux operating system and VMware ESX products have a mechanism to update the microcode after booting. For example, this file will be used by the operating system mechanism if the file is placed in the /etc/firmware directory of the Linux system.
jdk
 
Old 11-06-2014, 01:19 AM   #3
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Mint, Xubuntu
Posts: 245

Rep: Reputation: 24
Does this method with /etc/firmware still work? Arch linux recently listed the microcodes have to be loaded before boot - it has to be loaded by the bootloader (initrd parameter).

See here: https://wiki.archlinux.org/index.php...rocode_Updates
 
Old 11-06-2014, 01:46 AM   #4
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by displace View Post
Does this method with /etc/firmware still work? Arch linux recently listed the microcodes have to be loaded before boot - it has to be loaded by the bootloader (initrd parameter).

See here: https://wiki.archlinux.org/index.php...rocode_Updates
I saw that link but I didn't see instructions on how to make the .img files???
 
Old 11-06-2014, 08:49 AM   #5
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
Arch user here. You don't make the .img file, it is a part of intel-microcode package. The package installs the image in /boot/ and you need to manually edit your bootloader configuration and append the path to the img file to the initrd line. Further information in the arch wiki.
 
Old 11-06-2014, 09:58 AM   #6
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bstaletic View Post
Arch user here. You don't make the .img file, it is a part of intel-microcode package. The package installs the image in /boot/ and you need to manually edit your bootloader configuration and append the path to the img file to the initrd line. Further information in the arch wiki.
Here is the link to the latest intel code https://downloadcenter.intel.com/Sea...word=microcode

The latest file is called microcode-20140913.tgz which opens to a file called microcode.dat.

Do I edit the *.dat file into the bootlloader?
Or do I rename the *.dat file to *.img then add it to the bootloader?
Or is there a command or tool that's supposed to convert the *.dat file to a *.img file?
Or am I missing the boat all together?

Again, I found I can apply the *.dat file to the kernel using /usr/sbin/iucode_tool -k /microcode.dat but that doesn't survive a reboot. or does it???
 
Old 11-06-2014, 12:06 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
Here's how I do it:

1) Copy the 'microcode.dat' to '/etc/microcode.dat'
2) On every boot run
Code:
microcode_ctl -u
That's it.

EDIT: There's supposed to be a newer method, but I can't find a good howto.

Last edited by metaschima; 11-06-2014 at 12:08 PM.
 
Old 11-06-2014, 04:33 PM   #8
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
Here's how I do it:

1) Copy the 'microcode.dat' to '/etc/microcode.dat'
2) On every boot run
Code:
microcode_ctl -u
That's it.

EDIT: There's supposed to be a newer method, but I can't find a good howto.
Any idea what package that command is in? I get this;

Code:
root@lenny:# microcode_ctl -u
bash: microcode_ctl: command not found
Edited to add... Looks like that command was superseded...

https://packages.debian.org/wheezy/microcode.ctl
This is a transitional package to help migrate systems to the new version of intel-microcode and to iucode-tool, which superseded microcode.ctl.

Last edited by Soapm; 11-06-2014 at 05:03 PM.
 
Old 11-06-2014, 05:12 PM   #9
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
You can still get the source here and build it:
https://github.com/gooselinux/microcode_ctl

For the new method try:
https://wiki.archlinux.org/index.php/Microcode

Personally, I'm going to hold off on the new method until the old method breaks. I don't even know where to get updates in the new format.
 
Old 11-06-2014, 05:40 PM   #10
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
You can still get the source here and build it:
https://github.com/gooselinux/microcode_ctl

For the new method try:
https://wiki.archlinux.org/index.php/Microcode

Personally, I'm going to hold off on the new method until the old method breaks. I don't even know where to get updates in the new format.
I used the git hub and got the 6 files but I can't figure out what to do with them for the life of me. I don't see a readme or any instructions on if you compile it or what???
 
Old 11-06-2014, 05:44 PM   #11
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
Looks like it is broken, well get it from debian:
http://ftp.de.debian.org/debian/pool...17.orig.tar.gz

Extract then run 'make', you can also do 'make install' as root to install it to a bin directory. If it is installed it '/usr/local' you will need to add the full path when you run it from a boot script.
 
  


Reply


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




All times are GMT -5. The time now is 01:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration