//****************************************************************************
//                   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 - 2012 Intel Corporation. All Rights Reserved.
//****************************************************************************
//
//  TITLE: Master.CFG             DATE CREATED:  03/03/2012
//****************************************************************************
//  Revision History:
//
//****************************************************************************

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

// Detect Product ID***********************************************************
PROBE           "BASEBOARD_PRODID" "5D"
FOUND           "CO"  ""

IFSET "CO"
    DISPLAY "Intel(R) Server Board S2600CO 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 - 2012 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

SET "SDR"


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"

            // 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"
                ENDIF

                // Check all fans
                IFSET "SKUS"
                    PROBE "FAN_SIGNAL" 00 01
                    FOUND "FAN_P1" ""
                    PROBE "FAN_SIGNAL" 01 01
                    FOUND "FAN_P2" ""
                    PROBE "FAN_SIGNAL" 02 01
                    FOUND "FAN_P3" "NO_FAN_P3"
                    PROBE "FAN_SIGNAL" 03 01
                    FOUND "FAN_P4" "NO_FAN_P4"
                    PROBE "FAN_SIGNAL" 04 01
                    FOUND "FAN_P5" "NO_FAN_P5"

                    IFSET "FAN_P1" "FAN_P2" "FAN_P3" "FAN_P4" "FAN_P5"
                        DISPLAY ""
                        DISPLAY "Intel(R) Server Chassis P4000M Redundant Fan passive heatsink SKU is detected"
                        SET "P4000"
                    ELSE
                        //Detect 120mm tach fan
                        PROBE "FAN_SIGNAL" 06
                        FOUND "CPU_FAN_1" ""
                        PROBE "FAN_SIGNAL" 07
                        FOUND "CPU_FAN_2" ""
                        PROBE "FAN_SIGNAL" 00
                        FOUND "FAN_P1" ""
                        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_P5" ""
                        
                        // Work-around for hardware register to be reset by detecting twice
                        PROBE "FAN_SIGNAL" 00
                        FOUND "FAN_P1" ""
                        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_P5" ""
                        PROBE "FAN_SIGNAL" 06
                        FOUND "CPU_FAN_1" ""
                        PROBE "FAN_SIGNAL" 07
                        FOUND "CPU_FAN_2" ""

                        IFSET "FAN_P1" "FAN_P2" "NO_FAN_P3" "NO_FAN_P4" "NO_FAN_P5"
                            IFSET "CPU_FAN_1"
                                DISPLAY ""
                                DISPLAY " Intel(R) Server Chassis P4000M Non Redundant Fan 150w active SKU is detected"
                                SET "P4000_ACTIVE"
                            ELSE
                                //In case, probe cpu fan again
                                IFSET "CPU_FAN_1"
                                    DISPLAY ""
                                ELSE
                                    PROBE "FAN_SIGNAL" 06
                                    FOUND "CPU_FAN_1" ""
                                ENDIF
                                IFSET "CPU_FAN_2"
                                    DISPLAY ""
                                ELSE
                                    PROBE "FAN_SIGNAL" 07
                                    FOUND "CPU_FAN_2" ""
                                ENDIF
                                
                                IFSET "CPU_FAN_1"
                                    DISPLAY ""
                                    DISPLAY "Intel(R) Server Chassis P4000M Non Redundant Fan 150w active SKU is detected"
                                    SET "P4000_ACTIVE"
                                ELSE
                                    DISPLAY ""
                                    DISPLAY " Intel(R) Server Chassis P4000M Non Redundant Fan passive heatsink SKU is detected"
                                    SET "P4000_BASE"
                                ENDIF
                            ENDIF
                        ELSE
                            DISPLAY ""
                            DISPLAY "Fan configuration is not valid, falling back to user selection as auto-detection is not possible."
                            SET "USER_SELECT"
                        ENDIF
                    ENDIF //"FAN_P1" "FAN_P2" "FAN_P3" "FAN_P4" "FAN_P5"
                ELSE
                    DISPLAY ""
                    DISPLAY "Falling back to Other Chassis."
                    SET "OTHER"
                ENDIF //"SKUS"

            ENDIF // "AUTO_DETECTION"

            // Set User select
            IFSET "USER_SELECT"
                DISPLAY ""
                MENUTITLE   "Select the SKUs:"
                MENU    "P4000"             "Intel(R) Server Chassis P4000M Redundant Fan passive heatsink SKU"
                MENU    "P4000_BASE"        "Intel(R) Server Chassis P4000M Non Redundant Fan passive heatsink SKU"
                MENU    "P4000_ACTIVE"      "Intel(R) Server Chassis P4000M Non Redundant Fan 150w active 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"


            // Power Supply & HSBP Check
            IFSET "FACTORY_MODE"
                // Factory mode. Need not check PSU/HSBP.
            ELSE

                //Probe for sensors and FRU device
                DISPLAY ""
                DISPLAY "Probing system for sensors and FRU device hardware..."
                DISPLAY ""

                //Processor
                SET "PROC_1"
                PROBE "PROCESSOR" 2
                FOUND "PROC_2"         ""
                
                // Power Supply Check -------------------------------------------------------------------------------------
                // Detect PS1
    	        PROBE "PING"          "0F"      "B0"
    	        FOUND "PS1"           "NO_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-460KB A"
                            FOUND "460_PS1" ""

                            PROBE FRUFIELD "PN" "DPS-750XB A"
                            FOUND "750_PS1" ""

                            PROBE FRUFIELD "PN" "DPS-1200TB A"
                            FOUND "1200_PS1" ""
                        ENDIF
                    ENDIF
    	        ENDIF

    	        // Detect PS2
    	        PROBE "PING"          "0F"      "B2"
    	        FOUND "PS2"           "NO_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-460KB A"
                            FOUND "460_PS2" ""

                            PROBE FRUFIELD "PN" "DPS-750XB A"
                            FOUND "750_PS2" ""

                            PROBE FRUFIELD "PN" "DPS-1200TB A"
                            FOUND "1200_PS2" ""
                        ENDIF
                    ENDIF
    	        ENDIF

                // HSBP Check----------------------------------------------------------------------------------------------
                // Detect HSBP1
                PROBE "PING"    "0B"    "D0"
                FOUND "HSBP1_PR"     ""
                IFSET   "HSBP1_PR"
                    FRUNAME "SYSTEM"
                    FRUADDRESS 05
                    FRUAREA "BOARD" VALIDATE HSBP_CK11
                    IFSET HSBP_CK11
                        FRUAREA "BOARD"
                        PROBE FRUFIELD "PN" "FUP4X35HSBP"
                        FOUND "HSBP_1_BP4" ""
                        PROBE FRUFIELD "PN" "FUP8X35HSBP"
                        FOUND "HSBP_1_BP8" ""
                        PROBE FRUFIELD "PN" "FXX8X25HSBP"
                        FOUND "HSBP_1_25DT" ""
                    ENDIF
                    // Detect HSBP2
                    PROBE "PING"    "0B"    "D2"
                    FOUND "HSBP2_PR"     ""
                    IFSET   "HSBP2_PR"
                        FRUNAME "SYSTEM"
                        FRUADDRESS 06
                        FRUAREA "BOARD" VALIDATE HSBP_CK21
                        IFSET HSBP_CK21
                            FRUAREA "BOARD"
                            PROBE FRUFIELD "PN" "FUP4X35HSBP"
                            FOUND "HSBP_2_BP4" ""
                            PROBE FRUFIELD "PN" "FUP8X35HSBP"
                            FOUND "HSBP_2_BP8" ""
                            PROBE FRUFIELD "PN" "FXX8X25HSBP"
                            FOUND "HSBP_2_25DT" ""
                        ENDIF
                        // Detect HSBP3
                        PROBE "PING"    "0B"    "D4"
                        FOUND "HSBP3_PR"     ""
                        IFSET   "HSBP3_PR"
                            FRUNAME "SYSTEM"
                            FRUADDRESS 07
                            FRUAREA "BOARD" VALIDATE HSBP_CK31
                            IFSET HSBP_CK31
                                FRUAREA "BOARD"
                                PROBE FRUFIELD "PN" "FUP4X35HSBP"
                                FOUND "HSBP_3_BP4" ""
                                PROBE FRUFIELD "PN" "FUP8X35HSBP"
                                FOUND "HSBP_3_BP8" ""
                                PROBE FRUFIELD "PN" "FXX8X25HSBP"
                                FOUND "HSBP_3_25DT" ""
                            ENDIF
                        ENDIF //ENDIF "HSBP3_PR"
                    ENDIF //ENDIF "HSBP2_PR"
                ENDIF //ENDIF "HSBP1_PR"

                // Power Supply and HSBP show prompt----------------------------------------------------------------------------------------------
                // Power Supply Module 1 & 2

                IFSET "P4000" "NO_PS1" "NO_PS2"
                    // Intel(R) Server Chassis P4000M Redundant Fan passive heatsink SKU does not support Fixed Power Supply.
                    // If redundant PSU is not detected, there might be some problem.
                    DISPLAY ""
                    DISPLAY "Power Supply is not detected."
                ENDIF

                IFSET   "PS1"
                    IFSET "460_PS1"
                        SET "EATEMP"
                        DISPLAY ""
                        DISPLAY "460W Power Supply 1 is detected."
                    ELSE
                        IFSET "750_PS1"
                            SET "EATEMP"
                            DISPLAY ""
                            DISPLAY "750W Power Supply 1 is detected."
                        ELSE
                            IFSET "1200_PS1"
                                SET "EATEMP"
                                DISPLAY ""
                                DISPLAY "1200W Power Supply 1 is detected."
                            ELSE
                                DISPLAY ""
                                DISPLAY "Power supply 1 FRU is invalid."
                            ENDIF
                        ENDIF
                    ENDIF
                ENDIF

                IFSET   "PS2"
                    IFSET "460_PS2"
                        SET "EATEMP"
                        DISPLAY ""
                        DISPLAY "460W Power Supply 2 is detected."
                    ELSE
                        IFSET "750_PS2"
                            SET "EATEMP"
                            DISPLAY ""
                            DISPLAY "750W Power Supply 2 is detected."
                        ELSE
                            IFSET "1200_PS2"
                                SET "EATEMP"
                                DISPLAY ""
                                DISPLAY "1200W Power Supply 2 is detected."
                            ELSE
                                DISPLAY ""
                                DISPLAY "Power supply 2 FRU is invalid."
                            ENDIF
                        ENDIF
                    ENDIF
                ENDIF

                IFSET   "PS1"  "PS2"
                    SET "PS_REDUNDANCY"
                ENDIF


                //HSBP
                IFSET   "HSBP1_PR"
                    //HSBP1 is detected.
                ELSE
                    IFSET   "HSBP2_PR"
                        //HSBP2 is detected.
                    ELSE
                        IFSET   "HSBP3_PR"
                            //HSBP3 is detected.
                        ELSE
                            DISPLAY ""
                            DISPLAY "Hot Swap Backplane is not detected."
                        ENDIF
                    ENDIF
                ENDIF

                IFSET   "HSBP1_PR"
                    IFSET "HSBP_1_BP4"
                        DISPLAY ""
                        DISPLAY "4 X 3.5 Hot Swap Backplane 1 is detected."
                    ELSE
                        IFSET "HSBP_1_BP8"
                            DISPLAY ""
                            DISPLAY "8 X 3.5 Hot Swap Backplane 1 is detected."
                        ELSE
                            IFSET "HSBP_1_25DT"
                                SET "HSBP_1_BP8"
                                DISPLAY ""
                                DISPLAY "8 X 2.5 Hot Swap Backplane 1 is detected."
                            ELSE
                                DISPLAY ""
                                DISPLAY "Hot Swap Backplane 1 FRU is invalid."
                            ENDIF
                        ENDIF
                    ENDIF
                ENDIF

                IFSET   "HSBP2_PR"
                    IFSET "HSBP_2_BP4"
                        DISPLAY ""
                        DISPLAY "4 X 3.5 Hot Swap Backplane 2 is detected."
                    ELSE
                        IFSET "HSBP_2_BP8"
                            DISPLAY ""
                            DISPLAY "8 X 3.5 Hot Swap Backplane 2 is detected."
                        ELSE
                            IFSET "HSBP_2_25DT"
                                SET "HSBP_2_BP8"
                                DISPLAY ""
                                DISPLAY "8 X 2.5 Hot Swap Backplane 2 is detected."
                            ELSE
                                DISPLAY ""
                                DISPLAY "Hot Swap Backplane 2 FRU is invalid."
                            ENDIF
                        ENDIF
                    ENDIF
                ENDIF

                IFSET   "HSBP3_PR"
                    IFSET "HSBP_3_BP4"
                        DISPLAY ""
                        DISPLAY "4 X 3.5 Hot Swap Backplane 3 is detected."
                    ELSE
                        IFSET "HSBP_3_BP8"
                            DISPLAY ""
                            DISPLAY "8 X 3.5 Hot Swap Backplane 3 is detected."
                        ELSE
                            IFSET "HSBP_3_25DT"
                                SET "HSBP_3_BP8"
                                DISPLAY ""
                                DISPLAY "8 X 2.5 Hot Swap Backplane 3 is detected."
                            ELSE
                                DISPLAY ""
                                DISPLAY "Hot Swap Backplane 3 FRU is invalid."
                            ENDIF
                        ENDIF
                    ENDIF
                ENDIF

            ENDIF //End CPU/Power Supply/HSBP check


            //Set SDR tags for items that are standard on specific SKU *******************************

            //Intel(R) Server Chassis P4000M Non Redundant Fan passive heatsink SKU ----------------------------------------------------
            IFSET "P4000_BASE"
                //System Fans
                SET "FAN_120_1"
                SET "FAN_120_2"

                //Front Panel Temp
                SET "FP_TEMP"
                
                //Front Panel NMI button
                SET "FP_NMI"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF //IFSET "P4000_BASE"

            //Intel(R) Server Chassis P4000M Redundant Fan passive heatsink SKU ----------------------------------------------------
            IFSET "P4000"
                //System Fans
                SET "FAN_1"
                SET "FAN_2"
                SET "FAN_3"
                SET "FAN_4"
                SET "FAN_5"

                //Front Panel Temp
                SET "FP_TEMP"
                
                //Front Panel NMI button
                SET "FP_NMI"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF //IFSET "P4000"

            //Intel(R) Server Chassis P4000M Non Redundant Fan 150w active SKU ----------------------------------------------------
            IFSET "P4000_ACTIVE"
                //System Fans
                SET "FAN_120_1"
                SET "FAN_120_2"

                //Processer Fans
                SET "PROC1_FAN"
                IFSET "PROC_2"
                    SET "PROC2_FAN"
                ENDIF

                //Front Panel Temp
                SET "FP_TEMP"
                
                //Front Panel NMI button
                SET "FP_NMI"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF // "P4000_ACTIVE"

            //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 System Fan 5 installed?"
                YES "OTHER_FAN_5"
                NO ""
                DISPLAY ""
                PROMPT "Is System Fan 6 installed?"
                YES "OTHER_FAN_6"
                NO ""
                DISPLAY ""
                PROMPT "Is CPU Fan 1 installed?"
                YES "PROC1_FAN"
                NO ""
                DISPLAY ""
                PROMPT "Is CPU Fan 2 installed?"
                YES "PROC2_FAN"
                NO ""
                DISPLAY ""
                PROMPT "Is Rear Fan installed?"
                YES "OTHER_REAR_FAN"
                NO ""
				
                // Fan Redundancy
                IFSET "OTHER_FAN_1" "OTHER_FAN_2" "OTHER_FAN_3" "OTHER_FAN_4" "OTHER_FAN_5" "OTHER_FAN_6"
                    SET "FAN_REDUN_FLAG"
                ENDIF

                //Power Supply Module 1 & 2
                CLEAR "PS_REDUNDANCY"
                CLEAR "EATEMP"
                CLEAR "460_PS1"
                CLEAR "460_PS2"
                CLEAR "750_PS1"
                CLEAR "750_PS2"
                CLEAR "1200_PS1"
                CLEAR "1200_PS2"

                //Chassis intrusion
                DISPLAY ""
                PROMPT "Do the system have chassis intrusion?"
                YES "CHASSIS_INTRU"
                NO "NO_CHASSIS_INTRU"
                
                //Front panel NMI button
                DISPLAY ""
                PROMPT "Does the front panel support a NMI button?"
                YES "FP_NMI"
                NO  ""

            ENDIF //IFSET "OTHER"

            //Shipping ---------------------------------------------------------------------------------
            IFSET "SHIP"
            
                //Physical Security Sensor with lan leash lost event mask only
                SET "NO_CHASSIS_INTRU"

            ENDIF //IFSET "SHIP"

            //FCT --------------------------------------------------------------------------------------
            IFSET "FCT"
                //System Fans
                SET "FCT_FAN_6"
                SET "PROC1_FAN"
                SET "PROC2_FAN"
                SET "OTHER_REAR_FAN"
                SET "FAN_1"
                SET "FAN_2"
                SET "FAN_3"
                SET "FAN_4"
                SET "FAN_5"

                //Power Supply Module 1 & 2
                SET "PS_REDUNDANCY"
                SET "750_PS1"
                SET "750_PS2"

                //Processor
                SET "PROC_1"
                SET "PROC_2"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF //IFSET "FCT"

            //FCT2 -------------------------------------------------------------------------------------
            IFSET "FCT2"
                //System Fans
                SET "FCT_FAN_6"
                SET "PROC1_FAN"
                SET "OTHER_REAR_FAN"
                SET "FAN_1"
                SET "FAN_2"
                SET "FAN_3"
                SET "FAN_4"
                SET "FAN_5"

                //Power Supply Module 1 & 2
                SET "750_PS1"
                //SET "750_PS2"

                //Processor
                SET "PROC_1"

                //Chassis intrusion
                SET "CHASSIS_INTRU"

            ENDIF //IFSET "FCT2"

            SDRNAME "S2600CO.SDR"        // Update SDR Repository
            BMC_REFRESH
        ENDIF     // IFSET "SDR"

        IFSET "FRU"

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

                //Update Baseboard FRU data
                FRUNAME     "S2600CO.fru"
                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"