tkoroknai

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. I'm looking at the kmsdemo code and I don't see the part where it is supposed to draw shapes on the screen even tho it says: puts(" Additionally, this program will draw some basic shapes to the connected monitor\n\n"); Could you please show me the part that is supposed to draw the shapes? thank you!
  2. I connected several monitors to the zybo, and it can read the resolution of most. But when I try the kmsdemo -s 0 or any other number segmentation fault and nothing happens. It is odd that when I compile the kmsdemo source from here blinks the connected display for a moment before segmentation fault. While the kmsdemo added in rootfs only prints the resolution and does nothing else. Is there any information what kind of display is supported? Which debugger could I use to figure this out? Thank you!
  3. Hi, I did the steps successfully and kmsdemo is under /usr/bin but: root@Zybo-Z7-10:~# kmsdemo -s 1 Segmentation fault root@Zybo-Z7-10:~# kmsdemo -s 2 Segmentation fault root@Zybo-Z7-10:~# kmsdemo -d *********************************************** [Resolution Mode: 0 [ 1920x1080 [ Clock: 148500 Vrefresh: 60 *********************************************** *********************************************** [Resolution Mode: 1 [ 1920x1080 [ Clock: 148352 Vrefresh: 60 *********************************************** and it doesn't draw anything on the connected display to tx hdmi port. What do you think?
  4. Hello @Chrish Have you tried using the .bsp file? https://reference.digilentinc.com/reference/software/petalinux/start you can just use: petalinux-create -t project -s Petalinux.bsp then copy BOOT.BIN and image.ub and boot from the sd card. I think this way you should be able to see them in /sys/class/gpio
  5. I could compile it on the board but it says segmentation fault. root@Zybo-Z7-10:~# gcc kmsutil.c -lvrc kmsutil.c: In function 'main': kmsutil.c:28:17: warning: multi-character character constant [-Wmultichar] if(c == '^C') { ^~~~ kmsutil.c: In function 'printDeviceInfo': kmsutil.c:58:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*mode_card).fb_id_ptr = (uint64_t) res_fb_buf; ^ kmsutil.c:59:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*mode_card).crtc_id_ptr = (uint64_t) res_crtc_buf; ^ kmsutil.c:60:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*mode_card).connector_id_ptr = (uint64_t) res_conn_buf; ^ kmsutil.c:61:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*mode_card).encoder_id_ptr = (uint64_t) res_enc_buf; ^ kmsutil.c:84:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*connector).modes_ptr = (uint64_t) mode_buffer; ^ kmsutil.c:85:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*connector).props_ptr = (uint64_t) conn_prop_buf; ^ kmsutil.c:86:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*connector).prop_values_ptr = (uint64_t) conn_propval_buf; ^ kmsutil.c:87:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (*connector).encoders_ptr = (uint64_t) conn_enc_buf; ^ kmsutil.c:106:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] struct drm_mode_modeinfo * modePtr = (struct drm_mode_modeinfo *) (*connector).modes_ptr + i; ^ kmsutil.c:119:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] struct drm_mode_modeinfo * modePtr = (struct drm_mode_modeinfo *) (*connector).modes_ptr + devNum; ^ Running it: root@Zybo-Z7-10:~# ./a.out -h ./a.out: option requires an argument -- 'h' Usage: ./a.out [ -d | -s | -h ] [Resolution Mode # to select (if using -s)] This program will use the HDMI output to gather the valid resolution modes from the connected monitor using the '-d' option will print these valid resolution modes to the console Additionally, this program will draw some basic shapes to the connected monitor -h --help Print this usage information -d --device Print information about the supported resolution modes -s --set Set the connected monitor to the resolution mode specific by the flag To get information about supported resolutions, type './a.out -d' To set a resolution, type './a.out -s [n]', where [n] is the listed resolution mode number given by using -d This utility defaults to port /dev/dri/card0 root@Zybo-Z7-10:~# ./a.out -d Segmentation fault root@Zybo-Z7-10:~# ./a.out Segmentation fault root@Zybo-Z7-10:~# I supposed it needs some more stuff to work. Could you point me somewhere? Thanks!
  6. Hello, I have downloaded the Petalinux-Zybo-Z7-10-2017.4-1.bsp and booted from an SD card in my Zybo-Z7-10 zynq-7010. On this page: https://reference.digilentinc.com/reference/software/petalinux/start It states that the petalinux bsp should include: * gpioutil * pwmdemo * kmsdemo but it does not have the kmsdemo only the other two. I tried to download kmsutil and compile it on the board https://raw.githubusercontent.com/Digilent/kmsdemo/master/kmsutil.c like this: root@Zybo-Z7-10:~# gcc kmsutil.c -lvrc kmsutil.c:1:20: fatal error: libvrc.h: No such file or directory #include <libvrc.h> ^ compilation terminated. but the bsp did not include the libvrc either. What is the simplest way to get this demo working? This is somewhat odd, because the HDMI output works, it outputs a console. And the bsp feature list says:"HDMI output with kernel mode setting (KMS)" Thanks!