Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
How to enable automatic microcode updates
« previous
next »
Print
Pages:
1
...
3
4
[
5
]
6
Author
Topic: How to enable automatic microcode updates (Read 21032 times)
olmari
Newbie
Posts: 29
Karma: 2
Re: How to enable automatic microcode updates
«
Reply #60 on:
August 14, 2024, 09:19:29 pm »
But this also looks like the Amd early loading system itself works, at least the "no updates found" part. Like
Fitch
Franco (at forum side
) said earlier, I think this is now mostly waiting game for updated suitable microcode package for the actual code loading part to happen on this system
«
Last Edit: August 14, 2024, 09:24:54 pm by olmari
»
Logged
Deciso DEC750 x2
Deciso DEC2752 x1
fadern
Newbie
Posts: 32
Karma: 1
Re: How to enable automatic microcode updates
«
Reply #61 on:
August 21, 2024, 04:58:51 pm »
Hi,
How will the manual setup work/coexist with the new plugin?
Logged
Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to enable automatic microcode updates
«
Reply #62 on:
August 21, 2024, 05:36:47 pm »
Yep, doesn't matter as long as you install the right plugin for your CPU.
Eventually we want to release the early AMD loading code in 24.7.x and remove the late loading from the plugins. So for now the plugins use both load points simultaneously. This means people can further test the 24.7-amd kernel early loading.
I might throw out a new kernel for the early AMD loading. But not today.
Cheers,
Franco
«
Last Edit: August 21, 2024, 05:38:27 pm by franco
»
Logged
Wrigleys
Newbie
Posts: 15
Karma: 1
Re: How to enable automatic microcode updates
«
Reply #63 on:
August 21, 2024, 08:26:30 pm »
Hi all,
I can confirm that after reverting the tuneables to default and deleting the line "microcode_update_enable="YES"" in /etc/rc.conf, the microcode update will still be performed after reboot.
Many thanks franco and the whole team for another seamless and struggle-free update.
All the best,
Wrigleys
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to enable automatic microcode updates
«
Reply #64 on:
August 21, 2024, 08:53:06 pm »
Hehe that was the plan, nice
Cheers,
Franco
Logged
newsense
Hero Member
Posts: 1037
Karma: 77
Re: How to enable automatic microcode updates
«
Reply #65 on:
August 22, 2024, 01:51:54 am »
It is best to make sure os-cpu-microcode-{intel,amd} is installed going forward on bare metal systems.
Logged
meyergru
Hero Member
Posts: 1694
Karma: 166
IT Aficionado
Re: How to enable automatic microcode updates
«
Reply #66 on:
August 22, 2024, 09:21:13 am »
Yes, but only either one of them, as they are mutually exclusive. If you try to install both, you get strange results (i.e. last one wins and the other package is then "missing").
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to enable automatic microcode updates
«
Reply #67 on:
August 22, 2024, 09:45:35 am »
"Missing" in the plugins list? I thought it was just going to uninstall the other one. Then again we didn't have conflicting plugins since os-quagga and os-frr were in the packages alongside for a bit...
Logged
meyergru
Hero Member
Posts: 1694
Karma: 166
IT Aficionado
Re: How to enable automatic microcode updates
«
Reply #68 on:
August 22, 2024, 10:14:38 am »
In my case, it was uninstalled and then showed up as missing. I had to uninstall the wrong one again and then install the correct one. Maybe the "missing" was an artifact?
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: How to enable automatic microcode updates
«
Reply #69 on:
August 22, 2024, 10:19:37 am »
Nice addition. Will it let the admin know when attempting on a non-suitable system, like a Virtual Machine?
I know he/she *should* know, but we've seen people with VMs and misunderstandings.
Logged
meyergru
Hero Member
Posts: 1694
Karma: 166
IT Aficionado
Re: How to enable automatic microcode updates
«
Reply #70 on:
August 22, 2024, 10:26:46 am »
Why? It does not hurt. As little as when you choose the wrong version (i.e. AMD vs. Intel). I think many people will stumble over the "install both" hurdle.
In a perfect world (TM), a single plugin would automatically choose if it does nothing (because VM), or installs Intel or AMD versions on installation.
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: How to enable automatic microcode updates
«
Reply #71 on:
August 22, 2024, 11:00:35 am »
The point of contention is:
% git grep microcode_name
sysutils/cpu-microcode-amd/src/etc/rc.loader.d/40-cpu-microcode:cpu_microcode_
name
="/boot/firmware/amd-ucode.bin"
sysutils/cpu-microcode-intel/src/etc/rc.loader.d/40-cpu-microcode:cpu_microcode_
name
="/boot/firmware/intel-ucode.bin"
Short of adding more logic to find out what CPU microcode is applicable or adding a GUI toggle this is beyond redemption.
It would probably make for sense for FreeBSD to use it this way... expecially since the kernel code knows if it's executing Intel or AMD microcode because they are separate...
sysutils/cpu-microcode-amd/src/etc/rc.loader.d/40-cpu-microcode:cpu_microcode_
amd
="/boot/firmware/amd-ucode.bin"
sysutils/cpu-microcode-intel/src/etc/rc.loader.d/40-cpu-microcode:cpu_microcode_
intel
="/boot/firmware/intel-ucode.bin"
And you have to consider this means pulling irrelevant updates of the other package all the time because it is a hard dependency even if not used.
Funny the late loading code does this automatically without tripping over itself. But I would rather lock this to only use the early loading once the AMD support is in 24.7.x.
We may add the AMD one to our factory images. For now this approach seems the path of least resistance.
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: How to enable automatic microcode updates
«
Reply #72 on:
August 22, 2024, 11:03:17 am »
Why? - because this is something I want to do when I am around not automatically for a VM especially.
Yes it can hurt. I have had a VM that would crash after a few hours of uptime and took me a while to track the problem. It was fwupd scheduled (not by me) triggering a fwupd update.
Yes it is a different OS but me, no I don't what firmware updates to happen unless I trigger them. Yes they can hurt.
For me is easy in this case, not install the plugin.
Logged
meyergru
Hero Member
Posts: 1694
Karma: 166
IT Aficionado
Re: How to enable automatic microcode updates
«
Reply #73 on:
August 22, 2024, 11:15:16 am »
That is somewhat besides my point: fwupd updates firmwares and obviously can do harm. You cannot update microcode from inside a VM. It just does not do anything - which includes harm.
Also there is no cron or systemd job that regularly applies this, as microcode updates are done once (either at kernel start for early loading or - for now only - during the boot process).
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: How to enable automatic microcode updates
«
Reply #74 on:
August 22, 2024, 11:21:54 am »
Well I will have to respectfully disagree with you there meyergru. The firmware update was problematic for me from a VM, it crashed it instead of not doing anything.
but as I said, easy for me to not install the plugin. The comment and input here is that the plugin should include a warning by default for users of OPN in a VM.
Logged
Print
Pages:
1
...
3
4
[
5
]
6
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
How to enable automatic microcode updates