<div dir="ltr">Thanks to Ed's response.<div>I could build the 'ipmbbridged' successfully.</div><div><br></div><div>I find the ipmbbridged can execute the below steps after rough review.</div><div><br></div><div>1. Wait for the incoming IPMB request from "/sys/bus/i2c/devices/0-1010/slave-mqueue"</div><div>2. Decode IPMB request from above 1 into netFn, rsLun, rqSA, seq, rqLun and cmd.</div><div>3. Send the 'ReceivedMessage' signal with <span class="gmail-gr_ gmail-gr_410 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-410" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">netFn</span>, <span class="gmail-gr_ gmail-gr_570 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-570" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">rsLun</span>, rqSA, seq, <span class="gmail-gr_ gmail-gr_436 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-436" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">rqLun</span> and cmd.</div><div>4. ipmbMessageSend is called after the 'ReceivedMessage' signal is received.</div><div>5. In ipmbMessageSend(), it encodes the IPMB packet using <span class="gmail-gr_ gmail-gr_410 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-410" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat"><span class="gmail-gr_ gmail-gr_796 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-796" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">netFn</span></span>, <span class="gmail-gr_ gmail-gr_570 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-570" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat"><span class="gmail-gr_ gmail-gr_619 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-619" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">rsLun</span></span>, rqSA, seq, <span class="gmail-gr_ gmail-gr_436 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-436" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat"><span class="gmail-gr_ gmail-gr_620 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-620" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat;color:inherit;font-size:inherit">rqLun</span></span> and cmd.</div><div>6. And then send IPMB packet into "/dev/i2c-0"</div><div><br></div><div>Some questions about the <span class="gmail-gr_ gmail-gr_60 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling gmail-gr-progress" id="gmail-60" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">ipmbbridged</span> daemon</div><div>1. how should I have "/sys/bus/i2c/devices/0-1010/slave-<span class="gmail-gr_ gmail-gr_190 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling" id="gmail-190" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">mqueue</span>" in my openbmc?</div><div>2. It doesn't seem any implementation to receive the IPMB response from "/dev/i2c-0", right?</div><div><br></div><div>Thanks.</div><div>BRs,</div><div>Henbin</div><div><br></div><div><div class="gmail_quote"><div dir="ltr">Tanous, Ed <<a href="mailto:ed.tanous@intel.com">ed.tanous@intel.com</a>> 於 2018年8月28日 週二 下午2:14寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_4010948474126502912WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">This was a change in yocto made to the i2c-tools repo. It formerly copied i2c-dev.h to i2c-dev-user.h to help with the duplication between the two headers.
In modern packages, smbus.h should be used, which is part of the refactor we’re doing that’s in progress.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I will update the code review when it’s done, but it might take some time, as we’re tackling several other things at the same time.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-Ed<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_4010948474126502912__MailEndCompose"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></a></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><a name="m_4010948474126502912______replyseparator"></a><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Henbin Chang [mailto:<a href="mailto:henbinchang@gmail.com" target="_blank">henbinchang@gmail.com</a>]
<br>
<b>Sent:</b> Monday, August 27, 2018 7:02 PM<br>
<b>To:</b> Tanous, Ed <<a href="mailto:ed.tanous@intel.com" target="_blank">ed.tanous@intel.com</a>>; OpenBMC Maillist <<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a>><br>
<b>Subject:</b> [IPMBD] ipmbSend handling<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Ed,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I tried to build ipmbbridge but got the below error.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Could you please share where I should get 'linux/i2c-dev-user.h'?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">|....<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">| ../ipmbbridged.cpp:24:10: fatal error: linux/i2c-dev-user.h: No such file or directory<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">| #include <linux/i2c-dev-user.h><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">| ^~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">| compilation terminated.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">| ...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">BRs,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Henbin<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote></div></div></div>