hello:
I use orin NX 16G custom board,SDK version is R36.4.4. when I see error dmesg pint as follow:
drive file wrong position is in Linux_for_Tegra/source/nvidia-oot/drivers/media/platform/tegra/camera/vi/vi5_fops.c function is static void vi5_capture_dequeue(struct tegra_channel *chan, struct tegra_channel_buffer *buf)
status err is :
/**
* Capture error reported by VI falcon. See @ref notify_bits
* for detailed @ref ViFalconErrorBits "errors".
*/
#define CAPTURE_STATUS_FALCON_ERROR MK_U32(14)
but I not find err code: 8192 not include in file:camrtc-capture.h , CAPTURE_STATUS_NOTIFY_BIT_CSIMUX_* ,as follow:
Can you help confirm how to solve this error code?This issue was discovered during the testing of the following problem:
Custom hard ROI mmap API flow issue - #12 by asfsdgag thanks.
hello asfsdgag,
just for confirmation, did you meant the discarding frame has reported for the first six frames?
let me re-cap below from Topic 352532, post#12.
Basically, the data collected is almost always abnormal in the first 6.
hello:
first six frames data is incomplete, corr_err is always exist:
hello asfsdgag,
it looks expected for VI to drop those buffers.
you may try the workaround to ignore frame_err from the VI driver,
and, using --stream-skip=6 in the v4l capture pipeline to bypass those incomplete frames.
hello:
Do these errors not affect the complete data of VI mapping? Then use Linux C code to disable these error configurations. Which CID command? thanks
hello asfsdgag,
here’s code snippet to ignore frame_err from the VI driver.
diff --git a/drivers/media/platform/tegra/camera/vi/vi5_fops.c
@@ -558,7 +558,7 @@ static void vi5_capture_dequeue(struct tegra_channel *chan,
"err_data %d\n",
descr->status.frame_id, descr->status.flags,
descr->status.err_data);
- frame_err = true;
+ // frame_err = true;
}
please check below v4l capture pipeline as an example for calling stream-skip to drop buffers.
it’ll request for 10-frames in total, and saving single capture frame into test.raw.
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-skip=9 --stream-count=1 --stream-to=test.raw