A system, method and device for clearing CMOS settings of a domestic Feiteng platform

By designing a system with MCU, BMC, CPU, and Flash chips in the domestic Phytium platform, and switching the Flash chip in the event of AC power failure, the complex and dangerous CMOS setting recovery problem in the prior art is solved, and safe and efficient factory setting recovery is achieved.

CN116185715BActive Publication Date: 2026-06-26INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-02-27
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

When the existing domestic Phytium platform fails to boot after modifying BIOS configuration options, restoring it to the default factory settings is a complex and dangerous process. Furthermore, the duration of shorting the pins is unpredictable and can easily cause damage.

Method used

Design a system that includes an MCU, BMC, CPU, Flash chip, button battery, and server motherboard power supply. By switching the Flash chip when AC power is off, the system can restore the BIOS firmware to factory settings using a backup Flash chip, avoiding power-on operations and reducing human error.

Benefits of technology

It enables the safe clearing of CMOS settings during AC power outages, reducing the risk of human error, improving maintenance convenience, minimizing losses, and ensuring the sequential operation of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185715B_ABST
    Figure CN116185715B_ABST
Patent Text Reader

Abstract

The application provides a system, method and device for clearing CMOS settings on a domestic Feiteng platform, belonging to the technical field of CMOS setting clearing, and the system comprises an MCU, a BMC, a CPU, a first Flash chip, a second Flash chip, a button cell and a server mainboard power supply; the CPU is connected with a first chip selection switch, and the first chip selection switch is connected with the first Flash chip, the second Flash chip and the MCU; the BMC is connected with a second chip selection switch, and the second chip selection switch is connected with the first Flash chip and the second Flash chip; the MCU is connected with the button cell, the server mainboard power supply and the BMC, and the MCU is further connected with a power-on button and a short-circuit PIN. In the case of AC power failure, the application restores the factory settings of the BIOS firmware through the backup Flash chip, reduces the risk of human operation, reduces the loss, and improves the maintenance convenience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of CMOS settings clearing technology, specifically relating to a system, method and device for clearing CMOS settings on a domestic Phytium platform. Background Technology

[0002] The digital age is driving increasing demand for servers and computers, leading to rising data center maintenance costs year after year. Reducing costs and improving maintenance convenience are becoming increasingly important. While existing x86 servers have achieved well-established maintenance systems in terms of cost and convenience after years of use, the maintenance of domestically produced servers remains inadequate. For example, the CMOS settings of current domestic Phytium platforms are directly written to the BIOS flash, ensuring permanent storage after power loss and preventing loss of configuration information during subsequent BIOS firmware loads. However, this CMOS setting mechanism has certain drawbacks. If modifying BIOS configuration options results in a failure to boot, restoring to factory default settings becomes extremely cumbersome, requiring flash replacement or firmware re-flashing.

[0003] Currently, there is only one solution to the above problem: after powering on the machine in the preparation state, manually short-circuit the CMOS PIN pin. When the BIOS starts and initializes to this GPIO, it will determine that the PIN pin is short-circuited and will be at a low level, which means that the CMOS settings need to be reset. The BIOS will start the recovery default program to complete the configuration recovery. After the recovery, power off and restart again to restore the default values.

[0004] The disadvantages of the above method are that it requires the machine to be fully powered on and the case to be opened while powered on, and the PIN pins to be manually shorted. This operation is prone to danger and misoperation. Secondly, the duration of shorting the PIN pins is uncertain and needs to be shorted until the BIOS initialization is completed, which takes more than 5 minutes. This operation is prone to danger when opening the case while powered on and can easily damage the motherboard and other parts.

[0005] This is a shortcoming of the existing technology. Therefore, it is very necessary to provide a system, method and device for clearing CMOS settings on the Phytium platform to address the above-mentioned defects in the existing technology. Summary of the Invention

[0006] The existing domestic Phytium platform's CMOS settings clearing method, which uses a manual short-circuit pin, involves opening the box while the circuit is powered on, posing a risk and causing a long short-circuit time. This invention provides a system, method, and apparatus for clearing CMOS settings on a domestic Phytium platform to solve the aforementioned technical problems.

[0007] In a first aspect, the present invention provides a system for clearing CMOS settings on a domestic Phytium platform, comprising an MCU, a BMC, a CPU, a first Flash chip, a second Flash chip, a button battery, and a server motherboard power supply;

[0008] The CPU is connected to a first chip select switch, which is connected to the first Flash chip, the second Flash chip, and the MCU.

[0009] The BMC is connected to a second selector switch, which is connected to both the first Flash chip and the second Flash chip.

[0010] The MCU is connected to the button battery, the server motherboard power supply, and the BMC. The MCU is also connected to a power button and a shorting pin.

[0011] Furthermore, the button cell is connected to a first diode;

[0012] The server motherboard power supply has a second diode;

[0013] The positive terminal of the button battery is connected to the positive terminal of the first diode, the positive terminal of the server motherboard power supply is connected to the positive terminal of the second diode, and the positive terminal of the first diode is connected to the positive terminal of the second diode to power the MCU;

[0014] The negative terminal of the button battery is connected to the negative terminal of the server motherboard power supply and grounded.

[0015] Furthermore, the MCU is provided with a first clear setting signal pin, a second clear setting signal pin, a switch reporting pin, a chip select control pin, a power supply pin, and a sleep pin;

[0016] The positive terminal of the button battery is also connected to a first resistor, the other end of the first resistor is connected to a second resistor, and is connected to the sleep pin of the MCU. The other end of the second resistor is grounded.

[0017] The positive terminals of the first and second diodes are connected to the power supply pins of the MCU, and a third resistor is connected thereto.

[0018] The first clear setting signal pin is connected to one of the short-circuit pins, and is connected to the other end of the third resistor. The other pin of the short-circuit pin is connected to the fourth resistor, and the other end of the fourth resistor is grounded.

[0019] The second clear setting signal pin is connected to the power button, and the other end of the power button is connected to the fifth resistor, the other end of the fifth resistor is grounded;

[0020] Switch the reporting pin connection to the BMC;

[0021] The chip select control pin is connected to the first chip select switch.

[0022] Secondly, the present invention provides a method for clearing CMOS settings on a domestic Phytium platform based on the first aspect described above, comprising the following steps:

[0023] S 1. Determine whether the MCU is in active or sleep mode based on whether the AC power supply is on;

[0024] S 2. In MCU sleep mode, wake up the MCU by pressing the power button or shorting the PIN, then switch the Flash chip that is performing the work through the MCU, and re-enter sleep mode after the switching is completed;

[0025] S3. In MCU active mode, BMC obtains Flash chip switching information and the currently working Flash chip from MCU, and then writes the BIOS firmware into the standby Flash chip through BMC.

[0026] Furthermore, the specific steps of step S1 are as follows:

[0027] S 11. After the server motherboard power supply fails, the button battery powers the MCU and notifies the MCU to enter sleep mode;

[0028] S 12. When the server is ready to power on, the AC power supply is turned on, and the server motherboard power supply and the button battery power the MCU, causing the MCU to enter active working mode. The button battery provides the MCU with a sleep mode signal through a voltage divider between the first and second resistors.

[0029] Furthermore, the specific steps of step S2 are as follows:

[0030] S 21. When it is necessary to clear CMOS settings, disconnect the server AC power;

[0031] S 22. Determine whether a signal of pressing and holding the power button for a set time period is received or a signal of shorting the P IN pin is received;

[0032] If not, return to step S 22;

[0033] If so, proceed to step S23;

[0034] S 23. Wake up the MCU, and the MCU confirms that it has detected a request to clear CMOS settings;

[0035] S 24. The MCU determines that a Flash chip switch has been performed while the device is powered off;

[0036] If so, the MCU does not perform the operation, re-enters sleep mode, and returns to step S1;

[0037] If not, proceed to step S25;

[0038] S 25. The MCU switches the operating Flash chip via the first chip select switch, records the number of Flash chip switching times, and re-enters sleep mode after switching. To clear CMOS settings, disconnect the AC power supply and manually short-circuit the PIN pins upon opening the box. This will pull the first clear setting pin signal low, waking the MCU. Alternatively, by pressing and holding the power button for a set time period, the second clear setting pin signal will be pulled low, thus waking the MCU. Because the user's CMOS settings are also stored in the Flash chip, switching the operating Flash chip will clear the CMOS settings.

[0039] Furthermore, the specific steps of step S3 are as follows:

[0040] S 31. In MCU activation mode, BMC actively reads MCU information to obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and displays it on the BMC WEB page;

[0041] S 32. After the server boots up normally, determine whether the CPU has issued a BIOS boot completion signal;

[0042] If not, return to step S32;

