CN118113356A - System starting method, system mainboard, computer equipment and storage medium - Google Patents
System starting method, system mainboard, computer equipment and storage medium Download PDFInfo
- Publication number
- CN118113356A CN118113356A CN202410033986.6A CN202410033986A CN118113356A CN 118113356 A CN118113356 A CN 118113356A CN 202410033986 A CN202410033986 A CN 202410033986A CN 118113356 A CN118113356 A CN 118113356A
- Authority
- CN
- China
- Prior art keywords
- configuration
- custom
- file
- storage area
- values
- 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
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000004590 computer program Methods 0.000 claims abstract description 23
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 241001290266 Sciaenops ocellatus Species 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
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
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7803—System on board, i.e. computer system on one or more PCB, e.g. motherboards, daughterboards or blades
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a system starting method, a system main board, computer equipment, a storage medium and a computer program product. After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM; under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated; replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results; the system starting speed is increased.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system startup method, a system motherboard, a computer device, a storage medium, and a computer program product.
Background
After the computer is powered on, the starting of the computer is completed by running the firmware of a basic input output system (Basic Input Output System, BIOS for short). The BIOS firmware can use the values of a plurality of parameters in the running process, a user can configure the parameters through a baseboard management control unit (Baseboard Management Controller, BMC for short) configuration interface, and the BMC can save the configuration values of the parameters.
In the conventional technology, after the BIOS firmware detects power-on, it may acquire data stored in the BMC, store the data in a nonvolatile random access memory (Non-Volatile Random Access Memory, abbreviated as NVRAM), and then re-execute a startup procedure of each stage from the first stage, so that the startup procedure of each stage may acquire the latest configuration value from the NVRAM, thereby enabling the value configured by the user through the BMC configuration interface to take effect.
However, this way the BIOS firmware needs to be re-run once, resulting in a longer computer start-up period and slower start-up speed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a system startup method, a system motherboard, a computer device, a storage medium, and a computer program product that can accelerate the startup speed.
In a first aspect, the present application provides a system start-up method, including:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
And replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
In one embodiment, the method further comprises: and receiving user-defined configuration information sent by a parameter configuration interface, generating a user-defined configuration file based on the user-defined configuration information, and storing the user-defined configuration file into a preset file storage area.
In one embodiment, the method further comprises: acquiring storage indication information corresponding to a preset file storage area, and determining that a custom configuration file is stored in the file storage area under the condition that the storage indication information indicates that the file storage area is occupied.
In one embodiment, after the parsing the custom configuration file to obtain the custom configuration information, the method further includes: and updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value.
In one embodiment, after the system is started based on the replacement result to complete the system start, the method further includes: deleting the custom configuration file stored in the file storage area, and updating the storage indication information corresponding to the file storage area to the condition that the file storage area is unoccupied.
In a second aspect, the present application further provides a system motherboard, including: comprising the following steps: a flash memory and a start-up unit, the flash memory comprising: a preset file storage area and a nonvolatile random access memory NVRAM;
the starting unit is used for reading configuration values of a plurality of parameter configuration items used in a system starting process from the nonvolatile random access memory NVRAM after power-on is detected; under the condition that a self-defined configuration file is stored in the file storage area, reading the self-defined configuration file, and analyzing the self-defined configuration file to obtain self-defined configuration information, wherein the self-defined configuration information comprises a self-defined value of a configuration item to be updated; and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
In one embodiment, the system motherboard further comprises: the baseboard management control unit BMC is used for receiving the self-defined configuration information sent by the parameter configuration interface, generating a self-defined configuration file based on the self-defined configuration information, and storing the self-defined configuration file in the file storage area.
In a third aspect, the present application further provides a computer device, including the system motherboard provided in the second aspect.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
And replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
And replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
After power-up is detected, the configuration values of a plurality of parameter configuration items used in the system starting process can be read from a nonvolatile random access memory NVRAM, whether a custom configuration file is stored in a preset file storage area or not is judged, if the custom configuration file is stored, the custom configuration file is read, and the custom configuration file is analyzed to obtain custom configuration information, wherein the custom configuration information comprises the custom value of the configuration item to be updated; and finally, replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with custom values, and completing system starting based on the replacement results. The BIOS firmware does not need to be restarted, so that the system starting time is shortened, and the system starting speed is accelerated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a system start-up method in one embodiment;
FIG. 2 is a flow chart of a system start-up method according to another embodiment;
FIG. 3 is a schematic diagram of a system motherboard in one embodiment;
FIG. 4 is a schematic diagram of a system motherboard according to another embodiment;
fig. 5 is a block diagram of a system start device in one embodiment.
Detailed Description
The present application 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 application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The system starting method provided by the embodiment of the application can be applied to a system main board, wherein the system main board can be a system main board in a computer, and optionally, the system main board can be a data processor (Data Processing Unit, DPU), and the computer can be a server or a terminal. The terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices or portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server may be an independent server or a server cluster formed by a plurality of servers.
After the system main board detects power-on, configuration values of a plurality of parameter configuration items used in the system starting process can be read from a nonvolatile random access memory NVRAM, whether a preset file storage area stores a custom configuration file or not is judged, if the custom configuration file is stored, the custom configuration file is read, and the custom configuration file is analyzed to obtain custom configuration information, wherein the custom configuration information comprises custom values of the configuration items to be updated; and finally, replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with custom values, and completing system starting based on the replacement results. The BIOS firmware does not need to be restarted, so that the system starting time is shortened, and the system starting speed is accelerated.
In one exemplary embodiment, as shown in fig. 1, a system start-up method is provided, which may be performed by a system motherboard, the method comprising the steps of:
step 102, after detecting power-up, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM.
The system main board comprises a flash memory and a starting unit, wherein the flash memory further comprises NVRAM, and configuration values of a plurality of parameter configuration items used in the system starting process are stored in the NVRAM. The starting unit stores BIOS firmware.
The configuration values of the plurality of parameter configuration items used in the system starting process can be configured by a user through a BMC configuration interface, or can be configured by a user through a display interface of a system where a system main board is located, the configuration mode of the user through the BMC configuration interface is called out-of-band configuration, and the configuration mode of the user through the display interface of the system is called in-band configuration.
Specifically, the steps 102-106 may be executed by the BIOS firmware, where the BIOS firmware includes a plurality of phase start-up programs, and after the BIOS firmware detects power-up, the BIOS firmware sequentially runs the plurality of phase start-up programs, and after the running is completed, the system start-up is completed.
For each phase of the start-up procedure, during the running of the start-up procedure, the configuration values of certain parameter configuration items may be used, in which case the configuration values of the parameter configuration items may be read from the NVRAM; the configuration values of the parameter configuration items may not be used, in which case the steps of the embodiments of the present application need not be performed.
Step 104, under the condition that the custom configuration file is stored in the preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated.
Wherein, a certain storage area in the flash memory can be pre-designated as a file storage area by a user. After the BIOS firmware reads the configuration values of the plurality of parameter configuration items from the NVRAM, whether a custom configuration file is stored in a preset file storage area or not can be judged, if yes, the user is indicated to possibly update the values of certain parameter configuration items, the custom configuration file is read, the custom configuration file is analyzed, and custom configuration information is obtained, wherein the custom configuration information comprises the updated values of the user and the corresponding parameter configuration items, namely the custom values of the configuration items to be updated in the embodiment of the application.
Wherein, the user can update the value of the parameter configuration item in an out-of-band configuration mode.
The BIOS firmware can acquire storage indication information corresponding to a preset file storage area, and judge whether a custom configuration file is stored in the preset file storage area or not based on the storage indication information.
The custom configuration file may be in an object representation (JavaScript Object Notation, JSON for short) format, and the BIOS firmware may parse the custom configuration file to obtain custom configuration information.
And 106, replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with custom values, and completing system starting based on the replacement results.
After the self-defined configuration information is obtained, the BIOS firmware searches the configuration value of the configuration item to be updated from the read configuration values of the plurality of parameter configuration items based on the configuration item to be updated in the self-defined configuration information, replaces the configuration value of the configuration item to be updated with the self-defined value to obtain a replacement result, and finally completes system starting based on the replacement result.
The BIOS firmware comprises a plurality of stages of starting programs, for each stage of starting program, if the configuration values of certain parameter configuration items are used in the process of running the starting program, the configuration values of the parameter configuration items are read from NVRAM, whether a custom configuration file is stored in a preset file storage area or not is judged, if yes, the custom configuration file is read, the custom configuration file is analyzed, custom configuration information is obtained, whether the configuration items to be updated in the custom configuration information are overlapped with the parameter configuration items read from the NVRAM or not is judged, if yes, the configuration values of the overlapped configuration items are replaced with the corresponding custom values, and starting of the stage is completed based on a replacement result.
The following is illustrative:
The BIOS firmware is assumed to comprise a first-stage boot program, a second-stage boot program and a third-stage boot program, and the configuration values of any parameter configuration item are not used when the first-stage boot program is operated, the configuration values of the configuration item A and the configuration item B are used when the second-stage boot program is operated, and the configuration values of the configuration item C and the configuration item D are used when the third-stage boot program is operated. After the BIOS firmware detects power-on, the corresponding starting program is operated according to the sequence of the first stage, the second stage, the third stage and the fourth stage, and as the configuration value of any parameter configuration item is not used when the starting program of the first stage is operated, the steps in the embodiment of the application are not required to be executed, and all sentences in the starting program of the first stage can be normally executed. After the starting program of the first stage is run, starting to run the starting program of the second stage, reading configuration values of a configuration item A and a configuration item B from NVRAM in the running process, judging whether a preset file storage area stores a self-defined configuration file, if so, reading the self-defined configuration file, analyzing the self-defined configuration file to obtain self-defined configuration information, judging whether the self-defined configuration information has a self-defined value of at least one of the configuration item A and the configuration item B, and replacing the configuration value of the configuration item A read from NVRAM with the self-defined value on the premise that the self-defined value of the configuration item A exists, wherein the replacement result is the configuration item A: custom value, configuration item B: and (3) a configuration value, and continuing to run the starting program of the second stage based on the replacement result. After the second phase of the start-up procedure is run, the third phase of the start-up procedure is started, and the principle is similar to that of the second phase. After the third phase of the start-up procedure is run, the system is started up.
In the above embodiment, after power-up is detected, configuration values of a plurality of parameter configuration items used in a system starting process may be read from a nonvolatile random access memory NVRAM, and whether a preset file storage area stores a custom configuration file is judged, if the custom configuration file is stored, the custom configuration file is read, and the custom configuration file is parsed to obtain custom configuration information, where the custom configuration information includes a custom value of a configuration item to be updated; and finally, replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with custom values, and completing system starting based on the replacement results. The BIOS firmware does not need to be restarted, so that the system starting time is shortened, and the system starting speed is accelerated.
In some embodiments, the system starting method provided by the embodiment of the present application further includes: and receiving the custom configuration information sent by the parameter configuration interface, generating a custom configuration file based on the custom configuration information, and storing the custom configuration file in a preset file storage area.
The system main board further comprises a BMC, and the parameter configuration interface in the embodiment of the application can be the BMC configuration interface. The BMC configuration interface and the BMC can communicate through a network. This embodiment may be performed by the BMC.
The user can update the values of certain parameter configuration items through a parameter configuration interface, the parameter configuration interface takes the parameter configuration items updated by the user as configuration items to be updated, and the values updated by the user as custom values of the configuration items to be updated. The parameter configuration interface may generate custom configuration information based on the custom value of the configuration item to be updated, and send the custom configuration information to the BMC.
After receiving the custom configuration information, the BMC may generate a custom configuration file in JSON format based on the custom configuration information, and store the custom configuration file in a preset file storage area.
It should be noted that: the user can update the values of certain parameter configuration items through the parameter configuration interface before the system is powered on, or update the values of certain parameter configuration items through the parameter configuration interface after the system is powered on, and the user takes effect after the last startup after the corresponding custom configuration file is stored in the preset file storage area through the values configured through the parameter configuration interface.
In the above embodiment, after receiving the custom configuration information sent by the parameter configuration interface, the custom configuration file may be generated based on the custom configuration information, and the custom configuration file is stored in a preset file storage area, and when the startup procedure of each stage is operated, the custom configuration file is directly read from the file storage area, and the custom configuration information is obtained by parsing, and the startup of the corresponding stage is completed based on the custom configuration information, so that the startup time of the system is shortened, and the startup speed of the system is accelerated.
In some embodiments, it may be determined whether a custom configuration file is stored in the file storage area by: obtaining storage indication information corresponding to a preset file storage area, and determining that a custom configuration file is stored in the file storage area under the condition that the storage indication information indicates that the file storage area is occupied.
The storage indication information corresponding to each storage area in the flash memory can be stored in the storage area, or the storage indication information corresponding to all the storage areas is stored in the same fixed area, and when the storage indication information is a first preset value, the corresponding storage area is indicated to be occupied, and when the storage indication information is a second preset value, the corresponding storage area is indicated to be unoccupied. Illustratively, the first preset value may be 1 and the second preset value may be 2.
The BIOS firmware can acquire storage indication information corresponding to a preset file storage area, and determine that a custom configuration file is stored in the file storage area when the storage indication information indicates that the file storage area is occupied, and determine that the custom configuration file is not stored in the file storage area when the storage indication information indicates that the file storage area is unoccupied.
In a specific implementation, the BIOS firmware may obtain storage indication information corresponding to a preset file storage area, and if the storage indication information is a first preset value, which indicates that the file storage area is occupied, determine that a custom configuration file is stored in the file storage area; if the storage indication information is a second preset value, indicating that the file storage area is unoccupied, determining that no custom configuration file exists in the file storage area.
In the above embodiment, the storage indication information corresponding to the preset file storage area may be obtained, and when the storage indication information indicates that the file storage area is occupied, the custom configuration file is determined to be stored in the file storage area, and further the custom configuration file is read, and parsed, so as to obtain the custom configuration information, and the system start is completed based on the custom configuration information, so that the BIOS firmware does not need to be restarted, and the system start speed is increased.
In some embodiments, after resolving the custom configuration file to obtain the custom configuration information, the system starting method provided by the embodiment of the application further includes: and updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to a custom value.
The BIOS firmware judges whether a self-defined configuration file is stored in a file storage area, reads the self-defined configuration file under the condition that the self-defined configuration file is stored in the file storage area, analyzes the self-defined configuration file to obtain self-defined configuration information, searches a configuration value of a configuration item to be updated in NVRAM, and updates the configuration value of the configuration item to be updated to a corresponding self-defined value.
The BIOS firmware comprises a plurality of stages of starting programs, if the configuration values of certain parameter configuration items are used in the process of running the starting programs, the configuration values of the parameter configuration items are read from NVRAM, whether a custom configuration file is stored in a preset file storage area or not is judged, if yes, the custom configuration file is read, and the custom configuration file is analyzed to obtain custom configuration information. After the user-defined configuration information is obtained, judging whether the configuration items to be updated in the user-defined configuration information and the parameter configuration items read from the NVRAM overlap, if so, on one hand, replacing the configuration values of the overlapping configuration items in the read parameter configuration items with corresponding user-defined values, and completing the starting of the stage based on the replacement result. On the other hand, the configuration values of the overlapping configuration items stored in the NVRAM are updated to corresponding custom values.
In some embodiments, referring to fig. 2, a system start-up method is provided, comprising: in step 201, the BMC configuration interface generates custom configuration information, and sends the custom configuration information to the BMC. In step 202, the BMC generates a custom configuration file based on the custom configuration information. In step 203, the bmc stores the custom configuration file in a preset file storage area. In step 204, after the bios firmware detects power-on, the configuration values of a plurality of parameter configuration items used in the system starting process are read from the NVRAM, and the custom configuration file is read and parsed, so as to obtain custom configuration information. And step 205, carrying out replacement processing on the configuration values read from the NVRAM based on the custom configuration information, and completing system starting based on a replacement result. Step 206, updating the configuration value stored in the NVRAM based on the custom configuration information.
In the above embodiment, after the user-defined configuration file is parsed to obtain the user-defined configuration information, the configuration value of the configuration item to be updated in the NVRAM may be updated to the user-defined value, so that the value updated by the user for some parameter configuration items is permanently stored in the NVRAM, and may be validated after each subsequent power-on start.
In some embodiments, after the system is started based on the replacement result to complete the system start, the system start method provided by the embodiment of the present application further includes: deleting the custom configuration file stored in the file storage area, and updating the storage indication information corresponding to the file storage area to be unoccupied.
After the system is started by using the system starting method provided by the embodiment of the application, the BIOS firmware can delete the custom configuration file stored in the file storage area and update the storage indication information corresponding to the file storage area to be unoccupied.
As described in the foregoing embodiment, the storage indication information corresponding to each storage area in the flash memory indicates that the corresponding storage area is occupied when the storage indication information is a first preset value, and indicates that the corresponding storage area is unoccupied when the storage indication information is a second preset value. After the system is started based on the replacement result to complete the system start, the user-defined configuration file stored in the file storage area can be deleted, and the storage indication information corresponding to the file storage area is updated to be a second preset value.
Because the user-defined configuration file is analyzed to obtain the user-defined configuration information, the configuration value of the configuration item to be updated in the NVRAM is updated to the user-defined value, so that the value updated by the user for the configuration item to be updated is permanently stored in the NVRAM, after the system is started, the user-defined configuration file stored in the file storage area is deleted, and the storage indication information corresponding to the file storage area is updated to be unoccupied, so that the user-defined configuration file is not required to be read and analyzed again after the next power-on is detected, and the latest updated value of the user can be effective.
In the above embodiment, after the system is started, the user-defined configuration file stored in the file storage area is deleted, and the storage indication information corresponding to the file storage area is updated to be unoccupied in the file storage area, so that after the next power-on is detected, the user-defined configuration file is not required to be read and analyzed again, the latest updated value of the user can be effective, and the system starting speed is further improved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
In some embodiments, a system motherboard is provided, comprising: flash memory and start-up unit, flash memory includes: a preset file storage area and a nonvolatile random access memory NVRAM; the starting unit is used for reading configuration values of a plurality of parameter configuration items used in the system starting process from the nonvolatile random access memory NVRAM after power-on is detected; under the condition that a user-defined configuration file is stored in the file storage area, reading the user-defined configuration file, and analyzing the user-defined configuration file to obtain user-defined configuration information, wherein the user-defined configuration information comprises user-defined values of configuration items to be updated; and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
As shown in fig. 3, the boot unit stores BIOS firmware. The related steps of the starting unit can be executed by the BIOS firmware, specifically, after the BIOS firmware detects power-on, the configuration values of a plurality of parameter configuration items used in the system starting process are read from the NVRAM; under the condition that a user-defined configuration file is stored in the file storage area, reading the user-defined configuration file, and analyzing the user-defined configuration file to obtain user-defined configuration information, wherein the user-defined configuration information comprises user-defined values of configuration items to be updated; the configuration values of the configuration items to be updated in the plurality of parameter configuration items are replaced by custom values, and the system start is completed based on the replacement results, and the detailed implementation process can be described in the foregoing embodiments, which are not repeated here.
In the above embodiment, the system motherboard includes a flash memory and a starting unit, where the flash memory includes: a preset file storage area and a nonvolatile random access memory NVRAM; the starting unit is used for reading configuration values of a plurality of parameter configuration items used in the system starting process from the nonvolatile random access memory NVRAM after the power-on is detected; under the condition that a user-defined configuration file is stored in the file storage area, reading the user-defined configuration file, and analyzing the user-defined configuration file to obtain user-defined configuration information, wherein the user-defined configuration information comprises user-defined values of configuration items to be updated; and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results. The BIOS firmware does not need to be restarted, so that the system starting time is shortened, and the system starting speed is accelerated.
In some embodiments, the system motherboard further comprises: the baseboard management control unit BMC is used for receiving the custom configuration information sent by the parameter configuration interface, generating a custom configuration file based on the custom configuration information, and storing the custom configuration file in the file storage area.
Referring to fig. 4, the parameter configuration interface may be a BMC configuration interface, the BMC configuration interface and the BMC may communicate through a network, and the BMC may store the custom configuration file to the file storage area through the industry standard specification Redfish. The user can update the values of certain parameter configuration items through the parameter configuration interface, the parameter configuration interface takes the parameter configuration items updated by the user as configuration items to be updated, and the values updated by the user as custom values of the configuration items to be updated. The parameter configuration interface may generate custom configuration information based on the custom value of the configuration item to be updated, and send the custom configuration information to the BMC. After the BMC receives the custom configuration information, the custom configuration file in the JSON format can be generated based on the custom configuration information and stored in a preset file storage area, and the detailed implementation process can be referred to the description of the foregoing embodiments, which are not repeated here.
The BIOS firmware is further configured to obtain storage indication information corresponding to a preset file storage area, and determine that a custom configuration file is stored in the file storage area when the storage indication information indicates that the file storage area is occupied. And the method is also used for analyzing the custom configuration file, and updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value after the custom configuration information is obtained. And the method is also used for deleting the custom configuration file stored in the file storage area and updating the storage indication information corresponding to the file storage area to be unoccupied after the system is started based on the replacement result to finish the system start, and the detailed implementation process can be referred to the description of the foregoing embodiments, and the embodiments of the present application are not repeated here.
In the above embodiment, the system motherboard further includes: the BMC is used for receiving the self-defined configuration information sent by the parameter configuration interface, generating a self-defined configuration file based on the self-defined configuration information, storing the self-defined configuration file in the file storage area, directly reading the self-defined configuration file from the file storage area when the starting program of each stage is operated, analyzing and obtaining the self-defined configuration information, completing the starting of the corresponding stage based on the self-defined configuration information, shortening the starting time of the system and accelerating the starting speed of the system.
In some embodiments, a computer device is further provided, where the computer device includes a system motherboard provided in the foregoing embodiments, and a method for starting the system motherboard refers to the description of the foregoing embodiments, and the embodiments of the present application are not repeated herein.
Based on the same inventive concept, the embodiment of the application also provides a system starting device for realizing the above related system starting method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the system starting device provided below may refer to the limitation of the system starting method hereinabove, and will not be repeated herein.
In one exemplary embodiment, as shown in fig. 5, there is provided a system start-up apparatus comprising:
The reading module 501 is configured to read configuration values of a plurality of parameter configuration items used in a system starting process from the nonvolatile random access memory NVRAM after power-up is detected;
The parsing module 502 is configured to read the custom configuration file and parse the custom configuration file to obtain custom configuration information, where the custom configuration information includes a custom value of a configuration item to be updated, where the custom configuration file is stored in a preset file storage area;
And a starting module 503, configured to replace the configuration values of the configuration items to be updated in the plurality of parameter configuration items with custom values, and complete system starting based on the replacement result.
In some embodiments, the system starting device further includes a configuration module, configured to receive the custom configuration information sent by the parameter configuration interface, generate a custom configuration file based on the custom configuration information, and store the custom configuration file in a preset file storage area.
In some embodiments, the parsing module 502 is specifically configured to obtain storage indication information corresponding to a preset file storage area, and determine that a custom configuration file is stored in the file storage area when the storage indication information indicates that the file storage area is occupied.
In some embodiments, the parsing module 502 is further configured to parse the custom configuration file to obtain custom configuration information, and then update the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value.
In some embodiments, the parsing module 502 is further configured to delete the custom configuration file stored in the file storage area after the system is started based on the replacement result to complete the system startup, and update the storage indication information corresponding to the file storage area to be unoccupied.
The respective modules in the system starting apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving the custom configuration information sent by the parameter configuration interface, generating a custom configuration file based on the custom configuration information, and storing the custom configuration file in a preset file storage area.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining storage indication information corresponding to a preset file storage area, and determining that a custom configuration file is stored in the file storage area under the condition that the storage indication information indicates that the file storage area is occupied.
In one embodiment, the computer program when executed by the processor further performs the steps of: and analyzing the custom configuration file to obtain custom configuration information, and updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the system is started based on the replacement result to complete the system starting, deleting the custom configuration file stored in the file storage area, and updating the storage indication information corresponding to the file storage area to be unoccupied.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving the custom configuration information sent by the parameter configuration interface, generating a custom configuration file based on the custom configuration information, and storing the custom configuration file in a preset file storage area.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining storage indication information corresponding to a preset file storage area, and determining that a custom configuration file is stored in the file storage area under the condition that the storage indication information indicates that the file storage area is occupied.
In one embodiment, the computer program when executed by the processor further performs the steps of: and analyzing the custom configuration file to obtain custom configuration information, and updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the system is started based on the replacement result to complete the system starting, deleting the custom configuration file stored in the file storage area, and updating the storage indication information corresponding to the file storage area to be unoccupied.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.
Claims (10)
1. A system start-up method, the method comprising:
After power-up is detected, reading configuration values of a plurality of parameter configuration items used in a system starting process from a nonvolatile random access memory NVRAM;
Under the condition that a custom configuration file is stored in a preset file storage area, reading the custom configuration file, and analyzing the custom configuration file to obtain custom configuration information, wherein the custom configuration information comprises custom values of configuration items to be updated;
And replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
2. The method according to claim 1, wherein the method further comprises:
And receiving user-defined configuration information sent by a parameter configuration interface, generating a user-defined configuration file based on the user-defined configuration information, and storing the user-defined configuration file into a preset file storage area.
3. The method according to claim 1, wherein the method further comprises:
Acquiring storage indication information corresponding to a preset file storage area, and determining that a custom configuration file is stored in the file storage area under the condition that the storage indication information indicates that the file storage area is occupied.
4. The method of claim 1, wherein after parsing the custom configuration file to obtain custom configuration information, the method further comprises:
And updating the configuration value of the configuration item to be updated in the nonvolatile random access memory NVRAM to the custom value.
5. The method according to any one of claims 1 to 4, wherein after the system start-up based on the replacement result to complete the system start-up, the method further comprises:
Deleting the custom configuration file stored in the file storage area, and updating the storage indication information corresponding to the file storage area to the condition that the file storage area is unoccupied.
6. A system motherboard, comprising: a flash memory and a start-up unit, the flash memory comprising: a preset file storage area and a nonvolatile random access memory NVRAM;
the starting unit is used for reading configuration values of a plurality of parameter configuration items used in a system starting process from the nonvolatile random access memory NVRAM after power-on is detected; under the condition that a self-defined configuration file is stored in the file storage area, reading the self-defined configuration file, and analyzing the self-defined configuration file to obtain self-defined configuration information, wherein the self-defined configuration information comprises a self-defined value of a configuration item to be updated; and replacing the configuration values of the configuration items to be updated in the plurality of parameter configuration items with the custom values, and completing system starting based on the replacement results.
7. The system motherboard of claim 6, further comprising: the baseboard management control unit BMC is used for receiving the self-defined configuration information sent by the parameter configuration interface, generating a self-defined configuration file based on the self-defined configuration information, and storing the self-defined configuration file in the file storage area.
8. A computer device comprising the system motherboard of claim 6 or 7.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410033986.6A CN118113356A (en) | 2024-01-09 | 2024-01-09 | System starting method, system mainboard, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410033986.6A CN118113356A (en) | 2024-01-09 | 2024-01-09 | System starting method, system mainboard, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118113356A true CN118113356A (en) | 2024-05-31 |
Family
ID=91211216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410033986.6A Pending CN118113356A (en) | 2024-01-09 | 2024-01-09 | System starting method, system mainboard, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118113356A (en) |
-
2024
- 2024-01-09 CN CN202410033986.6A patent/CN118113356A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8055633B2 (en) | Method, system and computer program product for duplicate detection | |
CN106708587B (en) | Parameter configuration method and system | |
CN111581219A (en) | Monitoring data acquisition method and device | |
CN113495728B (en) | Dependency relationship determination method, dependency relationship determination device, electronic equipment and medium | |
WO2019114158A1 (en) | Real-time animation display method and device, electronic terminal, and readable storage medium | |
JP2023553220A (en) | Process mining for multi-instance processes | |
CN112328602A (en) | Method, device and equipment for writing data into Kafka | |
CN118113356A (en) | System starting method, system mainboard, computer equipment and storage medium | |
CN116048609A (en) | Configuration file updating method, device, computer equipment and storage medium | |
CN115858251A (en) | Control method and device for substrate control unit, electronic equipment and storage medium | |
CN112241141B (en) | Hardware configuration method, system, device and medium of PLC control system | |
US20150121336A1 (en) | Screen-oriented computing program refactoring | |
CN114036171B (en) | Application data management method, device, computer equipment and storage medium | |
CN117453548B (en) | Code module information determining method, apparatus, computer device and storage medium | |
US11921688B2 (en) | Environment construction support device and environment construction support method | |
CN113946332B (en) | Method and storage medium for displaying attributes based on GUI (graphical user interface) | |
CN115729641B (en) | Metadata circulation method and device of custom component and electronic equipment | |
CN116932779B (en) | Knowledge graph data processing method and device | |
CN114528045B (en) | Plug-in operation method, device, computer equipment and storage medium | |
JP6674067B1 (en) | File association processing device, file association method, and file association program | |
CN117312389A (en) | Method and device for constructing association rule engine and computer equipment | |
CN116578317A (en) | Firmware upgrading method, device, electronic equipment and storage medium | |
CN118796801A (en) | Data migration method and device and electronic equipment | |
CN118869366A (en) | Method, device, equipment, medium and product for detecting component composite loopholes | |
CN118331609A (en) | Method, device, equipment, storage medium and program product for refreshing out-of-band firmware |
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 |