Device startup method, device, electronic device and computer-readable storage medium
By dividing the BMC ROM and BIOS ROM areas in the storage module, using BMC for scanning detection and ESPI signal connection, the problem of increasing hardware costs in the prior art is solved, and the effect of secure startup and cost reduction is achieved.
Patent Information
- Application Number
- CN202210284861.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-03-22
AI Technical Summary
The prior art requires additional BIOS ROM chips when implementing secure startup of electronic devices, resulting in increased hardware costs.
The storage areas of BMC ROM and BIOS ROM are divided into the storage module of electronic devices, scan detection and verification are performed through BMC, and PCH is connected to the PCH using ESPI signals to realize the function of BIOS ROM without the need for an additional BIOS Flash chip.
It realizes the secure startup of electronic devices, reduces hardware costs, and improves the reliability and security of startup.
Smart Images

Figure CN114611116B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of computer hardware security. Specifically, it relates to a device startup method, device, electronic device, and computer-readable storage medium. Background Art
[0002] Currently, for electronic devices with a BMC (Baseboard Management Controller), there are various solutions for the hardware encryption or verification methods of the BIOS (Basic Input Output System) at the hardware level. For example, conventional security mechanisms such as Cerberus, TPM (Trusted Platform Module), TCM (Trusted Cryptography Module), and PFR (Platform Firmware Resiliency) can be used to achieve the secure startup of electronic devices.
[0003] The current encryption / protection mechanism needs to be entrusted to a chip that can monitor the Flash, which will increase the hardware cost. For example, if an electronic device uses the PFR mechanism, the electronic device requires two BIOS ROM chips, one as the main ROM and the other for backup and recovery, which will increase the hardware production cost of the motherboard. Summary of the Invention
[0004] The purpose of this application is to provide a device startup method, device, electronic device, and computer-readable storage medium, which can reduce the hardware cost of the electronic device while achieving the secure startup of the electronic device.
[0005] To achieve the above purpose, the technical solutions provided by this application include:
[0006] In a first aspect, a device startup method is provided, which is applied to an electronic device. In the storage module of the electronic device, a first storage area representing the BMC ROM of the electronic device and a second storage area representing the BIOS ROM are divided. The method includes: when the BMC of the electronic device reads the specified version of BMC firmware information for power-on startup, scanning and detecting the second storage area; when the second storage area meets the preset verification condition, performing BOOT on the first storage area to start the BMC; after the BMC completes startup, releasing a reset signal from the BMC to the PCH of the electronic device, where the reset signal is used for the PCH to connect to the BMC through ESPI; using the ESPI by the BMC to send the firmware information representing the BIOS ROM to the PCH, and starting the second storage area to realize the startup of the electronic device.
[0007] In the above embodiment, the second storage area of the storage module is used as the BIOS ROM of the electronic device, and there is no need to set a BIOS Flash on the motherboard of the electronic device as the BIOS ROM. Then, the second storage area used as the BIOS ROM is scanned and detected to achieve the secure startup of the electronic device. In this way, on the basis of being able to achieve secure startup, the hardware chips of the electronic device can be reduced, which is beneficial to reducing the production cost of the electronic device.
[0008] Combined with the first aspect, in some optional embodiments, scanning and detecting the second storage area includes: obtaining the information to be verified representing the BIOS ROM from the second storage area; when the information to be verified is the same as the preset verification information, or the current verification code of the information to be verified is the same as the preset verification code, determining that the second storage area meets the preset verification condition.
[0009] In the above embodiment, by verifying the information to be verified or the current verification code of the BIOS ROM, it can be quickly determined whether there is a security threat to the BIOS ROM. In this way, the security of the electronic device startup can be improved.
[0010] Combined with the first aspect, in some optional embodiments, the first storage area includes a first main storage area and a first backup storage area. Performing BOOT on the first storage area includes: performing BOOT on the first main storage area to start all functions of the BMC; when some or all functions of the BMC fail to start, performing BOOT on the first backup storage area to start all functions of the BMC.
[0011] In the above embodiments, the first main storage area and the first standby storage area can play the role of main and standby, thereby improving the reliability of the startup of the electronic device.
[0012] Combined with the first aspect, in some alternative embodiments, before the BMC of the electronic device reads the specified version of the BMC firmware information for power-on startup, the method further includes: receiving a configuration instruction for performing basic startup item configuration on the BMC Flash chip of the electronic device, and storing the specified version of the BMC firmware information through the BMC Flash chip, where the basic startup item configuration is used for the BMC to perform partition writing on the storage module.
[0013] In the above embodiments, by performing basic startup item configuration on the original BMC Flash chip of the electronic device, the electronic device can perform verification and secure startup of the BIOS ROM from the storage module.
[0014] Combined with the first aspect, in some alternative embodiments, the second storage area includes a second main storage area and a second standby storage area, the second main storage area is configured as the BIOS ROM, and the second standby storage area is used to back up the data in the second main storage area.
[0015] In a second aspect, the present application further provides a device startup device, which is applied to an electronic device. In the storage module of the electronic device, a first storage area representing the BMC ROM of the electronic device and a second storage area representing the BIOS ROM are partitioned. The device includes:
[0016] A scan detection unit, configured to scan and detect the second storage area when the BMC of the electronic device reads the specified version of the BMC firmware information for power-on startup;
[0017] A boot setting unit, configured to perform BOOT on the first storage area to start the BMC when the second storage area meets a preset verification condition;
[0018] A signal release unit, configured to release a reset signal to the PCH of the electronic device through the BMC after the BMC completes startup, where the reset signal is used for the PCH to connect to the BMC through ESPI;
[0019] A sending unit, configured to send the firmware information representing the BIOS ROM to the PCH through the BMC using the ESPI, and start the second storage area representing the BIOS ROM to implement the startup of the electronic device.
[0020] In a third aspect, the present application further provides an electronic device, which includes a processor and a storage module coupled to each other. A first storage area representing the BMC ROM of the electronic device and a second storage area representing the BIOS ROM are partitioned in the storage module. A computer program is stored in the storage module. When the computer program is executed by the processor, the electronic device executes the above-mentioned method.
[0021] In combination with the third aspect, in some alternative embodiments, the motherboard of the electronic device does not have a BIOS Flash chip.
[0022] In combination with the third aspect, in some alternative embodiments, the PCH of the electronic device is provided with a jumper for debugging.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the above-mentioned method. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0025] Figure 1 It is a schematic diagram of the circuit module of the electronic device provided by the embodiment of the present application.
[0026] Figure 2 It is a schematic flowchart of the device startup method provided by the embodiment of the present application.
[0027] Figure 3 It is a schematic flowchart of the sub-steps of step 120 provided by the embodiment of the present application.
[0028] Figure 4 It is a block diagram of the device startup device provided by the embodiment of the present application.
[0029] Icons: 10 - electronic device; 11 - processing module; 12 - PCH; 13 - baseboard management controller; 14 - storage module; 101 - first storage area; 102 - second storage area; 200 - device startup device; 210 - scan detection unit; 220 - boot setting unit; 230 - signal release unit; 240 - sending unit. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] Next, the technical solutions in the embodiments of the present application will be described in conjunction with the accompanying drawings in the embodiments of the present application. It should be noted that the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0031] Please refer to Figure 1 , the present application provides an electronic device 10, which can achieve the secure boot of the device itself without setting a BIOS Flash chip on the main board of the electronic device 10.
[0032] The electronic device 10 may include a processing module 11, a PCH 12, a baseboard management controller 13, and a storage module 14. A first storage area 101 representing the BMC ROM of the electronic device 10 and a second storage area 102 representing the BIOS ROM are divided in the storage module 14. A computer program is stored in the storage module. When the computer program is executed by the processing module 11, the electronic device 10 can execute the steps in the following methods.
[0033] The storage module 14 may be, but is not limited to, an EMMC (Embedded Multi Media Card), an SSD (Solid State Disk), a mechanical hard disk, etc. When the storage module 14 is an EMMC, it is beneficial to improve the read and write speed and shorten the boot waiting time of the electronic device 10.
[0034] The full name of PCH is Platform Controller Hub, which is an integrated south bridge chip module of Intel Corporation and has two working modes: Master and Slave. When the PCH works in the Master mode, the PCH establishes a connection with the baseboard management controller 13 through SPI (Serial Peripheral Interface). When the PCH works in the Slave mode, the PCH establishes a connection with the baseboard management controller 13 through ESPI (Enhanced Serial Peripheral Interface).
[0035] As an alternative embodiment, when the electronic device 10 is used as a device during R & D and testing, the PCH can be provided with jumpers for debugging. Among them, the jumper is a common interface for signal connection, which facilitates debugging or testing of Bypass and Debug during development and testing. For example, in the electronic device 10, when the BIOS ROM of the PCH is in the debugging stage or the BMC is not ready, the jumper is used to press the up key to perform corresponding function tests (such as Bypass and Debug tests).
[0036] Among them, Bypass means that through a specific trigger state (power-off or crash), the two networks directly conduct physically without passing through the system of the network security device. With Bypass, when the device fails, the device can also make the networks of other devices connected to this device conduct with each other. Debug refers to troubleshooting the computer.
[0037] When the electronic device 10 is not used as a debugging device, jumpers do not need to be reserved on the PCH.
[0038] In this embodiment, the electronic device 10 can be, but is not limited to, a server, a host device, etc. Since in the storage module 14 of the electronic device 10, a second storage area 102 representing the BIOS ROM is divided, this second storage area 102 can be used as the BIOS ROM and has the function of a BIOS Flash chip. That is, the motherboard of the electronic device 10 does not need to be provided with a BIOS Flash chip to reduce the hardware cost of the electronic device 10.
[0039] Please refer to Figure 2 , this application also provides a device startup method, which can be applied to the above-mentioned electronic device 10, and each step of the method is executed or implemented by the electronic device 10. The method may include the following steps:
[0040] Step 110, when the BMC of the electronic device reads the specified version of BMC firmware information for power-on startup, scan and detect the second storage area;
[0041] Step 120, when the second storage area meets the preset verification conditions, perform BOOT on the first storage area to start the BMC;
[0042] Step 130, after the BMC is started, release a reset signal from the BMC to the PCH of the electronic device, and the reset signal is used for the PCH to connect to the BMC through ESPI;
[0043] Step 140: The BMC uses the ESPI to send the firmware information representing the BIOS ROM to the PCH, and the electronic device is started by starting the second storage area representing the BIOS ROM.
[0044] In the above embodiment, the second storage area of the storage module is used as the BIOS ROM of the electronic device, and there is no need to set a BIOS Flash on the motherboard of the electronic device as the BIOS ROM. Then, the second storage area used as the BIOS ROM is scanned and detected to achieve the secure start of the electronic device. In this way, on the basis of enabling secure start, the hardware chips of the electronic device can be reduced, which is beneficial to reducing the production cost of the electronic device.
[0045] The following will elaborate on each step of the method in detail as follows:
[0046] During the startup of the electronic device, in Step 110, the BMC can automatically read the BMC FW (Baseboard Management Controller Firmware) information. In this embodiment, the BMC FW information read by the BMC is the specified version of the BMC FW information that has been pre-processed. Among them, the specified version of the BMC FW information can be flexibly set according to the actual situation, and no specific limitation is made here.
[0047] When the BMC reads the specified version of the BMC firmware information, it starts to scan and detect the second storage area of the storage module to determine whether the BIOS ROM is abnormal (for example, if the BIOS FW information is illegally tampered with, it is considered that the BIOS ROM is abnormal). When the BIOS ROM is abnormal, the startup of the electronic device ends; when the BIOS ROM is normal, the electronic device continues to start. It should be noted that the BMC can also scan and detect the first storage area of the storage module.
[0048] In this embodiment, Step 110 may include:
[0049] Obtain the information to be verified representing the BIOS ROM from the second storage area;
[0050] When the information to be verified is the same as the preset verification information, or the current verification code of the information to be verified is the same as the preset verification code, it is determined that the second storage area meets the preset verification conditions.
[0051] Understandably, the information to be verified is the information used to verify whether the BIOS ROM has been illegally tampered with. For example, the information to be verified may be, but is not limited to, the current BIOS FW information or the current signature information of the BIOS ROM.
[0052] The preset verification information is the information indicating that the BIOS ROM is in a normal state. For example, the preset verification information may be the pre-stored BIOS FW information or the preset signature information.
[0053] The current verification code can be the data obtained by operating on the information to be verified. For example, the current verification code is the hash value obtained by performing a hash operation on the current BIOS FW information. Similarly, the preset verification code can be the hash value obtained by performing a hash operation on the pre-stored BIOS FW information.
[0054] In step 110, if it is detected that the current BIOS FW information is different from the pre-stored BIOS FW information, or the current signature information is different from the preset signature information, it means that there is an abnormality in the second storage area of the BIOS ROM (such as illegal tampering). At this time, the second storage area does not meet the preset verification conditions, and the electronic device ends the startup to avoid the abnormal BIOS ROM threatening the network security of the electronic device.
[0055] If it is detected that the current BIOS FW information is the same as the pre-stored BIOS FW information, or the current signature information is the same as the preset signature information, it means that the second storage area meets the preset conditions. At this time, step 120 is executed.
[0056] In step 120, BOOT is performed on the first storage area, that is, the first storage area that is the BMC ROM in the storage module is boot-set to start all functions of the BMC.
[0057] The first storage area of the storage module can be only used as a BMC ROM, or can be divided into two BMC ROMs. When there are two BMC ROMs divided, the two BMC ROMs can respectively correspond to the first main storage area and the first backup storage area. The first main storage area and the first backup storage area cooperate with each other to play the role of primary and backup, so as to improve the reliability and stability of system startup.
[0058] Exemplarily, the first storage area may include the first main storage area and the first backup storage area. Please refer to Figure 3 , step 120 may include:
[0059] Step 121, perform BOOT on the first main storage area to start all functions of the BMC;
[0060] Step 122: When the startup of some or all functions of the BMC fails, perform BOOT on the first backup storage area to start all functions of the BMC.
[0061] Understandably, when performing the BOOT operation on the first storage area, the first main storage area serving as the main BMC ROM can be BOOTed first. If all functions of the BMC cannot be fully started, it is regarded as a BMC startup failure. At this time, the first backup storage area serving as the backup BMC ROM is BOOTed to achieve the startup of all functions of the BMC. In this way, combining the primary and backup startups can improve the reliability of starting all functions of the BMC.
[0062] In step 130, before the PCH receives the reset signal sent by the BMC, the PCH operates in the Master mode, and the PCH establishes a connection with the BMC through SPI. When the PCH receives the reset signal sent by the BMC, the PCH switches from the Master mode to the Slave mode. At this time, the PCH establishes a connection with the BMC through ESPI.
[0063] In the Master mode, the PCH can directly obtain the data of the Flash chip connected to the PCH through SPI.
[0064] In the Slave mode, the PCH can indirectly obtain the data of the Flash chip connected to the BMC through ESPI and the BMC. In this embodiment, the storage module is connected to the BMC, and the PCH needs to use ESPI to obtain the BIOS FW information in the storage module from the BMC. After the PCH establishes a connection with the BMC through ESPI, it can obtain the BIOS FW information from the BMC. Of course, the PCH can also obtain other data (such as BMC FM information) from the BMC through ESPI, which will not be elaborated here.
[0065] In step 140, the firmware information of the BIOS ROM is the BIOS FW information. After the PCH receives the BIOS FW information, it can perform BIOS startup, thereby realizing the startup of the electronic device. Since during the startup process of the electronic device, the second storage area representing the BIOS ROM is checked and verified, and as long as the verification fails, the electronic device cannot start, the safe startup of the electronic device can be realized. In addition, since there is no need to set the Flash chip of the BIOS ROM on the motherboard of the electronic device, but the function of the BIOS ROM is realized by the second storage area of the storage module, the production cost of the hardware can be reduced, and it is beneficial to improve the utilization rate of the hardware resources of the storage module.
[0066] In this embodiment, before step 110, the method may further include:
[0067] Receive a configuration instruction for performing basic boot item configuration on the BMC Flash chip of the electronic device, and store the specified version of BMC firmware information through the BMC Flash chip. The basic boot item configuration is used for the BMC to perform partition flashing on the storage module.
[0068] Understandably, the configuration instruction is the corresponding instruction input by the operator when performing basic boot item configuration on the BMC Flash chip.
[0069] After the above-mentioned first storage area and second storage area are divided in the storage module, the Flash chip originally serving as the BMC ROM in the BMC needs special processing. For example, the operator can perform a basic boot item configuration on the ROM of the BMC. The Flash chip of the BMC can store the specified version of BMC firmware information for power-on startup. This basic boot item configuration enables the BMC to perform partition flashing on the storage module. For example, when the electronic device is powered on and started, the BMC has the ability to read data from the Flash chip. For example, the BMC has the ability to read the specified version of BMC firmware information. At this time, all functions of the BMC are not fully started. After reading the specified version of BMC firmware information, the content of step 110 above is executed.
[0070] The second storage area can only be used as a BIOS ROM or can be divided into two BIOS ROMs. When there are two divided BIOS ROMs, the two BIOS ROMs can respectively correspond to the second main storage area and the second backup storage area.
[0071] Understandably, the second storage area can include a second main storage area and a second backup storage area. The second main storage area is configured as a BIOS ROM, and the second backup storage area is used to back up the data of the second main storage area to improve the stability and reliability of the system.
[0072] For the convenience of understanding, the following will take the storage module 14 as an EMMC as an example to illustrate the implementation process of the device startup method as follows:
[0073] First, in a certain partition area of the EMMC of the electronic device, two areas for BMC ROM (the first storage area) and two areas for BIOS ROM (the second storage area) are divided to replace the original BMC Flash chip and BIOS Flash chip that were to be placed on the motherboard of the electronic device. In addition, the original Flash chip of the BMC that serves as the BMC ROM needs special processing. For example, an operator can perform a basic boot item configuration on the BMC ROM. The Flash chip of the BMC can store the BMC firmware information of a specified version for boot-up. This basic boot item configuration enables the BMC to perform partition flashing on the EMMC.
[0074] Then, power on the electronic device. For example, manually press the power button of the electronic device. At this time, the BMC of the electronic device first reads a specified version of BMC FW information through SPI, and then scans the BIOS ROM and BMC ROM segments of the EMMC. If it is detected that the BIOS ROM passes the verification (or both the BIOS ROM and BMC ROM pass the verification), an attempt can be made to perform BOOT on the BMC ROM in the EMMC. It should be noted that if the BIOS ROM fails to pass the verification, the electronic device ends the startup. At this time, the operator needs to wait to perform an upgrade operation from the WEB or other channels.
[0075] Among them, the process of performing BOOT on the BMC ROM can be: start all functions of the BMC by performing BOOT from the first BMC ROM. If the startup fails, attempt to start from the second BMC ROM. After successfully starting all functions of the BMC, release the reset signal of the PCH. After receiving the reset signal, the PCH selects to start from the eSPI of the BMC. At this time, the BMC starts the two BIOS ROMs in the EMMC, and the startup of the electronic device is completed through the startup of the BIOS. It should be noted that the two BIOS ROMs also have backup and recovery functions to improve the reliability of device startup.
[0076] Based on the above design, when the motherboard of the electronic device is mass-produced, the installation of the BIOS Flash chip on the motherboard can be reduced, and no additional encryption chip is required, which can greatly reduce the production cost. In addition, the BMC updates the BIOS Flash, and since it is put into the BMC internal checksum and stored in the EMMC, the speed of online upgrade can be increased. Furthermore, it can be compatible with the motherboard previously given to the customer, and the upgrade service can be performed through the WEB. The method can be applicable to: a motherboard with a reserved MASTERESPI FLASH SHARING / SLAVE ESPI FLASH SHARING selection mode, and a motherboard designed to contain EMMC. Of course, in other embodiments, the above-mentioned SSD or mechanical hard disk can be used to replace the EMMC.
[0077] Please refer to Figure 4 , the embodiment of the present application also provides a device startup device 200, which can be applied to the above-mentioned electronic device to execute the steps in the method. The device startup device 200 includes at least one software function module that can be stored in the storage module in the form of software or firmware (Firmware) or solidified in the operating system (OS) of the electronic device. The processing module is used to execute the executable module stored in the storage module, such as the software function module and computer program included in the device startup device 200.
[0078] The device startup apparatus 200 may include a scanning detection unit 210, a guidance setting unit 220, a signal release unit 230 and a sending unit 240, and the functions of each unit may be as follows:
[0079] The scanning and detecting unit 210 is configured to scan and detect the second storage area when the BMC of the electronic device reads the BMC firmware information of a specified version for booting;
[0080] A boot setting unit 220, configured to boot the first storage area to start the BMC when the second storage area meets a preset verification condition;
[0081] A signal releasing unit 230, configured to release a reset signal to the PCH of the electronic device through the BMC after the BMC completes startup, wherein the reset signal is used for the PCH to connect to the BMC through the ESPI;
[0082] The sending unit 240 is configured to send the firmware information representing the BIOS ROM to the PCH through the BMC using the ESPI, and start the electronic device by starting the second storage area representing the BIOS ROM.
[0083] Optionally, the scan detection unit 210 is further configured to: obtain the information to be verified characterizing the BIOS ROM from the second storage area; when the information to be verified is the same as the preset verification information, or when the current verification code of the information to be verified is the same as the preset verification code, determine that the second storage area meets the preset verification condition.
[0084] Optionally, the boot setting unit 220 is further configured to: perform BOOT on the first main storage area to start all functions of the BMC; when part or all functions of the BMC fail to start, perform BOOT on the first backup storage area to start all functions of the BMC.
[0085] Optionally, the device startup device 200 may further include a configuration unit. Before the BMC of the electronic device reads the BMC firmware information of the specified version for power-on startup, the configuration unit is configured to receive a configuration instruction for performing basic startup item configuration on the BMC Flash chip of the electronic device, and store the BMC firmware information of the specified version through the BMC Flash chip, where the basic startup item configuration is used for the BMC to perform partition writing on the storage module.
[0086] In this embodiment, the processing module may be an integrated circuit chip with signal processing capabilities. The above processing module may be a general-purpose processor. For example, the processor may be a Central Processing Unit (CPU), a Digital Signal Processing (DSP), an Application-Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
[0087] In this embodiment, the storage module may be used to store preset verification information, preset verification codes, etc. Of course, the storage module may also be used to store programs, and the processing module executes the program after receiving an execution instruction.
[0088] It can be understood that Figure 1 the structure shown is only a schematic structural diagram of the electronic device, and the electronic device may further include more Figure 1 components than those shown. Figure 1 Each component shown in
[0089] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described electronic device can refer to the corresponding processes of the steps in the foregoing method, and will not be elaborated herein.
[0090] The embodiment of the present application also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is enabled to execute the device startup method described in the above embodiment.
[0091] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by hardware, or can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to execute the methods described in various implementation scenarios of the present application.
[0092] In summary, in this solution, the second storage area of the storage module is used as the BIOS ROM of the electronic device, and there is no need to set a BIOS Flash on the motherboard of the electronic device as the BIOS ROM. Then, the second storage area used as the BIOS ROM is scanned and detected to achieve the secure startup of the electronic device. In this way, on the basis of being able to achieve secure startup, the hardware chips of the electronic device can be reduced, which is beneficial to reducing the production cost of the electronic device.
[0093] In the embodiments provided in the present application, it should be understood that the disclosed devices, systems, and methods can also be implemented in other ways. The device, system, and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of systems, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code includes one or more executable instructions for implementing the specified logical function. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions. In addition, the functional modules in various embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0094] The above are only embodiments of the present application and are not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A device startup method, characterized in that, Applied to an electronic device, in the same storage module of the electronic device, a first storage area representing the BMC ROM of the electronic device and a second storage area representing the BIOS ROM are partitioned, and the motherboard of the electronic device does not have a BIOS Flash chip; the method includes: When the BMC of the electronic device reads the specified version of the BMC firmware information for booting, scan and detect the second storage area; When the second storage area meets the preset verification conditions, perform BOOT on the first storage area to start the BMC; After the BMC is started, send a reset signal to the PCH of the electronic device through the BMC. The reset signal is used for the PCH to connect to the BMC through ESPI. The PCH has two working modes, Master and Slave. When the PCH receives the reset signal, the PCH switches from the Master mode to the Slave mode. In the Slave mode, the PCH is connected to the BMC through ESPI; Use the ESPI through the BMC to send the firmware information representing the BIOS ROM to the PCH, and start the second storage area representing the BIOS ROM to realize the startup of the electronic device.
2. The method according to claim 1, wherein Scanning and detecting the second storage area includes: Obtain the information to be verified representing the BIOS ROM from the second storage area; When the information to be verified is the same as the preset verification information, or the current verification code of the information to be verified is the same as the preset verification code, determine that the second storage area meets the preset verification conditions.
3. The method according to claim 1, characterized in that, The first storage area includes a first main storage area and a first backup storage area. Performing BOOT on the first storage area includes: Perform BOOT on the first main storage area to start all functions of the BMC; When part or all of the functions of the BMC fail to start, perform BOOT on the first backup storage area to start all functions of the BMC.
4. The method according to claim 1, wherein Before the BMC of the electronic device reads the specified version of the BMC firmware information for booting, the method further includes: Receive a configuration instruction for performing basic startup item configuration on the BMC Flash chip of the electronic device, and store the specified version of the BMC firmware information through the BMC Flash chip. The basic startup item configuration is used for the BMC to perform partition writing on the storage module.
5. The method according to claim 1, characterized in that, The second storage area includes a second main storage area and a second backup storage area. The second main storage area is configured as the BIOS ROM, and the second backup storage area is used to back up the data in the second main storage area.
6. An apparatus starting device, characterized in that, Applied to an electronic device, in the same storage module of the electronic device, a first storage area representing the BMC ROM of the electronic device and a second storage area representing the BIOS ROM are partitioned, and the motherboard of the electronic device does not have a BIOS Flash chip; the device includes: A scanning detection unit, configured to perform a scanning detection on the second storage area when the BMC of the electronic device reads the BMC firmware information of a specified version for boot-up; A boot setting unit, configured to perform a BOOT on the first storage area to start the BMC when the second storage area meets a preset verification condition; A signal release unit, configured to, after the BMC completes startup, release a reset signal to the PCH of the electronic device through the BMC, where the reset signal is used for the PCH to connect to the BMC through ESPI. The PCH has two working modes, Master and Slave. When the PCH receives the reset signal, the PCH switches from the Master mode to the Slave mode, and in the Slave mode, the PCH is connected to the BMC through ESPI; A sending unit, configured to send the firmware information representing the BIOS ROM to the PCH through the BMC using the ESPI, and start the second storage area representing the BIOS ROM to implement the startup of the electronic device.
7. An electronic device, characterized in that, The electronic device includes a processor and a storage module that are coupled to each other. The storage module stores a computer program. When the computer program is executed by the processor, the electronic device executes the method according to any one of claims 1-5.
8. The electronic device according to claim 7, wherein The PCH of the electronic device is provided with a jumper for debugging.
9. A computer-readable storage medium, characterized in that, A computer-readable storage medium stores a computer program. When the computer program runs on a computer, the computer executes the method according to any one of claims 1-5.
Citation Information
Patent Citations
Information processing method and electronic apparatus
CN105117306A
Equipment control method, electronic equipment and readable storage medium
CN113282969A
BIOS (Basic Input / Output System) starting method and device based on hardware multiplexing channel
CN113656076A