1<div id="firmware"> 2 <div class="row column"> 3 <h1>Firmware</h1> 4 </div> 5</div> 6<div class="row column"> 7 <div class="column small-12 page-header"> 8 <h1 class="inline h4">Manage BMC and server firmware</h1> 9 </div> 10</div> 11<div class="row column"> 12 <p>Use the tables at the top of the page to manage firmware images that are currently available on the BMC. The 13 image at the top of the table is the Primary image, which will be used the next time the device is 14 booted. To change which image is Primary, move the image you want to use as the Primary to the top of the table using the arrows.</p> 15 <p><a ng-click="gotoAnchor()">Scroll down to upload an image file</a> to transfer a new firmware image to the BMC. After uploading a new image, Activate it to make it availbe for use.</p> 16</div> 17<firmware-list title="BMC images" version="bmcActiveVersion" firmwares="firmwares" filter-by="filters.bmc"></firmware-list> 18<firmware-list title="Server images" version="hostActiveVersion" firmwares="firmwares" filter-by="filters.host"></firmware-list> 19<div class="row column" id="upload"> 20 <div class="column small-12 page-header"> 21 <h2 class="inline h3 bold">Upload firmware image</h2> 22 </div> 23 <form id="firmware__upload-form" role="form" class="firmware__upload-form"> 24 <p>Specify an image file located on your workstation or a TFTP server. An image file may contain firmware images for the server, BMC, or other hardware devices. Each image that you upload will be unpacked from the image file, and added to the appropriate list above.</p> 25 <div class=" column firmware__upload-station"> 26 <h3 class="h4 bold">Upload from workstation</h3> 27 <p>Optional text area. Can be used to explain about updating openBMC firmware from workstation. This could 28 be step-by-step instruction. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et</p> 29 <label for="file-upload" class="inline firmware__upload-chooser"> 30 <input id="file-upload" type="file" file="file" class="hide" onchange="angular.element(this).scope().fileNameChanged()"/> 31 <span class="button btn-secondary inline">Choose a file</span> 32 <span class="inline firmware__upload-file-name"><span ng-if="!file">No file chosen</span><span ng-if="file.name !== undefined">{{file.name}}</span></span> 33 </label> 34 <input type="button" value="Upload firmware" class="inline button btn-primary float-right" ng-click="upload()"/> 35 <div class="inline uploading" ng-show="uploading">Upload in progress...</div> 36 </div> 37 <div class=" column firmware__upload-tftp"> 38 <h3 class="h4 bold">Download from TFTP server</h3> 39 <p>Optional text area. Can be used to explain about updating openBMC firmware from workstation. This could 40 be step-by-step instruction. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et</p> 41 <fieldset> 42 <div class="row"> 43 <div class="column small-12 large-4"> 44 <label for="tftp-ip">Server IP address</label> 45 <input name="tftp-ip" id="tftp-ip" type="number"/> 46 </div> 47 <div class="column small-12 large-4"> 48 <label for="tftp-file-name">File name</label> 49 <input name="tftp-file-name" id="tftp-file-name" type="text"/> 50 </div> 51 <div class="column small-12 large-4"> 52 <input type="submit" value="Download firmware" class="inline button btn-primary float-right"/> 53 </div> 54 </div> 55 <div class="inline uploading" ng-show="downloading">Downloading in progress...</div> 56 </fieldset> 57 </div> 58 </form> 59</div> 60 61<!-- Firmware modals --> 62<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': display_error}"> 63 <div class="modal__upload-fail" role="document"> 64 <div class="screen-reader-offscreen modal-description">{{error.modal_title}}</div><!-- accessibility only; used for screen readers --> 65 <div class="page-header "> 66 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">{{error.type}}</span></span> 67 <h1 class="modal-title h4 inline">{{error.title}}</h1> 68 </div> 69 <div class="modal__content"> 70 <p>{{error.desc}}</p> 71 </div> 72 <div class="modal__button-wrapper"> 73 <button class="inline btn-primary" ng-click="display_error = false;">Close</button> 74 </div> 75 </div> 76</section> 77 78<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_delete}"> 79 <div class="modal__tftp-unreachable" role="document"> 80 <div class="screen-reader-offscreen modal-description">Delete firmware image</div><!-- accessibility only; used for screen readers --> 81 <div class="page-header "> 82 <span class="icon icon__warning inline"><span class="accessible-text" role="alert">Warning</span></span> 83 <h1 class="modal-title h4 inline">Delete image</h1> 84 </div> 85 <div class="modal__content"> 86 <p>Delete firmware {{delete_image_version}}?</p> 87 </div> 88 <div class="modal__button-wrapper"> 89 <button class="inline btn-secondary" ng-click="confirm_delete=false;">Cancel</button> 90 <button class="inline btn-primary" ng-click="confirmDeleteImage()">Continue</button> 91 </div> 92 </div> 93</section> 94 95<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': confirm_upload_image}"> 96 <div class="modal__upload" role="document"> 97 <div class="screen-reader-offscreen modal-description">Upload image file modal</div><!-- accessibility only; used for screen readers --> 98 <div class="page-header "> 99 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg" 100 viewBox="0 0 32 32"><path 101 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path 102 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span> 103 Upload image file 104 </h1> 105 </div> 106 <div class="modal__content"> 107 <p>Uploading this image may replace a non-active image, and prevent rollback from the current active image 108 to the previous image.</p> 109 </div> 110 <div class="modal__button-wrapper"> 111 <button class="inline btn-secondary" ng-click="confirm_upload_image = false;">Cancel</button> 112 <button class="inline btn-primary" ng-click="confirmUpload()">Continue</button> 113 </div> 114 </div> 115</section> 116<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': reboot_confirm}"> 117 <div class="modal__reboot" role="document"> 118 <div class="screen-reader-offscreen modal-description">Server reboot required modal</div><!-- accessibility only; used for screen readers --> 119 <div class="page-header "> 120 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg" 121 viewBox="0 0 32 32"><path 122 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path 123 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span> 124 Server reboot required 125 </h1> 126 </div> 127 <div class="modal__content"> 128 <p>You specified a new primary firmware image. This change will not take effect until the server is powered 129 down and restarted.</p> 130 </div> 131 <a href="#/server-control/power-operations" class="bold modal__link">Go to power operations page</a> 132 <div class="modal__button-wrapper"> 133 <button class="inline btn-secondary" ng-click="reboot_confirm=false;">Cancel</button> 134 <button class="inline btn-primary" ng-click="confirmWarmReboot()">Warm reboot</button> 135 </div> 136 </div> 137</section> 138<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" ng-class="{'active': preserve_settings_confirm}"> 139 <div class="modal__preserve-settings" role="document"> 140 <div class="screen-reader-offscreen modal-description">Preserve setting modal</div><!-- accessibility only; used for screen readers --> 141 <div class="page-header "> 142 <h1 class="modal-title h4"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg" 143 viewBox="0 0 32 32"><path 144 d="M18 14h-6v2h1v6h-2v2h8v-2h-2z"/><circle cx="16" cy="10" r="2"/><path 145 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z"/></svg></span> 146 Preserve settings 147 </h1> 148 </div> 149 <div class="modal__content"> 150 <p>Switching to a new BMC firmware image will erase current user settings. Network settings will be preserved unless you choose to reset all settings.</p> 151 <form> 152 <fieldset> 153 <div class="row column"> 154 <label class="control-radio bold" for="preserve-settings">Preserve network settings 155 <input type="radio" name="preserve-settings" id="preserve-settings" ng-checked="true" ng-model="dhcp" ng-value="true" ng-init="dhcp=true"/> 156 <span class="control__indicator control__indicator-on"></span> 157 </label> 158 </div> 159 <div class="row column"> 160 <label class="control-radio bold" for="reset-settings">Reset all user and network settings 161 <input type="radio" name="reset-settings" id="reset-settings" ng-model="dhcp" ng-value="false"/> 162 <span class="control__indicator control__indicator-on"></span> 163 </label> 164 </div> 165 </fieldset> 166 </form> 167 </div> 168 <div class="modal__button-wrapper"> 169 <button class="inline btn-secondary" ng-click="preserve_settings_confirm=false;">Cancel</button> 170 <button class="inline btn-primary" ng-click="preserveSettingsConfirmed()">Continue</button> 171 </div> 172 </div> 173</section> 174<div class="modal-overlay" tabindex="-1" ng-class="{'active': (display_error || confirm_upload_image || reboot_confirm || preserve_settings_confirm)}"></div>