Announcement

Collapse
No announcement yet.

System Reset occuring 5 min after booting MemTest86 Site Edition (PXE Network Boot)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • System Reset occuring 5 min after booting MemTest86 Site Edition (PXE Network Boot)

    Problem:

    We have a few reports of users experiencing a system reboot 5 minutes into a PXE network boot of MemTest86 Site Edition. The cause was determined to be that certain bootloaders/chainloaders (eg. iPXE) periodically set a watchdog timer of 5 minutes, which when expired causes the system to reset.

    Solution:

    1) Disable the watchdog timer in the bootloader

    This option is applicable only if the bootloader source can be modified and re-compiled.

    Locate the call to the UEFI Boot Services function SetWatchdogTimer() and disable the watchdog timer by calling it as follows:

    Code:
    bs->SetWatchdogTimer (0, 0, 0, NULL );
    In the case of iPXE, this call is found in the file interface/efi/efi_watchdog.c. The following change would be required:

    Code:
    #define     WATCHDOG_TIMEOUT_SECS   ( 5 * 60 )
    to
    Code:
    #define     WATCHDOG_TIMEOUT_SECS   ( 0 )
    2) Use MemTest86 v7.6 (or later)

    MemTest86 v7.6 (or later) implements a workaround by attempting to disable the watchdog timer at periodic intervals while the test is running.

    Note that this workaround may not work if MemTest86 is waiting for user input (eg. in the main menu). In this particular case, MemTest86 cannot disable the watchdog timer before the timer period expires.

    For a more proper fix, consider implementing the first solution (making the necessary changes to the bootloader source)

    Reference:
    http://forum.ipxe.org/showthread.php?tid=755
    http://wiki.phoenix.com/wiki/index.p...dogTimer.28.29
    Last edited by keith; Jun-15-2018, 01:47 AM.

  • #2
    In regards to iPXE, this issue appears to have been fixed on Nov 25, 2021 by iPXE manually disabling the watchdog timer when iPXE exits to boot an OS (such as MemTest86): https://github.com/ipxe/ipxe/commit/...8d05518aafc2ec
    Last edited by Pico; Aug-19-2022, 06:10 AM.

    Comment

    Working...
    X