History log of /openbmc/openpower-vpd-parser/vpd-tool/src/vpd_tool_main.cpp (Results 1 – 6 of 6)
Revision Date Author Comments
# 42ca494b 12-Feb-2025 Anupama B R <anupama.b.r1@ibm.com>

vpd-tool: handle error code

This commit handles error code for write keyword command, as the
std::error_code should be checked only when filesystem::exists call
returns with false.

Change-Id: If901

vpd-tool: handle error code

This commit handles error code for write keyword command, as the
std::error_code should be checked only when filesystem::exists call
returns with false.

Change-Id: If90170f32a8e8798ba88b932da479dc3609afd22
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>

show more ...


# 6be2c015 23-Jan-2025 Anupama B R <anupama.b.r1@ibm.com>

vpd-tool force reset command

This commit implements ‘force reset’ user option in vpd-tool. Command
clears the BMC persisted data and recollects the VPD for all the FRUs
mentioned in system config JS

vpd-tool force reset command

This commit implements ‘force reset’ user option in vpd-tool. Command
clears the BMC persisted data and recollects the VPD for all the FRUs
mentioned in system config JSON.

Command will only be processed if chassis is powered off.

stub API is added in VpdTool class to implement this command.

Output:
```
root@p10bmc:/tmp# obmcutil state
CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running
BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.MemoryInit
OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive

When chassis is powered on, force reset command will fail:
root@p10bmc:/tmp# ./vpd-tool -f
The chassis power state is not Off. Force reset operation is not allowed.
```

Change-Id: I58ed0f11cf182d718ae957c4fbe803dc24f83d09
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>

show more ...


# 951d6609 18-Jan-2025 Anupama B R <anupama.b.r1@ibm.com>

Take input from file for write keyword

This commit adds code to read keyword’s value from the local file to
update keyword’s value. User can provide file path where the value
exists using --file opt

Take input from file for write keyword

This commit adds code to read keyword’s value from the local file to
update keyword’s value. User can provide file path where the value
exists using --file option.

Output:
```
Write keyword using object path (both primary and backup path VPD gets updated)

Before update:
root@p10bmc:/tmp# ./vpd-tool -O /system/chassis/motherboard -R VSYS -K BR -r
{
"/system/chassis/motherboard": {
"BR": "S0"
}
}
root@p10bmc:/tmp# ./vpd-tool -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K BR -r -H
{
"/sys/bus/i2c/drivers/at24/8-0050/eeprom": {
"BR": "S0"
}
}

Input file (In ASCII format):
root@p10bmc:/tmp# cat input.txt
A2

Update keyword command:
root@p10bmc:/tmp# ./vpd-tool -O /system/chassis/motherboard -R VSYS -K BR -w --file input.txt
Data updated successfully

After update:
root@p10bmc:/tmp# ./vpd-tool -O /system/chassis/motherboard -R VSYS -K BR -r
{
"/system/chassis/motherboard": {
"BR": "A2"
}
}
root@p10bmc:/tmp# ./vpd-tool -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K BR -r -H
{
"/sys/bus/i2c/drivers/at24/8-0050/eeprom": {
"BR": "A2"
}
}

Write keyword using hardware path (updates only given hardware path):

Input file (In hexadecimal format):
root@p10bmc:/tmp# cat input.txt
0x5330

Update keyword command:
root@p10bmc:/tmp# ./vpd-tool -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K BR -w -H --file input.txt
Data updated successfully

After update:
root@p10bmc:/tmp# ./vpd-tool -O /system/chassis/motherboard -R VSYS -K BR -r
{
"/system/chassis/motherboard": {
"BR": "A2"
}
}
root@p10bmc:/tmp# ./vpd-tool -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K BR -r -H
{
"/sys/bus/i2c/drivers/at24/8-0050/eeprom": {
"BR": "S0"
}
}
```

Change-Id: I762dceae351ab2f9a1989b664a424cda4470dd1d
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>

show more ...


# d353990e 20-Jan-2025 Anupama B R <anupama.b.r1@ibm.com>

Update logs and doxygen for vpd-tool

This commit updates the following for vpd-tool,
* Removed duplicate success log for write keyword command.
* Updated the doxygen for readKeyword API.
* Error log

Update logs and doxygen for vpd-tool

This commit updates the following for vpd-tool,
* Removed duplicate success log for write keyword command.
* Updated the doxygen for readKeyword API.
* Error logs are enabled in all places until verbose mode is
implemented.

Change-Id: Ica201694fc87445d4cd368875d1414140c77b236
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>

show more ...


# 63089420 23-Jan-2025 Souvik Roy <souvikroyofficial10@gmail.com>

vpd-tool mfgClean: Sync BIOS attributes stub

This commit adds --syncBiosAttributes flag to vpd-tool --mfgClean
option. The changes in this commit allows user to specify
--syncBiosAttributes/-s with

vpd-tool mfgClean: Sync BIOS attributes stub

This commit adds --syncBiosAttributes flag to vpd-tool --mfgClean
option. The changes in this commit allows user to specify
--syncBiosAttributes/-s with --mfgClean option. --syncBiosAttributes
flag when used along with --mfgClean will sync those VPD keywords on
hardware and D-Bus, with the corresponding values of BIOS attributes.
The other keywords not associated with BIOS attribute backup continue to
be updated with the default value in backup_restore JSON file.

Test:

```
root@p10bmc:~# vpd-tool
VPD Command Line Tool
Usage: vpd-tool [OPTIONS]

Options:

-s,--syncBiosAttributes Sync BIOS attribute related keywords from
BIOS Config Manager

MfgClean:
Flag to clean and reset specific keywords on system VPD to its default
value.
vpd-tool --mfgClean
To sync BIOS attribute related keywords with BIOS Config Manager:
vpd-tool --mfgClean --syncBiosAttributes
```

Change-Id: Icdff0bc08e629d12e4de2a21c2499ea621a03c38
Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>

show more ...


# fa5e4d32 12-Mar-2023 Sunny Srivastava <sunnsr25@in.ibm.com>

Revamped code for VPD parser

The commit removes all the pre-existing code from the branch
and pushes the revamped code.

Major modification includes:
- Movement from multi exe to single daemon model

Revamped code for VPD parser

The commit removes all the pre-existing code from the branch
and pushes the revamped code.

Major modification includes:
- Movement from multi exe to single daemon model.
- Multithreaded approach to parse FRU VPD.
- Better error handling.
- Refactored code for performance optimization.

Note: This code supports all the existing functionalities as it is.

Change-Id: I1ddce1f0725ac59020b72709689a1013643bda8b
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>

show more ...