[0043] If so, proceed to step S33;

[0044] S 33. BMC flashes the BI OS firmware to the backup Flash chip to repair the damaged Flash chip;

[0045] S 34. BMC determines whether the Flash chip refresh is normal;

[0046] If so, proceed to step S35;

[0047] If not, proceed to step S36;

[0048] S 35. BMC resets the MCU to its initial state and returns to step S1;

[0049] S 36. BMC prompts users on its web page to promptly replace the corresponding damaged Flash chip. After repairing the damaged Flash chip, BMC ensures that both Flash chips are usable, achieving true backup. The system prompts customers to replace the damaged Flash chip, but this does not affect actual user operation.

[0050] Thirdly, the present invention provides a device for clearing CMOS settings on a domestically produced Tengfei platform, comprising:

[0051] The mode determination module is used to determine whether the MCU is in active mode or sleep mode based on whether the AC power supply is on.

[0052] The Flash chip switching module is used to wake up the MCU from sleep mode by the power button or shorting the PIN, and then switch the Flash chip that is performing the work through the MCU, and then return to sleep mode after the switching is completed.

[0053] The Flash chip refresh module is used in MCU active mode. The BMC obtains Flash chip switching information and the currently working Flash chip from the MCU, and then writes the BIOS firmware into the standby Flash chip through the BMC.

[0054] Furthermore, the pattern determination module includes:

[0055] The hibernation mode entry unit is used to power the MCU with the coin cell battery after the server motherboard power supply fails, and to notify the MCU to enter hibernation mode.

[0056] When the server is ready to power on, the AC power supply is turned on, and the server motherboard power supply and button battery power the MCU. The MCU then enters the activation mode.

[0057] The Flash chip switching module includes:

[0058] AC power-off unit: disconnects the server's AC power supply when it is necessary to clear CMOS settings;

[0059] Clear the signal receiving judgment unit to determine whether a signal of pressing and holding the power button for a set period of time is received or a short-circuit PIN signal is received;

[0060] The MCU wake-up unit is used to wake up the MCU when it receives a signal that the power button has been pressed and held for a set period of time or when it receives a short-circuit P IN pin signal. The MCU then confirms that a request to clear CMOS settings has been detected.

[0061] The switching execution judgment unit is used by the MCU to determine whether a Flash chip switching has been performed in the power-off state;

[0062] The re-sleep unit is used to set the MCU not to perform any operation and to re-enter sleep mode when a Flash chip switch has been performed while the power is off.

[0063] The Flash chip switching execution and recording unit is used when no Flash chip switching has been performed in the power-off state. The MCU switches the operating Flash chip through the first chip select switch, records the number of Flash chip switching times, and re-enters sleep mode after the switching is completed. The button battery provides the MCU with the sleep mode signal through a voltage divider between the first and second resistors. To clear the CMOS settings, disconnect the AC power supply and manually short the P IN pin after opening the box. This will pull the first clear setting pin signal low, waking up the MCU. Alternatively, by pressing and holding the power button for a set time period, the second clear setting pin signal will be pulled low, thus waking up the MCU.

[0064] Furthermore, the Flash chip refresh module includes:

[0065] The Flash chip switching information acquisition unit is used to actively read MCU information through BMC in MCU active mode, obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and display it on the BMC WEB page.

[0066] The BIOS boot completion judgment unit is used to determine whether the CPU has issued a BIOS boot completion signal after the server has booted up normally.

[0067] The Flash chip repair unit is used to set the BMC to refresh the BIOS firmware to the standby Flash chip after the CPU sends the BIOS boot completion signal, thereby repairing the damaged Flash chip.

[0068] The refresh normal judgment unit is used to determine whether the Flash chip refresh is normal through the BMC;

[0069] The MCU reset unit is used to reset the MCU to its initial state via the BMC when the Flash chip refreshes normally.

[0070] A replacement notification unit is used to prompt the user to replace the corresponding damaged Flash chip promptly via the BMC on a web page when the Flash chip refresh is abnormal.

[0071] The beneficial effects of this invention are as follows:

[0072] The system, method, and apparatus for clearing CMOS settings on the domestic Phytium platform provided by this invention avoids the need to clear CMOS settings only upon power-up. In the event of an AC power failure, the BIOS firmware is restored to factory settings via a backup Flash chip, ensuring the sequential operation of the server, reducing the risk of human error, minimizing losses, and improving maintenance convenience.

