[External] ipmitool reading i2c devices

Zhang Jian zhangjian.3032 at bytedance.com
Thu Sep 29 17:47:14 AEST 2022


Hi Schuyler,

On Thu, Sep 29, 2022 at 2:22 PM Patton, Schuyler <spatton at ti.com> wrote:
>
> Hi all,
>
> I am trying to use an ipmitool running on a Linux PC and trying to read the i2c bus on a board running openbmc. This is the command I am using:
>
> Ipmitool -v -I lanplus -H <ip address> -C 17 -U root -P 0penBmc i2c bus=1 0x40 2
>
>
>
> Looking at the apphandler.cpp code I see that a white list is required. I added one based on the format described in the cpp source file. This is the error I am seeing:
>
>
>
> I2C Master Write-Read command failed: Invalid command.
>
This command is dangerous and controlled by ENABLE_I2C_WHITELIST_CHECK,
There are 2 ways we can use this command,
1. Disable this option, let i2c-whitelist-check=disable, this is dangerous.
[0]: https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host_git.bb#L29

2. Install a white list, see
https://github.com/openbmc/phosphor-host-ipmid/blob/master/apphandler.cpp#L1554
>
>
> Othe ipmitool commands work such as bmc info.  Is there additional config that I need to do to be able to read a device on an I2C bus?
>
>
>
> Thanks and Regards,
>
> Schuyler Patton
>
>


More information about the openbmc mailing list