This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: PSDKRA Demo run error

Part Number: TDA4VM

Hi TI experts,

part number :J721e

Reference:     vision_app

FreeRtos _ SDK8.4

A72 os -- Linux8.4

follow 

1)

insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/rpmsg/virtio_rpmsg_bus.ko
insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/remoteproc/ti_k3_r5_remoteproc.ko--Executing this command will result in coredump
insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/remoteproc/ti_k3_dsp_remoteproc.ko
insmod /lib/modules/5.10.120-g95b90aa828/extra/pvrsrvkm.ko
insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/rpmsg/rpmsg_char.ko
insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/rpmsg-kdrv/rpmsg_kdrv_switch.ko
root@j7-evm:/sys# /sbin/insmod /lib/modules/5.10.120-g95b90aa828/kernel/drivers/remoteproc/ti_k3_r5_remoteproc.ko
[  658.658990] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[  658.683872] platform 41000000.r5f: configured R5F for IPC-only mode
[  658.691974] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
[  658.704321] remoteproc remoteproc0: 41000000.r5f is available
[  658.711582] remoteproc remoteproc0: attaching to 41000000.r5f
[  658.718788] Unable to handle kernel paging request at virtual address ffff800016ffffff
[  658.728668] Mem abort info:
[  658.732151]   ESR = 0x96000006
[  658.735960]   EC = 0x25: DABT (current EL), IL = 32 bits
[  658.742584]   SET = 0, FnV = 0
[  658.746390]   EA = 0, S1PTW = 0
[  658.750304] Data abort info:
[  658.753894]   ISV = 0, ISS = 0x00000006
[  658.758680]   CM = 0, WnR = 0
[  658.762382] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000080f4c000
[  658.770740] [ffff800016ffffff] pgd=00000008fffff003, p4d=00000008fffff003, pud=00000008ffffe003, pmd=0000000000000000
[  658.783989] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[  658.790932] Modules linked in: ti_k3_r5_remoteproc(+) virtio_rpmsg_bus
[  658.799076] CPU: 0 PID: 1270 Comm: insmod Not tainted 5.10.120 #1
[  658.806670] Hardware name: Texas Instruments K3 J721E SoC (DT)
[  658.813939] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
[  658.821437] pc : rproc_handle_resources.constprop.0+0x94/0x168
[  658.828709] lr : rproc_boot+0x334/0x670
[  658.833483] sp : ffff8000115e37a0
[  658.837608] x29: ffff8000115e37a0 x28: ffff8000112852f0
[  658.844228] x27: ffff00082ee55800 x26: ffffffffffffffff
[  658.850848] x25: ffff800017000000 x24: ffff800010e83c70
[  658.857468] x23: ffff00082ee55838 x22: 0000000000000000
[  658.864087] x21: ffff800011205620 x20: ffff00082ee55800
[  658.870706] x19: 0000000000000000 x18: 0000000000000010
[  658.877326] x17: 0000000000000000 x16: 0000000000000000
[  658.883945] x15: ffff00082bb9a130 x14: ffffffffffffffff
[  658.890564] x13: ffffffffffffffff x12: ffffffffffffffff
[  658.897185] x11: ffffffffffffffff x10: ffffffffffffffff
[  658.903804] x9 : ffffffffffffffff x8 : ffffffffffffffff
[  658.910423] x7 : ffffffffffffffff x6 : ffff00082cdecd00
[  658.917043] x5 : 0000000000000000 x4 : 0000000000000000
[  658.923662] x3 : 00000000000000fd x2 : 00000000ffffffff
[  658.930282] x1 : ffff800017000003 x0 : ffff800017000000
[  658.936902] Call trace:
[  658.939946]  rproc_handle_resources.constprop.0+0x94/0x168
[  658.946781]  rproc_boot+0x334/0x670
[  658.951124]  rproc_add+0x88/0x158
[  658.955259]  k3_r5_probe+0x698/0xcf0 [ti_k3_r5_remoteproc]
[  658.962100]  platform_drv_probe+0x54/0xa8
[  658.967093]  really_probe+0xec/0x3e0
[  658.971544]  driver_probe_device+0x58/0xb8
[  658.976645]  device_driver_attach+0x74/0x80
[  658.981854]  __driver_attach+0x58/0xe0
[  658.986523]  bus_for_each_dev+0x70/0xc0
[  658.991299]  driver_attach+0x24/0x30
[  658.995749]  bus_add_driver+0x14c/0x1f0
[  659.000526]  driver_register+0x64/0x120
[  659.005302]  __platform_driver_register+0x48/0x58
[  659.011163]  k3_r5_rproc_driver_init+0x20/0x1000 [ti_k3_r5_remoteproc]
[  659.019301]  do_one_initcall+0x54/0x1b8
[  659.024080]  do_init_module+0x44/0x1f0
[  659.028747]  load_module+0x1f08/0x24a8
[  659.033415]  __do_sys_finit_module+0xb8/0xf8
[  659.038732]  __arm64_sys_finit_module+0x20/0x30
[  659.044377]  el0_svc_common.constprop.0+0x78/0x1c8
[  659.050345]  do_el0_svc+0x24/0x90
[  659.054472]  el0_svc+0x14/0x20
[  659.058273]  el0_sync_handler+0xb0/0xb8
[  659.063049]  el0_sync+0x180/0x1c0
[  659.067180] Code: 128002b3 9130e021 97ffeb8a 1400002e (b87a6b20)
[  659.074776] ---[ end trace 0ff245a6ca408857 ]---
Segmentation fault
root@j7-evm:/sys#
root@j7-evm:/sys#
2)
cd /opt/vision_apps
source ./vision_apps_init.sh
Now run the below script to run the single cam demo
./run_app_single_cam.sh
root@j7-evm:~# /opt/vision_apps/run_app_single_cam.sh
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=4) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
file_deref_link: readlink failed for /sys/bus/platform/devices/5c00000.r5f
_rpmsg_char_find_rproc: 5c00000.r5f device is mostly yet to be created!
file_deref_link: readlink failed for /sys/bus/platform/devices/5d00000.r5f
_rpmsg_char_find_rproc: 5d00000.r5f device is mostly yet to be created!
IPC: ERROR: Unable to create TX channels for CPU [mcu2_0] !!!
IPC: ERROR: Unable to create TX channels for CPU [mcu2_1] !!!
IPC: Init ... Done !!!
APP: ERROR: IPC init failed !!!
REMOTE_SERVICE: Init ... !!!
file_deref_link: readlink failed for /sys/bus/platform/devices/5c00000.r5f
_rpmsg_char_find_rproc: 5c00000.r5f device is mostly yet to be created!
file_deref_link: readlink failed for /sys/bus/platform/devices/5d00000.r5f
_rpmsg_char_find_rproc: 5d00000.r5f device is mostly yet to be created!
_rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.21
_rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio1.rpmsg_chrdev.-1.21
_rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
REMOTE_SERVICE: Init ... Done !!!
     0.000000 s: GTC Frequency = 0 MHz
