欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

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

系統 2071 0
一、安裝配置minicom
1、安裝minicom
lingd@ubuntu:~$? sudo apt-get install minicom
2、配置minicom
lingd@ubuntu:~$? 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 ? ? ? ?|
?? ? ? ? ? ?+--------------------------+
?? ?? 選擇Serial port setup , 會看到這樣的選項:
?? ?+-----------------------------------------------------------------------+
?? ?| 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?+-----------------------------------------------------------------------+
輸入前面對應的字母即可進入相應的選項。將選項A的值設置為/dev/ttyS0 表示是串口1,將選項E的值設置為115200,將選項F設置為NO(請根據實際情況配置).
?? ? 設置默認上傳/下載的目錄, 選擇Filenames and paths ?, 會看到這樣的選項:
?? ?+-----------------------------------------------------------------------+
?? ?| 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
?? ?+-----------------------------------------------------------------------+
注意:開發板發送給pc的文件將保存在Download directory所設定的目錄中,而pc要下載到開發板的文件保存在Upload directory所設定的目錄中
?? ? 設置完成后, 選擇”Save setup as dfl”, 保存為默認設置.
然后選擇“Exit”,即可進入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來發送文件給開發板;而用CTRL-A r來接收開發板上的文件
二、為pc安裝lrzsz
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols.
lingd@ubuntu:~$? sudo apt-get install lrzsz
三、交叉編譯lrzsz并下載到開發板上
1、下載lrzsz源碼包
到http://download.chinaunix.net/download/0007000/6293.shtml,下一個lrzsz的tar包,
2、解壓縮后,到解壓目錄中執行./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
有三個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
將這三個Makefile中的所有gcc替代成你開發板所需要的交叉編譯器,如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目錄下會生成兩個可執行文件lsz、lrz(或者sz、rz),把它們下載到開發板linux系統的/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、開發板-->PC機
在開發板上輸入 ?lsz filename ,然后會出現一個傳輸界面,傳輸完成后可以在你設置的默認下載目錄Download directory里找到這個文件。
2、PC機-->開發板
在開發板上先進入/tmp 目錄,然后輸入lrz。
# cd /tmp
# lrz ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?z waiting to receive.**B0100000023be50
按Ctrl-A,再按s,選擇zmoden,會出現一個選擇文件的界面,選擇你要傳輸的文件(按一下空格鍵選擇目錄,按兩下空格鍵進入目錄),回車后出現一個傳輸界面,傳輸完成后,便可以在開發板的/tmp目錄下找到這個文件了。
?
轉自:http://www.cnblogs.com/wanqieddy/archive/2011/07/14/2106087.html

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


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

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

【本文對您有幫助就好】

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

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 成人嘿嘿视频网站在线 | 亚洲日韩在线视频 | 一级@片 | 日日天天 | 一级做一级爱a做片性视频视频 | 中文在线一区二区 | 逼逼网 | 免费黄色av | 成人一区二区三区在线 | 久久美乳| 国产日韩精品一区 | 国产精品久久久久久久久免费相片 | 亚洲一区二区三区中文字幕 | 色综合天天综合网国产成人网 | 天天摸夜夜摸夜夜狠狠摸 | 国产在线精品成人一区二区三区 | 久久精品久久久久久 | 91欧美精品综合在线观看 | 亚洲激情一区 | 久久国产精品久久久久久久久久 | 夜夜操狠狠操 | 欧美日韩在线免费观看 | 一区二区日韩 | 婷婷在线视频 | 青草福利 | 国产vr一区二区在线观看 | 久草视频免费在线看 | 福利影院在线看 | 亚洲一区二区三区四区五区中文 | 亚洲国产精品久久久久网站 | 天天影院免费看电影 | 6080yy免费毛片一级新视觉 | 2021最新国产精品一区 | se就是色94欧美setu | 久草久草久草久草 | 国产激情偷乱视频一区二区三区 | 一级黄色毛片子 | 一级毛片免费播放视频 | 起视碰碰97摸摸碰碰视频 | 国产精品字幕 | 哥斯拉大战金刚2在线观看免费完整版 |