Difference between revisions of "Serial Transfer"
(→Usage) |
(→Installation) |
||
Line 18: | Line 18: | ||
[user@toto]$ make | [user@toto]$ make | ||
Check that '''rz''' and '''sz''' executables are present in your RootFS and, if not, copy them to there: | Check that '''rz''' and '''sz''' executables are present in your RootFS and, if not, copy them to there: | ||
− | [user@toto]$ cp ./ | + | [user@toto]$ cp ./project_build_arm/armadeus/lrzsz-0.12.20/src/lsz ./project_build_arm/armadeus/root/usr/bin/sz |
end then rebuild your RootFS: | end then rebuild your RootFS: | ||
[user@toto]$ make | [user@toto]$ make |
Revision as of 00:14, 19 December 2007
Instructions to use the serial port of your Armadeus board to communicate with your PC
Contents
Introduction
When you only have a serial link (RS232/USB) as connection with your devt PC (ie no Ethernet available), then you can use Zmodem protocol to send/receive files to/from your Armadeus board.
Installation
- Target:
Modify your Buildroot configuration:
[user@toto]$ make menuconfig
and then rebuild your RootFS
[user@toto]$ make
Check that rz and sz executables are present in your RootFS and, if not, copy them to there:
[user@toto]$ cp ./project_build_arm/armadeus/lrzsz-0.12.20/src/lsz ./project_build_arm/armadeus/root/usr/bin/sz
end then rebuild your RootFS:
[user@toto]$ make
- Host:
Install lrzsz package, if not already installed on your system. For example on Ubuntu/Debian:
[root@toto]# apt-get install lrzsz
Usage
You must use minicom as serial terminal and not kermit for the moment sorry ! :-(
Be sure to have correctly configured Minicom: line speed, 8N1, no control, and correct download/upload directories path.
After having booted your Armadeus system, launch rz for receiving and sz to send files:
- On your Target, open a new terminal:
# /sbin/getty -L ttygserial 115200 vt100
- On your Host, launch Minicom and configure it to use /dev/ttyUSB1 at 115200, then connect it to this terminal
- Host --> Target
# cd /whereToPutTheFileOnTheTarget/ # rz -bZ .. waiting to receive.
then in minicom do: Ctrl+A , s and choose zmodem protocol and the file to send.
Wait a little and your file will be copied to your board rootfs ! ;-)
- Target --> Host
# cd /whereIsTheFileToSendOnTheTarget/ # sz -b --zmodem filename
Minicom handles the file receiving automatically (put it in your $HOME by default)