MINISASTOCSI Linux L4.9.88_2.0.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MINISASTOCSI Linux L4.9.88_2.0.0

ソリューションへジャンプ
1,996件の閲覧回数
shawnnageli
Contributor II

I have been working to get the CSI camera adapter working with L4.9.88_2.0.0 (stock image).  When going into u-boot it could not find fsl-imx8mq-evk-mipi-csi2.dtb.  It is not installed in the stock image.

 

I found in the Linux Binary Demo Images - i.MX 8MQuad EVK folder several .dtb files one if which included Image-fsl-imx8mq-evk-mipi-csi2.dtb.  I copied this to the same directly I found he default dtb file ( /run/media/mmcblk0p1 ).  Once this was installed I was able to set in u-boot to this dtb and ran fine into Linux.

However, when running the gstreamer command provided in the documentation it is unable to open the pipeline.  I get the following error:

WARNING: erroneous pipeline: no element "v412src"

Any feedback would be appreciated.  It is plugged into J1502 as instructed.

ラベル(1)
0 件の賞賛
返信
1 解決策
1,465件の閲覧回数
diegoadrian
NXP Employee
NXP Employee

Hello,

You do not need to change the device tree to use the CSI camera, the BSP supports the camera as it is. You only need to run the below gstreamer pipeline:

gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=640,height=480,framerate=30/1' ! kmssink

Hope this can help you.

Best Regards,

Diego.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,466件の閲覧回数
diegoadrian
NXP Employee
NXP Employee

Hello,

You do not need to change the device tree to use the CSI camera, the BSP supports the camera as it is. You only need to run the below gstreamer pipeline:

gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=640,height=480,framerate=30/1' ! kmssink

Hope this can help you.

Best Regards,

Diego.

0 件の賞賛
返信
1,465件の閲覧回数
shawnnageli
Contributor II

Initially I was following the quick start guide for the MINISASTOCSI.  In this guide they indicated to run the alternate .dtb listed in the document. https://www.nxp.com/docs/en/application-note/AN12187.pdf 

The real issue appears to be the gstreamer pipeline command.  The one listed in the document is what returns the warning output I provided.  When I run the one suggested this works.  May be good to update that document.

Here is my terminal output showing the kernel version I am using along with responses to both gstreamer commands for reference.

root@imx8mqevk:~# uname -r
4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d
root@imx8mqevk:~# gst-launch-1.0 v412src ! video/x-raw,width=640,height=480 ! kmssink
WARNING: erroneous pipeline: no element "v412src"
root@imx8mqevk:~# gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=640,height=480,framerate=30/1' ! kmssink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Thanks,

Shawn

0 件の賞賛
返信
1,465件の閲覧回数
haidong_zheng
NXP Employee
NXP Employee

I don't quite understand your question, but if you want use fsl-imx8mq-evk-mipi-csi2.dtb please use J1503.

0 件の賞賛
返信