Hi Lijiang and Tao,
Thanks for taking look at this patch.
I use kernel-6.10 to build arm64 kernel.
I modify arch/arm64/configs/defconfig with the following diff.
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 2c7bf4da0b80..f981095a4440 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1682,12 +1682,10 @@ CONFIG_CMA_SIZE_MBYTES=32
CONFIG_PRINTK_TIME=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
-CONFIG_DEBUG_INFO_REDUCED=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT is not set
-# CONFIG_FTRACE is not set
CONFIG_CORESIGHT=m
CONFIG_CORESIGHT_LINK_AND_SINK_TMC=m
CONFIG_CORESIGHT_CATU=m
@@ -1697,3 +1695,7 @@ CONFIG_CORESIGHT_STM=m
CONFIG_CORESIGHT_CPU_DEBUG=m
CONFIG_CORESIGHT_CTI=m
CONFIG_MEMTEST=y
+CONFIG_GDB_SCRIPTS=y
+CONFIG_STACKTRACE=y
+CONFIG_ARM64_VA_BITS_47=y
+CONFIG_ARM64_16K_PAGES=y
I can boot up with qemu-system-aarch64 and after booting up, I run the "echo c >
/proc/sysrq-trigger" in qemu to produce the
vmcore.
After I get vmcore, I can use crash-tool to debug vmcore and vmlinux.
Thank you,
Kuan-Ying Lee