summaryrefslogtreecommitdiffstats
path: root/static
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Update to match docs repoGunnar Mills2018-09-112-3/+6
| | | | | | | | Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17dd8054 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Clang 6 updatesGunnar Mills2018-09-071-2/+2
| | | | | | | Just some minor fixes. Change-Id: I000c456e51c62220d7a5fed8100cfc6c13ef9551 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* static layout: Support field modeLei YU2018-08-301-1/+7
| | | | | | | | | | | Enable support for field mode, which sets "fieldmode=true" in u-boot env. Tested: Verify field mode is enabled via REST API, and verify it is still enabled after BMC reboot. Change-Id: I9ff01a51260d1f08021e0ba7ade16fd48c8bb24e Signed-off-by: Lei YU <mine260309@gmail.com>
* static layout: support factory resetLei YU2018-08-201-1/+11
| | | | | | | | | | | | | Implement factory reset for static flash layout, that starts obmc-flash-bmc-setenv to set factory-reset u-boot env and let init to do the cleanup. Tested: Invoke factory reset on /xyz/openbmc_project/software and verify everything in rwfs is deleted, and after reboot, the BMC acts like a fresh new one. Change-Id: I20e361519af6c3c12703315070debabd8cf88060 Signed-off-by: Lei YU <mine260309@gmail.com>
* Use separated images for fixed flash layoutLei YU2018-07-261-1/+1
| | | | | | | | | | | | For fixed flash layout code update, it was using the whole image-bmc. For future features like image verification during boot, it needs to use separated images and separated keys. So change the image-bmc to separated images. Change-Id: I6cc56f82c786125bb4386af5ea1d931afed7901d Tested: Do code update on Romulus without issue. Signed-off-by: Lei YU <mine260309@gmail.com>
* Move setting the priority U-Boot variable to ubiAdriana Kobylak2018-07-191-0/+5
| | | | | | | | | | | | | | | The service that sets the priority value is unique to the ubi layout because there is only one version at a time on the static layout. Move the calling of the service to the ubi implementation. Tested: - Witherspoon: Priorities are still set. - Romulus: The BMC.Updater app does not core dump with the latest sdbusplus changes due to calling a non-existent service. Change-Id: Ica1c68f00d5cb43c51ee09c5a3851613edf941d5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* item_updater: sort ubi specific codeLei YU2018-07-172-1/+49
| | | | | | | | | | Add item_updater_helper and implement it in ubi and static layouts. Tested: Build this repo on both Romulus and Witherspoon OK; Tested on Romulus and Witherspoon that code update works fine. Change-Id: I706cfe63900f89bb41672dcc745b3483e06838c7 Signed-off-by: Lei YU <mine260309@gmail.com>
* Refactor of bmcImagesLei YU2018-07-171-1/+1
| | | | | | | | | | | | | | bmcImages were in image_verify.hpp but it is used not only in image verification, but elsewhere. Move it into a more generic header file, images.hpp, so it makes more clear that users of bmcImages include images.hpp instead of image_verify.hpp Tested: Verify the code pass the build. Change-Id: If9adf315eee9047d9d08ab93ed7c0ff3c97f7a1e Signed-off-by: Lei YU <mine260309@gmail.com>
* Support non-ubifs layoutLei YU2018-07-172-0/+45
Add ubifs_layout as config argument, so a build could select if it needs ubifs_layout feature or not. Add code to update non-ubifs layout image by 1. Putting the bmc image in /run/initramfs; 2. Set its state as Active when it is ready to update 3. Let user to initiate the reboot request Tested: Generate a tarball with Romulus bmc image and manifest, update it with REST API (image upload, activation, and reboot) Verify the code update works well in WebUI. Change-Id: I5b122211fafb7cb9d96ee67317db139ed0b7d0a7 Signed-off-by: Lei YU <mine260309@gmail.com>
OpenPOWER on IntegriCloud