Debian Codegraph @

utils/fgpanel/README.RPi

raw
1 This is the FGPanel for the Raspberry Pi running Raspbian.
2 It should work with other Linux distributions but it has not been tested.
3
4 INSTALLATION
5 ============
6
7 1. Build SimGear as usual.
8 OSG, Plib, GLUT,... will be required even they are not strictly needed to run FGPanel.
9
10 2. Configure FlightGear using CMake as usual.
11 CMakeLists.txt is used to compile FGPanel with OpenGL 2.0.
12 This should make FGPanel faster on modern graphics cards.
13
14 CMakeLists.txt is used to compile FGPanel with OpenGL ES 2.0 for the Raspberry Pi.
15 The source code of FGPanel can easily be adapted to other embedded devices supporting OpenGL ES 2.0.
16
17 3. Build FGPanel only (don't build all components on the Raspberry Pi as this will take ages!!!):
18 make -- fgpanel-egl fgpanel
19
20 USAGE (fgpanel-egl)
21 ===================
22
23 1. Increase the amount of GPU memory by editing the /boot/config.txt file.
24 Add the following line (this is for Raspberry Pi model 1B with 512 Mb of memory):
25 gpu_mem_512=256
26
27 2. Reboot and check the amount of GPU memory:
28 vcgencmd get_mem gpu
29
30 3. Stop X server. FGPanel runs in the console (Linux framebuffer).
31
32 4. Start FGPanel as usual but as ROOT or use the 'sudo' command (see README):
33 sudo -- utils/fgpanel/fgpanel-egl --fg-root=/path/to/fg/data --panel=Aircraft/MyAircraft/Panels/MyPanel.xml
34
35 ROOT privileges are required to access the GPU of the Raspberry Pi.
36
37 USAGE (fgpanel)
38 ===================
39
40 1. Activate the Full KMS driver on the Raspberry Pi using the raspi-config program:
41 Advanced Options -> GL Driver -> Full KMS
42
43 2. Reboot. The Full KMS driver should be activated.
44
45 3. When X server is running, start FGPanel as usual (see README):
46 utils/fgpanel/fgpanel --fg-root=/path/to/fg/data --panel=Aircraft/MyAircraft/Panels/MyPanel.xml
47
48 FEATURES
49 ========
50
51 - Use OpenGL 2.0 instead of OpenGL 1.0 (fixed pipeline) using CMakeLists.txt.
52 - Use OpenGL ES 2.0 to run on the Raspberry Pi using CMakeLists.txt.
53 - Use VideoCore 4 graphics hardware acceleration (GPU) of the Raspberry Pi.
54 - Run at 30 frames per second.
55 - Don't use PLib anymore for the font rendering.