Error DHCP on interface 'eth0' failed. in Version 63

Help with booting MiniMyth

Moderator: Pablo

Post Reply
wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Error DHCP on interface 'eth0' failed. in Version 63

Post by wroopy » Sat Jan 10, 2009 8:56 pm

Hi!

Just tried to use version 63 and I'm using nfs-minimyth-0.21.0-63 and have MM_DHCP_HOSTNAME specified on the command-line.

When booting I get;
Error DHCP on interface 'eth0' failed.

In /var/log/udhpc I get;
sh: -q: not found

I solved the problem by commenting out line 80 in dhcp.pm
# $command = $command . ' ' . qq(-q);

When looking at the parameters udhcp is handling, -q is not mentioned.

/Andreas

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Error DHCP on interface 'eth0' failed. in Version 63

Post by Pablo » Sun Jan 11, 2009 1:17 am

wroopy wrote:Hi!

Just tried to use version 63 and I'm using nfs-minimyth-0.21.0-63 and have MM_DHCP_HOSTNAME specified on the command-line.

When booting I get;
Error DHCP on interface 'eth0' failed.

In /var/log/udhpc I get;
sh: -q: not found
Thank you for taking the time to troubleshoot this.

It appears that the problem is that the variable $ip_address ends with a new-line. Since the '-q' follows the $ip_address parameter, '-q' is being treated as the start of a new command rather than a parameter of the udhcpc command.

I have fixed this. The fix will be in the next build.
When looking at the parameters udhcp is handling, -q is not mentioned.
MiniMyth uses busybox's udhcpc DHCP client. For this client, '-q' means run once and quit. You can see the parameters by running 'udhcpc --help' in a MiniMyth frontend telnet window.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Sun Jan 11, 2009 2:17 am

Could you let me know whether or not 0.21.0-64b1-nvidia.180.22 fixes the problem?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Sun Jan 11, 2009 8:37 pm

Pablo wrote:Could you let me know whether or not 0.21.0-64b1-nvidia.180.22 fixes the problem?
It works fine in 0.21.0-64b1-nvidia.180.22. Thank you!

/Andreas

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Mon Jan 12, 2009 12:42 am

I am glad the fix worked. Thank you for letting me know.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply