
Arcom Embedded Linux Technical Manual Developing software for AEL
To receive files from the host system on the target system, use the rz, rb or rx utilities.
The rz and rb utilities do not take any parameters, while the rx utility requires you to
give the name of the file to be received.
To transmit files from the target to the host system, use the sz, sb or sx utilities. The sz
and sb utilities can take any number of files to send as parameters, while the sx utility
can only transmit a single file.
Once you have started a utility on the target system, initiate the appropriate type of file
transfer from the terminal emulator on your host. To do this in minicom, press Ctrl-A
followed by S to send or Ctrl-A followed by R to receive.
Extracting an image of the on-board Flash
An image can be extracted from the on-board Flash and sent via an Ethernet
connection to a host system using the netcat tool (nc).
If you intend to download the image to other target devices, remove the SSH
cryptographic keys before taking an image. Otherwise, all of your targets will
have the same private keys, which is a security risk. The SSH keys are stored
in /etc/ssh in the following files:
ssh_host_dsa_key
ssh_host_dsa_key.pub
ssh_host_rsa_key
ssh_host_rsa_key.pub
ssh_host_key
ssh_host_key.pub
A unique new set of keys is generated on each board the first time it is booted.
For example, to extract the first Flash partition from a board to a host with IP address
192.168.1.5, follow these steps:
1 Start a netcat process on the host system listening on a port (4000 in this
example) by entering:
$ nc –l –p 4000 > Flash0.img
2 Extract the Flash image and send it to the host system by running the following on
the target system you want to take an image of:
# dd if=/dev/mtdblock0 | nc 192.168.1.5 4000
If you want to take an image of the entire Flash device, rather than just individual
partitions, you can repeat the above procedure for each Flash partition.
A complete list of the Flash partitions on your board is provided in the special
file /proc/mtd.
© 2006 Arcom Issue G 53
Comentarios a estos manuales