Hi, I'm developing the parallel camera on a custom board:
TinyRex Max module (iMX6Q) with max9272(deserializer) + max9271(serializer) + ISP + AR0143AT(image sensor)
The deserializer(max9272) parallel output are connected with TinyRex.
Yocto linux was installed, referring to http://wiki.voipac.com/xwiki/bin/vie...+tinyrex/yocto
The deserializer is controlled by I2C on #0 bus at 0x48.
The driver for the deserializer is not included in the BSP, kernel sources.
For the deserializer, i wrote a device tree but it's not accurate.
I want to capture or preview video with my custom camera, but failed to open /dev/video0, /dev/video1 files.
The error message "ERROR: v4l2 capture: slave not found!" came from mxc_v4l2_capture module, (drivers/media/platform/mxc/capture/mxc_v4l2_capture.c)
below condition returns true so the error occurs.
cam->sensor have to have driver_data, but it seems sensor is NULL.
1. Do i need a driver for the deserializer?
If then, Please give me a link for reference.
If not, how can i capture video with deserializer parallel camera input?
2. How do i create a device tree for the deserializer? There are many samples for the image sensor, but not samples for the deserializer.
Thanks. Regards,
Das Kim
TinyRex Max module (iMX6Q) with max9272(deserializer) + max9271(serializer) + ISP + AR0143AT(image sensor)
The deserializer(max9272) parallel output are connected with TinyRex.
Yocto linux was installed, referring to http://wiki.voipac.com/xwiki/bin/vie...+tinyrex/yocto
The deserializer is controlled by I2C on #0 bus at 0x48.
Code:
# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: UU -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- # i2cdump -y 0 0x48 No size specified (using byte-data access) 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 80 90 1f 00 87 29 02 00 00 00 00 00 00 b6 7a 00 ???.?)?......?z. 10: 00 00 00 00 0a 22 30 54 30 c8 0f 5f ff 30 0a 02 ....?"0T0??_.0?? 20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX ...<skip>... f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
For the deserializer, i wrote a device tree but it's not accurate.
Code:
&i2c1 { /* Deserializer MAX9272*/ max9272: max9272@48 { status = "okay"; compatible = "maxim,max9272"; reg = <0x48>; clocks = <&clks IMX6QDL_CLK_DUMMY>; clock-names = "csi_mclk"; pwn-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; led-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; csi_id = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ipu1_csi0>; mclk = <37000000>; mclk_source = <0>; }; };
Code:
# v4l2-ctl --all ERROR: v4l2 capture: slave not found! Failed to open /dev/video0: Resource temporarily unavailable # gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink ERROR: v4l2 capture: slave not found! ERROR: v4l2 capture: slave not found! Can't get caps from capture device, use the default setting. Perhaps haven't capture device. ====== IMXV4L2SRC: 4.1.6 build on Sep 18 2019 17:40:41. ====== ====== IMXV4L2SINK: 4.1.6 build on Sep 18 2019 17:40:41. ====== WARNING: erroneous pipeline: could not link imxv4l2src0 to imxv4l2sink0
The error message "ERROR: v4l2 capture: slave not found!" came from mxc_v4l2_capture module, (drivers/media/platform/mxc/capture/mxc_v4l2_capture.c)
below condition returns true so the error occurs.
Code:
cam->sensor == NULL
1. Do i need a driver for the deserializer?
If then, Please give me a link for reference.
If not, how can i capture video with deserializer parallel camera input?
2. How do i create a device tree for the deserializer? There are many samples for the image sensor, but not samples for the deserializer.
Thanks. Regards,
Das Kim
Comment