[RPI BSP] Framebuffer test

QIAO YANG yangqiao0505 at me.com
Mon Apr 6 22:00:33 UTC 2015


hello,

I've implemented a simple framebuffer, but I've got no idea how to test it.

I've got Alan's rki and I made a sample to test the mailbox, the framebuffer information seems to be successfully set and get (width, height, pitch, buffer pointer, buffersize etc). In linux we open the interface and map the pointer to set the pixels. If I try to access the pointer and set the memory directly in the driver to draw something, the program will stay still when I try to assign value to a certain address of memory, or maybe it's only allowed to use memset/ memcpy to set the memory?

 I've also tried to load the driver and open it ( /dev/fb0 ) with "open", but it failed, while I can see the interface with "ls /dev ".

In order to test the framebuffer, how can I use the fb interface to print something, or maybe access the memory directly? Is there any existing sample for fb testing? If not, is it necessary to create a common sample for all to print something?

Regards

YANG QIAO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150406/9b3e2f9b/attachment.html>


More information about the devel mailing list