Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Choosing CONFIG_MIVYBRIDGE in gentoo-kernel [SOLVED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
dwardo
n00b
n00b
User avatar
Posts: 60
Joined: Wed Nov 10, 2004 10:07 am
Location: France

Choosing CONFIG_MIVYBRIDGE in gentoo-kernel [SOLVED]

  • Quote

Post by dwardo » Mon Nov 17, 2025 11:15 pm

Hello,

I've installed gentoo on a old laptop with a 2012 4 core i7 (ivybridge) with just 8Gb of RAM and upgraded sata ssd (currently typing this post with it).
As expected, it has proven slow for compiles so I'm setting up my more recent (less old ?) main gentoo desktop (2019 8 core ryzen 7 with 64Gb of RAM + M2 nvme ssd) as a binhost on which I use a chroot to build the packages with the i7's CFLAGS (thank you resolve-march-native).

I've set up everything to get it working (even binpkg signing !) and world is building and creating binpkgs as we speak :D.
I just have one issue: I'd like to modify the kernel config using /etc/kernels/config.d to build it for ivybridge instead of the generic X86 default.
Unfortunately the kernel conf does not propose to activate CONFIG_MIVYBRIDGE=y

I've noticed that the gentoo-kernel source configure code arch/x86/Kconfig.cpu is missing the definitions for all the CONFIG_MARCHs and only proposes activating CONFIG_X86_NATIVE_CPU or not (while this would be ok to build on the i7 machine... its no good to build for the i7 but on the ryzen 7 .

Is this a deliberate choice of fedora from which the baseline config is taken ? Why would they do this ?

Is there a way to configure what I'm trying to configure (appart from a patch for arch/x86/Kconfig.cpu in /etc/portage/patches to reintroduce the configuration option [woud that be enough or is more code missing ?] or switching to gentoo-sources) ?

Thanks for any feedback
Last edited by dwardo on Thu Nov 20, 2025 6:36 pm, edited 1 time in total.
Top
pietinger
Moderator
Moderator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Tue Nov 18, 2025 12:03 am

Dont enable CONFIG_X86_NATIVE_CPU and use instead one of these two ways:

1. Install the gentoo-sources with Use-flag "experimental"; this will give you options for specific CPUs in the kernel configuration, OR

2. Use your needed march=ivybridge as explained here: https://wiki.gentoo.org/wiki/Kernel/Con ... ion#Kbuild
->

Code: Select all

# make KCFLAGS="-O2 -march=ivybridge"
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
dwardo
n00b
n00b
User avatar
Posts: 60
Joined: Wed Nov 10, 2004 10:07 am
Location: France

  • Quote

Post by dwardo » Thu Nov 20, 2025 6:35 pm

I went with 2.

Thank you !
Top
pietinger
Moderator
Moderator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat Nov 22, 2025 1:31 am

dwardo wrote:Thank you !
You are very Welcome ! :D
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic