<html xmlns:v="urn:schemas-microsoft-com:vml" 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:"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;}
/* Style Definitions */
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.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" style="word-wrap:break-word">
<p style="font-family:Calibri;font-size:10pt;color:#000000;margin:5pt;" align="Left">
TCS Confidential<br>
</p>
<br>
<div>
<div class="WordSection1">
<p class="MsoPlainText">Hi Stefan,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Please find below my answers inline.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks,<o:p></o:p></p>
<p class="MsoPlainText">Sandeep.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Stefan Berger <stefanb@linux.ibm.com> <br>
Sent: Friday, May 5, 2023 6:56 PM<br>
To: Sandeep Kumar <sandeep.pkumar@tcs.com>; Cédric Le Goater <clg@kaod.org>; openbmc@lists.ozlabs.org; Ninad Palsule <ninad@linux.ibm.com>; Joel Stanley <jms@jms.id.au>; Andrew Jeffery <andrew@aj.id.au><br>
Subject: Re: Integrating swtpm(as a software TPM) with OpenBMC on Qemu</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">"External email. Open with Caution"<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 5/5/23 01:40, Sandeep Kumar wrote:<o:p></o:p></p>
<p class="MsoPlainText">> TCS Confidential<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Hi Stefan,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Stefan: Is the kernel configured in the same way? Are you using the same kernel version?<o:p></o:p></p>
<p class="MsoPlainText">> Ans:<o:p></o:p></p>
<p class="MsoPlainText">> I am using the Kernel version coming with the latest openBMC without any changes.<o:p></o:p></p>
<p class="MsoPlainText">> Kernel version used : Linux evb-ast2600 6.1.15-580639a #1 SMP
<o:p></o:p></p>
<p class="MsoPlainText">> Thu Apr 6 00:55:09 UTC 2023 armv71 GNU/Linux<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Stefan: What is the output of this? find /sys/class/tpm | grep pcr<o:p></o:p></p>
<p class="MsoPlainText">> Ams: find: /sys/class/tpm: No such file or directory.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Could you please point to the right version of kernel which has all these changes ?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I am not aware of changes in the Linux kernel for TPM I2C and why it would not work in this kernel version.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Does this show any files?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">find /sys | grep pcr<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">Sandeep: It doesn't show any files.
<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_device<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">[ 273.273089] i2c i2c-12: new_device: Instantiated device tpm_tis_i2c at 0x2e<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~#<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# find /sys | grep pcr<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~#<o:p></o:p></span></b></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText">Do /dev/tpm0 and /dev/tpmrm0 appear after the echo ? What does dmesg show related to tpm (dmesg | grep -i tpm)?<o:p></o:p></p>
<p class="MsoPlainText"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">Sandeep: I don’t see /dev/tpm0 and /dev/tpmrm0 after the echo. Output as below,
<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_device<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">[ 273.273089] i2c i2c-12: new_device: Instantiated device tpm_tis_i2c at 0x2e<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~#<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# find /sys | grep pcr<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~#<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# ls /dev/tpm*<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">ls: /dev/tpm*: No such file or directory<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~# dmesg | grep -i tpm<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">[ 6.290898] systemd[1]: systemd 253.1^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR -IMA -SMACK +SECCOMP -GCRYPT -GNUTLS
-OPENSSL -ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC -KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON -UTMP -SYSVINIT default-hierarchy=unified)<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">[ 273.273089] i2c i2c-12: new_device: Instantiated device tpm_tis_i2c at 0x2e<o:p></o:p></span></b></p>
<p class="MsoPlainText"><b><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">root@evb-ast2600:~#<o:p></o:p></span></b></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> Stefan<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Thanks,<o:p></o:p></p>
<p class="MsoPlainText">> Sandeep.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> -----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">> From: Stefan Berger <<a href="mailto:stefanb@linux.ibm.com"><span style="color:windowtext;text-decoration:none">stefanb@linux.ibm.com</span></a>><o:p></o:p></p>
<p class="MsoPlainText">> Sent: Thursday, May 4, 2023 7:30 PM<o:p></o:p></p>
<p class="MsoPlainText">> To: Sandeep Kumar <<a href="mailto:sandeep.pkumar@tcs.com"><span style="color:windowtext;text-decoration:none">sandeep.pkumar@tcs.com</span></a>>; Cédric Le Goater
<o:p></o:p></p>
<p class="MsoPlainText">> <<a href="mailto:clg@kaod.org"><span style="color:windowtext;text-decoration:none">clg@kaod.org</span></a>>;
<a href="mailto:openbmc@lists.ozlabs.org"><span style="color:windowtext;text-decoration:none">openbmc@lists.ozlabs.org</span></a>; Ninad Palsule
<o:p></o:p></p>
<p class="MsoPlainText">> <<a href="mailto:ninad@linux.ibm.com"><span style="color:windowtext;text-decoration:none">ninad@linux.ibm.com</span></a>>; Joel Stanley <<a href="mailto:jms@jms.id.au"><span style="color:windowtext;text-decoration:none">jms@jms.id.au</span></a>>;
Andrew Jeffery <o:p></o:p></p>
<p class="MsoPlainText">> <<a href="mailto:andrew@aj.id.au"><span style="color:windowtext;text-decoration:none">andrew@aj.id.au</span></a>><o:p></o:p></p>
<p class="MsoPlainText">> Subject: Re: Integrating swtpm(as a software TPM) with OpenBMC on Qemu<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> "External email. Open with Caution"<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> On 5/4/23 05:12, Sandeep Kumar wrote:<o:p></o:p></p>
<p class="MsoPlainText">>> TCS Confidential Hi C, I was able to build and run the image(for<o:p></o:p></p>
<p class="MsoPlainText">>> evb-ast2600) with swtpm. Few issues observed, If I run with the
<o:p></o:p></p>
<p class="MsoPlainText">>> flash. img provided in your github link(https: //github.<o:p></o:p></p>
<p class="MsoPlainText">>> com/legoater/qemu-aspeed-boot/tree/master/images) everything ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization.<o:p></o:p></p>
<p class="MsoPlainText">>> ZjQcmQRYFpfptBannerEnd<o:p></o:p></p>
<p class="MsoPlainText">>> TCS Confidential<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> Hi C,<o:p></o:p></p>
<p class="MsoPlainText">>> I was able to build and run the image(for evb-ast2600) with swtpm.
<o:p></o:p></p>
<p class="MsoPlainText">>> Few issues observed,<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> 1. If I run with the flash.img provided in your github link(_https://github.com/legoater/qemu-aspeed-boot/tree/master/images_ <<a href="https://github.com/legoater/qemu-aspeed-boot/tree/master/images"><span style="color:windowtext;text-decoration:none">https://github.com/legoater/qemu-aspeed-boot/tree/master/images</span></a>>)
everything works as expected, i.e I get the below output.<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> *# echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_device*<o:p></o:p></p>
<p class="MsoPlainText">>> *[ 182.735902] tpm_tis_i2c 12-002e: 2.0 TPM (device-id 0x1, rev-id<o:p></o:p></p>
<p class="MsoPlainText">>> 1)* *[ 182.773885] i2c i2c-12: new_device: Instantiated device
<o:p></o:p></p>
<p class="MsoPlainText">>> tpm_tis_i2c at 0x2e*<o:p></o:p></p>
<p class="MsoPlainText">>> *#*<o:p></o:p></p>
<p class="MsoPlainText">>> *#*<o:p></o:p></p>
<p class="MsoPlainText">>> *# cat /sys/class/tpm/tpm0/pcr-sha256/0*<o:p></o:p></p>
<p class="MsoPlainText">>> *B804724EA13F52A9072BA87FE8FDCC497DFC9DF9AA15B9088694639C431688E0*<o:p></o:p></p>
<p class="MsoPlainText">>> *#*<o:p></o:p></p>
<p class="MsoPlainText">>> *#*<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> 2. If I run it with the locally built image, I get this error,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Is the kernel configured in the same way? Are you using the same kernel version?<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> *root@evb-ast2600:~# echo tpm_tis_i2c 0x2e ><o:p></o:p></p>
<p class="MsoPlainText">>> /sys/bus/i2c/devices/i2c-12/new_device*<o:p></o:p></p>
<p class="MsoPlainText">>> *[ 174.063597] i2c i2c-12: new_device: Instantiated device
<o:p></o:p></p>
<p class="MsoPlainText">>> tpm_tis_i2c at 0x2e*<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> What is the output of this?<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> find /sys/class/tpm | grep pcr<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Stefan<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>> *root@evb-ast2600:~# cat /sys/class/tpm/tpm0/pcr-sha256/0*<o:p></o:p></p>
<p class="MsoPlainText">>> *cat: can't open '/sys/class/tpm/tpm0/pcr-sha256/0': No such file or<o:p></o:p></p>
<p class="MsoPlainText">>> directory*<o:p></o:p></p>
<p class="MsoPlainText">>> *root@evb-ast2600:~#*<o:p></o:p></p>
<p class="MsoPlainText">>> *root@evb-ast2600:~#*<o:p></o:p></p>
<p class="MsoPlainText">>> Please do let me know about what has been done to write the values
<o:p></o:p></p>
<p class="MsoPlainText">>> into “*/sys/class/tpm/tpm0/pcr-sha256/0**” . * Thanks, Sandeep.<o:p></o:p></p>
<p class="MsoPlainText">>> _____________________________________________<o:p></o:p></p>
<p class="MsoPlainText">>> *From:* Sandeep Kumar<o:p></o:p></p>
<p class="MsoPlainText">>> *Sent:* Thursday, April 20, 2023 5:45 PM<o:p></o:p></p>
<p class="MsoPlainText">>> *To:* Cédric Le Goater <<a href="mailto:clg@kaod.org"><span style="color:windowtext;text-decoration:none">clg@kaod.org</span></a>>;
<a href="mailto:openbmc@lists.ozlabs.org"><span style="color:windowtext;text-decoration:none">openbmc@lists.ozlabs.org</span></a>;
<o:p></o:p></p>
<p class="MsoPlainText">>> Ninad Palsule <<a href="mailto:ninad@linux.ibm.com"><span style="color:windowtext;text-decoration:none">ninad@linux.ibm.com</span></a>>; Joel Stanley <<a href="mailto:jms@jms.id.au"><span style="color:windowtext;text-decoration:none">jms@jms.id.au</span></a>>;
<o:p></o:p></p>
<p class="MsoPlainText">>> Andrew Jeffery <<a href="mailto:andrew@aj.id.au"><span style="color:windowtext;text-decoration:none">andrew@aj.id.au</span></a>><o:p></o:p></p>
<p class="MsoPlainText">>> *Subject:* RE: Integrating swtpm(as a software TPM) with OpenBMC on
<o:p></o:p></p>
<p class="MsoPlainText">>> Qemu Hi C, How to build this image =><o:p></o:p></p>
<p class="MsoPlainText">>> *obmc-phosphor-image.rootfs.wic.qcow2* ? In openBmc build directory we don’t get this image built.<o:p></o:p></p>
<p class="MsoPlainText">>> Also, remaining image formats used while running on qemu are available in the build directory. i.e fitImage-linux.bin, aspeed-bmc-ibm-rainier.dtb and obmc-phosphor-initramfs.rootfs.cpio.xz .<o:p></o:p></p>
<p class="MsoPlainText">>> Please advise if we have to build openbmc stack in a different way
<o:p></o:p></p>
<p class="MsoPlainText">>> than the standard procedure. We follow the below steps for build, 1. .<o:p></o:p></p>
<p class="MsoPlainText">>> setup Romulus 2. bitbake obmc-phosphor-image Thanks, Sandeep.<o:p></o:p></p>
<p class="MsoPlainText">>> -----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">>> From: Sandeep Kumar<o:p></o:p></p>
<p class="MsoPlainText">>> Sent: Wednesday, April 19, 2023 3:00 PM<o:p></o:p></p>
<p class="MsoPlainText">>> To: Cédric Le Goater <<a href="mailto:_clg@kaod.org_%20%3cmailto:clg@kaod.org"><span style="color:windowtext;text-decoration:none">_clg@kaod.org_ <mailto:clg@kaod.org</span></a>>>;
<o:p></o:p></p>
<p class="MsoPlainText">>> <a href="mailto:_openbmc@lists.ozlabs.org_"><span style="color:windowtext;text-decoration:none">_openbmc@lists.ozlabs.org_</span></a> <<a href="mailto:openbmc@lists.ozlabs.org"><span style="color:windowtext;text-decoration:none">mailto:openbmc@lists.ozlabs.org</span></a>>;
Ninad <o:p></o:p></p>
<p class="MsoPlainText">>> Palsule <<a href="mailto:_ninad@linux.ibm.com_%20%3cmailto:ninad@linux.ibm.com"><span style="color:windowtext;text-decoration:none">_ninad@linux.ibm.com_ <mailto:ninad@linux.ibm.com</span></a>>>; Joel
<o:p></o:p></p>
<p class="MsoPlainText">>> Stanley <<a href="mailto:_jms@jms.id.au_%20%3cmailto:jms@jms.id.au"><span style="color:windowtext;text-decoration:none">_jms@jms.id.au_ <mailto:jms@jms.id.au</span></a>>>; Andrew Jeffery
<o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:_andrew@aj.id.au_%20%3cmailto:andrew@aj.id.au"><span style="color:windowtext;text-decoration:none">_andrew@aj.id.au_ <mailto:andrew@aj.id.au</span></a>>><o:p></o:p></p>
<p class="MsoPlainText">>> Subject: RE: Integrating swtpm(as a software TPM) with OpenBMC on
<o:p></o:p></p>
<p class="MsoPlainText">>> Qemu Hi C, Got it working. Looks like slirp is no longer supported on
<o:p></o:p></p>
<p class="MsoPlainText">>> ubnutu 18.04. have upgraded to a newer version and is working now.<o:p></o:p></p>
<p class="MsoPlainText">>> Thanks,<o:p></o:p></p>
<p class="MsoPlainText">>> Sandeep.<o:p></o:p></p>
<p class="MsoPlainText">>> -----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">>> From: Cédric Le Goater <<a href="mailto:clg@kaod.org%20%3cmailto:clg@kaod.org"><span style="color:windowtext;text-decoration:none">clg@kaod.org <mailto:clg@kaod.org</span></a>>><o:p></o:p></p>
<p class="MsoPlainText">>> Sent: Wednesday, April 19, 2023 2:26 PM<o:p></o:p></p>
<p class="MsoPlainText">>> To: Sandeep Kumar <sandeep.pkumar@tcs.com <o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:sandeep.pkumar@tcs.com"><span style="color:windowtext;text-decoration:none">mailto:sandeep.pkumar@tcs.com</span></a>>>;
<a href="mailto:openbmc@lists.ozlabs.org"><span style="color:windowtext;text-decoration:none">openbmc@lists.ozlabs.org</span></a>
<o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:openbmc@lists.ozlabs.org"><span style="color:windowtext;text-decoration:none">mailto:openbmc@lists.ozlabs.org</span></a>>; Ninad Palsule <ninad@linux.ibm.com
<o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:ninad@linux.ibm.com"><span style="color:windowtext;text-decoration:none">mailto:ninad@linux.ibm.com</span></a>>>; Joel Stanley <jms@jms.id.au
<o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:jms@jms.id.au"><span style="color:windowtext;text-decoration:none">mailto:jms@jms.id.au</span></a>>>; Andrew Jeffery <andrew@aj.id.au
<o:p></o:p></p>
<p class="MsoPlainText">>> <<a href="mailto:andrew@aj.id.au"><span style="color:windowtext;text-decoration:none">mailto:andrew@aj.id.au</span></a>>><o:p></o:p></p>
<p class="MsoPlainText">>> Subject: Re: Integrating swtpm(as a software TPM) with OpenBMC on
<o:p></o:p></p>
<p class="MsoPlainText">>> Qemu "External email. Open with Caution"<o:p></o:p></p>
<p class="MsoPlainText">>> Hello Sandeep<o:p></o:p></p>
<p class="MsoPlainText">>> On 4/18/23 09:45, Sandeep Kumar wrote:<o:p></o:p></p>
<p class="MsoPlainText">>>> TCS Confidential<o:p></o:p></p>
<p class="MsoPlainText">>>><o:p> </o:p></p>
<p class="MsoPlainText">>>> Hi C,<o:p></o:p></p>
<p class="MsoPlainText">>>> Built the qemu from your branch. Few issues, *$ ./qemu-system-arm -m<o:p></o:p></p>
<p class="MsoPlainText">>>> 256 -M romulus-bmc -nographic -drive <o:p></o:p></p>
<p class="MsoPlainText">>>> file=./obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd -net
<o:p></o:p></p>
<p class="MsoPlainText">>>> nic -net <o:p></o:p></p>
<p class="MsoPlainText">>>> user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:4443-:443,hostfw<o:p></o:p></p>
<p class="MsoPlainText">>>> d<o:p></o:p></p>
<p class="MsoPlainText">>>> =<o:p></o:p></p>
<p class="MsoPlainText">>>> tcp:127.0.0.1:8880-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:<o:p></o:p></p>
<p class="MsoPlainText">>>> 1<o:p></o:p></p>
<p class="MsoPlainText">>>> 2<o:p></o:p></p>
<p class="MsoPlainText">>>> 7.0.0.1:6623-:623,hostfwd=udp:127.0.0.1:6664-:664,hostname=qemu*<o:p></o:p></p>
<p class="MsoPlainText">>>> *qemu-system-arm: -net<o:p></o:p></p>
<p class="MsoPlainText">>>> user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:4443-:443,hostfw<o:p></o:p></p>
<p class="MsoPlainText">>>> d<o:p></o:p></p>
<p class="MsoPlainText">>>> =<o:p></o:p></p>
<p class="MsoPlainText">>>> tcp:127.0.0.1:8880-:80,hostfwd=tcp:127.0.0.1:2200-:2200,hostfwd=udp:<o:p></o:p></p>
<p class="MsoPlainText">>>> 1<o:p></o:p></p>
<p class="MsoPlainText">>>> 2<o:p></o:p></p>
<p class="MsoPlainText">>>> 7.0.0.1:6623-:623,hostfwd=udp:127.0.0.1:6664-:664,hostname=qemu:<o:p></o:p></p>
<p class="MsoPlainText">>>> network backend 'user' is not compiled into this binary* I didn’t
<o:p></o:p></p>
<p class="MsoPlainText">>>> enable the slirp package I guess. So enabled it while running
<o:p></o:p></p>
<p class="MsoPlainText">>>> configure, *$ ../configure --enable-slirp*<o:p></o:p></p>
<p class="MsoPlainText">>>> *........*<o:p></o:p></p>
<p class="MsoPlainText">>>> *Run-time dependency slirp found: NO (tried pkgconfig)*<o:p></o:p></p>
<p class="MsoPlainText">>>> *../meson.build:681:2: ERROR: Dependency "slirp" not found, tried<o:p></o:p></p>
<p class="MsoPlainText">>>> pkgconfig* *A full log can be found at <o:p></o:p></p>
<p class="MsoPlainText">>>> /home/tcs/work/sandeep/measured_boot/ibm_qemu/qemu/build/meson-logs/<o:p></o:p></p>
<p class="MsoPlainText">>>> m<o:p></o:p></p>
<p class="MsoPlainText">>>> e<o:p></o:p></p>
<p class="MsoPlainText">>>> son-log.txt*<o:p></o:p></p>
<p class="MsoPlainText">>>> *NOTICE: You are using Python 3.6 which is EOL. Starting with
<o:p></o:p></p>
<p class="MsoPlainText">>>> v0.62.0, Meson will require Python 3.7 or newer*<o:p></o:p></p>
<p class="MsoPlainText">>>> *ERROR: meson setup failed*<o:p></o:p></p>
<p class="MsoPlainText">>>> I have already installed slirp locally, but still getting the above error.<o:p></o:p></p>
<p class="MsoPlainText">>> Did you install the libslirp-dev or libslirp-devel package ?<o:p></o:p></p>
<p class="MsoPlainText">>> C.<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> TCS Confidential<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">>> =====-----=====-----=====<o:p></o:p></p>
<p class="MsoPlainText">>> Notice: The information contained in this e-mail message and/or
<o:p></o:p></p>
<p class="MsoPlainText">>> attachments to it may contain confidential or privileged information.<o:p></o:p></p>
<p class="MsoPlainText">>> If you are not the intended recipient, any dissemination, use,
<o:p></o:p></p>
<p class="MsoPlainText">>> review, distribution, printing or copying of the information
<o:p></o:p></p>
<p class="MsoPlainText">>> contained in this e-mail message and/or attachments to it are
<o:p></o:p></p>
<p class="MsoPlainText">>> strictly prohibited. If you have received this communication in
<o:p></o:p></p>
<p class="MsoPlainText">>> error, please notify us by reply e-mail or telephone and immediately
<o:p></o:p></p>
<p class="MsoPlainText">>> and permanently delete the message and any attachments. Thank you<o:p></o:p></p>
<p class="MsoPlainText">>><o:p> </o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> TCS Confidential<o:p></o:p></p>
</div>
</div>
<br>
<p style="font-family:Calibri;font-size:10pt;color:#000000;margin:5pt;" align="Left">
TCS Confidential<br>
</p>
</body>
</html>