madhu Posted July 19, 2016 Report Share Posted July 19, 2016 Hi I'm getting following error while running the example project which is configured with linux frame buffer. GDISP Framebuffer: Error opening the framebuffer device Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted July 19, 2016 Report Share Posted July 19, 2016 The two most likely issues that cause this error are: Your Linux kernel has not been compiled with framebuffer support or it isn't enabled Your Linux framebuffer is in a non-standard location. Have a look at /boards/base/Linux-Framebuffer/board_framebuffer.h. The board file looks for /dev/fb0 and /dev/fb/0 by default. Link to comment Share on other sites More sharing options...
madhu Posted July 25, 2016 Author Report Share Posted July 25, 2016 Hi, I solved "GDISP Framebuffer: Error opening the framebuffer device " and I'm successfully running ugfx with framebuffer in my host pc. But when I'm running it in my target machine(armv71 with linux kernel 3.0.35) I'm getting one more error "Gdisp framebuffer: dispaly is 24 not 32 bits per pixel ". How to enable 24 bits pixel format? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted July 25, 2016 Report Share Posted July 25, 2016 1 hour ago, madhu said: I solved "GDISP Framebuffer: Error opening the framebuffer device " and I'm successfully running ugfx with framebuffer in my host pc. Can you let us know what you had to do in order to resolve the problem? 1 hour ago, madhu said: But when I'm running it in my target machine(armv71 with linux kernel 3.0.35) I'm getting one more error "Gdisp framebuffer: dispaly is 24 not 32 bits per pixel " This means that the frame buffer provided by your Linux host is using a 24-Bit pixel format while your µGFX one is configured to a 24-Bit pixel format. You can overwrite the default pixel format by setting GDISP_LLD_PIXELFORMAT in your configuration file. You should be able to figure out which format your Linux host uses first. Link to comment Share on other sites More sharing options...
madhu Posted July 26, 2016 Author Report Share Posted July 26, 2016 Hi, Initially I ran my demo in normal user so it didn't work. So later I have done some research regarding frame buffer then I come to know that I should run my demo with root user. So I tried with root user and it started working... Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted July 26, 2016 Report Share Posted July 26, 2016 Glad to hear that you got it working! We added a note about this to the readme of the Linux-Framebuffer board file: https://bitbucket.org/Tectu/ugfx/commits/a972649d65b545031de1e88023acb39b1d7a26e3 Link to comment Share on other sites More sharing options...
madhu Posted July 26, 2016 Author Report Share Posted July 26, 2016 Hi, I'm able to run my project in both host and target machines.But I'm facing flickering problem in target machine(armv7). I configured my host with GDISP_PIXELFORMAT_RGB888. Here my demo is running very smoothly. And I configured my target with GDISP_PIXELFORMAT_RGB565 . I'm able to run the demo in my target screen but screen is blinking continuously and also half screen I'm getting black and half I'm getting white. Please help me if some had face this problem earlier.. Link to comment Share on other sites More sharing options...
inmarket Posted July 27, 2016 Report Share Posted July 27, 2016 Note the pixel format specified for uGFX must exactly match the pixel format for the framebuffer in the Linux machine. The pixel format in uGFX is setup at compile time not runtime so it cannot handle when the Linux framebuffer is not in the format it expects. The problem you are describing on your target sounds very much like a pixel format mismatch problem. Link to comment Share on other sites More sharing options...
madhu Posted September 1, 2016 Author Report Share Posted September 1, 2016 Hi, Still I'm facing flickering error with my frame buffer demo. My display is 24 bpp with 320x240 resolution. I'm successfully running normal frame buffer application which is attached in the attachment. I'm suspecting there is a problem with pixel format. I'm setting GDISP_PIXELFORMAT_RGB565 at board file if it is not correct please let me know what is the correct value or I need to change any thing else? demo.c Link to comment Share on other sites More sharing options...
inmarket Posted September 1, 2016 Report Share Posted September 1, 2016 The pixel format must exactly match what your hardware expects. So if your display 320x240 at 24bits then you will need to use something like GDISP_PIXELFORMAT_RGB888. Link to comment Share on other sites More sharing options...
madhu Posted September 1, 2016 Author Report Share Posted September 1, 2016 Hi, If I use GDISP_PIXELFORMAT_RGB888 I'm getting following error. GDISP Framebuffer: The display is 24 not 32 bits per pixel. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted September 1, 2016 Report Share Posted September 1, 2016 Please use the latest master of the official µGFX library repository. We fixed exactly that issue about two weeks ago: I strongly recommend you to hit the "Follow" button on the µGFX Development blog to stay up-to-date about ongoing changes and fixes: Link to comment Share on other sites More sharing options...
madhu Posted September 2, 2016 Author Report Share Posted September 2, 2016 Hi, Thanks for the support... Yes its working now.... Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted September 2, 2016 Report Share Posted September 2, 2016 Happy to hear that! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now