Serial Access / Flashing via UART

Both the 2.0g and the 2.0n Fonera have a serial port on board. These can be used to access the device directly, without going through the network. This also allows access to the device bootloader, which is especially useful when the bootloader configuration is broken or the device is otherwise completely inaccessible (but be sure to try the normal restore methods first!).


I assume we are using an ark3116 based USB-UART adapter under Debian Linux. A Pl2303 based adapter is also reported to work, see (in fact, any serial port emulator should work here). Note that you should not use a real serial port, or an USB-to-serial convertor with an DB-9 connector. These use the RS232 protocol, which operates on a higher voltage (3-15V instead of 3.3V) and seems to have the voltage levels reversed. Using RS232 might cause garbage instead of actual text on the serial port, or might destroy your Fonera's serial port completely.

The UART adapter is refered to as device /dev/ttyUSB0 in this tutorial. This might be different for you. If you are using an ark3116 or similar UART adapter under Linux you can get its device file name by searching the kernel log for a message like converter now attached to ttyUSB0 after plugging in the adapter.

In the pinouts below, TXD and RXD refers to transmit and receive from the point of view of the Fonera. This means that the pin marked as TXD is used to transmit data from the Fonera to the serial adapter, for example.

When connecting the serial adapter, you might need to cross over TXD and RXD, so connect TXD on the Fonera to RXD on the serial adapter and vice versa (though it seems some USB serial converters are labeled so that you just connect TXD to TXD and RXD to RXD, so you might have to try both configurations).

Some USB -> serial adapters don't have a 3.3V line. It should be fine to leave that one unconnected, then.

Terminal application

To access the serial port, you'll have to use a terminal emulator. Examples are cutecom and minicom under Linux, or HypterTerminal under Windows.

Debian users may execute aptitude install cutecom as root (or using sudo) to get cutecom. See below for the settings to use.

Windows users can use the builtin HypterTerminal command, see this tutorial. You should then use COM3 or similar instead of /dev/ttyUSB0 as device. You'll find the serial port name in your system device manager. However this tutorial will not cover the details of using HyperTerminal but things should be similar to the process described here.

2.0g specifics

2.0g connected to UART

The 2.0g has a header, labeled JP1, that offers access to the serial lines.

2.0g pinout

PinFunctionWire color in image
1 3.3V Not connected
2 TXD White
3 RXD Red
4 GND Black

Pin 1 is the pin closest to the ethernet sockets.

2.0g settings

Baud Rate:9600
Data Bits:8
Stop Bits:1
Transfer Protocol:YModem
RedBoot Commands:load -r -v -b %{FREEMEMLO} -m ymodem
### YModem transfer
fis delete image
fis create image

2.0g Redboot Access

  1. Make sure your Fonera is not plugged in yet.
    Connect your UART-Adapter to your Fonera as shown.
    Then connect your UART-Adapter to your Computer.
  1. Open CuteCom and adjust the settings as noted then hit Open device and place the cursor in the Input field.

Screenshot of CuteCom connected to Fonera 2

  1. Power on your Fonera. You should get some output in the terminal as show, hit CTRL+C on your keyboard to cancel the normal boot process.
    You should get the RedBoot> prompt.

Flashing via Redboot

  1. Type load -r -v -b %{FREEMEMLO} -m ymodem into the Input field and hit return.
  1. Choose YModem in the Listbox next to the Send file... button. Then hit Send file... and select the firmware file.
    The firmware will be uploaded to your fonera. This may take a few minutes. Wait for the status message Raw file loaded....
  1. Type fis delete image to delete the old firmware image, confirm any warnings with y.
  1. Type fis create image to write the new image onto the flash memory.
  1. Wait about 15 to 30 minutes until you get a reply then type reset to reboot the fonera.

2.0n specifics

The 2.0n is a bit more work: It has the pads for the serial connection, labeled JP2, but it doesn't have pins soldered on. Furthermore it also doesn't have the RX and TX pads connected. The real RX and TX pads are located on underside of the board, right under the main CPU.

The image pretty much sums up what you need to do get it working :-)

Note that these pads are very tiny SMD-style pads which are pretty hard to solder a wire onto properly. If you're not careful, you might tear the copper pads right off the board, effectively destroying the serial port on your Fonera (been there, done that...).

Note that to open up the 2.0n, you need to remove the four screws first. Then, the cover is still held in place with a few plastic catches: one on each side of the case falling in a hole in the cover and two catches at the front side of the cover that fall into two holes in the front (all of this is invisible from the outside). You'll have to do some careful prying to get it open.

To lift out the circuit board from the casing, lift the end with the USB port first. You'll have to do some prying again to get the USB port out of its opening in the casing, but once you get it out, you should be able to lift the circuit board without applying any force. Note that, because the antennas are fixed, you can't completely separate the circuit board from the casing, of course.

2.0n pinout

Underside of the Fonera 2.0n board

1 3.3V

Pin 1 is the pin closest to the leds.

Remember that the image is taken from the underside of the circuit board, so if you solder on a pin header and want to connect your UART, be careful not to read the picture wrong.

2.0n settings

Baud Rate:57600
Data Bits:8
Stop Bits:1

2.0n uboot access


SIMPL specifics

The SIMPL also does not have the pins for the serial port soldered on, but it does have all traces in place, so you only need to solder on some pins.

The solder pads are easy to find on the board (four copper pads next to each other). They're labeled "J2" on the 2405 board.

SIMPL pinout

1 3.3V

Pin 1 is marked with a square soldering pad (and is farthest from the antenna connector on the 2405 board).

2.0n settings

Baud Rate:57600
Data Bits:8
Stop Bits:1
Last modified 4 years ago Last modified on Mar 5, 2013, 10:48:47 AM

Attachments (3)

Download all attachments as: .zip