Skip to content

Initial implementation of kdump for ARM

Mika Westerberg linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 8 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 8 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Initial implementation of kdump for ARM
Quoted 9 lines · ext Janboe Ye

These are some other hard code address in some boards.

For example, beagle board boot_params is 0x80000100.

I guest nokia's Nseris does not use atags for transfering params.

When I test my relocated kernel, it blocks at machinee initialization.

Maybe there is other address mapping issue. I will look it tomorrow.

Yes, we use atags.

I have following changes on top of these patches. Note that you should also change beagles board file so that it works with different PHYS_OFFSET (if you are going to pass initrd, then that will need to be changed also).

I actually have beagleboard in home and I can try it there as well but I'll be away weekend so it is going to happen earliest on monday.

Thanks,
MW

arch/arm/mach-omap2/Makefile.boot +6 -1
index 565aff7..b958007 100644
@@ -1,3 +1,8 @@
-  zreladdr-y		:= 0x80008000
+ifeq ($(CONFIG_CRASH_DUMP),y)
+zreladdr-y		:= 0x84008000
+params_phys-y		:= 0x84000100
+else
+zreladdr-y		:= 0x80008000
 params_phys-y		:= 0x80000100
+endif
 initrd_phys-y		:= 0x80800000
arch/arm/plat-omap/include/plat/memory.h +8 -0
index 9ad41dc..596a130 100644
@@ -40,7 +40,15 @@
 #define PHYS_OFFSET		UL(0x10000000)
 #elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
 			defined(CONFIG_ARCH_OMAP4)
+/*
+ * We want crashdump kernels to be in different physical address than
+ * the primary kernel.
+ */
+#ifdef CONFIG_CRASH_DUMP
+#define PHYS_OFFSET		UL(0x84000000)
+#else
 #define PHYS_OFFSET		UL(0x80000000)
+#endif /* CONFIG_CRASH_DUMP */
 #endif
 
 /*
arch/arm/mach-omap2/board-omap3beagle.c +1 -1
index df5c918..a023f62 100644
@@ -459,7 +459,7 @@ MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
 	/* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
 	.phys_io	= 0x48000000,
 	.io_pg_offst	= ((0xfa000000) >> 18) & 0xfffc,
-	.boot_params	= 0x80000100,
+	.boot_params	= PHYS_OFFSET + 0x100,
 	.map_io		= omap3_beagle_map_io,
 	.init_irq	= omap3_beagle_init_irq,
 	.init_machine	= omap3_beagle_init,