PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian Kernel updaten



dunervst
18.04.04, 13:40
Hallo,

ich würde gerne bei meinem Debian auf einen smp Kernel updaten, da mein Multiprozessor System ja derzeitig gar nicht unterstützt wird. Gibt es da eine Möglichkeit das mit apt schnell und ohne grossen kompilieraufwand upzudaten ?

Danke

elevator
18.04.04, 13:52
apt-get install kernel-image-2.4.18-686-smp

^ für woody.

Ansonsten einfach mal mit "apt-cache search kernel-image" schaun was es für Kernelpakete gibt.

Gruß
elevator

dunervst
19.04.04, 13:32
Danke für deine Antwort. Habe es versucht. Nur leider bekomme ich Paket abhängigkeiten angezeigt. Und als ich versucht habe die Pakete zu installieren kam ein md5sum error.

Schärple
19.04.04, 13:48
apt sollte Dir die Abhängikeiten automatisch auflösen.

termito
14.06.04, 10:43
Hallo, ich habe ähnliches Problem.
Habe jetzt mal das Kernelimage installiert
# apt-get install kernel-image-2.6.6-1-686

so da ich mein Linux über Diskette boote wollte ich danach mit # mkfloppy eine Diskette erstellen, leider bootet die neue Diskette gar nicht.

Was muss ich eigenlich tun damit der neue Kernel von Diskette bootet?

mat74
14.06.04, 11:15
Also der Befehl zur erstellung einer Bootdiskette lautet:
mkboot und nicht mkfloppy.

termito
14.06.04, 11:29
Also der Befehl zur erstellung einer Bootdiskette lautet:
mkboot und nicht mkfloppy.

sorry ich hab mich verschrieben meinte schon mkboot

mat74
14.06.04, 11:39
Na ja, deine lilo.conf muss halt schon angepasst sein, aber das fragt mkboot ja auch ab, ob der best guess oder vanilla gebootet werden soll. Schau doch mal in der lilo.conf, ob dein neuer kernel da auch drinsteht. Alternativ kannst du manuell in der lilo.conf
boot=/dev/fd0 reinschreiben und lilo ausführen, das schreibt lilo dann auf diskette. Soviel ich weiss arbeitet debian mit links auf die eigentlichen Dateien (kernel + System.map). Kontrolliere doch mal ob da alles stimmt.

termito
14.06.04, 12:18
Es gab gar keine lilo.conf, obwohl das system schon die ganze Zeit vom Floppy bootete. Ich habe jetzt eine lilo.con erstellt
boot=/dev/fd0
image = /vmlinuz
root = /dev/hdd1
label = linux

wenn ich jetzt mkboot ausführe kommt das
amd:# mkboot

Insert a floppy diskette into your boot drive, and press <Return>.

Creating a lilo bootdisk...
Kernel is at /boot/vmlinuz-2.6.6-1-686 in /boot
Matching initrd image is /boot/initrd.img-2.6.6-1-686
Found kernel image /vmlinuz in existing /etc/lilo.conf
but it does not invoke /boot/initrd.img-2.6.6-1-686 .
The mkboot script can probably do better.

Here is the proposed lilo.conf:

# floppy lilo.conf
boot = /dev/fd0
install = boot.b
map = map
# kernel-specific:
image = /vmlinuz
label = linux
root = /dev/hdd1

