Active Antenna Persistent Configuration

From OLPC
Revision as of 15:10, 31 July 2008 by Carrano (talk | contribs)
Jump to navigation Jump to search
  This page is monitored by the OLPC team.

The following persistent parameters can be set on a standalone module (active antenna): [Note: if you cannot find the /sys pseudo files listed bellow you probably need to update your module, check this page]

  • bootflag - each module can store two copies of the firmware, this flag sets which one should be used to boot the module
  • boottime - the time (in seconds) the module will wait for the host to upload a firmware. After this time, the module will load the firmware stored in its flash
  • channel - in what channel should the module operate (0 means do not operate in standalone mode)
  • capability -
  • mesh_id - the mesh ssid
  • metric_id, protocol_id - the metric and protocol in use on the mesh (currently there is only option 0)

In order to set any of these parameters, you should simply write to the appropriate file in the tree bellow.

/sys/class/net/<inteface>...
              |-- boot_options
              |   |-- bootflag
              |   |-- boottime
              |   `-- channel
              ...
              |-- mesh_ie
              |   |-- capability
              |   |-- mesh_id
              |   |-- metric_id
              |   `-- protocol_id

Example - Set the channel to 6 in a standalone module in msh1:

echo 6 > /sys/class/net/msh1/boot_options/channel