bzip2-compressed bzimage support?

Florian Fainelli florian at openwrt.org
Wed Jan 20 04:14:56 EST 2010


Hi Joey,

On Wednesday 20 January 2010 05:40:11 Joey Korkames wrote:
> Does kexec-tools support bzip2-compressed bzImages? I'm trying the latest
> git master against this kernel....
> 
> http://packages.debian.org/sid/amd64/linux-image-2.6.32-trunk-amd64/downloa
> d
> 
> ...but am having no success. I'm assuming that it must be because the
> kernel-section is bzip2 compressed because gzip/lzma seems to be explicitly
> supported in the master branch's commits.

a bzImage, whether it is compressed using bzip2, lzma, whatever remains a 
bzImage and as such can be used without knowing the compression used.

> 
> xen2:~# kexec --load --type=bzImage
>  --initrd=/boot/debian/initrd.img-2.6.32-trunk-amd64
>  --command-line="root=/dev/mapper/mirror_dsksAB-OS_disk console=tty0"
>  /boot/debian/vmlinuz-2.6.32-trunk-amd64 kexec_load failed: Function not
>  implemented

The "Function not implemented" error appears when the kernel you are running 
this command does not support the kexec system call, recompile with support 
for it and you should be fine.

> entry       = 0x7fff5640 flags = 0
> nr_segments = 4
> segment[0].buf   = 0x1f77a30
> segment[0].bufsz = 3874
> segment[0].mem   = 0x3000
> segment[0].memsz = 4000
> segment[1].buf   = 0x7f28267dc810
> segment[1].bufsz = 239800
> segment[1].mem   = 0x1000000
> segment[1].memsz = 23a000
> segment[2].buf   = 0x7f2825f93010
> segment[2].bufsz = 8456ab
> segment[2].mem   = 0x7f7ae000
> segment[2].memsz = 846000
> segment[3].buf   = 0x1f6f910
> segment[3].bufsz = 80e0
> segment[3].mem   = 0x7fff5000
> segment[3].memsz = a000
> 
> please CC me in to any replies, I am not subscribed to the list.
> 
> Thanks for reading
> -joey
> 
> _______________________________________________
> kexec mailing list
> kexec at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
> 

-- 
Regards, Florian



More information about the kexec mailing list