opencomputeproject / onie

Open Network Install Environment
https://opencomputeproject.github.io/onie
Other
606 stars 376 forks source link

onie-syseeprom -s command cause data corruption during ONIE discovery #1069

Open Vincent-Chang-Ufi opened 1 week ago

Vincent-Chang-Ufi commented 1 week ago

When ONIE is discover the NOS or the updater, will access the onie-syseeprom value such as platform-name. If execute the onie-syseeprom write command onie-syseeprom -s will cause the data corruption because it will read and write the EEPROM value at the same time and will show Notice: Invalid TLV checksum found. Using default contents. Please see the log below

TlvInfo Header:

Id String: TlvInfo Version: 1 Total Length: 22 TLV Name Code Len Value


Serial Number 0x23 11 HAHN544000L Device Version 0x26 1 6 CRC-32 0xFE 4 0x5A97A8BF Checksum is valid. down. ONIE: eth2: link down. Skipping configuration. ONIE: Failed to configure eth1 interface ONIE: Failed to configure eth2 interface ONIE: Starting ONIE Service Discovery Info: Attempting file://dev/sda3/onie-installer-x86_64-ufispace_skl_ncplite_series-r0 ... Info: Attempting file://dev/sda3/onie-installer-x86_64-ufispace_skl_ncplite_series-r0.bin ... Info: Attempting file://dev/sda3/onie-installer-x86_64-ufispace_skl_ncplite_series ... Info: Attempting file://dev/sda3/onie-installer-x86_64-ufispace_skl_ncplite_series.bin ... Info: Attempting file://dev/sda3/onie-installer-ufispace_skl_ncplite_series ... Info: Attempting file://dev/sda3/onie-installer-ufispace_skl_ncplite_series.bin ... Info: Attempting file://dev/sda3/onie-installer-x86_64-bcm ... Info: Attempting file://dev/sda3/onie-installer-x86_64-bcm.bin ... Info: Attempting file://dev/sda3/onie-installer-x86_64 ... Info: Attempting file://dev/sda3/onie-installer-x86_64.bin ... Info: Attempting file://dev/sda3/onie-installer ... Info: Attempting file://dev/sda3/onie-installer.bin ... Notice: Invalid TLV checksum found. Using default contents. TlvInfo Header: Id String: TlvInfo Version: 1 Total Length: 6 TLV Name Code Len Value


CRC-32 0xFE 4 0xD4431C18 Checksum is valid. ONIE: Unable to find 'Serial Number' TLV in EEPROM data. Notice: Invalid TLV header found. Using default contents. Notice: Invalid TLV checksum found. Using default contents.

TlvInfo Header: Id String: TlvInfo Version: 1 Total Length: 22 TLV Name Code Len Value


Serial Number 0x23 11 HAHN544000L Device Version 0x26 1 6 CRC-32 0xFE 4 0x5A97A8BF Checksum is valid. down. ONIE: eth2: link down. Skipping configuration. ONIE: Failed to configure eth1 interface ONIE: Failed to configure eth2 interface ONIE: Starting ONIE Service Discovery Info: Attempting file://dev/sda3/onie-installer-x86_64-bcm ... Info: Attempting file://dev/sda3/onie-installer-x86_64-bcm.bin ... Info: Attempting file://dev/sda3/onie-installer-x86_64 ... Info: Attempting file://dev/sda3/onie-installer-x86_64.bin ... Info: Attempting file://dev/sda3/onie-installer ... Info: Attempting file://dev/sda3/onie-installer.bin ... Notice: Invalid TLV checksum found. Using default contents. TlvInfo Header: Id String: TlvInfo Version: 1 Total Length: 6 TLV Name Code Len Value


CRC-32 0xFE 4 0xD4431C18 Checksum is valid. ONIE: Unable to find 'Serial Number' TLV in EEPROM data. Notice: Invalid TLV header found. Using default contents. Notice: Invalid TLV checksum found. Using default contents.