Serial Transfer: Difference between revisions

From ArmadeusWiki
Line 30: Line 30:
You must use minicom as serial terminal and not kermit for the moment sorry ! :-( <br>
You must use minicom as serial terminal and not kermit for the moment sorry ! :-( <br>
Be sure to have correctly configured Minicom: line speed, 8N1, no control, and correct download/upload directories path.<br>
Be sure to have correctly configured Minicom: line speed, 8N1, no control, and correct download/upload directories path.<br>
After having booted your Armadeus system, launch '''lrz''' for receiving and '''lsz''' to send files:
After having booted your Armadeus system, launch '''rz''' for receiving and '''sz''' to send files:


* Host --> Target
* Host --> Target
  # cd /whereToPutTheFile/
  # cd /whereToPutTheFile/
  # lrz -bZ
  # rz -bZ
then in minicom do: '''Ctrl+A , s''' and choose zmodem protocol and the file to send. <br>
then in minicom do: '''Ctrl+A , s''' and choose zmodem protocol and the file to send. <br>
Wait a little and your file will be copied to your board rootfs ! ;-)
Wait a little and your file will be copied to your board rootfs ! ;-)


* Target --> Host
* Target --> Host
  # lsz -b --zmodem filename
  # sz -b --zmodem filename


==TBDL==
==TBDL==

Revision as of 00:31, 30 November 2007

Instructions to use the serial port of your Armadeus board to communicate with your PC

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

to add lrzsz package:
Menuconfig package.png

Menuconfig package net.png

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 ./build_arm_nofpu/lrzsz-0.12.20/src/lsz ./build_arm_nofpu/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:

  • Host --> Target
# cd /whereToPutTheFile/
# rz -bZ

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
# sz -b --zmodem filename

TBDL

Links