Changes between Version 4 and Version 5 of ALOELinuxGuide

Show
Ignore:
Timestamp:
05/12/09 19:31:35 (16 years ago)
Author:
ismael (IP: 192.168.100.222)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ALOELinuxGuide

    v4 v5  
    1414If you downloaded ALOE from source, take a look at the 'examples' directory. There you will see the implementation of 3 ALOE objects (source, decimator and sink) and another folder called ''repository''. This directory is where Manager Daemons will look for configuration files, waveform definitions files and executables (and more things...). This path will be passed as the first argument to the ALOE launcher.  
    1515 
    16 You will see that this directory as, among others, the following '''mandatory''' subdirectories: 
     16You will see that this directory has, among others, the following '''mandatory''' subdirectories: 
    1717   * logs: Here waveform's modules will store their logs, in per-waveform sub-directories. 
    1818   * reports: This is where statistics value reports are written 
     
    2525Also during the installation, the default repository folder has been set to one provided in the source package, relative to the path where you untar'd it.  
    2626 
     27So, launching ALOE is as easy as going to the source directory and type: 
     28 
    2729{{{ 
    28 runph phal-repositories 
     30runph 
    2931}}} 
    30  
    31 You just got into the ALOE environment! By the moment, you can't do anything because you need to download an application first. This will be explained in the following section. 
    3232 
    3333[[BR]] 
     
    3535More optional arguments can be passed to runph in the shell. The command accepts the following arguments: 
    3636{{{ 
    37 runph [repository_path] -c [platform_cfg_file] -i [xitf_cfg_file] -p [priority] -d [debug_level] [--daemon] [-o output_file] 
     37runph [repository_path] -c [platform_cfg_file] -i [xitf_cfg_file] -p [priority] [--daemon] [-o output_file] 
    3838}}} 
    3939Where: 
     
    4242 * ''-i [xitf_cfg_file]'': Configuration file for external interfaces, see Customizing your Platform. ''Default'': /usr/local/etc/xitf.conf 
    4343 * ''-p [priority]'': Needs root privileges. Kernel priority level for waveform processes, see Performance Notes. ''Default'': 20 
    44  * ''-d [debug_level]'': Sets platform debug level. Currently only 2 modes are supported, level=0 or level!=0, where the first means normal operation and the second prevents EXEC daemon to kill processes which violated real time policies. ''Default'': 0 
    4544 * ''--daemon'': Run PHAL in background. You should specify an output file (for standard output) so you can track what's happening. Also '''cmdman''' daemon should be launched as a daemon preventing to read from input (see below, Launching ALOE as a Daemon). ''Default'': Foreground. 
    4645 * ''-o [output_file]'': File to redirect standard output. ''Default'': None, terminal stdout. 
     
    4948[[BR]] 
    5049 
    51 == Downloading a waveform: Wimax == 
    52  
    53 You can download Wimax waveform latest version from our repository: Remember that you will be prompted for a valid username. 
    54  
    55 {{{ 
    56 svn checkout http://flexnets.upc.edu/svn/phal-apps/trunk/wimax 
    57 }}} 
    58  
    59 This will download all the files to a directory called wimax. You can enter there and compile your files as usually, paying attention on '''linking them to the ALOE SW API Library''' (see DeveloperGuide). 
    60  
    61 [[BR]] 
    62  
    6350== Running a waveform: Basic ALOE commands == 
    6451 
    65 ALOE can be controlled from a text console typing commands. Basically, running a waveform compromises 3 steps: ''loading'', ''initializing'' and ''running''. You will do such by typing the appropriate commands in the input console. In the next example, we will load, initialize and run the example waveform Wimax: 
     52ALOE can be controlled from a text console by typing commands. Basically, running a waveform compromises 3 steps: ''loading'', ''initializing'' and ''running''. You will do such by typing the appropriate commands in the input console. In the next example, we will load, initialize and run the example waveform. 
    6653 
    67 Once ALOE has been started with the appropriate arguments (see first section), we will load the waveform by typing in the prompt:  
     54Once ALOE has been started (by default typing {{{ runph }}} from the source directory, we will load the waveform by typing in the prompt:  
    6855{{{ 
    69 runph$: phload wimax 
     56runph$: phload example 
    7057}}} 
    7158 
    7259then initialize: 
    7360{{{ 
    74 runph$: phinit wimax 
     61runph$: phinit example 
    7562}}} 
    7663 
    7764and finally run: 
    7865{{{ 
    79 runph$: phrun wimax 
     66runph$: phrun example 
    8067}}} 
    8168 
    8269Now the waveform is running. We can see current processes information typing: 
    8370{{{ 
    84 runph$: execinfo wimax 
     71runph$: execinfo example 
     72}}} 
     73 
     74Or the available statistics 
     75{{{ 
     76runph$: statls example 
    8577}}} 
    8678 
    8779You also can pause the execution or run a finite number of steps, type: 
    8880{{{ 
    89 runph$: phpause wimax 
    90 runph$: phrun wimax 1000 
     81runph$: phpause example 
     82runph$: phrun example 1000 
    9183}}} 
    9284 
     
    108100 * ''output_file'': File to redirect standard output. 
    109101 * ''report_file'': File where save hw info reports 
    110  * ''debug_level'': Debug level 
    111102 * ''priority'': Priority level for objects 
    112103