Difference between revisions of "Mesh/WalkThrough"

Jump to navigation Jump to search
181 bytes added ,  16:45, 1 December 2013
added more, fixed formatting
(added firmware feed info)
(added more, fixed formatting)
Line 1: Line 1:
The following walk through assumes you're using linux and knowledge of terminal. The basic idea of getting a node (router) on the mesh consists of flashing (copying files to the flash) an operating system to node and installing additional drivers and packages. We use [https://openwrt.org/ OpenWRT] as the operating system on our embedded devices (routers), then connect to the node (via [https://en.wikipedia.org/wiki/Secure_Shell SSH]) and install mesh the related software and configure it. This operating system is meant to fit on small amount (4MB) of flash memory.  
The following walk through assumes you're using linux and [https://help.ubuntu.com/community/UsingTheTerminal knowledge of terminal]. The basic idea of getting a node (router) on the mesh consists of flashing (copying files to the flash) an operating system to node and installing additional drivers and packages. We use [https://openwrt.org/ OpenWRT] as the operating system on our embedded devices (routers), then connect to the node (via [https://en.wikipedia.org/wiki/Secure_Shell SSH]) and install mesh the related software and configure it. This operating system is meant to fit on small amount (4MB) of flash memory.  


=Building an OpenWRT image=
=Building an OpenWRT image=
Line 20: Line 20:
*: <code>$ ./scripts/feeds update -a</code>
*: <code>$ ./scripts/feeds update -a</code>
*: <code>$ ./scripts/feeds install -a</code> (if you want to install all feeds)
*: <code>$ ./scripts/feeds install -a</code> (if you want to install all feeds)
*Run the Buildroot
*Update and Install the Buildroot dependencies
*: <code>$ make defconfig</code> (build list of dependencies)
*: <code>$ make defconfig</code> (build list of dependencies)
*: <code>$ make prereq</code> (install dependencies)
*: <code>$ make prereq</code> (install dependencies)
*: <code>$ make menuconfig</code> (run the software)


If you're still missing software, then you'll have to manually install it.  
If you're still missing software, then you'll have to manually install it.  
Line 31: Line 30:
There are other feeds than the standard that you may want to be available to Buildroot. These are the suggested feeds for nodes:   
There are other feeds than the standard that you may want to be available to Buildroot. These are the suggested feeds for nodes:   


*Find the drivers for your device.
*Find the drivers for your device
*: Determine drivers for your router based on the chipset (ex. Atheros AR9331)
*: Determine drivers for your router based on the chipset (ex. Atheros AR9331)
*: The open source driver for ''this example'' is [http://wireless.kernel.org/en/users/Drivers/ath9k Ath9k]. ([http://wireless.kernel.org/en/users/Drivers all drivers for linux])
*: The open source driver for ''this example'' is [http://wireless.kernel.org/en/users/Drivers/ath9k Ath9k]. ([http://wireless.kernel.org/en/users/Drivers all drivers for linux])
*Install the driver feed.
*Install the driver feed  
*: <code>$ ./scripts/feeds install <PACKAGENAME></code> (ex. kmod-ath9k)  
*: <code>$ ./scripts/feeds install <PACKAGENAME></code> (ex. kmod-ath9k)  


Line 41: Line 40:
==Step Three: Build the Firmware==
==Step Three: Build the Firmware==


*Run the Buildroot
*: <code>$ make menuconfig</code>
*Configure the firmware (needs it's own article)


=Installing OpenWRT=
=Installing OpenWRT=
Line 65: Line 67:


==Step Three: Install OpenWRT on the router==
==Step Three: Install OpenWRT on the router==
*Afterwards do the following:
    tftp 192.168.1.20
    binary
    rexmt 1
    timeout 60
    trace
    tftp> put firmwarefile.bin (see below)


Where firmwarefile.bin is the name of the firmware file you want to flash.
*Then do the following:
*: <code>$ tftp 192.168.1.20</code>
*: <code>$ binary</code>
*: <code>$ rexmt 1</code>
*: <code>$ timeout 60</code>
*: <code>$ trace</code>
*: <code>$ tftp> put <FIRMWARE>.bin</code>
 
The <FIRMWARE>.bin is the name of the firmware file you want to flash.


Assuming you want to run Attitude Adjustment, the correct firmwares for tested routers are:
Assuming you want to run Attitude Adjustment, the correct firmwares for tested routers are:
289

edits

Navigation menu