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