-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[gbsyncd] Enable debug shell for BRCM broncos PHY #12622
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blueve
approved these changes
Nov 8, 2022
yxieca
pushed a commit
that referenced
this pull request
Nov 10, 2022
* Build docker-gbsyncd-broncos image * Correct typo in LIBSAI_BRONCOS_URL_PREFIX * Update docker-gbsyncd-broncos/Dockerfile.j2 * Enable debug shell support on docker-gbsyncd-broncos * Include bcmsh in docker-gbsyncd-broncos Why I did it In docker-gbsyncd-broncos image, enable debug shell support for BRCM broncos PHY. How I did it How to verify it Note: need enable attr SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE support in BCM PAI library # bcmsh Press Enter to show prompt. Press Ctrl+C to exit. NOTICE: Only one bcmsh or bcmcmd can connect to the shell at same time. BRCM:> help help List of available commands - h or help => Print command menu - l => Print list of active ports on the PHY - ps <port_id> <options> => Print port status <options> => 1 -> Link status => 2 -> Link training failure status => 3 -> Link training RX status => 4 -> PRBS lock status => 5 -> PRBS lock loss status - rd <port_id> <addr> <no of registers to read> => Read register contents - wr <port_id> <addr> <data> => Write register data - rrd <lanemap> <if_side> <addr> <no of registers to read> => Raw read register contents using lanemap and if_side (line = 0, system = 1) - rwr <lanemap> <if_side> <addr> <data> => Raw write register data using lanemap and if_side (line = 0, system = 1) - fw or firmware => Print firmware version of the PHY - pd or port_dump <port_id> <flags> => Dump port status - eyescan <port_id> => Display eye scan - fec_status <port_id> => Get fec status of the port - polarity <lanemap> <if_side> <TX polarity> <RX Polarity> => Set TX and RX polarity <lanemap> => 0xF, 0xFF, or 0xFFFF based on number of lanes <if_side > => Line = 0, System = 1 <TX/RX Polarity> =>_TX/RX Polarity bitmap of all lanes Each bit represents a lane number. E.g. Lane 0's polarity value (0 or 1) is populated in Bit 0. - polarity <lanemap> <if_side> => Print TX and RX polarity - lb <port_id> <lb_value> => Enable loopback on the port lb_value = 0 -> Disable, 1 -> PHY, 2 -> MAC - lb <port_id> => Print loopback configuration of the port - prbs <port_id> <options> <val> => Set/Get PRBS configuration <options> => 1 -> Get PRBS state and polynomial 2 -> Set PRBS Polynomial, <val> - PRBS Polynomial Please refer to phy/chip documentation for valid values 3 -> Enable PRBS <val> => 0 Disable PRBS 1 Enable both PRBS Transmitter and Receiver 2 Enable PRBS Receiver 3 Enable PRBS Transmitter exit or q => Exit the diagnostic shell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I did it
In docker-gbsyncd-broncos image, enable debug shell support for BRCM broncos PHY.
How I did it
How to verify it
Note: need enable attr SAI_SWITCH_ATTR_SWITCH_SHELL_ENABLE support in BCM PAI library
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)