|
73 | 73 | * [NTP](#ntp)
|
74 | 74 | * [NTP show commands](#ntp-show-commands)
|
75 | 75 | * [NTP config commands](#ntp-config-commands)
|
| 76 | +* [Platform Component Firmware](#platform-component-firmware) |
| 77 | + * [Platform Component Firmware show commands](#platform-component-firmware-show-commands) |
| 78 | + * [Platform Component Firmware config commands](#platform-component-firmware-config-commands) |
76 | 79 | * [Platform Specific Commands](#platform-specific-commands)
|
77 | 80 | * [PortChannels](#portchannels)
|
78 | 81 | * [PortChannel Show commands](#portchannel-show-commands)
|
@@ -3788,6 +3791,172 @@ This command is used to delete a configured NTP server IP address.
|
3788 | 3791 | Go Back To [Beginning of the document](#) or [Beginning of this section](#NTP)
|
3789 | 3792 |
|
3790 | 3793 |
|
| 3794 | +## Platform Component Firmware |
| 3795 | +
|
| 3796 | +### Platform Component Firmware show commands |
| 3797 | +
|
| 3798 | +**show platform firmware** |
| 3799 | +
|
| 3800 | +This command displays platform components firmware status information. |
| 3801 | +
|
| 3802 | +- Usage: |
| 3803 | +```bash |
| 3804 | +show platform firmware |
| 3805 | +``` |
| 3806 | + |
| 3807 | +- Example: |
| 3808 | +```bash |
| 3809 | +root@sonic:/home/admin# show platform firmware |
| 3810 | +Chassis Module Component Version Description |
| 3811 | +--------- -------- ----------- ----------------------- --------------------------------------- |
| 3812 | +Chassis1 N/A BIOS 0ACLH004_02.02.007_9600 BIOS - Basic Input/Output System |
| 3813 | + CPLD 5.3.3.1 CPLD - includes all CPLDs in the switch |
| 3814 | +``` |
| 3815 | + |
| 3816 | +### Platform Component Firmware config commands |
| 3817 | + |
| 3818 | +**config platform firmware install** |
| 3819 | + |
| 3820 | +This command is used to install a platform component firmware. |
| 3821 | +Both modular and non modular chassis platforms are supported. |
| 3822 | + |
| 3823 | +- Usage: |
| 3824 | +```bash |
| 3825 | +config platform firmware install chassis component <component_name> fw <fw_path> [-y|--yes] |
| 3826 | +config platform firmware install module <module_name> component <component_name> fw <fw_path> [-y|--yes] |
| 3827 | +``` |
| 3828 | + |
| 3829 | +- Example: |
| 3830 | +```bash |
| 3831 | +root@sonic:/home/admin# config platform firmware install chassis component BIOS fw /etc/mlnx/fw/sn3800/chassis1/bios.bin |
| 3832 | +New firmware will be installed, continue? [y/N]: y |
| 3833 | +Installing firmware: |
| 3834 | + /etc/mlnx/fw/sn3800/chassis1/bios.bin |
| 3835 | + |
| 3836 | +root@sonic:/home/admin# config platform firmware install module Module1 component BIOS fw http://mellanox.com/fw/sn3800/module1/bios.bin |
| 3837 | +New firmware will be installed, continue? [y/N]: y |
| 3838 | +Downloading firmware: |
| 3839 | + [##################################################] 100% |
| 3840 | +Installing firmware: |
| 3841 | + /tmp/bios.bin |
| 3842 | +``` |
| 3843 | +
|
| 3844 | +Supported options: |
| 3845 | +1. -y|--yes - automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively |
| 3846 | +
|
| 3847 | +**config platform firmware update** |
| 3848 | +
|
| 3849 | +This command is used for automatic FW update of all available platform components. |
| 3850 | +Both modular and non modular chassis platforms are supported. |
| 3851 | +
|
| 3852 | +Automatic FW update requires `platform_components.json` to be created and placed at: |
| 3853 | +sonic-buildimage/device/<platform_name>/<onie_platform>/platform_components.json |
| 3854 | +
|
| 3855 | +Example: |
| 3856 | +1. Non modular chassis platform |
| 3857 | +```json |
| 3858 | +{ |
| 3859 | + "chassis": { |
| 3860 | + "Chassis1": { |
| 3861 | + "component": { |
| 3862 | + "BIOS": { |
| 3863 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/bios.bin", |
| 3864 | + "version": "0ACLH003_02.02.010", |
| 3865 | + "info": "Cold reboot is required" |
| 3866 | + }, |
| 3867 | + "CPLD": { |
| 3868 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/cpld.bin", |
| 3869 | + "version": "10", |
| 3870 | + "info": "Power cycle is required" |
| 3871 | + }, |
| 3872 | + "FPGA": { |
| 3873 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/fpga.bin", |
| 3874 | + "version": "5", |
| 3875 | + "info": "Power cycle is required" |
| 3876 | + } |
| 3877 | + } |
| 3878 | + } |
| 3879 | + } |
| 3880 | +} |
| 3881 | +``` |
| 3882 | +
|
| 3883 | +2. Modular chassis platform |
| 3884 | +```json |
| 3885 | +{ |
| 3886 | + "chassis": { |
| 3887 | + "Chassis1": { |
| 3888 | + "component": { |
| 3889 | + "BIOS": { |
| 3890 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/bios.bin", |
| 3891 | + "version": "0ACLH003_02.02.010", |
| 3892 | + "info": "Cold reboot is required" |
| 3893 | + }, |
| 3894 | + "CPLD": { |
| 3895 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/cpld.bin", |
| 3896 | + "version": "10", |
| 3897 | + "info": "Power cycle is required" |
| 3898 | + }, |
| 3899 | + "FPGA": { |
| 3900 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/chassis1/fpga.bin", |
| 3901 | + "version": "5", |
| 3902 | + "info": "Power cycle is required" |
| 3903 | + } |
| 3904 | + } |
| 3905 | + } |
| 3906 | + }, |
| 3907 | + "module": { |
| 3908 | + "Module1": { |
| 3909 | + "component": { |
| 3910 | + "CPLD": { |
| 3911 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/module1/cpld.bin", |
| 3912 | + "version": "10", |
| 3913 | + "info": "Power cycle is required" |
| 3914 | + }, |
| 3915 | + "FPGA": { |
| 3916 | + "firmware": "/etc/<platform_name>/fw/<onie_platform>/module1/fpga.bin", |
| 3917 | + "version": "5", |
| 3918 | + "info": "Power cycle is required" |
| 3919 | + } |
| 3920 | + } |
| 3921 | + } |
| 3922 | + } |
| 3923 | +} |
| 3924 | +``` |
| 3925 | +
|
| 3926 | +Note: FW update will be skipped if component definition is not provided (e.g., 'BIOS': { }) |
| 3927 | +
|
| 3928 | +- Usage: |
| 3929 | +```bash |
| 3930 | +config platform firmware update [-y|--yes] [-f|--force] [-i|--image=current|next] |
| 3931 | +``` |
| 3932 | +
|
| 3933 | +- Example: |
| 3934 | +```bash |
| 3935 | +root@sonic:/home/admin# config platform firmware update |
| 3936 | +Chassis Module Component Firmware Version Status Info |
| 3937 | +--------- -------- ----------- ------------------------------------- ------------------------------------------------- ------------------ ----------------------- |
| 3938 | +Chassis1 N/A BIOS /etc/mlnx/fw/sn3800/chassis1/bios.bin 0ACLH004_02.02.007_9600 / 0ACLH004_02.02.007_9600 up-to-date Cold reboot is required |
| 3939 | + CPLD /etc/mlnx/fw/sn3800/chassis1/cpld.bin 5.3.3.1 / 5.3.3.2 update is required Power cycle is required |
| 3940 | +New firmware will be installed, continue? [y/N]: y |
| 3941 | +
|
| 3942 | +Summary: |
| 3943 | +
|
| 3944 | +Chassis Module Component Status |
| 3945 | +--------- -------- ----------- ---------- |
| 3946 | +Chassis1 N/A BIOS up-to-date |
| 3947 | + CPLD success |
| 3948 | +``` |
| 3949 | +
|
| 3950 | +Supported options: |
| 3951 | +1. -y|--yes - automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively |
| 3952 | +2. -f|--force - install FW regardless the current version |
| 3953 | +3. -i|--image - update FW using current/next SONiC image |
| 3954 | +
|
| 3955 | +Note: the default option is --image=current |
| 3956 | +
|
| 3957 | +Go Back To [Beginning of the document](#) or [Beginning of this section](#platform-component-firmware) |
| 3958 | +
|
| 3959 | +
|
3791 | 3960 | ## Platform Specific Commands
|
3792 | 3961 |
|
3793 | 3962 | There are few commands that are platform specific. Mellanox has used this feature and implemented Mellanox specific commands as follows.
|
|
0 commit comments