How can i read the CPU microcode version on TrueNAS?

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
And is there some sort of intel-microcode package that can be installed to load a newer microcode when booting TrueNAS than is available via the BIOS?
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
TrueNAS 12 includes Intel and AMD microcode images. You should see messages on console about it during boot. There it also reports the versions when loads newer. But I generally recommend to update BIOS when possible.
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
Code:
dmesg | grep microcode

delivers nothing.

I also did a
Code:
dmesg | less

but found nothing that shows the microcode version.

How can i install or activate these images?
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
You won't see it in dmesg, since it it printed by user-space utility cpucontrol, called by microcode_update rc.d script during boot. For Intel CPUs it looks like: "%s: updating cpu %s from rev %#x to rev %#x...". For AMD IIRC it looks different. If there are no updates, you should see just:
Code:
Updating CPU Microcode...
Done.
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
Thanks. Is there also a way to read the microcode version after the boot?
Something similiar to /proc/cpuinfo?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
/var/log/daemon.log has the output from cpucontrol. Just grep microcode /var/log/daemon.log | tail -1 to see the last update applied.
 

Revan

Explorer
Joined
Mar 22, 2017
Messages
81
When i do a
Code:
grep microcode /var/log/daemon.log | tail -1  

the output is empty.
 
Top