UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor honeywelldev
Visitor
4,296 Views
Registered: ‎06-05-2014

LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

I am using "http://www.wiki.xilinx.com/ZYNQ_PCIe_TRD_14.7"

 

And it appears to hve the logiCVC driver loaded i can see it in the linux drivers /sys area but I have no /dev/fbX devices.  I read that you need to put the logiCVC configuration data in your .dts so I put in the system.dts and rebuilt but I am still not seeing any frame buffers

 

I am wanting to run something like this

http://forums.xilinx.com/xlnx/attachments/xlnx/ELINUX/7953/1/fbtest.c

 

Just to get some basic data out the frame buffer, then build up QT to run ontop of it.  

 

I attached the system.dts from my configuration is something messed up?

 

 

0 Kudos
5 Replies
Visitor honeywelldev
Visitor
4,265 Views
Registered: ‎06-05-2014

Re: LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

Nothing?  Really need to get the frame buffer interface working guys any help would be appreciated.

0 Kudos
Highlighted
Visitor honeywelldev
Visitor
4,226 Views
Registered: ‎06-05-2014

Re: LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

Ok so after tweaking the kernel a bit for framebuffer support and various other options, and modifying the DTS a bit more I was able to get some frame buffer device files to pop into existance.  I then used the fbtest.c program I found on these forums and it "seems" to run and think its working but I don't see anything coming out the HDMI.


 

 

dmesg | grep fb

uvesafb: failed to execute /sbin/v86d
uvesafb: make sure that the v86d helper is installed and executable
uvesafb: Getting VBE info block failed (eax=0x4f00, err=-2)
uvesafb: vbe_init() failed with -22
uvesafb: probe of uvesafb.0 failed with error -22
Error xylonfb changing pixel clock
xylonfb video mode: 1920x1080M-16@60
fbcon_init: detected unhandled fb_set_par error, error code -1
xylonfb 0 registered
xylonfb 1 registered


ls -la /dev/ | grep fb
crw-rw---- 1 root root 29, 0 Jan 1 00:00 fb0
crw-rw---- 1 root root 29, 1 Jan 1 00:00 fb1


find /sys/ -name "*cvc" -print | xargs

lrwxrwxrwx 1 root root 0 Jan 1 00:05 /sys/bus/platform/devices/40030000.logicvc -> ../../../devices/amba.0/40030000.logicvc
lrwxrwxrwx 1 root root 0 Jan 1 00:05 /sys/bus/platform/drivers/logicvc/40030000.logicvc -> ../../../../devices/amba.0/40030000.logicvc

/sys/bus/platform/drivers/logicvc:
drwxr-xr-x 2 root root 0 Jan 1 00:05 .
drwxr-xr-x 36 root root 0 Jan 1 00:05 ..
lrwxrwxrwx 1 root root 0 Jan 1 00:05 40030000.logicvc -> ../../../../devices/amba.0/40030000.logicvc
--w------- 1 root root 4096 Jan 1 00:05 bind
--w------- 1 root root 4096 Jan 1 00:05 uevent
--w------- 1 root root 4096 Jan 1 00:05 unbind

/sys/devices/amba.0/40030000.logicvc:
drwxr-xr-x 4 root root 0 Jan 1 00:00 .
drwxr-xr-x 34 root root 0 Jan 1 00:00 ..
lrwxrwxrwx 1 root root 0 Jan 1 00:05 driver -> ../../../bus/platform/drivers/logicvc
drwxr-xr-x 4 root root 0 Jan 1 00:00 graphics
-r--r--r-- 1 root root 4096 Jan 1 00:05 modalias
drwxr-xr-x 2 root root 0 Jan 1 00:05 power
lrwxrwxrwx 1 root root 0 Jan 1 00:05 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Jan 1 00:05 uevent


