Hi Siyuan,
When I add that option to the file, UEFI complains "PXE-E16: No offer
received.\n".
I can see that DHCP server did reply to the request and the packet is received
but UEFI is not happy.
Here is the packet exchange.
12:36:23.621851 12:12:12:12:12:12 (oui Unknown) > Broadcast, ethertype IPv4
(0x0800), length 389: 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 12:12:12:12:12:12 (oui Unknown), length 347
0x0000: ffff ffff ffff 1212 1212 1212 0800 4500 ..............E.
0x0010: 0177 9ac2 0000 4011 deb4 0000 0000 ffff .w....@.........
0x0020: ffff 0044 0043 0163 5cb5 0101 0600 487f ...D.C.c\.....H.
0x0030: 9ac2 0000 8000 0000 0000 0000 0000 0000 ................
0x0040: 0000 0000 0000 1212 1212 1212 0000 0000 ................
0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0110: 0000 0000 0000 6382 5363 3501 0139 0205 ......c.Sc5..9..
0x0120: c037 2301 0203 0405 060c 0d0f 1112 1617 .7#.............
0x0130: 1c28 292a 2b32 3336 3a3b 3c42 4361 8081 .()*+236:;<BCa..
0x0140: 8283 8485 8687 6111 0000 0000 0000 0000 ......a.........
0x0150: 0000 0000 0000 0000 005e 0301 0300 5d02 .........^....].
0x0160: 000b 3c20 5058 4543 6c69 656e 743a 4172 ..<.PXEClient:Ar
0x0170: 6368 3a30 3030 3131 3a55 4e44 493a 3030 ch:00011:UNDI:00
0x0180: 3330 3030 ff 3000.
12:36:23.622085 ba:b7:60:68:d6:22 (oui Unknown) > Broadcast, ethertype IPv4
(0x0800), length 342: 172.25.17.100.bootps > 255.255.255.255.bootpc:
BOOTP/DHCP, Reply, length 300
0x0000: ffff ffff ffff bab7 6068 d622 0800 4510 ........`h."..E.
0x0010: 0148 0000 0000 8011 7c18 ac19 1164 ffff .H......|....d..
0x0020: ffff 0043 0044 0134 66dc 0201 0600 487f ...C.D.4f.....H.
0x0030: 9ac2 0000 8000 0000 0000 ac19 1165 0a12 .............e..
0x0040: 6836 0000 0000 1212 1212 1212 0000 0000 h6..............
0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090: 0000 0000 0000 6566 692f 6772 7562 2e65 ......efi/grub.e
0x00a0: 6669 0000 0000 0000 0000 0000 0000 0000 fi..............
0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0110: 0000 0000 0000 6382 5363 3501 0236 04ac ......c.Sc5..6..
0x0120: 1911 6433 0400 00a8 c001 04ff ffff 003a ..d3...........:
0x0130: 0400 0054 603b 0400 0093 a83c 0950 5845 ...T`;.....<.PXE
0x0140: 436c 6965 6e74 ff00 0000 0000 0000 0000 Client..........
0x0150: 0000 0000 0000 ......
From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [edk2] PXE Boot Error
Date: Tue, 19 Aug 2014 04:19:04 +0000
Hi, Chris
Just add
"option vendor-class-identifier "PXEClient";" to your dhcpd.conf file, it will
enable option 60.
Best Regards,
Siyuan
From: Chris Cuthbert [mailto:[email protected]]
Sent: Tuesday, August 19, 2014 4:20 AM
To: Edk2 Devel
Subject: [edk2] PXE Boot Error
Hi All,
I am trying to boot an ARM core using PXE boot and I am following the steps
mentioned in this Linaro wiki
(https://wiki.linaro.org/LEG/Engineering/Kernel/UEFI/UEFI_Network_Booting).
Most importantly, the DHCP server configuration part of it. It says:
Add these lines to /etc/dhcp/dhcpd.conf:
allow booting;
allow bootp;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.3 192.168.0.253;
}
host rtsm {
hardware ethernet 00:02:f7:ef:5c:f5;
fixed-address 192.168.0.20;
option host-name "rtsm";
next-server 192.168.0.1;
filename "efi/grub.efi";
}
When I do configure the UEFI boot manager to boot, I get error in
"PxeBcSelectBootPrompt" function at the following check:
if (Packet->OfferType != DHCP4_PACKET_TYPE_PXE10) {
return EFI_NOT_FOUND;
}
Seems like the DHCP server is offering "DHCP4_PACKET_TYPE_DHCP_ONLY" and not
"DHCP4_PACKET_TYPE_PXE10".
After looking around, it seems I need to enable option 060 in DHCP server. I
have not been able to find a way to configure
the DHCP to allow PXE boot. The most popular configuration change suggested was
"option vendor-class-identifier "PXEClient";".
Any suggestions ?
Thanx.
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel