CN114764497A - Method for setting basic input/output system function - Google Patents

Method for setting basic input/output system function Download PDF

Info

Publication number
CN114764497A
CN114764497A CN202110032322.4A CN202110032322A CN114764497A CN 114764497 A CN114764497 A CN 114764497A CN 202110032322 A CN202110032322 A CN 202110032322A CN 114764497 A CN114764497 A CN 114764497A
Authority
CN
China
Prior art keywords
hot key
file
efi
servo system
storage device
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
Application number
CN202110032322.4A
Other languages
Chinese (zh)
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.)
Kunda Computer Technology Kunshan Co Ltd
Mitac Computing Technology Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac Computing Technology Corp
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 Kunda Computer Technology Kunshan Co Ltd, Mitac Computing Technology Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN202110032322.4A priority Critical patent/CN114764497A/en
Publication of CN114764497A publication Critical patent/CN114764497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

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)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

A method for setting BIOS functions includes: when a servo system executes a starting self-detection, judging whether a storage device is in communication connection; when the servo system judges that the storage device is in communication connection, judging whether the storage device stores a script file conforming to a default name or not; when the servo system judges that the storage device stores the script file which accords with the default name, a preparation starting stage is entered, and whether hot key content is received or not is confirmed; when the servo system is in the preparation starting stage, at least one basic input and output system function corresponding to the hot key content is executed according to the hot key content, and therefore the setting method of the basic input and output system function is time-saving and high in efficiency.

Description

