Differences

This shows you the differences between the selected revision and the current version of the page.

mobilemesh:boxconfig 2009/11/03 11:57 mobilemesh:boxconfig 2009/11/11 12:03 current
Line 10: Line 10:
  * The wireless interface is configured to monitor mode.   * The wireless interface is configured to monitor mode.
-  * The gpsd daemon is started. +  * The ''gpsd'' daemon is started. 
-  * An NTP daemon is started and synchronizes to the time provided by gpsd. +  * The hard drive is mounted as writable 
-  * A GPS position logger begins logging position in a file with a unique name+  * The time is loosely synched with the GPS. 
-  * Click executes a the appropriate script logging sent and received packets in files with unique names.+  * ''click'' automatically starts with an appropriate script. ([[[mobilemesh:ClickRequirements|This page]] contains a detailed description of the desired operation of click for our early experiments.) 
---- ----
 +==== Configuration Instructions ====
- +Below we describe the ordered steps for configuring a box to experiment-ready condition. Much of these instructions can eventually be condensed into an a single script run on the box after the os is installed.
-Below we describe the ordered steps for configuring a box to experiment-ready condition.+
=== Step #1: (Re)Install Voyage on Box === === Step #1: (Re)Install Voyage on Box ===
Line 39: Line 39:
-**(Troubleshooting)**+__Troubleshooting__
  * If the CF drive won't load (doesn't show up in fdisk), use dmesg to see what's wrong   * If the CF drive won't load (doesn't show up in fdisk), use dmesg to see what's wrong
Line 49: Line 49:
  - Download voyage distribution and untar it   - Download voyage distribution and untar it
  - As root, run ''./usr/local/sbin/voyage.update''.   - As root, run ''./usr/local/sbin/voyage.update''.
-    * (Almost all of the default options should be fine. You want to select ALIX as the type of device it is being deployed to.  And you will have to manually select CF reader device -- i.e., for me: ''sbd''-- The default will probably be something different the first time you do it.)+    * (Almost all of the default options should be fine. You want to select ALIX as the type of device it is being deployed to.  And you will have to manually select CF reader device -- i.e., for me: ''sbd''-- The default will probably be something different the first time you do it. Also, when it asks where it can mount the disk, you should actually go create the default directory it suggests before pressing enter.)
  - Unmount and go   - Unmount and go
Line 63: Line 63:
Then run the following command to install the necessary packages: Then run the following command to install the necessary packages:
-    apt-get install ntp ntp-simple gpsd gpsd-clients perl-modules+    apt-get install gpsd gpsd-clients perl-modules 
 + 
 +=== Step #2.5: Reboot === 
 + 
 +I'm not sure if this step is necessary. But I found that with two different boxes, if I did the entire install procedure without a reboot in the middle, I would get a Kernel Panic next time I rebooted. Doing a ''reboot'' at this stage seems to solve it: 
 + 
 +    reboot
=== Step #3: Install Scripts === === Step #3: Install Scripts ===
 +
 +(**Warning:** //Do not try to shortcut the process below by copying the scripts to the disk while mounted on your desktop. For some reason, this seems to fill the ''tempfs'' and prevent ''apt-get'' from working.//)
Create the following two directories: Create the following two directories:
Line 84: Line 92:
    chmod 755 runclick.pl     chmod 755 runclick.pl
-Next, we need to update the ''/etc/init.d/voyage-util'' script with a version that doesn't mount the hard drive as read only:+Next, we need to update two start-up scripts to behave the way we want:
    cd /etc/init.d     cd /etc/init.d
    mv voyage-util voyage-util-OLD     mv voyage-util voyage-util-OLD
 +    mv udev udev-OLD
    wget http://people.csail.mit.edu/cnewport/mobilemesh/box/voyage-util     wget http://people.csail.mit.edu/cnewport/mobilemesh/box/voyage-util
 +    wget http://people.csail.mit.edu/cnewport/mobilemesh/box/udev
While here, we can ''wget'' two custom start-up scripts as well: While here, we can ''wget'' two custom start-up scripts as well:
Line 98: Line 108:
    chmod 755 voyage-util     chmod 755 voyage-util
 +    chmod 755 udev
    chmod 755 setup-wifi.sh     chmod 755 setup-wifi.sh
    chmod 755 setup-logging.sh     chmod 755 setup-logging.sh
Line 108: Line 119:
You are done, the traces will be collected at /ro/usr/mmesh/trace/ You are done, the traces will be collected at /ro/usr/mmesh/trace/
 +=== Step #4: Disable GPSD Hotplug ===
 +Run the following command to disable GPSD hotplugging:
-=== Step #4: Configuring NTP Time Synch === +    mv /lib/udev/gpsd.hotplug /lib/udev/gpsd.hotplug.DISABLED
- +
-(**Note:** This is work in progress. These notes are incomplete.) +
- +
-Add the following lines to ''/etc/ntp.conf'': +
- +
-    server 127.127.28.0 minpoll 4 maxpoll 4 +
-    fudge 127.127.28.0 time1 0.035 refid GPS+
-You have to restart the ''ntp'' daemon for this to take effect. I know there is a command for this, but I don't know it. Restarting the box, however, does work. 
-After restarting, you can check by doing the following command:+=== Step #5: Run ''Reboot'' ===
-    ntpq -p+To ensure these files are permanently written to the flash, and to test everything out, run the following:
-There should be a ''SHM(0)'' entry with ''refid'' listed as ''.GPS''. The value under ''reach'' should be at least ''377'' to indicate that it is getting a good reading from the GPS.+    reboot
-To stop ''ntpd'' from synching over the ethernet cable, comment out the default pool servers in ''/etc/ntp.conf'' 
       
 
mobilemesh/boxconfig.1257267441.txt.gz · Last modified: 2009/11/03 11:57 by cnewport
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki