Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
solved! genkernel force CONFIG_MICROCODE=AMD as well
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Mon Aug 09, 2021 3:38 pm    Post subject: solved! genkernel force CONFIG_MICROCODE=AMD as well Reply with quote

why genkernel is force setting 'CONFIG_MICROCODE_AMD' to 'y' :?:

i use an Intel system.

thx :)

edit: my apologies - i just found the option and set to 'intel'
Quote:
--microcode=intel
in /etc/genkernel.conf :roll:
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Wed Jun 15, 2022 11:02 pm    Post subject: Reply with quote

Thank you for the hint,I had the opposite problem as of today.
Code:
ERROR: Something went wrong: Required kernel option 'CONFIG_MICROCODE_INTEL' which genkernel tried to set is missing!

I'm using amd, setting:
Code:
--microcode=amd

solved my problem.

Thanks.
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 46

PostPosted: Thu Nov 09, 2023 2:07 pm    Post subject: Reply with quote

this problem has not been resolved. adding --microcode=intel does not fix the issue and disabling microcode is not an option.

is there a patch incoming for genkernel?
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 370

PostPosted: Thu Nov 09, 2023 2:21 pm    Post subject: Reply with quote

mark4 wrote:
this problem has not been resolved. adding --microcode=intel does not fix the issue and disabling microcode is not an option.

is there a patch incoming for genkernel?


And what is "this problem"?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4162
Location: Bavaria

PostPosted: Thu Nov 09, 2023 4:24 pm    Post subject: Reply with quote

mark4 wrote:
this problem has not been resolved. adding --microcode=intel does not fix the issue and disabling microcode is not an option.

is there a patch incoming for genkernel?


Maybe you want read this thread: https://forums.gentoo.org/viewtopic-t-1165728-highlight-.html

and then this bug report: https://bugs.gentoo.org/show_bug.cgi?id=913659
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 46

PostPosted: Fri Dec 01, 2023 8:36 pm    Post subject: Reply with quote

pietinger wrote:
mark4 wrote:
this problem has not been resolved. adding --microcode=intel does not fix the issue and disabling microcode is not an option.

is there a patch incoming for genkernel?


Maybe you want read this thread: https://forums.gentoo.org/viewtopic-t-1165728-highlight-.html

and then this bug report: https://bugs.gentoo.org/show_bug.cgi?id=913659


Already saw both of those and still do not see any fixes for this. I have not been able to compile my kernel for a while now, is there a fix for genkernel incoming?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Fri Dec 01, 2023 9:07 pm    Post subject: Reply with quote

The bug report contains multiple proposed patches. If you need to build before a fixed genkernel is released, you could build a kernel that does not confuse genkernel, or you could build your kernel without relying on genkernel.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4162
Location: Bavaria

PostPosted: Fri Dec 01, 2023 9:54 pm    Post subject: Reply with quote

mark4 wrote:
[...] is there a fix for genkernel incoming?

I am very sure. If you read this thread (about the same problem dracut has) you will find the answers from Linus, where he explains how dracut people can solve it (so Gentoo will probably do the same):
https://lore.kernel.org/regressions/20231112181036.GBZVEVHIIj%2FOos1cx4@fat_crate.local/T/#t
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 229

PostPosted: Mon Dec 04, 2023 3:58 pm    Post subject: Reply with quote

In my experience having to fix changes in .config settings is normal. I do a "make listnewconfig" with every kernel update, and there are always some new/changed settings/names.

Looking though the code of genkernel it seems obvious that there have been a few necessary checks for specific kernel versions in the past where such changes already happened. IMHO it is natural to follow the kernel development in this regard. Reading through what Linus Tovalds wrote I think that's what he said as well:

Quote:
It looks like dracut has been doing this forever, and in fact back in
2015 apparently had the exact same issue (that never made it to kernel
developers, or at least not to me), when the kernel
CONFIG_MICROCODE_xyz_EARLY config went away, and became just
CONFIG_MICROCODE_xyz.

