Discussion:
[uClinux-dev] How to write to screen with framebuffer?
Parmenides
2013-03-07 02:01:07 UTC
Permalink
Hi, all

I have compiled the uClinux and run it on my board successfully. Now I need
run a program which is to write some picture to LCD screen. So, I recompiled
the uClinux with the following kernel configuration:

Character devices
--> Virtual Terminals

Console drivers
--> Support Frame buffer devices
--> Frame-buffer support
--> Support for frame buffer devices
--> S3C44B0X LCD support
--> Advanced low level driver options
--> 2 bpp packed pixels support
--> 4 bpp packed pixels support
--> 8 bpp packed pixels support
--> 16 bpp packed pixels support
--> 32 bpp packed pixels support
--> Select compiled-in fonts
--> VGA 8*8 font
--> VGA 8*16 font

After the uClinux booting, a penguin logo displayed on the LCD screen. So, I
think the framebuffer driver must work well. But, when I run a program to
write the LCD screen directly, there is no picture displayed at all. I think
when the LCD is used as virtual terminal, the picture may not be displayed.

So, I want to use the framebuffer driver without the virtual terminal
support. Is there any way to achieve the goal? Thanks!
Ian Guffick
2013-03-08 20:37:08 UTC
Permalink
Have a look at 'ezfb' at http://www.akrobiz.com/ezfb/index.html
It is a 'Linux Framebuffer API', you should be able to get a simple
demo running pretty quickly.

Regards,
Ian.
Post by Parmenides
Hi, all
I have compiled the uClinux and run it on my board successfully. Now I need
run a program which is to write some picture to LCD screen. So, I recompiled
Character devices
--> Virtual Terminals
Console drivers
--> Support Frame buffer devices
--> Frame-buffer support
--> Support for frame buffer devices
--> S3C44B0X LCD support
--> Advanced low level driver options
--> 2 bpp packed pixels support
--> 4 bpp packed pixels support
--> 8 bpp packed pixels support
--> 16 bpp packed pixels support
--> 32 bpp packed pixels support
--> Select compiled-in fonts
--> VGA 8*8 font
--> VGA 8*16 font
After the uClinux booting, a penguin logo displayed on the LCD screen. So, I
think the framebuffer driver must work well. But, when I run a program to
write the LCD screen directly, there is no picture displayed at all. I think
when the LCD is used as virtual terminal, the picture may not be displayed.
So, I want to use the framebuffer driver without the virtual terminal
support. Is there any way to achieve the goal? Thanks!
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/options/uclinux-dev
Matthias Schoeldgen
2013-03-14 06:01:03 UTC
Permalink
Parmenides, the splash logo on the LCD is a good start as it shows that
you configured timings and dimensions correctly but it doesn't use the
frambuffer device yet. To use your display you need to create a
/dev/fb/fb0 device (or simply /dev/fb0 if you're using an 2.0 or 2.4
kernel) and use that for your graphic application. Make sure you create
that (typically in the Makefile) before building your image.
Its is also a good help to enable the build for one of the small
graphical applcations like 'lissa' and include that as it will show the
functionality of the fb0 device.
Post by Ian Guffick
Have a look at 'ezfb' at http://www.akrobiz.com/ezfb/index.html
It is a 'Linux Framebuffer API', you should be able to get a simple
demo running pretty quickly.
Regards,
Ian.
Post by Parmenides
Hi, all
I have compiled the uClinux and run it on my board successfully. Now I need
run a program which is to write some picture to LCD screen. So, I recompiled
Character devices
--> Virtual Terminals
Console drivers
--> Support Frame buffer devices
--> Frame-buffer support
--> Support for frame buffer devices
--> S3C44B0X LCD support
--> Advanced low level driver options
--> 2 bpp packed pixels support
--> 4 bpp packed pixels support
--> 8 bpp packed pixels support
--> 16 bpp packed pixels support
--> 32 bpp packed pixels support
--> Select compiled-in fonts
--> VGA 8*8 font
--> VGA 8*16 font
After the uClinux booting, a penguin logo displayed on the LCD screen. So, I
think the framebuffer driver must work well. But, when I run a program to
write the LCD screen directly, there is no picture displayed at all. I think
when the LCD is used as virtual terminal, the picture may not be displayed.
So, I want to use the framebuffer driver without the virtual terminal
support. Is there any way to achieve the goal? Thanks!
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/options/uclinux-dev
Loading...