kexec fail in iMX8MQ : kernel 5.4.47

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kexec fail in iMX8MQ : kernel 5.4.47

2,543 Views
byonghoon
Contributor I

Hello. I am developing a product based on imx8mq evk.

kexec does not work in the environment based on yocto zeus(5.4.47).

<load secondary kernel>
kexec -d -l -t Image /boot/Image --dtb=/boot/imx8mq-evk.dtb --reuse-cmdline --append="reset_devices"

arch_process_options:172: command_line: console=ttymxc0,115200 logo.nologo vt.global_cursor_default=0 fec.macaddr=0x98,0x93,0xCC,0x1F,0x43,0x56 root=/dev/mmcblk0p2 rootwait rw reset_devices
arch_process_options:174: initrd: (null)
arch_process_options:176: dtb: /boot/imx8mq-evk.dtb
Try gzip decompression.
Try LZMA decompression.
lzma_decompress_file: read on /boot/Image of 65536 bytes failed
kernel: 0xffffaf0f1010 kernel_size: 0x1ab6a00
Can't open (/proc/kcore).
kernel symbol _stext vaddr = ffff800010081000
va_bits : 47
page_offset : ffffc00000000000
Can't open (/proc/kcore).
set_phys_offset: phys_offset : 0000000040000000 (method : iomem)
get_memory_ranges_iomem_cb: 0000000040000000 - 00000000b7ffffff : System RAM
get_memory_ranges_iomem_cb: 0000000041b20000 - 0000000041dfffff : reserved
get_memory_ranges_iomem_cb: 0000000043000000 - 000000004300bfff : reserved
get_memory_ranges_iomem_cb: 0000000044000000 - 000000007fffffff : reserved
get_memory_ranges_iomem_cb: 00000000b8400000 - 00000000fdffffff : System RAM
get_memory_ranges_iomem_cb: 00000000fa000000 - 00000000fdffffff : reserved
get_memory_ranges_iomem_cb: 0000000100000000 - 000000013fffffff : System RAM
get_memory_ranges_iomem_cb: 000000013ae00000 - 000000013b5fffff : reserved
get_memory_ranges_iomem_cb: 000000013b7fe000 - 000000013f5fffff : reserved
get_memory_ranges_iomem_cb: 000000013f714000 - 000000013f773fff : reserved
get_memory_ranges_iomem_cb: 000000013f774000 - 000000013f7d4fff : reserved
get_memory_ranges_iomem_cb: 000000013f7d7000 - 000000013f7d7fff : reserved
get_memory_ranges_iomem_cb: 000000013f7d8000 - 000000013f7ddfff : reserved
get_memory_ranges_iomem_cb: 000000013f7de000 - 000000013f810fff : reserved
get_memory_ranges_iomem_cb: 000000013f811000 - 000000013fffffff : reserved
image_arm64_load: kernel_segment: 0000000040000000
image_arm64_load: text_offset: 0000000000080000
image_arm64_load: image_size: 0000000001bba000
image_arm64_load: phys_offset: 0000000040000000
image_arm64_load: vp_offset: ffffffffffffffff
image_arm64_load: PE format: yes
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 41c3a000, size b4e8h (46312)
sym: sha256_starts info: 12 other: 00 shndx: 2 value: ed0 size: 50
sym: sha256_starts value: 41c46f00 addr: 41c46044
machine_apply_elf_rel: CALL26 9000000094000000->90000000940003af
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46128 addr: 41c46048
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: 41c46128 addr: 41c4604c
machine_apply_elf_rel: LDST64_ABS_LO12_NC aa1303f6f9400013->aa1303f6f9409413
sym: sha256_update info: 12 other: 00 shndx: 2 value: 2e30 size: c
sym: sha256_update value: 41c48e60 addr: 41c46064
machine_apply_elf_rel: CALL26 eb14027f94000000->eb14027f94000b7f
sym: sha256_finish info: 12 other: 00 shndx: 2 value: 2e40 size: 194
sym: sha256_finish value: 41c48e70 addr: 41c4607c
machine_apply_elf_rel: CALL26 aa1303e194000000->aa1303e194000b7d
sym: memcmp info: 12 other: 00 shndx: 2 value: 65c size: 34
sym: memcmp value: 41c4668c addr: 41c4608c
machine_apply_elf_rel: CALL26 3400042094000000->3400042094000180
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46130 addr: 41c46094
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: 41c46130 addr: 41c46098
machine_apply_elf_rel: LDST64_ABS_LO12_NC 90000015f9400000->90000015f9409800
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46140 addr: 41c4609c
machine_apply_elf_rel: ADR_PREL_PG_HI21 910002b590000015->910002b590000015
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46140 addr: 41c460a0
machine_apply_elf_rel: ADD_ABS_LO12_NC d2800013910002b5->d2800013910502b5
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460a8
machine_apply_elf_rel: CALL26 9000000094000000->9000000094000141
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46138 addr: 41c460ac
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: 41c46138 addr: 41c460b0
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f9409c00
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460b4
machine_apply_elf_rel: CALL26 38736a8194000000->38736a819400013e
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460c4
machine_apply_elf_rel: CALL26 f100827f94000000->f100827f9400013a
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46148 addr: 41c460d0
machine_apply_elf_rel: ADR_PREL_PG_HI21 f940026090000013->f940026090000013
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46148 addr: 41c460d4
machine_apply_elf_rel: LDST64_ABS_LO12_NC 910402d6f9400260->910402d6f940a660
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460e0
machine_apply_elf_rel: CALL26 9000000094000000->9000000094000133
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46150 addr: 41c460e4
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: 41c46150 addr: 41c460e8
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f940a800
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460ec
machine_apply_elf_rel: CALL26 38746ac194000000->38746ac194000130
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c460fc
machine_apply_elf_rel: CALL26 f100829f94000000->f100829f9400012c
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46148 addr: 41c46108
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400260->94000000f940a660
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c4610c
machine_apply_elf_rel: CALL26 5280002094000000->5280002094000128
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41c49318 addr: 41c46128
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49318
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49010 addr: 41c46130
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49010
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49030 addr: 41c46138
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49030
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49040 addr: 41c46140
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49040
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49046 addr: 41c46148
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49046
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49048 addr: 41c46150
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49048
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46198 addr: 41c46160
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: 41c46198 addr: 41c46164
machine_apply_elf_rel: LDST64_ABS_LO12_NC 94000000f9400000->94000000f940cc00
sym: printf info: 12 other: 00 shndx: 2 value: 57c size: 80
sym: printf value: 41c465ac addr: 41c46168
machine_apply_elf_rel: CALL26 9400000094000000->9400000094000111
sym: setup_arch info: 12 other: 00 shndx: 2 value: ec8 size: 4
sym: setup_arch value: 41c46ef8 addr: 41c4616c
machine_apply_elf_rel: CALL26 9000000094000000->9000000094000363
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c461a0 addr: 41c46170
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: 41c461a0 addr: 41c46174
machine_apply_elf_rel: LDST64_ABS_LO12_NC b9412000f9400000->b9412000f940d000
sym: verify_sha256_digest info: 12 other: 00 shndx: 2 value: 0 size: f4
sym: verify_sha256_digest value: 41c46030 addr: 41c46180
machine_apply_elf_rel: CALL26 3400004094000000->3400004097ffffac
sym: post_verification_setup_arch info: 12 other: 00 shndx: 2 value: ec4 size: 4
sym: post_verification_setup_arch value: 41c46ef4 addr: 41c46190
machine_apply_elf_rel: JUMP26 d503201f14000000->d503201f14000359
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c49058 addr: 41c46198
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49058
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41c49318 addr: 41c461a0
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49318
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46530 addr: 41c461dc
machine_apply_elf_rel: ADR_PREL_PG_HI21 394002c090000019->394002c090000019
sym: putchar info: 12 other: 00 shndx: 2 value: ec0 size: 4
sym: putchar value: 41c46ef0 addr: 41c4622c
machine_apply_elf_rel: CALL26 17fffffb94000000->17fffffb94000331
sym: putchar info: 12 other: 00 shndx: 2 value: ec0 size: 4
sym: putchar value: 41c46ef0 addr: 41c46298
machine_apply_elf_rel: CALL26 17fffffd94000000->17fffffd94000316
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46530 addr: 41c462f0
machine_apply_elf_rel: LDST64_ABS_LO12_NC 9ac224a3f9400326->9ac224a3f9429b26
sym: putchar info: 12 other: 00 shndx: 2 value: ec0 size: 4
sym: putchar value: 41c46ef0 addr: 41c46524
machine_apply_elf_rel: CALL26 17fffffd94000000->17fffffd94000273
sym: .rodata.str1.1 info: 03 other: 00 shndx: 4 value: 0 size: 0
sym: .rodata.str1.1 value: 41c4906a addr: 41c46530
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c4906a
sym: vsprintf info: 12 other: 00 shndx: 2 value: 178 size: 384
sym: vsprintf value: 41c461a8 addr: 41c465a0
machine_apply_elf_rel: CALL26 a8d07bfd94000000->a8d07bfd97ffff02
sym: vsprintf info: 12 other: 00 shndx: 2 value: 178 size: 384
sym: vsprintf value: 41c461a8 addr: 41c46620
machine_apply_elf_rel: CALL26 a8d17bfd94000000->a8d17bfd97fffee2
sym: purgatory info: 12 other: 00 shndx: 2 value: 128 size: 3c
sym: purgatory value: 41c46158 addr: 41c466c8
machine_apply_elf_rel: CALL26 5800001194000000->5800001197fffea4
sym: arm64_kernel_entry info: 10 other: 00 shndx: 7 value: 128 size: 8
sym: arm64_kernel_entry value: 41c49440 addr: 41c466cc
machine_apply_elf_rel: LD_PREL_LO19 5800000058000011->5800000058016bb1
sym: arm64_dtb_addr info: 10 other: 00 shndx: 7 value: 130 size: 8
sym: arm64_dtb_addr value: 41c49448 addr: 41c466d0
machine_apply_elf_rel: LD_PREL_LO19 aa1f03e158000000->aa1f03e158016bc0
sym: sha256_process info: 12 other: 00 shndx: 2 value: f20 size: 1dfc
sym: sha256_process value: 41c46f50 addr: 41c48dcc
machine_apply_elf_rel: CALL26 eb15027f94000000->eb15027f97fff861
sym: memcpy info: 12 other: 00 shndx: 2 value: 63c size: 20
sym: memcpy value: 41c4666c addr: 41c48e08
machine_apply_elf_rel: CALL26 8b1602f694000000->8b1602f697fff619
sym: sha256_process info: 12 other: 00 shndx: 2 value: f20 size: 1dfc
sym: sha256_process value: 41c46f50 addr: 41c48e18
machine_apply_elf_rel: CALL26 8b15027394000000->8b15027397fff84e
sym: memcpy info: 12 other: 00 shndx: 2 value: 63c size: 20
sym: memcpy value: 41c4666c addr: 41c48e54
machine_apply_elf_rel: JUMP26 d503201f14000000->d503201f17fff606
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c49008 addr: 41c48e74
machine_apply_elf_rel: ADR_PREL_PG_HI21 5280070590000002->52800705b0000002
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c49008 addr: 41c48e8c
machine_apply_elf_rel: LDST64_ABS_LO12_NC aa0003f3f9400041->aa0003f3f9400441
sym: .data info: 03 other: 00 shndx: 7 value: 0 size: 0
sym: .data value: 41c49450 addr: 41c49008
machine_apply_elf_rel: ABS64 0000000000000000->0000000041c49450
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46030 addr: 41c4909c
machine_apply_elf_rel: PREL32 000000f400000000->000000f4ffffcf94
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46158 addr: 41c490c8
machine_apply_elf_rel: PREL32 0000003c00000000->0000003cffffd090
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c461a8 addr: 41c490fc
machine_apply_elf_rel: PREL32 0000038400000000->00000384ffffd0ac
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46538 addr: 41c49140
machine_apply_elf_rel: PREL32 0000007400000000->00000074ffffd3f8
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c465ac addr: 41c49160
machine_apply_elf_rel: PREL32 0000008000000000->00000080ffffd44c
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c4662c addr: 41c49194
machine_apply_elf_rel: PREL32 0000002400000000->00000024ffffd498
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46650 addr: 41c491a8
machine_apply_elf_rel: PREL32 0000001c00000000->0000001cffffd4a8
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c4666c addr: 41c491bc
machine_apply_elf_rel: PREL32 0000002000000000->00000020ffffd4b0
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c4668c addr: 41c491d0
machine_apply_elf_rel: PREL32 0000003400000000->00000034ffffd4bc
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46ef0 addr: 41c491fc
machine_apply_elf_rel: PREL32 0000000400000000->00000004ffffdcf4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46ef4 addr: 41c49210
machine_apply_elf_rel: PREL32 0000000400000000->00000004ffffdce4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46ef8 addr: 41c49224
machine_apply_elf_rel: PREL32 0000000400000000->00000004ffffdcd4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46f00 addr: 41c4924c
machine_apply_elf_rel: PREL32 0000005000000000->00000050ffffdcb4
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c46f50 addr: 41c49260
machine_apply_elf_rel: PREL32 00001dfc00000000->00001dfcffffdcf0
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c48d50 addr: 41c492a0
machine_apply_elf_rel: PREL32 0000010800000000->00000108fffffab0
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c48e60 addr: 41c492e0
machine_apply_elf_rel: PREL32 0000000c00000000->0000000cfffffb80
sym: .text info: 03 other: 00 shndx: 2 value: 0 size: 0
sym: .text value: 41c48e70 addr: 41c492f4
machine_apply_elf_rel: PREL32 0000019400000000->00000194fffffb7c
kexec_load: entry = 0x41c466c0 flags = 0xb70000
nr_segments = 3
segment[0].buf = 0xffffaf0f1010
segment[0].bufsz = 0x1ab6a00
segment[0].mem = 0x40080000
segment[0].memsz = 0x1bba000
segment[1].buf = 0xaaaaea59f100
segment[1].bufsz = 0xb4e8
segment[1].mem = 0x41c3a000
segment[1].memsz = 0xc000
segment[2].buf = 0xaaaaea59a200
segment[2].bufsz = 0x3490
segment[2].mem = 0x41c46000
segment[2].memsz = 0x4000