[0073] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects.

[0074] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0075] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0076] Figure 1 This is a schematic diagram of the system circuit for clearing CMOS settings on the domestic Phytium platform of the present invention.

[0077] Figure 2 This is a flowchart illustrating Embodiment 3 of the method for clearing CMOS settings on the domestic Phytium platform of the present invention.

[0078] Figure 3 This is a flowchart of Embodiment 4 of the method for clearing CMOS settings on the domestic Phytium platform of the present invention.

[0079] Figure 4 This is a schematic diagram of the device for clearing CMOS settings on the domestic Phytium platform of the present invention.

[0080] In the diagram, 1-MCU; 2-BMC; 3-CPU; 4-First Flash chip; 5-Second Flash chip; V1-Button battery; V2-Server motherboard power supply; SW1-First chip select switch; SW2-Second chip select switch; PW_ON-Power button; Q1-Short circuit pin; D1-First diode; D2-Second diode; P1-First clear setting signal pin; P2-Second clear setting signal pin; P3-Switch reporting pin; CS#-Chip select control pin; VCC-Power supply pin; SL-Sleep pin; R1-First resistor; R2-Second resistor; R3-Third resistor; R4-Fourth resistor; R5-Fifth resistor. Detailed Implementation

[0081] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0082] To address the issue that domestic Phytium platform CPUs lack internal registers to save CMOS settings during power outages, and that CMOS settings are difficult to clear and factory reset, this invention, through the following embodiments, switches the CPU's boot BIOS firmware to a spare new Flash chip. This ensures smooth server operation, allowing the server to continue functioning even if the original Flash chip fails.

[0083] MCU stands for Microprocessor. Alternatively, any processor with a sleep function can be selected. The processor can be woken up by an interrupt to handle tasks. After the microprocessor completes the write operation, it will actively enter sleep mode.

[0084] The CPU and BMC are active processors. The CPU starts by reading the BIOS configuration information, and the BMC can upgrade and repair the BIOS firmware, assist in restoring the BIOS firmware to factory settings, and reset the MCU program.

[0085] The BMC can access the microprocessor via buses such as SMBUS, GPIO, and UART.

[0086] The Flash chip is where the BIOS firmware is stored, and the user's CMOS settings are also stored in the Flash chip, to be loaded on the next boot.

[0087] Example 1:

[0088] like Figure 1 As shown, the present invention provides a system for clearing CMOS settings on a domestic Phytium platform, including MCU1, BMC2, CPU3, first Flash chip4, second Flash chip5, button battery V1, and server motherboard power supply V2;

[0089] CPU 3 is connected to a first chip selector switch SW1, which is connected to the first Flash chip 4, the second Flash chip 5, and MCU 1.

[0090] BMC 2 is connected to a second selector switch SW2, which is connected to both the first Flash chip 4 and the second Flash chip 5.

[0091] MCU 1 is connected to button battery V1, server motherboard power supply V2, and BMC 2. MCU 1 is also connected to power button PW_ON and short-circuit pin Q1.

[0092] The system for clearing CMOS settings on the domestic Phytium platform provided by this invention avoids the need to clear CMOS settings only upon power-up. In the event of an AC power failure, it restores the BIOS firmware to factory settings via a backup flash chip, ensuring sequential server operation, reducing the risk of human error, minimizing losses, and improving maintenance convenience.

[0093] Example 2:

[0094] like Figure 1 As shown, the present invention provides a system for clearing CMOS settings on a domestic Phytium platform, including MCU1, BMC2, CPU3, first Flash chip4, second Flash chip5, button battery V1, and server motherboard power supply V2;

[0095] CPU 3 is connected to a first chip selector switch SW1, which is connected to the first Flash chip 4, the second Flash chip 5, and MCU 1.

[0096] BMC 2 is connected to a second selector switch SW2, which is connected to both the first Flash chip 4 and the second Flash chip 5.

[0097] MCU 1 is connected to button battery V1, server motherboard power supply V2 and BMC 2. MCU 1 is also connected to power button PW_ON and shorting pin Q1.

[0098] The button cell V1 is connected to the first diode D1;

[0099] The server motherboard power supply V2 is connected to a second diode D2;

[0100] The positive terminal of button battery V1 is connected to the positive terminal of the first diode D1, the positive terminal of server motherboard power supply V2 is connected to the positive terminal of the second diode D2, the positive terminal of the first diode D1 is connected to the positive terminal of the second diode D2, and supplies power to MCU 1;

