Kernel 2.4.26 auf 2.6.6 patchen

Ocean-Driver

Ocean-Driver

Routinier
Hy,

Ich hab im moment den Kernel 2.4.26 drauf, wie kann ich den jetzt auf 2.6.6 patchen?
Ich will die alten Settings beibehalten, damit ich nicht alles neu konfigurieren muss.Gibt es da vieleicht sogar irgendwo ein Video-Tutorial?

bye Ocean-Driver
 
Kommt drauf an, was für eine Distri du hast.
Normalerweise läuft das so ab:
von www.kernel.org die quellen ziehen.
die module-init-tools aktualisieren ( http://www.kernel.org/pub/linux/kernel/people/rusty/modules ).
dann die quellen nach /usr/src/linux-2.6.X entpacken und den link /usr/src/linux auf linux-2.6.X ändern.
Ob eine config vom 2.4er beim 2.6er geht weis ich nicht, aber probieren kannst du es:
einfach die .config ausm /usr/src/linux-2.4 nach linux-2.6.X kopieren, dann:

$ cd /usr/src/linux
$ make oldconfig

ggf die fragen beantworten (je nach dem, was du brauchst) und danach:

$ make all && make modules_install
$ mount /boot (ggf brauchst du das nicht, falls es schon gemountet ist)
$ cp arch/i368/boot/bzImage /boot/bzImage-2.6
$ cp System.map /boot/

Jetzt musst du nur noch deine grub bzw. lilo anpassen, so das das neue kernel image geladen wird. wie das funktioniert sagt dir man lilo oder man grub.
 
Hi,

Ich hab slackware ;)
Ok, thx ich probier es aus.
 
Such mal in den einschlägigen slack foren, da gibts sicherlich schon leute die das gemacht haben bzw. ein howto.
 
Hi,

Ok, das hat jetzt gefunzt, nur welche files brauch ich alle zum booten?Hab ein bzImage erzeugt,
aber das kann ich nicht booten :finger:
Hier mal meine lilo.conf:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot="/dev/hda"
#compact # faster, but won't work on all systems.
prompt
timeout="50"
# Normal VGA console
vga="Standar"
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins

image="/boot/vmlinuz"
root="/dev/hda6"
label="Slackware"

image="/boot/bzImage_new"
root="/dev/hda6"
label="bzimage"
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins

other = /dev/hda1
label="Windows"
table = /dev/hda
# Windows bootable partition config ends

Ideen?

bye ocean
 
Am besten liest du dir das hier mal durch:

http://www.unixboard.de/vb3/showthread.php?t=3698

Das hat mir bei meinen ersten Versuchen auch geholfen.

Dein bzImage nennst du am besten in vmlinuz-2.6.x um, und die beim kompilieren erzeugte System.map in System.map-2.6.x . Das "x" solltest du natürlich auf deine Kernel-Version ändern.
 
Hi,

Das Problem ist gelöst, es gbt nurnoch Konfigurationsprobleme ;)

bye ocean
 
Zuletzt bearbeitet:

Ähnliche Themen

Wo sind die Geräte?

Kernel -> asm_amd64 fehlt!

Ati-Treiber bringt mich um den Verstand

fehler beim patchen des kernels

Kernel Konfigurations Tutorial für einen 64bit-Kernel

Zurück
Oben