亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

JZ2440開發(fā)筆記(2)——minicom的安裝和配置使

系統(tǒng) 1997 0
一、安裝配置minicom
1、安裝minicom
lingd@ubuntu:~$? sudo apt-get install minicom
2、配置minicom
lingd@ubuntu:~$? sudo minicom -s
?? ? ?出現(xiàn)這樣的配置界面:
?? ? ? ? ? ?+-----[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 ? ? ? ?|
?? ? ? ? ? ?+--------------------------+
?? ?? 選擇Serial port setup , 會(huì)看到這樣的選項(xiàng):
?? ?+-----------------------------------------------------------------------+
?? ?| A - ? ?Serial Device ? ? ?:? /dev/ttyS0 ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?| 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?+-----------------------------------------------------------------------+
輸入前面對應(yīng)的字母即可進(jìn)入相應(yīng)的選項(xiàng)。將選項(xiàng)A的值設(shè)置為/dev/ttyS0 表示是串口1,將選項(xiàng)E的值設(shè)置為115200,將選項(xiàng)F設(shè)置為NO(請根據(jù)實(shí)際情況配置).
?? ? 設(shè)置默認(rèn)上傳/下載的目錄, 選擇Filenames and paths ?, 會(huì)看到這樣的選項(xiàng):
?? ?+-----------------------------------------------------------------------+
?? ?| A - Download directory :? /home/lingd/arm/download ? ?? ? ? ? ? ? ? ? ? |
?? ?| B - Upload directory ? :? /home/lingd/arm/upload ?? ? ? ? ? ? ? ? ? ? ? |
?? ?| C - Script directory ? : ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?| D - Script program ? ? : runscript ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?| E - Kermit program ? ? : ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?| F - Logging options ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ?| ? ?Change which setting? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?+-----------------------------------------------------------------------+
注意:開發(fā)板發(fā)送給pc的文件將保存在Download directory所設(shè)定的目錄中,而pc要下載到開發(fā)板的文件保存在Upload directory所設(shè)定的目錄中
?? ? 設(shè)置完成后, 選擇”Save setup as dfl”, 保存為默認(rèn)設(shè)置.
然后選擇“Exit”,即可進(jìn)入Minicom的主界面:
Welcome to minicom 2.4
?
OPTIONS: I18n?
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyS0
?
Press CTRL-A Z for help on special keys ?? ? ? ? ? ? ?
?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
按Ctrl-A,再按z,可以獲取到minicom CTRL-A命令的幫助信息
Welco+-------------------------------------------------------------------+
?? ? | ? ? ? ? ? ? ? ? ? ? Minicom Command Summary ? ? ? ? ? ? ? ? ? ? ? |
OPTIO| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
Compi| ? ? ? ? ?Commands can be called by CTRL-A <key> ? ? ? ? ? ? ? ? ? |
Port | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ? | ? ? ? ? ? ? ? Main Functions ? ? ? ? ? ? ? ? ?Other Functions ? ? |
Press| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ? | Dialing directory..D ?run script (Go)....G | Clear Screen.......C |
?? ? | Send files.........S ?Receive files......R | cOnfigure Minicom..O |
?? ? | comm Parameters....P ?Add linefeed.......A | Suspend minicom....J |
?? ? | Capture on/off.....L ?Hangup.............H | eXit and reset.....X |
?? ? | send break.........F ?initialize Modem...M | Quit with no reset.Q |
?? ? | Terminal settings..T ?run Kermit.........K | Cursor key mode....I |
?? ? | lineWrap on/off....W ?local Echo on/off..E | Help screen........Z |
?? ? | Paste file.........Y ? ? ? ? ? ? ? ? ? ? ? | scroll Back........B |
?? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ? | ? ? ?Select function or press Enter for none. ? ? ? ? ? ? ? ? ? ? |
?? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
?? ? | ? ? ? ? ? ? Written by Miquel van Smoorenburg 1991-1995 ? ? ? ? ? |
?? ? | ? ? ? ? ? ? Some additions by Jukka Lahtinen 1997-2000 ? ? ? ? ? ?|
?? ? | ? ? ? ? ? ? i18n by Arnaldo Carvalho de Melo 1998 ? ? ? ? ? ? ? ? |
?? ? +-------------------------------------------------------------------+
?CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4 ? ?| VT102 | ? ? ?Offline ??
其中,我們用CTRL-A s來發(fā)送文件給開發(fā)板;而用CTRL-A r來接收開發(fā)板上的文件
二、為pc安裝lrzsz
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols.
lingd@ubuntu:~$? sudo apt-get install lrzsz
三、交叉編譯lrzsz并下載到開發(fā)板上
1、下載lrzsz源碼包
到http://download.chinaunix.net/download/0007000/6293.shtml,下一個(gè)lrzsz的tar包,
2、解壓縮后,到解壓目錄中執(zhí)行./configure
lingd@ubuntu:~/arm$? tar -zxf lrzsz-0.12.20.tar.gz?
lingd@ubuntu:~/arm$? cd lrzsz-0.12.20/
lingd@ubuntu:~/arm/lrzsz-0.12.20$? ./configure?
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ?) works... yes
checking whether the C compiler (gcc ?) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for AIX... no
checking for minix/config.h... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for working const... yes
checking for inline... inline
checking for syslog in -lsocket... no
checking for syslog in -lbe... no
checking for gethostbyname in -lnsl... yes
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for sys/times.h... yes
checking for termios.h... yes
checking for sys/termios.h... yes
checking for termio.h... yes
checking for sys/termio.h... no
checking for sgtty.h... yes
checking for termios.h... (cached) yes
checking for sys/termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sys/termio.h... (cached) no
checking for sgtty.h... (cached) yes
checking for sys/mman.h... yes
checking for utime.h... yes
checking for syslog.h... yes
checking for sys/syslog.h... yes
checking for sys/param.h... yes
checking for sys/select.h... yes
checking for strings.h... yes
checking for arpa/inet.h... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for speed_t... yes
checking for st_rdev in struct stat... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether sys/time.h and sys/select.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for errno declaration... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for settimeofday... yes
checking for strchr... yes
checking for memcpy... yes
checking for select... yes
checking for vprintf... yes
checking for times... yes
checking for rdchk... no
checking for utime... yes
checking for syslog... yes
checking for siginterrupt... yes
checking for mkdir... yes
checking for mktime... yes
checking for strerror... yes
checking for strstr... yes
checking for strdup... yes
checking for strtoul... yes
checking for strtol... yes
checking for strpbrk... yes
checking for stpcpy... yes
checking for strftime... yes
checking for vasprintf... yes
checking for getopt_long... yes
checking for ftime... yes
checking that ftime works correctly... yes
checking for timezone variable... yes
checking for LOG_UUCP... yes
checking for argz.h... yes
checking for limits.h... (cached) yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for values.h... yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... (cached) yes
checking for strcasecmp... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... ?de
updating cache ./config.cache
creating ./config.status
creating Makefile
creating intl/Makefile
creating lib/Makefile
creating testsuite/Makefile
creating man/Makefile
creating po/Makefile.in
creating src/Makefile
creating debian/rules
creating Specfile
creating systype
creating src/lrzszbug
creating config.h
3、修改Makefile
有三個(gè)Makefile需要修改,分別是 ~/arm/lrzsz-0.12.20/Makefile、~/arm/lrzsz-0.12.20/lib/Makefile、~/arm/lrzsz-0.12.20/src/Makefile
lingd@ubuntu:~/arm/lrzsz-0.12.20$? vi Makefile
lingd@ubuntu:~/arm/lrzsz-0.12.20$? vi lib/Makefile
lingd@ubuntu:~/arm/lrzsz-0.12.20$? vi src/Makefile
將這三個(gè)Makefile中的所有g(shù)cc替代成你開發(fā)板所需要的交叉編譯器,如arm-linux-gcc
即:
CC = gcc
CPP = gcc -E
都改成
CC = arm-linux-gcc
CPP = arm-linux-gcc -E
4、編譯
lingd@ubuntu:~/arm/lrzsz-0.12.20$? make
在lrzsz-0.12.20/src目錄下會(huì)生成兩個(gè)可執(zhí)行文件lsz、lrz(或者sz、rz),把它們下載到開發(fā)板linux系統(tǒng)的/bin目錄下。
lingd@ubuntu:~/arm/lrzsz-0.12.20$? cd?src
lingd@ubuntu:~/arm/lrzsz-0.12.20/src$ ls
ansi2knr.1 ? lrz ?? ? ? ? ?lsyslog.o ? ?Makefile.in ?tcp.o ? ? ?zm.o
ansi2knr.c ?lrz.c ? ? ? ? lsz ?? ? ? ? ?protname.c ? timing.c ? zmodem.h
canit.c ? ? lrz.o ? ? ? ?lsz.c ? ? ? ?protname.o ? timing.h ? zperr.c
canit.o ? ? lrzszbug ? ? lsz.o ? ? ? ?rbsb.c ? ? ? timing.o ? zperr.o
crctab.c ? ?lrzszbug.in ?Makefile ? ? rbsb.o ? ? ? zglobal.h ?zreadline.c
crctab.o ? ?lsyslog.c ? ?Makefile.am ?tcp.c ? ? ? ?zm.c ? ? ? zreadline.o
四、測試
1、開發(fā)板-->PC機(jī)
在開發(fā)板上輸入 ?lsz filename ,然后會(huì)出現(xiàn)一個(gè)傳輸界面,傳輸完成后可以在你設(shè)置的默認(rèn)下載目錄Download directory里找到這個(gè)文件。
2、PC機(jī)-->開發(fā)板
在開發(fā)板上先進(jìn)入/tmp 目錄,然后輸入lrz。
# cd /tmp
# lrz ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?z waiting to receive.**B0100000023be50
按Ctrl-A,再按s,選擇zmoden,會(huì)出現(xiàn)一個(gè)選擇文件的界面,選擇你要傳輸?shù)奈募ò匆幌驴崭矜I選擇目錄,按兩下空格鍵進(jìn)入目錄),回車后出現(xiàn)一個(gè)傳輸界面,傳輸完成后,便可以在開發(fā)板的/tmp目錄下找到這個(gè)文件了。
?
轉(zhuǎn)自:http://www.cnblogs.com/wanqieddy/archive/2011/07/14/2106087.html

