<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hi Raj,</div>
<div dir="ltr" > </div>
<div dir="ltr" >For factory reset,</div>
<div dir="ltr" >you can issue following commands at OpenBMC prompt.</div>
<div dir="ltr" >/sbin/fw_setenv rwreset true</div>
<div dir="ltr" ><div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" > </div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >After the above command, Do BMC reboot. But you should have your serial connection with you.</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >Because you will loose your BMC IP address settings as well.</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" > </div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >You can do factory reset from U-boot prompt as well.</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" ><div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >setenv rwreset true</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >saveenv</div></div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" > </div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >Then let it boot. Once it booted to BMC, you can confirm by checking your BMC ip address etc.</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" > </div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >Wtih regards,</div>
<div style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:&#xA;" >Sivas</div></div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: rgrs <rgrs@protonmail.com><br>Sent by: "openbmc" <openbmc-bounces+sivas.srr=in.ibm.com@lists.ozlabs.org><br>To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org><br>Cc:<br>Subject: [EXTERNAL] How can I reset BMC to factory-defaults?<br>Date: Wed, Sep 25, 2019 12:22 PM<br> <br><font size="3" >Hi Everyone,</font><br><br><font size="3" >I think my flash/filesystem is corrupt, I get new certs generated at every reboot of BMC.</font><br><font size="3" >None of the settings are persistent. </font><br><br><font size="3" >Is there a way to restore/recreate the partitions without using SPI programmer?</font><br><br><font size="3" >Thanks,</font><br><font size="3" >Raj</font></blockquote>
<div dir="ltr" > </div></div><BR>