Other Parts Discussed in Thread: AM62A7
Tool/software:
Hi:
I have disable the init script and systemd and using myinit.sh to implement the fast start of kernel.
Here is the trace when i running the application:
+ ./opt/edgeai-gst-apps/apps_cpp/bin/Release/app_edgeai ./opt/edgeai-gst-apps/configs/imx219_cam_example.yaml
libtidl_onnxrt_EP loaded 0x18d62680
Final number of subgraphs created are : 1, - Offloaded Nodes - 283, Total Nodes - 283
APP: Init ... !!!
15.116162 s: MEM: Init ... !!!
15.116262 s: MEM: Initialized DMA HEAP (fd=5) !!!
15.116492 s: MEM: Init ... Done !!!
15.116516 s: IPC: Init ... !!!
15.133931 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
15.140032 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
15.144836 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
15.144883 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
15.144894 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
15.146106 s: VX_ZONE_ERROR: [ownPlatformInit:131] POSIX semaphore create failed
15.146650 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0
15.146769 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1
15.146892 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2
15.146987 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3
15.147002 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
15.147020 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
/sbin/init: line 61: 677 Segmentation fault (core dumped)[ 10.233621] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
./opt/edgeai-gst-apps/apps_cpp/bin/Release/app_edgeai ./opt/edg[ 10.246432] CPU: 1 PID: 1 Comm: init Not tainted 6.6.44-ti-01478-g541c20281af7-dirty #1
eai-gst-apps/configs/imx219_cam_example.yaml
+ echo 'System ini[ 10.259955] Hardware name: Texas Instruments AM62A7 SK (DT)
tialized: Hello world!!!!!!'
System initialized: Hello world!!![ 10.271055] Call trace:
!!!
[ 10.279033] dump_backtrace+0x90/0xe8
here is setting in myinit.sh.
#!/bin/sh
set -x
export PATH=/usr/bin:/sbin:/bin
export LD_LIBRARY_PATH=/lib:/usr/lib:$LD_LIBRARY_PATH
mount -t proc proc /proc
mount -n -t sysfs none /sys
mount -t debugfs none /sys/kernel/debug
mount -n -t tmpfs none /run
export SOC=am62a
export DEVICE_NAME=AM62A
# Load essential kernel modules
insmod /lib/modules/6.6.44-ti-01478-g541c20281af7-dirty/kernel/drivers/rpmsg/rpmsg_char.ko
insmod /lib/modules/6.6.44-ti-01478-g541c20281af7-dirty/kernel/drivers/remoteproc/ti_k3_r5_remoteproc.ko
insmod /lib/modules/6.6.44-ti-01478-g541c20281af7-dirty/kernel/drivers/remoteproc/ti_k3_dsp_remoteproc.ko
echo am62a-mcu-r5f0_0-fw > /sys/kernel/debug/remoteproc/remoteproc0/firmware
echo start > /sys/kernel/debug/remoteproc/remoteproc0/state
/sbin/udevd --daemon
/sbin/udevadm trigger --action=add
/sbin/udevadm settle
sysctl -w kernel.sem="500 32000 100 512"
echo 500 > /proc/sys/kernel/sem
ulimit -c unlimited
echo "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
export EDGEAI_GST_APPS_PATH=/opt/edgeai-gst-apps
export EDGEAI_DATA_PATH=/opt/edgeai-test-data
export OOB_DEMO_ASSETS_PATH=/opt/oob-demo-assets
export MODEL_ZOO_PATH=/opt/model_zoo
export EDGEAI_VERSION=10.1
export EDGEAI_SDK_VERSION=10_01_00
bash /opt/edgeai-gst-apps/scripts/setup_cameras_v3link.sh
media-ctl -V '"imx219 6-0010":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
media-ctl -V '"30102000.ticsi2rx":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
echo 1 > /sys/kernel/debug/remoteproc/remoteproc0/firmware
echo start > /sys/kernel/debug/remoteproc/remoteproc0/state
./opt/edgeai-gst-apps/apps_cpp/bin/Release/app_edgeai ./opt/edgeai-gst-apps/configs/imx219_cam_example.yaml
echo "System initialized: Hello world!!!!!!"
It seems that remoteproc and other problem.
+ insmod /lib/modules/6.6.44-ti-01478-g541c20281af7-dirty/kernel/drivers/remoteproc/ti_k3_r5_remoteproc.ko
[ 2.560352] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -517
[ 2.571554] remoteproc remoteproc0: releasing 79000000.r5f
[ 2.578010] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -517
[ 2.587789] remoteproc remoteproc0: releasing 78000000.r5f
+ insmod /lib/modules/6.6.44-ti-01478-g541c20281af7-dirty/kernel/drivers/remoteproc/ti_k3_dsp_remoteproc.ko