Method for setting basic input/output system function
[ technical field ] A
The present invention relates to a setting method, and more particularly, to a time-saving and efficient method for setting bios functions.
[ background of the invention ]
In the development of computer systems, it is often necessary to meet the requirements of test units for measurement signals, and options or registers (registers) other than the Basic Input Output System (BIOS) settings (Setup) must be changed many times. In the prior art, the BIOS program code is manually changed into a plurality of versions of test BIOS program code, and the test BIOS program code is provided to a test unit. Often the test unit is to perform a loop (Cycle) test so that similar modifications require constant manual changes and re-establishment of program code, wasting development time. Especially in the servo system, the more complicated BIOS Configuration (such as DCPMM Configuration) is more likely to cause the phenomenon of being unable to start up due to the operation error. Therefore, how to provide a time-saving and more efficient method for setting bios Configuration (Configuration) becomes a problem to be solved.
[ summary of the invention ]
The invention aims to provide a time-saving and efficient method for setting the functions of a basic input and output system.
To solve the above technical problem, the present invention provides a method for setting bios functions, which is suitable for a storage device and a servo system, and comprises steps (a) to (D).
In step (a), when the servo system executes a Power-On Self-Test (POST), it is determined whether the storage device is communicatively connected.
In step (B), when the servo system determines that the storage device is in communication connection, it determines whether the storage device stores a Script file (Script file) conforming to a default name.
In step (C), after the server system determines that the script file conforming to the default name is stored in the storage device, a Ready to boot phase is entered, and whether a Hot key (Hot key) content is received is determined.
In step (D), when the servo system is in the ready-to-boot phase, at least one Basic Input Output System (BIOS) function corresponding to the hot key content is executed according to the hot key content received before the ready-to-boot phase.
Preferably, in the step (D), when the servo system first determines that the hot key content conforms to the predetermined content, the servo system further executes the at least one bios function corresponding to the hot key content.
Preferably, in step (D), the server system searches for an efi (extensible Firmware interface) file name corresponding to the hotkey content in the script file, and then executes the at least one bios function corresponding to the hotkey content.
Preferably, in the step (D), the servo system loads the EFI file when determining that the storage device stores an EFI file corresponding to the EFI file name according to the searched EFI file name corresponding to the hot key content, and further executes the at least one bios function corresponding to the hot key content.
Preferably, in step (D), after the EFI file name corresponding to the hot key content is searched in the script file and a manager password is determined to be set to be turned on, the servo system loads and executes the EFI file, thereby executing the at least one bios function corresponding to the hot key content.
Preferably, in step (D), after the EFI file name corresponding to the hot key content is searched in the script file and it is determined that a manager password is not set to be turned on, the server system does not load the EFI file and further does not execute the at least one bios function corresponding to the hot key content according to the EFI file.
Preferably, in step (D), after the EFI file name corresponding to the hot key content is searched in the script file, and it is determined that a manager password is set to be turned on and an input password matches the manager password within a predetermined number of times, the servo system loads and executes the EFI file, thereby executing the at least one bios function corresponding to the hot key content.
Preferably, in the step (D), after the EFI file name corresponding to the hot key content is searched in the script file, and it is determined that the administrator password is set to be turned on and the input password does not match the administrator password within the predetermined number of times, the servo system does not load the EFI file, and further does not execute the at least one bios function corresponding to the hot key content according to the EFI file.
Compared with the prior art, the storage device stores the script file and the EFI files in advance, so that the servo system can search the EFI file name of the corresponding EFI file in the script file according to the received hot key content in the process of starting self detection, further open and load the EFI file, and execute the corresponding at least one basic input and output system function.
[ description of the drawings ]
Other features and effects of the present invention will become apparent from the following detailed description of the embodiments with reference to the accompanying drawings, in which:
FIG. 1 is a block diagram illustrating a servo system and a storage device for a BIOS function setting method according to the present invention; and
FIG. 2 is a flowchart illustrating a method for setting BIOS functions according to an embodiment of the present invention.
[ detailed description ] A
Before the present invention is described in detail, it should be noted that in the following description, similar components are denoted by the same reference numerals.
Referring to fig. 1 and 2, an embodiment of the method for setting bios functions of the present invention is applicable to a storage device 2 and a server system 1, and includes steps S1-S9, where in the embodiment, the storage device 2 is a local Universal Serial Bus (USB) drive. The servo system 1 is, for example, a server host, and the servo system 1 includes a processing unit, for example, a central processing unit, and the USB flash drive can be inserted into a USB connector of the server host to form an electrical connection with the central processing unit.
In step S1, the servo system 1 is powered on. Next, step S2 is executed.
In step S2, the processing unit of the servo system 1 loads a Basic Input Output System (BIOS) program code to execute a boot program. When the processing unit of the servo system 1 executes the BIOS program code to perform a Power-On Self-Test (POST) of the boot program, the processing unit determines whether the storage device 2 is in communication connection with the processing unit, that is, whether the USB flash drive is electrically connected to the processing unit. When it is determined to be the communication-connected, step S3 is executed. And when it is judged that it is not the communication connection, step S9 is executed.
In step S3, the processing unit of the servo system 1 determines whether the storage device 2 (i.e., the USB flash drive) stores a Script file (Script file) conforming to a predetermined name. For example, the default name of the script file is "automation _ feature. When it is judged that there is a storage, step S4 is executed. And when it is judged that there is no storage, step S9 is executed.
In step S4, the processing unit of the servo system 1 executes the BIOS program code to make the servo system 1 enter a Ready-to-boot phase of the boot program, and detect whether a Hot key (Hot key) content is received. That is to say, the servo system 1 detects, for example, a key of an input device electrically coupled to the input device, for example, an input key of a keyboard, as the hot key, wherein the hot key may also be a physical key electrically coupled to the processing unit disposed on a housing panel of the servo system 1, or a numeric key displayed on a touch panel electrically coupled to the processing unit disposed on the housing panel of the servo system 1, and the input device is taken as the keyboard as an example below. The keyboard sends a keyboard trigger signal according to the hot key that is triggered, for example, the hot key is triggered to make the keyboard send a key code (for example, 001,010,011 …, hereinafter, 001 is taken as an example) corresponding to the hot key, and the processing unit of the servo system 1 also obtains the corresponding hot key content (for example, a, B, C …, hereinafter, a is taken as an example) according to the key code 001 in an interlocking manner due to the hot key that is triggered. Specifically, after the servo system 1 enters the Ready-to-boot phase, the step S5 is executed according to whether the hot key content is received before entering the Ready-to-boot phase, that is, whether the hot key content (for example, a) is received before entering the Ready-to-boot phase after the servo system 1 is powered on, and when the hot key content is determined to be received. And when it is judged that it is not received, step S9 is executed. In addition, in step S4, the processing unit may receive a plurality of the same or different hot key contents in sequence, or a combination of the same and different hot key contents.
In step S5, the processing unit of the servo system 1 determines whether the hot key content (e.g., a) matches a predetermined content. If yes, the script file is opened and step S6 is executed. And when no coincidence is determined, step S9 is executed. The preset content is stored in the BIOS program code in a form of a parameter, or stored in a memory electrically coupled to the processing unit in a form of a setting value, wherein the preset content includes at least one default hot key message (e.g., a, B, C, hot key a, hot key B, hot key C …,), and when the hot key content (e.g., a) matches any one of the default hot key messages (e.g., hot key a), it is determined that the hot key content matches the preset content.
In step S6, the servo system 1 determines whether the script file conforms to a predetermined format, and if so, executes step S7. And when no coincidence is determined, step S9 is executed. For example, the content of the script file is as follows: wherein "" A "", "" B "", and "" C "" are the three default hot key messages included in the default content.
Figure BDA0002891870180000041
In step S7, the processing unit of the server system 1 searches an EFI file name corresponding to the hot key content in the script file, and determines whether the storage device 2 (i.e. the USB drive) stores an EFI file corresponding to the EFI file name. When it is judged that there is a storage, step S8 is executed. When it is determined that there is no storage, step S9 is executed. Continuing with the previous example, if the hotkey content is "C", for example, then the EFI file name is "Auto _ Create _ DCPMM _ Namespace".
In step S8, the processing unit of the servo system 1 executes at least one bios function included in the EFI file corresponding to the hotkey content, and continues to execute a boot program. Each BIOS function may correspond to modification of a BIOS configuration, addition or replacement of a section of program code corresponding to the BIOS function, or different setting of a hardware in the server system 1.
Further, it is to be noted that: in other embodiments, the EFI file corresponding to the hot key content may also be a file in which the program code or parameters corresponding to the EFI file are selectively integrated into the BIOS program code and stored in a non-volatile memory according to the storage attribute of the EFI file. More specifically, the EFI file has a permanent storage attribute or a temporary storage attribute, and when the EFI file corresponding to the hot key content is the permanent storage attribute, the EFI file integrates the program code or the parameter corresponding to the EFI file into the BIOS program code and stores a volatile memory (such as DIMM memory) and a nonvolatile memory (such as BIOS flash), wherein the EFI file further includes a location information indicating a corresponding location in the BIOS program code, and the processing unit executes the process of the at least one BIOS function included in the EFI file corresponding to the hot key content, and adds or updates the program code or the parameter value included in the EFI file to the corresponding location integrated in the BIOS program code according to the location information. Therefore, when the BIOS code is executed after the system is continuously booted (by the DIMM) or restarted (by the BIOS flash), the processing unit of the server system 1 modifies and integrates the stored BIOS code according to the EFI file for execution. When the EFI file corresponding to the hot key content is a temporary storage attribute, the program code or parameters corresponding to the EFI file are integrated into the BIOS program code and stored in the volatile memory (e.g., DIMM memory). Therefore, when the boot (DIMM) continues to execute the BIOS code, the processing unit of the servo system 1 modifies and integrates the stored BIOS code according to the EFI file, but after the servo system 1 is restarted, because the BIOS code in the nonvolatile memory (such as BIOS flash) is not changed, the processing unit of the servo system 1 only executes the BIOS code that is not integrated by the EFI file.
In step S9, the servo system 1 continues to execute the boot program in the original BIOS setting in the boot program.
The following are to be added: in this embodiment, the storage device 2 is, for example, a local Universal Serial Bus (USB) flash drive electrically connected to the server system 1, the USB flash drive is used as a USB key, and in other embodiments, the storage device 2 may also be a local hard disk electrically connected to the server system 1, or a remote hard disk linked to the server system 1 through a network or another USB flash drive, and is replaced by a virtual device. In addition, in other embodiments, the step S7 may further include the following sub-steps: after the processing unit of the servo system 1 loads the EFI file and determines that a manager password is set to be not opened, step S9 is executed; after the processing unit of the servo system 1 loads the EFI file and determines that the administrator password is set to be opened, and then determines that an input password matches the administrator password within a predetermined number of times, step S8 is executed; after the EFI file is loaded and the administrator password is determined to be set to be opened, if it is determined that the input password does not match the administrator password within the predetermined number of times, step S9 is executed. The predetermined number of times is, for example, 3 times.
In summary, the storage device 2 stores the script file and the EFI files in advance, so that during the process of the self-test, the servo system 1 can search the corresponding EFI file name of the EFI file in the script file according to the received hot key content, further open and load the EFI file to execute the setting of the corresponding at least one BIOS configuration or the addition or replacement of the program code of the corresponding at least one BIOS function, thereby facilitating the simple editing of the BIOS program code executed by the current boot of the processing unit by a general user in a more flexible and diversified manner, and selectively performing a permanent BIOS program code change, thereby achieving the purpose of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for setting BIOS functions, which is suitable for a storage device and a servo system, comprises:
(A) when the servo system executes a starting self-detection, judging whether the storage device is in communication connection;
(B) when the servo system judges that the storage device is in communication connection, judging whether the storage device stores a script file conforming to a default name or not;
(C) when the servo system judges that the storage device stores the script file which accords with the default name, a preparation starting stage is carried out, and whether hot key content is received or not is confirmed; and
(D) when the servo system is in the preparation starting-up stage, at least one basic input and output system function corresponding to the hot key content is executed according to the hot key content received before the preparation starting-up stage.
2. The method as claimed in claim 1, wherein in step (D), the servo system first determines that the hot key contents conform to predetermined contents, and then executes the at least one bios function corresponding to the hot key contents.
3. The method as claimed in claim 1, wherein in step (D), the server system searches an EFI file name corresponding to the hot key contents in the script file to execute the at least one BIOS function corresponding to the hot key contents.
4. The method as claimed in claim 3, wherein in step (D), the servo system loads an EFI file corresponding to the hot key contents when determining that the storage device stores the EFI file corresponding to the EFI file name according to the searched EFI file name corresponding to the hot key contents, and further executes the at least one BIOS function corresponding to the hot key contents.
5. The method as claimed in claim 3, wherein in step (D), after searching the EFI file name corresponding to the hot key contents in the script file and determining that a manager password is set to be open, the server system loads and executes the EFI file to execute the at least one BIOS function corresponding to the hot key contents.
6. The method as claimed in claim 3, wherein in step (D), after searching the EFI file name corresponding to the hot key contents in the script file and determining that a manager password is set to be not activated, the processing unit of the server system does not load the EFI file and further does not execute the at least one BIOS function corresponding to the hot key contents according to the EFI file.
7. The method as claimed in claim 3, wherein in step (D), after searching the EFI file name corresponding to the hot key contents in the script file, and determining that a manager password is set to be on and an input password matches the manager password within a predetermined number of times, the servo system loads and executes the EFI file to execute the at least one BIOS function corresponding to the hot key contents.
8. The method as claimed in claim 7, wherein in step (D), after searching the EFI file name corresponding to the hot key content in the script file, and determining that the administrator password is set to be on and the input password does not match the administrator password within the predetermined number of times, the processing unit of the server system does not load the EFI file, and further does not execute the at least one BIOS function corresponding to the hot key content according to the EFI file.
CN202110032322.4A 2021-01-11 2021-01-11 Method for setting basic input/output system function Pending CN114764497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110032322.4A CN114764497A (en) 2021-01-11 2021-01-11 Method for setting basic input/output system function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110032322.4A CN114764497A (en) 2021-01-11 2021-01-11 Method for setting basic input/output system function

