Help with IPMB (IPMI over I2C).

Bala Subramaniyan Bala.Subramaniyan at Ltts.com
Thu Jun 20 23:29:18 AEST 2024


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 at 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: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 at Ltts.com>
Sent: Thursday, June 20, 2024 6:55 PM
To: Alexander A. Filippov <a.filippov at yadro.com>
Cc: openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>; Thangaraj S <Thangaraj.S at Ltts.com>; Lalit Kumar <Lalit.Kumar2 at 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 at 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 at yadro.com>
Sent: Thursday, June 20, 2024 6:06 PM
To: Bala Subramaniyan <Bala.Subramaniyan at Ltts.com>
Cc: openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>; Thangaraj S <Thangaraj.S at Ltts.com>; Lalit Kumar <Lalit.Kumar2 at 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 at 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 part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 122453 bytes
Desc: image.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-3vqibvmn.png
Type: image/png
Size: 99 bytes
Desc: Outlook-3vqibvmn.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-pdp4i4se.png
Type: image/png
Size: 5482 bytes
Desc: Outlook-pdp4i4se.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-qfkgjwgm.png
Type: image/png
Size: 99 bytes
Desc: Outlook-qfkgjwgm.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-dfbvx253.png
Type: image/png
Size: 99 bytes
Desc: Outlook-dfbvx253.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-21jb3dlu.png
Type: image/png
Size: 5482 bytes
Desc: Outlook-21jb3dlu.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-callpznc.png
Type: image/png
Size: 99 bytes
Desc: Outlook-callpznc.png
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20240620/b2eb9d1a/attachment-0013.png>


More information about the openbmc mailing list