Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15337702
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类: LINUX

2010-05-23 10:01:27

根据modem所采用的文件传输协议:xmodem,ymodem,zmodem将其分类 
xmodem:简单通用,传输信息单位是“包=128B”,传输速度慢,适合电话线路质量差的情况下用 
ymodem:由XMODEM演变来,效率可靠性高,包=128*8B;一次传输可发送或接受几个文件 
zmodem:于上两种不同,已连续的数据流发送数据,效率更高[摘自http://www.ilebon.net/blog/?7/viewspace-54]
下载lrzsz-0.12.20.tar.gz源码
文件:lrzsz-0.12.20.tar.gz
大小:274KB
下载:下载





luther@gliethttp:~/lrzsz-0.12.20$ ./configure --host=arm-linux
luther@gliethttp:~/lrzsz-0.12.20$ make CC=arm-linux-gcc 编译成使用动态库的程序
luther@gliethttp:~/lrzsz-0.12.20$ make CC=arm-linux-gcc LDFLAGS=-static 编译与库无关的完全独立程序
luther@gliethttp:~/lrzsz-0.12.20$ ll src/*z
-rwxr-xr-x 1 luther luther 788K 2010-05-23 09:54 src/lrz
-rwxr-xr-x 1 luther luther 781K 2010-05-23 09:54 src/lsz

拷贝到开arm发板上
-------
直接输入lrz回车,默认使用zmodem传输,所以这也是我们最希望的方式,因为它最快.
lrz -X 使用xmodem
lrz -Y 使用ymodem
-------
[root@(none) /root]#lrz --help
lrz version 0.12.20
Usage: lrz [options] [filename.if.xmodem]
Receive files with ZMODEM/YMODEM/XMODEM protocol
    (X) = option applies to XMODEM only
    (Y) = option applies to YMODEM only
    (Z) = option applies to ZMODEM only
  -+, --append                append to existing files
  -a, --ascii                 ASCII transfer (change CR/LF to LF)
  -b, --binary                binary transfer
  -B, --bufsize N             buffer N bytes (N==auto: buffer whole file)
  -c, --with-crc              Use 16 bit CRC (X)
  -C, --allow-remote-commands allow execution of remote commands (Z)
  -D, --null                  write all received data to /dev/null
      --delay-startup N       sleep N seconds before doing anything
  -e, --escape                Escape control characters (Z)
  -E, --rename                rename any files already existing
      --errors N              generate CRC error every N bytes (debugging)
  -h, --help                  Help, print this usage message
  -m, --min-bps N             stop transmission if BPS below N
  -M, --min-bps-time N          for at least N seconds (default: 120)
  -O, --disable-timeouts      disable timeout code, wait forever for data
      --o-sync                open output file(s) in synchronous write mode
  -p, --protect               protect existing files
  -q, --quiet                 quiet, no progress reports
  -r, --resume                try to resume interrupted file transfer (Z)
  -R, --restricted            restricted, more secure mode
  -s, --stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds
  -S, --timesync              request remote time (twice: set local time)
      --syslog[=off]          turn syslog on or off, if possible
  -t, --timeout N             set timeout to N tenths of a second
  -u, --keep-uppercase        keep upper case filenames
  -U, --unrestrict            disable restricted mode (if allowed to)
  -v, --verbose               be verbose, provide debugging information
  -w, --windowsize N          Window is N bytes (Z)
  -X  --xmodem                use XMODEM protocol
  -y, --overwrite             Yes, clobber existing file if any
      --ymodem                use YMODEM protocol
  -Z, --zmodem                use ZMODEM protocol

short options use the same arguments as the long ones

阅读(9432) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

2011-05-22 15:22:50

学习了,多谢楼主分享哦!也欢迎广大linux爱好者来我的论坛一起讨论arm哦!www.lt-net.cn

chinaunix网友2010-06-17 23:09:17

mbt lami shoes mbt lami shoe MBT Shoes on sale!If you are looking for nike air max 2010 and kobe shoes. I will tell you that MBT Shoes is well-known for its positive effect to human body.