The whole "check kernel config" in dracut seems to go back to 2014, so
it's been that way for almost a decade by now.

Honestly, I think the right approach may be to just remove the check
again from dracut entirely - the intent seems to be to make the initrd
smaller when people don't support microcode updates, but does that
ever actually *happen*?


So it would be natural to include a check if the kernel is below 6.6 for the old options, and otherwise rely solely on the "new" now only CONFIG_MICROCODE.

That's the first issue. The second issue is that the genkernel package is lacking a maintainer, as noted by Sam James on the kernel bug tracker.
_________________
Think for yourself and let others enjoy the privilege of doing so too. Voltaire
Back to top
View user's profile Send private message
wuseman
n00b
n00b


Joined: 21 Apr 2021
Posts: 5

PostPosted: Mon Dec 04, 2023 6:25 pm    Post subject: Re: Solved! Genkernel Forcing CONFIG_MICROCODE=AMD on Intel Reply with quote

Hello CooSee and everyone,

I came across this thread while installing Gentoo and facing a similar issue with genkernel on my Intel system. I noticed the discussion about genkernel apparently forcing the use of AMD microcode (CONFIG_MICROCODE_AMD), even on Intel systems.

Like many, I tried setting
Code:
--microcode=intel
in /etc/genkernel.conf, but this didn't resolve the issue for me. Instead, I discovered a different workaround that might be helpful:

Code:
genkernel all --microcode=none


Using the
Code:
--microcode=none
option completely bypassed the microcode configuration issue, allowing my kernel to compile correctly on my Intel system. This approach seems to be a better temporary solution than leaving the configuration commented out or running with AMD microcode, which isn't ideal for Intel systems.

While this doesn't solve the underlying problem with Intel microcode configuration in genkernel, it at least prevents the tool from defaulting to AMD microcode settings. Hopefully, this workaround can be useful for anyone encountering similar issues, as a temporary fix until a more permanent solution is developed.

I forgot to mention to comment out microcode will neither work, none seems to be required.

Best regards,

wuseman
_________________
Website: https://adb-shell.com
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 229

PostPosted: Sat Jan 13, 2024 7:48 am    Post subject: Re: Solved! Genkernel Forcing CONFIG_MICROCODE=AMD on Intel Reply with quote

wuseman wrote:
I came across this thread while installing Gentoo and facing a similar issue with genkernel on my Intel system. I noticed the discussion about genkernel apparently forcing the use of AMD microcode (CONFIG_MICROCODE_AMD), even on Intel systems.


Hello wuseman!

I think that's not the case. AMD microcode will not be included for a kernel that is only for Intel systems. As a matter of fact I have it the other way around: on my AMD system I use a tailored kernel configuration for that very system, so it doesn't even include support for Intel processors, even though it is an x86-64 kernel. Thus Intel microcode is not included by genkernel with my kernel .config.

Code:
  -> Processor type and features
    -> Supported processor vendors (PROCESSOR_SELECT [=y])
      -> Support Intel processors (CPU_SUP_INTEL [=n])
      -> Support AMD processors (CPU_SUP_AMD [=y])
      -> Support Hygon processors (CPU_SUP_HYGON [=n])
      -> Support Centaur processors (CPU_SUP_CENTAUR [=n])
      -> Support Zhaoxin processors (CPU_SUP_ZHAOXIN [=n])


You probably have at least CPU_SUP_INTEL and CPU_SUP_AMD enabled, or PROCESSOR_SELECT disabled (which defaults to supporting all x86 vendors). Such a kernel could be booted on any x86 system, including AMD x64 processors. It is therefore imperative to also include the microcode, since it's a security thing and all that...
_________________
Think for yourself and let others enjoy the privilege of doing so too. Voltaire
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 713
Location: Barcelona, Spain

PostPosted: Fri Feb 16, 2024 12:05 pm    Post subject: Reply with quote

In case someone arrives at this tread to find the answer, this issue is fixed in sys-kernel/genkernel-sys-kernel/genkernel-4.3.10.

Cheers!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum