Open-Mesh OM1P Router

From Robertjd

Jump to: navigation, search

Contents

[hide]

About the OM1P / MR3201A / AR2315 device

The OM1P router available from www.open-mesh.com is actually a MR3201A from Accton:

http://www.accton.com/products/product_range/21_weap/MR3201A.htm

That page no longer exists! Here is a copy of the product overview PDF that I had downloaded from that page while it still existed:

http://www.robertjd.com/sites/default/files/MR3201A.pdf


According to OpenWrt it is an Atheros AR2315 chipset:

http://wiki.openwrt.org/oldwiki/openwrtdocs/hardware/fon/fonera

Some configuration guides for OpenWrt on the Atheros chipset:

http://oldwiki.openwrt.org/OpenWrtDocs(2f)KamikazeHowto(2f)Atheros.html?highlight=%28CategoryCategory%29

SSH access

The default Open Mesh firmware has an SSH password of:

0p3nm35h

This will change once you setup the router in your dashboard at www.open-mesh.com. The dashboard will show you the new password.

Using OpenWrt

Some things I have learned while running OpenWrt on the OM1P:

Entering OpenWRT Failsafe Mode

If you are connected to the serial port as the OM1P boots OpenWrt, you will eventually see this:

Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe

However, sending CTRL-C with your keyboard has no effect. To enter failsafe you must press the reset button on the bottom of the OM1P when you see the message about failsafe mode. If you press it at the right moment, you will then be given a failsafe prompt:

Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@(none):/#

Please read here for more information about failsafe mode: http://wiki.openwrt.org/oldwiki/openwrtdocs/troubleshooting

Using the serial port to access OpenWRT

In order to enable the serial port of the OM1P for serial access to a running OpenWRT installation, you will need to have the following line in /etc/inittab

ttyS0::askfirst:/bin/ash --login

If you do that, you will then be presented with this message "Please press Enter to activate this console." on the serial port while OpenWRT is booting. Press enter to get a console:

Press CTRL-C for failsafe
- init -

Please press Enter to activate this console.


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@(none):/#

NOTE: if you want to use the serial port to talk to a serial device such as a GPS, you must REMOVE that line from /etc/inittab or else you wont be able to talk to your device

Flashing

YOU ARE READING THIS AT YOUR OWN RISK

Flashing routers is always risky business. I presume you are doing lots of other research before you give it a go

A catch-all page for information on flashing can be found on the OpenWrt site:

http://wiki.openwrt.org/oldwiki/openwrtdocs/hardware/fon/fonera

That page is talking about the Fonera devices, which use the same Atheros chipset as the OM1P. You should not use that page as a de-facto guide for flashing information. You should be doing other research about how to flash the Atheros chipset.

Flashing from Open Mesh firmware to OpenWrt Kamikaze 8.0.9 r14511 using "easyflash"

Warning

USE THESE INSTRUCTIONS AT YOUR OWN RISK

The procedure I show below worked for me on my brand new OM1P purchased in September 2009. Your situation could be completely different given when you bought your router, what firmware it already has on it, etc. I am merely sharing what I did and what did or did not work for me.

On the open-mesh.com site is a tutorial that shows you how to use the "easyflash" utility to flash new firmware onto the OM1P:

http://www.open-mesh.com/activekb/questions/8/Reflashing+Open+Mesh+Routers

EDIT: "easyflash" is no longer on the open-mesh.com website. This appears to be the same utility, but I HAVE NOT VERIFIED it yet:

http://download.berlin.freifunk.net/sven-ola/area51/

If you try this and it works, please email me

Their instructions are speicifc to loading their version of the OpenWRT firmware. However I have successfully used their method to load Kamikaze 8.0.9 from the www.openwrt.org websiste.

Step 1: Download files

First, create a folder on your host computer to work in. Then download the "easyflash" to that folder

Next you'll need to download the kernel (.lmza) and the filesystem (.jffs2-64k) files and the md5sums from here:

http://downloads.openwrt.org/kamikaze/8.09/atheros/openwrt-atheros-root.jffs2-64k

http://downloads.openwrt.org/kamikaze/8.09/atheros/openwrt-atheros-vmlinux.lzma

http://downloads.openwrt.org/kamikaze/8.09/atheros/md5sums

Step 2: Run easyflash

The power to the OM1P should be unplugged at this point. Then, hook up your OM1P to an ethernet port on a host computer. We are ready to run easyflash, which will configure the ethernet interface to listen for a message from the OM1P

Note: if the interface on the host computer is not already up, do so:

suod ifconfig eth0 up

Give execute permissions to easyflash:

chmod a+x easyflash

Now run "easyflash" like so:

sudo ./easyflash eth0 openwrt-atheros-root.jffs2-64k openwrt-atheros-vmlinux.lzma

Where interface is the interface name of the ethernet port that you plugged the OM1P into, and the root filesystem image and kernel image are the filenames of those image files that you downloaded. You need to run as root or sudo so that the easyflash program can change the configuration of the ethernet port so that it can listen for a broadcast message that the OM1P sends when it first boots.

Here is what this looked like on my machine:

