Benötige Hilfe beim Kernel-Kompilieren bzw. LILO-Konfiguration

User1024

Rear Admiral
Registriert
Mai 2004
Beiträge
5.928
Hallo,

ich habe heute mithilfe dieses Guides: http://www.teamunix.de/howto/linuxkernelhowto.php - den neuesten Kernel 2.6.10 kompiliert, was auch geklappt hat. Bisher hatte ich 2.6.3 in Verwendung (bei Mandrake 10.0 mitgeliefert)
Allerdings scheitert es nun bei den weiteren Schritten.

Ich habe mit
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.10
den Kernel kopiert und anschließend die System.map kopiert.

die /etc/lilo.conf hat nun folgenden Eintrag als Standard:
image=/boot/vmlinuz-2.6.10
label="Linux"
read-only

Danach habe ich lilo erfolgreich ausgeführt.
Wenn ich jetzt aber Linux starten will, erscheint das blaue Menü von LILO, wo ich eben den Eintrag Linux auswähle. Und dann verschwindet das Menü, ein schwarzer Bildschirm kommt und als Text steht oben nur
.....................
weiter passiert nichts.

Mir ist aufgefallen, dass es in /boot noch Dateien wie "kernel.h", "initrd" und "config" gibt. Muss ich die nicht überschreiben? oder was mache ich falsch?
 
Zuletzt bearbeitet:
Re: Benötige Hilfe beim Kernel-Kompilieren bzw. GRUB-Konfiguration

Ich will sehen:

ls -Al /boot

cat /boot/grub/menu.lst

cat /etc/lilo.conf

Deine Kernel-Config.

mfg
 
Re: Benötige Hilfe beim Kernel-Kompilieren bzw. GRUB-Konfiguration

So: Hier mal die ls -Al /boot
Code:
insgesamt 13748
-rw-r--r--  1 root root     512 Jul 11  2004 boot.0800
lrwxrwxrwx  1 root root      19 Jan 22 14:22 config -> config-2.4.22-10mdk
-rw-r--r--  1 root root   52049 Sep 18  2003 config-2.4.22-10mdk
-rw-r--r--  1 root root   51602 Sep 18  2003 config-2.4.22-10mdksmp
-rw-r--r--  1 root root   54087 Mär 17  2004 config-2.6.3-7mdk
-rw-r--r--  1 root root   51912 Mär 17  2004 config-2.6.3-7mdksmp
-rw-r--r--  1 root root     256 Jul 29 22:10 de-latin1.klt
-rw-r--r--  1 root root    5032 Feb 19  2004 diag1.img
-rw-r--r--  1 root root   16796 Feb 19  2004 diag2.img
drwxr-xr-x  2 root root    4096 Jul 12  2004 grub/
-rw-r--r--  1 root root  462566 Jul 11  2004 initrd-2.4.22-10mdk.img
-rw-r--r--  1 root root  463187 Jul 11  2004 initrd-2.4.22-10mdksmp.img
-rw-r--r--  1 root root  317731 Jul 11  2004 initrd-2.6.3-7mdk.img
-rw-r--r--  1 root root  293587 Jul 11  2004 initrd-2.6.3-7mdksmp.img
lrwxrwxrwx  1 root root      27 Jan 22 14:22 kernel.h -> /boot/kernel.h-2.4.22-10mdk
-rw-r--r--  1 root root     537 Jul 12  2004 kernel.h-2.4.22-10mdk
-rw-r--r--  1 root root     537 Jul 11  2004 kernel.h-2.4.22-10mdksmp
-rw-r--r--  1 root root     537 Jul 11  2004 kernel.h-2.6.3-7mdk
-rw-------  1 root root  536576 Jan 22 13:18 map
-rw-r--r--  1 root root  442273 Jul 11  2004 message-graphic
-rw-r--r--  1 root root     127 Jul 29 22:10 message-text
lrwxrwxrwx  1 root root      23 Jan 22 13:31 System.map -> System.map-2.4.22-10mdk
-rw-r--r--  1 root root  625045 Sep 18  2003 System.map-2.4.22-10mdk
-rw-r--r--  1 root root  620252 Sep 18  2003 System.map-2.4.22-10mdksmp
-rw-r--r--  1 root root  932332 Jan 22 13:26 System.map-2.6.10
-rw-r--r--  1 root root  898908 Mär 17  2004 System.map-2.6.3-7mdk
-rw-r--r--  1 root root  900767 Mär 17  2004 System.map-2.6.3-7mdksmp
-rw-r--r--  1 root root 1343803 Sep 18  2003 vmlinuz-2.4.22-10mdk
-rw-r--r--  1 root root 1354494 Sep 18  2003 vmlinuz-2.4.22-10mdksmp
-rw-r--r--  1 root root 1576912 Jan 22 13:18 vmlinuz-2.6.10
-rw-r--r--  1 root root 1440198 Mär 17  2004 vmlinuz-2.6.3-7mdk
-rw-r--r--  1 root root 1490541 Mär 17  2004 vmlinuz-2.6.3-7mdksmp
Das 2.4.22 ist vom Mandrake 9.2, das 2.6.4 vom Mandrake 10.0 und die 2.6.10 hab ich jetzt kompiliert.

