LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Microcodes (https://www.linuxquestions.org/questions/linux-newbie-8/microcodes-4175524493/)

Soapm 11-05-2014 08:09 PM

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???

jdkaye 11-06-2014 01:01 AM

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

displace 11-06-2014 01:19 AM

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

Soapm 11-06-2014 01:46 AM

Quote:

Originally Posted by displace (Post 5265374)
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???

bstaletic 11-06-2014 08:49 AM

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.

Soapm 11-06-2014 09:58 AM

Quote:

Originally Posted by bstaletic (Post 5265541)
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???

metaschima 11-06-2014 12:06 PM

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.

Soapm 11-06-2014 04:33 PM

Quote:

Originally Posted by metaschima (Post 5265664)
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.

metaschima 11-06-2014 05:12 PM

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.

Soapm 11-06-2014 05:40 PM

Quote:

Originally Posted by metaschima (Post 5265856)
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???

metaschima 11-06-2014 05:44 PM

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.


All times are GMT -5. The time now is 12:52 AM.