system: I.MX8QM / Yocto 5.4 BSP
HW connection:
Camera sensor -> TI 935(Serializer) -> TI 960(Deserializer) -> MX8 MIPI-CSI2
Hardware and drivers work well and sensor image can be captured via V4L2 interface after power-on or rebooting. The size of file 'test.yuv' keeps increasing when executing this command after power-on or rebooting:
gst-launch-1.0 -v v4l2src device=/dev/video2 ! filesink location=test.yuv sync=false async=false
However, we failed to capture sensor image after 'deep system sleep', i.e, SUSPEND_TO_RAM.
You can repeat the problem using the following test commands:
#enable wakeup system from debug UART
echo enabled > /sys/class/tty/ttyLP0/power/wakeup
#deep sleep, SUSPEND_TO_RAM
echo mem > /sys/power/state
System suspending works as expected.
Then to capture sensor image after waking up the system from debug UART:
gst-launch-1.0 -v v4l2src device=/dev/video2 ! filesink location=test.yuv sync=false async=false
There is no image frame captured successfully because the size of file 'test.yuv' is always 0.
Note that if the system is suspended to 'freeze':
echo freeze > /sys/power/state
Everything works well and sensor image can be captured successfully after system resuming.
How to fix this problem?
Hi Jie
may be recommended to try latest nxp 5.10 kernel :
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y
Documentation
Best regards
igor