Fix an error in the ordering of fields in zm_transition_s structure; update documentation

This commit is contained in:
Gregory Nutt
2013-07-14 12:34:45 -06:00
parent cee9f6d4b4
commit aad86e1450
+54 -22
View File
@@ -1097,35 +1097,67 @@ Where <subdir> is one of the following:
Hmmm.. I probably should set up an NSH script to just mount /dev/mmcsd0
at /mnt/sdcard each time the board boots.
This program has been verified against the rzsz programs running on a
Linux PC. To send a file to the PC, first make sure that the serial
port is configured to work with the board:
3. Sending Files from the Target to the Linux Host PC
$ sudo stty -F /dev/ttyS0 57600
$ sudo stty -F /dev/ttyS0
This program has been verified against the rzsz programs running on a
Linux PC. To send a file to the PC, first make sure that the serial
port is configured to work with the board:
start rz on the Linux host:
$ sudo stty -F /dev/ttyS0 57600
$ sudo stty -F /dev/ttyS0
$ sudo rz </dev/ttyS0 >/dev/ttyS0
Start rz on the Linux host:
You can add the rz -v option multiple times, each increases the level
of debug output.
$ sudo rz </dev/ttyS0 >/dev/ttyS0
NOTE: The NuttX Zmodem does sends rz\n when it starts in compliance with
the Zmodem specification. On Linux this, however, seems to start some
other, incompatible version of rz. You need to start rz manually to
make sure that the correct version is selected. You can tell when this
evil rz/sz has inserted itself because you will see the '^' (0x5e)
character replacing the standard Zmodem ZDLE character (0x19) in the
binary data stream.
You can add the rz -v option multiple times, each increases the level
of debug output.
If you don't have the rz command on your Linux box, the package to
install rzsz (or possibily lrzsz).
NOTE: The NuttX Zmodem does sends rz\n when it starts in compliance with
the Zmodem specification. On Linux this, however, seems to start some
other, incompatible version of rz. You need to start rz manually to
make sure that the correct version is selected. You can tell when this
evil rz/sz has inserted itself because you will see the '^' (0x5e)
character replacing the standard Zmodem ZDLE character (0x19) in the
binary data stream.
Then on the target:
If you don't have the rz command on your Linux box, the package to
install rzsz (or possibily lrzsz).
> sz -d /dev/ttyS1 <filename>
Then on the target:
Where filename is the full path to the file to send (i.e., it begins
with the '/' character).
> sz -d /dev/ttyS1 <filename>
Where filename is the full path to the file to send (i.e., it begins
with the '/' character).
4. Receiving Files on the Target from the Linux Host PC
To send a file to the target, first make sure that the serial port on
the host is configured to work with the board:
$ sudo stty -F /dev/ttyS0 57600
$ sudo stty -F /dev/ttyS0
Start rz on the on the target:
nsh> rz -d /dev/ttyS1
Then use the sz command on Linux to send the file to the target:
$ sudo sz <filename> t </dev/ttyS0 >/dev/ttyS0
Where <filename> is the file that you want to send.
The resulting file will be found where you have configured the Zmodem
"sandbox" via CONFIG_SYSTEM_ZMODEM_MOUNTPOINT, in this case at
/mnt/sdcard.
You can add the az -v option multiple times, each increases the level
of debug output. If you want to capture the Linux rz output, then
re-direct stderr to a log file by adding 2>az.log to the end of the
rz command.
If you don't have the az command on your Linux box, the package to
install rzsz (or possibily lrzsz).