blob: e9882800a8bcf11f24cd9863668c2f9a767bd200 [file] [log] [blame]
Delphine CC Chiu99be5bc32023-12-11 13:56:32 +08001#!/bin/sh
2
Delphine CC Chiu5c7dabe2023-12-15 17:58:13 +08003# Set mctpi2c/mctpi3c link up and assign local address.
Delphine CC Chiu99be5bc32023-12-11 13:56:32 +08004localEid=8
5
Delphine CC Chiu5c7dabe2023-12-15 17:58:13 +08006# shellcheck source=meta-facebook/meta-yosemite4/recipes-yosemite4/plat-tool/files/yosemite4-common-functions
7. /usr/libexec/yosemite4-common-functions
8
Delphine CC Chiu99be5bc32023-12-11 13:56:32 +08009busnum=0
Ricky CX Wu4fe85482024-10-30 15:30:58 +080010# Enable MCTP-I3C for BMC
11# The Sentinel Dome BICs are after the I3C hub on I3C bus0 and bus1.
12while [ $busnum -le 1 ]
13do
14 mctp link set mctpi3c${busnum} up
15 mctp addr add ${localEid} dev mctpi3c${busnum}
16 busnum=$((busnum+1))
17done
Delphine CC Chiu99be5bc32023-12-11 13:56:32 +080018
19# The NICs are on the i2c bus24 to bus27.
20busnum=24
21while [ $busnum -le 27 ]
22do
23 mctp link set mctpi2c${busnum} up
24 mctp addr add ${localEid} dev mctpi2c${busnum}
25 busnum=$((busnum+1))
26done