View previous topic :: View next topic |
Author |
Message |
3PO Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/9424454044640eb15027ff.jpg)
Joined: 26 Nov 2006 Posts: 1110 Location: Schwabenländle
|
Posted: Sat Nov 29, 2008 9:29 am Post subject: Nach Kernelupdate wird Netzwerkkarte nicht mehr gefunden. |
|
|
Hallo Zusammen,
nachdem mir das world Update angezeigt hat, dass ein neuer Kernel verfügbar sei, wollte ich diesen natürlich auch instalieren.
Leider aber wird nach einem Reboot die NIC nicht mehr gefunden. Er meldet: "eth0 not found", oder so was in dieser Richtung.
Hier meine Vorgehensweise:
Code: | cd /usr/src/linux
cp .config ..
cd ..
ln -sfn linux-2.6.26-gentoo-r3 linux
cd /usr/src/linux
make mrproper
make oldconfig
make && make modules_install
cp -vf arch/i386/boot/bzImage /boot/bzImage-2.6.26-gentoo-r3 |
Habe ich da etwas übersehen?
Beim letzen Update ging alles glatt.
Mein Board ist ein ASUS P5B DeLuxe mit 2x OnBoard LAN. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
musv Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17022956523ec2f01a46f03.jpg)
Joined: 01 Dec 2002 Posts: 3369 Location: de
|
Posted: Sat Nov 29, 2008 9:46 am Post subject: Re: Nach Kernelupdate wird Netzwerkkarte nicht mehr gefunden |
|
|
3PO wrote: | Code: | cd /usr/src/linux
cp .config ..
cd ..
ln -sfn linux-2.6.26-gentoo-r3 linux
cd /usr/src/linux
make mrproper
make oldconfig
make && make modules_install
cp -vf arch/i386/boot/bzImage /boot/bzImage-2.6.26-gentoo-r3 |
Habe ich da etwas übersehen? |
Naja, du hast die /usr/src/linux/.config nach /usr/src kopiert. Dann hast du den neuen Symlink angelegt. Du hast aber nicht /usr/src/.config nach /usr/src/linux-2.6.26-gentoo-r3 kopiert. Sofern make oldconfig das nicht automatisch macht, dürftest du damit die Default-Kernel-Einstellungen haben.
Btw: Wieso nimmst du nicht 2.6.27? Da sind wir schon bei Version r4. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
3PO Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/9424454044640eb15027ff.jpg)
Joined: 26 Nov 2006 Posts: 1110 Location: Schwabenländle
|
Posted: Sat Nov 29, 2008 10:20 am Post subject: Re: Nach Kernelupdate wird Netzwerkkarte nicht mehr gefunden |
|
|
Das mit dem Kopierem der .config hatte ich übersehen.
Irgendwie funktioniert das "make oldconfig" nicht wirklich gut.
Ich habe es jetzt mal mit "make menuconfig" gemacht, damit geht es wieder.
musv wrote: | [...]
Btw: Wieso nimmst du nicht 2.6.27? Da sind wir schon bei Version r4. |
Deshalb??
Code: | vdr02 ~ # emerge -av gentoo-sources
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-kernel/gentoo-sources-2.6.26-r3 USE="-build -symlink" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No] n
Quitting.
vdr02 ~ #
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
franzf Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13378569704a2d5c2dc51c1.jpg)
Joined: 29 Mar 2005 Posts: 4565
|
Posted: Sat Nov 29, 2008 10:33 am Post subject: Re: Nach Kernelupdate wird Netzwerkkarte nicht mehr gefunden |
|
|
3PO wrote: | Irgendwie funktioniert das "make oldconfig" nicht wirklich gut. |
Ich nehm meine .config mittlerweile schon (geschätzt) ein Jahr mit, hatte nie Probleme mit make oldconfig.
Was hat denn bei dir gestreikt? Oder was macht dir zu schaffen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
3PO Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/9424454044640eb15027ff.jpg)
Joined: 26 Nov 2006 Posts: 1110 Location: Schwabenländle
|
Posted: Sat Nov 29, 2008 10:46 am Post subject: |
|
|
Nun, make oldconfig macht folgendes:
Code: | .....
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
..... |
Aussehen sollte es aber so:
Code: | .....
CONFIG_SKGE=y
CONFIG_SKY2=y
..... |
Denn das sind genau die Module meiner NIC |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
franzf Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13378569704a2d5c2dc51c1.jpg)
Joined: 29 Mar 2005 Posts: 4565
|
Posted: Sat Nov 29, 2008 10:49 am Post subject: |
|
|
Öhm, du hast aber das make oldconfig schon nochmal laufen lassen, nachdem die .config im richtigen Verzeichnis lag?
Mach mal mrproper, kopier die alte config aus deinem 2.6.25-gentoo-r7 (war doch dein alter, oder?) und lass oldconfig nochmal laufen.
Hast du evtl. die config kopiert, dann mrproper laufen lassen, und DANN erst oldconfig?
mrproper säubert (so weit mir bekannt) nämlich auch die config... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
3PO Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/9424454044640eb15027ff.jpg)
Joined: 26 Nov 2006 Posts: 1110 Location: Schwabenländle
|
Posted: Sat Nov 29, 2008 11:27 am Post subject: |
|
|
So, jetzt geht es.
Ich habe es nochmal mit make oldconfig probiert.
Code: | cd /usr/src/linux
cp .config ..
cd ..
ln -sfn linux-2.6.26-gentoo-r3 linux
cd /usr/src/linux
make mrproper
cp /usr/src/.config /usr/src/linux
make oldconfig
make && make modules_install
cp -vf arch/i386/boot/bzImage /boot/bzImage-2.6.26-gentoo-r3
..... |
Man sollte garnicht glauben was das ausmacht, wenn man die Befehle in der richtigen Reihenfolge eingibt.... ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
musv Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17022956523ec2f01a46f03.jpg)
Joined: 01 Dec 2002 Posts: 3369 Location: de
|
Posted: Sat Nov 29, 2008 11:29 am Post subject: |
|
|
kann ich bestätigen. mrproper verwende ich eigentlich nie, wenn ich ein Kernelupdate mach. Soweit ich das in Erinnerung hab, brauchst du das nur, wenn einen bereits bestehenden Kernel neubauen willst mit vollkommen veränderter Konfiguration. Wenn du nur kleine Änderungen am Kernel vornimmst, wird nämlich nicht der gesamte Kernel neugebaut sondern nur die notwendigen Teile.
Schritte bei mir bei Kernelupdate
Code: | cp /usr/src/linux/.config /usr/src/linux-2.6.27-gentoo-r4/
rm /usr/src/linux
ln -s /usr/src/linux-2.6.27-gentoo-r4 /usr/src/linux
cd /usr/src/linux
make oldconfig
make xconfig
make && make modules_install
cp arch/i386/boot/bzImage /boot/bzImage-2627-r4
nano /boot/grub/grub.conf
module-rebuild rebuild -X
reboot |
Das make xconfig mach ich nur bei größeren Änderungen am Kernel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|