<start secondary kernel>
kexec -d -i -e

After then, I can just see below "Bye!" message.



root@imx8mqevk:~# kexec -d -i -e
arch_process_options:172: command_line: (null)
arch_process_options:174: initrd: (null)
arch_proc[ 987.299698] reboot: LINUX_REBOOT_CMD_KEXEC
[ 987.304255] kvm: exiting hardware virtualization
ess_options:176: dtb: (null)

Broadcast message from systemd-journald@imx8mqevk (Tue 2021-04-06 07:24:30 UTC):

kernel[342]: [ 987.299698] reboot: LINUX_REBOOT_CMD_KEXEC

[ 987.505043] kexec_core: Starting new kernel
[ 987.509294] Disabling non-boot CPUs ...

Broadcast message from systemd-journald@imx8mqevk (Tue 2021-04-06 07:24:31 UTC):

kernel[342]: [ 987.505043] kexec_core: Starting new kernel

[ 987.544264] CPU1: shutdown
[ 987.546991] psci: CPU1 killed (polled 0 ms)
[ 987.576211] CPU2: shutdown
[ 987.578938] psci: CPU2 killed (polled 0 ms)
[ 987.615655] CPU3: shutdown
[ 987.618390] psci: CPU3 killed (polled 0 ms)
[ 987.628778] Bye!

 
 