[0101] The negative terminal of the button battery V1 is connected to the negative terminal of the server motherboard power supply V2 and grounded;

[0102] MCU 1 has a first clear setting signal pin P1, a second clear setting signal pin P2, a switch reporting pin P3, a chip select control pin CS#, a power supply pin VCC, and a sleep pin SL;

[0103] The positive terminal of the button battery V1 is also connected to a first resistor R1. The other end of the first resistor R1 is connected to a second resistor R2 and is connected to the sleep pin SL of MCU 1. The other end of the second resistor R2 is grounded.

[0104] The positive terminals of the first diode D1 and the second diode D2 are connected to the power supply pin VCC of MCU 1, and a third resistor R3 is connected thereto.

[0105] The first clear setting signal pin P1 is connected to one of the short-circuit pins Q1 and is connected to the other end of the third resistor R3. The other pin of the short-circuit pin Q1 is connected to the fourth resistor R4, and the other end of the fourth resistor R4 is grounded.

[0106] The second clear setting signal pin P2 is connected to the power button PW_ON. The other end of the power button PW_ON is connected to the fifth resistor R5, and the other end of the fifth resistor R5 is grounded.

[0107] Switch the reporting pin P3 to BMC 2 connection;

[0108] The chip select control pin CS# is connected to the first chip select switch SW1.

[0109] Example 3:

[0110] like Figure 2 As shown, the present invention provides a method for clearing CMOS settings on a domestic Phytium platform based on Embodiment 1 or Embodiment 2 described above, comprising the following steps:

[0111] S 1. Determine whether the MCU is in active or sleep mode based on whether the AC power supply is on;

[0112] S 2. In MCU sleep mode, wake up the MCU by pressing the power button or shorting the PIN, then switch the Flash chip that is performing the work through the MCU, and re-enter sleep mode after the switching is completed;

[0113] S3. In MCU active mode, BMC obtains Flash chip switching information and the currently working Flash chip from MCU, and then writes the BIOS firmware into the standby Flash chip through BMC.

[0114] The method for clearing CMOS settings on the domestic Phytium platform provided by this invention avoids the need to clear CMOS settings only upon power-up. In the event of an AC power failure, the BIOS firmware is restored to factory settings via a backup flash chip, ensuring sequential server operation, reducing the risk of human error, minimizing losses, and improving maintenance convenience.

[0115] Example 4:

[0116] like Figure 2 As shown, this invention provides a method for clearing CMOS settings on a domestic Phytium platform, comprising the following steps:

[0117] S1. Determine whether the MCU is in active or sleep mode based on whether the AC power supply is on; the specific steps of step S1 are as follows:

[0118] S 11. After the server motherboard power supply fails, the button battery powers the MCU and notifies the MCU to enter sleep mode;

[0119] S 12. When the server is ready to power on, the AC power supply is turned on, and the server motherboard power supply and the button battery power the MCU, and the MCU enters the active working mode; the button battery provides the MCU with the sleep mode signal through the voltage divider of the first resistor and the second resistor.

[0120] S2. In MCU sleep mode, wake up the MCU by pressing the power button or shorting the PIN, then switch the Flash chip that is performing the operation through the MCU, and re-enter sleep mode after the switch is completed; the specific steps of step S2 are as follows:

[0121] S 21. When it is necessary to clear CMOS settings, disconnect the server AC power;

[0122] S 22. Determine whether a signal indicating a long press of the power button for a set time period is received or a short-circuit P IN pin signal is received; for example, whether a signal indicating a long press of the power button for 4 seconds is received.

[0123] If not, return to step S 22;

[0124] If so, proceed to step S23;

[0125] S 23. Wake up the MCU, and the MCU confirms that it has detected a request to clear CMOS settings;

[0126] S 24. The MCU determines that a Flash chip switch has been performed while the device is powered off;

[0127] If so, the MCU does not perform the operation, re-enters sleep mode, and returns to step S1;

[0128] If not, proceed to step S25;

[0129] S 25. The MCU switches the operating Flash chip via the first chip select switch, records the number of Flash chip switching times, and re-enters sleep mode after switching. When CMOS settings need to be cleared, disconnect the AC power supply and manually short-circuit the PIN pins after opening the box. This will pull the first clear setting pin signal low, waking up the MCU. Alternatively, after pressing and holding the power button for a set time period, the second clear setting pin signal will be pulled low, thus waking up the MCU. Since the user's CMOS settings are also stored in the Flash chip, switching the operating Flash chip can clear the CMOS settings.

[0130] S3. In MCU active mode, the BMC obtains Flash chip switching information and the currently working Flash chip from the MCU, and then writes the BIOS firmware into the standby Flash chip through the BMC; the specific steps of step S3 are as follows:

[0131] S 31. In MCU activation mode, BMC actively reads MCU information to obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and displays it on the BMC WEB page;

[0132] S 32. After the server boots up normally, determine whether the CPU has issued a BIOS boot completion signal;

[0133] If not, return to step S32;

[0134] If so, proceed to step S33;

[0135] S 33. BMC flashes the BI OS firmware to the backup Flash chip to repair the damaged Flash chip;

[0136] S 34. BMC determines whether the Flash chip refresh is normal;

[0137] If so, proceed to step S35;

[0138] If not, proceed to step S36;

[0139] S 35. BMC resets the MCU to its initial state and returns to step S1;

[0140] S 36.BMC prompts users on its web page to replace the corresponding damaged Flash chip in a timely manner.

[0141] With the AC power completely disconnected from the server and the environment safe, the CMOS settings can be cleared by manually shorting the CMOS shorting pin or by pressing and holding the PW_ON power button for 4 seconds. This method is performed with the AC power disconnected, so there is no risk of electric shock. In addition, there will be no additional losses or impacts due to human error. Moreover, this method is quick and easy to operate.

[0142] Example 5:

[0143] like Figure 4 As shown, this invention provides a device for clearing CMOS settings on a domestically produced Tengfei platform, comprising:

[0144] The mode determination module is used to determine whether the MCU is in active mode or sleep mode based on whether the AC power supply is on.

[0145] The Flash chip switching module is used to wake up the MCU from sleep mode by the power button or shorting the PIN, and then switch the Flash chip that is performing the work through the MCU, and then return to sleep mode after the switching is completed.

[0146] The Flash chip refresh module is used in MCU active mode. The BMC obtains Flash chip switching information and the currently working Flash chip from the MCU, and then writes the BIOS firmware into the standby Flash chip through the BMC.

[0147] The device for clearing CMOS settings on the domestic Phytium platform provided by this invention avoids the need to clear CMOS settings only upon power-up. In the event of an AC power failure, it restores the BIOS firmware to factory settings via a backup flash chip, ensuring the server's sequential operation, reducing the risk of human error, minimizing losses, and improving maintenance convenience.

[0148] Example 6:

[0149] like Figure 4 As shown, this invention provides a device for clearing CMOS settings on a domestically produced Tengfei platform, comprising:

[0150] The mode determination module is used to determine whether the MCU is in active mode or sleep mode based on whether the AC power supply is on. The mode determination module includes:

[0151] The hibernation mode entry unit is used to power the MCU with the coin cell battery after the server motherboard power supply fails, and to notify the MCU to enter hibernation mode.

[0152] When the server is ready to power on, the AC power supply is turned on, and the server motherboard power supply and button battery power the MCU. The MCU then enters the activation mode.

[0153] The Flash chip switching module is used to wake up the MCU from sleep mode via a power button or a short-circuited pin, then switch the operating Flash chip through the MCU, and finally return to sleep mode after the switching is complete. The Flash chip switching module includes:

[0154] AC power-off unit: disconnects the server's AC power supply when it is necessary to clear CMOS settings;

[0155] Clear the signal receiving judgment unit to determine whether a signal of pressing and holding the power button for a set period of time is received or a short-circuit PIN signal is received;

[0156] The MCU wake-up unit is used to wake up the MCU when it receives a signal that the power button has been pressed and held for a set period of time or when it receives a short-circuit P IN pin signal. The MCU then confirms that a request to clear CMOS settings has been detected.

[0157] The switching execution judgment unit is used by the MCU to determine whether a Flash chip switching has been performed in the power-off state;

[0158] The re-sleep unit is used to set the MCU not to perform any operation and to re-enter sleep mode when a Flash chip switch has been performed while the power is off.

[0159] The Flash chip switching execution and recording unit is used when the power-off state has not performed Flash chip switching. The MCU switches the Flash chip to perform the operation through the first chip select switch, records the number of Flash chip switching, and re-enters sleep mode after the switching is completed.

