<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@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:Roboto;
panose-1:2 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"\@MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.pfptpreheader1
{mso-style-name:pfptpreheader1;
display:none;}
span.pfpttitle
{mso-style-name:pfpttitle;}
span.pfptsubtitle
{mso-style-name:pfptsubtitle;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello Shakeeb and Tom,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don’t see any issues with version for BMC in upstream version as well. Software versions are exposed in bmc updater object rather than version object and see following command yields BMC version<o:p></o:p></p>
<p class="p1"><span class="s1">busctl get-property xyz.openbmc_project.Software.BMC.Updater</span><span class="apple-converted-space">
</span><span class="s1">/xyz/openbmc_project/software/1950470f xyz.openbmc_project.Software.Version Version</span><o:p></o:p></p>
<p class="p1"><span class="s1">s "2.9.0-dev-1057-gfe5603705"</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">-Vijay<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">openbmc <openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org> on behalf of TOM JOSEPH <tomjose@linux.vnet.ibm.com><br>
<b>Date: </b>Thursday, November 5, 2020 at 9:46 PM<br>
<b>To: </b>Shakeeb B K <shakeebbk@gmail.com><br>
<b>Cc: </b>"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org><br>
<b>Subject: </b>Re: Firmware Version in ipmi mc info<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p>Hello Shakeeb,<br>
<br>
Typically there is a D-Bus object for each version and that implements the xyz.openbmc_project.Software.Version interface. /xyz/openbmc_project/software doesn't implement the interface.<br>
<br>
busctl tree xyz.openbmc_project.Software.BMC.Updater<br>
└─/xyz<br>
└─/xyz/openbmc_project<br>
└─/xyz/openbmc_project/software<br>
<span style="font-family:"MS Gothic"">├</span>─/xyz/openbmc_project/software/6b6a7c53<br>
└─/xyz/openbmc_project/software/76174d14<o:p></o:p></p>
<p>I guess the upstream implementation of this command is broken with the latest version format. We discussed this in the community, work is not done yet.
<a href="https://lists.ozlabs.org/pipermail/openbmc/2020-August/022598.html">https://lists.ozlabs.org/pipermail/openbmc/2020-August/022598.html</a><o:p></o:p></p>
<p class="MsoNormal">Regards,<br>
Tom <o:p></o:p></p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 06-11-2020 09:38, Shakeeb B K wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span class="pfptpreheader1"><span style="font-size:1.0pt;color:white">Hi Tom, Thanks for the reply. But it doesn't seem to work as expected. I'm looking at...
</span></span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;background:#9CA3A7;border-radius:4px">
<tbody>
<tr>
<td style="padding:12.0pt 12.0pt 12.0pt 12.0pt;border-radius:4px">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;max-width:100%">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;background:#9CA3A7">
<tbody>
<tr>
<td width="100%" valign="top" style="width:100.0%;padding:0in 0in 0in 0in">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span class="pfpttitle"><b><span style="font-size:13.5pt;font-family:Roboto">This Message Is From an External Sender</span></b></span>
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span class="pfptsubtitle"><span style="font-size:10.0pt;font-family:Roboto">This message came from outside your organization.</span></span>
<o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal">Hi Tom, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for the reply.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But it doesn't seem to work as expected. I'm looking at the witherspoon-bmc on QEMU.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">root@witherspoon:~# systemctl status xyz.openbmc_project.Software.BMC.Updater<br>
* <b>xyz.openbmc_project.Software.BMC.Updater.service</b> - OpenBMC Software Update Manager<br>
Loaded: loaded (/lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service; enabled; vendor preset: enabled)<br>
Drop-In: /lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service.d<br>
`-software-bmc-updater.conf<br>
Active: <b>active (running)</b> since Thu 2020-11-05 14:10:57 UTC; 13h ago<br>
Main PID: 387 (phosphor-image-)<br>
CGroup: /system.slice/xyz.openbmc_project.Software.BMC.Updater.service<br>
`-387 /usr/bin/phosphor-image-updater<br>
<br>
Nov 05 14:10:53 witherspoon systemd[1]: Starting OpenBMC Software Update Manager...<br>
Nov 05 14:10:57 witherspoon systemd[1]: Started OpenBMC Software Update Manager.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New""><br>
root@witherspoon:~# busctl get-property xyz.openbmc_project.State.BMC /xyz/openbmc_project/state/bmc0 xyz.openbmc_project.State.BMC CurrentBMCState<br>
s "<b>xyz.openbmc_project.State.BMC.BMCState.Ready</b>"</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-family:"Courier New"">root@witherspoon:~# busctl get-property xyz.openbmc_project.Software.Version /xyz/openbmc_project/software xyz.openbmc_project.Software.Version Version<br>
Failed to get property Version on interface xyz.openbmc_project.Software.Version: Unknown interface xyz.openbmc_project.Software.Version or property Version.</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">root@witherspoon:~# busctl introspect --no-pager xyz.openbmc_project.Software.Version /xyz/openbmc_project/software
<br>
NAME TYPE SIGNATURE RESULT/VALUE FLAGS<br>
org.freedesktop.DBus.Introspectable interface - - -<br>
.Introspect method - s -<br>
org.freedesktop.DBus.ObjectManager interface - - -<br>
.GetManagedObjects method - a{oa{sa{sv}}} -<br>
.InterfacesAdded signal oa{sa{sv}} - -<br>
.InterfacesRemoved signal oas - -<br>
org.freedesktop.DBus.Peer interface - - -<br>
.GetMachineId method - s -<br>
.Ping method - - -<br>
org.freedesktop.DBus.Properties interface - - -<br>
.Get method ss v -<br>
.GetAll method s a{sv} -<br>
.Set method ssv - -<br>
.PropertiesChanged signal sa{sv}as - -</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Shakeeb<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Nov 6, 2020 at 8:37 AM TOM JOSEPH <<a href="mailto:tomjose@linux.vnet.ibm.com">tomjose@linux.vnet.ibm.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p>Hey Shakeeb,<br>
<br>
The service implementing the xyz.openbmc_project.Software.Version should be running in the case of a normal boot as well. In our systems the service is xyz.openbmc_project.Software.BMC.Updater and the Version property is populated when the BMCState is Ready.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Regards,<br>
Tom<o:p></o:p></p>
<div>
<p class="MsoNormal">On 05-11-2020 20:02, Shakeeb B K wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">Hi All, Currently the ipmi handler for "mc info" command depends on the "Version"...
</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;background:#9CA3A7;border-radius:4px">
<tbody>
<tr>
<td style="padding:12.0pt 12.0pt 12.0pt 12.0pt;border-radius:4px">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-radius:4px">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in;max-width:100%">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;background:#9CA3A7">
<tbody>
<tr>
<td width="100%" valign="top" style="width:100.0%;padding:0in 0in 0in 0in">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:Roboto">This Message Is From an External Sender</span></b>
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Roboto">This message came from outside your organization.</span>
<o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal">Hi All, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Currently the ipmi handler for "mc info" command depends on the "Version" property on interface xyz.openbmc_project.Software.Version. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But this is getting populated only on the image update path by phosphor-bmc-code-mgmt.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Shouldn't the version be set on a normal boot as well? Is this a gap in current implementation?
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Shakeeb<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</body>
</html>