Configure DevKit Network

By default, the DevKit network interfaces use DHCP configuration.

  • If you want to connect the DevKit directly to your computer, configure your computer’s network interface with a static IP and connect it directly to the DevKit.

  • If you want the DevKit to obtain its IP address automatically from a network, you will need to configure the interface to use DHCP.

Checking the current IP address

From the serial console, run:

davinci:~$ networkctl status
*        State: routable
Online state: partial
Address: 192.168.1.20 on end0
Gateway: 192.168.1.10 on end0

Note

Configuring the network in U-Boot ensures the network settings persist across firmware upgrades.

  1. Connect to the DevKit via UART and serial terminal.

  2. Reboot the DevKit.

  3. Press any key to enter U-Boot when prompted with the message, Hit any key to stop autoboot.

  4. To switch to static IP, enter the following commands below:

    sima:~$ env set forcenetcfg static; saveenv
    sima:~$ boot
    
  5. The board will reboot and use 192.168.1.20 and 192.168.2.20 for the first and second ethernet port.

  6. To modify the board’s static IP address, edit the network file using the vi command after the device is booted.

    davinci:~$ sudo vi /etc/systemd/network/20-end0-static.network
    
  7. In the Network section, update the IP address as needed.

  8. To configure DHCP mode, enter the commands below and boot up the board.

    sima:~$ env set forcenetcfg dhcp; saveenv
    sima:~$ boot