I used Ubuntu10.04. The following describes how to set up an experiment environment. For other versions of Ubuntu, the setup process may be slightly different. Please refer to the relevant materials for help. 1. A software similar to SecureCRT in windows must be used: minicom. Download minicom: sudoapt-getinstallminicom and run the following command to test it: sudominicom-s will display the following results:
I am using Ubuntu 10.04. The following describes how to set up an experiment environment. For other versions of Ubuntu, the setup process may be slightly different. Please check the relevant information for solutions.
1. A software similar to SecureCRT in windows must be used: minicom. Download minicom first:
Sudo apt-get install minicom
Run the following command to test the installation:
Sudo minicom-s
The following result is displayed:
+ ----- [Configuration] ------ +
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as... |
| Exit |
| Exit from Minicom |
+ -------------------------- +
You can use the cursor to select the corresponding configuration item, and press enter to confirm.
I am using a laptop, so I encountered a problem of USB to serial port. First, check whether there is a USB-to-serial driver in ubuntu)
I found that there is no ttyUSB0 file in/dev, but www.linuxidc.com can create one by itself:
Sudo mknod/dev/ttyUSB0 c 188 0
If you are using a serial line, set it to/dev/ttyS0.
Then we re-enter minicom For Configuration:
Sudo minicom-s
Select Serial port setup and perform the following settings:
| 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 |
After setting, select Save setup as dfl so that you do not need to reconfigure it next time.
Connect the USB to the serial port and restart minicom.
Welcome to mini-com 2.4
OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port/dev/ttyUSB0
Press CTRL-A Z for help on special keys
Turn on the power of TQ2440 and you will see: (I started from NAND Flash)
<***************************************>
TQ2440 Test Program
Www.linuxidc.com
<***************************************>
This indicates that your board has been connected to the computer.
A bad thing about minicom is that the screen will be cleared as soon as you zoom in or out the terminal.
If you want to enter the download mode, restart the Development Board from NOR Flash. At this time, the u-boot information will appear:
##### Boot for Nor Flash Main Menu #####
##### EmbedSky USB download mode #####
[1] Download u-boot or STEPLDR. nb1 or other bootloader to Nand Flash
[2] Download Eboot (eboot. nb0) to Nand Flash
[3] Download Linux Kernel (zImage. bin) to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image (root. bin) to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[A] Download User Program (eg: uCOS-II or TQ2440_Test)
[B] Download LOGO Picture (. bin) to Nand Flash
[L] Set LCD Parameters
[N] Enter TFTP download mode menu
[O] Download u-boot to Nor Flash
[R] Reboot u-boot
[T] Test Linux Image (zImage)
[Q] quit from menu
Enter your selection:
(If not, press the reset key)
At this time, do not forget to plug in the USB host. Otherwise, the USB host is not connected now will appear during the download process.