blob: fcb867742412c0c456ed8c2aac0d783b2c83d6eb [file] [log] [blame]
Delphine CC Chiu99be5bc32023-12-11 13:56:32 +08001#!/bin/sh
2
3# Set mctpi2c link up and assign local address.
4localEid=8
5
6# The Sentinel Dome BICs are on the i2c bus0 to bus7.
7busnum=0
8while [ $busnum -le 7 ]
9do
10 mctp link set mctpi2c${busnum} up
11 mctp addr add ${localEid} dev mctpi2c${busnum}
12 busnum=$((busnum+1))
13done
14
15# The NICs are on the i2c bus24 to bus27.
16busnum=24
17while [ $busnum -le 27 ]
18do
19 mctp link set mctpi2c${busnum} up
20 mctp addr add ${localEid} dev mctpi2c${busnum}
21 busnum=$((busnum+1))
22done