Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50BBCC04A95 for ; Thu, 29 Sep 2022 06:22:47 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdNZY5WZyz3c6Y for ; Thu, 29 Sep 2022 16:22:45 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=zIY6F9C6; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ti.com (client-ip=198.47.23.248; helo=lelv0143.ext.ti.com; envelope-from=spatton@ti.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=zIY6F9C6; dkim-atps=neutral X-Greylist: delayed 874 seconds by postgrey-1.36 at boromir; Thu, 29 Sep 2022 16:21:37 AEST Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdNYF25c2z3c6q for ; Thu, 29 Sep 2022 16:21:35 +1000 (AEST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28T66uFW107034 for ; Thu, 29 Sep 2022 01:06:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1664431616; bh=7VylOBmIAGfOgM9/9SjuVdwubf3Xa9DpxAOWFTUrU04=; h=From:To:Subject:Date; b=zIY6F9C6WZ+XYtBbLnlvJYaZVa2T/cQzBt6D4eG9yOkvsEk3WXVf2ixGjVx3PlGOz Fm1LrK8eTqQl8W8WVe355Clp+tzbchhYd3iEkcdgaJq6ACdT113m13xQHNmzV+kwIx GpjzagFj14Klz/oP8td0y5DXcbpfTF7IoNEGJ+Eg= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28T66uOs065057 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 29 Sep 2022 01:06:56 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Thu, 29 Sep 2022 01:06:56 -0500 Received: from DLEE102.ent.ti.com ([fe80::2cde:e57d:8075:c010]) by DLEE102.ent.ti.com ([fe80::2cde:e57d:8075:c010%17]) with mapi id 15.01.2507.006; Thu, 29 Sep 2022 01:06:56 -0500 From: "Patton, Schuyler" To: "openbmc@lists.ozlabs.org" Subject: ipmitool reading i2c devices Thread-Topic: ipmitool reading i2c devices Thread-Index: AdjTyIvw5AQl0I/+RQy/GsbYbFlRZQ== Date: Thu, 29 Sep 2022 06:06:55 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.249.36.49] x-exclaimer-md-config: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: multipart/alternative; boundary="_000_ddf0d5f853c443e285b986581b01bd75ticom_" MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --_000_ddf0d5f853c443e285b986581b01bd75ticom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 -C 17 -U root -P 0penBmc i2c bus=3D1= 0x40 2 Looking at the apphandler.cpp code I see that a white list is required. I a= dded 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 t= hat I need to do to be able to read a device on an I2C bus? Thanks and Regards, Schuyler Patton --_000_ddf0d5f853c443e285b986581b01bd75ticom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 com= mand I am using:

Ipmitool -v -I lanplus -H <ip address> -C 17 -= U root -P 0penBmc i2c bus=3D1 0x40 2

 

Looking at the apphandler.cpp code I see that a whit= e list is required. I added one based on the format described in the cpp so= urce file. This is the error I am seeing:

 

I2C Master Write-Read command failed: Invalid comman= d.

 

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

 

--_000_ddf0d5f853c443e285b986581b01bd75ticom_--