Difference between revisions of "Framebuffer"
From ArmadeusWiki
m (→Kernel configuration) |
(LQO43 is default now...) |
||
Line 2: | Line 2: | ||
==Kernel configuration== | ==Kernel configuration== | ||
− | '''Framebuffer is already configured (for | + | '''Framebuffer is already configured (for [[LQ043_Adapt|Sharp LQ043 LCD]]) in standard/default Armadeus kernel image.'''<br> |
− | + | Following instructions are only given as references or if you want to change the default LCD: | |
* launch Linux kernel configuration: | * launch Linux kernel configuration: | ||
<pre> | <pre> | ||
[armadeus]$ make linux26-menuconfig | [armadeus]$ make linux26-menuconfig | ||
</pre> | </pre> | ||
− | * | + | * activates: |
− | * | + | Device Drivers ---> Character devices ---> [*] Virtual terminal |
− | * | + | Device Drivers ---> Character devices ---> [*] Support for console on virtual terminal |
− | support | + | * activates: |
− | boot logo | + | Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices ---> <*> Motorola i.MX LCD support |
− | * | + | * and choose your LCD in: |
+ | LCD Panel (xxxx) ---> | ||
+ | * activates: | ||
+ | Device Drivers ---> Graphics support ---> Console display driver support ---> <*> Framebuffer Console support | ||
+ | * deactivates VGA stuff & add some fonts, then choose Armadeus boot logo | ||
+ | Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] 224-color Armadeus Linux logo | ||
+ | * recompiles the kernel: | ||
[armadeus]$ make linux26 | [armadeus]$ make linux26 | ||
− | * | + | * 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== | ==Userland== |
Revision as of 17:52, 9 January 2009
On this page you will find usefull informations to have a working Linux Framebuffer on your board.
Contents
Kernel configuration
Framebuffer is already configured (for Sharp LQ043 LCD) in standard/default Armadeus kernel image.
Following instructions are only given as references or if you want to change the default LCD:
- launch Linux kernel configuration:
[armadeus]$ make linux26-menuconfig
- activates:
Device Drivers ---> Character devices ---> [*] Virtual terminal Device Drivers ---> Character devices ---> [*] Support for console on virtual terminal
- activates:
Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices ---> <*> Motorola i.MX LCD support
- and choose your LCD in:
LCD Panel (xxxx) --->
- activates:
Device Drivers ---> Graphics support ---> Console display driver support ---> <*> Framebuffer Console support
- deactivates VGA stuff & add some fonts, then choose Armadeus boot logo
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] 224-color Armadeus Linux logo
- recompiles the kernel:
[armadeus]$ make linux26
- 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.
Tips
- To stop blinking cursor:
# echo 0 > /sys/class/graphics/fbcon/cursor_blink
or
# echo -e '\033[?17;0;0c' > /dev/tty0
- To grab a screenshot of a running Framebuffer application, use FBGrab
- To activate Framebuffer low power mode:
# echo 1 > /sys/class/graphics/fb0/blank
- To leave Framebuffer low power mode:
# echo 0 > /sys/class/graphics/fb0/blank