public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Thomas Niemeier <news@tn-x.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] kernel mit genkernel neubauen?
Date: Sat, 03 Oct 2009 13:18:23 +0200	[thread overview]
Message-ID: <4AC732FF.7080601@tn-x.de> (raw)
In-Reply-To: <200910031150.12978.gentoo@donbruno.de>

Thomas Bruns schrieb:
> Hallo NG,
> 
> aufgrund meiner WLAN-USB-Probleme hab ich mal geschaut und (so glaube
> ich) festgestellt, das mein kernel (2.6.29-gentoo-r5) den Stick nicht
> unterstützt.
> 
 ...
> Nun hab ich mit autounmask mit den kernel 2.6.31-gentoo-r1 runtergeladen.
> 
> Nun möchte ich aber meine ganzen alten Kerneleinstellungen behalten und
> zusätzlich neue machen, wie macht man sowas am Besten?
> 
> Gruß
> 
> Thomas
> 
 ...
> 

Hallo Thomas,

Im Leitfaden http://www.gentoo.org/doc/de/kernel-upgrade.xml ist das
eigentlich ziemlich gut beschrieben.

Zum einen findest du unter /etc/kernels/ die Konfigurationsdateien die
genkernel für den aktuellen Kernel verwendet hat.

# cd /etc/kernels/
# ls
# cp kernel-config-x86_64-2.6.29-gentoo-r4
kernel-config-x86_64-2.6.31-gentoo-r1
(die letzten beiden Zeilen sind eigentlich eine Zeile)

Aber auch unter /usr/src/aktueller Kernel/ findest du die .config
Dateien. Die Dateien sind mit vorgestelltem Punkt ausgeblendet (# ls
-lA). Du kannst Sie einfach von dort in das Verzeichnis für deinen neuen
Kernel kopieren

cp .config ../neuer Kernel/

bzw. wenn unter /etc/kernels keine Konfigurationsdatei für deinen
jetzigen Kernel zu finden ist, kannst du die .config einfach dorthin
kopieren und den Dateinamen entsprechend ändern.

# cp .config /etc/kernels/kernel-config-x86_64-2.6.31-gentoo-r1

Dann genkernel mit --menuconfig starten.

# genkernel --menuconfig all

Genkernel schaut als erstes in /etc/kernels/ ob eine passende
Konfigurationsdatei zum Kernel vorliegt. Wenn ja, wird diese automatisch
geladen. Wenn nicht, kannst du im Kernel-Konfigurationsprogramm eine
passende .config laden.

Es ratsam vor dem Start von genkernel eine Kopie der
Kernel-Konfigurationsdatei in/etc/kernels anzulegen, da genkernel die
alte Datei nach Anpassung der Konfiguration mit der neuen überschreibt.

# cp kernel-config-x86_64-2.6.31-gentoo-r1
kernel-config-x86_64-2.6.31-gentoo-r1-myOrig
(wieder nur eine Zeile)

Gruß

Thomas






  parent reply	other threads:[~2009-10-03 11:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-03  9:50 [gentoo-user-de] kernel mit genkernel neubauen? Thomas Bruns
2009-10-03 10:08 ` Roland Huehn
2009-10-03 11:18 ` Thomas Niemeier [this message]
2009-10-03 13:47   ` [gentoo-user-de] " Andreas Klein
2009-10-03 13:27 ` [gentoo-user-de] " Dirk Heinrichs
2009-10-03 14:09 ` [closed]Re: " Thomas Bruns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AC732FF.7080601@tn-x.de \
    --to=news@tn-x.de \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox