i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
• Set TFTP_ADDRESS to the host address the server is listening to (set to 0.0.0.0:69 to listen to all
local IPs)
• Set TFTP_OPTIONS, the following command shows the available options:
host:~$ man tftpd
• Restart the services to pick up the conguration changes:
host:~$ sudo service tftpd-hpa restart
Now connect the ethernet port of the board to your host system. We also need a network connection
between the embedded board and the TFTP server. The server should be set to IP 192.168.3.10 and
netmask 255.255.255.0.
NFS Server Setup
• Create an nfs directory:
host:~$ sudo mkdir /srv/nfs
• The NFS server is not restricted to a certain le system location, so all we have to do on most
distributions is modify the le /etc/exports and export our root le system to the embedded network.
In this example le, the whole directory is exported and the “lab network” address of the development
host is 192.168.3.10. The IP address has to be adapted to the local needs:
/srv/nfs 192.168.3.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
• Now the NFS-Server has to read the /etc/exportfs le again:
host:~$ sudo exportfs -ra
DHCP Server setup
• Create or edit the /etc/kea/kea-dhcp4.conf le; Using the internal subnet sample. Replace <network-
interface> with the name for the physical network interface:
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [ "<network-interface>/192.168.3.10" ]
},
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/tmp/dhcp4.leases"
},
"valid-lifetime": 28800,
"subnet4": [{
"id": 1,
"next-server": "192.168.3.10",
"subnet": "192.168.3.0/24",
"pools": [
{ "pool": "192.168.3.1 - 192.168.3.255" }
]
(continues on next page)
Development 24