Skip to contentSkip to conversation

kexec-tools: add hack to get it working on dra7

PATCH New Denys Dmytriyenko 1 participant 1 message Mar 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec-tools: add hack to get it working on dra7

---
 .../0001-HACK-TO-get-kexec-up-on-dra7.patch        | 26 ++++++++++++++++++++++
 .../recipes-kernel/kexec/kexec-tools_%.bbappend    |  5 +++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-arago-distro/recipes-kernel/kexec/kexec-tools/0001-HACK-TO-get-kexec-up-on-dra7.patch
 create mode 100644 meta-arago-distro/recipes-kernel/kexec/kexec-tools_%.bbappend
meta-arago-distro/recipes-kernel/kexec/kexec-tools/0001-HACK-TO-get-kexec-up-on-dra7.patch new file +26 -0
new file mode 100644
index 0000000..9abdcb3
@@ -0,0 +1,26 @@
+From b93a24a4df81abfffb8e275970a98736dd42d4f5 Mon Sep 17 00:00:00 2001
+From: Keerthy <[email protected]>
+Date: Tue, 28 Feb 2017 10:44:45 +0530
+Subject: [PATCH] HACK: TO get kexec up on dra7
+
+Signed-off-by: Keerthy <[email protected]>
+---
+ kexec/arch/arm/kexec-zImage-arm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c
+index 7f02b93..9907496 100644
+--- a/kexec/arch/arm/kexec-zImage-arm.c
++++ b/kexec/arch/arm/kexec-zImage-arm.c
+@@ -572,7 +572,7 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len,
+ 		 * is 4, and just to be safe, place ramdisk after that.
+ 		 * Note that we must include space for the compressed
+ 		 * image here as well. */
+-		initrd_base = kernel_base + _ALIGN(len * 5, getpagesize());
++		initrd_base = kernel_base + _ALIGN(len * 6, getpagesize());
+ 	}
+ 
+ 	if (use_atags) {
+-- 
+1.9.1
+
meta-arago-distro/recipes-kernel/kexec/kexec-tools_%.bbappend new file +5 -0
new file mode 100644
index 0000000..ef2a464
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PR_append = ".arago0"
+
+SRC_URI_append_dra7xx = "file://0001-HACK-TO-get-kexec-up-on-dra7.patch"
Signature · 1 line
2.7.4