This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to configure OMAP35X EVM IP address?

I am trying to set up the IP address on the OMAP35X EVM and I think it uses DHCP to set its IP automatically.

My board is connected to a windows system through a serial port and I'm using teraterm to give commands right now. I am new to OMAP so I want to know how do I turn off DHCP setting in the OMAP EVM and set its IP address to what I want it to be.

Thanks!

  • By default the board will be using DHCP for IP addressing, though you can change this by modifying your U-Boot environment variables, in particular the ip= portion of the bootargs variable. There is an old application note that gives an example static IP configuration for a Davinci platform that will be usable here as well (at least the ip= portion). For details on the configuration this website has a more detailed description of what is being done with the static IP configuration with ip=.

    Basically you will end up putting your network configuration in your bootargs with the ip= option of the form ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off where you have to define the various values based on your own network configuration.

    Once the kernel is booted you could change the network configuration in a more traditional fashion using the ifconfig command.

  • Thank you so much Bernie!

    I tried what you told me and I managed to change the ipaddr. Also, if I want to change the MAC address as well, can I do a similar thing in U-boot? 

     

  • For networking within U-Boot you should be able to specify the MAC address with the ethaddr environment variable, for example:

    setenv ethaddr 00:11:22:33:44:55:66

    However I am not sure that MAC address is something you can pass into the kernel as a boot argument (or that the ethaddr set above will propagate to the kernel), I do know you can change the MAC address at run time from the Linux command prompt using ifconfig, for example:

    ifconfig eth0 hw ether 00:11:22:33:44:55:66

    If you or someone else can find a better way to do that please post in this thread.