CN106200847A - A method for realizing Clear CMOS function on ARM platform - Google Patents
A method for realizing Clear CMOS function on ARM platform Download PDFInfo
- Publication number
- CN106200847A CN106200847A CN201610626704.9A CN201610626704A CN106200847A CN 106200847 A CN106200847 A CN 106200847A CN 201610626704 A CN201610626704 A CN 201610626704A CN 106200847 A CN106200847 A CN 106200847A
- Authority
- CN
- China
- Prior art keywords
- bios
- flag1
- clear cmos
- arm platform
- variable1
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开一种ARM平台实现Clear CMOS功能的方法,涉及ARM服务器领域,当系统无法正常开机时,通过IPMITOOL工具给BMC下命令,在BMC中置位CLEAR CMOS的标识;BIOS在开机过程中读取BMC中的这个标识,如果CLEAR CMOS的标识被置位了,则BIOS把这个标识存放在FLASH ROM的variable中,然后BIOS触发系统重启后,BIOS去读取FLASH ROM中这个variable的值,如果有置位,则加载FLASH ROM中所有variable的默认值的动作。本发明构思新颖、实施简单,能够在ARM平台实现Clear CMOS功能,具有较好的实用价值。
The invention discloses a method for realizing the Clear CMOS function on an ARM platform, and relates to the field of ARM servers. When the system cannot be started normally, a command is given to the BMC through an IPMITOOL tool, and a CLEAR CMOS mark is set in the BMC; Take this flag in the BMC, if the flag of CLEAR CMOS is set, the BIOS will store this flag in the variable of the FLASH ROM, and then after the BIOS triggers the system to restart, the BIOS will read the value of the variable in the FLASH ROM, if If it is set, the action of loading the default values of all variables in the FLASH ROM. The invention is novel in conception and simple in implementation, can realize the Clear CMOS function on the ARM platform, and has good practical value.
Description
技术领域technical field
本发明涉及ARM服务器领域,具体的说是一种ARM平台实现Clear CMOS功能的方法。The invention relates to the field of ARM servers, in particular to a method for realizing Clear CMOS functions on an ARM platform.
背景技术Background technique
CMOS是指Intel X86平台PCH(以前叫南桥)上面的一块存储区域,由于在LEGACYBIOS的时代,BIOS SETUP变量的值就是存在于这块区域,这块区域涉及的功能在以前的设计中比较关键。 BIOS设定的密码也存在这块区域,所以这块区域至关重要。随着UEFI BIOS的应用,CMOS这块区域的功能被弱化,BIOS SETUP变量的值大多不再存储到这里,大部分存放到主板BIOS FLASH ROM芯片中,只有少部分还存放在这个区域。CMOS refers to a storage area on the Intel X86 platform PCH (formerly called the South Bridge). Since in the era of LEGACYBIOS, the value of the BIOS SETUP variable exists in this area, and the functions involved in this area are more critical in the previous design. . The password set by the BIOS also exists in this area, so this area is very important. With the application of UEFI BIOS, the function of this area of CMOS is weakened, most of the values of BIOS SETUP variables are no longer stored here, most of them are stored in the BIOS FLASH ROM chip of the motherboard, and only a small part is still stored in this area.
在以前的设计中有一个CLEAR CMOS功能,主板上有一个clear cmos的jumper,短接jumper,或者拔掉主板上的电池(CMOS区域有电池供电),CMOS中的设定就会变回默认值。CLEAR CMOS功能是很有用的,比方说用户进入BIOS SETUP,改动了里面的一些设定,保存然后重启系统,这时由于一些改动的错误,就可能造成系统无法开机。这个时候如果没有CLEAR CMOS功能,那么用户只能通过重新烧录BIOS来修复系统,但是烧录BIOS对用户来讲是危险的动作,而且也比较麻烦,所以,CLEAR CMOS就显得比较有用。There is a CLEAR CMOS function in the previous design, there is a clear cmos jumper on the motherboard, short the jumper, or unplug the battery on the motherboard (the CMOS area is powered by a battery), the settings in the CMOS will change back to the default value . The CLEAR CMOS function is very useful. For example, the user enters the BIOS SETUP, changes some settings in it, saves and restarts the system. At this time, due to some modification errors, the system may not be able to boot. At this time, if there is no CLEAR CMOS function, the user can only repair the system by reflashing the BIOS, but reflashing the BIOS is a dangerous action for the user, and it is also troublesome, so CLEAR CMOS is more useful.
由于UEFI BIOS中CMOS功能用的少,在UEFI BIOS中也用软件模拟实现了这个功能,那就是BIOS程序到CMOS被CLEAR后,就自动去FLASH ROM中把BIOS SETUP的值改回默认值,这样就达到了以前CMOS CLEAR的功能。但是在ARM平台中,以Cavium ARM为例,它并没有CMOS区域的这块设计,也没有侦测CMOSCLEAR的电路,但是CLEAR CMOS功能对BIOS安全还是很有必要,需要在ARM平台实现Clear CMOS功能。Since the CMOS function in UEFI BIOS is rarely used, this function is also realized by software simulation in UEFI BIOS, that is, after the BIOS program is cleared to CMOS, it will automatically go to the FLASH ROM to change the value of BIOS SETUP back to the default value, so that It has reached the function of the previous CMOS CLEAR. But in the ARM platform, take Cavium ARM as an example, it does not have this design in the CMOS area, nor does it have a circuit to detect CMOSCLEAR, but the CLEAR CMOS function is still necessary for BIOS security, and the Clear CMOS function needs to be implemented on the ARM platform .
发明内容Contents of the invention
本发明针对目前技术发展的需求和不足之处,提供一种ARM平台一种ARM平台实现Clear CMOS功能的方法。The invention provides an ARM platform and a method for realizing the Clear CMOS function on the ARM platform aiming at the needs and deficiencies of the current technical development.
本发明所述一种ARM平台实现Clear CMOS功能的方法,解决上述技术问题采用的技术方案如下:所述一种ARM平台实现Clear CMOS功能的方法,当系统无法正常开机时,通过IPMITOOL工具给BMC下命令,在BMC中置位CLEAR CMOS的标识;BIOS在开机过程中读取BMC中的这个标识,如果CLEAR CMOS的标识被置位了,则BIOS把这个标识存放在FLASH ROM的variable中,然后BIOS触发系统重启后,BIOS去读取FLASH ROM中这个variable的值,如果有置位,则加载FLASH ROM中所有variable的默认值的动作。A kind of ARM platform of the present invention realizes the method for Clear CMOS function, the technical scheme that solves the above-mentioned technical problem adopts is as follows: described a kind of ARM platform realizes the method for Clear CMOS function, when system can't start normally, give BMC by IPMITOOL tool Issue a command to set the CLEAR CMOS logo in the BMC; BIOS reads the logo in the BMC during the boot process, if the CLEAR CMOS logo is set, the BIOS stores the logo in the variable of the FLASH ROM, and then After the BIOS triggers the system restart, the BIOS reads the value of this variable in the FLASH ROM, and if it is set, loads the default value of all variables in the FLASH ROM.
优选的,所述ARM平台实现Clear CMOS功能的方法,其具体实现步骤包括:1)用IPMITOOL工具置位BMC中OEM定义的跟BIOS约定好的FLAG1;2)BIOS开机去读取FLAG1,根据FLAG1的值来决定是否置位Variable1;3)系统重启;4)BIOS去读取Variable1,若为1,则加载所有variable的默认值。Preferably, the method for realizing the Clear CMOS function on the ARM platform, the specific implementation steps include: 1) using the IPMITOOL tool to set the FLAG1 defined by the OEM in the BMC and agreed with the BIOS; 2) booting the BIOS to read FLAG1, according to FLAG1 3) System restart; 4) BIOS to read Variable1, if it is 1, load the default values of all variables.
优选的,所述步骤2)中,BIOS开机去读取FLAG1,根据FLAG1的值来决定是否置位Variable1:若FLAG1为0,则设定Variable1为0,如果FLAG1为1,则设定Variable1为1。Preferably, in the step 2), the BIOS starts to read FLAG1, and determines whether to set Variable1 according to the value of FLAG1: if FLAG1 is 0, then set Variable1 to 0, if FLAG1 is 1, then set Variable1 to 1.
优选的,所述步骤3)中,若FLAG1为1,系统重启。Preferably, in the step 3), if FLAG1 is 1, the system restarts.
优选的,所述步骤4)中,BIOS去读取Variable1,若为1,则加载所有variable的默认值,然后继续开机程序;若为零,则不进行加载variable的默认值,继续开机程序。Preferably, in the step 4), the BIOS reads Variable1, if it is 1, loads the default values of all variables, and then continues the boot process; if it is zero, does not load the default values of variables, and continues the boot process.
本发明所述一种ARM平台实现Clear CMOS功能的方法与现有技术相比具有的有益效果是:本发明在不增加额外的硬件线路,在ARM平台实现了Clear CMOS功能,克服了现有技术中ARM平台难以实现Clear CMOS功能的缺陷;并且,该方法设计新颖、实施简单,操作方便,因此具有较好的实用推广价值。Compared with the prior art, the method for realizing the Clear CMOS function on the ARM platform of the present invention has the beneficial effect that: the present invention realizes the Clear CMOS function on the ARM platform without adding additional hardware circuits, and overcomes the problems of the prior art. The ARM platform is difficult to realize the defect of Clear CMOS function; moreover, the method is novel in design, simple in implementation, and convenient in operation, so it has good practical promotion value.
说明书附图Instructions attached
附图1为所述ARM平台实现Clear CMOS功能的方法的实施流程图。Accompanying drawing 1 is the implementation flowchart of the method that described ARM platform realizes Clear CMOS function.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,对本发明所述一种ARM平台实现Clear CMOS功能的方法进一步详细说明。In order to make the purpose, technical solution and advantages of the present invention clearer, the method for realizing the Clear CMOS function of an ARM platform described in the present invention will be further described in detail below in conjunction with specific embodiments.
本发明提供的一种ARM平台实现Clear CMOS功能的方法,当系统无法正常开机时,通过IPMITOOL工具给BMC下命令,在BMC中置位CLEAR CMOS的标识;BIOS在开机过程中等待和BMC沟通通道的建立,然后去读取BMC中的这个标识,如果CLEAR CMOS的标识被置位了,则BIOS把这个标识存放在FLASH ROM的variable中,然后BIOS触发系统重启重启后,BIOS去读取FLASH ROM中这个variable的值,如果有置位,则加载FLASH ROM中所有variable的默认值的动作。A method for realizing the Clear CMOS function on an ARM platform provided by the present invention, when the system cannot be started normally, an order is given to the BMC through the IPMITOOL tool, and the CLEAR CMOS mark is set in the BMC; BIOS waits for a communication channel with the BMC during the start-up process If the CLEAR CMOS flag is set, the BIOS will store this flag in the variable of the FLASH ROM, and then the BIOS will trigger the system to restart, and then the BIOS will read the FLASH ROM If the value of this variable is set, the default value of all variables in the FLASH ROM will be loaded.
所述ARM平台实现Clear CMOS功能的方法中,之所以不在第一次开机时就去读取BMC的标识来决定是不是要加载默认值,是因为BIOS和BMC建立通道是BIOS开机靠后的位置,那个时候再去加载variable的默认值就比较晚了;该方法是,把BMC的标识用variable记录下来,下次重启的时候再读variable去加载默认值,这样读取variable的值在POST开机很早的时候就可以进行。In the method for realizing the Clear CMOS function of the ARM platform, the reason why the logo of the BMC is not read to determine whether to load the default value when the first boot is started is because the BIOS and the BMC establish a channel after the BIOS boots. At that time, it will be too late to load the default value of the variable; the method is to record the BMC logo in a variable, and then read the variable to load the default value at the next restart, so that the value of the read variable can be read at POST to boot It can be done very early on.
实施例:Example:
本实施例所述ARM平台实现Clear CMOS功能的方法,当用户由于改动BIOS SETUP选项,或者其他一些操作导致系统无法正常开机时,其具体实现步骤包括:The method for realizing the Clear CMOS function on the ARM platform described in this embodiment, when the user changes the BIOS SETUP option, or when the system fails to start normally due to other operations, its specific implementation steps include:
1)用IPMITOOL工具置位BMC中OEM定义的跟BIOS约定好的FLAG1;2)BIOS开机去读取FLAG1,根据FLAG1的值来决定是否置位Variable1;3)系统重启;4)BIOS去读取Variable1,如果为1,则加载所有variable的默认值。1) Use the IPMITOOL tool to set the FLAG1 defined by the OEM in the BMC and agreed with the BIOS; 2) The BIOS starts to read FLAG1, and decides whether to set Variable1 according to the value of FLAG1; 3) Restart the system; 4) Read the BIOS Variable1, if it is 1, load the default value of all variables.
所述步骤2)中,BIOS开机去读取FLAG1,根据FLAG1的值来决定是否置位Variable1:如果FLAG1为0,则设定Variable1为0,如果FLAG1为1,则设定Variable1为1。所述步骤3)中,如果FLAG1为1,系统重启。所述步骤4)中,BIOS去读取Variable1,如果为1,则加载所有variable的默认值,然后继续开机程序;如果为零,则不进行加载variable的默认值,然后继续开机程序。In the step 2), the BIOS starts to read FLAG1, and determines whether to set Variable1 according to the value of FLAG1: if FLAG1 is 0, then set Variable1 to 0, if FLAG1 is 1, then set Variable1 to 1. In the step 3), if FLAG1 is 1, the system restarts. In the step 4), the BIOS reads Variable1, if it is 1, loads the default values of all variables, and then continues the boot process; if it is zero, does not load the default values of variables, and then continues the boot process.
附图1为所述ARM平台实现Clear CMOS功能的方法的实施流程图,如附图1所示,其具体实施过程如下:Accompanying drawing 1 is the implementation flowchart of the method that described ARM platform realizes Clear CMOS function, as shown in accompanying drawing 1, its specific implementation process is as follows:
1)系统上电;1) Power on the system;
2)用户根据需要来决定是否需要用IPMITOOL置位BMC中OEM定义的,跟BIOS约定好的FLAG1;2) The user decides whether to use IPMITOOL to set FLAG1 defined by the OEM in the BMC and agreed with the BIOS according to the needs;
3)BIOS开机去读取FLAG1;3) BIOS starts to read FLAG1;
4)判断FLAG1 = 1 与否;4) Determine whether FLAG1 = 1 or not;
5)若FLAG1为1,置位Variable1,置零FLAG1,重启系统;5) If FLAG1 is 1, set Variable1, set FLAG1 to zero, and restart the system;
6)若FLAG1不为1,则继续开机流程;6) If FLAG1 is not 1, continue the boot process;
7)步骤5)后,BIOS开机去读取Variable1;7) After step 5), the BIOS starts to read Variable1;
8)判断Variable1= 1 与否;8) Determine whether Variable1= 1 or not;
9)若Variable1= 1,则置零Variable1,加载所有variable的默认值;继续开机流程;9) If Variable1=1, then set Variable1 to zero and load the default values of all variables; continue the boot process;
10)若Variable1不为1,则继续开机流程。10) If Variable1 is not 1, continue the boot process.
上述具体实施方式仅是本发明的具体个案,本发明的专利保护范围包括但不限于上述具体实施方式,任何符合本发明的权利要求书的且任何所属技术领域的普通技术人员对其所做的适当变化或替换,皆应落入本发明的专利保护范围。The above-mentioned specific embodiments are only specific cases of the present invention, and the scope of patent protection of the present invention includes but is not limited to the above-mentioned specific embodiments, any claims that meet the claims of the present invention and any ordinary skilled person in the technical field. Appropriate changes or substitutions should fall within the scope of patent protection of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610626704.9A CN106200847A (en) | 2016-08-03 | 2016-08-03 | A method for realizing Clear CMOS function on ARM platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610626704.9A CN106200847A (en) | 2016-08-03 | 2016-08-03 | A method for realizing Clear CMOS function on ARM platform |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106200847A true CN106200847A (en) | 2016-12-07 |
Family
ID=57497055
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610626704.9A Pending CN106200847A (en) | 2016-08-03 | 2016-08-03 | A method for realizing Clear CMOS function on ARM platform |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106200847A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110413092A (en) * | 2019-06-27 | 2019-11-05 | 苏州浪潮智能科技有限公司 | It is a kind of prevent RTC remove after system Auto Power On method and apparatus |
| CN112114617A (en) * | 2020-09-09 | 2020-12-22 | 恒为科技(上海)股份有限公司 | Device and method for realizing Feiteng ARM CPU Clear CMOS |
| CN112667059A (en) * | 2020-12-24 | 2021-04-16 | 深圳宝新创科技股份有限公司 | Method and device for removing CMOS chip based on Feiteng platform |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103593250A (en) * | 2013-11-19 | 2014-02-19 | 浪潮电子信息产业股份有限公司 | Realizing method for modifying BIOS Setup option out of band |
| CN104601373A (en) * | 2015-01-05 | 2015-05-06 | 浪潮电子信息产业股份有限公司 | A method for setting and synchronizing BIOS configuration parameters through an out-of-band method |
| US9189351B2 (en) * | 2012-03-02 | 2015-11-17 | Wistron Corporation | Method of obtaining instruction for triggering function |
| CN105302621A (en) * | 2015-12-09 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | A method for remotely implementing server BIOS Setup to restore initial values |
| CN105653376A (en) * | 2016-01-05 | 2016-06-08 | 浪潮电子信息产业股份有限公司 | Optimizing Algorithm for Guaranteeing Information Synchronization When BIOS and BMC Start Simultaneously in ARM Platform |
-
2016
- 2016-08-03 CN CN201610626704.9A patent/CN106200847A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9189351B2 (en) * | 2012-03-02 | 2015-11-17 | Wistron Corporation | Method of obtaining instruction for triggering function |
| CN103593250A (en) * | 2013-11-19 | 2014-02-19 | 浪潮电子信息产业股份有限公司 | Realizing method for modifying BIOS Setup option out of band |
| CN104601373A (en) * | 2015-01-05 | 2015-05-06 | 浪潮电子信息产业股份有限公司 | A method for setting and synchronizing BIOS configuration parameters through an out-of-band method |
| CN105302621A (en) * | 2015-12-09 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | A method for remotely implementing server BIOS Setup to restore initial values |
| CN105653376A (en) * | 2016-01-05 | 2016-06-08 | 浪潮电子信息产业股份有限公司 | Optimizing Algorithm for Guaranteeing Information Synchronization When BIOS and BMC Start Simultaneously in ARM Platform |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110413092A (en) * | 2019-06-27 | 2019-11-05 | 苏州浪潮智能科技有限公司 | It is a kind of prevent RTC remove after system Auto Power On method and apparatus |
| CN110413092B (en) * | 2019-06-27 | 2021-06-01 | 苏州浪潮智能科技有限公司 | Method and equipment for preventing automatic system startup after RTC (real time clock) is cleared |
| CN112114617A (en) * | 2020-09-09 | 2020-12-22 | 恒为科技(上海)股份有限公司 | Device and method for realizing Feiteng ARM CPU Clear CMOS |
| CN112114617B (en) * | 2020-09-09 | 2022-05-20 | 恒为科技(上海)股份有限公司 | Device and method for realizing Feiteng ARM CPU Clear CMOS |
| CN112667059A (en) * | 2020-12-24 | 2021-04-16 | 深圳宝新创科技股份有限公司 | Method and device for removing CMOS chip based on Feiteng platform |
| CN112667059B (en) * | 2020-12-24 | 2023-04-14 | 深圳宝新创科技股份有限公司 | Method and device for clearing CMOS chip based on Feiteng platform |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101861724B1 (en) | Selective power management for pre-boot firmware updates | |
| TWI335536B (en) | Information handling system (ihs) method and for updating a non-volatile memory (nvm) included in an information handling system | |
| US20110179260A1 (en) | Method for integrating operating system into bios chip and method for booting operating system from server | |
| US9367446B2 (en) | Computer system and data recovery method for a computer system having an embedded controller | |
| TWI710952B (en) | Firmware update method and computer system | |
| US20090249113A1 (en) | Method for recovering basic input output system and computer device thereof | |
| US20090271603A1 (en) | Embedded system and startup method thereof | |
| JP2016058071A (en) | System and method for automatically setting bios performance profile | |
| TWI442321B (en) | Method for speeding up the boot time of an electric device and the electric device | |
| US20150154091A1 (en) | Bios maintenance method | |
| WO2016101519A1 (en) | Method and device for realizing restart of operating system | |
| CN101634960A (en) | Method for revising BIOS parameter and regenerating checksum | |
| CN106371863A (en) | Embedded multi-operation system boot program upgrading method | |
| CN106250725A (en) | A method for preventing UEFI program from being illegally transplanted on ARM platform | |
| CN104951328A (en) | Embedded equipment and starting method thereof | |
| CN104636173A (en) | Fast BIOS configuration method | |
| CN106200847A (en) | A method for realizing Clear CMOS function on ARM platform | |
| CN103514014A (en) | Method for designing boot system of embedded terminal equipment | |
| TW201716999A (en) | Method for startup inspection and computer system using the same | |
| CN101581959B (en) | Method and device for resetting single core in multi-core chip | |
| CN105556461A (en) | Techniques for pre-OS image rewriting to provide cross-architecture support, security introspection, and performance optimization | |
| CN101546283A (en) | Method for repairing basic input and output system and computer device thereof | |
| US10198270B2 (en) | Dynamic hardware configuration via firmware interface at computing device boot | |
| WO2017121077A1 (en) | Method and device for switching between two boot files | |
| CN106022137B (en) | The realization method and system of POWER platform credibles is controlled by TPCM |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161207 |
|
| WD01 | Invention patent application deemed withdrawn after publication |