Hi,
I'm trying to bring-up basler-daa3840-mc on iMx8 MP solidrun SoM with Ubuntu 20.04 rootfs. I'm using kernel version 5.10.72 which is built from source provided by solidrun with basler camera support. (ref). I'm using the isp-vvcam driver with the same version lf-5.10.y_2.2.0. I'm using isp-imx_4.2.2.16.0 and the patches/overlays provided by basler to support the basler camera.
The camera driver gets probed successfully but when I try to run the imx_media_server application, It gives segmentation fault without printing anything on the console.
Here is the full dump of the start_isp.sh script:
analog@aditof:~/isp-imx-4.2.2.16.0/mediacontrol/daemon$ sudo /opt/imx8-isp/bin/start_isp.sh
Starting isp_media_server
DAA3840_30MC_266 on ISP 1
RUN_SCRIPT=/opt/imx8-isp/bin/run.sh
RUN_SCRIPT_PATH=/opt/imx8-isp/bin
Apply configuration isp0: ...
Apply configuration isp1: DAA3840_30MC_266 ...
Loading module basler-camera-driver-vvcam ...
basler_camera_driver_vvcam
basler_camera_driver_vvcam 24576 0
basler-camera-driver-vvcam already loaded.
Loading module imx8-media-dev ...
imx8_media_dev
Loaded /usr/lib/modules/5.10.72-adi-gc8f61459963d/kernel/drivers/staging/media/imx/imx8-media-dev.ko
Loading module vvcam-video ...
vvcam_video
vvcam_video 45056 0
vvcam-video already loaded.
Loading module vvcam-dwe ...
vvcam_dwe
vvcam_dwe 28672 2
vvcam-dwe already loaded.
Loading module vvcam-isp ...
vvcam_isp
vvcam_isp 69632 2
vvcam-isp already loaded.
Starting isp_media_server with configuration CAMERA1
/opt/imx8-isp/bin/run.sh: line 178: 1500 Segmentation fault ./isp_media_server $STARTMODE
Here is the dump of dmesg when after probing the driver before running the script:
[ +0.035842] basler_camera_driver_vvcam: loading out-of-tree module taints kernel.
[ +0.069022] ABRM FamilyName not supported
[ +0.031117] ABRM: Manufacturer: Basler, Model: daA3840-30mc, Device: 108220-05, Serial: basler:40097239
[ +0.056186] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ +0.001711] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0
[ +0.000203] mx8-img-md: Registered sensor subdevice: basler-camera-vvcam 3-0036 (1)
[ +0.000012] mx8-img-md: Registered sensor subdevice: adsd3500 1-0038 (2)
[ +0.000009] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ +0.000005] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ +0.000006] mx8-img-md: created link [adsd3500 1-0038] => [mxc-mipi-csi2.0]
[ +0.000010] mx8-img-md: created link [basler-camera-vvcam 3-0036] => [mxc-mipi-csi2.1]
[ +0.000007] mxc-md 32c00000.bus:camera: mxc_md_create_links
[ +0.072911] enter viv_video_init_module
[ +0.055660] enter viv_dwe_init_module
[ +0.000458] enter dwe_hw_probe
[ +0.000659] vvcam dewarp driver probed
[ +0.062509] enter viv_isp_init_module
[ +0.000445] enter isp_hw_probe
[ +0.000329] vvcam isp driver registered
[ +0.001521] enter isp_hw_probe
[ +0.002429] vvcam isp driver registered
[ +0.009074] enter isp_mi_stop
[ +0.007432] enter isp_mi_stop
Here is the dmesg dump after running the script:
[Feb16 11:04] : Unregistered all entities
[ +0.074758] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ +0.001282] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0
[ +0.000098] mx8-img-md: Registered sensor subdevice: basler-camera-vvcam 3-0036 (1)
[ +0.000006] mx8-img-md: Registered sensor subdevice: adsd3500 1-0038 (2)
[ +0.000007] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ +0.000005] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ +0.000005] mx8-img-md: created link [adsd3500 1-0038] => [mxc-mipi-csi2.0]
[ +0.000004] mx8-img-md: created link [basler-camera-vvcam 3-0036] => [mxc-mipi-csi2.1]
[ +0.000005] mxc-md 32c00000.bus:camera: mxc_md_create_links
Can anyone help to fix the issue?