我在 github 中有这个 m4 端(Zephyr 3.39)项目:
https://github.com/neuberfran/pico_pi_m4
Yocto Hardknott (A7-Side) 文件中的设备树:
https://gist.github.com/neuberfran/64d3b164f43bdc752b01031a8e2d6689
我用这个命令准备 remoteproc:
- cat /sys/class/remoteproc/remoteproc0/固件
rproc-imx-rproc-fw
- cp zephyr.elf /lib/firmware/rproc-imx-rproc-fw
- echo 开始 > /sys/class/remoteproc/remoteproc0/stat
结果有问题:
echo start > /sys/class/remoteproc/remoteproc0/state
[99.210565] remoteproc remoteproc0:启动 imx-rproc
[99.230771] remoteproc remoteproc0:启动 fw 图像 rproc-imx-rproc-fw,大小 424264
[99.238567] remoteproc remoteproc0:否elf 中的资源表
[99.244674] 8<--- 在此处剪切 ---
[99.247777] 无法处理虚拟地址 00000000 处的内核空指针取消引用
[99.256138] pgd = 66bdc478
[99.258864] [00000000] *pgd=00000000
[99.262616]内部错误:糟糕:80000005 [#1] PREEMPT SMP ARM
[99.268541] 链接的模块:ov5640_camera_mipi_v2 mxc_mipi_csi mx6s_capture snd_soc_tfa98xx(O)
[99.277443] CPU:0 PID:258 Comm:sh 受污染:去 5.10.72-2.2.0-接下来+g000eb85263cb #1
[99.286574]硬件名称:Freescale i.MX7 Dual(设备树)
[99.292326]PC 位于 0x0
[99.294868]LR 位于 rproc_elf_load_segments+0x1a8/0x298
[99.300181]pc:[<00000000>]lr:[<80 8fd8e8>] psr:40090013
[99.306448] sp:852cfe28 ip:0000000c fp:00000000
[99.311674] r10:00000000 r9:84699000 r8:00000000
[99.3169 00] r7:00000001 r6:00002c14 r5:00002c14 r4:c0891054
[99.323429] r3:00002c14 r2: c08910d4 r1:c0948000 r0:84699000
[99.329959] 标志:模式 SVC_32 ISA ARM 段上 FIQ 上的 nZcv IRQ 无 [99.337096]
控制:10c5387d 表:85ad806a DAC:00000051
[ 99.342845] 进程 sh(pid:258,堆栈限制 = 0x8f72951e)
[99.348419]堆栈:(0x852cfe28 到 0x852d0000)
[ 99.352781] fe20: 00002c14 846c4a80 00000000 00000005 00000001 00000020
[ 99.360964] fe40: c08910d4 1fff8000 c0948000 84da5440 c0891000 84699020 808fe084 84699000
[ 99.369146] fe60: 00000000 84699020 84da5440 84699020 84da5440 846c4a80 00000000 80c83d8c
[ 99.377329] fe80: 84699000 00000000 846991f8 84699204 84699020 808fb1bc 84da5440 81205fc8
[ 99.385511] fea0: 84699020 84da5080 00000006 84699000 8478aa10 00000000 00000000 808fc920
[ 99.393694] fec0: 00000006 84da5080 8478aa00 852cff30 8478aa10 802f0d60 00000000 00000000
[ 99.401876] fee0: 852c8780 00000000 00000006 00000000 852cff80 00000004 00000000 80259ce0
[ 99.410058] ff00: 00000006 85ad8028 85ad8028 00000000 00a6c4f0 00000006 00000005 00000000
[ 99.418240] ff20: 00000000 852cff18 00000000 852cffb0 852c8780 00000000 00000000 00000000
[ 99.426422] ff40: 00000000 00000000 00000000 00000000 00000000 00000000 646416bd 81205fc8
[ 99.434604] ff60: 18f5f673 852c8780 852c8780 00000000 00000000 80100264 852ce000 80259f60
[ 99.442787] ff80: 00000000 00000000 00000000 81205fc8 00000014 00000006 00a6c4f0 76f8d480
[ 99.450969] ffa0: 00000004 80100060 00000006 00a6c4f0 00000001 00a6c4f0 00000006 00000000
[ 99.459151] ffc0: 00000006 00a6c4f0 76f8d480 00000004 76f1bc60 00000000 004ecc00 00000000
[ 99.467333] ffe0: 00000004 7ecb19d8 76eb84bf 76e44386 40010030 00000001 00000000 00000000
[ 99.475528] [<808fd8e8>] ( rproc_elf_load_segments) 来自 [<80c83d8c>] (rproc_start+0x24/0x154)
[ 99.484063] [<80c83d8c>] (rproc_start) 来自 [<808fb1bc>] (rproc_boot+0x494/0x4ac) [ 99.491553] [<808fb1bc>] (rproc_boot) 来自 [<808fc920>] (state_store+0x40
/0xc8)
[ 99 .498872 ] [<808fc920>] (state_store) 来自 [<802f0d60>] (kernfs_fop_write_iter+0x10c/0x1cc)
[ 99.507320] [<802f0d60>] (kernfs_fop_write_iter) 来自 [<80259ce0>] (vfs_write+0x318/0x 44c)
[ 99.515591] [ <80259ce0>] (vfs_write) 来自 [<80259f60>] (ksys_write+0x64/0xe4)
[ 99.522734] [<80259f60>] (ksys_write) 来自 [<80100060>] (ret_fast_syscall+0x0/0x54)
[ 99.530391 ]异常堆栈( 0x852cffa8 到 0x852cfff0)
[ 99.535447] ffa0: 00000006 00a6c4f0 00000001 00a6c4f0 00000006 00000000
[ 99.543630] ffc0:00000006 00a6c4f0 76f8d480 00000004 76f1bc60 00000000 004ecc00 00000000
[ 99.551809] ffe0: 00000004 7ecb19d8 76eb84bf 76e44386
[ 99.556868] 代码:错误的 PC 值
[ 99.561373] --- [ 结束跟踪 2a8ab4c62ec4b5eb ]---
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:21):
内核 [249]: [ 99.348419] 堆栈: (0x852cfe28 到 0x852d0000)
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:21):
内核 [249]: [ 99.352781] fe20: 00002c14 846c4a80 00000000 00000005 00000001 00000020
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:21):
内核 [249]: [ 99.360964] fe40: c08910d4 1fff8000 c0948000 84da5440 c0891000 84699020 808fe084 84699000
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:21):
内核 [249]: [ 99.369146] fe60: 00000000 84699020 84da5440 84699020 84da5440 846c4a80 00000000 80c83d8c
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:21):
内核 [249]: [ 99.377329] fe80: 84699000 00000000 846991f8 84699204 84699020 808fb1bc 84da5440 81205fc8
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:22):
内核[249]:[99.385511] fea0:84699020 84da5080 00000006 84699000 8478aa10 00000000 00000000 808fc920
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:22):
内核 [249]: [ 99.393694] fec0: 00000006 84da5080 8478aa00 852cff30 8478aa10 802f0d60 00000000 00000000
来自 systemd-journald@scorpion 的广播消息(UTC 2023-05-16 星期二 23:50:22):
内核 [249]: [ 99.401876] fee0: 852c8780 00000000 00000006 00000000 852cff80 00000004 00000000 80259ce0
TechNexion i.MX Release Distro 5.10-hardknott 蝎子 ttymxc4
蝎子登录:root