Part Number: AM62A7
Other Parts Discussed in Thread: AM62P,
Dear Engineer,
I am currently working on switching streams between two different ports, where each stream is being pushed from separate cameras. However, I am encountering random crashes during runtime.
During boot-up, I noticed the following error:
rmmod: ERROR: Module wave5 is in use
To address this, I modified the init_script.sh as shown below:
diff --git a/edgeai-gst-apps/init_script.sh b/edgeai-gst-apps/init_script.sh
old mode 100755
new mode 100644
index 69d6d19..ab9dbd0
--- a/edgeai-gst-apps/init_script.sh
+++ b/edgeai-gst-apps/init_script.sh
@@ -59,8 +59,7 @@ elif [ "$SOC" == "j784s4" ]; then
k3conf set clock 400 1 720000000 &> /dev/null #VPAC1
k3conf set clock 92 0 480000000 &> /dev/null #DMPAC
elif [ "$SOC" == "am62a" ]; then
- rmmod wave5
- modprobe wave5 vpu_poll_interval=1
+ lsmod | grep -q wave5 || modprobe wave5 vpu_poll_interval=1
fi
Despite this change, I am still seeing runtime errors and warnings:
[ 539.203443] vdec 30210000.video-codec: wave5_vpu_enc_finish_encode: encoded buffer (1) was not in ready queue 0.
[ 539.214308] vdec 30210000.video-codec: wave5_vpu_enc_finish_encode: no source buffer with index: 1 found
[ 573.338134] vdec 30210000.video-codec: wave5_vpu_firmware_command_queue_error_check: result not ready: 0x800
[ 573.348087] vdec 30210000.video-codec: wave5_vpu_firmware_command_queue_error_check: result not ready: 0x800
[ 573.358347] vdec 30210000.video-codec: wave5_vpu_dec_finish_decode: could not get output info.
** (python3:1854): WARNING **: v4l2h264dec0: Too old frames, bug in decoder -- please file a bug
It appears that the issue may be related to the wave5 VPU decoder or buffer handling when switching streams.
Could you please advise:
- Whether this issue can be fixed with a proper handling approach?
- Or if there is any recommended alternative method for stream switching to avoid these crashes?
Best regards,
Sajan
