Changes

Jump to: navigation, search

Raspberry Pi Fedora Remix FAQ

1,690 bytes added, 10:41, 5 March 2012
The Remix doesn't configure swap space. How can I add it?
See the notes on [[Raspberry Pi Fedora Remix Administration#Adding_Swap_Space|adding swap]].
 
== How do I access the sample source code for the Raspberry Pi and build the multimedia demo programs? ==
 
There are four demo programs available:
* hello_world - the classic test program, that just prints "Hello, World!" on the screen
* hello_video - a simple H.264 video player
* hello_triangle - an OpenGL-ES demo program which displays a rolling cube with textures on each side
* hello_audo - an audio demo that plays a sine wave with a slow sine wave amplitude modulation
 
Here are the recommended steps:
# Ensure that the <code>raspberrypi-vc-demo-source</code> package is installed (it's installed in the released image).
# Install the C/C++ toolchain. If you have sufficient space (about 600M), it's recommended that you install the full set of development tools and libraries (<code>yum groupinstall "Development Tools" "Development Libraries"</code>). Alternately, you could install a minimal set of tools (gcc, make, etc). (TODO: come up with the minimum set of tools/libraries needed for the demo code).
# It's recommended that you build the code as a regular user:
## Make a personal copy of the source code in your home directory: <code>cp -R /usr/share/raspberypi-vc-demo-source/hello-pi ~</code>
## As root, change the permissions on the vchiq device so that all users can access it: <code>chmod a+rw /dev/vchiq</code>
# Select a demo. Change to that directory -- the directory name will be <code>~/hello_pi/''nameOfDemo''</code> -- for example, to change to the demo for the hello_audio program: <code>cd ~/hello_pi/hello_audio</code>
# Build the demo: <code>make</code>
# The resulting program name will end in <code>.bin</code> -- run it by typing: <code>./*.bin</code>

Navigation menu