CN112130915A - Parameter initialization method and device, electronic equipment and readable storage medium - Google Patents
Parameter initialization method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN112130915A CN112130915A CN202010986594.3A CN202010986594A CN112130915A CN 112130915 A CN112130915 A CN 112130915A CN 202010986594 A CN202010986594 A CN 202010986594A CN 112130915 A CN112130915 A CN 112130915A
- Authority
- CN
- China
- Prior art keywords
- information
- initialization
- starting
- operating system
- acquired
- 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
- 238000011423 initialization method Methods 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 claims abstract description 38
- 230000008569 process Effects 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 9
- 239000000758 substrate Substances 0.000 claims description 6
- 239000003607 modifier Substances 0.000 claims description 4
- 241001290266 Sciaenops ocellatus Species 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Abstract
The application discloses a parameter initialization method, a parameter initialization device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a starting-up instruction, and judging whether initialization information is acquired or not; if the initialization information is acquired, setting a target operation code; executing the starting operation of the operating system by using the operating system driver according to the target operation code so as to initialize parameters in the starting process of the operating system; according to the method, the initialization information is acquired and the target operation code is set during starting, so that parameter initialization can be completed after starting is completed, time required by parameter initialization is shortened, complicated operation is avoided, the method can be executed when an operating system interface cannot be accessed, and an application scene is expanded.
Description
Technical Field
The present disclosure relates to the field of system setup technologies, and in particular, to a parameter initialization method, a parameter initialization apparatus, an electronic device, and a computer-readable storage medium.
Background
In practical applications, sometimes parameters in an operating system on a device such as a server need to be initialized, and related technologies need to perform parameter initialization by operating a mouse and a keyboard or by using a command line on an operating system desktop, which requires that an operating system interface needs to be entered to perform parameter initialization, and many complicated steps need to be performed to perform parameter initialization. The time for initializing the parameters is long, and the operation steps are complicated. And if the desktop of the operating system cannot be accessed, the parameter initialization cannot be carried out, so that the problems of complicated steps, long required time and limited applicable scenes exist in the related technology.
Therefore, the problems of complicated steps, long required time and limited applicable scenes in the related art are technical problems to be solved by the technical personnel in the field.
Disclosure of Invention
In view of the above, an object of the present application is to provide a parameter initialization method, a parameter initialization apparatus, an electronic device, and a computer-readable storage medium, which reduce the time required for parameter initialization, avoid complicated operations, and expand applicable scenarios.
In order to solve the above technical problem, the present application provides a parameter initialization method, including:
acquiring a starting-up instruction, and judging whether initialization information is acquired or not;
if the initialization information is acquired, setting a target operation code;
and executing the starting operation of the operating system by using the operating system driver according to the target operation code so as to initialize parameters in the starting process of the operating system.
Optionally, the setting the target operation code includes:
and calling an ACPI table modifier to set the target operation code.
Optionally, the determining whether to acquire initialization information includes:
judging whether starting information sent by a substrate management controller is acquired or not;
if the starting information is acquired, analyzing the starting information and judging whether the initialization information exists or not;
and if the initialization information exists, obtaining the initialization information from the starting information.
Optionally, if the initialization information does not exist, the method further includes:
setting other operation codes according to other information items in the starting information;
and executing an operating system starting operation by using the operating system driver according to the other operation codes so as to execute the operation corresponding to the other information items.
Optionally, if there are a plurality of other information items, the executing, by using the operating system driver, the operation corresponding to the other information items in the startup information includes:
driving to sequentially execute the operation corresponding to each other information item by using the operating system;
or the like, or, alternatively,
and driving and executing the operation corresponding to each other information item in parallel by using the operating system.
Optionally, the analyzing the start-up information and determining whether the initialization information exists includes:
analyzing the starting information to obtain information item labels corresponding to the information items;
judging whether a target information item label corresponding to the initialization information exists or not;
if the target information item label exists, determining that the initialization information exists;
and if the target information item label does not exist, determining that the initialization information does not exist.
Optionally, the starting information is obtained by starting setting information acquired by the baseboard management controller through a WEB interface; or the like, or, alternatively,
and the starting information is obtained by the substrate management controller through the acquired redfish information.
The present application further provides a parameter initialization apparatus, including:
the initialization judging module is used for acquiring a starting-up instruction and judging whether initialization information is acquired or not;
the operation code setting module is used for setting a target operation code if the initialization information is acquired;
and the initialization module is used for executing the starting operation of the operating system according to the target operation code by utilizing the operating system driver so as to initialize the parameters in the starting process of the operating system.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the parameter initialization method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the parameter initialization method described above.
According to the parameter initialization method, a starting-up instruction is obtained, and whether initialization information is obtained or not is judged; if the initialization information is acquired, setting a target operation code; and executing the starting operation of the operating system by using the operating system driver according to the target operation code so as to initialize the parameters in the starting process of the operating system.
Therefore, the method judges whether the initialization information is acquired or not during starting, and if the initialization information is acquired, parameter initialization is required, so that the target operation code is set. The electronic equipment needs to use the operating system to drive the operating system to start according to the requirement of the target operating code, so that parameter initialization can be performed in the process of starting the operating system by setting the target operating code, and the parameter initialization is also completed after the operating system is started. By acquiring initialization information and setting a target operation code during starting, parameter initialization can be completed after the starting is completed, time required by the parameter initialization is reduced, meanwhile, complex operation is avoided, the operation can be performed when an operating system interface cannot be accessed, an applicable scene is expanded, and the problems that steps are complex, required time is long and the applicable scene is limited in the related technology are solved.
In addition, the application also provides a parameter initialization device, an electronic device and a computer readable storage medium, and the beneficial effects are also achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a parameter initialization method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a parameter initialization apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a parameter initialization method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and acquiring a starting-up instruction.
It should be noted that, part or all of the steps in the parameter initialization method provided in this embodiment may be executed by a specified electronic device, and the specific form of the electronic device is not limited in this embodiment, and may be, for example, a computer or a server. Specifically, a designated component in the electronic device is used for executing a boot operation, and it is understood that a BIOS (Basic Input/Output System) is generally required to be used when the boot operation is executed, so that the designated component is a component capable of running the BIOS, for example, a motherboard or a processor on the motherboard. The starting instruction is used for starting the electronic equipment, and after the starting instruction is obtained, the electronic equipment can execute various operations required by starting, wherein the operations comprise the operation of starting the operating system. Since the start of the operating system needs to be performed according to the requirements of the operation code, the present embodiment may set the target operation code before the start of the operating system, so as to perform initialization processing on the parameters during the start of the operating system.
Specifically, the embodiment does not limit the obtaining manner of the power-on instruction, for example, the signals sent by the sensor corresponding to the power-on key may be obtained, the power-on key may be a physical key or a virtual key, and the sensor forms are different according to the different specific forms of the power-on key. For example, when the power-on key is an entity key, such as a power button of a server, the sensor may be a current sensor; when the power-on key is a virtual key, for example, when the computer is powered on by a computer control server, the sensor may be a probe for detecting whether a power-on program is executed. And if the signal sent by the sensor corresponding to the starting button is detected, determining to acquire a starting instruction.
S102: and judging whether the initialization information is acquired.
After the boot instruction is obtained, it is indicated that the boot operation needs to be executed, and at this time, whether the initialization information is obtained can be determined. The initialization information is used to illustrate the initialization of the parameter, and the specific form thereof is not limited, and may be, for example, an identifier, such as "1", indicating that the parameter needs to be initialized. The embodiment does not limit the specific obtaining manner of the initialization information, and for example, the initialization information may be sent by other devices or terminals, and for example, other computers may continuously send the initialization information to the electronic device until the electronic device obtains the initialization information; or may be preset locally, for example, some components in the electronic device, such as the baseboard management controller, may be set before the electronic device is powered on, and may be caused to send the initialization information to the specified component immediately after the electronic device is powered on. For example, the baseboard management controller may be used to send initialization information to the motherboard, that is, after the motherboard is powered on, the baseboard management controller is used to communicate with the motherboard to transmit the initialization information to the motherboard.
Further, in one possible implementation, the baseboard management controller can be utilized to communicate information with the designated components. At this time, the S102 step may include:
step 11: and judging whether the starting information sent by the substrate management controller is acquired or not.
Step 12: and if the starting information is acquired, analyzing the starting information and judging whether the initialization information exists or not.
Step 13: if the initialization information exists, the initialization information is obtained from the starting information.
In this embodiment, the baseboard management controller sends the startup message, that is, before the electronic device is started, the baseboard management controller in the electronic device is set to provide the startup information. The startup information includes a plurality of information items, which may include initialization information. Therefore, the startup information is analyzed after being acquired, and whether the initialization information exists or not is judged. And if the initialization information is determined to exist, extracting the initialization information from the starting information to obtain the initialization information. Since it is allowed to include a plurality of information items in the startup information, other settings can be performed while parameter initialization is performed. It should be noted that the present embodiment does not limit how the baseboard management controller is configured to provide the startup information. In one embodiment, the startup information is obtained by startup setting information acquired by the baseboard management controller through a WEB interface; in another embodiment, the start information is obtained by the baseboard management controller through the retrieved red fish (a standard interface) information.
Specifically, in an embodiment, the information item tag may be used to determine whether initialization information exists, and step 12 may include:
step 21: and analyzing the starting information to obtain information item labels corresponding to the information items.
Step 22: and judging whether a target information item label corresponding to the initialization information exists or not.
Step 23: and if the target information item label exists, determining that the initialization information exists.
Step 24: and if the target information item label does not exist, determining that the initialization information does not exist.
Since a plurality of information items may be included in the startup information, an information item tag may be provided in order to distinguish the specific meaning of data in the startup information. The specific form of the information item label is not limited, and may be, for example, a number, such as 1, 2, etc.; or may be a code number of the information item, such as an initial size or english name; or may be the name of the information item. The information item labels and the information items can be arranged according to the corresponding relation, after the starting information is analyzed, which information items are included in the starting information can be known, and whether the target information item labels corresponding to the initialization information exist in all the information item labels or not is judged. If so, determining that initialization information exists in the starting information; and if the initialization information does not exist, determining that the initialization information does not exist in the starting information.
S103: and setting the target operation code.
The target opcode corresponds to a parameter initialization setting that is used to participate in the operating system boot operation. The specific content of the target operation code is not limited, and it may be AML opcode, where AML is ACPI Machine Language, ACPI is Advanced Configuration and Power Interface, Advanced Configuration and Power Interface. The opcode is the operation code. In the starting process of the operating system, the operating system driver calls and executes the AML opcode, so that the operating system can initialize the parameters in the starting process by modifying the target operating code. The specific manner of setting the target operation code is not limited, and for example, two target operation codes may be preset, which respectively correspond to two cases of requiring parameter initialization and not requiring parameter initialization. And selecting a proper target operation code for the calling of the operating system driver according to the acquisition condition of the initialization information. In another embodiment, a modification logic may be further configured, and after the initialization information is determined to be acquired, the target operation code is modified according to the modification logic, so that the setting of the target operation code is completed. For example, an ACPI table (table) modifier may be called to set the target operation code, and this embodiment does not limit the specific form of the ACPI table modifier, and may be, for example, a protocol function.
S104: and executing the starting operation of the operating system by using the operating system driver according to the target operation code so as to initialize the parameters in the starting process of the operating system.
The initialization of the parameters is load default. Specifically, an Operating System boot operation is executed according to the target operation code, that is, the target operation code is called and executed, so as to complete the boot of the Operating System. Since the target operation code is set to the state for parameter initialization, the parameter initialization can be completed after the operating system is started, and the parameter initialization operation does not need to be specially executed.
In one particular embodiment, the overall scheme is as follows: a user can set whether the system executes the Load default operation or not on a WEB interface of the BMC, if the system executes the Load default operation, the BMC communicates with the BIOS in the starting process of the mainboard to set BIOS related content, so that the BIOS internal code modifies the OpAML code correspondingly notifying the operating system of the Load default by calling an ACPI table modification program. And then in the starting process of the operating system, the drive calls and executes AML code, if the BIOS transmits a Load default operation, the Load default operation can be executed, and the effect of initializing the parameters in the starting process of the operating system is achieved.
S105: and (5) presetting operation.
If the initialization information does not exist, a preset operation may be performed. The present embodiment does not limit the specific content of the preset operation, and for example, any operation may not be performed.
Specifically, in one possible embodiment, although the startup information sent by the baseboard management controller is acquired, the initialization information is not included in the startup information. At this time, the method may further include:
step 31: and setting other operation codes according to other information items in the starting information.
Step 32: and executing the starting operation of the operating system by using the operating system driver according to the other operation codes so as to execute the operation corresponding to the other information items.
If the initialization information does not exist, other information items are necessarily included in the startup information, so that other operation codes can be set according to the other information items. The other operation codes are operation codes corresponding to other information items, and the operation codes can be in one-to-one correspondence or one-to-many or many-to-one correspondence. After the setting is completed, the operating system starting program can be used for executing the tooth-shaped operating system starting operation according to other operation codes, so that the operation corresponding to other information items can be completed in the starting process of the operating system, for example, certain setting is performed. Specifically, if there are a plurality of other information items, the process of executing the operation corresponding to the other information items in the start information by using the operating system driver may be parallel or serial. Specifically, the operation corresponding to each of the other information items may be sequentially executed by using the operating system driver; or the operation corresponding to each other information item can be executed in parallel by using the driving of the operating system.
By applying the parameter initialization method provided by the embodiment of the application, whether the initialization information is acquired or not is judged during starting, and if the initialization information is acquired, parameter initialization is required, so that the target operation code is set. The electronic equipment needs to use the operating system to drive the operating system to start according to the requirement of the target operating code, so that parameter initialization can be performed in the process of starting the operating system by setting the target operating code, and the parameter initialization is also completed after the operating system is started. By acquiring initialization information and setting a target operation code during starting, parameter initialization can be completed after the starting is completed, time required by the parameter initialization is reduced, meanwhile, complex operation is avoided, the operation can be performed when an operating system interface cannot be accessed, an applicable scene is expanded, and the problems that steps are complex, required time is long and the applicable scene is limited in the related technology are solved.
In the following, the parameter initialization apparatus provided in the embodiments of the present application is introduced, and the parameter initialization apparatus described below and the parameter initialization method described above may be referred to correspondingly.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a parameter initialization apparatus according to an embodiment of the present application, including:
an initialization judgment module 110, configured to obtain a power-on instruction and judge whether initialization information is obtained;
an operation code setting module 120, configured to set a target operation code if the initialization information is obtained;
the initialization module 130 is configured to execute an os boot operation according to the target opcode by using an os driver, so as to perform parameter initialization during the os boot process.
Optionally, the operation code setting module 120 includes:
and the program setting unit is used for calling the ACPI table modification program to set the target operation code.
Optionally, the initialization judging module 110 includes:
the starting information judging unit is used for judging whether starting information sent by the substrate management controller is acquired or not;
the initialization information judging unit is used for analyzing the starting information and judging whether the initialization information exists or not if the starting information is acquired;
and the initialization information acquisition unit is used for obtaining the initialization information from the starting information if the initialization information exists.
Optionally, the method further comprises:
the other operation code setting module is used for setting other operation codes according to other information items in the starting information;
and the operation execution module is used for executing the starting operation of the operating system according to other operation codes by using the operating system driver so as to execute the operation corresponding to other information items.
Optionally, the operation execution module includes:
the serial execution unit is used for sequentially executing the operation corresponding to each other information item by utilizing the driving of the operating system;
or the like, or, alternatively,
and the parallel execution unit is used for driving and executing the operation corresponding to each other information item in parallel by using the operating system.
Optionally, the initialization information determining unit includes:
the information item label acquisition unit is used for analyzing the starting information to obtain information item labels corresponding to the information items;
a target information item tag judgment unit, configured to judge whether a target information item tag corresponding to the initialization information exists;
a first determination unit configured to determine that initialization information exists if a target information item tag exists;
and a second determining unit configured to determine that the initialization information does not exist if the target information item tag does not exist.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the parameter initialization method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100 to complete all or part of the steps in the parameter initialization method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such data may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the parameter initialization method according to the above embodiments.
In the following, a computer-readable storage medium provided by the embodiments of the present application is introduced, and the computer-readable storage medium described below and the parameter initialization method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the above-mentioned parameter initialization method.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A method for parameter initialization, comprising:
acquiring a starting-up instruction, and judging whether initialization information is acquired or not;
if the initialization information is acquired, setting a target operation code;
and executing the starting operation of the operating system by using the operating system driver according to the target operation code so as to initialize parameters in the starting process of the operating system.
2. The parameter initialization method according to claim 1, wherein the setting the target operation code comprises:
and calling an ACPI table modifier to set the target operation code.
3. The parameter initialization method according to claim 1, wherein the determining whether initialization information is acquired includes:
judging whether starting information sent by a substrate management controller is acquired or not;
if the starting information is acquired, analyzing the starting information and judging whether the initialization information exists or not;
and if the initialization information exists, obtaining the initialization information from the starting information.
4. The method of claim 3, further comprising, if the initialization information does not exist, the step of:
setting other operation codes according to other information items in the starting information;
and executing an operating system starting operation by using the operating system driver according to the other operation codes so as to execute the operation corresponding to the other information items.
5. The method according to claim 4, wherein if there are a plurality of other information items, the executing, by the operating system driver, the operation corresponding to the other information items in the startup information includes:
driving to sequentially execute the operation corresponding to each other information item by using the operating system;
or the like, or, alternatively,
and driving and executing the operation corresponding to each other information item in parallel by using the operating system.
6. The method according to claim 3, wherein the analyzing the startup information and determining whether the initialization information exists comprises:
analyzing the starting information to obtain information item labels corresponding to the information items;
judging whether a target information item label corresponding to the initialization information exists or not;
if the target information item label exists, determining that the initialization information exists;
and if the target information item label does not exist, determining that the initialization information does not exist.
7. The parameter initialization method according to claim 3, wherein the startup information is obtained from startup setting information acquired by the baseboard management controller through a WEB interface; or the like, or, alternatively,
and the starting information is obtained by the substrate management controller through the acquired redfish information.
8. A parameter initialization apparatus, comprising:
the initialization judging module is used for acquiring a starting-up instruction and judging whether initialization information is acquired or not;
the operation code setting module is used for setting a target operation code if the initialization information is acquired;
and the initialization module is used for executing the starting operation of the operating system according to the target operation code by utilizing the operating system driver so as to initialize the parameters in the starting process of the operating system.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the parameter initialization method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the parameter initialization method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010986594.3A CN112130915A (en) | 2020-09-18 | 2020-09-18 | Parameter initialization method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010986594.3A CN112130915A (en) | 2020-09-18 | 2020-09-18 | Parameter initialization method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112130915A true CN112130915A (en) | 2020-12-25 |
Family
ID=73841377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010986594.3A Pending CN112130915A (en) | 2020-09-18 | 2020-09-18 | Parameter initialization method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112130915A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887371A (en) * | 2009-05-12 | 2010-11-17 | 技嘉科技股份有限公司 | Method for starting operating system |
CN102262569A (en) * | 2010-05-26 | 2011-11-30 | 深圳华北工控股份有限公司 | Control method for preventing system basic input output system (BIOS) instability caused by complementary metal oxide semiconductor (CMOS) improper setting |
CN102467427A (en) * | 2010-11-15 | 2012-05-23 | 英业达股份有限公司 | Method for entering basic output and input system setting |
CN102866927A (en) * | 2012-09-03 | 2013-01-09 | 曙光信息产业(北京)有限公司 | Method and device for collocating basic input/output system, and method for managing basic input/output system |
CN105005471A (en) * | 2015-06-24 | 2015-10-28 | 北京百度网讯科技有限公司 | Method, device, server and system for modifying configuration parameters of BIOS |
CN105138419A (en) * | 2015-07-24 | 2015-12-09 | 英业达科技有限公司 | Set value restoring system |
CN105302621A (en) * | 2015-12-09 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Method for remotely achieving initial value restoration of server BIOS Setup |
CN110377347A (en) * | 2019-06-29 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of automatic inspection method and system of Redfish setting BIOS option |
-
2020
- 2020-09-18 CN CN202010986594.3A patent/CN112130915A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887371A (en) * | 2009-05-12 | 2010-11-17 | 技嘉科技股份有限公司 | Method for starting operating system |
CN102262569A (en) * | 2010-05-26 | 2011-11-30 | 深圳华北工控股份有限公司 | Control method for preventing system basic input output system (BIOS) instability caused by complementary metal oxide semiconductor (CMOS) improper setting |
CN102467427A (en) * | 2010-11-15 | 2012-05-23 | 英业达股份有限公司 | Method for entering basic output and input system setting |
CN102866927A (en) * | 2012-09-03 | 2013-01-09 | 曙光信息产业(北京)有限公司 | Method and device for collocating basic input/output system, and method for managing basic input/output system |
CN105005471A (en) * | 2015-06-24 | 2015-10-28 | 北京百度网讯科技有限公司 | Method, device, server and system for modifying configuration parameters of BIOS |
CN105138419A (en) * | 2015-07-24 | 2015-12-09 | 英业达科技有限公司 | Set value restoring system |
CN105302621A (en) * | 2015-12-09 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Method for remotely achieving initial value restoration of server BIOS Setup |
CN110377347A (en) * | 2019-06-29 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of automatic inspection method and system of Redfish setting BIOS option |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9558016B2 (en) | Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product | |
CN105814541B (en) | The method of computer equipment and computer equipment internal storage starting | |
TWI653528B (en) | Computer system and detection method | |
WO2016177341A1 (en) | Interface calling method and device, and terminal | |
EP1717700A2 (en) | Multimedia devices with enhanced functionality | |
CN109976816B (en) | Computer system configuration method and server | |
CN104185836A (en) | Method and system for verifying proper operation of computing device after system change | |
CN104951328A (en) | Embedded equipment and starting method thereof | |
CN113360257B (en) | Information operation method and device based on BIOS, storage medium and equipment | |
CN113961259A (en) | Boot program loading starting method, device, system, electronic equipment and medium | |
CN105653306A (en) | Method and device for displaying start Setup interface | |
CN112162795A (en) | Plug-in starting method and device, computer equipment and storage medium | |
US20130081010A1 (en) | Template and server content download using protocol handlers | |
CN107450953B (en) | Method and device for updating BIOS | |
CN106952426B (en) | Data processing method and device | |
CN111078316A (en) | Layout file loading method and device, storage medium and electronic equipment | |
CN107861827B (en) | Card screen detection method, mobile terminal and computer readable storage medium | |
CN111176958A (en) | Information monitoring method, system and storage medium | |
CN112130915A (en) | Parameter initialization method and device, electronic equipment and readable storage medium | |
US8762699B1 (en) | System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted | |
CN115357355A (en) | Method, device and equipment for software cross-system migration and readable storage medium | |
JP5489278B2 (en) | Information processing apparatus and activation method thereof | |
CN115185745A (en) | Data processing method, system, electronic device and computer readable storage medium | |
US8918630B1 (en) | System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted | |
CN112231704A (en) | Trusted network environment protection method, apparatus and computer readable 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201225 |