Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mellanox]: Align platform API: change CPLD version representation #4221

Merged
merged 4 commits into from
Mar 23, 2020

Conversation

nazariig
Copy link
Collaborator

@nazariig nazariig commented Mar 4, 2020

This PR introduces new CPLD version representation for Mellanox platforms:
CPLD<part_number>_REV<major_version><minor_version>

part_number - six digits
major_version - two digits
minor_version - two digits

Example: CPLD000000_REV0500

Note: if Part Number or Minor Version is missing, zeros will be printed

- What I did

  • Updated CPLD version representation

- How I did it

  • N/A

- How to verify it

  1. make configure PLATFORM=mellanox
  2. make target/sonic-mellanox.bin

- Description for the changelog

  • N/A

- Previous fwutil output

root@sonic:/home/admin# fwutil show status
Chassis                 Module    Component    Version                  Description
----------------------  --------  -----------  -----------------------  ---------------------------------------
x86_64-mlnx_msn3800-r0  N/A       BIOS         0ACLH004_02.02.003_9600  BIOS - Basic Input/Output System
                                  CPLD         5.3.3.1                  CPLD - includes all CPLDs in the switch

- New fwutil output

root@sonic:/home/admin# fwutil show status
Chassis                 Module    Component    Version                   Description
----------------------  --------  -----------  ------------------------  ---------------------------------------
x86_64-mlnx_msn3800-r0  N/A       BIOS         0ACLH004_02.02.003_9600   BIOS - Basic Input/Output System
                                  CPLD1        CPLD000000_REV0500        CPLD - Complex Programmable Logic Device
                                  CPLD2        CPLD000000_REV0300        CPLD - Complex Programmable Logic Device
                                  CPLD3        CPLD000000_REV0300        CPLD - Complex Programmable Logic Device
                                  CPLD4        CPLD000000_REV0100        CPLD - Complex Programmable Logic Device

- A picture of a cute animal (not mandatory but encouraged)

      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``

@nazariig
Copy link
Collaborator Author

nazariig commented Mar 4, 2020

@jleveque
Copy link
Contributor

jleveque commented Mar 5, 2020

Retest vsimage please

@jleveque
Copy link
Contributor

jleveque commented Mar 5, 2020

LGTM. @sujinmkang to review, also.

stephenxs
stephenxs previously approved these changes Mar 12, 2020
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
…resentation.

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
@nazariig
Copy link
Collaborator Author

retest vsimage please

@jleveque
Copy link
Contributor

Retest vsimage please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants