From 3d3e4dc1477526638b2cc89037d83adbd725f0fa Mon Sep 17 00:00:00 2001 From: Jakob-Naucke Date: Thu, 14 Jan 2021 16:42:52 +0100 Subject: [PATCH] packaging: Fix vmlinux kernel install on s390x Installing the built uncompressed vmlinux kernel will not work on s390x, QEMU will complain: Linux kernel boot failure: An attempt to boot a vmlinux ELF image failed. This image does not contain all parts necessary for starting up. Use bzImage or arch/s390/boot/compressed/vmlinux instead. Hence, use that kernel image on s390x. Fixes: #1264 Signed-off-by: Jakob-Naucke --- tools/packaging/kernel/build-kernel.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/packaging/kernel/build-kernel.sh b/tools/packaging/kernel/build-kernel.sh index 2ad5f339a2..b92f1dfe54 100755 --- a/tools/packaging/kernel/build-kernel.sh +++ b/tools/packaging/kernel/build-kernel.sh @@ -403,6 +403,8 @@ install_kata() { # Install uncompressed kernel if [ "${arch_target}" = "arm64" ]; then install --mode 0644 -D "arch/${arch_target}/boot/Image" "${install_path}/${vmlinux}" + elif [ "${arch_target}" = "s390" ]; then + install --mode 0644 -D "arch/${arch_target}/boot/compressed/vmlinux" "${install_path}/${vmlinux}" else install --mode 0644 -D "vmlinux" "${install_path}/${vmlinux}" fi