In the /boot partition of the KirkStone build I see these files:
imx8mp_m7_TCM_hello_world.bin
imx8mp_m7_TCM_low_power_voice.bin
imx8mp_m7_TCM_low_power_wakeword.bin
imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin
imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin
imx8mp_m7_TCM_sai_low_power_audio.bin
From https://community.nxp.com/t5/i-MX-Processors/imx8mq-m4-TCM-hello-world-bin-with-Thud/m-p/943422
I expect these should be started like this from u-boot:
u-boot=> fatload mmc 1:1 0x48000000 imx8mm_m7_TCM_hello_world.bin
Failed to load ‘imx8mm_m7_TCM_hello_world.bin’
u-boot=> fatload mmc 1:1 0x48000000 imx8mp_m7_TCM_hello_world.bin
8512 bytes read in 2 ms (4.1 MiB/s)
u-boot=> cp.b 0x48000000 0x7e0000 20000
u-boot=> bootaux 0x7e0000
Starting auxiliary core stack = 0x20020000, pc = 0x000004CD…
u-boot=> boot
However when I load and start this demo file on the cortex-m7, the kernel crashes:
[ 1.930934] CPU: 3 PID: 131 Comm: kworker/u8:2 Not tainted 5.15.71+g7f26b695837b #1
[ 1.930940] Hardware name: SolidRun i.MX8MP CuBox-M (DT)
[ 1.930945] Workqueue: events_unbound deferred_probe_work_func
[ 1.930962] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=–)
[ 1.930969] pc : of_match_node+0x2c/0xb0
[ 1.930977] lr : i2c_imx_probe+0x2e8/0x860
[ 1.930985] sp : ffff800009ed3aa0
[ 1.930988] x29: ffff800009ed3aa0 x28: ffff0000055e1ca0 x27: 0000000000000000
[ 1.930997] x26: ffff0000055e18f0 x25: ffff800009177308 x24: ffff8000091772d0
[ 1.931005] x23: ffff800009a6c728 x22: ffff0000bfa76050 x21: ffff000004432000
[ 1.931014] x20: ffff000004432010 x19: ffff800009177308 x18: 0000000000000001
[ 1.931022] x17: 000000040044ffff x16: 00400032b5503510 x15: 0000000000000000
[ 1.931030] x14: 00000000000000b0 x13: 0000000000004c00 x12: ffff000004bc6a14
[ 1.931039] x11: ffff800009ed3a60 x10: aaaaaaaaaaaaaaab x9 : 0000000000000060
[ 1.931049] x8 : ffff8000098a8b70 x7 : 0000000000000000 x6 : 000000000007a120
[ 1.931062] x5 : 0000000000b71aff x4 : 0000000000000002 x3 : 0000000000000002
[ 1.931071] x2 : 000000000000000c x1 : ffff0000bfa76050 x0 : ffff800009a6c728
[ 1.931085] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 1.931089] CPU: 3 PID: 131 Comm: kworker/u8:2 Not tainted 5.15.71+g7f26b695837b #1
[ 1.931097] Hardware name: SolidRun i.MX8MP CuBox-M (DT)
[ 1.931099] Workqueue: events_unbound deferred_probe_work_func
[ 1.931108] Call trace:
[ 1.931110] dump_backtrace+0x0/0x19c
[ 1.931119] show_stack+0x18/0x70
[ 1.931126] dump_stack_lvl+0x68/0x84
[ 1.931137] dump_stack+0x18/0x34
[ 1.931143] panic+0x15c/0x31c
[ 1.931151] nmi_panic+0x8c/0x90
[ 1.931161] arm64_serror_panic+0x6c/0x7c
[ 1.931166] do_serror+0x58/0x5c
[ 1.931171] el1h_64_error_handler+0x30/0x50
[ 1.931180] el1h_64_error+0x78/0x7c
[ 1.931188] of_match_node+0x2c/0xb0
[ 1.931193] i2c_imx_probe+0x2e8/0x860
[ 1.931201] platform_probe+0x68/0xe0
[ 1.931209] really_probe.part.0+0x9c/0x30c
[ 1.931216] __driver_probe_device+0x98/0x144
[ 1.931223] driver_probe_device+0xc8/0x15c
[ 1.931232] __device_attach_driver+0xb8/0x134
[ 1.931244] bus_for_each_drv+0x78/0xd0
[ 1.931250] __device_attach+0xa8/0x1c0
[ 1.931259] device_initial_probe+0x14/0x20
[ 1.931270] bus_probe_device+0x9c/0xa4
[ 1.931279] deferred_probe_work_func+0x80/0xc0
[ 1.931288] process_one_work+0x1d0/0x354
[ 1.931296] worker_thread+0x2c0/0x470
[ 1.931303] kthread+0x150/0x160
[ 1.931310] ret_from_fork+0x10/0x20
[ 1.931318] SMP: stopping secondary CPUs
[ 1.931636] Kernel Offset: disabled
[ 1.931638] CPU features: 0x00002001,20000846
[ 1.931642] Memory Limit: none
How do I use these demos on a Cubox-M ?
regards
Henk Schouten