If the status is Image ready to apply then you can either initiate a reboot or call the Apply method to start the process of writing the flash. Note: the status will not advance from Writing images to flash without calling the GetUpdateProgress method. ![]() BMC CONTROL D SETUP VERIFICATIONYou can query the progress of the download and image verification with a simple GET request: curl -b cjar -k Or perform a POST to invoke the GetUpdateProgress method of the /flash/bmc object: curl -b cjar -k -H "Content-Type: application/json" -X POST \ Perform a POST to invoke the updateViaTftp method of the /flash/bmc object: curl -b cjar -k -H "Content-Type: application/json" -X POST \ For example: curl -b cjar -k -H "Content-Type: application/json" -X PUT \ BMC CONTROL D SETUP UPDATETo configure the update settings, perform a REST PUT to /control/flash/bmc/attr/. There are a few settings available to control the update process: preserve_network_settings Preserve network settings, only needed if updating the whole flash restore_application_defaults U pdate (clear) the read-write file system update_kernel_and_apps_only U pdate kernel and initramfs clear_persistent_files I gnore the persistent file list when resetting applications defaults auto_apply Attempt to write the images by invoking the Apply method after the images are unpacked. If no other images were pending the BMC should return in about 2 minutes. This will setup the u-boot environment and reboot the BMC. Perform a POST to invoke the PrepareForUpdate method of the /flash/bmc object: curl -b cjar -k -H "Content-Type: application/json" -X POST \ Some optional features are available, see the help for more details:Īn OpenBMC system can download an update image from a TFTP server, and apply updates, controlled via REST. To update from the OpenBMC shell, follow the steps in this section. It is recommended that the BMC be prepared for the update first as shown below : fw_setenv openbmconce copy-files-to-ram copy-base-filesystem-to-ram reboot Copy one or more of these image-* files to the directory: /run/initramfs/ (preserving the filename), then run the update script to apply the images: /run/initramfs/updateĭuring the reboot process the update script will be invoked after theįile systems are unmounted to complete the update process. System is operational and its progress output monitored. The update script can then be called to write the images while the This also applies to the shutdown and halt commands - they will also write the flash before stopping.Īs an alternative, an option can be parsed by the init script in the initramfs to copy the required contents of these file-systems into RAM so that the images can be applied while the rest of the application stack is running and progress can be monitored over the network. To unmount these file-systems all applications must be stopped.īy default an orderly reboot will stop all applications and unmount the root file-system, and the images copied into the /run/initramfs directory will be applied at that point before restarting. Because the updates are distributed as complete file system images, these file-systems have to be unmounted to replace them with new images. The BMC normally runs with the read-write and read-only file systems mounted, which means these images may be read (and written, for the read-write file-system) at any time. BMC CONTROL D SETUP CODEimage-u-boot → u-boot.bin Preparing for BMC code Update ![]() The whole flash image for BMC image-bmc → flash- The small initramfs image is used for early init and flash management image-initramfs → -boot The OpenBMC kernel cuImage (combined kernel and device tree) image-kernel → cuImage The read-only OpenBMC file system image-rofs → obmc-phosphor-image-palmetto.squashfs-xz The read-write file system for persistent changes to the OpenBMC file system image-rwfs → rwfs.jffs2 The OpenBMC boot-loader. The images corresponds to components that can be updated on the BMC. Section2 REST API BMC Access: OpenBMC – Host Code UpdateĪfter build, you will end up with a set of image files in: tmp/deploy/images//. Power Rail Information via Host: Commands: However to mitigate this newness, I’ve document I’ve provided below information to help you in your journey. OpenBMC does this better, it provides you API access to all the sensors / management controls. Part of integrating a new openPOWER Zaius / Barreleye G2 in a companies’ environment comes with a couple of new-ness.:Ī) Not all openPOWER servers have APSS which provides the external power measurement for CPU, DIMMs and other components.ī) Not all openPOWER servers fully support IPMIoverLAN because of leveraging openBMC. ![]() Zaius / Barreleye G2 – Power9 and AST2500 running OpenBMC
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |