<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Lei,<o:p></o:p></p>
<p class="MsoNormal">What’s your final purpose for this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now we already have KCS between host and bmc.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Kwin.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:13.5pt;font-family:SimSun;color:black">郁雷</span></b><span style="font-size:13.5pt;color:black;background:white"> </span><a href="mailto:openbmc%40lists.ozlabs.org?Subject=Re%3A%20Adding%20usb-ctrl%20from%20intel-bmc%20into%20phosphor-misc&In-Reply-To=%3CCAGm54UEDRmEQVQ-WaRiUa%2BfpxL0UUe-OZ4rwRZHVLTUJBZZb%3DA%40mail.gmail.com%3E" title="Adding usb-ctrl from intel-bmc into phosphor-misc"><span style="font-size:13.5pt">yulei.sh
 at bytedance.com</span></a><span style="font-size:13.5pt;color:black"><br>
<i>Wed May 27 13:07:45 AEST 2020</i></span><o:p></o:p></p>
<pre><span style="color:black">There is a script [usb-ctrl][1] hosted in intel-bmc.<o:p></o:p></span></pre>
<pre><span style="color:black">It supports the VirtualMedia feature by insert/eject files to the host<o:p></o:p></span></pre>
<pre><span style="color:black">as a USB mass-storage device.<o:p></o:p></span></pre>
<pre><span style="color:black">Comparing to the existing [state_hook][2] in jsnbd, it supports<o:p></o:p></span></pre>
<pre><span style="color:black">multiple UDCs, so it supports mount multiple files.<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">In addition, I have some updates on the usb-ctrl script to make it<o:p></o:p></span></pre>
<pre><span style="color:black">support the USB ECM device, which creates a USB ethernet device<o:p></o:p></span></pre>
<pre><span style="color:black">between BMC and the host.<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">So my proposal is to add the `usb-ctrl` script into the phosphor-misc<o:p></o:p></span></pre>
<pre><span style="color:black">repo so that it gets reviewed and could be used by upstream.<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">Any ideas?<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">[1]: <a href="https://github.com/Intel-BMC/openbmc/blob/intel/meta-openbmc-mods/meta-common/recipes-core/fw-update/files/usb-ctrl">https://github.com/Intel-BMC/openbmc/blob/intel/meta-openbmc-mods/meta-common/recipes-core/fw-update/files/usb-ctrl</a><o:p></o:p></span></pre>
<pre><span style="color:black">[2]: <a href="https://github.com/openbmc/openbmc/blob/master/meta-phosphor/aspeed-layer/recipes-connectivity/jsnbd/jsnbd/state_hook">https://github.com/openbmc/openbmc/blob/master/meta-phosphor/aspeed-layer/recipes-connectivity/jsnbd/jsnbd/state_hook</a><o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">-- <o:p></o:p></span></pre>
<pre><span style="color:black">BRs,<o:p></o:p></span></pre>
<pre><span style="color:black">Lei YU<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>