https://github.com/junka/orinswitchcli
Marvell switch UMSD CLI for display and configuration
https://github.com/junka/orinswitchcli
Last synced: 9 months ago
JSON representation
Marvell switch UMSD CLI for display and configuration
- Host: GitHub
- URL: https://github.com/junka/orinswitchcli
- Owner: junka
- Created: 2025-07-21T12:48:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-06T11:33:55.000Z (11 months ago)
- Last Synced: 2025-09-09T01:07:49.912Z (10 months ago)
- Language: C
- Homepage:
- Size: 9.53 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Query and configure marvell switch 88q6113 and 88q5017 on orin
This could be run on Host computer or on orin directly.
## Build for x86 remote
```
git submodule update --init
cd UMSD_v7.0.0
source setenv
make
```
## Build for onboard arm
```
git submodule update --init
export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
export LD=aarch64-linux-gnu-ld
export HOST=aarch64-linux-gnu
cd UMSD_v7.0.0
source setenv
make
```
UMSD_MCLI application be created in UMSD_v7.0.0/host/linux
## usage
### umsd.cfg
basically we are using FW_RMU mode, the parameters that would need modifications are
- nic_name should always be modified before run command with the right interface
- dev_num from 0 to 31, could be scanned automatically
- ether_type packet ether proto, 0x9100 or 0x9101
### Telnet mode
- modify umsd.cfg nic_name with the correct interface name
- run ```sudo ./USMD_CLI -f umsd.cfg ```
- telnet 0 8888
- use ```?``` to see more command help information and show commands
> for example, see Port Slave/Master mode:\
> UMSD_MCLI> getPhyMode 0 1 2 3 4 5 6 7 8 9
>or show vlan configuration:\
>UMSD_MCLI> vlan dump
### Direct Command line mode, non-interactive mode
- use umsd.cfg file like above
- run ```sudo ./USMD_CLI -f umsd.cfg - vlan dump``` with command appended after dash, use like what we use for telnet mode