* BUILDING FRSH/FORB FRAMEWORK
-1) Initialize and download additional submodules:
-
- git submodule init
- git submodule update
+1) Install prerequisites. On Debian/Ubuntu:
+
+ apt-get install libidl-dev libcpufreq-dev libacpi-dev \
+ libcgroup-dev libncurses5-dev
+
+ To build camera demo, you need to:
+
+ apt-get install freeglut3-dev
2) Go to build directory and configure the build:
To be able to use CPU reservations AQuoSA
(http://aquosa.sourceforge.net) has to be installed. If you cannot
use AQuoSA, the framework can also be compiled without CPU support
- or can use cgroups. Note, that cgroups support is not well tested,
- but we plan to work on it.
+ (echo CONFIG_AQUOSA=n >> config.omk) or can use cgroups (echo
+ CONFIG_CPUCG=y >> config.omk). Note, that cgroups support is not
+ well tested, but we plan to work on it.
3) Compile it:
* OLD HOWTO - may be out of date
- Linux + AQuoSA
-
- * Install AQuoSA (http://aquosa.sourceforge.net)
- * $HOME/frescor/src/omk-build/aquosa
- * Adjust symlinks to FRESCOR modules (fosa, frsh, utils, ...) or use ./create-links script
- * Create config.omk containing (or use a shell variable in your .bashrc)
-
- AQUOSA_ROOT=/path/to/aquosa/install/path
-
- * Actually, my preferred way of working is adding the following
- variables in .bashrc:
-
- # AQuoSA environment
-
- export AQUOSA_ROOT=/usr/local/aquosa
- export PATH="$PATH:$AQUOSA_ROOT/bin"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$AQUOSA_ROOT/lib"
-
- # FRESCOR environment
-
- export PLATFORM=AQuoSA
- export FOSA_ROOT=$HOME/path/to/fosa
- export FRSH_ROOT=$HOME/path/to/frsh
- export UTILS_ROOT=$HOME/path/to/utils
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$FOSA_ROOT/lib:$FRSH_ROOT/lib:$UTILS_ROOT/lib"
-
- # OMK environment
-
- # Use `omk' for OMK-enabled sources
- alias omk="make -f $HOME/path/to/Makefile.rules"
- # link headers instead of copying them
- export LN_HEADERS=y
-
- * Create default-configuration by running
-
- make default-config
-
- * Run
-
- make
-
** Further remarks
- If we are not interested in compilation of some component (because