[Mellanox] Extend the time to wait for EEPROM VPD file creation (#18146)
- Why I did it The creation of system EEPROM VPD file "/var/run/hw-management/eeprom/vpd_info" is triggered by the udev event during the system boot up, in case the CPU is busy during the bootup, the udev event handling can be delayed, and need to wait for some more time for the file creation. - How I did it Extend the waiting time from 10s to 20s to overcome some extreme case. - How to verify it continuously run reboot case and verify whether still can see error msg "ERR decode-syseeprom: Nowhere to read syseeprom from! No symlink found" Signed-off-by: Kebo Liu <kebol@nvidia.com>
This commit is contained in:
parent
4e1c38a3fe
commit
881ceb7034
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES.
|
||||
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
|
||||
# Apache-2.0
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -51,7 +51,7 @@ if platform_name and 'simx' in platform_name and '4700' not in platform_name:
|
||||
os.makedirs(os.path.dirname(EEPROM_SYMLINK))
|
||||
subprocess.check_call(['/usr/bin/xxd', '-r', '-p', 'syseeprom.hex', EEPROM_SYMLINK], cwd=platform_path)
|
||||
|
||||
WAIT_EEPROM_READY_SEC = 10
|
||||
WAIT_EEPROM_READY_SEC = 20
|
||||
|
||||
|
||||
class Eeprom(eeprom_tlvinfo.TlvInfoDecoder):
|
||||
|
Loading…
Reference in New Issue
Block a user