From: "Alexander A. Filippov" <a.filippov@yadro.com>
To: Bala Subramaniyan <Bala.Subramaniyan@ltts.com>
Cc: Thangaraj S <Thangaraj.S@ltts.com>,
"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
"Alexander A. Filippov" <a.filippov@yadro.com>,
Lalit Kumar <Lalit.Kumar2@ltts.com>
Subject: Re: Help with IPMB (IPMI over I2C).
Date: Thu, 20 Jun 2024 18:39:24 +0300 [thread overview]
Message-ID: <ZnRNLKeblSrD92n3@nbwork.lan> (raw)
In-Reply-To: <MA1PR01MB43082375F4F0563E9E6AB23080C82@MA1PR01MB4308.INDPRD01.PROD.OUTLOOK.COM>
On Thu, Jun 20, 2024 at 01:29:18PM +0000, Bala Subramaniyan wrote:
> Hi Alexander,
>
> Thanks for your reply,
>
> ipmitool has raw and i2c commands.
>
> Commands:
> raw Send a RAW IPMI request and print response
> i2c Send an I2C Master Write-Read command and print response
> spd Print SPD info from remote I2C device
> lan Configure LAN Channels
>
>
> As, I can see ipmi_rawi2c_main() function under ipmitool/lib/ipmi_raw.c<https://github.com/openbmc/ipmitool/blob/master/lib/ipmi_raw.c> which is handling I2C Master Read-Write functionality.
>
> Can you please guide us on this, Whether we can use this to perform BMC-to-BMC communication.
>
> Below is the error i'm getting while performing BMC-to-BMC Master-Slave Read-Write by connecting two i2c buses between the boards.
> root@ast2600-default:~# ipmitool i2c bus=14 0x12 0x00 0x00 0x00 0x31 0x32 0x33 0x34
> ipmi_master_write_read: rsp_value:6207408, LineNo:104
> I2C Master Write-Read command failed: Invalid command
> ipmi_rawi2c_main: rsp_value:0, LineNo:264
> Unable to perform I2C Master Write-Read
>
This command doesn't define a transport for the IPMI command. It asks a remote
system to write specified bytes and read an answer via i2c bus on that remote
system. And ipmitool uses the default interface (or specified one via `-I`
option) for this command.
As I understood Your first message, You are looking for a transport interface
working via i2c, and I don't know the such implementations.
It should be something that You can specify via `-I` option of ipmitool.
By default ipmitool in OpenBMC uses `dbus` as the transport.
> Thanks, and regards,
> Bala Subramaniyan M,
>
>
>
>
> [cid:8c0f8170-e1d0-4031-a57d-20b6a72ccf58]<https://www.ltts.com/>
>
>
> S1 Building, L&T Tech Park, Bellary Road,
>
> Next to Raintree Boulevard, Park View Layout,
>
> Byatarayanapura, Bengaluru-560092
>
> Mobile: +91 9677035467
>
> ENGINEERING THE CHANGE | www.LTTS.com<https://www.ltts.com/>
>
>
>
> ________________________________
> From: Bala Subramaniyan <Bala.Subramaniyan@Ltts.com>
> Sent: Thursday, June 20, 2024 6:55 PM
> To: Alexander A. Filippov <a.filippov@yadro.com>
> Cc: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; Thangaraj S <Thangaraj.S@Ltts.com>; Lalit Kumar <Lalit.Kumar2@ltts.com>
> Subject: Re: Help with IPMB (IPMI over I2C).
>
> Hi Alexander,
>
> Thanks for your reply,
>
> ipmitool has raw and i2c commands, Please refer below image.
>
> [cid:87b5aef4-9628-47c7-b7d4-b714b7a92869]
>
> As, I can see ipmi_rawi2c_main() function under ipmitool/lib/ipmi_raw.c<https://github.com/openbmc/ipmitool/blob/master/lib/ipmi_raw.c> which is handling I2C Master Read-Write functionality.
>
> Can you please guide us on this, Whether we can use this to perform BMC-to-BMC communication.
>
> Below is the error i'm getting while performing BMC-to-BMC Master-Slave Read-Write by connecting two i2c buses between the boards.
> root@ast2600-default:~# ipmitool i2c bus=14 0x12 0x00 0x00 0x00 0x31 0x32 0x33 0x34
> ipmi_master_write_read: rsp_value:6207408, LineNo:104
> I2C Master Write-Read command failed: Invalid command
> ipmi_rawi2c_main: rsp_value:0, LineNo:264
> Unable to perform I2C Master Write-Read
>
>
> Thanks, and regards,
> Bala Subramaniyan M,
>
>
>
> [cid:08db76b7-f643-4b96-8acd-5325e19c1e99]<https://www.ltts.com/>
>
>
> S1 Building, L&T Tech Park, Bellary Road,
>
> Next to Raintree Boulevard, Park View Layout,
>
> Byatarayanapura, Bengaluru-560092
>
> Mobile: +91 9677035467
>
> ENGINEERING THE CHANGE | www.LTTS.com<https://www.ltts.com/>
>
>
>
> ________________________________
> From: Alexander A. Filippov <a.filippov@yadro.com>
> Sent: Thursday, June 20, 2024 6:06 PM
> To: Bala Subramaniyan <Bala.Subramaniyan@Ltts.com>
> Cc: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; Thangaraj S <Thangaraj.S@Ltts.com>; Lalit Kumar <Lalit.Kumar2@ltts.com>
> Subject: Re: Help with IPMB (IPMI over I2C).
>
> CAUTION: This email is from an external source. Please do not open attachments or click links from an unknown or suspicious origin. Phishing attempts can be reported by using the report message button in Outlook or sending them as an attachment to phishing@Ltts.com. Thank you
>
> On Thu, Jun 20, 2024 at 10:43:59AM +0000, Bala Subramaniyan wrote:
> > Hi All,
>
> Hi,
>
> >
> > For one of our requirement (BMC to BMC, IPMI over I2C), We're exploring with IPMITOOL<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fipmitool&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919310123%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=xV3gj1uMoigTrD9EV%2FzSYWUCrQG9KBqM8RMHAfkbjL4%3D&reserved=0<https://github.com/openbmc/ipmitool>>.
> >
> > Development Board: ASPEED AST2600 EVB
> >
> > Could you please suggest us how to proceed further with our below requirement.
> >
> > 1.
> > BMC to BMC (IPMI over I2C), One BMC as Master and other as slave.
> > 2.
> > Send/Receive IPMI commands through IPMITOOL<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fipmitool&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919318108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=2Ofk6FFhvtt9DE2Ku6l9E%2Bogf4rDoAnKLJ8IaKCAvnA%3D&reserved=0<https://github.com/openbmc/ipmitool>> from one BMC to other.
> > 3.
> > Send/Receive SDR, SEL logs between two BMC's.
> >
> > Any help would be highly appreciated.
> >
> >
>
> As I can see, ipmitool has no any interfaces using i2c directly and I never
> listen about using i2c as the ipmi transport.
>
> Google shows me that the similar question already exists and answered:
> https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fipmitool%2Fipmitool%2Fdiscussions%2F296&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919323925%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=CAO3AlVSwGz7qeFnakA69orWVnat2mADwtIrvMsLtX4%3D&reserved=0<https://github.com/ipmitool/ipmitool/discussions/296>
>
> As an alternative, You could use lan/lanplus interfaces to communicate with
> remote BMC via ethernet.
>
>
> >
> > Thanks, and regards,
> > Bala Subramaniyan M,
> >
> >
> >
> > [cid:59c4f387-285c-4c0f-ada0-09714ca611a9]<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ltts.com%2F&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919328258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=USGH2E9jlgxi8PFwnWtNVmkyHbhtghu94%2BdpEsvGors%3D&reserved=0>
> >
> >
> > S1 Building, L&T Tech Park, Bellary Road,
> >
> > Next to Raintree Boulevard, Park View Layout,
> >
> > Byatarayanapura, Bengaluru-560092
> >
> > Mobile: +91 9677035467
> >
> > ENGINEERING THE CHANGE | https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919332294%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=9Uv9AWzo8JPFstuhNWEwB15fAnmslAUHG3jXjdavo2U%3D&reserved=0<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ltts.com%2F&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919336367%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=Kpop%2FwYjGgXiYRbB%2B8xGf%2FdUsbl4ZLp8Hl1YuomzM30%3D&reserved=0><http://www.ltts.com/>
> >
> >
> >
> > [Ltts.com]
> >
> > L&T Technology Services Ltd
> >
> > https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919340087%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=c46N5pRUVu%2BehD5RAcs3WXkECAobFoEhSCy0LZzqItA%3D&reserved=0<http://www.ltts.com/>
> >
> > L&T Technology Services Limited (LTTS) is committed to safeguard your privacy. Read the appropriate privacy notice<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ltts.com%2Fprivacy-policies-notices&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919344116%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=BwUKKDaLa%2BfTW2xoVVWwnWXnj11QQ3EPqVfcj3Y175A%3D&reserved=0<https://www.ltts.com/privacy-policies-notices>> applicable to you to know more about how LTTS collects, uses and stores your personal data. Please visit our privacy policy<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ltts.com%2Fdata-privacy-policy&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919348226%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=WUa8W%2BHcu%2FaFmtd23zvWkveaKXnSUpz6%2Fa7yf%2FqhpbE%3D&reserved=0<https://www.ltts.com/data-privacy-policy>> available on our website https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&data=05%7C02%7CBala.Subramaniyan%40ltts.com%7Ccc4bd8ff67674469a56408dc9125913a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C638544837919352183%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=ua8rLzmy8kkc2ePqG5xBoT8F7aEv8dnC4%2B7EcIFeTFk%3D&reserved=0<http://www.ltts.com/> for more information about our commitment towards data privacy under applicable data protection laws. This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
--
Regads,
Alexander Filippov
next prev parent reply other threads:[~2024-06-20 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 10:43 Help with IPMB (IPMI over I2C) Bala Subramaniyan
2024-06-20 12:36 ` Alexander A. Filippov
2024-06-20 13:25 ` Bala Subramaniyan
2024-06-20 13:29 ` Bala Subramaniyan
2024-06-20 15:39 ` Alexander A. Filippov [this message]
2024-06-21 7:29 ` Bala Subramaniyan
2024-06-24 8:32 ` Alexander A. Filippov
2024-06-26 3:33 ` guilin1985
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=ZnRNLKeblSrD92n3@nbwork.lan \
--to=a.filippov@yadro.com \
--cc=Bala.Subramaniyan@ltts.com \
--cc=Lalit.Kumar2@ltts.com \
--cc=Thangaraj.S@ltts.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.