cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3,299 Views
Registered: ‎09-07-2016

modetest does not work on zcu102 with Rev1.0 version on SDK 2017.04

Jump to solution

Hi experts,

 

According to http://www.wiki.xilinx.com/ZynqMP%20DisplayPort%20Linux%20driver,

I found modetest does not work,any comments?

 

root@plnx:~# modetest -M xlnx
failed to open device 'xlnx': No such file or directory

 

Cheers,

Zumeng

0 Kudos
1 Solution

Accepted Solutions
sandeepg
Moderator
Moderator
3,576 Views
Registered: ‎04-24-2017

Hi zumeng.chen@windriver.com,

 

I assume driver developer modified the wiki for 2018.1 release. In 2017.4 you need to use xilinx_drm,

 

Make sure you have enabled below packages.

 

IMAGE_INSTALL_append = "\
		libdrm \
		libdrm-tests \
		libdrm-kms \
		"

 

PetaLinux 2017.4 xilinx-zcu102-zu9-es2-rev1_0-2017.4 /dev/ttyPS0

xilinx-zcu102-zu9-es2-rev1_0-2017.4 login: root
Password:
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~# modetest -M xilinx_drm
Encoders:
id      crtc    type    possible crtcs  possible clones
28      27      TMDS    0x00000001      0xffffffff

Connectors:
id      encoder status          name            size (mm)       modes   encoders
29      28      connected       DP-1            530x300         22      28
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: preferred, driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 flags: phsync, pvsync; type: driver
  1600x1200 60 1600 1664 1856 2160 1200 1201 1204 1250 flags: phsync, pvsync; type: driver
  1600x900 60 1600 1624 1704 1800 900 901 904 1000 flags: phsync, pvsync; type: driver
  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: driver
  1152x864 75 1152 1216 1344 1600 864 865 868 900 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 flags: phsync, pvsync; type: driver
  1024x768 75 1024 1040 1136 1312 768 769 772 800 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 flags: nhsync, nvsync; type: driver
  800x600 75 800 816 896 1056 600 601 604 625 flags: phsync, pvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 flags: phsync, pvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 flags: nhsync, nvsync; type: driver
  640x480 75 640 656 720 840 480 481 484 500 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0010aca2a04c334435
                        16180104a5351e783e7e75a755529c27
                        0f5054a54b00714f8180a9c0a940d1c0
                        010101010101023a801871382d40582c
                        45000f282100001e000000ff00523946
                        31503435523544334c0a000000fc0044
                        454c4c205532343134480a20000000fd
                        00384c1e5311000a202020202020010a
                        020319f14c9005040302071601141f12
                        132309070783010000023a801871382d
                        40582c45000f282100001e011d801871
                        1c1620582c25000f282100009e011d00
                        7251d01e206e2855000f282100001e8c
                        0ad08a20e02d10103e96000f28210000
                        18000000000000000000000000000000
                        000000000000000000000000000000c1
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0

CRTCs:
id      fb      pos     size
27      33      (0,0)   (1920x1080)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: preferred, driver
  props:

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
25      27      33      0,0             0,0     0               0x00000001
  formats: AB24 AR24 RA24 BA24 BG24 RG24 RA15 BA15 RA12 BA12 RG16 BG16
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        23 alpha:
                flags: range
                values: 0 255
                value: 255
        24 global alpha enable:
                flags: range
                values: 0 1
                value: 1
26      0       0       0,0             0,0     0               0x00000001
  formats: VYUY UYVY YUYV YVYU YU16 YV16 YU24 YV24 NV16 NV61 BG24 RG24 XB24 XR24 XB30 XR30 YU12 YV12 NV12 NV21
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0

Frame buffers:
id      size    pitch

root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
8 Replies
sandeepg
Moderator
Moderator
3,577 Views
Registered: ‎04-24-2017

Hi zumeng.chen@windriver.com,

 

I assume driver developer modified the wiki for 2018.1 release. In 2017.4 you need to use xilinx_drm,

 

Make sure you have enabled below packages.

 

IMAGE_INSTALL_append = "\
		libdrm \
		libdrm-tests \
		libdrm-kms \
		"

 

PetaLinux 2017.4 xilinx-zcu102-zu9-es2-rev1_0-2017.4 /dev/ttyPS0

xilinx-zcu102-zu9-es2-rev1_0-2017.4 login: root
Password:
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
root@xilinx-zcu102-zu9-es2-rev1_0-2017:~# modetest -M xilinx_drm
Encoders:
id      crtc    type    possible crtcs  possible clones
28      27      TMDS    0x00000001      0xffffffff

