aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2019-07-11 22:34:03 +0800
committerDaniel Golle <daniel@makrotopia.org>2020-03-20 21:45:06 +0000
commitec5e8461c194346c4341e3e8bb35bc06ad707d47 (patch)
tree184c2e8ea322728ec0ee126dd4a06336dfaf66cd /config
parentecef29b29463e7549779e90739e61f8729ccaf09 (diff)
downloadupstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.tar.gz
upstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.tar.bz2
upstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.zip
x86: make crashdump works
1. KERNEL_CRASH_DUMP should depends on KERNEL_PROC_KCORE (kexec use it) 2. select crashkernel mem size by totalmem mem <= 256M disable crashkernel by default mem >= 4G use 256M for crashkernel mem >= 8G use 512M for crashkernel default use 128M 3. set BOOT_IMAGE in kdump.init 4. resolve a "Unhandled rela relocation: R_X86_64_PLT32" error Tested on x86_64 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index f7ba2b6723..fc24c3c932 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -477,10 +477,14 @@ config KERNEL_KEXEC
config KERNEL_PROC_VMCORE
bool
+config KERNEL_PROC_KCORE
+ bool
+
config KERNEL_CRASH_DUMP
depends on i386 || x86_64 || arm || armeb
select KERNEL_KEXEC
select KERNEL_PROC_VMCORE
+ select KERNEL_PROC_KCORE
bool "Enable support for kexec crashdump"
default y