[ipxe-devel] About The iPXE Support for I219v of Intel CometLake Platform

Yonghui6 Chen chenyh6 at lenovo.com
Sat Dec 5 03:01:40 UTC 2020


Dear sir
Do you have any comments? Attached is one ipxe boot success debug trace and two ipxe boot failure traces. Can you kindly help review them and give us some clues about how to fix the ipxe boot failure issue? Thanks.

-------------------------------------------------------
Tony Chen 陈永辉
BIOS Engineer
+86 136 0016 4680
Email: chenyh6 at lenovo.com<mailto:chenyh6 at lenovo.com>
-------------------------------------------------------

From: Yonghui6 Chen
Sent: Wednesday, December 2, 2020 3:36 PM
To: ipxe-devel at lists.ipxe.org
Cc: Kevin Wu <wuhj at lenovo.com>
Subject: About The iPXE Support for I219v of Intel CometLake Platform

Dear sir
We met the issue of supporting ipxe on CML platform with ipxe rom embedded in BIOS. The LAN chip used was Intel i219v with Vendor ID Device ID 80860d4d.
When first power on, system could boot to ipxe server. But if we restart the system from OS with LAN driver installed, system could not boot into ipxe server any longer.
Reboot or global reset or power off and then power on cannot recover it. It can only be recovered after we remove the power cord and plug it again
[cid:image001.png at 01D6CAF6.0081A3F0]
Can you kindly help take a look at this issue? Is it the ipxe has not supported comet lake lan issue? We don’t see this problem on Coffee Lake platform.Thanks.


Below is our code change.

  1.  Build to include script
make bin/ipxe.usb EMBED=autobootloopscript.ipxe

Script example (don't leave out the '#!ipxe' it must be the first line)
#!ipxe
:retry_boot
autoboot || goto retry_boot
  2.  Edit ./src/config/general.h (enabled ELF, NBI, PXE, scripts, and bzimage support)
/*
 * Image types
 *
 * Etherboot supports various image formats.  Select whichever ones
 * you want to use.
 *
 */
#define    IMAGE_NBI        /* NBI image support */
#define    IMAGE_ELF        /* ELF image support */
//#define    IMAGE_MULTIBOOT        /* MultiBoot image support */
#define    IMAGE_PXE        /* PXE image support */
#define    IMAGE_SCRIPT        /* iPXE script image support */
#define    IMAGE_BZIMAGE        /* Linux bzImage image support */
//#define    IMAGE_COMBOOT        /* SYSLINUX COMBOOT image support */
//#define    IMAGE_EFI        /* EFI image support */
//#define    IMAGE_SDI        /* SDI image support */
//#define    IMAGE_PNM        /* PNM image support */
  3.  Edit ./src/config/dhcp.h (change the dhcp time outs)
//#define DHCP_DISC_START_TIMEOUT_SEC    1
//#define DHCP_DISC_END_TIMEOUT_SEC    10
#define DHCP_DISC_START_TIMEOUT_SEC    4    /* as per PXE spec */
#define DHCP_DISC_END_TIMEOUT_SEC    32    /* as per PXE spec */


  1.  Add the device ID to ./src/drivers/net/intel.c (PS:Latest code haven’t support Cometlake I219v yet, so we manually added it.)



                PCI_ROM ( 0x8086, 0x15bb, "i219lm-7", "I219-LM (7)", INTEL_I219 ),

                PCI_ROM ( 0x8086, 0x0d4c, "i219lm-8", "I219-LM (8)", INTEL_I219 ),

                PCI_ROM ( 0x8086, 0x15bc, "i219v-7", "I219-V (7)", INTEL_I219 ),

                PCI_ROM ( 0x8086, 0x0d4d, "i219v-8", "I219-V (8)", INTEL_I219 ),

By the way, I have also found from the website that ipxe supports the object trace from the serial port. Do you have any comments which we object we should trace? Thanks.
[cid:image002.png at 01D6CAF6.0081A3F0]
-------------------------------------------------------
Tony Chen 陈永辉
BIOS Engineer
+86 136 0016 4680
Email: chenyh6 at lenovo.com<mailto:chenyh6 at lenovo.com>
-------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 539130 bytes
Desc: image001.png
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 91269 bytes
Desc: image002.png
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CML_I219v_windows_reboot_fail.log
Type: application/octet-stream
Size: 7546 bytes
Desc: CML_I219v_windows_reboot_fail.log
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CML_I219v_G3_Boot_OK.log
Type: application/octet-stream
Size: 17250 bytes
Desc: CML_I219v_G3_Boot_OK.log
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CML_I219v_S5_G3_S5_Boot_FAIL.log
Type: application/octet-stream
Size: 25607 bytes
Desc: CML_I219v_S5_G3_S5_Boot_FAIL.log
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20201205/e04632ac/attachment-0002.obj>


More information about the ipxe-devel mailing list