Forums

Skip to content

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

[solved] kernel .config reuse and new items not showed

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
jormartr
Apprentice
Apprentice
Posts: 174
Joined: Wed Jan 02, 2008 11:41 am

[solved] kernel .config reuse and new items not showed

  • Quote

Post by jormartr » Sun May 11, 2008 11:48 am

Hello, I am reusing kernel configuration between versions, and when doing so there are items on the kernel configuration that does not appear on newer versions.

The only way I know to make them appear is by not reusing my old .config file.

For example, on 2.6.24 kernel I have discovered the "Paravirtualized guest support" by starting a new clean make menuconfig, and it does not appear if I load an old config.

Is there any way to not loose my custom configs but also being able to see the new items on every kernel version?

Thanks
Last edited by jormartr on Sun May 11, 2008 4:44 pm, edited 1 time in total.
Top
electronvolt
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Wed May 16, 2007 11:45 am

  • Quote

Post by electronvolt » Sun May 11, 2008 3:18 pm

if you copy your old .config to the new source directory, and then do

Code: Select all

make oldconfig
it will generate a new .config based on the previous one. It will prompt to set any additional options that have been introduced in the new kernel source.

you can then do

Code: Select all

make menuconfig
to fine tune your new kernel and all the available options should be available to you

HTH
Top
jormartr
Apprentice
Apprentice
Posts: 174
Joined: Wed Jan 02, 2008 11:41 am

  • Quote

Post by jormartr » Sun May 11, 2008 4:44 pm

Man thank you, this is really a help to me.
Top
jormartr
Apprentice
Apprentice
Posts: 174
Joined: Wed Jan 02, 2008 11:41 am

  • Quote

Post by jormartr » Mon May 12, 2008 12:42 pm

Once again I lost new settings. I did exactly this:

copied the old config to /usr/src/linux/.config
on that path executed make oldconfig
moved the adapted /usr/src/linux/.config file to my configs folder
executed genkernel all --menuconfig --kernel-config=/path_to_file/new_config_name, being that configuration file the old adapted,

and these options did not appear.

Am I doing something else wrong?
Top
electronvolt
Tux's lil' helper
Tux's lil' helper
Posts: 83
Joined: Wed May 16, 2007 11:45 am

  • Quote

Post by electronvolt » Mon May 12, 2008 12:56 pm

moved the adapted /usr/src/linux/.config file to my configs folder
you don't need to move the .config. It needs to be in /usr/src/linux for the kernel to compile correctly and for make menuconfig to use it. I see you are using genkernel, doesn't that copy the .config to /etc/kernels anyway? You shouldn't need to move it anywhere.
Bottom line....leave the .config file in /usr/src/linux and all should be well.

HTH

/edit

as you use genkernel you can edit the /etc/genkernel.conf file to do a make oldconfig, and then do a make menuconfig automatically when you run genkernel.

Code: Select all

# =========Common Command Line Option Defaults=========

# Run 'make oldconfig' before compiling this kernel?
# If set to "yes", also suppresses the fetch of the kernel .config file from
# /etc/kernels, thus preserving the .config file in /usr/src/linux.
OLDCONFIG="YES"

# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="YES"
I don't actually use genkernel, but there are other settings in the genkernel.conf files that you may want to check. The file seems to have good explanations for each variable in the comments.
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Mon May 12, 2008 1:49 pm

the easy way is to copy your old config file in /etc/kernels to the new file i.e.

Code: Select all

# cd /etc/kernels/
# cp kernel-config-x86-2.6.23-gentoo-r9 kernel-config-x86-2.6.24-hardened-r1
As long as your /usr/src/linux symlink points to the newly emerged 2.6.24-r1 kernel like this:

Code: Select all

# ls -al /usr/src/linux
lrwxrwxrwx  1 root root   24 May 11 11:02 linux -> linux-2.6.24-hardened-r1
Your ready for the new kernel build and all you needto do now is:

Code: Select all

# genkernel --menuconfig all
and you can then configure your new menu.

Be aware tho that the menu structure in a 2.6.24 kernel is different to a 2.6.23 kernel, so things won't be where you think they should be.

use the / key to search when in the menu system.

HTH

Richard.
Top
jormartr
Apprentice
Apprentice
Posts: 174
Joined: Wed Jan 02, 2008 11:41 am

  • Quote

Post by jormartr » Mon May 12, 2008 5:22 pm

Ok guys, now it worked ok, I'm glad to have this great help.
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