diff -Nru kexec-tools-2.0.14/debian/changelog kexec-tools-2.0.14/debian/changelog --- kexec-tools-2.0.14/debian/changelog 2017-02-03 21:49:31.000000000 +0000 +++ kexec-tools-2.0.14/debian/changelog 2017-02-14 14:00:14.000000000 +0000 @@ -1,3 +1,9 @@ +kexec-tools (1:2.0.14-1ubuntu2.1) zesty; urgency=medium + + * kexec: Increase the upper limit for RAM segments (LP: #1663400) + + -- Manoj Iyer Tue, 14 Feb 2017 14:00:14 +0000 + kexec-tools (1:2.0.14-1ubuntu2) zesty; urgency=medium [ Manoj Iyer ] diff -Nru kexec-tools-2.0.14/debian/patches/kexec-Increase-the-upper-limit-for-RAM-segments.patch kexec-tools-2.0.14/debian/patches/kexec-Increase-the-upper-limit-for-RAM-segments.patch --- kexec-tools-2.0.14/debian/patches/kexec-Increase-the-upper-limit-for-RAM-segments.patch 1970-01-01 00:00:00.000000000 +0000 +++ kexec-tools-2.0.14/debian/patches/kexec-Increase-the-upper-limit-for-RAM-segments.patch 2017-02-14 13:59:12.000000000 +0000 @@ -0,0 +1,28 @@ +From 24aa2d93cac316657a2c20f28b8687bbf7e22991 Mon Sep 17 00:00:00 2001 +From: Sameer Goel +Date: Wed, 18 Jan 2017 16:15:12 -0700 +Subject: [PATCH] kexec: Increase the upper limit for RAM segments + +On a newer UEFI based Qualcomm target the number of system ram regions +retrieved from /proc/iomem are ~40. So increasing the current hardcoded +values to 64 from 16. + +Signed-off-by: Sameer Goel +Signed-off-by: Simon Horman +--- + kexec/arch/arm64/kexec-arm64.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: kexec-tools-2.0.14/kexec/arch/arm64/kexec-arm64.h +=================================================================== +--- kexec-tools-2.0.14.orig/kexec/arch/arm64/kexec-arm64.h ++++ kexec-tools-2.0.14/kexec/arch/arm64/kexec-arm64.h +@@ -11,7 +11,7 @@ + #include "image-header.h" + #include "kexec.h" + +-#define KEXEC_SEGMENT_MAX 16 ++#define KEXEC_SEGMENT_MAX 64 + + #define BOOT_BLOCK_VERSION 17 + #define BOOT_BLOCK_LAST_COMP_VERSION 16 diff -Nru kexec-tools-2.0.14/debian/patches/series kexec-tools-2.0.14/debian/patches/series --- kexec-tools-2.0.14/debian/patches/series 2017-02-03 21:47:28.000000000 +0000 +++ kexec-tools-2.0.14/debian/patches/series 2017-02-14 13:59:02.000000000 +0000 @@ -9,3 +9,4 @@ arm64_build.patch format-security.patch ppc64-Reduce-number-of-ELF-LOAD-segments.patch +kexec-Increase-the-upper-limit-for-RAM-segments.patch