Skip to contentSkip to conversation

dbus command to set POSTCode

DISCUSSION Thang Nguyen 2 participants 3 messages Jun 15, 2021 – Jun 17, 2021

lore
Share & tools
lore
#0 lore raw

Hi,

I found the command to set POST Code to dbus as below:

busctl set-property xyz.openbmc_project.State.Boot.Raw /xyz/openbmc_project/state/boot/raw0 xyz.openbmc_project.State.Boot.Raw Value \(tay\) 0x080103050006 72 2 0 0 2 0 0 0 72 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 84 65 78 68 66 89 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32

The first option is the POST Code to set. In this case I use 0x080103050006.

However, I have not found any document to specify the remaining. Anyone has document to specify about arguments for POST Code setting in dbus?

Best Regards,

ThangQ.

#1 lore raw

Hi Thang,

Quoted 4 lines · Thang Nguyen

Hi,

I found the command to set POST Code to dbus as below:

Quoted 9 lines

busctl set-property xyz.openbmc_project.State.Boot.Raw /xyz/openbmc_project/state/boot/raw0 xyz.openbmc_project.State.Boot.Raw
Value \(tay\) 0x080103050006 72 2 0 0 2 0 0 0 72 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 84 65 78 68 66 89 32 32 32 32
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32

Looking at the command, This looks like a command that is used to set the progress code value on IBM machines.

Quoted 5 lines

The first option is the POST Code to set. In this case I use 0x080103050006.

However, I have not found any document to specify the remaining. Anyone
has document to specify about arguments for POST Code setting in dbus?

Earlier, the Postcodes used to be just a uint64 number, But it was recently changed to struct[uint64,array[byte]] to capture IBM Progress codes[1] which are bigger than just a uint64 number[2].

IBM Progress codes structure typically have a primary code(uint64) which is used to capture the progress towards boot ,and a secondary code(array[bytes]) which is used to debug boot hangs to provide additional details regarding the problem.

On Intel systems, the snoopd daemon that is responsible for setting the Value property[2] would just set the secondary code to an empty vector[3].

[1]. https://www.ibm.com/docs/en/POWER6/areai/areai.pdf
[2]. https://github.com/openbmc/phosphor-dbus-interfaces/commit/9a96970ebb93eb1f495c200801343a4d1c53977c
[3]. https://github.com/openbmc/phosphor-host-postd/blob/master/main.cpp#L68

Thanks,
Manoj

Quoted 8 lines

Best Regards,

ThangQ.

#2 lore raw
Quoted 34 lines · Manojkiran Eda

Hi Thang,

Quoted 4 lines · Thang Nguyen

Hi,

I found the command to set POST Code to dbus as below:

Quoted 9 lines

busctl set-property xyz.openbmc_project.State.Boot.Raw /xyz/openbmc_project/state/boot/raw0 xyz.openbmc_project.State.Boot.Raw
Value \(tay\) 0x080103050006 72 2 0 0 2 0 0 0 72 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 84 65 78 68 66 89 32 32 32 32
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32

Looking at the command, This looks like a command that is used to set the progress code value on IBM machines.

Quoted 5 lines

The first option is the POST Code to set. In this case I use 0x080103050006.

However, I have not found any document to specify the remaining. Anyone
has document to specify about arguments for POST Code setting in dbus?

Earlier, the Postcodes used to be just a uint64 number, But it was recently changed to struct[uint64,array[byte]] to capture IBM Progress codes[1] which are bigger than just a uint64 number[2].

IBM Progress codes structure typically have a primary code(uint64) which is used to capture the progress towards boot ,and a secondary code(array[bytes]) which is used to debug boot hangs to provide additional details regarding the problem.

Quoted 7 lines

On Intel systems, the snoopd daemon that is responsible for setting the Value property[2] would just set the secondary code to an empty vector[3].

[1]. https://www.ibm.com/docs/en/POWER6/areai/areai.pdf
[2]. https://github.com/openbmc/phosphor-dbus-interfaces/commit/9a96970ebb93eb1f495c200801343a4d1c53977c
[3]. https://github.com/openbmc/phosphor-host-postd/blob/master/main.cpp#L68

Thanks for your information. I see that the array[byte] part is not used in PostCode. I can use the shorter command like below:

busctl set-property xyz.openbmc_project.State.Boot.Raw /xyz/openbmc_project/state/boot/raw0 xyz.openbmc_project.State.Boot.Raw
Value \(tay\) 0x080103050006 0

Quoted 11 lines

Thanks,
Manoj

Quoted 7 lines

Best Regards,

ThangQ.