Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel für 2.6.1er Kernel?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  

Wie kompiliert ihr einen neuen Kernel
mit genkernel
13%
 13%  [ 6 ]
manuell
86%
 86%  [ 40 ]
Total Votes : 46

Author Message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Mon Jan 12, 2004 9:36 am    Post subject: genkernel für 2.6.1er Kernel? Reply with quote

Hallo Jungs,

eine Frage an die, die schon auf den neuen Kernel umgestiegen sind. Kompiliert ihr den Kernel mit genkernel? Oder macht ihr das Manuell?

Ich habs zuerst mit genkernel probiert, möchte nun den Kernel aber selber backen.

Laut diversen Anleitungen im Internet macht man dies ja mit:

Code:
cd /usr/src/linux
make clean
make dep
make bzImage
make modules
make modules_install


und dann heissts, bzImage von /usr/src/linux/arch/i386/boot nach /boot kopieren.

Nun, erstens krieg ich bei make dep:

Code:
make dep
*** Warning: make dep is unnecessary now.


Na denn, anscheinend brauchts ja nur noch folgendes:

Code:
make clean
make
make modules
make modules_install


Da kommt aber schon die nächste Frage auf:

genkernel macht ja noch mehr, von wegen initrd und busybox...

Muss ich das nicht machen, wenn ich den Kernel manuell kompiliere??

Gruzz Hänse
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Mon Jan 12, 2004 9:43 am    Post subject: Re: genkernel für 2.6.1er Kernel? Reply with quote

hänse wrote:
Laut diversen Anleitungen im Internet macht man dies ja mit:

Code:
cd /usr/src/linux
make clean
make dep
make bzImage
make modules
make modules_install


und dann heissts, bzImage von /usr/src/linux/arch/i386/boot nach /boot kopieren.

Nun, erstens krieg ich bei make dep:

Code:
make dep
*** Warning: make dep is unnecessary now.


Na denn, anscheinend brauchts ja nur noch folgendes:

Code:
make clean
make
make modules
make modules_install



Uhm, RTFM hilft:

Code:

make help


Du brauchst bei 2.6.x nur noch

Code:

make && make modules_install

_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Mon Jan 12, 2004 10:02 am    Post subject: Reply with quote

Hi,

danke für die Antwort, des scheint auch problemlos zu funktionieren.

Ich hab mich im Netz schon länger umgeschaut, sehe aber nirgends genau, was genkernel alles macht.

Was ist die Busybox?
Brauche ich eine initrd?

übrigens bei Windoze Probs sag ich auch jedem RTFM, doch mit Linux kenn ich mich halt net soo gut aus :)

Gruzz
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Mon Jan 12, 2004 10:58 am    Post subject: Reply with quote

btw. für die 2.6er kernel gibts ein neues genkernel >2.0

ich teste gerade genkernel 3.0.1_beta4-3 (eben erst rausgekommen) mit 2.6.1-rc3-gentoo
Back to top
View user's profile Send private message
Empire
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2003
Posts: 94
Location: Europe / Switzerland

PostPosted: Mon Jan 12, 2004 10:58 am    Post subject: Reply with quote

Nein, eine initrd brauchst du nicht, es ist einfacher wenn du die Dinge gleich in den Kernel packst und damit bootest.
Eine initrd stellt nur Module o.ä. bereit die zum booten des Kernels benötigt werden aber nicht im Kernel drin sind...
Oder du brauchst ne initrd wenn du nen Bootsplash hast, dann kommt in die initrd der Bootsplash rein...
_________________
One of the great mistakes is to judge policies and
programs by their intentions rather than their results.
Milton Friedman
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Mon Jan 12, 2004 12:02 pm    Post subject: Reply with quote

heisst das, wenn ich bootsplash verwenden will, MUSS ich eine initrd haben??

Dann überleg ich mir nämlich nochmal ob ich wirklich bootsplash installieren will, ich fänds noch nett, aber wenns dadurch zu umständlich wird, bzw. das System langsamer bootet, mach ichs vermutlich net.

ich kernle jetzt manuell... is mir irgendwie lieber, da weiss ich was ich mach und was passiert (zumindest mehr oder weniger)

gruzz
Back to top
View user's profile Send private message
kill_switch
n00b
n00b


Joined: 14 Jun 2003
Posts: 32

PostPosted: Mon Jan 12, 2004 12:19 pm    Post subject: Bootsplash Reply with quote

The bootsplash initrd only contains the images ;)
so that doesn't do much to performance
_________________
my jabber ID is kill_switch@jabber.org
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Mon Jan 12, 2004 1:45 pm    Post subject: Reply with quote

Noch ne dumme Frage

wie komm ich an genkernel-2.0 ran?

Ich komm irgendwie nur an den 1.8er ran..

gruzz
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Mon Jan 12, 2004 1:50 pm    Post subject: Reply with quote

ganz einfach:

Code:
emerge /usr/portage/sys-kernel/genkernel/genkernel-3.0.1_beta4.ebuild
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Mon Jan 12, 2004 2:11 pm    Post subject: Reply with quote

oder
Code:
ACCEPT_KEYWORDS="~x86" emerge -s genkernel

*  sys-kernel/genkernel
      Latest version available: 3.0.1_beta4

Danach natürlich das -s weglassen ;)
Back to top
View user's profile Send private message
hänse
n00b
n00b


Joined: 05 Dec 2003
Posts: 52
Location: Zürich, Switzerland

PostPosted: Tue Jan 13, 2004 9:55 am    Post subject: Reply with quote

Hm, soweit okay...

habs endlich geschafft, dass mein genkernel den neuen kernel kompilieren und installieren kann...

jedoch bootet der neue kernel nicht richtig

ich habe dasselbe Problem wie https://forums.gentoo.org/viewtopic.php?t=121886&highlight=boot+device+determining hier beschrieben (auf russisch :) )

also ich krieg das hier:

Code:
STEP 3: Mounting necessary filesystems per boot options
Started device managment daemon v 1.3.29 for /dev
STEP 4: Determining root device
Root block device uncpesifited or not detected.
Please specify a device to boot, or "shell" for a shell.


wenn ich nun einfach /dev/hda4 eingebe, passiert nix und wenn ich /dev/ram0 eingebe, kommt ne kernel panic :(

Ich habe auch meine grub.conf entsprechend angepasst (laut /usr/share/genkernel/README)

grub.conf

Code:
default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Gentoo Linux 1.4 - Kernel 2.4.22-gentoo-r2
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.4.22-gentoo-r2 root=/dev/hda4 vga=794
initrd (hd0,1)/boot/initrd-2.4.22-gentoo-r2

title=Gentoo Linux 1.4 - Kernel 2.6.1-gentoo
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.6.1-gentoo root=/dev/ram0 init=/linuxrc real_root=/dev/hda4 vga=794
initrd (hd0,1)/boot/initrd-2.6.1-gentoo

title=Windows XP
root (hd0,0)
chainloader (hd0,0)+1


gruzz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum