forked from ibm-openbmc/openpower-vpd-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement vpd-tool mfgClean (ibm-openbmc#573)
This commit implements vpd-tool --mfgClean option. This API resets specific System VPD keywords to default value. The System VPD keywords are fetched from backup_restore.json. The specified keyword values are reset on: - Primary EEPROM path. - Redundant EEPROM path(if any) - D-Bus cache. - Backup path. Test: ``` root@p10bmc:~# ./vpd-tool --mfgClean --yes Cleaning System VPD... Hardware path: "/sys/bus/i2c/drivers/at24/8-0050/eeprom" Data updated successfully Data updated successfully Data updated successfully The critical keywords from system backplane VPD has been reset successfully. root@p10bmc:~# ./vpd-tool --mfgClean This option resets some of the system VPD keywords to their default values. Do you really wish to proceed further?[yes/no]:yes Cleaning System VPD... Hardware path: "/sys/bus/i2c/drivers/at24/8-0050/eeprom" The critical keywords from system backplane VPD has been reset successfully. ``` Change-Id: I55862fc4122a188e3e522dd64ed6bd1fa94335e8 Signed-off-by: Souvik Roy <souvik.roy10@ibm.com>
- Loading branch information
Souvik Roy
committed
Jan 10, 2025
1 parent
f80293a
commit 53ec284
Showing
1 changed file
with
110 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters