您尚未登录。

楼主 #1 2020-12-21 22:40:58

听风识雨
会员
注册时间: 2020-08-15
已发帖子: 72
积分: 70

V3s的2D测试程序 modetest 使用貌似有问题, 请各位大佬过来围观一下

# modetest
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...failed
trying to open device 'rockchip'...failed
trying to open device 'atmel-hlcdc'...failed
trying to open device 'fsl-dcu-drm'...failed
trying to open device 'vc4'...failed
trying to open device 'virtio_gpu'...failed
trying to open device 'mediatek'...failed
trying to open device 'meson'...failed
trying to open device 'pl111'...failed
trying to open device 'stm'...failed
trying to open device 'sun4i-drm'...done
Encoders:
id      crtc    type    possible crtcs  possible clones
42      41      none    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
43      42      connected       unknown-1       154x86          1       42
  modes:
        index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  #0 800x480 61.58 800 840 888 928 480 493 496 525 30000 flags: ; type: preferred, driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        4 TILE:
                flags: immutable blob
                blobs:

                value:

CRTCs:
id      fb      pos     size
41      44      (0,0)   (800x480)
  #0 800x480 61.58 800 840 888 928 480 493 496 525 30000 flags: ; type: preferred, driver
  props:
        24 VRR_ENABLED:
                flags: range
                values: 0 1
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
31      0       0       0,0             0,0     0               0x00000001
  formats: BG16 BG24 BX12 BX15 BX24 RG16 RG24 RX12 RX15 RX24 XB15 XB12 XB24 XR15 XR12 XR24 NV16 NV12 NV21 NV61 UYVY VYUY YUYV YVYU YU11 YU12 YU16 YV11 YV12 YV16
  props:
        8 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        32 zpos:
                flags: range
                values: 0 2
                value: 0
        33 COLOR_ENCODING:
                flags: enum
                enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                value: 0
        34 COLOR_RANGE:
                flags: enum
                enums: YCbCr limited range=0 YCbCr full range=1
                value: 0
35      0       0       0,0             0,0     0               0x00000001
  formats: BG16 BG24 BX12 BX15 BX24 RG16 RG24 RX12 RX15 RX24 XB15 XB12 XB24 XR15 XR12 XR24 NV16 NV12 NV21 NV61 UYVY VYUY YUYV YVYU YU11 YU12 YU16 YV11 YV12 YV16
  props:
        8 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        36 zpos:
                flags: range
                values: 0 2
                value: 0
        37 COLOR_ENCODING:
                flags: enum
                enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                value: 0
        38 COLOR_RANGE:
                flags: enum
                enums: YCbCr limited range=0 YCbCr full range=1
                value: 0
39      41      44      0,0             0,0     0               0x00000001
  formats: AB15 AB12 AB24 AR15 AR12 AR24 BG16 BG24 BA15 BA12 BA24 BX24 RG16 RG24 RA12 RA15 RA24 RX24 XB24 XR24
  props:
        8 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        40 zpos:
                flags: range
                values: 0 2
                value: 0

Frame buffers:
id      size    pitch

_20201221224034.png

modetest -M sun4i-drm -P 31@41:800x480+10+10

modetest -M sun4i-drm -P 35@0:800x480+100+100

modetest -M sun4i-drm -P 39@41:800x480+100+100

这三个只有最后一个才有反应, 而且显示还不对

不知道是驱动不对, 还是modetest使用有误

离线

楼主 #2 2020-12-21 22:55:33

听风识雨
会员
注册时间: 2020-08-15
已发帖子: 72
积分: 70

Re: V3s的2D测试程序 modetest 使用貌似有问题, 请各位大佬过来围观一下

请问大家f1c100s上执行libdrm测试程序modetest屏幕没有反应
http://whycan.com/t_5446.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)



这个是前面 f1c100s  的 modetest 测试

离线

楼主 #3 2020-12-21 22:56:05

听风识雨
会员
注册时间: 2020-08-15
已发帖子: 72
积分: 70

Re: V3s的2D测试程序 modetest 使用貌似有问题, 请各位大佬过来围观一下

# modetest -M sun4i-drm -v -s 43@41:800x480
setting mode 800x480-61.58Hz on connectors 43, crtc 41
failed to set gamma: Function not implemented
freq: 61.88Hz
freq: 61.57Hz
freq: 61.58Hz
freq: 61.58Hz
freq: 61.58Hz
freq: 61.58Hz
freq: 61.58Hz
freq: 61.58Hz
freq: 61.58Hz

奇怪, 这个可以显示







后记, 把drm驱动patch了一下, 可以显示了:
--------------------------------------

# modetest
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...failed
trying to open device 'rockchip'...failed
trying to open device 'atmel-hlcdc'...failed
trying to open device 'fsl-dcu-drm'...failed
trying to open device 'vc4'...failed
trying to open device 'virtio_gpu'...failed
trying to open device 'mediatek'...failed
trying to open device 'meson'...failed
trying to open device 'pl111'...failed
trying to open device 'stm'...failed
trying to open device 'sun4i-drm'...done
Encoders:
id      crtc    type    possible crtcs  possible clones
44      43      none    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
45      44      connected       unknown-1       154x86          1       44
  modes:
        index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  #0 800x480 61.58 800 840 888 928 480 493 496 525 30000 flags: ; type: preferred, driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        4 TILE:
                flags: immutable blob
                blobs:

                value:

CRTCs:
id      fb      pos     size
43      46      (0,0)   (800x480)
  #0 800x480 61.58 800 840 888 928 480 493 496 525 30000 flags: ; type: preferred, driver
  props:
        23 VRR_ENABLED:
                flags: range
                values: 0 1
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
30      0       0       0,0             0,0     0               0x00000001
  formats: BG16 BG24 BX12 BX15 BX24 RG16 RG24 RX12 RX15 RX24 XB15 XB12 XB24 XR24 XR15 XR12 NV16 NV12 NV21 NV61 UYVY VYUY YUYV YVYU YU11 YU12 YU16 YV11 YV12 YV16
  props:
        7 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        29 IN_FORMATS:
                flags: immutable blob
                blobs:

                value:
                        01000000000000001e00000018000000
                        00000000900000004247313642473234
                        42583132425831354258323452473136
                        52473234525831325258313552583234
                        58423135584231325842323458523234
                        58523135585231324e5631364e563132
                        4e5632314e5636315559565956595559
                        59555956595659555955313159553132
                        59553136595631315956313259563136
                in_formats blob decoded:
                         BG16:
                         BG24:
                         BX12:
                         BX15:
                         BX24:
                         RG16:
                         RG24:
                         RX12:
                         RX15:
                         RX24:
                         XB15:
                         XB12:
                         XB24:
                         XR24:
                         XR15:
                         XR12:
                         NV16:
                         NV12:
                         NV21:
                         NV61:
                         UYVY:
                         VYUY:
                         YUYV:
                         YVYU:
                         YU11:
                         YU12:
                         YU16:
                         YV11:
                         YV12:
                         YV16:
        32 alpha:
                flags: range
                values: 0 65535
                value: 65535
        33 zpos:
                flags: range
                values: 0 2
                value: 0
34      43      46      0,0             0,0     0               0x00000001
  formats: BG16 BG24 BX12 BX15 BX24 RG16 RG24 RX12 RX15 RX24 XB15 XB12 XB24 XR24 XR15 XR12 NV16 NV12 NV21 NV61 UYVY VYUY YUYV YVYU YU11 YU12 YU16 YV11 YV12 YV16
  props:
        7 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        29 IN_FORMATS:
                flags: immutable blob
                blobs:

                value:
                        01000000000000001e00000018000000
                        00000000900000004247313642473234
                        42583132425831354258323452473136
                        52473234525831325258313552583234
                        58423135584231325842323458523234
                        58523135585231324e5631364e563132
                        4e5632314e5636315559565956595559
                        59555956595659555955313159553132
                        59553136595631315956313259563136
                in_formats blob decoded:
                         BG16:
                         BG24:
                         BX12:
                         BX15:
                         BX24:
                         RG16:
                         RG24:
                         RX12:
                         RX15:
                         RX24:
                         XB15:
                         XB12:
                         XB24:
                         XR24:
                         XR15:
                         XR12:
                         NV16:
                         NV12:
                         NV21:
                         NV61:
                         UYVY:
                         VYUY:
                         YUYV:
                         YVYU:
                         YU11:
                         YU12:
                         YU16:
                         YV11:
                         YV12:
                         YV16:
        36 alpha:
                flags: range
                values: 0 65535
                value: 65535
        37 zpos:
                flags: range
                values: 0 2
                value: 0
38      0       0       0,0             0,0     0               0x00000001
  formats: AB15 AB12 AB24 AR15 AR12 AR24 BG16 BG24 BA15 BA12 BA24 BX24 RG16 RG24 RA12 RA15 RA24 RX24 XB24 XR24
  props:
        7 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        29 IN_FORMATS:
                flags: immutable blob
                blobs:

                value:
                        01000000000000001400000018000000
                        00000000680000004142313541423132
                        41423234415231354152313241523234
                        42473136424732344241313542413132
                        42413234425832345247313652473234
                        52413132524131355241323452583234
                        5842323458523234
                in_formats blob decoded:
                         AB15:
                         AB12:
                         AB24:
                         AR15:
                         AR12:
                         AR24:
                         BG16:
                         BG24:
                         BA15:
                         BA12:
                         BA24:
                         BX24:
                         RG16:
                         RG24:
                         RA12:
                         RA15:
                         RA24:
                         RX24:
                         XB24:
                         XR24:
        40 alpha:
                flags: range
                values: 0 65535
                value: 65535
        41 pixel blend mode:
                flags: enum
                enums: None=2 Pre-multiplied=0 Coverage=1
                value: 0
        42 zpos:
                flags: range
                values: 0 2
                value: 0

Frame buffers:
id      size    pitch

可以显示了:

modetest -M sun4i-drm -P 30@43:480x272+10+10 -P 34@43:480x272+100+100 -P 38@43:480x272+150+150

modetest -M sun4i-drm -s 45:800x480 -F smpte

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn