|
@@ -49,32 +49,7 @@ int PlatformInit(void)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- //LAN地址
|
|
|
|
- LanInfo_T *pSetLanInfo = &g_BMCInfo.IpmiConfig.LanInfo[0];
|
|
|
|
- // strcpy(pSetLanInfo->EthName, "eth0");
|
|
|
|
- // pSetLanInfo->IPAddrSrc = 0x01; //static
|
|
|
|
- pSetLanInfo->IPAddr[0] = 192;
|
|
|
|
- pSetLanInfo->IPAddr[1] = 168;
|
|
|
|
- pSetLanInfo->IPAddr[2] = 1; //网段
|
|
|
|
- pSetLanInfo->IPAddr[3] = 120+g_BMCInfo.SlotID;
|
|
|
|
- pSetLanInfo->BroadCast[0] = 192;
|
|
|
|
- pSetLanInfo->BroadCast[1] = 168;
|
|
|
|
- pSetLanInfo->BroadCast[2] = 1; //网段
|
|
|
|
- pSetLanInfo->BroadCast[3] = 255;
|
|
|
|
- pSetLanInfo->NetMask[0] = 255;
|
|
|
|
- pSetLanInfo->NetMask[1] = 255;
|
|
|
|
- pSetLanInfo->NetMask[2] = 255;
|
|
|
|
- pSetLanInfo->NetMask[3] = 0;
|
|
|
|
- pSetLanInfo->DefaultGW[0] = pSetLanInfo->IPAddr[0];
|
|
|
|
- pSetLanInfo->DefaultGW[1] = pSetLanInfo->IPAddr[1];
|
|
|
|
- pSetLanInfo->DefaultGW[2] = pSetLanInfo->IPAddr[2];
|
|
|
|
- pSetLanInfo->DefaultGW[3] = 1;
|
|
|
|
- pSetLanInfo->MACAddr[0] = 0; //no default mac
|
|
|
|
- pSetLanInfo->MACAddr[1] = 0;
|
|
|
|
- pSetLanInfo->MACAddr[2] = 0;
|
|
|
|
- pSetLanInfo->MACAddr[3] = 0;
|
|
|
|
- pSetLanInfo->MACAddr[4] = 0;
|
|
|
|
- pSetLanInfo->MACAddr[5] = 0;
|
|
|
|
|
|
+
|
|
|
|
|
|
//机箱及刀片信息
|
|
//机箱及刀片信息
|
|
g_BMCInfo.ChassisIdentify = FALSE;
|
|
g_BMCInfo.ChassisIdentify = FALSE;
|
|
@@ -345,6 +320,32 @@ int Init_IPMI_FRU_SDR_SEL(void)
|
|
memset(gSensorHistoryInfo, 0, sizeof(SensorHistoryInfo_T)*SENSOR_NUMBERS);
|
|
memset(gSensorHistoryInfo, 0, sizeof(SensorHistoryInfo_T)*SENSOR_NUMBERS);
|
|
FlushSensorHistoryToFlash();
|
|
FlushSensorHistoryToFlash();
|
|
|
|
|
|
|
|
+ /************** Lan info ********************/
|
|
|
|
+ //LAN地址
|
|
|
|
+ LanInfo_T *pSetLanInfo = &g_BMCInfo.IpmiConfig.LanInfo[0];
|
|
|
|
+ pSetLanInfo->IPAddr[0] = 192;
|
|
|
|
+ pSetLanInfo->IPAddr[1] = 168;
|
|
|
|
+ pSetLanInfo->IPAddr[2] = 1; //网段
|
|
|
|
+ pSetLanInfo->IPAddr[3] = 120+g_BMCInfo.SlotID;
|
|
|
|
+ pSetLanInfo->BroadCast[0] = 192;
|
|
|
|
+ pSetLanInfo->BroadCast[1] = 168;
|
|
|
|
+ pSetLanInfo->BroadCast[2] = 1; //网段
|
|
|
|
+ pSetLanInfo->BroadCast[3] = 255;
|
|
|
|
+ pSetLanInfo->NetMask[0] = 255;
|
|
|
|
+ pSetLanInfo->NetMask[1] = 255;
|
|
|
|
+ pSetLanInfo->NetMask[2] = 255;
|
|
|
|
+ pSetLanInfo->NetMask[3] = 0;
|
|
|
|
+ pSetLanInfo->DefaultGW[0] = pSetLanInfo->IPAddr[0];
|
|
|
|
+ pSetLanInfo->DefaultGW[1] = pSetLanInfo->IPAddr[1];
|
|
|
|
+ pSetLanInfo->DefaultGW[2] = pSetLanInfo->IPAddr[2];
|
|
|
|
+ pSetLanInfo->DefaultGW[3] = 1;
|
|
|
|
+ pSetLanInfo->MACAddr[0] = 0; //no default mac
|
|
|
|
+ pSetLanInfo->MACAddr[1] = 0;
|
|
|
|
+ pSetLanInfo->MACAddr[2] = 0;
|
|
|
|
+ pSetLanInfo->MACAddr[3] = 0;
|
|
|
|
+ pSetLanInfo->MACAddr[4] = 0;
|
|
|
|
+ pSetLanInfo->MACAddr[5] = 0;
|
|
|
|
+
|
|
FlushUserInfoTbl();
|
|
FlushUserInfoTbl();
|
|
UpdateFlash();
|
|
UpdateFlash();
|
|
}
|
|
}
|