openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Patton, Schuyler" <spatton@ti.com>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: ipmitool reading i2c devices
Date: Thu, 29 Sep 2022 06:06:55 +0000	[thread overview]
Message-ID: <ddf0d5f853c443e285b986581b01bd75@ti.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

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.

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


[-- Attachment #2: Type: text/html, Size: 2829 bytes --]

             reply	other threads:[~2022-09-29  6:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29  6:06 Patton, Schuyler [this message]
2022-09-29  7:47 ` [External] ipmitool reading i2c devices Zhang Jian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddf0d5f853c443e285b986581b01bd75@ti.com \
    --to=spatton@ti.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).