Setting a Static IP Address

NFS Mounted File System

  1. First you need to break into U-Boot. This can be accomplished by connecting a serial cable to the unit, rebooting and pressing any key before the 'Hit any key to stop autoboot:' timer counts down to zero.
  2. Once in U-Boot type 'print bootargs' to print the current system boot arguments. Save this (i.e. in a text file or under a different environment variable (i.e. 'saveenv bootargs_backup $bootargs')) in case this accidentally gets corrupt.
  3. Next you'll want to edit bootargs so that ip={ ipaddr }:{ serverip }:{ gatewayip }:{ netmask }:{ hostname }::off, where you set ipaddr, serverip, gatewayip, netmask, and hostname to desired values.
  4. Once bootargs is modified type 'saveenv' to save the environment variables and reboot.

MMC/SD Card or NAND File System

  1. Open /etc/network/interfaces on the MityOMAP rootfs in a text editor.
  2. Comment out 'iface eth0 inet dhcp' by adding a '#' in front of it.
  3. Then add (substituting in your desired settings):
    iface eth0 inet static
        dns-nameserver XXX.XXX.XXX.XXX
  4. Save the file and reboot.

Go to top
Add picture from clipboard (Maximum size: 600 MB)