Attached is a patch that adds compressed kernel support for ARM64. Debian does not ship compressed kernels, the test results below show that original functionality is maintained. Please review and apply to kexec-tools package.

== Before Patch ==
kexec-tools (1:2.0.14-1)

root@debian:/home/ubuntu# kexec -l /boot/vmlinuz-4.9.0-1-arm64 
--initrd=/boot/initrd.img-4.9.0-1-arm64 
--append="root=UUID=010a5260-8c6d-444c-82cd-6cf9b0cbc120 ro"
root@debian:/home/ubuntu# kexec -e

Debian GNU/Linux 9 debian ttyAMA0

debian login: [   26.369875] kexec_core: Starting new kernel
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-1-arm64 ([email protected]) 
(gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Debian 4.9.2-2+kexec.1 
(2017-01-25)
[    0.000000] Boot CPU: AArch64 Processor [510f8000]
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: EFI v2.60 by EDK II
[    0.000000] efi:  SMBIOS 3.0=0x13bdb0000  ACPI 2.0=0x1386d0000  
MEMATTR=0x13af01898
....
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 debian ttyAMA0

debian login:


== After Patch ==
kexec-tools (1:2.0.14-1.1)

root@debian:/home/ubuntu# kexec -l /boot/vmlinuz-4.9.0-1-arm64 
--initrd=/boot/initrd.img-4.9.0-1-arm64 
--append="root=UUID=010a5260-8c6d-444c-82cd-6cf9b0cbc120 ro"
root@debian:/home/ubuntu# kexec -e

Debian GNU/Linux 9 debian ttyAMA0

debian login: [ 1669.265708] kexec_core: Starting new kernel
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-1-arm64 ([email protected]) 
(gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Debian 4.9.2-2+kexec.1 
(2017-01-25)
[    0.000000] Boot CPU: AArch64 Processor [510f8000]
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: EFI v2.60 by EDK II
[    0.000000] efi:  SMBIOS 3.0=0x13bdb0000  ACPI 2.0=0x1386d0000  
MEMATTR=0x13af01898
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required

.....
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 debian ttyAMA0

debian login:

Thanks
--
============================
Manoj Iyer
Ubuntu/Canonical
ARM Servers - Cloud
============================
diff -Nru kexec-tools-2.0.14/debian/changelog kexec-tools-2.0.14/debian/changelog
--- kexec-tools-2.0.14/debian/changelog	2017-01-25 14:36:57.000000000 -0500
+++ kexec-tools-2.0.14/debian/changelog	2017-02-03 18:53:35.000000000 -0500
@@ -1,3 +1,9 @@
+kexec-tools (1:2.0.14-1.1) UNRELEASED; urgency=medium
+
+  * Enable compressed kernel support for ARM64 (Closes: #854093)
+
+ -- Manoj Iyer <[email protected]>  Fri, 03 Feb 2017 18:53:35 -0500
+
 kexec-tools (1:2.0.14-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru kexec-tools-2.0.14/debian/control kexec-tools-2.0.14/debian/control
--- kexec-tools-2.0.14/debian/control	2017-01-25 14:36:57.000000000 -0500
+++ kexec-tools-2.0.14/debian/control	2017-02-03 18:53:35.000000000 -0500
@@ -3,7 +3,7 @@
 Homepage: http://kernel.org/pub/linux/utils/kernel/kexec/
 Priority: optional
 Maintainer: Khalid Aziz <[email protected]>
-Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, gnu-efi (>=3.0a-4)[ia64], libz-dev[ia64], po-debconf
+Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, gnu-efi (>=3.0a-4)[ia64], libz-dev [arm64 ia64], po-debconf
 Standards-Version: 3.9.8
 
 Package: kexec-tools

Reply via email to