Difference between revisions of "Serial Transfer"

From ArmadeusWiki
Jump to: navigation, search
(typo)
(add lrzsz install)
Line 7: Line 7:
 
==Installation==
 
==Installation==
  
when you build your root filessytem with buildroot, then modify your configuration:
+
* Target:
 +
when you build your root filesystem with buildroot, then modify your configuration:
 
  [user@toto]$ make menuconfig
 
  [user@toto]$ make menuconfig
 
to add lrzsz package and then rebuild your rootfs
 
to add lrzsz package and then rebuild your rootfs
Line 15: Line 16:
 
end then rebuild your rootfs
 
end then rebuild your rootfs
 
  [user@toto]$ make
 
  [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==
 
==Usage==

Revision as of 18:43, 3 November 2006

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

Introduction

When you only have a serial link (RS232) 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:

when you build your root filesystem with buildroot, then modify your configuration:

[user@toto]$ make menuconfig

to add lrzsz package and then rebuild your rootfs

[user@toto]$ make

Check that lrz and lsz executable 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/

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 lrz for receiving and lsz to send files:

  • Host --> Target
# cd /whereToPutTheFile/
# lrz -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
# lsz -b --zmodem filename

TBDL

Links