EasyManua.ls Logo

Phytec i.MX 93 - Development; Host Network Preparation

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER
FIVE
DEVELOPMENT
5.1 Host Network Preparation
For various tasks involving a network in the Bootloader, some host services are required to be set up. On the
development host, a TFTP, NFS and DHCP server must be installed and congured. The following tools
will be needed to boot via Ethernet:
host:~$ sudo apt install tftpd-hpa nfs-kernel-server kea
5.1.1 TFTP Server Setup
First, create a directory to store the TFTP les:
host:~$ sudo mkdir /srv/tftp
Then copy your BSP image les to this directory and make sure other users have read access to all the
les in the tftp directory, otherwise they are not accessible from the target.
host:~$ sudo chmod -R o+r /srv/tftp
You also need to congure a static IP address for the appropriate interface. The default IP address
of the PHYTEC evaluation boards is 192.168.3.11. Setting a host address 192.168.3.10 with netmask
255.255.255.0 is a good choice.
host:~$ ip addr show <network-interface>
Replace <network-interface> with the network interface you congured and want to connect the board
to. You can show all network interfaces by not specifying a network interface.
The message you receive should contain this:
inet 192.168.3.10/24 brd 192.168.3.255
Create or edit the /etc/default/tftpd-hpa le:
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="-s -c"
Set TFTP_DIRECTORY to your TFTP server root directory
23