Publications (1)

Publication Number Publication Date
CN114764497A true CN114764497A (en) 2022-07-19

Family

ID=82364317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110032322.4A Pending CN114764497A (en) 2021-01-11 2021-01-11 Method for setting basic input/output system function

Country Status (1)

Country Link
CN (1) CN114764497A (en)

Similar Documents

Publication Publication Date Title
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US8468342B2 (en) Computer system and method for performing integrity detection on the same
US9213534B2 (en) Method for restoring software applications on desktop computers
US5764593A (en) Method and system for the interception and control of the computer boot process
KR101994811B1 (en) Electronic apparatus, method for restore of mbr and computer-readable recording medium
US7694165B2 (en) Automation of bare metal recoveries
CN104461594B (en) The upgrade method and device of embedded OS
EP4130953A1 (en) Device state identification method and apparatus, and smart terminal
US11704198B2 (en) Method and apparatus for providing recovery from a computing device boot up error
CN109358827B (en) Method, system, equipment and storage medium for controlling application serial port printing
CN110209525B (en) Operating system restoration method and device
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
CN107450953B (en) Method and device for updating BIOS
US9411602B2 (en) Techniques for booting an information processing system
CN106897063B (en) Method and system for permanently adding OS boot entry to BIOS based on EFI
TWI758026B (en) Bios function setting method
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
TW202131170A (en) Firmware corruption recovery
CN110363011B (en) Method and apparatus for verifying security of UEFI-based BIOS
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN114764497A (en) Method for setting basic input/output system function
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN107357400B (en) Method for automatically starting up hard disk with specified operating system type
CN111078303B (en) Method and device for optimizing UEFI (unified extensible firmware interface) boot startup
Cisco Where to Go from Here

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