Forums

Skip to content

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

Does make menuconfig start with current working config?

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
7 posts • Page 1 of 1
Author
Message
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

Does make menuconfig start with current working config?

  • Quote

Post by guyuming » Tue Dec 01, 2020 1:42 pm

I am installing Docker on Gentoo. After emerging, and run the kernel configuration check script, i am suggested to make some kernel configuration change and rebuild the kernel.

When i install Gentoo, i use the Genkernel tool, instead of make menuconfig.

Now, if i run make menuconfig, will it start with my current working kernel configuration, that is, the result of previous Genkernel run?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56087
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Dec 01, 2020 3:00 pm

guyuming,

Code: Select all

make menuconfig 
starts with the file .config at the top of the kernel source tree.

genkernel has an option to run menuconfig.
Think about how you will rebuild your initrd if you build your own kernel.

genkernel can be made to start from your preferred configuration too, rater than its own preset.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Tue Dec 01, 2020 11:51 pm

NeddySeagoon wrote:guyuming,

Code: Select all

make menuconfig 
starts with the file .config at the top of the kernel source tree.
Thanks, I tried this but i did not find any at /usr/src/linux. Just realized that its a .dot file and i should use -a in ls,i.e.,

ls -a /usr/src/linux

and i found it there.
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Fri Dec 04, 2020 8:24 am

subsequent kernel configuration change and rebuild cause an incident as described in: viewtopic-p-8539450.html

i use "make menuconfig" to add two configuration keys and save and "make" and "make install" ... and because of my ignorance, the machine failed to reboot. but i think i had saved the changed kernel configure and the "make" and "make install" were successful.

anyway, i fixed it with LiveCD boot and "genkernel --menuconfig all".

During this "genkernel --menuconfig all", i noticed that the previously added two keys were still unchecked and i have to added them again, so it looks to me that genkernel does not read from the .config file i saved in previous make menuconfig.

so, i guess that since i use genkernel initially, it might be better for me to keep using it subsequently.

The good thing is: i open "make menuconfig" again and see that the two keys added during "genkernel --menuconfig add" are still there. so it looks to me that although genkernel does not read from .config for make, it does save to .config for make.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Fri Dec 04, 2020 2:59 pm

Genkernel allows you to combine --oldconfig with --menuconfig.
This way you can modify whatever kernel config is already there (or the default one in case of file not found).

Also, --no-clean speeds up repeated compilations a lot. It is a bit risky (re-uses cached objects which may get out of sync and screw you over in the end), but it works often enough to be worth giving it a shot.
Top
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

  • Quote

Post by guyuming » Wed Feb 10, 2021 8:54 am

just find out that genkernel will run make mrproper first, which will remove the /usr/src/linux/.config file and make my previous configuration lost.

the caveat is to run genkernel with --no-mrproper.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Thu Feb 11, 2021 4:03 am

Maybe this is a good place to start: https://wiki.gentoo.org/wiki/Kernel/Upgrade
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Post Reply

7 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