Re: [edk2] Problems with DHCP client on Toolkit

Subject: Re: [edk2] Problems with DHCP client on Toolkit

From: Daniel Moral <daniel.moral@ericsson.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2011-07-13 22:54:27

Hi, I think the problem is in the dhcp-script but I do not really what is it or how to fix it, I am using the standard dhcp-script which comes with the Toolkit and this is the output:
 
fs0:\> load DHCLIENT.EFI
\dcseDGECL.nsh> echo on
\dcseDGECL.nsh> set -v interface sni1
\dcseDGECL.nsh> set -v reason PREINIT
\dcseDGECL.nsh> \dhcp-script.nsh
+\dhcp-script.nsh> set -v LOGGER echo
+\dhcp-script.nsh> if not x == x then
+\dhcp-script.nsh> if not x == x then
+\dhcp-script.nsh> if PREINIT == FAIL then
+\dhcp-script.nsh> if PREINIT == PREINIT then
+\dhcp-script.nsh> ifconfig sni1 inet 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
rtinit: wrong ifa (0x24e4918) was (0x24e4418)
+\dhcp-script.nsh> route add -host 255.255.255.255 -interface sni1
add host 255.255.255.255: gateway sni1
+\dhcp-script.nsh> goto exit_with_hooks
+\dhcp-script.nsh> set -d LOGGER
\dcsYlJncD.nsh> echo on
\dcsYlJncD.nsh> set -v interface sni0
\dcsYlJncD.nsh> set -v reason PREINIT
\dcsYlJncD.nsh> \dhcp-script.nsh
+\dhcp-script.nsh> set -v LOGGER echo
+\dhcp-script.nsh> if not x == x then
+\dhcp-script.nsh> if not x == x then
+\dhcp-script.nsh> if PREINIT == FAIL then
+\dhcp-script.nsh> if PREINIT == PREINIT then
+\dhcp-script.nsh> ifconfig sni0 inet 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
ifconfig: ioctl (SIOCAIFADDR): File exists
+\dhcp-script.nsh> route add -host 255.255.255.255 -interface sni0
add host 255.255.255.255: gateway sni0
+\dhcp-script.nsh> goto exit_with_hooks
+\dhcp-script.nsh> set -d LOGGER
Listening on Socket/sni1
Sending on   Socket/sni1
The standard socket API can only support hosts with a single network interface.
exiting.
load: Image fs0:\DHCLIENT.EFI error - Unload Image
 
Thanks
 
BR
 
Daniel


From: Daniel Moral [mailto:daniel.moral@ericsson.com]
Sent: den 13 juli 2011 10:43
To: efidevkit-devel@lists.sourceforge.net; edk2-devel@lists.sourceforge.net
Subject: [edk2] Problems with DHCP client on Toolkit

 
Hi all, I am following the instructions to set up the network stack using EFI Toolkit, so I first load the TCPIP driver, which goes ok:
 
fs0:\> load TCPIPV4.EFI
Interface attached to lo0
Interface attached to sni0
Interface attached to sni1
Interface attached to ppp0
Timecounter "TcpIpv4"  frequency 18 Hz
Network protocol loaded and initialized
load: Image fs0:\TCPIPV4.EFI loaded at 251E000 - Success
 
But then I got this
 
fs0:\> load DHCLIENT.EFI
\dcsVLtpLi.nsh> echo -off
add host 255.255.255.255: gateway sni1
\dcsQqRtfz.nsh> echo -off
ifconfig: ioctl (SIOCAIFADDR): File exists
add host 255.255.255.255: gateway sni0
Listening on Socket/sni1
Sending on   Socket/sni1
The standard socket API can only support hosts with a single network interface.
exiting.
load: Image fs0:\DHCLIENT.EFI error - Unload Image
 
Anyone knows what could be the problem? I have 2 ethernet interfaces, the one conected to the DHCP server is eth0 (sni0) and I do not know what is the problem.
 
Thank you