= Serial Access / Flashing via UART = ||'''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`[[BR]]`### YModem transfer`[[BR]]`fis delete image`[[BR]]`fis create image`[[BR]]`reset`|| [[BR]] == Preliminary == I assume we are using an ''ark3116'' based USB-UART adapter under Debian Linux with [http://cutecom.sourceforge.net/ CuteCom] as terminal application. See also http://www.mail-archive.com/development@fonosfera.org/msg00308.html for experiences with another adapter. 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 [http://alioth.debian.org/projects/minicom minicom] you can use this program instead and use the above mentioned settings. '''Note:''' If you are using Windows you might use the program [http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/HYPERTERMINAL.html 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 == 1. Make sure your Fonera is '''not plugged in''' yet.[[BR]]Connect your UART-Adapter to your Fonera as shown.[[BR]]Then connect your UART-Adapter to your Computer. [[Image(uart.jpg)]] 2. Open !CuteCom and adjust the settings as noted then hit ''Open device'' and place the cursor in the ''Input'' field. [[Image(cutecom.png)]] 3. Power on your Fonera and hit ''CTRL+C'' on your keyboard.[[BR]]You should get the ''!RedBoot>'' prompt. == Flashing via UART == 1. Type `load -r -v -b %{FREEMEMLO} -m ymodem` into the ''Input'' field and hit ''return''. 2. Choose ''YModem'' in the Listbox next to the ''Send file...'' button. Then hit ''Send file...'' and select the firmware file.[[BR]]The firmware will be uploaded to your fonera. This '''may take a few minutes'''. Wait for the status message `Raw file loaded...`. 3. Type `fis delete image` to delete the old firmware image, confirm any warnings with `y`. 4. Type `fis create image` to write the new image onto the flash memory. 5. Wait '''about 15 to 30 minutes''' until you get a reply then type `reset` to reboot the fonera.