[ipxe-devel] DHCP configuring error 0x40ee186

Ricardo Ribalda Delgado ricardo.ribalda at gmail.com
Wed Jan 21 11:00:40 UTC 2015


Hi

I have tried to reply to this thread, but it seems that the forum does
not like me :)
http://forum.ipxe.org/showthread.php?tid=7567

Therefore I copy the reply to the old good analog mailing list :)


Hello. I am having the same issue with 8086150e.efi and ipxe.efi using
the latest version

d38bac05e7d0eb67fc19f3532a6b4fa00804106e [build] Include Hyper-V
driver in the all-drivers build

This patch fix the issue for me.

[code]

diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index 47476ae..9f243a4 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -360,9 +360,16 @@ int netboot ( struct net_device *netdev ) {
                goto err_ifopen;
        ifstat ( netdev );

+       if ( ( rc = ifconf ( netdev, NULL ) ) == 0 )
+               goto ok_dhcp;
+
+       netdev_close ( netdev );
+
        /* Configure device */
        if ( ( rc = ifconf ( netdev, NULL ) ) != 0 )
                goto err_dhcp;
+
+ok_dhcp:
        route();

        /* Try PXE menu boot, if applicable */
[/code]

For me the error was the following:

Press ctrl+b on boot
ifconf net0 #: 90%of the times this fails
(ifstat shows TX4 TEX0 RX 0 RXE0)
ifconf net0 # So far it has never failed on 2nd attempt
ifconf net0: # So far it has never failed on 3rd or more attempt

The patch is just was is working for me, it is not ment to be merged :)


Cheers





-- 
Ricardo Ribalda



More information about the ipxe-devel mailing list