The ADM5120™ has several communication ports including one internal serial port, two external usb ports and two ethernet interfaces with five ethernet ports. The ethernet ports are configured as a gateway where that four ports service a Local Area Network (LAN) interface and the fifth port services a Wide Area Network (WAN) interface.
Since most of our computers do not have an external serial port we obtained a USB-to-serial cable and modified the serial connector for the interal ADM5120™ serial connector. The following steps explain how to connect to the AMD5120™ using a USB-to-serial cable and communicate with it using the minicom terminal emulation program. The serial port characteristics are 115200 bps, 8 data bits, 1 stop bit, no parity, no hardware flow control, no software flow control.
Connect the serial end of the USB serial cable to the interal ADM5120™ serial connector and power on the ADM5120™ device. Let device will boot up as you perform the next steps.
Plug the USB serial adapter into the ubuntu™ host. Confirm that device /dev/ttyUSB0 have been created. This device is now the USB serial port.
Configure the minicom program by opening a console window and typing the command minicom -s. A text-based popup window should appear displaying the minicom configuration menu.
Use the cursor keys to select option Serial port setup then press Enter. Another text-based popup window should appear displaying serial port parameters.
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
Press the letter A to select the Serial Device and type /dev/ttyUSB0 then press Enter. This assumes you are using a USB-to-serial cable; otherwise, name the appropriate tty device.
Press the letter E to select the Bps/Par/Bits and type 115200 8N1 then press Enter.
Press the letter F to toggle Hardware Flow Control until it indicates No.
Press the letter F to toggle Software Flow Control until it indicates No.
Press Enter when done to close the Serial port setup window and return to the configuration window.
Use the cursor keys to select option Filenames and paths and press Enter. Another text-based popup window should appear displaying various pathname options.
+-----------------------------------------------------------------------+
| A - Download directory : /home/mydir/AMiLDA |
| B - Upload directory : /home/mydir/AMiLDA |
| C - Script directory : |
| D - Script program : runscript |
| E - Kermit program : |
| F - Logging options |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
Press the letter A to select the Download directory then type a valid pathname then press Enter.
Press the letter B to select the Upload directory then type a valid pathname then press Enter.
Minicom truncates long pathnames without giving any immediate indication so keep your pathnames short.
The AMiLDA™ build stream places file vmlinuz in folder /usr/src/AMiLDA/linux-2.4.32-amilda/ by default but that pathname is too long and will be truncated. You may want to modify the build stream to place the file in another location or copy the file to another location or create a symlink to the file from another location.
Use the cursor keys to select option Save setup as dfl then press Enter. This will save your setting as file /etc/minicom/minirc.dfl.
Use the cursor keys to select option Exit and press Enter to close the configuration window and start the minicom program. Assuming the ADM5120™ is properly connected and powered up, you should see the Linux login prompt in the console window.
Power cycle the ADM5120™ board to see the boot prompt. You will have about two or three seconds to press the space three times before the the Linux system starts to bootload. If you are fast enough then you should see the following menu and be able to download a new vmlinuz image into either SDRAM or NVRAM via a menu.
Example 7.1. ADM5120™ Boot Menu
ADM5120 Boot: Linux Loader Menu ==================== (a) Download vmlinuz to flash ... (b) Download vmlinuz to sdram (for debug) ... (c) Exit Please enter your key :
After typing either a or b, you will have about 8 seconds to commence an XMODEM protocol download of you image file. The actual filename is not important but the file format is important. If you select option b then the image file can be a standard Linux™ vmlinuz file. If you select option a then the image file must a standard Linux™ image file with header and checksum. If you select option c, either the flashed or the downloaded vmlinuz image will execute and proceed to a login prompt.
Although minicom can be used to download firmware images, Atheros recommends using scripts download.sh and flash.sh, instead. They are easier to use and are more reliable. See Downloading Images for more information about these scripts.