[ipxe-devel] DHCP configuring error 0x40ee186

Robin Smidsrød robin at smidsrod.no
Sun Apr 26 07:36:32 UTC 2015


On 21.01.2015 12:00, Ricardo Ribalda Delgado wrote:
> 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 :)

Most likely your network is using STP and you're getting timeouts
because it takes a long time to get the link up. A patch was released a
little while ago that allows you to modify the DHCP timeout parameters.
You might have better luck with that approach.

-- Robin




More information about the ipxe-devel mailing list