robert:/home/robert/src/openmesh# sudo ./easyflash eth0 openwrt-atheros-root.jffs2-64k openwrt-atheros-vmlinux.lzma
Reading rootfs file openwrt-atheros-root.jffs2-64k with 2621440 bytes...
Reading kernel file openwrt-atheros-vmlinux.lzma with 786432 bytes...
rootfs(0x006e0000) + kernel(0x000c0000) + nvram(0x00000000) sums up to 0x007a0000 bytes

The easyflash utility will now wait. Go ahead and plug in the power to the OM1P. The easyflash utility should detect the broadcast packet from the OM1P and begin the firmware upgrade process:

Expect arp with length 60, received 42
Peer MAC: 00:cd:12:e9:d1:a3
Peer IP : 192.168.0.1
Your MAC: 00:ab:bc:ce:fe:ac
Your IP : 192.168.0.0
Setting IP address...
Loading rootfs...
Sending rootfs, 5120 blocks...
Initializing partitions...
Rootfs partition size now 0x006f0000
Flashing rootfs...
Loading kernel...
Sending kernel, 1536 blocks...
Flashing kernel...
Setting boot_script_data...
Done. Restarting device...
robert:/home/robert/src/openmesh#

This took about Twenty Minutes on my machine, so be patient.

Step 3: Configuration

If everything went okay the OM1P will reboot into the new OpenWRT installation! It will have an address of 192.168.1.1, so configure your computer with an address of 192.168.1.2 using ifconfig:

sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0

You should now be able to telnet into the router:

robert@ghost:~/om1p$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/#

To enable SSH you need to set a root password with the passwd command:

root@OpenWrt:/# passwd
Changing password for root
New password:
Retype password:
Password for root changed by root
root@OpenWrt:/# exit

You should now be able to SSH into the router:

robert@ghost:~/om1p$ ssh root@192.168.1.1
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
RSA key fingerprint is fa:1b:3d:ef:a1:b1:6e:ef:e3:4b:3a:64:21:ba:1b:a1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.
root@192.168.1.1's password:


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~#

You are in! You should also be able to use the web interface at this point.

DONT FLASH FROM OPEN MESH FIRMWARE USING MTD

Using information from the openwrt page about Fonera devices, I tried to put kamikaze 8.09.1 onto the OM1P from within its default Open Mesh firmware using the mtd method, but it failed:

root@blank:~# mtd -e vmlinux.bin.l7 write openwrt-atheros-vmlinux.lzma vmlinux.bin.l7
Unlocking vmlinux.bin.l7 ...
Erasing vmlinux.bin.l7 ...
Writing from openwrt-atheros-vmlinux.lzma to vmlinux.bin.l7 ...  [e]Erasing mtd failed.

If you are in this situation DONT REBOOT! To rescue myself I went and got the open-mesh.com kernel image and was able to mtd that back onto the device without error:

root@blank:~# wget http://www.open-mesh.com/flashing/openwrt-atheros-vmlinux.lzma

--2009-09-29 21:46:58--  http://www.open-mesh.com/flashing/openwrt-atheros-vmlinux.lzma
Resolving www.open-mesh.com... 66.206.86.150
Connecting to www.open-mesh.com|66.206.86.150|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 720896 (704K) [text/plain]
Saving to: `openwrt-atheros-vmlinux.lzma'

100%[=============================================================================================>] 720,896      279K/s   in 2.5s

2009-09-29 21:47:01 (279 KB/s) - `openwrt-atheros-vmlinux.lzma' saved [720896/720896]

FINISHED --2009-09-29 21:47:01--
Downloaded: 1 files, 704K in 2.5s (279 KB/s)
root@blank:~#
root@blank:~#
root@blank:~# mtd -e vmlinux.bin.l7 write openwrt-atheros-vmlinux.lzma vmlinux.bin.l7
Unlocking vmlinux.bin.l7 ...
Erasing vmlinux.bin.l7 ...
Writing from openwrt-atheros-vmlinux.lzma to vmlinux.bin.l7 ...  [w]
root@blank:~#
root@blank:~# reboot

As you can see, that did not fail and upon reboot I did not have a bricked router - yay!

Hardware Hacking

There are many hacking projects with this router. Here are some links to sites I have found with information. I have NOT tried all of these myself, you are using them at your own discretion.

SD Card - Attach an MMC card reader

http://wiki.openwrt.org/oldwiki/openwrtdocs/customizing/hardware/mmc#fonera.access.point
http://www.larsen-b.com/Article/262.html

MP3 Player - The SD card hack plus some components for playing audio

http://phrozen.org/fonera.html

Controlling AC loads - Note that these instructions are DD-WRT specific, alter accordingly for OpenWrt

http://www.dd-wrt.com/wiki/index.php/LaFonera_Hardware_Controlling_AC-Loads
http://cryptonoid.blogspot.com/2007/08/fics-fonera-internet-controlled-switch.html

LCD Screen

http://www.lefinnois.net/wp/index.php/2007/11/10/un-ecran-lcd-pour-la-fonera/

General

http://www.fonerahacks.com/

Power Consumption

The circuit board uses an LD1117AL voltage converter.

Other Resources

Here are links to other sites that I found useful while compiling the above information:

Personal tools