JZ2440開發(fā)筆記(2)——minicom的安裝和配置使用


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會(huì)非常 感謝您的哦!??!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产欧美一级片 | 亚洲在线中文字幕 | 四虎影视1304t | 国产成人精品午夜在线播放 | 欧美一级毛片久久精品 | 国产精品第1页在线播放 | 日本高清不卡二区 | 国产成人精品久久亚洲高清不卡 | 在线观看亚洲精品国产 | 国产一极毛片 | 曰本女人视频69xxx | 一区二区三区四区五区 | 国产91免费在线观看 | 美女一区二区三区 | 亚洲国产成a人v在线观看 | 桃花在线视频社区 | 欧美午夜毛片a级在线 | 亚洲高清一区二区三区四区 | 日韩欧美中文字幕出 | 国产香蕉国产精品偷在线观看 | 曰本三级男人吃奶水 | 精品国产一区二区三区香蕉事 | 高清视频一区 | 五月桃花网婷婷亚洲综合 | 久久精品免观看国产成人 | 狠狠色丁香婷婷综合最新地址 | 国产伦精品一区二区三区女 | 麻豆国产在线观看一区二区 | 淫视频在线观看 | 国产国语videosex | 热热99 | 四虎影视国产精品婷婷 | 国产毛片黄片 | 夜夜操天天 | 久久亚洲综合中文字幕 | 美日韩免费视频 | 国产欧美亚洲精品 | 欧美精 | 狠狠操狠狠插 | 伊人色综合久久天天爱 | 国产 欧美 日产中文 |