[0160] The Flash chip refresh module is used in MCU active mode. The BMC obtains Flash chip switching information and the currently active Flash chip from the MCU, and then writes the BIOS firmware into the standby Flash chip via the BMC. The Flash chip refresh module includes:

[0161] The Flash chip switching information acquisition unit is used to actively read MCU information through BMC in MCU active mode, obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and display it on the BMC WEB page.

[0162] The BIOS boot completion judgment unit is used to determine whether the CPU has issued a BIOS boot completion signal after the server has booted up normally.

[0163] The Flash chip repair unit is used to set the BMC to refresh the BIOS firmware to the standby Flash chip after the CPU sends the BIOS boot completion signal, thereby repairing the damaged Flash chip.

[0164] The refresh normal judgment unit is used to determine whether the Flash chip refresh is normal through the BMC;

[0165] The MCU reset unit is used to reset the MCU to its initial state via the BMC when the Flash chip refreshes normally.

[0166] A replacement notification unit is used to prompt the user to replace the corresponding damaged Flash chip promptly via the BMC on a web page when the Flash chip refresh is abnormal.

[0167] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A method for clearing CMOS settings in a system based on the Phytium platform, characterized in that, The system includes an MCU (1), a BMC (2), a CPU (3), a first Flash chip (4), a second Flash chip (5), a button battery (V1), and a server motherboard power supply (V2). The CPU (3) is connected to a first chip selector switch (SW1), which is connected to the first Flash chip (4), the second Flash chip (5), and the MCU (1). BMC (2) is connected to a second chip selector switch (SW2), which is connected to both the first Flash chip (4) and the second Flash chip (5). The MCU (1) is connected to the button battery (V1), the server motherboard power supply (V2) and the BMC (2). The MCU (1) is also connected to the power button (PW_ON) and the shorting pin (Q1). The method includes the following steps: S1. Determine whether the MCU is in active or sleep mode based on whether the AC power supply is on; The specific steps of step S1 are as follows: S11. After the server motherboard power supply fails, the button battery powers the MCU and notifies the MCU to enter sleep mode; S12. When the server is ready to be powered on, the AC power supply is turned on, the server motherboard power supply and the button battery power the MCU, and the MCU enters the activation working mode; S2. In MCU sleep mode, wake up the MCU by pressing the power button or shorting the PIN, then switch the Flash chip that is performing the work through the MCU, and re-enter sleep mode after the switching is completed; S3. In MCU active mode, BMC obtains Flash chip switching information and the currently working Flash chip from MCU, and then writes the BIOS firmware into the standby Flash chip through BMC.

2. The method as described in claim 1, characterized in that, The button cell battery (V1) is connected to the first diode (D1). The server motherboard power supply (V2) is connected to a second diode (D2); The positive terminal of the button battery (V1) is connected to the positive terminal of the first diode (D1), the positive terminal of the server motherboard power supply (V2) is connected to the positive terminal of the second diode (D2), and the positive terminal of the first diode (D1) is connected to the positive terminal of the second diode (D2) to power the MCU (1); The negative terminal of the button battery (V1) is connected to the negative terminal of the server motherboard power supply (V2) and grounded.