Connectors:
id      encoder status          name            size (mm)       modes   encoders
29      28      connected       DP-1            530x300         22      28
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: preferred, driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 flags: phsync, pvsync; type: driver
  1600x1200 60 1600 1664 1856 2160 1200 1201 1204 1250 flags: phsync, pvsync; type: driver
  1600x900 60 1600 1624 1704 1800 900 901 904 1000 flags: phsync, pvsync; type: driver
  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 flags: phsync, pvsync; type: driver
  1152x864 75 1152 1216 1344 1600 864 865 868 900 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 flags: phsync, pvsync; type: driver
  1024x768 75 1024 1040 1136 1312 768 769 772 800 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 flags: nhsync, nvsync; type: driver
  800x600 75 800 816 896 1056 600 601 604 625 flags: phsync, pvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 flags: phsync, pvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 flags: nhsync, nvsync; type: driver
  640x480 75 640 656 720 840 480 481 484 500 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0010aca2a04c334435
                        16180104a5351e783e7e75a755529c27
                        0f5054a54b00714f8180a9c0a940d1c0
                        010101010101023a801871382d40582c
                        45000f282100001e000000ff00523946
                        31503435523544334c0a000000fc0044
                        454c4c205532343134480a20000000fd
                        00384c1e5311000a202020202020010a
                        020319f14c9005040302071601141f12
                        132309070783010000023a801871382d
                        40582c45000f282100001e011d801871
                        1c1620582c25000f282100009e011d00
                        7251d01e206e2855000f282100001e8c
                        0ad08a20e02d10103e96000f28210000
                        18000000000000000000000000000000
                        000000000000000000000000000000c1
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0

CRTCs:
id      fb      pos     size
27      33      (0,0)   (1920x1080)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: preferred, driver
  props:

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
25      27      33      0,0             0,0     0               0x00000001
  formats: AB24 AR24 RA24 BA24 BG24 RG24 RA15 BA15 RA12 BA12 RG16 BG16
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        23 alpha:
                flags: range
                values: 0 255
                value: 255
        24 global alpha enable:
                flags: range
                values: 0 1
                value: 1
26      0       0       0,0             0,0     0               0x00000001
  formats: VYUY UYVY YUYV YVYU YU16 YV16 YU24 YV24 NV16 NV61 BG24 RG24 XB24 XR24 XB30 XR30 YU12 YV12 NV12 NV21
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0

Frame buffers:
id      size    pitch

root@xilinx-zcu102-zu9-es2-rev1_0-2017:~#
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
3,237 Views
Registered: ‎09-07-2016

Hi Sandeep,

 

I suppose your 2018.1 release in the following link:

 

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

 

But I don't find any BSP-related release, did we have any changes on SDK release?

 

xilinx_drm should be module name, but I guess it does not matter if xilinx_drm should be built in as "=m" or "=y", right?

 

modetest -M xilinx_drm

I directly built xilinx_drm in as "=y" from my side

 

Anyway, I'll try it with you hints, then reply you, highly appreciated~
 

cheers,

Zumeng

0 Kudos
vandenplas
Visitor
Visitor
3,124 Views
Registered: ‎11-02-2017

Hi

 

ReVision Example

------------------------

http://www.wiki.xilinx.com/reVISION+Getting+Started+Guide+2017.4+rev2?responseToken=0f00f620cea4ae38065f159ba6bf67d72

 

I can get

 

modetest -M xilinx_drm -s 29:1920x1080@AR24

 

to display a pattern on the monitor

 

but

 

if I try

 

video_cmd -d 0 -o 1920x1080 &

 

I get an error:

 

Query DV timings failed: Link has been severed

 

 

 

0 Kudos
ajeeth340
Visitor
Visitor
914 Views
Registered: ‎04-08-2019

Hello @sandeepg,

I am using a ZCU104 board and using Petalinux 2020.1. I am also facing the same problem which was described by zumeng.chen@windriver.com.

Command i used: modetest -M xlnx

Error : failed to open device 'xlnx': No such file or directory

I made sure the the following packages are enabled.

IMAGE_INSTALL_append = "\
		libdrm \
		libdrm-tests \
		libdrm-kms \
		"
Spoiler
 

 But still i am not able to run the modetest command.please give me a solution for this issue.

 

Regards

Ajeeth Kumar

 

0 Kudos
klindseth
Participant
Participant
269 Views
Registered: ‎03-07-2008

How do you do this modetest -M xilinx_drm command in version 2020.2 to get this nice listing of the Connectors?

0 Kudos
watari
Professor
Professor
259 Views
Registered: ‎06-16-2013

Hi @klindseth 

 

This post is too old and already closed.

Would you post your question as new ?

I will reply it.

 

Best regards,

 

Best regards,

0 Kudos
sandeepg
Moderator
Moderator
239 Views
Registered: ‎04-24-2017

Hi @klindseth ,

xilinx_drm is old as mentioned in this post https://forums.xilinx.com/t5/Video-and-Audio/drm-error-with-2018-3-version/td-p/933507 you need to use xlnx_drm.

I would suggest to start a new post.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
klindseth
Participant
Participant
205 Views
Registered: ‎03-07-2008

l will start a new post. 

Thanks.

0 Kudos