Forums

Skip to content

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

Problem with genkernel during kernel upgrade (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
3 posts • Page 1 of 1
Author
Message
kdvgent
Guru
Guru
Posts: 352
Joined: Wed Sep 29, 2004 6:16 pm
Location: Belgium

Problem with genkernel during kernel upgrade (solved)

  • Quote

Post by kdvgent » Tue May 10, 2005 8:28 pm

Since some time I have the following problem:

Each time there is a new version of the kernel sources (today gentoo-sources-2.6.11-r8 replacing gentoo-sources-2.6.11-r6), I need to rebuild the kernel.

I used to do the following (at least that is how I remember things)

- cd /usr/src
- ln -sfn linux-2.6.11-gentoo-r8 linux
- in /etc/kernels copy the previous configuration file and change the name (end now with r8 instead of r6)
- genkernel --udev --menuconfig --oldconfig all
- recompile drivers
- modules-update
- adapt grub.conf

But since a while genkernel refuses to take the configuration file (remember the one I copied from the previous version of the kernel - r6 where we are now with r8 - and renamed) and makes a new one. Meaning that I have once again to go through all menu options to set them correctly.

An enormous work.

What I am doing wrong? Help please.

Regards
Last edited by kdvgent on Wed May 11, 2005 7:09 pm, edited 1 time in total.
Top
Dr. Z
n00b
n00b
Posts: 30
Joined: Fri Nov 19, 2004 2:56 am

  • Quote

Post by Dr. Z » Wed May 11, 2005 3:24 am

- in /etc/kernels copy the previous configuration file and change the name (end now with r8 instead of r6)
Normally the kernel Make process will take its defaults from $SRC/.config, not /etc/kernels/kernel-config-*. So if you are not already doing this, copy your old config to /usr/src/linux-$VERSION/.config.

Also the order of arguments matters; --oldconfig must appear before --menuconfig or your .config will be blown away by make mrproper.

You should see this line in the genkernel output:
config: --no-clean is enabled; leaving the .config alone.
otherwise try passing --no-clean explicitly.
Top
kdvgent
Guru
Guru
Posts: 352
Joined: Wed Sep 29, 2004 6:16 pm
Location: Belgium

Thanks for your help

  • Quote

Post by kdvgent » Wed May 11, 2005 7:11 pm

Copy the .config file from the r6 version of the kernel to the r8 kernel did solve my problem.

Thanks
Top
Post Reply

3 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