Freescale MPC5121e

From Noah.org
Revision as of 17:28, 7 October 2011 by Root (talk | contribs)
Jump to navigationJump to search


framebuffer configuration

These are the settings for 480x272 video mode on the Freescale 5121e SOC (a PowerPC CPU core). Put these settings in the file, /etc/fb.modes. Then you should be able to set the mode using `fbset 480x272-60`.

mode "480x272-60"
    # D: 8.467 MHz, H: 16.800 kHz, V: 59.999 Hz
    geometry 480 272 480 272 32
    timings 118105 8 8 2 4 8 2
    vsync high
    csync high
    nonstd 10
    rgba 8/16,8/8,8/0,8/24
endmode

You can fine-tune the position of the display output using `fbset -move`. This changes the values found in the timings section. After moving the display as shown below you can run `fbset -s` to see how this has changed the timings section.

fbset -move down
fbset -move up
fbset -move left
fbset -move right

You can also investigate the values of kernel parameters in /sys/class/graphics/fb*. You can also modify some of the parameters live.

echo "0" > /sys/class/graphics/fbcon/cursor_blink
echo "1" > /sys/class/graphics/fbcon/cursor_blink

You can rotate the display. Note that this will also update the console dimensions shown by `stty -a`:

echo "1" > /sys/class/graphics/fbcon/rotate
echo "0" > /sys/class/graphics/fbcon/rotate