Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu下搭建TQ2440的程序下载环境

我使用的Ubuntu 10.04,以下是我搭建实验环境的过程,其他版本的Ubuntu其搭建过程可能会略有不同,请读者自行查阅相关资料解决。1.必须使用一款类似于windows下SecureCRT的软件:minicom。先下载minicom:sudo apt-get install minicom安装完毕之后,使用如下命令行测试一下:sudo minicom -s会出现如下结果:            +-----[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        |            +--------------------------+通过光标可以上下选择相应的配置项,按回车即可确定。由于我使用的是笔记本电脑,所以便遇到USB转串口的问题。首先我们得先检查ubuntu有无USB转串口的驱动(ubuntu中不用安装什么USB转串口驱动)我发现在/dev下没有ttyUSB0这个文件,www.linuxidc.com不过可以自行创建一个:sudo mknod /dev/ttyUSB0 c 188 0如果使用的是串口线,就设置为/dev/ttyS0然后我们重新进入minicom进行配置:sudo minicom -s选择Serial port setup ,进行如下设置:    | 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                                        |设置完成之后,选择Save setup as dfl  ,这样下次就不用重新配置。接着插上USB转串口线,重启minicom就能看到Welcome to minicom 2.4OPTIONS: I18n Compiled on Jan 25 2010, 06:49:09.Port /dev/ttyUSB0Press CTRL-A Z for help on special keys 接着打开TQ2440的电源,就能看到:(此时我是从NAND Flash下启动)<***************************************>                           TQ2440 Test Program                                   www.linuxidc.com<***************************************>这就说明你的板子已经跟电脑连接在一起了。minicom有一个很不好的地方,就是你一拉大或者缩小终端,屏幕就会被清空,这点要注意一下。如果你要进入下载模式,那就从NOR Flash重新启动开发板,这时候会出现u-boot的信息:#####    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: (如果没有出现的话就按一下复位键)这时候不要忘了插上USB host,不然在下载的过程就会出现USB host is not connected now的情况。
  • 1
  • 2
  • 下一页
Ubuntu 10.10成功安装NachosUbuntu下drcom使用方法相关资讯      Ubuntu教程  TQ2440 
  • u-boot-2015.01在TQ2440上移植过程  (02/05/2015 19:30:05)
  • TQ2440按键点亮LED驱动程序  (10/13/2014 09:50:43)
  • TQ2440触摸屏驱动程序的移植  (10/13/2014 09:14:27)
  • u-boot-2014.04移植手册(TQ2440)   (02/05/2015 19:06:22)
  • TQ2440四线电阻式触摸屏驱动程序的  (10/13/2014 09:45:53)
  • 针对TQ2440开发板上Linux2.6.30.4  (08/31/2014 08:51:36)
本文评论 查看全部评论 (0)
表情: 姓名: 字数