Skip to content

fby3.5: rf: Support fru#301

Closed
DelphineChiu wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Sara/fby3.5-rf-Support_fru
Closed

fby3.5: rf: Support fru#301
DelphineChiu wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Sara/fby3.5-rf-Support_fru

Conversation

@DelphineChiu

Copy link
Copy Markdown

Summary:

  • Support read and write FRU.

Dependency: #300

Test plan:

  • Build code: Pass
  • Read FRU: Pass
  • Write FRU: Pass

Log:

  1. Check RF FRU can read and write when FRU is empty.
    (1) Read failed due to FRU is empty
    root@bmc-oob:~# fruid-util slot2 1U
    Failed print FRUID for Server board 2 1U
    Check syslog for errors! (err 2h)

(2) Write test FRU data
root@bmc-oob:~# fruid-util slot2 1U --write /tmp/fruid_1ou_test.bin

(3) Read FRU again
root@bmc-oob:# rm -rf /tmp/fruid_slot2_dev19.bin
root@bmc-oob:
# /usr/local/bin/bic-cached -f slot2
root@bmc-oob:~# fruid-util slot2 1U

FRU Information : Server board 2 1U
--------------- : ------------------
Board Mfg Date : Mon Jul 12 04:51:00 2021
Board Mfg : test
Board Product : test
Board Serial : test
Board Part Number : test
Board FRU ID : test
Product Manufacturer : Mellanox
Product Name : Mellanox ConnectX-6 DX OCP3.0
Product Part Number : MCX623435MC-CDAE_FB
Product Version : A8
Product Serial : MT2129T00085
Product Custom Data 3 : ConnectX-6 DX

  1. Check RF FRU can read when FRU is normal.
    root@bmc-oob:~# fruid-util slot2 1U

FRU Information : Server board 2 1U
--------------- : ------------------
Board Mfg Date : Mon Jul 12 04:51:00 2021
Board Mfg : test
Board Product : test
Board Serial : test
Board Part Number : test
Board FRU ID : test
Product Manufacturer : Mellanox
Product Name : Mellanox ConnectX-6 DX OCP3.0
Product Part Number : MCX623435MC-CDAE_FB
Product Version : A8
Product Serial : MT2129T00085
Product Custom Data 3 : ConnectX-6 DX

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 30, 2022
@DelphineChiu

Copy link
Copy Markdown
Author

Dependency: #300

@SaraSYLin SaraSYLin force-pushed the Sara/fby3.5-rf-Support_fru branch from 71afb26 to a25af09 Compare May 30, 2022 10:35
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
- Support read and write FRU.

Test plan:
- Build code: Pass
- Read FRU: Pass
- Write FRU: Pass

Log:
1. Check RF FRU can read and write when FRU is empty.
(1) Read failed due to FRU is empty
root@bmc-oob:~# fruid-util slot2 1U
Failed print FRUID for Server board 2 1U
Check syslog for errors! (err 2h)

(2) Write test FRU data
root@bmc-oob:~# fruid-util slot2 1U --write /tmp/fruid_1ou_test.bin

(3) Read FRU again
root@bmc-oob:~# rm -rf /tmp/fruid_slot2_dev19.bin
root@bmc-oob:~# /usr/local/bin/bic-cached -f slot2
root@bmc-oob:~# fruid-util slot2 1U

FRU Information           : Server board 2 1U
---------------           : ------------------
Board Mfg Date            : Mon Jul 12 04:51:00 2021
Board Mfg                 : test
Board Product             : test
Board Serial              : test
Board Part Number         : test
Board FRU ID              : test
Product Manufacturer      : Mellanox
Product Name              : Mellanox ConnectX-6 DX OCP3.0
Product Part Number       : MCX623435MC-CDAE_FB
Product Version           : A8
Product Serial            : MT2129T00085
Product Custom Data 3     : ConnectX-6 DX

2. Check RF FRU can read when FRU is normal.
root@bmc-oob:~# fruid-util slot2 1U

FRU Information           : Server board 2 1U
---------------           : ------------------
Board Mfg Date            : Mon Jul 12 04:51:00 2021
Board Mfg                 : test
Board Product             : test
Board Serial              : test
Board Part Number         : test
Board FRU ID              : test
Product Manufacturer      : Mellanox
Product Name              : Mellanox ConnectX-6 DX OCP3.0
Product Part Number       : MCX623435MC-CDAE_FB
Product Version           : A8
Product Serial            : MT2129T00085
Product Custom Data 3     : ConnectX-6 DX
@SaraSYLin SaraSYLin force-pushed the Sara/fby3.5-rf-Support_fru branch from a25af09 to 9339a56 Compare June 2, 2022 08:32
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@DelphineChiu has updated the pull request. You must reimport the pull request before landing.

@SaraSYLin

Copy link
Copy Markdown
Contributor

Hi @GoldenBug ,
Force update to rebase main.
Please help to review again, thank you.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@SaraSYLin SaraSYLin deleted the Sara/fby3.5-rf-Support_fru branch June 9, 2022 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

3 participants