Re: iPXE isnt able to get link status from my oprom driver, but PXE works.


udai sharma <udai16787@...>
 

Hi Michael,
I am unable to break into iPXE shell (using Ctrl+B).

I could capture the below log from the serial console.

>Checking Media Presence......
>>Media Present......
>>Start PXE over IPv4.
Station IP address is 102.90.90.195

Server IP address is 102.90.90.48
NBP filename is ipxe.efi
NBP filesize is 987744 Bytes
>>Checking Media Presence......
>>Media Present......
Downloading NBP file...

Succeed to download NBP file.
iPXE initialising devices...ok



iPXE 1.20.1+ (gb6e2e) -- Open Source Network Boot Firmware -- http://ipxe.org
Features: DNS HTTP iSCSI TFTP SRP AoE EFI Menu

Press Ctrl-B for the iPXE command line...
net2: 00:07:43:29:46:40 using NII on NII-0000:02:00.0 (open)
[Link:down, TX:0 TXE:0 RX:0 RXE:0]
[Link status: Unknown (http://ipxe.org/1a086194)]
Configuring (net2 00:07:43:29:46:40)............. ok
net0: fe80::ec4:7aff:fe6c:623e/64 (inaccessible)
net1: fe80::ec4:7aff:fe6c:623f/64 (inaccessible)
net2: 102.90.90.96/255.255.255.0 gw 102.90.90.1
net2: fe80::207:43ff:fe29:4640/64
net3: fe80::207:43ff:fe29:4658/64 (inaccessible)
Next server: 102.90.90.48
Filename: http://102.90.90.48/real_boot_script.php
http://102.90.90.48/real_boot_script.php.... [connecting].. ok
real_boot_script.php : 208 bytes [script]
http://102.90.90.48/iPXE/initrd.img...... 0%
Connection reset (http://ipxe.org/0f0a6095)
Could not boot image: Connection reset (http://ipxe.org/0f0a6095)
No more network devices


As you can see it is able to fetch 'real_boot_script.php' from http server, but Link remains Down.

I cloned 'git clone git://git.ipxe.org/ipxe.git' recently and created image using 'make bin-x86_64-
efi/ipxe.efi'.

Thanks.



On Tue, 15 Dec 2020 06:31:45 +0530 Michael Brown wrote
>On 14/12/2020 19:00, Laszlo Ersek wrote:

> On 12/14/20 18:44, udai sharma wrote:

>> Hello Community,

>>

>> My OptionRom driver works with PXE but it fails to get/report link

>> status in iPXE.

>>

>> I had setup iPXE.efi in dhcp.conf to load it from DHCP-PXE server.

>> I see it gets loaded properly.

>>

>> But when iPXE ifconfig tries to look for link status, it always

>> fails to get the link status.

>>

>> I need to understand is there something with my oprom driver or the

>> driver in iPXE.efi has to be looked into.

>>

>> Thanks in advance.

>

> no clue, but I'm adding Michael.



Thanks for the heads-up!



Udai: which driver is iPXE using? You can find out via the "ifstat"

command in the iPXE shell.



Thanks,



Michael


Join discuss@edk2.groups.io to automatically receive all group messages.