Serial Access / Flashing via UART
tl;dr
| UART Pins: | 3.3V, TXD, RXD, GND, (JP1 Label) |
| Baud Rate: | 9600 |
| Data Bits: | 8 |
| Stop Bits: | 1 |
| Parity: | none |
| Handshake: | none |
| Transfer Protocol: | YModem |
| RedBoot Commands: | load -r -v -b %{FREEMEMLO} -m ymodem ### YModem transfer fis delete image fis create image reset |
Preliminary
I assume we are using an ark3116 based USB-UART adapter under Debian Linux with CuteCom as terminal application. 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. Install CuteCom if you have not already done so. Debian users may execute aptitude install cutecom as root. If you are already familiar with minicom you can use this program instead and use the above mentioned settings.
Note: If you are using Windows you might use the program HyperTerminal that is part of Windows. 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.
Serial Access
- 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.
- Open CuteCom and adjust the settings as noted then hit Open device and place the cursor in the Input field.
- Power on your Fonera and hit CTRL+C on your keyboard.
You should get the RedBoot> prompt.
Flashing via UART
- Type load -r -v -b %{FREEMEMLO} -m ymodem into the Input field and hit return.
- 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....
- Type fis delete image to delete the old firmware image, confirm any warnings with y.
- Type fis create image to write the new image onto the flash memory.
- Wait about 15 to 30 minutes until you get a reply then type reset to reboot the fonera.
Attachments
-
uart.jpg
(245.1 KB) - added by cyrus
13 months ago.
Fonera 2 connected to USB-UART-Adapter
-
cutecom.png
(95.4 KB) - added by cyrus
13 months ago.
Screenshot of CuteCom? connected to Fonera 2


