//****************************************************************************
//                   INTEL CORPORATION PROPRIETARY INFORMATION
//       This software is supplied under the terms of a license agreement or
//       nondisclosure agreement with Intel Corporation and may not be copied
//       or disclosed except in accordance with the terms of that agreement.
//         Copyright (c) 2010 - 2013 Intel Corporation. All Rights Reserved.
//****************************************************************************
//
//  TITLE: Master.CFG             DATE CREATED:  6/21/2013
//****************************************************************************
//  Revision History:
//
//****************************************************************************

CONFIGURATION   "Master.cfg, Rev 1.05"
DISPLAY         "S1200RP platform FRU & SDR package version 1.05"

// Detect Product ID***********************************************************
PROBE           "BASEBOARD_PRODID" "65"
FOUND           "RP"  ""

IFSET "RP"
    DISPLAY "Intel(R) Server Board S1200RP platform"
ELSE
    DISPLAY ""
    DISPLAY "This is either the incorrect FRU/SDR package for this baseboard"
    DISPLAY "or your platform ID is incorrectly programmed."
    ERRORLEVEL 01
ENDIF

DISPLAY         "Copyright (c) 2010 - 2013 Intel Corporation"
DISPLAY         " "

//If it's for factory use, please un-comment FACTORY_MODE tag
//SET "FACTORY_MODE"

IFSET "FACTORY_MODE"
    SET "SDR"
ELSE
    //Set auto-detection tag, now comment it before auto-detection implemented
    SET "AUTO_DETECTION"

    //Set user selection
    //SET "USER_SELECT"

    MENUTITLE   "Select the function you desire to perform:"
    MENU        "SDR"   "Update only the SDR repository"
    MENU        "FRU"   "Update only the FRU repository"
    MENU        "BOTH"  "Update both the FRU and the SDR repository"
    MENU        "ASSET" "Modify the Product Asset Tag"
    MENU        "EXIT1" "Exit"
    MENUPROMPT
    DISPLAY " "
ENDIF
IFSET "EXIT1"
    DISPLAY "Exit without making any changes"
ELSE
    // Set both FRU and SDR
    IFSET "BOTH"
        SET "SDR"
        SET "FRU"
    ENDIF
    IFSET   "ASSET"
        FRUNAME     "SYSTEM"
        FRUADDRESS  "IMBDEVICE" FF 20
        FRUAREA     "PRODUCT"
        FRUFIELD    "AT" "@STDIN:ASCII"
    ELSE
        IFSET "SDR"
        //Detect Module{{{-----------------------------------------------------------------------------------------
        // HSBP Check----------------------------------------------------------------------------------------------
        // Detect HSBP1
		DISPLAY ""
		DISPLAY "Detecting HSBP, please wait a moment."
        PROBE "PING"    "08"    "D0"
        FOUND "HSBP1_TEMP"     ""
        IFSET   "HSBP1_TEMP"
            SET "FOUND_HSBP_TEMP"
            FRUNAME "SYSTEM"
            FRUADDRESS 05
            FRUAREA "BOARD" VALIDATE HSBP_CK11
            IFSET HSBP_CK11
                FRUAREA "BOARD"
                PROBE FRUFIELD "PN" "FUP8X35HSBP"
                FOUND "HSBP_35_BP8" ""
                IFSET "HSBP_35_BP8"
				    DISPLAY ""
                    DISPLAY "8 X 3.5 Hot Swap Backplane is detected"
                    SET "FOUND_HSBP"
                    SET "HSBP_1_BP8"
                ELSE//HSBP_35_BP8
                    PROBE FRUFIELD "PN" "FUP4X35HSBP"
                    FOUND "HSBP_35_BP4" ""                        
                    IFSET "HSBP_35_BP4"
					    DISPLAY ""
                        DISPLAY "4 X 3.5 Hot Swap Backplane is detected"
                        SET "FOUND_HSBP"
                        SET "HSBP_1_BP4"
                    ELSE//HSBP_35_BP4
                        PROBE FRUFIELD "PN" "FXX1304HSBP"
                        FOUND "HSBP_35E_BP4" ""
                        IFSET "HSBP_35E_BP4"
						    DISPLAY ""
                            DISPLAY "4 X 3.5 Hot Swap Backplane is detected"
                            SET "FOUND_HSBP"
                            SET "HSBP_1_BP4"
                        ELSE//HSBP_35E_BP4
                            PROBE FRUFIELD "PN" "F1U8X25HSBP"
                            FOUND "HSBP_25E_BP8" ""
                            IFSET "HSBP_25E_BP8"
							    DISPLAY ""
                                DISPLAY "8 X 2.5 Hot Swap Backplane is detected"
                                SET "FOUND_HSBP"
                                SET "HSBP_1_BP8"
                            ENDIF//HSBP_25E_BP8
                        ENDIF//HSBP_35E_BP4                        
                    ENDIF//HSBP_35_BP4
                ENDIF//HSBP_35_BP8
            ELSE////HSBP_CK11
			    DISPLAY ""
                DISPLAY "HSBP FRU is invalid"
            ENDIF//HSBP_CK11
        ELSE
		    DISPLAY ""
		    DISPLAY "HSBP is not detected."
        ENDIF //ENDIF "HSBP1_TEMP"

        // SKU check
        //Detect SE SKU
        PROBE "IMBDEVICE" "00"
        FOUND "BB_FRU" "BB_NO_FRU"
        IFSET "BB_FRU"
        	FRUNAME     "SYSTEM"
		FRUADDRESS 00
        	FRUAREA "BOARD" VALIDATE SESKU
        	IFSET "SESKU"
        		FRUAREA "BOARD"
			PROBE FRUFIELD "PN" "S1200RP_SE"
			FOUND "RPSESKU" ""
			IFSET "RPSESKU"
				DISPLAY ""
				DISPLAY "S1200RP SE SKU is detected"
			ELSE
			    SET "RPSKU"
			ENDIF //RPSESKU
		ENDIF //SESKU
	ENDIF //BB_FRU
	
        // Power Supply Check -------------------------------------------------------------------------------------
        // Detect PS1
        PROBE "PING"          "0F"      "B0"
        FOUND "PS1"           ""
        IFSET   "PS1"
            PROBE "IMBDEVICE" "02"
            FOUND "PS1_FRU" "PS1_NO_FRU"
            IFSET "PS1_FRU"
                FRUNAME "SYSTEM"
                FRUADDRESS 02
                FRUAREA "PRODUCT" VALIDATE PS1_FRU_IPMI
                IFSET PS1_FRU_IPMI
                    FRUAREA "PRODUCT"
                    PROBE FRUFIELD "PN" "DPS-350AB-12 A"
                    FOUND "350_PS" ""
                
                    PROBE FRUFIELD "PN" "DPS-500WB-1 A"
                    FOUND "500_PS" ""
                
                    PROBE FRUFIELD "PN" "DPS-460KB A"
                    FOUND "460_PS" ""
                ENDIF//PS_FRU
            ENDIF//PS_FRU
        ENDIF//PS1
        
        // Power Supply Check -------------------------------------------------------------------------------------
        // Detect PS2
        PROBE "PING"          "0F"      "B2"
        FOUND "PS2"           ""
        IFSET   "PS2"
            PROBE "IMBDEVICE" "03"
            FOUND "PS2_FRU" "PS2_NO_FRU"
            IFSET "PS2_FRU"
                FRUNAME "SYSTEM"
                FRUADDRESS 03
                FRUAREA "PRODUCT" VALIDATE PS2_FRU_IPMI
                IFSET PS2_FRU_IPMI
                    FRUAREA "PRODUCT"
                    PROBE FRUFIELD "PN" "DPS-350AB-12 A"
                    FOUND "350_PS" ""
                
                    PROBE FRUFIELD "PN" "DPS-500WB-1 A"
                    FOUND "500_PS2" ""
                
                    PROBE FRUFIELD "PN" "DPS-460KB A"
                    FOUND "460_PS2" ""
                ENDIF//PS_FRU
            ENDIF//PS_FRU
        ENDIF//PS2
        
        // Power Supply Check -------------------------------------------------------------------------------------
        IFSET   "PS1" "PS2"
           SET "PS_REDUNDANCY"
        ENDIF //"PS1" "PS2"
        
        IFSET "350_PS"
            SET "350_PS_Detect"
            SET "EATEMP"
			DISPLAY ""
            DISPLAY "350W Power Supply is detected."
        ENDIF
        
        IFSET   "PS1"
            IFSET "500_PS"
                SET "EATEMP"
                SET "500_PS_Detect"
                DISPLAY ""
                DISPLAY "450W Power Supply 1 is detected."
            ELSE
                IFSET "460_PS"
                    SET "EATEMP"
                    SET "460_PS_Detect"
                    DISPLAY ""
                    DISPLAY "460W Power Supply 1 is detected."
                ENDIF
            ENDIF
        ENDIF
        
        IFSET   "PS2"
            IFSET "500_PS2"
                SET "EATEMP"
                SET "500_PS_Detect"
                DISPLAY ""
                DISPLAY "450W Power Supply 2 is detected."
            ELSE
                IFSET "460_PS2"
                    SET "EATEMP" 
                    SET "460_PS_Detect"
                    DISPLAY ""
                    DISPLAY "460W Power Supply 2 is detected."
                ENDIF
            ENDIF
        ENDIF
        
        
        // Detect NON PSU
        IFSET "PS1"
        //PS1
        ELSE //PS1
            IFSET "PS2"
            //PS2
            ELSE //PS2
                DISPLAY ""
                DISPLAY "No Redundancy Power Supply Unit detected"
                SET "NON_PSU"
            ENDIF //PS2
        ENDIF//PS1
        
        //DETECT CPU and System FAN
        PROBE "FAN_SIGNAL" 00
        FOUND "FAN_CPU" ""
        PROBE "FAN_SIGNAL" 01
        FOUND "FAN_P2" ""
        PROBE "FAN_SIGNAL" 02
        FOUND "FAN_P3" ""
        PROBE "FAN_SIGNAL" 03
        FOUND "FAN_P4" ""
        PROBE "FAN_SIGNAL" 04
        FOUND "FAN_P1" ""

		// Work-around for hardware register to be reset by detecting twice        
        PROBE "FAN_SIGNAL" 00
        FOUND "FAN_CPU" ""
        PROBE "FAN_SIGNAL" 01
        FOUND "FAN_P2" ""
        PROBE "FAN_SIGNAL" 02
        FOUND "FAN_P3" ""
        PROBE "FAN_SIGNAL" 03
        FOUND "FAN_P4" ""
        PROBE "FAN_SIGNAL" 04
        FOUND "FAN_P1" ""

        // I/O Check----------------------------------------------------------------------------------------------
        // Detect I/O
        PROBE "PING" "0D" "A4"
        FOUND "IO_MODULE_FRU"
        IFSET "IO_MODULE_FRU"
            SET "IO_MODULE"
			DISPLAY ""
            DISPLAY "IO Module is detected."
        ENDIF

        
        // SAS Check----------------------------------------------------------------------------------------------
        // Detect SAS
        PROBE "PING" "0D" "A8"
            FOUND "SAS_MODULE_FRU"
        PROBE "PING" "0D" "98"
            FOUND "SAS_MODULE"
		IFSET "SAS_MODULE_FRU"
            DISPLAY ""
            DISPLAY "SAS Module FRU is detected."
		ENDIF
		IFSET "SAS_MODULE"
            DISPLAY ""
            DISPLAY "SAS Module is detected."
		ENDIF

        //Detect Module}}}----------------------------------------------------------------------------------------
         
            // Set auto-detection
            IFSET "AUTO_DETECTION"
         
                // Check SKUS
                // Check Front Panel FRU
                PROBE "IMBDEVICE" "04"
                FOUND "FP_CK2" ""
                IFSET "FP_CK2"
                    FRUNAME "SYSTEM"
                    FRUADDRESS 04
                    FRUAREA "BOARD" VALIDATE FP_CK3
                    IFSET FP_CK3
                        FRUAREA "BOARD"
                        PROBE FRUFIELD "PN" "FFPANEL"
                        FOUND   "SKUS" ""
                    ENDIF // FP_CK3
                ELSE
                    DISPLAY ""
                    DISPLAY "Front Panel FRU is not detected"
                    SET "OTHER"
                ENDIF
            
                // Check all fans 
                IFSET "SKUS"
					
                    IFSET "FAN_CPU"
					    IFSET "FAN_P3"
						    SET "OTHER_SKU"
						ELSE//FAN_P3
						    IFSET "FAN_P4"
							    IFSET "FAN_P1"
								    SET "UPS_8HDD_FAN_VALID"
								ELSE//FAN_P1
								    SET "UPS_4HDD_FAN_VALID"
							    ENDIF//FAN_P1
							ELSE//FAN_P4
							    SET "OTHER_SKU"
						    ENDIF//FAN_P4
					    ENDIF//FAN_P3
					ELSE//FAN_CPU
					    IFSET "FAN_P4"
						    SET "OTHER_SKU"
						ELSE//FAN_P4
						    IFSET "FAN_P1" "FAN_P2" "FAN_P3"
							    SET "R1000_FAN_VALID"
							ELSE//"FAN_P1" "FAN_P2" "FAN_P3"
							    SET "OTHER_SKU"
						    ENDIF//"FAN_P1" "FAN_P2" "FAN_P3"
					    ENDIF//FAN_P4
					ENDIF//FAN_CPU
                    
                    IFSET "NON_PSU" "UPS_4HDD_FAN_VALID"
                        SET "UPS"										
                        SET "UPS_4HDD"
                        DISPLAY ""
                        DISPLAY "Intel(R) Server Chassis P4000S SKU"
                        IFSET "FOUND_HSBP_TEMP"
                            IFSET "SAS_MODULE"
                                SET "UPS_4SAS"
                            ELSE//SAS_MODULE
                                SET "UPS_4NOSAS"
                            ENDIF//SAS_MODULE
                        ELSE//FOUND_HSBP_TEMP
                            IFSET "SAS_MODULE"
                                SET "UPS_4FIXSAS"
                            ELSE//SAS_MODULE
                                SET "UPS_4FIXNOSAS"
                            ENDIF//SAS_MODULE
                        ENDIF//FOUND_HSBP_TEMP
                    ELSE
                        IFSET "460_PS_Detect" "UPS_8HDD_FAN_VALID"
                            SET "UPS"	
                            SET "UPS_8HDD"
                            DISPLAY ""
                            DISPLAY "Intel(R) Server Chassis P4000S SKU"
                    
                            IFSET "HSBP_35_BP8"
                                IFSET "SAS_MODULE"
                                    SET "UPS_8X35SAS"
                                ELSE
                                    SET "UPS_8X35NOSAS"
                                ENDIF//SAS_MODULE
                            ENDIF//HSBP_35_BP8
                        ELSE//460_PS_Detect
                            IFSET "350_PS_Detect" "R1000_FAN_VALID"
                                SET "R1000"
                                DISPLAY ""
                                DISPLAY "Intel(R) Server Chassis R1000 SKU is detected"
                            ELSE//350_PS_Detect
                                IFSET "500_PS_Detect" "R1000_FAN_VALID"
                                    SET "R1000"
                                    DISPLAY ""
                                    DISPLAY "Intel(R) Server Chassis R1000 SKU is detected"
                                ELSE//500_PS_Detect
                                    SET "OTHER_SKU"
                                ENDIF//500_PS_Detect
                            ENDIF//350_PS_Detect
                        ENDIF//460_PS_Detect
                    ENDIF//NON_PSU
                    
                
                    IFSET "R1000"
                        IFSET "SAS_MODULE"
                            SET "R1000_SAS"
                        ELSE//SAS_MODULE
                            SET "R1000_NOSAS"
                        ENDIF//SAS_MODULE
                    ENDIF//R1000
                    
                    IFSET "R1000"
                    //R1000 detected.
                    ELSE//R1000
                        IFSET "UPS_4HDD"
                            //UPS_4HDD detected.
                        ELSE//UPS_4HDD
                            IFSET "UPS_8HDD"
                            //UPS_8HDD detected.
                            ELSE//UPS_8HDD
                                DISPLAY ""
                                DISPLAY "Power Supply Unit or Fan configuration is not valid, falling back to user selection as auto-detection is not possible."
                                SET "USER_SELECT"
                                CLEAR "OTHER_SKU"
                                CLEAR "UPS"
                                CLEAR "R1000"
                            ENDIF//UPS_8HDD
                        ENDIF //UPS_4HDD
                    ENDIF //R1000
                ELSE//SKUS
                    SET "OTHER_SKU"
                ENDIF //"SKUS"
                
                IFSET "OTHER_SKU"
                    DISPLAY ""
                    DISPLAY "Falling back to Other Chassis."
                    SET "OTHER"
                ENDIF

            ENDIF // "AUTO_DETECTION"

            // Set User select
            IFSET "USER_SELECT"
                DISPLAY ""
                MENUTITLE   "Select the SKUs:"
                MENU    "R1000"            "Intel(R) Server Chassis R1000 SKU"
                MENU    "UPS"              "Intel(R) Server Chassis P4000S SKU"
                MENU    "OTHER"            "Other Chassis"
                MENUPROMPT
                DISPLAY ""
            ENDIF //"USER_SELECT"
            
            IFSET "FACTORY_MODE"
                DISPLAY     ""
                MENUTITLE   "Select the Chassis:"
                MENU        "SHIP"      "Only Shipping use"
                MENU        "FCT"       "Only for FCT use"
                MENU        "FCT2"      "Only for FCT2 use"
                MENUPROMPT
                DISPLAY     ""
            ENDIF //"FACTORY_MODE"

            IFSET "OTHER"
                DISPLAY     ""
                DISPLAY     "The options provided are intended for OEMs and system integrators to allow the"
                DISPLAY     "thermal control of fans in a third-party chassis. OEMs and system integrators"
                DISPLAY     "must perform their own thermal testing for any changes made using these"
                DISPLAY     "options. Intel cannot provide support for any changes made to fan settings to"
                DISPLAY     "support third-party chassis. Third-party chassis vendors may have recommended"
                DISPLAY     "settings for these configuration options for specific chassis."
                DISPLAY     " "
                DISPLAY     "INTEL ASSUMES NO RESPONSIBILITY FOR UNDESIRED RESULTS WHEN USING ANY CUSTOM FAN CONTROL CONFIGURATION ON INTEL(R) SERVER PRODUCTS"
                DISPLAY     " "
                MENUTITLE   "Select the fan speed for the chassis"
                MENU    "OTHER_SR"     "Slow Ramp"
                MENU    "OTHER_MR"     "Medium Ramp"
                MENU    "OTHER_FR"     "Fast Ramp"
                MENUPROMPT
                DISPLAY ""
            ENDIF //"OTHER"       
            
           
            //Set SDR tags for items that are standard on specific SKU *******************************
            
            //Intel(R) Server Chassis R1000 Fan SKU ----------------------------------------------------
            IFSET "R1000"
                //System Fans
                SET "R1000_FAN_1"
                SET "R1000_FAN_2"
                SET "R1000_FAN_3"
                
                //Processor
                SET "PROC_1"
                
                //Front Panel Temp
                SET "FP_TEMP"
                
                //Chassis intrusion
                SET "NO_CHASSIS_INTRU"
				
				//System Airflow
				SET "SYS_AIRFLOW"
                
				//Front panel NMI
                SET "FP_NMI"
                
				IFSET "R1000"
                    IFSET "SAS_MODULE"
                        SET "R1000_SAS"
                    ELSE//SAS_MODULE
                        SET "R1000_NOSAS"
                    ENDIF//SAS_MODULE
                ENDIF//R1000
                
            ENDIF //IFSET "R1000"
            

            //UPS SKU
            IFSET "UPS"
                IFSET "NON_PSU"
                    SET "UPS_4HDD"
                ELSE
                    IFSET "460_PS_Detect"
                        SET "UPS_8HDD"
                    ENDIF
                ENDIF
            ENDIF

            //P4000S SKU             
            IFSET "UPS_4HDD"
                
                SET "UPS_4HDD_FAN_4"
                SET "UPS_4HDD_PROC_FAN"
                
                //Processor
                SET "PROC_1"
                
                //Chassis intrusion
                SET "CHASSIS_INTRU"
				
                //System Airflow
				SET "SYS_AIRFLOW"
                
                //Front Panel Temp
                SET "FP_TEMP"
                
                //Front panel NMI
                SET "FP_NMI"
				
                IFSET "FOUND_HSBP_TEMP"
                    IFSET "SAS_MODULE"
                        SET "UPS_4SAS"
                    ELSE//SAS_MODULE
                        SET "UPS_4NOSAS"
                    ENDIF//SAS_MODULE
                ELSE//FOUND_HSBP_TEMP
                    IFSET "SAS_MODULE"
                        SET "UPS_4FIXSAS"
                    ELSE//SAS_MODULE
                        SET "UPS_4FIXNOSAS"
                    ENDIF//SAS_MODULE
                ENDIF//FOUND_HSBP_TEMP
                              
                               
            ENDIF//END UPS_4HDD

            //P4000S SKU             
            IFSET "UPS_8HDD"
                
                SET "UPS_8HDD_FAN_1"
                SET "UPS_8HDD_FAN_4"
                SET "UPS_8HDD_PROC_FAN"
                
                //Processor
                SET "PROC_1"
								
                //Front Panel Temp
                SET "FP_TEMP"
                
                //Chassis intrusion
                SET "CHASSIS_INTRU"
				
                //System Airflow
				SET "SYS_AIRFLOW"
				
                //Front panel NMI
                SET "FP_NMI"
                
				IFSET "SAS_MODULE"
                    SET "UPS_8X35SAS"
                ELSE
                    SET "UPS_8X35NOSAS"
                ENDIF//SAS_MODULE
                              
                               
            ENDIF//END UPS_8HDD
            
            //OTHER chassis ----------------------------------------------------------------------------
            IFSET "OTHER"
                //System Fans
                DISPLAY ""
                PROMPT "Is System Fan 1 installed?"
                YES "OTHER_FAN_1"
                NO ""
                DISPLAY ""
                PROMPT "Is System Fan 2 installed?"
                YES "OTHER_FAN_2"
                NO ""
                DISPLAY ""
                PROMPT "Is System Fan 3 installed?"
                YES "OTHER_FAN_3"
                NO ""
                DISPLAY ""
                PROMPT "Is System Fan 4 installed?"
                YES "OTHER_FAN_4"
                NO ""
                DISPLAY ""
                PROMPT "Is CPU Fan 1 installed?"
                YES "PROC1_FAN"
                NO ""
                
				CLEAR "PS_REDUNDANCY"
                CLEAR "350_PS"
                CLEAR "500_PS"
                CLEAR "460_PS"
                CLEAR "500_PS2"
                CLEAR "460_PS2"
                CLEAR "EATEMP"
                
                //Processor
                SET "PROC_1"
                
                //Chassis intrusion
                DISPLAY ""
                PROMPT "Does the system have chassis intrusion?"
                YES "CHASSIS_INTRU"
                NO "NO_CHASSIS_INTRU"
                
                //Front panel NMI
                DISPLAY ""
                PROMPT "Does the front panel support a NMI button?"
                YES "FP_NMI"
                NO  ""

            ENDIF //IFSET "OTHER"

            //Shipping ---------------------------------------------------------------------------------
            IFSET "SHIP"
                //Power Supply Module 1 & 2
                CLEAR "EATEMP"
                CLEAR "PS_REDUNDANCY"
                CLEAR "350_PS"
                CLEAR "500_PS"
                CLEAR "460_PS"
                CLEAR "500_PS2"
                CLEAR "460_PS2"
                 
                //HSBP 1/2/3 
                CLEAR "HSBP_1_BP4"
                CLEAR "HSBP_1_BP8"
                
                CLEAR "IO_MODULE"
                
                CLEAR "SAS_MODULE"
                
                //Chassis intrusion
                SET "NO_CHASSIS_INTRU"

            ENDIF //IFSET "SHIP"

            //FCT --------------------------------------------------------------------------------------
            IFSET "FCT"
                //System Fans
                SET "PROC1_FAN"
                SET "OTHER_FAN_4"
                SET "R1000_FAN_1"
                SET "R1000_FAN_2"
                SET "R1000_FAN_3"
                SET "UPS_4HDD_FAN_4"
                SET "UPS_4HDD_PROC_FAN"
                SET "UPS_8HDD_FAN_4"
                SET "UPS_8HDD_PROC_FAN"
                
                //Power Supply Module 1 & 2
                CLEAR "EATEMP"
                SET "PS_REDUNDANCY"
                CLEAR "350_PS"
                CLEAR "500_PS"
                SET "460_PS"
                CLEAR "500_PS2"
                SET "460_PS2"
                
                //HSBP 1/2/3 
                CLEAR "HSBP_1_BP4"
                CLEAR "HSBP_1_BP8"
                
                //Processor
                SET "PROC_1"
                
                //Chassis intrusion
                SET "CHASSIS_INTRU"
                
                //IO MODULE
                SET "IO_MODULE"
                //SAS MODULE
                SET "SAS_MODULE"
                
            ENDIF //IFSET "FCT"

            //FCT2 -------------------------------------------------------------------------------------
                IFSET "FCT2"
                //System Fans
                SET "PROC1_FAN"
                SET "UPS_4HDD_PROC_FAN"
                SET "UPS_8HDD_PROC_FAN"
                
                //Power Supply Module 1 & 2
                CLEAR "EATEMP"
                CLEAR "PS_REDUNDANCY"
                CLEAR "500_PS"
                SET "460_PS"
                CLEAR "350_PS"
                CLEAR "500_PS2"
                CLEAR "460_PS2"
                
                //HSBP 1/2/3 
                CLEAR "HSBP_1_BP4"
                CLEAR "HSBP_1_BP8"
                
                //Processor
                SET "PROC_1"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF //IFSET "FCT2"
            
            SDRNAME "S1200RP.sdr"        // Update SDR Repository
            BMC_REFRESH
        ENDIF     // IFSET "SDR"

        IFSET "FRU"

            // ******************************
            //   Update Base Board FRU areas
            // ******************************
            IFSET "RP"
                DISPLAY     ""
                DISPLAY     "Updating FRU areas"

                //Update Baseboard FRU data
			    IFSET "RPSESKU"
			        FRUNAME     "S1200RP_SE.fru"
			    ELSE
			        FRUNAME     "S1200RP.fru"
			    ENDIF //RPSESKU
                FRUAREA     "HEADER"
                FRUAREA     "INTERNALUSE"
                FRUAREA     "CHASSIS"
                FRUFIELD    "CT"
                
                PROMPT      "Do you want to update the chassis info area of the FRU?"
                YES         "UPD_CHS"
                NO          ""
                IFSET   "UPD_CHS"
                
//                    IFSET "OTHER"
//                        DISPLAY     ""
//                        PROMPT      "Do you want to enter chassis type (HEX byte)? 03h: Desktop; 11h Main Server Chassis; 17h: Rackmount chassis"
//                            YES     "CHASS_T"
//                            NO      ""
//                            
//                        IFSET "CHASS_T"
//                            FRUFIELD    "CT" "@STDIN:ASCII"
//                        ENDIF
//                    ENDIF
              
                    PROMPT      "Do you want to enter the chassis serial number?"
                    YES         "CHASSN"
                    NO          ""
                    DISPLAY     ""
                    IFSET       "CHASSN"
                        FRUFIELD    "S#" "@STDIN:ASCII"
                    ENDIF
                
                    PROMPT      "Do you want to enter the chassis part number?"
                    YES         "CHASPN"
                    NO          ""
                    DISPLAY     " "
                    IFSET       "CHASPN"
                        FRUFIELD    "P#" "@STDIN:ASCII"
                    ENDIF
                ENDIF //END IFSET "UPD_CHS"
                
                PROMPT      "Do you want to enter the chassis manufacturer name (Additional Field 1)?"
                YES         "CHASMN"
                NO          ""
                DISPLAY     ""
                IFSET       "CHASMN"
                    FRUFIELD     "AM1" "@STDIN:ASCII"
                ENDIF
                
                FRUAREA     "BOARD"
                FRUFIELD    "MN"
                FRUFIELD    "PN"
                FRUFIELD    "ID"
                DISPLAY     ""
                
                FRUAREA     "PRODUCT"
                PROMPT      "Do you want to update the system info area of the FRU?"
                YES         "UPD_PRD"
                NO          ""
                IFSET       "UPD_PRD"
                     FRUFIELD    "MN"
                     FRUFIELD    "PN"
                     FRUFIELD    "PV"
                     PROMPT     "Do you want to enter system part number?"
                     YES        "PROD_PN"
                     NO         ""
                     IFSET      "PROD_PN"
                        FRUFIELD    "P#" "@STDIN:ASCII"
                     ENDIF
                
                     PROMPT     "Do you want to enter the system serial number?"
                     YES        "PROD_SN"
                     NO         ""
                     IFSET      "PROD_SN"
                        FRUFIELD    "S#" "@STDIN:ASCII"
                     ENDIF
                
                     PROMPT      "Do you want to enter the product asset tag?"
                     YES         "ASSET"
                     NO          ""
                     DISPLAY     ""
                     IFSET   "ASSET"
                         FRUFIELD    "AT" "@STDIN:ASCII"
                     ENDIF
               ENDIF // END IFSET "UPD_PRD"
            ENDIF //END IFSET "ER"

        ENDIF   //END IFSET "FRU"
    ENDIF // ASSET TAG
ENDIF // IFSET "EXIT1"
