|
发表于 2021-12-14 16:11:24
浏览:4273
|
回复:0
打印
只看该作者
[复制链接]
楼主
CAM-8MS1M摄像头 无法出图,请教下,使用方式是不是不对:
[root@RK356X:/]# media-ctl -p -d /dev/media0
Media controller API version 4.19.206
Media device information
------------------------
driver rkisp-vir0
model rkisp0
serial
bus info
hw revision 0x0
driver version 4.19.206
Device topology
- entity 1: rkisp-isp-subdev (4 pads, 7 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:YUYV8_2X8/1920x1080 field:none
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
<- "rkisp-csi-subdev":1 [ENABLED]
<- "rkisp_rawrd0_m":0 []
<- "rkisp_rawrd2_s":0 []
pad1: Sink
<- "rkisp-input-params":0 [ENABLED]
pad2: Source
[fmt:YUYV8_2X8/1920x1080 field:none colorspace:smpte170m quantization:full-range
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
-> "rkisp_mainpath":0 [ENABLED]
-> "rkisp_selfpath":0 [ENABLED]
pad3: Source
-> "rkisp-statistics":0 [ENABLED]
- entity 6: rkisp-csi-subdev (6 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:YUYV8_2X8/1920x1080 field:none]
<- "rockchip-csi2-dphy0":1 [ENABLED]
pad1: Source
[fmt:YUYV8_2X8/1920x1080 field:none]
-> "rkisp-isp-subdev":0 [ENABLED]
pad2: Source
[fmt:YUYV8_2X8/1920x1080 field:none]
-> "rkisp_rawwr0":0 [ENABLED]
pad3: Source
[fmt:YUYV8_2X8/1920x1080 field:none]
pad4: Source
[fmt:YUYV8_2X8/1920x1080 field:none]
-> "rkisp_rawwr2":0 [ENABLED]
pad5: Source
[fmt:YUYV8_2X8/1920x1080 field:none]
-> "rkisp_rawwr3":0 [ENABLED]
- entity 13: rkisp_mainpath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "rkisp-isp-subdev":2 [ENABLED]
- entity 19: rkisp_selfpath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "rkisp-isp-subdev":2 [ENABLED]
- entity 25: rkisp_rawwr0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "rkisp-csi-subdev":2 [ENABLED]
- entity 31: rkisp_rawwr2 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "rkisp-csi-subdev":4 [ENABLED]
- entity 37: rkisp_rawwr3 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
<- "rkisp-csi-subdev":5 [ENABLED]
- entity 43: rkisp_rawrd0_m (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: Source
-> "rkisp-isp-subdev":0 []
- entity 49: rkisp_rawrd2_s (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: Source
-> "rkisp-isp-subdev":0 []
- entity 55: rkisp-statistics (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video7
pad0: Sink
<- "rkisp-isp-subdev":3 [ENABLED]
- entity 61: rkisp-input-params (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video8
pad0: Source
-> "rkisp-isp-subdev":1 [ENABLED]
- entity 67: rockchip-csi2-dphy0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Sink
[fmt:YUYV8_2X8/1920x1080@10000/300000 field:none]
<- "m00_b_xc7160 4-001b":0 [ENABLED]
pad1: Source
[fmt:YUYV8_2X8/1920x1080@10000/300000 field:none]
-> "rkisp-csi-subdev":0 [ENABLED]
- entity 70: m00_b_xc7160 4-001b (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[fmt:YUYV8_2X8/1920x1080@10000/300000 field:none]
-> "rockchip-csi2-dphy0":0 [ENABLED]
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]# v4l2-ctl -d /dev/video0 --list-formats
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar
[0]: 'UYVY' (UYVY 4:2:2)
[1]: '422P' (Planar YUV 4:2:2)
[2]: 'NV16' (Y/CbCr 4:2:2)
[3]: 'NV61' (Y/CrCb 4:2:2)
[4]: 'YM16' (Planar YUV 4:2:2 (N-C))
[5]: 'NV21' (Y/CrCb 4:2:0)
[6]: 'NV12' (Y/CbCr 4:2:0)
[7]: 'NM21' (Y/CrCb 4:2:0 (N-C))
[8]: 'NM12' (Y/CbCr 4:2:0 (N-C))
[9]: 'YU12' (Planar YUV 4:2:0)
[10]: 'YM24' (Planar YUV 4:4:4 (N-C))
[11]: 'RGGB' (8-bit Bayer RGRG/GBGB)
[12]: 'GRBG' (8-bit Bayer GRGR/BGBG)
[13]: 'GBRG' (8-bit Bayer GBGB/RGRG)
[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
[15]: 'RG10' (10-bit Bayer RGRG/GBGB)
[16]: 'BA10' (10-bit Bayer GRGR/BGBG)
[17]: 'GB10' (10-bit Bayer GBGB/RGRG)
[18]: 'BG10' (10-bit Bayer BGBG/GRGR)
[19]: 'RG12' (12-bit Bayer RGRG/GBGB)
[20]: 'BA12' (12-bit Bayer GRGR/BGBG)
[21]: 'GB12' (12-bit Bayer GBGB/RGRG)
[22]: 'BG12' (12-bit Bayer BGBG/GRGR)
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]# v4l2-ctl --verbose -d /dev/video0 --set-selection=target=crop,t
op=0,left=0,width=1920,height=1080 --set-fmt-video=width=1920,height=1080,pixelf
ormat=NV12 --stream-mmap=3 --stream-to=/tmp/nv12.bin --stream-count=10 --stream-
poll
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
Width/Height : 1920/1080
Pixel Format : 'NV12' (Y/CbCr 4:2:0)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Full Range
Plane 0 :
Bytes per Line : 1920
Size Image : 3110400
VIDIOC_G_SELECTION: ok
VIDIOC_S_SELECTION: ok
select timeout
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]#
[root@RK356X:/]# dmesg | grep xc
[ 2.156066] xc7160 4-001b: T-chip firefly camera driver version: 00.01.02
[ 2.156341] xc7160 4-001b: Failed to get power-gpios, maybe no use
[ 2.156413] xc7160 4-001b: Looking up avdd-supply from device tree
[ 2.156424] xc7160 4-001b: Looking up avdd-supply property in node /i2c@fe5d0000/XC7160b@1b failed
[ 2.156456] xc7160 4-001b: 4-001b supply avdd not found, using dummy regulator
[ 2.156539] xc7160 4-001b: Linked as a consumer to regulator.0
[ 2.156559] xc7160 4-001b: Looking up dovdd-supply from device tree
[ 2.156568] xc7160 4-001b: Looking up dovdd-supply property in node /i2c@fe5d0000/XC7160b@1b failed
[ 2.156586] xc7160 4-001b: 4-001b supply dovdd not found, using dummy regulator
[ 2.156633] xc7160 4-001b: Looking up dvdd-supply from device tree
[ 2.156642] xc7160 4-001b: Looking up dvdd-supply property in node /i2c@fe5d0000/XC7160b@1b failed
[ 2.156658] xc7160 4-001b: 4-001b supply dvdd not found, using dummy regulator
[ 2.156719] xc7160 4-001b: could not get default pinstate
[ 2.156736] xc7160 4-001b: could not get sleep pinstate
[ 2.156761] xc7160 4-001b: Success to get xc7160 endpoint data lanes, dts uses 4 lanes
[ 2.156776] xc7160 4-001b: xc7160 num data lanes is 4
[ 2.171118] xc7160 4-001b: isp chip is xc7160
[ 2.171349] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_xc7160 4-001b:bus type 4
[ 4.977753] xc7160 4-001b: isp chip is xc7160
[ 5.008350] xc7160 4-001b: isp chip is xc7160
[ 5.044364] xc7160 4-001b: isp chip is xc7160
[ 5.074432] xc7160 4-001b: isp chip is xc7160
[ 5.834502] xc7160 4-001b: isp chip is xc7160
[ 5.870525] xc7160 4-001b: isp chip is xc7160
[ 6.987726] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[ 318.361127] xc7160 4-001b: isp chip is xc7160
[ 327.964417] xc7160 4-001b: isp chip is xc7160
[ 327.973993] xc7160 4-001b: xc7160 res wxh: 1920x1080@30fps
[ 328.356446] xc7160 4-001b: sensor chip is SC8238
[root@RK356X:/]#
软件环境: SDK : firefly/rk356x_linux_release_20211019
硬件环境:ROC-RK3568-PC V1.0 2021.05.20 + CAM-8MS1M
还请各位大神赐教,谢谢。
|
|