3. The method as described in claim 2, characterized in that, The MCU (1) has a first clear setting signal pin (P1), a second clear setting signal pin (P2), a switch reporting pin (P3), a chip select control pin (CS#), a power supply pin (VCC), and a sleep pin (SL); The positive terminal of the button battery (V1) is also connected to a first resistor (R1), the other end of the first resistor (R1) is connected to a second resistor (R2), and is connected to the sleep pin (SL) of the MCU (1), and the other end of the second resistor (R2) is grounded; The positive terminals of the first diode (D1) and the second diode (D2) are connected to the power supply pin (VCC) of the MCU (1), and a third resistor (R3) is connected thereto. The first clear setting signal pin (P1) is connected to one of the short-circuit pins (Q1) and connected to the other end of the third resistor (R3). The other pin of the short-circuit pin (Q1) is connected to the fourth resistor (R4), and the other end of the fourth resistor (R4) is grounded. The second clear setting signal pin (P2) is connected to the power button (PW_ON), ​​and the other end of the power button (PW_ON) is connected to the fifth resistor (R5), and the other end of the fifth resistor (R5) is grounded; Switch the connection between the reporting pin (P3) and BMC (2); The chip select control pin (CS#) is connected to the first chip select switch (SW1).

4. The method as described in claim 3, characterized in that, The specific steps of step S2 are as follows: S21. Disconnect the server AC power supply when it is necessary to clear CMOS settings; S22. Determine whether a signal of long press of the power button for a set time period is received or a short-circuit PIN signal is received; If not, return to step S22; If so, proceed to step S23; S23. Wake up the MCU. The MCU confirms that it has detected a request to clear CMOS settings. S24. The MCU determines that a Flash chip switch has been performed while the device is powered off. If so, the MCU does not perform the operation, re-enters sleep mode, and returns to step S1; If not, proceed to step S25; S25.MCU switches the Flash chip that is performing the operation through the first chip select switch, records the number of Flash chip switching, and re-enters sleep mode after the switching is completed.

5. The method as described in claim 4, characterized in that, The specific steps of step S3 are as follows: S31. In MCU activation mode, BMC actively reads MCU information to obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and displays it on the BMC WEB page; S32. After the server powers on normally, determine whether the CPU sends a BIOS boot completion signal; If not, return to step S32; If so, proceed to step S33; S33.BMC flashes the BIOS firmware to a backup Flash chip to repair the damaged Flash chip; S34.BMC determines whether the Flash chip refresh is normal; If so, proceed to step S35; If not, proceed to step S36; S35. BMC resets the MCU to its initial state and returns to step S1; The S36.BMC prompts users on its web page to replace the damaged Flash chip promptly.

6. An apparatus for clearing CMOS settings on a Phytium platform, comprising the method of claim 1, characterized in that, include: The mode determination module is used to determine whether the MCU is in active mode or sleep mode based on whether the AC power supply is on. The Flash chip switching module is used to wake up the MCU from sleep mode by the power button or shorting the PIN, and then switch the Flash chip that is performing the work through the MCU, and then return to sleep mode after the switching is completed. The Flash chip refresh module is used in MCU active mode. The BMC obtains Flash chip switching information and the currently working Flash chip from the MCU, and then writes the BIOS firmware into the standby Flash chip through the BMC.

7. The apparatus for clearing CMOS settings on the Phytium platform as described in claim 6, characterized in that, The pattern determination module includes: The hibernation mode entry unit is used to power the MCU with the coin cell battery after the server motherboard power supply fails, and to notify the MCU to enter hibernation mode. When the server is ready to power on, the AC power supply is turned on, and the server motherboard power supply and button battery power the MCU. The MCU then enters the activation mode. The Flash chip switching module includes: AC power-off unit: disconnects the server's AC power supply when it is necessary to clear CMOS settings; Clear the signal receiving judgment unit to determine whether a signal of pressing and holding the power button for a set period of time is received or a short-circuit PIN signal is received; The MCU wake-up unit is used to wake up the MCU when it receives a signal that the power button has been pressed and held for a set period of time or when it receives a short-circuit PIN signal. The MCU then confirms that a request to clear CMOS settings has been detected. The switching execution judgment unit is used by the MCU to determine whether a Flash chip switching has been performed while the MCU is powered off. The re-sleep unit is used to set the MCU not to perform any operation and to re-enter sleep mode when a Flash chip switch has been performed while the power is off. The Flash chip switching execution and recording unit is used to switch the Flash chip that is not being switched when the power is off. The MCU switches the Flash chip that is being executed through the first chip select switch, records the number of Flash chip switching, and re-enters sleep mode after the switching is completed.

8. The apparatus for clearing CMOS settings on the Phytium platform as described in claim 7, characterized in that, The Flash chip refresh module includes: The Flash chip switching information acquisition unit is used to actively read MCU information through BMC in MCU active mode, obtain the number of times the Flash chip switches in the power-off state and the currently working Flash chip, and display it on the BMC WEB page. The BIOS boot completion detection unit is used to determine whether the CPU has issued a BIOS boot completion signal after the server has booted up normally. The Flash chip repair unit is used to set the BMC to flash the BIOS firmware to the backup Flash chip after the CPU sends the BIOS boot completion signal, thereby repairing the damaged Flash chip. The refresh normal judgment unit is used to determine whether the Flash chip refresh is normal through the BMC; The MCU reset unit is used to reset the MCU to its initial state via the BMC when the Flash chip refreshes normally. The replacement prompt unit is used to prompt the user to replace the corresponding damaged Flash chip on the WEB page when the Flash chip refresh is abnormal.