GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
To copy the target’s
/usr/bin/myapp
file back to the host’s current working directory, type:
$ scp [email protected]:/usr/bin/myapp ./myapp
3.3
Telnet console
Telnet can be used to access the console. Please note that Telnet must be installed on the host system in order
to gain access.
To login via Telnet, type on the host system:
$ telnet 192.168.1.1
The login prompt appears and you can login with username and password:
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
santaro login: root
Password: [Enter password]
root@santaro:~#
3.4
Uploading files with TFTP
You can copy files from the host system to the target system using the target’s TFTP client. Please note that
a TFTP server has to be installed on the host system. Usually, a TFTP server can be installed on every Linux
distribution. To install the TFTP server under Debian based systems with apt, the following command must be
executed on the host system:
$ sudo apt-get install xinetd tftpd tftp
The TFTP server must be configured as follows in the
/etc/xinetd.d/tftpd
file on the host system in order to
provide the directory
/srv/tftp
as TFTP directory:
service tftp
{
protocol
= udp
port
= 69
socket_type
= dgram
wait
= yes
user
= nobody
server
= /usr/sbin/in.tftpd
server_args
= /srv/tftp
disable
= no
}
The
/srv/tftp
directory must be created on the host system with the following commands:
$ sudo mkdir /srv/tftp
$ sudo chmod -R 777 /srv/tftp
$ sudo chown -R nobody /srv/tftp
After the above modification the xinetd must be restarted on the host system with the new TFTP service with the
following command:
$ sudo service xinetd restart
From now on, you can access files in this directory from the target.
Example:
Copying the file
myapp
from the host system to the target’s
/usr/bin
directory. To achieve this, first
copy the file
myapp
to your TFTP directory on the host system:
12