Hier die menu.lst
Code:
timeout 5
color black/cyan yellow/cyan
default 0

title linux
kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 devfs=mount acpi=ht resume=/dev/sda5 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 devfs=mount splash=silent acpi=ht resume=/dev/sda5
initrd (hd0,0)/boot/initrd.img

title linux-smp
kernel (hd0,0)/boot/vmlinuz-smp root=/dev/sda1 devfs=mount acpi=ht resume=/dev/sda5 splash=silent
initrd (hd0,0)/boot/initrd-smp.img

title floppy
root (fd0)
chainloader +1

title old_linux
kernel (hd0,0)/boot/vmlinuz-2.4.22-10mdk root=/dev/sda1 devfs=mount splash=silent acpi=ht resume=/dev/sda5 vga=794
initrd (hd0,0)/boot/initrd-2.4.22-10mdk.img

title old_linux-nonfb
kernel (hd0,0)/boot/vmlinuz-2.4.22-10mdk root=/dev/sda1 devfs=mount acpi=ht resume=/dev/sda5
initrd (hd0,0)/boot/initrd-2.4.22-10mdk.img

title old_linux-smp
kernel (hd0,0)/boot/vmlinuz-2.4.22-10mdksmp root=/dev/sda1 devfs=mount splash=silent acpi=ht resume=/dev/sda5 vga=794
initrd (hd0,0)/boot/initrd-2.4.22-10mdksmp.img

title failsafe
kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 failsafe splash=silent acpi=ht resume=/dev/sda5 devfs=nomount
initrd (hd0,0)/boot/initrd.img

Und die lilo.conf
Code:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/sda
map=/boot/map
default="linux"
keytable=/boot/de-latin1.klt
prompt
nowarn
timeout=50
message=/boot/message-text
menu-scheme=wb:bw:wb:bw
disk=/dev/sda bios=0x80
image=/boot/vmlinuz-2.6.10
	label="linux"
	root=/dev/sda1
	append="devfs=mount splash=silent acpi=ht resume=/dev/sda5"
	read-only
image=/boot/vmlinuz-2.6.3-7mdk
	label="linuxOLD"
	root=/dev/sda1
	append="devfs=mount splash=silent acpi=ht resume=/dev/sda5"
	read-only
other=/dev/fd0
	label="floppy"
	unsafe
image=/boot/vmlinuz-2.4.22-10mdk
	label="old_linux"
	root=/dev/sda1
	initrd=/boot/initrd-2.4.22-10mdk.img
	append="devfs=mount splash=silent acpi=ht resume=/dev/sda5"
	vga=794
	read-only
image=/boot/vmlinuz
	label="failsafe"
	root=/dev/sda1
	initrd=/boot/initrd.img
	append="failsafe splash=silent acpi=ht resume=/dev/sda5 devfs=nomount"
	read-only

Danke fürs Ansehen! :)
PS: Bei der Kernelkonfiguration habe ich einfach die Standardwerte belassen (make xconfig)


//EDIT: Oh, mir ist grad aifgefallen, dass ich ja oben im Threadtitel GRUB geschrieben habe; verwende aber LILO. Daher auch die lilo.conf, die ich bearbeitet habe (wie in dem Guide beschrieben).
 
Zuletzt bearbeitet:
Re: Benötige Hilfe beim Kernel-Kompilieren bzw. GRUB-Konfiguration

Habe das Thema mal angepasst, aber wechselt ruhig auf Grub, habe es auch nicht bereut.
 
(der Vollständigkeit halber) hier eine der (meiner Meinung nach) besten Kernel-Howto-Anleitungen im Netz:

http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html (damit hab ich angefangen :D )

und noch ein paar:

http://linuxreviews.org/howtos/Kernel-Build-HOWTO/

http://www.pc-erfahrung.de/Index.html?linux_kernel_kompilieren.html (ist auch nicht schlecht)

wie The Prophet bereits gesagt hat:
normalerweise sollte man grub als bootmanager benutzen und nur in Ausnahmefällen lilo (wo grub nicht funktioniert :D )

ich konnte linux nur mit lilo auf meinem ide-raid-controller (si 0680) zum laufen bringen ...
 

Ähnliche Themen

Zurück
Oben