i.MX8M Plus ISP standalone

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Plus ISP standalone

Jump to solution
758 Views
ulrich_sorensen
Contributor II

Hi,

I am trying to get the iMX8MP EVK board and Basler BCON camera to work using a differnet build system than Yocto. The camera and board works fine on Yocto ver. 5.15.5 but using Ptxdist to build a linux BSP, I cannot get the video stream to start.

On Ptxdist I have build a 5.15.5 kernel with the NXP patches to the iMX8MP. Furthermore, I have downloaded:

https://source.codeaurora.org/external/imx/isp-vvcam/tag/?h=lf-5.15.5-1.0.0
https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/isp-imx-4.2.2.17.0.bin

Using Ptxdist, I have built the vvcam kernel modules and the isp-imx software and drivers. The kernel modules and the isp_media_server and libs are copied to the iMX8MP EVK board to the designated folders (/usr/lib and /opt/imx8-isp/bin/). However since it is not working I suspect something to be wrong with my build but I have a hard time figuring out exactly what is wrong.

On target I start the media server using the script:

/opt/imx8-isp/bin/start_isp.sh

root@board:~ /opt/imx8-isp/bin/start_isp.sh
Starting isp_media_server for Single Basler daA3840-30mc
realpath: -s: No such file or directory
RUN_SCRIPT=/opt/imx8-isp/bin/run.sh
RUN_SCRIPT_PATH=/opt/imx8-isp/bin
Trying configuration "basler_4k"...
Removing vvcam-isp...
Removing vvcam-dwe...
Removing vvcam-video...
Removing imx8-media-dev...
Removing ov2775...
Removing os08a20...
Removing basler-camera-driver-vvcam...
Loading module basler-camera-driver-vvcam ...
basler_camera_driver_vvcam
Loaded /usr/lib/modules/5.15.5-lts-next+gc1084c2773fc/extra/sensor/camera-proxy-driver/basler-camera-driver-vvcam.ko
Loading module imx8-media-dev ...
imx8_media_dev
Loaded /usr/lib/modules/5.15.5-lts-next+gc1084c2773fc/kernel/drivers/staging/media/imx/imx8-media-dev.ko
Loading module vvcam-video ...
vvcam_video
Loaded /usr/lib/modules/5.15.5-lts-next+gc1084c2773fc/extra/video/vvcam-video.ko
Loading module vvcam-dwe ...
vvcam_dwe
vvcam_dwe 28672 2
vvcam-dwe already loaded.
Loading module vvcam-isp ...
vvcam_isp
vvcam_isp 65536 2
vvcam-isp already loaded.
Starting isp_media_server with configuration file CAMERA0
[CITF][INF]: camdev::Ispcore_Holder::Ispcore_Holder() (enter)
[CITF][INF]: camdev::Ispcore_Holder::Ispcore_Holder(): ISPcore camdevice startup.. Initiaise

This seems to work fine and creates a media device which is like what I see on the Yocto system.

root@board:~ media-ctl -d/dev/media1 -p
Media controller API version 5.15.5

Media device information
------------------------
driver vvcam-video
model viv_media
serial
bus info
hw revision 0x0
driver version 5.15.5

Device topology
- entity 1: viv_v4l20 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "vvcam-isp.0":0 [ENABLED]

- entity 5: vvcam-dwe.0 (2 pads, 0 link)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev2
pad0: Source
pad1: Sink

- entity 8: vvcam-isp.0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev3
pad0: Source
-> "viv_v4l20":0 [ENABLED]


That all goes well but when I run GStreamer, I get the following error.


root@board:~ gst-launch-1.0 -v v4l2src device=/dev/video2 ! "video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1" ! queue ! avimux ! filesink location=video1.avi
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[CITF][INF]: CAM_DEVICE creating CAM_DEVICE!
[CITF][INF]: CommItf creating CitfApi!
can't open video file /dev/video0
can't open video file /dev/video1
found viv video dev /dev/video2
failed to map data: 0x00000000, 0xfffffff0, 0xffffffffffffffff
HAL-ALTERA: Can't open Altera FPGA board
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CTIF Citf! IN
[CITF][INF]: CITF created, set default subID
[CITF][INF]: CommItf create done CitfApi!
[CITF][INF]: CommItf CitfCreateBuffItf! IN, create Bitf
[CITF][INF]: camdev::Bitf::Bitf()
[CITF][INF]: CommItf CitfCreateBuffItf OUT!
[CITF][INF]: CommItf CitfCreateEvent! IN, create Bitf
[CITF][INF]: CommItf CitfCreateEvent OUT!
[CITF][INF]: CommItf Event instance created CitfEvent!
[CITF][INF]: CommItf create done CitfEvent!
[CITF][INF]: initHardware ispcore 0 created!
[CITF][INF]: RESULT camdev::Bitf::bitfSetBufferPoolCtrl(ISPCORE_BUFIO_ID, camdev::BuffPool*)
[CITF][INF]: CitfSetBufferParameters!, buffMode:1
ERROR : [MediaPipeline] NativeSensor open error!
ERROR : [V4l2Event] initialize MediaPipeline error!

 

Does anyone have an idea what may be wrong and where I should start to look.

Thanks,

Ulrich

1 Solution
717 Views
joanxie
NXP TechSupport
NXP TechSupport

sorry, Ptxdist  isn't supported officially by NXP and we don't have experience on this

 

View solution in original post

0 Kudos
1 Reply
718 Views
joanxie
NXP TechSupport
NXP TechSupport

sorry, Ptxdist  isn't supported officially by NXP and we don't have experience on this

 

0 Kudos