kexec in iMX8MP failing - kernel 5.15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alright, I have seen previous posts with similar behavior, such as:
- https://community.nxp.com/t5/Layerscape/2160-kexec-problem/m-p/1663218
- https://community.nxp.com/t5/i-MX-Processors/kexec-fail-in-iMX8MQ-kernel-5-4-47/m-p/1257061
In the last one, there's even a comment saying "Confirmed on 5.4.70-2.3.0 and 5.10.9-1.0.0/8MPlus too, this is a bug in our BSP"
So, my setup is based in the yocto kirkstone, with Linux kernel version 5.15.60 and kexec-tools 2.0.23. I've followed the steps in the official Linux documentation (https://www.kernel.org/doc/html/v5.8/admin-guide/kdump/kdump.html), having the following config enabled:
CONFIG_KEXEC=y
CONFIG_CRASH_DUMP=y
CONFIG_PROC_VMCORE=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
- CONFIG_DEBUG_INFO=y
At this point I am not trying kdump thing, just kexec to get a better understanding how this works, but I'm failing to get the kexec work. What I see is that it is hanging after the "Bye!" message from arch/arm64/kernel/machine_kexec.c:machine_kexec() call. Here's the log with debug:
imx8mp-sat3-som:~# kexec -d -l /boot/Image.gz --dtb=/boot/imx8mp-sat3-som-parental-board-revB.dtb --append="`cat /proc/cmdline` 1 maxcpus=1 earlyprinkt=ttymxc0,115200" --serial=ttymxc0
arch_process_options:178: command_line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw cma=576M cma_name=linux,cma net.ifnames=0 crashkernel=128M 1 maxcpus=1 earlyprinkt=ttymxc0,115200
arch_process_options:180: initrd: (null)
arch_process_options:182: dtb: /boot/imx8mp-sat3-som-parental-board-revB.dtb
arch_process_options:185: console: ttymxc0
Try gzip decompression.
kernel: 0xffffae7c7010 kernel_size: 0x1a87200
set_phys_offset: phys_offset : 0000000040000000 (method : vmcoreinfo pt_note)
get_memory_ranges:+[0] 0000000040000000 - 000000007fffffff
get_memory_ranges:- 0000000041c60000 - 0000000041f1ffff
get_memory_ranges:- 0000000043000000 - 000000004300efff
get_memory_ranges:- 000000005a000000 - 000000007dffffff
get_memory_ranges:- 000000007eb80000 - 000000007fbfffff
get_memory_ranges:- 000000007fc4b000 - 000000007fd9afff
get_memory_ranges:- 000000007fd9d000 - 000000007fd9efff
get_memory_ranges:- 000000007fd9f000 - 000000007fd9ffff
get_memory_ranges:- 000000007fda0000 - 000000007fdb3fff
get_memory_ranges:- 000000007fdb4000 - 000000007fdb4fff
get_memory_ranges:- 000000007fdb5000 - 000000007fe00fff
get_memory_ranges:- 000000007fe01000 - 000000007fffffff
System RAM ranges;
0000000040000000-0000000041c5ffff (0)
0000000041f20000-0000000042ffffff (0)
000000004300f000-0000000059ffffff (0)
000000007e000000-000000007eb7ffff (0)
000000007fc00000-000000007fc4afff (0)
000000007fd9b000-000000007fd9cfff (0)
elf_arm64_probe: Not an ELF executable.
image_arm64_load: kernel_segment: 0000000040000000
image_arm64_load: text_offset: 0000000000000000
image_arm64_load: image_size: 0000000001b20000
image_arm64_load: phys_offset: 0000000040000000
image_arm64_load: vp_offset: ffffffffffffffff
image_arm64_load: PE format: yes
console memory read from /sys/class/tty/ttymxc0/iomem_base
console memory is at 0x30860000
arm64_load_other_segments:710: purgatory sink: 0x30860000
get_cells_size: #address-cells:2 #size-cells:2
cells_size_fitted: 0-0
cells_size_fitted: 0-0
setup_2nd_dtb: no kaslr-seed found
dtb_delete_property: fdt_delprop failed: <valid offset/length>
dtb_delete_property: fdt_delprop failed: <valid offset/length>
dtb: base 41b20000, size e74eh (59214)
sym: sha256_starts info: 12 other: 00 shndx: 2 value: fb0 size: 54
sym: sha256_starts value: 41b2ffe0 addr: 41b2f048
machine_apply_elf_rel: CALL26 9000000094000000->90000000940003e6
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f130 addr: 41b2f04c
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940001390000000->f940001390000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f130 addr: 41b2f050
machine_apply_elf_rel: LDST64_ABS_LO12_NC aa1303f5f9400013->aa1303f5f9409813
sym: sha256_update info: 12 other: 00 shndx: 2 value: 2f30 size: 10
sym: sha256_update value: 41b31f60 addr: 41b2f068
machine_apply_elf_rel: CALL26 eb14027f94000000->eb14027f94000bbe
sym: sha256_finish info: 12 other: 00 shndx: 2 value: 2f40 size: 19c
sym: sha256_finish value: 41b31f70 addr: 41b2f080
machine_apply_elf_rel: CALL26 aa1303e194000000->aa1303e194000bbc
sym: memcmp info: 12 other: 00 shndx: 2 value: 680 size: 38
sym: memcmp value: 41b2f6b0 addr: 41b2f090
machine_apply_elf_rel: CALL26 3400042094000000->3400042094000188
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f138 addr: 41b2f098
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f138 addr: 41b2f09c
machine_apply_elf_rel: LDST64_ABS_LO12_NC 90000014f9400000->90000014f9409c00
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f148 addr: 41b2f0a0
machine_apply_elf_rel: ADR_PREL_PG_HI21 9100029490000014->9100029490000014
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f148 addr: 41b2f0a4
machine_apply_elf_rel: ADD_ABS_LO12_NC d280001391000294->d280001391052294
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f0ac
machine_apply_elf_rel: CALL26 9000000094000000->9000000094000146
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f140 addr: 41b2f0b0
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f140 addr: 41b2f0b4
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f940a000
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f0b8
machine_apply_elf_rel: CALL26 38736ac194000000->38736ac194000143
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f0c8
machine_apply_elf_rel: CALL26 f100827f94000000->f100827f9400013f
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f150 addr: 41b2f0d4
machine_apply_elf_rel: ADR_PREL_PG_HI21 f94002c090000016->f94002c090000016
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f150 addr: 41b2f0d8
machine_apply_elf_rel: LDST64_ABS_LO12_NC 910402b5f94002c0->910402b5f940aac0
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f0e4
machine_apply_elf_rel: CALL26 9000000094000000->9000000094000138
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f158 addr: 41b2f0e8
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f158 addr: 41b2f0ec
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f940ac00
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f0f0
machine_apply_elf_rel: CALL26 38736aa194000000->38736aa194000135
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f100
machine_apply_elf_rel: CALL26 f100827f94000000->f100827f94000131
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f150 addr: 41b2f10c
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f94002c0->94000000f940aac0
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f110
machine_apply_elf_rel: CALL26 5280002094000000->528000209400012d
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41b324a0 addr: 41b2f130
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b324a0
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32118 addr: 41b2f138
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32118
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32138 addr: 41b2f140
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32138
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32148 addr: 41b2f148
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32148
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b3214e addr: 41b2f150
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b3214e
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32150 addr: 41b2f158
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32150
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f1a8 addr: 41b2f16c
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f1a8 addr: 41b2f170
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f940d400
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2f174
machine_apply_elf_rel: CALL26 9400000094000000->9400000094000114
sym: setup_arch info: 12 other: 00 shndx: 2 value: f40 size: 44
sym: setup_arch value: 41b2ff70 addr: 41b2f178
machine_apply_elf_rel: CALL26 9000000094000000->900000009400037e
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f1b0 addr: 41b2f17c
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f1b0 addr: 41b2f180
machine_apply_elf_rel: LDST64_ABS_LO12_NC b9412000f9400000->b9412000f940d800
sym: verify_sha256_digest info: 12 other: 00 shndx: 2 value: 0 size: fc
sym: verify_sha256_digest value: 41b2f030 addr: 41b2f18c
machine_apply_elf_rel: CALL26 3400004094000000->3400004097ffffa9
sym: post_verification_setup_arch info: 12 other: 00 shndx: 2 value: f28 size: 10
sym: post_verification_setup_arch value: 41b2ff58 addr: 41b2f1a0
machine_apply_elf_rel: JUMP26 d503201f14000000->d503201f1400036e
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32160 addr: 41b2f1a8
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32160
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41b324a0 addr: 41b2f1b0
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b324a0
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f548 addr: 41b2f1f0
machine_apply_elf_rel: ADR_PREL_PG_HI21 394002c090000019->394002c090000019
sym: putchar info: 12 other: 00 shndx: 2 value: ef0 size: 30
sym: putchar value: 41b2ff20 addr: 41b2f244
machine_apply_elf_rel: CALL26 17fffffb94000000->17fffffb94000337
sym: putchar info: 12 other: 00 shndx: 2 value: ef0 size: 30
sym: putchar value: 41b2ff20 addr: 41b2f2b0
machine_apply_elf_rel: CALL26 17fffffd94000000->17fffffd9400031c
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f548 addr: 41b2f30c
machine_apply_elf_rel: LDST64_ABS_LO12_NC 9ac224a4f9400326->9ac224a4f942a726
sym: putchar info: 12 other: 00 shndx: 2 value: ef0 size: 30
sym: putchar value: 41b2ff20 addr: 41b2f53c
machine_apply_elf_rel: CALL26 17fffffd94000000->17fffffd94000279
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32172 addr: 41b2f548
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32172
sym: vsprintf info: 12 other: 00 shndx: 2 value: 188 size: 38c
sym: vsprintf value: 41b2f1b8 addr: 41b2f5b4
machine_apply_elf_rel: CALL26 a8d07bfd94000000->a8d07bfd97ffff01
sym: vsprintf info: 12 other: 00 shndx: 2 value: 188 size: 38c
sym: vsprintf value: 41b2f1b8 addr: 41b2f634
machine_apply_elf_rel: CALL26 a8d17bfd94000000->a8d17bfd97fffee1
sym: purgatory info: 12 other: 00 shndx: 2 value: 130 size: 44
sym: purgatory value: 41b2f160 addr: 41b2f6f8
machine_apply_elf_rel: CALL26 5800001194000000->5800001197fffe9a
sym: arm64_kernel_entry info: 10 other: 00 shndx: 7 value: 128 size: 8
sym: arm64_kernel_entry value: 41b325c8 addr: 41b2f6fc
machine_apply_elf_rel: LD_PREL_LO19 5800000058000011->5800000058017671
sym: arm64_dtb_addr info: 10 other: 00 shndx: 7 value: 130 size: 8
sym: arm64_dtb_addr value: 41b325d0 addr: 41b2f700
machine_apply_elf_rel: LD_PREL_LO19 aa1f03e158000000->aa1f03e158017680
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff50 addr: 41b2ff24
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940002190000001->f940002190000001
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff50 addr: 41b2ff28
machine_apply_elf_rel: LDST64_ABS_LO12_NC f9400022f9400021->f9400022f947a821
sym: data info: 03 other: 00 shndx: 8 value: 0 size: 0
sym: data value: 41b32618 addr: 41b2ff50
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32618
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff68 addr: 41b2ff5c
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff68 addr: 41b2ff60
machine_apply_elf_rel: LDST64_ABS_LO12_NC 14000000f9400000->14000000f947b400
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2ff64
machine_apply_elf_rel: JUMP26 0000000014000000->0000000017fffd98
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b32183 addr: 41b2ff68
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b32183
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffb8 addr: 41b2ff7c
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffb8 addr: 41b2ff80
machine_apply_elf_rel: LDST64_ABS_LO12_NC f9400001f9400000->f9400001f947dc00
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffc0 addr: 41b2ff88
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffc0 addr: 41b2ff8c
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f947e000
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2ff90
machine_apply_elf_rel: CALL26 9000000094000000->9000000097fffd8d
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffc8 addr: 41b2ff94
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffc8 addr: 41b2ff98
machine_apply_elf_rel: LDST64_ABS_LO12_NC a8c17bfdf9400000->a8c17bfdf947e400
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffd0 addr: 41b2ffa8
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940000090000000->f940000090000000
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffd0 addr: 41b2ffac
machine_apply_elf_rel: LDST64_ABS_LO12_NC 14000000f9400000->14000000f947e800
sym: printf info: 12 other: 00 shndx: 2 value: 594 size: 80
sym: printf value: 41b2f5c4 addr: 41b2ffb0
machine_apply_elf_rel: JUMP26 d503201f14000000->d503201f17fffd85
sym: arm64_kernel_entry info: 10 other: 00 shndx: 7 value: 128 size: 8
sym: arm64_kernel_entry value: 41b325c8 addr: 41b2ffb8
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b325c8
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b321a2 addr: 41b2ffc0
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b321a2
sym: arm64_dtb_addr info: 10 other: 00 shndx: 7 value: 130 size: 8
sym: arm64_dtb_addr value: 41b325d0 addr: 41b2ffc8
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b325d0
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41b321b8 addr: 41b2ffd0
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b321b8
sym: sha256_process info: 12 other: 00 shndx: 2 value: 1010 size: 1dfc
sym: sha256_process value: 41b30040 addr: 41b31ec4
machine_apply_elf_rel: CALL26 eb15027f94000000->eb15027f97fff85f
sym: memcpy info: 12 other: 00 shndx: 2 value: 65c size: 24
sym: memcpy value: 41b2f68c addr: 41b31f04
machine_apply_elf_rel: CALL26 8b1602f694000000->8b1602f697fff5e2
sym: sha256_process info: 12 other: 00 shndx: 2 value: 1010 size: 1dfc
sym: sha256_process value: 41b30040 addr: 41b31f14
machine_apply_elf_rel: CALL26 8b15027394000000->8b15027397fff84b
sym: memcpy info: 12 other: 00 shndx: 2 value: 65c size: 24
sym: memcpy value: 41b2f68c addr: 41b31f54
machine_apply_elf_rel: JUMP26 d503201f14000000->d503201f17fff5ce
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b32110 addr: 41b31f78
machine_apply_elf_rel: ADR_PREL_PG_HI21 910003fd90000002->910003fdb0000002
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b32110 addr: 41b31f8c
machine_apply_elf_rel: LDST64_ABS_LO12_NC 52800705f9400041->52800705f9408841
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41b325d8 addr: 41b32110
machine_apply_elf_rel: ABS64 0000000000000000->0000000041b325d8
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f030 addr: 41b321ec
machine_apply_elf_rel: PREL32 000000fc00000000->000000fcffffce44
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f160 addr: 41b3221c
machine_apply_elf_rel: PREL32 0000004400000000->00000044ffffcf44
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f1b8 addr: 41b32254
machine_apply_elf_rel: PREL32 0000038c00000000->0000038cffffcf64
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f550 addr: 41b3229c
machine_apply_elf_rel: PREL32 0000007400000000->00000074ffffd2b4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f5c4 addr: 41b322c0
machine_apply_elf_rel: PREL32 0000008000000000->00000080ffffd304
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f644 addr: 41b322fc
machine_apply_elf_rel: PREL32 0000002800000000->00000028ffffd348
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f66c addr: 41b32310
machine_apply_elf_rel: PREL32 0000002000000000->00000020ffffd35c
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f68c addr: 41b32324
machine_apply_elf_rel: PREL32 0000002400000000->00000024ffffd368
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2f6b0 addr: 41b32338
machine_apply_elf_rel: PREL32 0000003800000000->00000038ffffd378
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff20 addr: 41b32364
machine_apply_elf_rel: PREL32 0000003000000000->00000030ffffdbbc
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff58 addr: 41b32378
machine_apply_elf_rel: PREL32 0000001000000000->00000010ffffdbe0
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ff70 addr: 41b3238c
machine_apply_elf_rel: PREL32 0000004400000000->00000044ffffdbe4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b2ffe0 addr: 41b323c4
machine_apply_elf_rel: PREL32 0000005400000000->00000054ffffdc1c
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b30040 addr: 41b323d8
machine_apply_elf_rel: PREL32 00001dfc00000000->00001dfcffffdc68
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b31e40 addr: 41b3241c
machine_apply_elf_rel: PREL32 0000011800000000->00000118fffffa24
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b31f60 addr: 41b32464
machine_apply_elf_rel: PREL32 0000001000000000->00000010fffffafc
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41b31f70 addr: 41b32478
machine_apply_elf_rel: PREL32 0000019c00000000->0000019cfffffaf8
kexec_load: entry = 0x41b2f6f0 flags = 0xb70000
nr_segments = 3
segment[0].buf = 0xffffae7c7010
segment[0].bufsz = 0x1a87200
segment[0].mem = 0x40000000
segment[0].memsz = 0x1b20000
segment[1].buf = 0xaaab112f0630
segment[1].bufsz = 0xe74e
segment[1].mem = 0x41b20000
segment[1].memsz = 0xf000
segment[2].buf = 0xaaab112ff300
segment[2].bufsz = 0x3620
segment[2].mem = 0x41b2f000
segment[2].memsz = 0x4000
imx8mp-sat3-som:~# systemctl kexec
imx8mp-sat3-som:~# [ OK ] Removed slice Slice /system/connectivity-checker.
[ OK ] Removed slice Slice /system/gnss-service.
[ OK ] Removed slice Slice /system/modprobe.
[ OK ] Stopped target Multi-User System.
[ OK ] Stopped target Login Prompts.
[ OK ] Stopped Stopping Serial Getty on ttymxc0...
Stopping Static Web Server...
Stopping System Logging Service...
[ OK ] Stopped Resets System Activity Logs.
Stopping User Login Management...
Stopping Load/Save Random Seed...
Stopping WiFi service for interface muap0...
[ OK ] Stopped OpenSSH Key Generation.
[ OK ] Stopped Job spooling tools.
[ OK ] Stopped Periodic Command Scheduler.
[ OK ] Stopped Telephony service.
[ OK ] Stopped Serial Getty on ttymxc0.
[ OK ] Stopped Static Web Server.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped User Login Management.
[ OK ] Stopped Avahi mDNS/DNS-SD Stack.
[ OK ] Stopped NFS status monitor for NFSv2/3 locking..
[ OK ] Stopped Respond to IPv6 Node Information Queries.
[ OK ] Stopped Network Router Discovery Daemon.
[ OK ] Stopped Diagnostics service.
[ OK ] Stopped Edge API Service.
[ OK ] Stopped LED service.
[ OK ] Stopped Oneweb modem service.
[ OK ] Stopped Pointing service.
[ OK ] Stopped WiFi service for interface muap0.
[ OK ] Stopped DNS forwarder and DHCP server.
[ OK ] Stopped Reboot and dump vmcore via kexec.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Removed slice Slice /system/dnsmasq.
[ OK ] Removed slice Slice /system/serial-getty.
[ OK ] Removed slice Slice /system/wifi-service.
[ OK ] Stopped target Network is Online.
[ OK ] Stopped target Host and Network Name Lookups.
[ OK ] Stopped target Redis In-Me…ry Data Store - all instances.
[ OK ] Stopped Network Manager Wait Online.
[ 1755.164747] wlan: HostMlme muap0 send deauth/disassoc
Stopping Hostapd IEEE 802.…A2/EAP/RADIUS Authenticator...
[ OK ] Stopped OneWeb modem GPIO setup.
[ 1755.192410] wlan: Stoping AP
[ 1755.195420] wlan: AP stopped
Stopping Redis In-Memory D…Store - persistent instance...
Stopping Redis In-Memory D… Store - temporary instance...
[ OK ] Stopped Hostapd IEEE 802.1…WPA2/EAP/RADIUS Authenticator.
[ OK ] Stopped Redis In-Memory Data Store - persistent instance.
[ OK ] Stopped Redis In-Memory Data Store - temporary instance.
[ OK ] Removed slice Slice /system/hostapd.
[ OK ] Stopped target Network.
Stopping Network Manager...
Stopping Network Name Resolution...
[ OK ] Stopped Network Name Resolution.
Stopping Network Configuration...
[ OK ] Stopped Network Manager.
Stopping D-Bus System Message Bus...
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped Network Configuration.
[ OK ] Stopped target Preparation for Network.
[ OK ] Stopped IPv6 Packet Filtering Framework.
[ OK ] Stopped IPv4 Packet Filtering Framework.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Path Units.
[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped target Slice Units.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Socket Units.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Closed Edge API Service Socket.
[ OK ] Closed sshd.socket.
[ OK ] Closed Static Web Server Socket.
[ OK ] Stopped target System Initialization.
[ OK ] Closed Syslog Socket.
[ OK ] Closed Network Service Netlink Socket.
Stopping Hardware RNG Entropy Gatherer Daemon...
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
Stopping Network Time Synchronization...
Stopping Record System Boot/Shutdown in UTMP...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Hardware RNG Entropy Gatherer Daemon.
[ OK ] Stopped Record System Boot/Shutdown in UTMP.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting Temporary Directory /tmp...
Unmounting /var/volatile...
[ OK ] Unmounted Temporary Directory /tmp.
[ OK ] Unmounted /var/volatile.
[ OK ] Stopped target Preparation for Local File Systems.
[ OK ] Stopped target Swaps.
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Reached target System Shutdown.
[ OK ] Reached target Late Shutdown Services.
Starting Reboot via kexec...
[ 1756.192633] audit: type=1334 audit(1651169714.824:14): prog-id=0 op=UNLOAD
[ 1756.199581] audit: type=1334 audit(1651169714.824:15): prog-id=0 op=UNLOAD
[ 1756.206504] audit: type=1334 audit(1651169714.836:16): prog-id=0 op=UNLOAD
[ 1756.213418] audit: type=1334 audit(1651169714.836:17): prog-id=0 op=UNLOAD
[ 1756.220338] audit: type=1334 audit(1651169714.844:18): prog-id=0 op=UNLOAD
[ 1756.227257] audit: type=1334 audit(1651169714.844:19): prog-id=0 op=UNLOAD
[ 1756.234186] audit: type=1334 audit(1651169714.844:20): prog-id=0 op=UNLOAD
[ 1756.241109] audit: type=1334 audit(1651169714.844:21): prog-id=0 op=UNLOAD
[ 1756.295781] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1756.310231] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1756.327494] systemd-journald[191]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1756.336805] audit: type=1335 audit(1651169714.968:22): pid=191 uid=0 auid=4294967295 tty=(none) ses=4294967295 comm="systemd-journal" exe="/usr/lib/systemd/systemd-journald" nl-mcgrp=1 op=disconnect res=1
[ 1756.357668] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1756.373053] systemd-shutdown[1]: Unmounting file systems.
[ 1756.380268] [541]: Remounting '/' read-only with options 'n/a'.
[ 1756.394798] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null). Quota mode: none.
[ 1756.406087] systemd-shutdown[1]: All filesystems unmounted.
[ 1756.411719] systemd-shutdown[1]: Deactivating swaps.
[ 1756.416861] systemd-shutdown[1]: All swaps deactivated.
[ 1756.422115] systemd-shutdown[1]: Detaching loop devices.
[ 1756.430167] systemd-shutdown[1]: All loop devices detached.
[ 1756.435817] systemd-shutdown[1]: Stopping MD devices.
[ 1756.441113] systemd-shutdown[1]: All MD devices stopped.
[ 1756.446480] systemd-shutdown[1]: Detaching DM devices.
[ 1756.451812] systemd-shutdown[1]: All DM devices detached.
[ 1756.457284] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[ 1756.472631] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1756.479345] systemd-shutdown[1]: Rebooting with kexec.
[ 1756.492023] imx-dwmac 30bf0000.ethernet eth1: Link is Down
[ 1756.517632] imx-dwmac 30bf0000.ethernet eth1: FPE workqueue stop
[ 1756.594288] imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-0:04] driver [ADIN1300] (irq=POLL)
[ 1756.602787] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii link mode
[ 1756.646941] kvm: exiting hardware virtualization
[ 1756.681499] wlan: start in-bound IR...
[ 1756.700777] kexec_core: Starting new kernel
[ 1756.745961] IRQ229: set affinity failed(-22).
[ 1756.745969] IRQ231: set affinity failed(-22).
[ 1756.747010] psci: CPU1 killed (polled 0 ms)
[ 1756.829996] IRQ229: set affinity failed(-22).
[ 1756.830011] IRQ231: set affinity failed(-22).
[ 1756.831052] psci: CPU2 killed (polled 0 ms)
[ 1756.872725] IRQ229: set affinity failed(-22).
[ 1756.872739] IRQ231: set affinity failed(-22).
[ 1756.873779] psci: CPU3 killed (polled 0 ms)
[ 1756.899261] Bye!
Another important thing, I have followed this great tutorial https://eastrivervillage.com/kexec-tools-with-the-hidden-purgatory/ for debugging the kexec call, and I believe that by enabling purgatory debug with --serial=ttymxc0 option in the kexec call, I should see some prints from purgatory, at least the first line from kexec-tools-2.0.23/purgatory/purgatory.c:
void purgatory(void)
{
printf("I'm in purgatory\n");
setup_arch();
if (!skip_checks && verify_sha256_digest()) {
for(;;) {
/* loop forever */
}
}
post_verification_setup_arch();
}
But nothing really happens! Am I wrong or this BSP is preventing the "purgatory" to be called at the first place? Do you have an update about this issue? Is it planned to be fixed at some point?
Any help / update would be appreciated.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
please refer to:
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Kdump-Crash-in-I-MX/ta-p/1124321
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The changes mentioned in that post still don't fix the kexec problem for iMX8, as far as my tests went
