Embeded Linux device fails to get DHCP

1

1

I'm trying to get an embedded Linux device to use DHCP to get it's IP. I think it is trying, this is from the boot output:

Configuring network interfaces: cat: can't open '/var/run/udhcpc.eth0.pid': No such file or directory
udhcpc (v1.15.3) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
failed

Earlier in the output there is also:

IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.1, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.0.1, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=

Which in not correct, the IP should be in 192.168.3.*.

I can get it to get an IP by running udhcpc and then unplugging and replugging the network cable, but that obviously isn't a solution.

Full Boot Output: http://pastebin.com/ztEDNrRR

Azdle

Posted 2012-10-18T17:29:09.417

Reputation: 141

The unwanted "192.168.0.1" IP address is being passed into the kernel on the kernel command line. That text originates from the bootargs environment variable in U-Boot. Perhaps you should revise that variable and remove that item. – sawdust – 2012-10-18T19:24:46.120

No answers