You can install the boot-loader from this best guess,
or you can try to install from a `vanilla\' lilo.conf .

Which do you choose? (Enter B for best, V for vanilla):
#

Frage was soll vanilla heißen?

In /boot steht das
amd:# ls -l /boot
total 8284
System.map-2.4.18-bf2.4
System.map-2.6.6-1-686
boot.0200
boot.b -> boot-menu.b
config-2.4.18-bf2.4
config-2.6.6-1-686
debianlilo.bmp -> /usr/share/lilo/contrib/debianlilo.bmp
initrd.img-2.6.6-1-686
map
sarge.bmp -> /usr/share/lilo/contrib/sarge.bmp
sid.bmp -> /usr/share/lilo/contrib/sid.bmp
vmlinuz-2.4.18-bf2.4
vmlinuz-2.6.6-1-686

Danke nochmal

mat74
14.06.04, 12:48
Vanilla steht afaik für den kernel, der bei der Installation mitgeliefert wird. /boot sieht soweit gut aus, schau mal ob unter / Links auf den Kernel und die System.map liegen. Mit initrd kenne ich mich net aus, da ich das root-Dateisystem immer fest in den Kernel einbinde. Die Ausgabe von mkboot sieht soweit ok aus. Kannst ja mal mit "B" bestätigen und schauen ob die Diskette bootet.

termito
15.06.04, 08:11
THX
OK. Jetzt bootet der neue Kernel 2.6.6-1 von Diskettte, weiß aber nicht mehr ganz genau was ich jetzt alles verändert hatte. (kann sein dass die Ursache in der lilo.conf lag)

hier meine aktuelle funktionierende lilo.conf mit Kernel 2.6

# floppy lilo.conf
boot = /dev/fd0
install = boot.b
map = /System.map
initrd = /initrd.img
# kernel-specific:
image = /vmlinuz
label = linux
root = /dev/hdd1

PS: Werd aber trotzdem nicht drum herum kommen einen eigenen Kernel zu bauen, da einige Dinge nicht funktionieren z.B. automatisches Ausschlalten beim Herunterfahren ...

DerLipper[TuX]
15.06.04, 08:29
Vanilla steht afaik für den kernel, der bei der Installation mitgeliefert wird. /boot sieht soweit gut aus, schau mal ob unter / Links auf den Kernel und die System.map liegen. Mit initrd kenne ich mich net aus, da ich das root-Dateisystem immer fest in den Kernel einbinde. Die Ausgabe von mkboot sieht soweit ok aus. Kannst ja mal mit "B" bestätigen und schauen ob die Diskette bootet.

Vanilla - Kernel: So werden die Kerne von www.kernel.org bezeichnet.

Bei Debian gibt es noch die sogenannten bf-kerne, die nur zum Installieren gedacht sind. BF - Boot Flavour.

Und beachtet bitte, das ein Kernel-Image von Debian eine initrd enthält. Diese muss während des Bootens greifbar sein, da ansonsten keine Module geladen werden.

-Sensemann-
03.08.04, 15:23
Naja beim 2.6.7 scheint das wohl auch noch so zu sein denn momentan hab ich große Probleme das einzubinden!

er meinte bei der installation,




You are attempting to install an initrd kernel image (version 2.6.7-1-k7)
This will not work unless you have configured your boot loader to use
initrd. (An initrd image is a kernel image that expects to use an INITial
Ram Disk to mount a minimal root file system into RAM and use that for
booting).

As a reminder, in order to configure LILO, you need
to add an 'initrd=/initrd.img' to the image=/vmlinuz
stanza of your /etc/lilo.conf

I repeat, You need to configure your boot loader -- please read your
bootloader documentation for details on how to add initrd images.

If you have already done so, and you wish to get rid of this message,
please put
`do_initrd = Yes'
in /etc/kernel-img.conf. Note that this is optional, but if you do not,
you'll continue to see this message whenever you install a kernel
image using initrd.


was also tun?

Diozaka
03.08.04, 16:12
das, was er sagt:

you need
to add an 'initrd=/initrd.img' to the image=/vmlinuz
stanza of your /etc/lilo.conf

-Sensemann-
07.08.04, 15:40
So hab nun einfach mal nen 2.4.26 installiert und bekomme nun seltsamer weise immer den fehler das der root nicht mounten kann. eigentlich sollte das doch nun einfach funktionieren oder?

mfg Sense

-Sensemann-
07.08.04, 15:47
# Support LBA for large hard disks.
#
lba32


boot=/dev/hda

root=/dev/hdb1

prompt
timeout=150
# prompt
# single-key
# delay=100
# timeout=100

vga=normal

default=Linux

image=/vmlinuz
initrd=/initrd.img
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

other=/dev/hda1
label="Windows(hda1)"

other=/dev/hda5
label="Windows(hda5)"

other=/dev/hda6
label="Windows(hda6)"

other=/dev/hda7
label="Windows(hda7)"

other=/dev/hdb3
label="Linux(hdb3)"


so sieht die lilo.conf aus!