<div>Hello, Sumanth!</div><div> </div><div>Thank you for the reply, I've found that also it's necessary to  </div><div>1. Compile ipmi_dev driver into kernel;</div><div>2. Rename channel in /usr/share/ipmi-providers/channel_config.json - it must be named "Ipmb", not "IPMB"</div><div>I'm confused with the addresses.</div><div>On the controller side I open slave device at 0x36 and expect BMC to appear at 0x10 (all in i2cdetect notation).</div><div>So I assume that in ipmb-channels.json must be the following:</div><div> <div>"type": "ipmb",</div><div>"slave-path": "/dev/ipmb-6",</div><div>"bmc-addr": 34,</div><div>"remote-addr": 108</div><div> </div><div>But ipmbbridged ignores this 34 (0x11 shifted left by 1 bit), instead it instantiates device at 0x10 and the re-instantiate it at what is commanded by some service. What service should it be?  updateSlaveAddrHandler is never called.</div><div> </div><div>To override this I've manually changed 0x1010 to 0x1011 in sources and voila - I can now receive the requests from the controller, but it interprets ipmbbridged responses in a wrong manner.</div><div> </div><div>I've added some debug (actually a lot of :)) to ipmbbridged, so it dumps what is sent via I2C. Here is the response:</div><div>=================================================================</div><div><div>bmcSlaveAddress=0x36 netfn=0x07 lun=0x00 cmd=0x01 cc=0x00</div><div>>>>> 17 6c 1e 76 36 0c 01 00 23 00 02 08 02 bf 3d 2b 00 00 00 ab 00 00 0d af</div><div>=================================================================</div><div>But the controller can't interpret it right:</div><div>=================================================================</div><div>ipmi-i2c 2-0011: IPMI message handler: BMC returned incorrect response, expected netfn 7 cmd 1, got netfn 7 cmd c</div><div>=================================================================</div><div> </div><div>I'm not sure if it's a problem in controller's IPMB implementation, or it's the wrong addresses, but this controller works fine with other BMC over IPMB.</div></div><div>Could you please clarify what should be in bmc-addr and remote-addr in ipmb-channels.json?</div><div> </div><div>Thank you!</div></div><div> </div><div>29.04.2020, 13:05, "Bhat, Sumanth" <<a href="mailto:sumanth.bhat@intel.com">sumanth.bhat@intel.com</a>>:</div><blockquote><div lang="EN-US"><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Hi Konstantin,</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">   Ipmbbridge is the right service. Please override the <a href="https://github.com/openbmc/ipmbbridge/blob/master/ipmb-channels.json"> https://github.com/openbmc/ipmbbridge/blob/master/ipmb-channels.json</a> with the IPMB channel relevant on your board.</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Thanks,</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Sumanth</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><strong>From:</strong> openbmc <<a href="mailto:openbmc-bounces+sumanth.bhat=intel.com@lists.ozlabs.org">openbmc-bounces+sumanth.bhat=intel.com@lists.ozlabs.org</a>> <strong>On Behalf Of </strong>Konstantin Klubnichkin<br /><strong>Sent:</strong> Wednesday, April 29, 2020 3:29 PM<br /><strong>To:</strong> <a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br /><strong>Subject:</strong> Polling OpenBMC using IPMB</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Hello all!</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">I've got a Purley motherboard with one of the I2C buses going out from AST2500 to external controller.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">It gets BMC data (sensors, MAC address, etc) by polling it with IPMB.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">I'm trying to find out how to implement it in OpenBMC.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Is it ipmbbridge service used for this?</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Thank you!</p></div></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">-- </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Best regards,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Konstantin Klubnichkin,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">lead firmware engineer,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">server hardware R&D group,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Yandex Moscow office.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">tel: +7-903-510-33-33</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div></div></div></blockquote><div> </div><div> </div><div>-- </div><div>Best regards,</div><div>Konstantin Klubnichkin,</div><div>lead firmware engineer,</div><div>server hardware R&D group,</div><div>Yandex Moscow office.</div><div>tel: +7-903-510-33-33</div><div> </div>