mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-31 23:38:22 +00:00
Enable bmcsetup for Lenovo SR635/SR655
The SR635/SR655 has a particular scheme for dedicated/shared and hard coded correlated lan channels. Implement support for those scenarios.
This commit is contained in:
1
xCAT-genesis-scripts/etc/udev/rules.d/99-tsm.rules
Normal file
1
xCAT-genesis-scripts/etc/udev/rules.d/99-tsm.rules
Normal file
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="net", ATTRS{idVendor}=="046b", ATTRS{idProduct}=="ffb0", RUN+="/sbin/setuptsmnic"
|
@@ -280,6 +280,20 @@ if [ ! -z "$ISOPENBMC" ]; then
|
||||
# Overvide the default value for OpenBMC
|
||||
LAN_MED_TYPE="Other LAN"
|
||||
fi
|
||||
USBSTATE=""
|
||||
if [ "$IPMIMFG" = "19046" -a "$XPROD" = "1287" ]; then
|
||||
# Lenovo SR635/SR655
|
||||
BMCPORT=`grep bmcport /tmp/ipmicfg.xml |awk -F\> '{print $2}'|awk -F\< '{print $1}'`
|
||||
if [ "$BMCPORT" = 0 ]; then
|
||||
ipmitool raw 0x32 0x71 0 0 3
|
||||
LANCHAN=1
|
||||
else
|
||||
LANCHAN=8
|
||||
fi
|
||||
#USBSTATE=$(ipmitool raw 0x32 0xab)
|
||||
#ipmitool raw 0x32 0xaa 0
|
||||
fi
|
||||
|
||||
while [ -z "$LANCHAN" ]; do
|
||||
logger -s -t $log_label -p local4.info "Auto detecting LAN channel..."
|
||||
for TLANCHAN in {1..16}; do
|
||||
@@ -702,6 +716,9 @@ if [ -e /tmp/xcchostnic ]; then
|
||||
ip netns exec mgt ip link set dev $INTERFACE netns 1
|
||||
/usr/sbin/setupimmnic
|
||||
fi
|
||||
#if [ ! -z "$USBSTATE" ]; then # Continuation of SR635/SR655 specific code
|
||||
# ipmitool raw 0x32 0xaa $USBSTATE
|
||||
#fi
|
||||
|
||||
|
||||
# remove the bmc configuration information before exit
|
||||
|
5
xCAT-genesis-scripts/usr/sbin/setuptsmnic
Executable file
5
xCAT-genesis-scripts/usr/sbin/setuptsmnic
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
/sbin/ip link set $INTERFACE up
|
||||
/sbin/ip addr add dev $INTERFACE 169.254.0.120/24
|
||||
/sbin/ip route add 169.254.0.0/24 dev $INTERFACE
|
||||
echo -n $INTERFACE > /tmp/tsmhostnic
|
@@ -97,8 +97,10 @@ touch /etc/xcat/genesis-scripts-updated
|
||||
%{rpminstallroot}/usr/bin/restart
|
||||
%{rpminstallroot}/etc/init.d/functions
|
||||
%{rpminstallroot}/etc/udev/rules.d/99-imm.rules
|
||||
%{rpminstallroot}/etc/udev/rules.d/99-tsm.rules
|
||||
%{rpminstallroot}/etc/udev/rules.d/98-mlx.rules
|
||||
%{rpminstallroot}/usr/sbin/setupimmnic
|
||||
%{rpminstallroot}/usr/sbin/setuptsmnic
|
||||
%{rpminstallroot}/usr/sbin/loadmlxeth
|
||||
%{rpminstallroot}/usr/bin/autocons.py
|
||||
%{rpminstallroot}/usr/lib/dracut/hooks/cmdline/09-autoconsole.sh
|
||||
|
Reference in New Issue
Block a user