Difference between revisions of "SDL Development"
From ArmadeusWiki
(/etc/fb.modes) |
m (→SDL installation) |
||
Line 1: | Line 1: | ||
==SDL installation== | ==SDL installation== | ||
− | Launch buildroot configuration | + | * Launch buildroot configuration |
# make menuconfig | # make menuconfig | ||
and choose SDL package in:<br> | and choose SDL package in:<br> | ||
Line 7: | Line 7: | ||
and save your configuration | and save your configuration | ||
− | Then regenerate your rootfs | + | * Then regenerate your rootfs |
# make | # make | ||
and reflash it on your board | and reflash it on your board | ||
− | Our SDL version is using the FrameBuffer interface and so it's very important to have a ''/etc/fb.modes'' file updated with the framebuffer parameters supported by your configuration (otherwise SDL try to use the VESA parameters which are perturbating i.MXL LCD controller). | + | Our SDL version is using the FrameBuffer interface and so '''it's very important to have a ''/etc/fb.modes'' file updated with the framebuffer parameters supported by your configuration''' (otherwise SDL try to use the VESA parameters which are perturbating i.MXL LCD controller). |
− | For Sharp LQ057 | + | For example for the Sharp LQ057 activate in ''/etc/fb.modes'': |
mode "320x240-176" | mode "320x240-176" | ||
# D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz | # D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz | ||
Line 20: | Line 20: | ||
rgba 5/11,6/5,5/0,0/0 | rgba 5/11,6/5,5/0,0/0 | ||
endmode | endmode | ||
+ | By default the Armadeus LCD (Microtips) parameters are used in ''/etc/fb.modes''. | ||
==Development== | ==Development== | ||
Take a look at ''armadeus/target/demos/armanoid/'' sources in your SVN view | Take a look at ''armadeus/target/demos/armanoid/'' sources in your SVN view |
Revision as of 08:33, 8 May 2007
SDL installation
- Launch buildroot configuration
# make menuconfig
and choose SDL package in:
and save your configuration
- Then regenerate your rootfs
# make
and reflash it on your board
Our SDL version is using the FrameBuffer interface and so it's very important to have a /etc/fb.modes file updated with the framebuffer parameters supported by your configuration (otherwise SDL try to use the VESA parameters which are perturbating i.MXL LCD controller).
For example for the Sharp LQ057 activate in /etc/fb.modes:
mode "320x240-176" # D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz geometry 320 240 320 240 16 timings 62500 9 27 0 7 9 2 rgba 5/11,6/5,5/0,0/0 endmode
By default the Armadeus LCD (Microtips) parameters are used in /etc/fb.modes.
Development
Take a look at armadeus/target/demos/armanoid/ sources in your SVN view