fbTest -list
Detected Xylon FB devices:
FB driver ID 0
FB driver name: Xylon FB0
FB driver color type: True color
FB driver color format: ARGB : 0565
FB driver bits per pixel 16
FB driver ID 1
FB driver name: Xylon FB1
FB driver color type: True color
FB driver color format: ARGB : 0888
FB driver bits per pixel 32
Choose Xylon FB device:
0
Xylon FB device opened successfully.
Framebuffer device successfully mapped.
Details:
FrameBuffer physical ID: 0
X resolution: 1920
Y resolution: 1080
Virtual X resolution: 2048
Virtual Y resolution: 3240
Bits Per Pixel: 16
X offset: 0
Y offset: 0
Line length in bytes: 4096
FrameBuffer size 13271040 bytes
FrameBuffer address: 0xB615C000
Rectangle 0 Color 0xFFFF0000 - RGB Pixel value 0xF800
Rectangle 1 Color 0xFF00FF00 - RGB Pixel value 0x7E0
Rectangle 2 Color 0xFF0000FF - RGB Pixel value 0x1F
Panning screen
Error panning the display: Invalid argument
Wait for V-sync...
V-sync detected!
Wait for V-sync...
V-sync detected!
Set layer background color
Get layer index
Layer index 0
Get layer alpha
Layer alpha 0xFE
Set layer alpha
Enable layer transparent color
Get layer transparent color
Layer transparent color R 0xFF G 0x0 B 0x9C
Layer transparent color RGB 0xF813
Set layer transparent color
Get layer size and position
Layer position H 0 V 0 Width 1920 Height 1080
Set layer position
Set layer size
Get layer buffers number
Layer buffers 3
Set layer buffer 0
Layer buffer 0
Get layer buffer offset 0
Layer buffer offset 0
Set layer buffer 1
Layer buffer 1
Get layer buffer offset 1
Layer buffer offset 1080
Set layer buffer 2
Layer buffer 2
Get layer buffer offset 2
Layer buffer offset 2160
Turn off graphic layer
Get layer background color
Layer background color R 0x7F G 0x7F B 0x7F
Layer background color RGB 0x7F7F7F
Set layer background color
Rectangle 0 Color 0xFF000000 - RGB Pixel value 0x0
Rectangle 1 Color 0xFF000000 - RGB Pixel value 0x0
Rectangle 2 Color 0xFF000000 - RGB Pixel value 0x0
Turn on graphic layer

 

 

 

0 Kudos
Visitor honeywelldev
Visitor
4,225 Views
Registered: ‎06-05-2014

Re: LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

Oh and here is my new updated system.dts

 

Maybe there is something wrong in the i2c HDMI definition? that's pulled directly from the xilinx example though.

0 Kudos
Visitor honeywelldev
Visitor
4,218 Views
Registered: ‎06-05-2014

Re: LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

changed it to a lower resolution but still nothing and I know this monitor supports it here is an output from fbset

 

root@Xilinx-ZC706:~# fbset

mode "1280x720-60"
# D: 74.250 MHz, H: 45.000 kHz, V: 60.000 Hz
geometry 1280 720 2048 3240 16
timings 13468 220 110 20 5 40 5
accel false
rgba 5/11,6/5,5/0,0/0
endmode

0 Kudos
Observer xylonsupport
Observer
3,851 Views
Registered: ‎05-14-2013

Re: LogiCVC - TRD 14.7 PCIe - Framebuffer / QT

According to your description it seems that you have uninitalized ADV7511 HDMI transmitter on ZC706 board used by logiCVC.

In your system.dts you have nodes for Zynq PS-I2C and ADV7511 device, so there should be no problem with I2C bus access.

 

Have you enabled Xylon fb driver to use/initialize ADV7511 device in driver kernel configuration options? This is under Xylon fb driver miscellaneous options.

To be able to enable this option, you must have ADV7511 driver support enabled in kernel multimedia configuration options. Check kernel configuration help how to do that.

 

According to fbtest output, logiCVC device works correctly, but if you do not have initialized and running ADV7511 HDMI transmitter, you will not be able to see anything.

 

Regards,

Xylon Support

0 Kudos