Setting a Static IP Address¶
NFS Mounted File System¶
- 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.
- 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.
- 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.
- Once bootargs is modified type 'saveenv' to save the environment variables and reboot.
MMC/SD Card or NAND File System¶
- Open /etc/network/interfaces on the MityOMAP rootfs in a text editor.
- Comment out 'iface eth0 inet dhcp' by adding a '#' in front of it.
- Then add (substituting in your desired settings):
iface eth0 inet static address 192.168.1.5 netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.254 dns-nameserver XXX.XXX.XXX.XXX
- Save the file and reboot.
Go to top