ZMODEM for the Intel Sitsang

The Linux installation provided on the Intel Sitsang lacks the standard rz and sz commands, which are useful for transferring small files over the serial port using the ZMODEM protocol.

The rz and sz binaries are compiled from the version 0.12.20 of the lrzsz package. The source code is available on the lrzsz web site. The binaries should be placed in the /usr/local/bin/ directory of the Sitsang and may be downloaded here.


Installation

Initially transferring the binaries to the Sitsang may be difficult, since the only file transfer software initially installed on the Sitsang is wget, an HTTP/FTP client. If a network connection is available, the network may be configured using Section 2.4 of the Sitsang/PXA255 Evaluation Platform Linux User's Guide, and the binaries may be installed as such:

[root@Sitsang2 root]$ wget http://www.cc.gatech.edu/~lcs/sitsang/zmodem/lrzsz.tgz
[root@Sitsang2 root]$ gzip -d lrzsz.tgz
[root@Sitsang2 root]$ tar xvf lrzsz.tar
[root@Sitsang2 root]$ mv rz sz /usr/local/bin/

However, if a network connection is not available, the binaries may be sent to the Sitsang using uuencode. Download the uuencoded version of the lrzsz binaries here, then configure minicom to send files using ASCII by pressing CTRL+A then O, select "File transfer protocols", and set the ascii protocol command to: /usr/bin/ascii-xfr -dsv -nl 150. Then, on the Sitsang:

[root@Sitsang2 root]$ cat > rz.uu
<Send rz.uu> <CTRL+C>
[root@Sitsang2 root]$ cat > sz.uu
<Send sz.uu> <CTRL+C>
[root@Sitsang2 root]$ uudecode rz.uu
[root@Sitsang2 root]$ uudecode sz.uu
[root@Sitsang2 root]$ mv rz sz /usr/local/bin/

Last Modified: 8/16/04 by lcs@cc
Return to Intel Sitsang Resources | Leo Singleton