Skip to contentSkip to conversation

kexec kernel with embedded initrd?

DISCUSSION Sven Anders 2 participants 3 messages Dec 17, 2008 – Dec 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello!

Sorry to bother you, just a short question, because I didn't find anything in the documentation or mailing list and I want to know if it should work before I try to find the error.

I want to boot a kernel (bzImage) with an embedded initrd (CPIO archive using the CONFIG_INITRAMFS_SOURCE option).

Can I simply load the kernel with kexec or do I have to extract the initrd first and load them using the --initrd option?

If I have to extract them first, is there a tool for this?

Regards
Sven

Mit freundlichen Grüßen
Sven Anders

Signature · 15 lines
 Sven Anders <[email protected]>                 () Ascii Ribbon Campaign
                                                 /\ Support plain text e-mail
 ANDURAS service solutions AG
 Innstraße 71 - 94036 Passau - Germany
 Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55

Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Mark Peters


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw
Quoted 7 lines · Sven Anders

I want to boot a kernel (bzImage) with an embedded initrd (CPIO archive using the CONFIG_INITRAMFS_SOURCE option).

Can I simply load the kernel with kexec or do I have to extract the initrd first and load them using the --initrd option?

If I have to extract them first, is there a tool for this?

You should be able to just load the bzImage. The kernel image should know how to then use the initramfs. I know it works for powepc64 at least.

-Geoff

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#2 lore raw
Quoted 11 lines · Geoff Levand
Quoted 7 lines · Sven Anders

I want to boot a kernel (bzImage) with an embedded initrd (CPIO archive using the CONFIG_INITRAMFS_SOURCE option).

Can I simply load the kernel with kexec or do I have to extract the initrd first and load them using the --initrd option?

If I have to extract them first, is there a tool for this?

You should be able to just load the bzImage. The kernel image should know how to then use the initramfs. I know it works for powepc64 at least.

Hmm?!

If I load the same image directly (in kvm) in works. If I use kexec, it gives me a kernel panic "Unable to mount root fs on unknown-block(3,0). Any special option needed?
Maybe I'm doing something wrong, I will double check (again)... (I'm using bzImage on i386).

Regards
Sven

Signature · 15 lines
 Sven Anders <[email protected]>                 () Ascii Ribbon Campaign
                                                 /\ Support plain text e-mail
 ANDURAS service solutions AG
 Innstraße 71 - 94036 Passau - Germany
 Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55

Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Mark Peters


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec