CN112114851B - Method for entering Recovery to update BIOS through hotkey - Google Patents

Method for entering Recovery to update BIOS through hotkey Download PDF

Info

Publication number
CN112114851B
CN112114851B CN202010981717.4A CN202010981717A CN112114851B CN 112114851 B CN112114851 B CN 112114851B CN 202010981717 A CN202010981717 A CN 202010981717A CN 112114851 B CN112114851 B CN 112114851B
Authority
CN
China
Prior art keywords
recovery
bios
updated
updating
update
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.)
Active
Application number
CN202010981717.4A
Other languages
Chinese (zh)
Other versions
CN112114851A (en
Inventor
马保军
谭小兵
朱利民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Emdoor Digital Technology Co ltd
Original Assignee
Emdoor Digital Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Emdoor Digital Technology Co ltd filed Critical Emdoor Digital Technology Co ltd
Priority to CN202010981717.4A priority Critical patent/CN112114851B/en
Publication of CN112114851A publication Critical patent/CN112114851A/en
Application granted granted Critical
Publication of CN112114851B publication Critical patent/CN112114851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a method for entering a Recovery to update BIOS through a hotkey. Which comprises the following steps: s1, in the starting process, a system responds to a hot key instruction operated by a user, and a restarting action is completed according to the setting of a global flag bit; s2, judging to enter a Recovery mode according to the zone bit in the step S1, detecting a BIOS Bin file in the U disk in the process, and performing security comparison; s3, finishing the drawing work of the menu corresponding to the Recovery page according to the security comparison result in the step S2, drawing an operationally updated Recovery interface if the comparison is successful, and drawing a Recovery interface which cannot be operationally updated if the comparison is failed; s4, selecting a menu bar which is continuously updated in the operable update Recovery interface, and carrying out BIOS update. The method enters the Recovery interface through the hot key, and certain verification is carried out on the BIOS bin file which can be used for updating in advance in the Recovery process, so that the updating can be accurately carried out, and the possibility that a machine can not be started up due to failure in updating is reduced.

Description

Method for entering Recovery to update BIOS through hotkey
Technical Field
The invention relates to the technical field of computers, in particular to a method for entering a Recovery to update BIOS through a hotkey.
Background
At present, BIOS update basically adopts the following two modes: 1. updating under a shell or windows system by using a tool-band parameter script; 2. updated through Windows Update.
After the actual product is delivered to the end user for use, the actual product is updated in the two modes, and a certain technical threshold and risk exist. In particular, with a step update with parameters, it is highly likely that the machine will not be able to be powered up again once the update fails.
Disclosure of Invention
The invention provides a method for updating BIOS by entering Recovery through a hot key, which aims to solve the problems of high threshold and high risk of the existing updating method.
The invention provides a method for entering a Recovery to update BIOS through a hotkey, which comprises the following steps:
S1, in the starting process, a system responds to a hot key instruction operated by a user, and a restarting action is completed according to the setting of a global flag bit;
S2, judging to enter a Recovery mode according to the zone bit in the step S1, detecting a BIOS Bin file in the U disk in the process, and performing security comparison;
S3, finishing the drawing work of the menu corresponding to the Recovery page according to the security comparison result in the step S2, drawing an operationally updated Recovery interface if the comparison is successful, and drawing a Recovery interface which cannot be operationally updated if the comparison is failed;
S4, selecting a menu bar which is continuously updated in the operable update Recovery interface, and carrying out BIOS update.
As a further improvement of the present invention, the step S1 specifically includes:
s11, adding a response function of a specified hot key in a power-on POST code, detecting whether the specified hot key is pressed in the POST process, and setting a CMOS (complementary metal oxide semiconductor) flag bit to a specified value if the specified hot key is detected to be pressed;
s12, when the fact that the designated hot key is pressed is detected, a restarting instruction is issued to the system, and the system is restarted.
As a further improvement of the present invention, the specified hot key in the steps S11 and S12 is a combination key of a control key and a function key.
As a further improvement of the present invention, the step S2 specifically includes:
S21, judging whether the system enters a Recovery mode according to the CMOS flag bit, if the value corresponding to the CMOS flag bit is a designated value, entering the Recovery mode, otherwise, not entering the Recovery mode;
s22, if the Recovery mode is entered in the step S21, detecting whether the U disk equipment exists in the Recovery starting process, if so, executing the step S23, and if not, directly returning to FALSE;
s23, detecting whether a BIOS bin file with a designated name exists in the U packing catalog, if so, executing a step S24, and if not, directly returning to FALSE;
s24, detecting whether a PROJECT_TAG mark in the BIOS Bin file is consistent with the system, if so, returning to TRUE, otherwise, returning to FALSE.
As a further improvement of the present invention, the step S3 specifically includes:
s31, if the final return value of the step S24 is TRUE, drawing an operable updated Recovery page and menu content;
S32, if the final return value of the step S24 is FALSE, drawing the updated Recovery page and menu content which cannot be operated.
As a further improvement of the present invention, in the step S4, the menu bar that is updated continuously is a processed WITH FLASH update menu.
As a further improvement of the present invention, in the step S4, when the BIOS is updated, the designated area of the BIOS is updated according to the selection of the user, wherein the NVRAM and the BOOT BLOCK area are selectively updated areas, and the MAIN BLOCK area is a default updated area.
The beneficial effects of the invention are as follows: the method enters the Recovery interface through the hot key, and certain verification is carried out on the BIOS bin file which can be used for updating in advance in the Recovery process, so that the updating can be accurately carried out, and the possibility that a machine can not be started up due to failure in updating is reduced.
Drawings
FIG. 1 is a method of updating BIOS by hot key entry Recovery in accordance with the present invention;
FIG. 2 is an effect diagram of the BIOS being updated in the present invention;
FIG. 3 is an effect diagram of the system finding a BIOS bin file that can be updated in the U disk;
FIG. 4 is an effect diagram of the system of the present invention not finding a USB flash disk or finding a BIOS bin file in the USB flash disk that can be updated.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent.
As shown in FIG. 1, the method for updating BIOS by entering the Recovery through the hot key, entering the Recovery interface through the keyboard combination hot key, and then selecting to update BIOS on the Recovery interface is suitable for the product using AMI codebase.
The method for entering Recovery to update BIOS through keyboard combination key comprises the following steps:
S1, in the starting process, a system responds to a hot key instruction operated by a user, and a restarting action is completed according to the setting of a global flag bit;
S2, judging to enter a Recovery mode according to the zone bit in the step S1, detecting a BIOS Bin file in the U disk in the process, and performing security comparison;
S3, finishing the drawing work of the menu corresponding to the Recovery page according to the security comparison result in the step S2, if the comparison is successful, drawing an operationally updated Recovery interface, wherein the drawing result is shown in FIG. 3, and if the comparison is failed, drawing a Recovery interface which cannot be operationally updated, and the drawing result is shown in FIG. 4;
s4, selecting a menu bar which is continuously updated in an operable update Recovery interface, namely a 'processed WITH FLASH update' menu, and carrying out BIOS update, wherein the update effect diagram is shown in figure 1.
The step S1 specifically includes:
S11, adding a response function of a specified hot key in a power-on POST code, detecting whether the specified hot key is pressed in the POST process, and setting a CMOS (complementary metal oxide semiconductor) flag bit (0 x 52) to a specified value (0 xBC) if the specified hot key is detected to be pressed;
s12, when the fact that the designated hot key is pressed is detected, a task is needed to be completed, namely a restarting instruction is issued to the system, and the system is restarted.
The hot key is designated as a combined key of a control key and a function key, for example, ctrl+f10, other function keys can be combined with the control key Ctrl, if necessary, a Shift key Shift or Alt key can be used in combination with the function key to be used as a hot key for making, and setting can be performed as required.
When BIOS is updated, a combined hot key such as Ctrl+F10 is pressed, so that the BIOS can enter a Recovery mode to perform updating operation, and the threshold used by a user is reduced; meanwhile, the CMOS zone bit (0 x 52) is set to the appointed value (0 xBC) so that the system can judge whether to enter the Recovery mode or not conveniently, and a specific parameter value is used as a judging standard, namely, the CMOS zone bit corresponds to the appointed value and enters the Recovery mode, otherwise, the CMOS zone bit does not enter, so that the operation difficulty is reduced, the system judgment is more accurate, and the updating and using risks of a terminal user are reduced.
The step S2 specifically comprises the following steps:
S21, judging whether the system enters a Recovery mode according to the CMOS flag bit (0 x 52), if the value corresponding to the CMOS flag bit (0 x 52) is a specified value (0 xBC), entering the Recovery mode, otherwise, not entering the Recovery mode;
s22, if the Recovery mode is entered in the step S21, detecting whether the U disk equipment exists in the Recovery starting process, if so, executing the step S23, and if not, directly returning to FALSE;
s23, detecting whether a BIOS bin file with a designated name exists in the U packing catalog, if so, executing a step S24, and if not, directly returning to FALSE;
s24, detecting whether a PROJECT_TAG mark in the BIOS Bin file is consistent with the system, if so, returning to TRUE, otherwise, returning to FALSE.
The system performs multi-layer verification on the updated files and conditions in the Recovery process, namely, the verification processes of whether the U disk equipment exists, whether the BIOS bin files with the designated names exist, whether the PROJECT_TAG marks are consistent with the system and the like are performed, and the updating selection is performed for the client after all the updated files are correct, so that the operation difficulty of the client is reduced, the client does not need to understand and know the updated files of each layer, the system is more suitable for vast users, the computer level requirements of the client are not too professional, the accurate upgrading operation can be completed, the safety of the system updating is ensured, and the operation risk of the terminal user is reduced.
The step S3 specifically includes:
s31, if the final return value of the step S24 is TRUE, drawing an operable updated Recovery page and menu content, wherein the drawing result is shown in FIG. 3;
S32, if the final return value of the step S24 is FALSE, drawing the updated Recovery page and menu content which cannot be operated, and drawing the result is shown in FIG. 4.
The system directly presents the result interface to the terminal client according to the judgment result, and the client can clearly judge the state of the updating process according to the content in the interface, so that the client can select and operate, the operation process is more foolproof, and the client is simpler and easier to understand.
As shown in fig. 3, in step S4, when the BIOS is updated, the specified area of the BIOS is updated according to the selection of the user, wherein the NVRAM and the BOOT BLOCK area are selectively updatable areas, and the MAIN BLOCK area is a default updated area.
The client can select the updating mode according to own updating requirements, and after the previous steps, the updating selection space is provided for the client under the condition of ensuring the updating accuracy, and the updating flexibility is improved under the condition of ensuring the safety.
According to the updating method, the hot key response is increased, the machine is enabled to enter the Recovery mode according to the corresponding result of the hot key, in the process of entering the Recovery mode, the BIOS bin files which can be used for updating in the U disk are detected and checked, and the corresponding updating menu is drawn for the user after the updating is confirmed to be available, so that the updating safety is ensured.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (5)

1. A method for entering Recovery to update BIOS by hotkey, comprising the steps of:
S1, in the starting process, a system responds to a hot key instruction operated by a user, and a restarting action is completed according to the setting of a global flag bit;
S2, judging to enter a Recovery mode according to the zone bit in the step S1, detecting a BIOS Bin file in the U disk in the process, and performing security comparison;
S3, finishing the drawing work of the menu corresponding to the Recovery page according to the security comparison result in the step S2, drawing an operationally updated Recovery interface if the comparison is successful, and drawing a Recovery interface which cannot be operationally updated if the comparison is failed;
S4, selecting a menu bar which is continuously updated in the operable update Recovery interface, and updating the BIOS;
The step S1 specifically includes:
s11, adding a response function of a specified hot key in a power-on POST code, detecting whether the specified hot key is pressed in the POST process, and setting a CMOS (complementary metal oxide semiconductor) flag bit to a specified value if the specified hot key is detected to be pressed;
s12, when the fact that the designated hot key is pressed is detected, a restarting instruction is issued to the system, and the system is restarted;
The step S2 specifically includes:
S21, judging whether the system enters a Recovery mode according to the CMOS flag bit, if the value corresponding to the CMOS flag bit is a designated value, entering the Recovery mode, otherwise, not entering the Recovery mode;
s22, if the Recovery mode is entered in the step S21, detecting whether the U disk equipment exists in the Recovery starting process, if so, executing the step S23, and if not, directly returning to FALSE;
s23, detecting whether a BIOS bin file with a designated name exists in the U packing catalog, if so, executing a step S24, and if not, directly returning to FALSE;
s24, detecting whether a PROJECT_TAG mark in the BIOS Bin file is consistent with the system, if so, returning to TRUE, otherwise, returning to FALSE.
2. The method for updating BIOS by entering Recovery through hotkey according to claim 1, wherein the specified hotkey in steps S11 and S12 is a combination key of control key and function key.
3. The method for entering Recovery to update BIOS through hotkey according to claim 1, wherein step S3 specifically comprises:
s31, if the final return value of the step S24 is TRUE, drawing an operable updated Recovery page and menu content;
S32, if the final return value of the step S24 is FALSE, drawing the updated Recovery page and menu content which cannot be operated.
4. The method for updating BIOS by entering Recovery through hotkey according to claim 1, wherein in step S4, the menu bar for continuing updating is a processed WITH FLASH update menu.
5. The method for updating BIOS by entering Recovery through hotkey according to claim 1, wherein in step S4, when BIOS is updated, the designated area of BIOS is updated according to the selection of the user, wherein NVRAM and BOOT BLOCK areas are selectively updatable areas, and MAIN BLOCK area is the default updated area.
CN202010981717.4A 2020-09-17 2020-09-17 Method for entering Recovery to update BIOS through hotkey Active CN112114851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010981717.4A CN112114851B (en) 2020-09-17 2020-09-17 Method for entering Recovery to update BIOS through hotkey

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010981717.4A CN112114851B (en) 2020-09-17 2020-09-17 Method for entering Recovery to update BIOS through hotkey

Publications (2)

Publication Number Publication Date
CN112114851A CN112114851A (en) 2020-12-22
CN112114851B true CN112114851B (en) 2024-06-18

Family

ID=73799754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010981717.4A Active CN112114851B (en) 2020-09-17 2020-09-17 Method for entering Recovery to update BIOS through hotkey

Country Status (1)

Country Link
CN (1) CN112114851B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7213152B1 (en) * 2000-02-14 2007-05-01 Intel Corporation Modular bios update mechanism
JP2004310521A (en) * 2003-04-08 2004-11-04 Giga-Byte Technology Co Ltd Method for displaying file information and catalog information in bios update step
US20050144432A1 (en) * 2003-12-30 2005-06-30 Chih-Wei Wu Method for updating BIOS setting
CN101470615B (en) * 2007-12-28 2012-02-22 技嘉科技股份有限公司 Single-key controlled method for automatically repairing system configuration
TW200951812A (en) * 2008-06-03 2009-12-16 Dfi Inc Method and apparatus for changing BIOS parameters via a hot key
CN105718277B (en) * 2014-12-05 2020-04-10 中国长城科技集团股份有限公司 Protection method, device and system for BIOS update
CN105068827A (en) * 2015-07-24 2015-11-18 浪潮电子信息产业股份有限公司 Method for refreshing BIOS (basic input output System) under Itanium platform operating system
CN106897070A (en) * 2017-02-28 2017-06-27 郑州云海信息技术有限公司 A kind of bios version upgrade method realized based on BMC and device
CN109684003A (en) * 2018-11-21 2019-04-26 深圳市亿道数码技术有限公司 The display methods of BIOS Step hidden page

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Ellick M. Chan 等.BootJacker: compromising computers using forced restarts.《CCS '08: Proceedings of the 15th ACM conference on Computer and communications security》.2008,555–564. *
嵌入式系统内核软件的研究;卢俊岭;《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》(第1期);I138-173 *

Also Published As

Publication number Publication date
CN112114851A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US8424090B2 (en) Apparatus and method for detecting obfuscated malicious web page
CN109687975B (en) Method and device for realizing off-line initialization of hardware wallet
US7870302B2 (en) Method for automatically identifying an operating system for a USB device
CN106598781A (en) System software upgrading method
CN109933465B (en) Exception handling method, exception handling device, server and storage medium
CN108228308B (en) Monitoring method and device for virtual machine
CN112114851B (en) Method for entering Recovery to update BIOS through hotkey
CN107450953B (en) Method and device for updating BIOS
US7254701B2 (en) Method and device for safeguarding a digital process device
CN102982260B (en) A kind of (SuSE) Linux OS and installation series number verification method thereof
CN106897063B (en) Method and system for permanently adding OS boot entry to BIOS based on EFI
US11481546B2 (en) Screen discrimination apparatus, screen discrimination method and program
CN111581630A (en) Computer unlocking method, device, equipment and medium
CN102200917B (en) Computing equipment and method for determining guiding equipment in startup process
US20060038787A1 (en) Processing system and method for detecting hotkey activation
CN113127883B (en) Locking method, device, equipment and medium for platform firmware protection recovery
CN112286733B (en) Method, device and equipment for determining backup data recovery time and storage medium
CN115827069A (en) Starting control method, system and device for server mainboard
CN110597537B (en) Safe updating and upgrading method for nodes of Internet of things
CN110895500A (en) Data backtracking method and device based on mydump and storage medium
CN112817620A (en) Controller terminal program updating method, device, computer equipment and storage medium
CN111708579A (en) Operating system setting recovery method, device, equipment and storage medium
CN114764497A (en) Method for setting basic input/output system function
JP5978804B2 (en) Program, method and information processing apparatus for managing system
CN114327602B (en) Information processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant