1## Code Update ##
2
3Currently supported BMC and PNOR update formats are UBI and non-UBI.
4For code update information, please refer to [code-update.md](https://github.com/openbmc/docs/blob/master/code-update/code-update.md)
5
6
7* UBI Format *
8
9    For BMC code update, download the system type *.ubi.mdt.tar image from
10    https://openpower.xyz/job/openbmc-build/ and run as follows:
11
12    For Witherspoon system:
13    ```
14    $ cd extended/code_update/
15    $ robot -v OPENBMC_HOST:x.x.x.x -v IMAGE_FILE_PATH:<image path>/obmc-phosphor-image-witherspoon.ubi.mtd.tar --include REST_BMC_Code_Update  bmc_code_update.robot
16    ```
17
18    For host code update, download the system type *.pnor.squashfs.tar image
19    from https://openpower.xyz/job/openpower-op-build/ and run as follows:
20
21    For Witherspoon system:
22    ```
23    $ cd extended/code_update/
24    $ robot -v OPENBMC_HOST:x.x.x.x -v IMAGE_FILE_PATH:<image path>/witherspoon.pnor.squashfs.tar --include REST_Host_Code_Update  host_code_update.robot
25    ```
26
27* Non-UBI Format *
28
29    For BMC code update, download the system type *all.tar image from
30    https://openpower.xyz/job/openbmc-build/ and run as follows:
31
32    For a Zaius system:
33    ```
34    $ cd extended/code_update/
35    $ robot -v OPENBMC_HOST:x.x.x.x -v FILE_PATH:<image path>/zaius-<date time>.all.tar --include Initiate_Code_Update_BMC update_bmc.robot
36    ```
37
38    For host code update, download the system type *.pnor from
39    https://openpower.xyz/job/openpower-op-build/ and run as follows:
40
41    For a Zaius system:
42    ```
43    $ cd extended/
44    $ robot -v OPENBMC_HOST:x.x.x.x -v PNOR_IMAGE_PATH:<image path>/zaius.pnor test_bios_update.robot
45    ```
46