APP: Init ... Done !!!
     0.000000 s:  VX_ZONE_INIT:Enabled
     0.000000 s:  VX_ZONE_ERROR:Enabled
     0.000000 s:  VX_ZONE_WARNING:Enabled
     0.000000 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
     0.000000 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
sensor_selection = [0]
ldc_enable = [0]
num_frames_to_run = [1000000000]
is_interactive = [1]
IttCtrl_registerHandler: command echo registered at location 0
IttCtrl_registerHandler: command iss_read_2a_params registered at location 1
IttCtrl_registerHandler: command iss_write_2a_params registered at location 2
IttCtrl_registerHandler: command iss_raw_save registered at location 3
IttCtrl_registerHandler: command iss_yuv_save registered at location 4
IttCtrl_registerHandler: command iss_read_sensor_reg registered at location 5
IttCtrl_registerHandler: command iss_write_sensor_reg registered at location 6
IttCtrl_registerHandler: command dev_ctrl registered at location 7
IttCtrl_registerHandler: command iss_send_dcc_file registered at location 8
 NETWORK: Opened at IP Addr = 1.4.16.64, socket port=5000!!!
     0.000000 s: ISS: Enumerating sensors ... !!!
REMOTE_SERVICE: TX: FAILED: mpu1_0 -> mcu2_0 (port 21) cmd = 0x00000000, prm_size = 384 bytes
     0.000000 s: ISS: ERROR: Enumerating sensors failed !!!


How to run psdkra demo run  successfully?