I'm using XMODEM to transfer a binary file from an Ubuntu VM to an embedded Linux target, like so:
$ sudo screen /dev/ttyUSB0 115200
$ rx test
CTRL-A:
$ exec !! sx -b test
Now, "test" transfers successfully, but when I inspect it on both the VM and the target, I get the following:
- VM: Size = 22938 bytes
- Target: Size = 23040 bytes
In addition, the permissions are reduced on the target.
Why is this, and how can I ensure the file transferred is the same as the source?