0 Kudos
Reply
4 Replies

1,850 Views
jason-kim
Contributor I

Please enable kcore from the kernel menu.
kernel menuconfig -> pseudo file system -> kcore enable
I hope it helps someone.

0 Kudos
Reply

2,298 Views
Jems-advantech
Contributor I

 Hi,

    I also got the same Error message when running kexec. Is this issue has been fixed in new released?

Error log:

Try gzip decompression.
Try LZMA decompression.
lzma_decompress_file: read on /boot/Image of 65536 bytes failed
kernel: 0xffff9aa57010 kernel_size: 0x1af9a00
Can't open (/proc/kcore).
kernel symbol _stext vaddr = ffff800010081000
va_bits : 47
page_offset : ffffc00000000000
Can't open (/proc/kcore).
set_phys_offset: phys_offset : 0000000040000000 (method : iomem)
get_memory_ranges_iomem_cb: 0000000040000000 - 00000000557fffff : System RAM
get_memory_ranges_iomem_cb: 0000000041b70000 - 0000000041e3ffff : reserved
get_memory_ranges_iomem_cb: 0000000043000000 - 000000004300ffff : reserved
get_memory_ranges_iomem_cb: 0000000058000000 - 00000000923fffff : System RAM

 

0 Kudos
Reply

2,528 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello byonghoon,

Confirmed on 5.4.70-2.3.0 and 5.10.9-1.0.0/8MPlus too, this is a bug in our BSP. Apparently you have previously open a case with this thread, you will be contacted from the other case while this will remain closed.

 

Regards

Alfredo

 

2,524 Views
byonghoon
Contributor I

Hi Alfredo.

Thank you for your answer.


Yeah. I already issued it up to the NXP team.

So, NXP team is currently following this issue? 


0 Kudos
Reply