<div dir="ltr">Hi Adriana,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 2:15 PM, Adriana Kobylak <span dir="ltr"><<a href="mailto:anoo@linux.vnet.ibm.com" target="_blank">anoo@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Here is a first draft proposal for image management (code update) in OpenBMC for feedback.<br>
<br>
General:<br>
* Move to UBI volume management (on the BMC and PNOR chips), which provides dynamic partitioning and wear-leveling. In a limited flash space environment there might be the need to re-allocate partition space and resizing in a static partitioning implementation can be very painful.<br>
* Use CRAMFS for read-only partitions, and UBIFS for read-write partitions.<br>
<br>
PNOR:<br>
* Implement a new mboxd based on Cyril’s (see Cyril’s email “Mailbox daemon”) that handles dbus objects, generates a virtual PNOR for UBI content, etc.<br>
* Move to memory-based access instead of the current LPC-to-AHD path.<br>
* Allocate just enough space in the initial window for Hostboot’s TOC, HBB, and HBI partitions, grow as required.<br>
* Ability to ‘patch’ by copying a Hostboot image *.bin into a designated directory (/usr/local/ for example).<br>
* Tool to write from PNOR image to BMC format. Implement UBI initially but it could be extended to support different volume managements on other BMCs.<br>
<br>
BMC:<br>
*Save multiple firmware versions, starting with 2, to provide the ability to roll-back if needed. If single BMC chip system, save both versions there. If two BMC chip system, save other version in 2nd chip.<br>
* Implement various levels of ‘persistency’, such as dev, factory, field. Dev persistency would allow for local patches (/usr/local/ for example) that can be cleared before shipping to customers. Factory mode could delete the location where user data such as network settings resides but preserves the mac address and uuid for example. Etc.<br></blockquote><div><br></div><div>I'm interested in roll-back feature, do you have something working already or is this still under construction?</div><div><br></div><div>Sorry, I could not find anything in the docs or code about it.</div><div><br></div><div>Thanks </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Adriana<br>
______________________________<wbr>_________________<br>
openbmc mailing list<br>
<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/<wbr>listinfo/openbmc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><b>M</b>axim <b>S</b>loyko</div></div>
</div></div>