Difference between revisions of "Framebuffer"

From ArmadeusWiki
Jump to: navigation, search
(Armadeus Framebuffer documentation page !)
Line 1: Line 1:
Here is the procedure to have a working framebuffer on the board
+
On this page you will find usefull informations to have a working Linux Framebuffer on your board.
  
'''Framebuffer is already configured in standard Armadeus kernel image (for Microtips LCD)'''
+
==Kernel configuration==
 +
'''Framebuffer is already configured (for Microtips LCD) in standard/default Armadeus kernel image'''
  
* configure the Linux kernel for Framebuffer support:
+
* launch Linux kernel configuration:
 
<pre>
 
<pre>
make menuconfig
+
[armadeus]$ make linux-menuconfig
 
</pre>
 
</pre>
 
* in "Char Devices" menu, activate ''"Virtual Terminal"'' and ''"Support for virtual terminal on console"''
 
* in "Char Devices" menu, activate ''"Virtual Terminal"'' and ''"Support for virtual terminal on console"''
* in "Graphic support" activate "Support for Framebuffer", "Motorola iMX
+
* activate ''Device drivers -> Graphic support -> Support for Framebuffer -> Motorola iMX LCD support'' and choose your LCD in ''LCD Panel''
LCD support" "Console display driver support ->Frame buffer console
+
* "Console display driver support ->Frame buffer console
 
support" (deactivate VGA stuff & add some fonts), then choose 224 colour
 
support" (deactivate VGA stuff & add some fonts), then choose 224 colour
 
boot logo
 
boot logo
* recompile the kernel, now to have console on serial port, you will have to add "console=ttySMX0,115200n8" to your boot parameters
+
* recompile the kernel:
 +
[armadeus]$ make linux
 +
*, now to have console on serial port, you will have to add "console=ttySMX0,115200n8" to your boot parameters
 
* reflash kernel image on your board and enjoy (you should see Linux logo on screen at startup)!
 
* reflash kernel image on your board and enjoy (you should see Linux logo on screen at startup)!
  
 +
==Userland==
 
If you have devfs activated, framebuffer device can be accessed with /dev/fb/0. Otherwise, you will need to create the device node with
 
If you have devfs activated, framebuffer device can be accessed with /dev/fb/0. Otherwise, you will need to create the device node with
 
<pre>
 
<pre>
Line 28: Line 32:
  
  
 
+
[[Category:Graphical User Interface]]
[[Category:Documentation]]
+

Revision as of 21:56, 14 April 2008

On this page you will find usefull informations to have a working Linux Framebuffer on your board.

Kernel configuration

Framebuffer is already configured (for Microtips LCD) in standard/default Armadeus kernel image

  • launch Linux kernel configuration:
 [armadeus]$ make linux-menuconfig
  • in "Char Devices" menu, activate "Virtual Terminal" and "Support for virtual terminal on console"
  • activate Device drivers -> Graphic support -> Support for Framebuffer -> Motorola iMX LCD support and choose your LCD in LCD Panel
  • "Console display driver support ->Frame buffer console

support" (deactivate VGA stuff & add some fonts), then choose 224 colour boot logo

  • recompile the kernel:
[armadeus]$ make linux
  • , now to have console on serial port, you will have to add "console=ttySMX0,115200n8" to your boot parameters
  • reflash kernel image on your board and enjoy (you should see Linux logo on screen at startup)!

Userland

If you have devfs activated, framebuffer device can be accessed with /dev/fb/0. Otherwise, you will need to create the device node with

 # mknod c 29 0

You can activate some test tools from the armadeus build process:

 $ make menuconfig -> packages -> fbset

You have several test tools on yahoo groups to play a little with the framebuffer.