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

[dpu_tty]: Add a DPU TTY console utility #3535

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Sep 7, 2024

  1. [dpu_tty]: Add a DPU TTY console utility

    * Add dpu_tty.py
    * Add dpu_tty.py to scripts
    
    Signed-off-by: Wenchung Wang vincwang@cisco.com
    
    What I did
    
    Add DPU TTY console utility.
    
    How I did it
    
    * Read platform.json to retrieve TTY settings in DPUS section. Set up TTY
    console according to TTY device name and baud rate.
    * Also provide options to overwrite default TTY device and baud rate.
    
    '''
    "DPUS": {
        "dpu0": {
            "serial-console": {
                "device": "ttyS4",
                "baud-rate": "115200"
            }
        },
        "dpu1": {
            "serial-console": {
                "device": "ttyS5",
                "baud-rate": "115200"
            }
        }
    },
    '''
    
    How to verify it
    
    Run the utility on a smart switch that provides DPU UART console via
    ttyS device. The test plan is at
    https://github.com/sonic-net/sonic-mgmt/pull/12701/files section 1.4.
    wenchungw committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    daec93f View commit details
    Browse the repository at this point in the history
  2. Correct SA errors

    wenchungw committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    c993bfb View commit details
    Browse the repository at this point in the history
  3. Correct SA errors

    wenchungw committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    a40adfc View commit details
    Browse the repository at this point in the history
  4. Correct SA error

    wenchungw committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    a724849 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Fix a SA error

    wenchungw committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    bfec7a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    d2398bc View commit details
    Browse the repository at this point in the history
  2. Update Command-Reference.md

    Add DPU serial console utility.
    wenchungw committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    9e3b184 View commit details
    Browse the repository at this point in the history
  3. Address review comments

    wenchungw committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    31840f3 View commit details
    Browse the repository at this point in the history