qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Should qemu -kernel option be able to gunzip kernel? (a


From: Peter Maydell
Subject: Re: [Qemu-devel] Should qemu -kernel option be able to gunzip kernel? (aarch64)
Date: Tue, 29 Jul 2014 21:31:12 +0100

On 29 July 2014 20:49, Richard W.M. Jones <address@hidden> wrote:
> On Fedora/aarch64, the kernel in /boot is a gzip-compressed file

> Apparently UEFI and u-boot can just handle this by uncompressing the
> kernel on the fly.
>
> However qemu-system-aarch64 -kernel option definitely can*not*, with
> the result that if you do the "obvious":
>
>   qemu-system-aarch64 -kernel /boot/vmlinuz-xxx
>
> it just hangs immediately, because it's trying to execute gzip data.
>
> I don't know the rights and wrongs of this.  Maybe Fedora is wrong for
> having a gzip-compressed kernel.  But should the -kernel option be
> able to detect if the file is gzip encoded and uncompress it on the
> fly?  (If so I'll post a patch for this unless someone else jumps in).
>
> Mainly I'm asking because I've no idea what is the right thing to do
> here.  There could be another obvious fix.

Yeah, the AArch64 approach to compressed kernels is "the
bootloader should do it" (unlike the 32 bit ARM approach
where the kernel has a decompressor tacked on the front
of it). So I agree that we should be a good bootloader and
do the decompression, assuming it's not a total pain to do so
only for AArch64 kernels.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]