CN114546507A - System initialization method and device and electronic equipment - Google Patents

System initialization method and device and electronic equipment Download PDF

Info

Publication number
CN114546507A
CN114546507A CN202210181494.2A CN202210181494A CN114546507A CN 114546507 A CN114546507 A CN 114546507A CN 202210181494 A CN202210181494 A CN 202210181494A CN 114546507 A CN114546507 A CN 114546507A
Authority
CN
China
Prior art keywords
image file
management controller
baseboard management
basic input
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210181494.2A
Other languages
Chinese (zh)
Inventor
王峰
王宝涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210181494.2A priority Critical patent/CN114546507A/en
Publication of CN114546507A publication Critical patent/CN114546507A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

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

Abstract

The application discloses a system initialization method, a system initialization device and electronic equipment. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.

Description

System initialization method and device and electronic equipment
Technical Field
The present disclosure relates to the field of system processing, and in particular, to a method and an apparatus for initializing a system, and an electronic device.
Background
At present, when a server system is started, a BIOS chip generally needs to call a BIOS image file stored in a dedicated storage chip, so that the BIOS chip can initialize hardware in the server system.
Disclosure of Invention
In view of the above, the present application provides a system initialization method, an apparatus and an electronic device, and the specific scheme is as follows:
a method of system initialization, comprising:
when the system is started, acquiring a mirror image file of a basic input and output system from a baseboard management controller;
loading the image file into the system;
completing initialization of the system based on the image file;
the image file is stored in a storage unit of the baseboard management controller.
Further, the obtaining an image file of the bios from the bmc when the system is started includes:
when the system is started, two parts of the mirror image file of the basic input and output system are sequentially obtained from the baseboard management controller;
the two parts at least comprise: the image file comprises a first part for initializing a system memory and a processor and a second part except the first part in the image file.
Further, the sequentially obtaining two parts of the image file of the bios from the bmc includes:
acquiring a first part of an image file of the basic input and output system from the baseboard management controller through a serial peripheral interface;
and acquiring a second part of the image file of the basic input and output system from the basic management controller through a general bus.
Further, the loading the image file into the system and completing initialization of the system based on the image file includes:
loading a first part of the image file into a processor of the system for execution;
determining a first subsection of a second portion of the image file used to initialize registers in a processor of the system and a second subsection used to initialize functions and hardware in the processor of the system other than registers;
loading the first subsection into a processor of the system for execution;
and loading the second subpart into the system memory for execution, and finishing initialization of the system.
Further, the method also comprises the following steps:
storing the image file of the basic input and output system stored in a read only memory of the system to a storage unit of the baseboard management controller;
or the like, or, alternatively,
and storing the mirror image file of the basic input and output system stored by the server to a storage unit of the baseboard management controller.
Further, the method also comprises the following steps:
and if the update file of the basic input and output system is obtained, replacing the image file stored in the read-only memory and/or the server with the update file.
Further, the method also comprises the following steps:
and if the storage failure is monitored in the process of storing the image file into the storage unit of the substrate management controller, outputting prompt information.
An initialization apparatus comprising:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring an image file of a basic input and output system from a baseboard management controller when the system is started;
the loading unit is used for loading the mirror image file into the system;
the initialization unit is used for completing initialization of the system based on the image file;
the image file is stored in a storage unit of the baseboard management controller.
An electronic device, comprising:
the controller is used for acquiring an image file of a basic input and output system from a baseboard management controller when the system is started, loading the image file into the system, and finishing initialization of the system based on the image file, wherein the image file is stored in a storage unit of the baseboard management controller;
and the memory is used for storing the program of the processor for executing the processing procedure.
A readable storage medium storing at least one set of instructions;
the set of instructions is for being called and for performing at least a method of system initialization according to any one of claims 1-7.
According to the technical scheme, the system initialization method, the device and the electronic equipment, when the system is started, the image file of the basic input and output system is obtained from the baseboard management controller, the image file is loaded into the system, and the initialization of the system is completed based on the image file, wherein the image file is stored in the storage unit of the baseboard management controller. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a system initialization method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of a system initialization method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of a system initialization method disclosed in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an initialization apparatus disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The present application discloses a system initialization method, a flowchart of which is shown in fig. 1, including:
step S11, acquiring the mirror image file of the basic input and output system from the baseboard management controller when the system is started;
step S12, loading the mirror image file into the system;
step S13, the initialization of the system is completed based on the image file, wherein the image file is stored in the storage unit of the baseboard management controller.
Due to the increase of applications such as big data and artificial intelligence at present, the demand of large-scale or even ultra-large-scale server room centers is gradually increased, the maintenance pressure of the server is also gradually increased, the server system is used as a basic input/output system BIOS essential for starting the server system, usually depends on a local independent BIOS flash storage medium, and has a certain storage cost.
In the scheme, the image file of the basic input and output system is stored in the storage unit of the baseboard management controller, and when the system is started, the image file of the basic input and output system is directly acquired from the baseboard management controller and loaded into the system, so that the initialization of the system is completed.
A Board Management Controller (BMC) is indispensable as a monitoring chip of a server system, and therefore, in order to reduce a storage medium of a bios, firmware of the bios may be directly stored in the BMC, so that when the bios is called, the bios may be called directly from the BMC without storing the firmware of the bios through an additional storage medium and calling from an additional storage medium when necessary.
The image file of the basic input and output system is generated and stored in the storage unit of the baseboard management controller, the work of mounting the BIOS firmware is realized by transferring the BIOS firmware from an independent storage medium to the baseboard management controller, and the calling and loading of the basic input and output system cannot be influenced at the system end, so that the process of initializing the system is realized.
When the system is started, the host acquires the image file of the basic input and output system from the storage unit of the baseboard management controller BMC, loads the image file, and then executes the loaded image file on the host side to finish the initialization of the server system.
The host acquires the image file of the bios from the storage unit of the BMC, which may be: the method comprises the steps that a host sends a request to a Baseboard Management Controller (BMC), and the BMC determines that a system is in a starting process based on the request and transmits an image file stored in a storage unit of the BMC to the host when the system reaches an initialization stage; alternatively, the following may be used: the method comprises the steps that a baseboard management controller monitors the running state of a system host, and if the host is determined to be in a starting state at present and reaches an initialization stage, the baseboard management controller directly transmits a mirror image file of a basic input/output system stored in a storage unit inside the baseboard management controller to the host in a transparent mode; alternatively, it may be: the host reads the image file of the basic input and output system from the storage unit of the baseboard management controller BMC directly.
After the system obtains the image file of the bios from the bmc, whether loading the image file or initializing the system based on the image file is similar to the process of obtaining the file of the bios directly from the storage medium independent of the bios, but the difference is mainly the storage location of the firmware of the bios.
In the system initialization method disclosed in this embodiment, when the system is started, the image file of the bios is acquired from the bmc, the image file is loaded into the system, and the initialization of the system is completed based on the image file, where the image file is stored in the storage unit of the bmc. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.
The embodiment discloses a system initialization method, a flowchart of which is shown in fig. 2, and the method includes:
step S21, when the system is started, two parts of the image file of the bios are sequentially obtained from the bmc, where the two parts at least include: the first part is used for initializing the system memory and the processor, and the second part except the first part in the image file;
step S22, loading the mirror image file into the system;
and step S23, completing the initialization of the system based on the image file, wherein the image file is stored in the storage unit of the baseboard management controller.
The image file of the basic input output system is stored in the baseboard management controller, and at this time, a separate storage medium of the basic input output system is not needed, but a storage unit is shared with the file stored in the baseboard management controller.
When the image file of the basic input output system is stored in the baseboard management controller, the image file of the basic input output system can be directly divided into two parts to be stored, namely a first part and a second part, namely, in the storage unit of the baseboard management controller, the image file of the basic input output system is stored and presented in the form of two parts, namely the first part and the second part. When the host acquires the image file from the storage unit of the baseboard management controller, the image file is acquired in two parts, namely, the first part of the image file is acquired first, and then the second part of the image file is acquired.
Alternatively, the following may be used: when the image file of the basic input and output system is stored in the baseboard management controller, the complete image file of the basic input and output system is directly and uniformly stored in the storage unit of the baseboard management controller, and when the host acquires the image file from the storage unit of the baseboard management controller, the complete image file of the basic input and output system is acquired in two parts in sequence, namely, the first part of the image file is acquired first, and then the second part of the image file is acquired. That is, in this case, the first part and the second part of the image file are distinguished only when the host acquires the image file, and when the baseboard management controller stores the image file, the first part and the second part are not distinguished but stored in a unified manner.
The first part is used for initializing a system memory and a processor and can be Boot Block and ACM, wherein Boot Block is an initial starting Block of BIOS and comprises a first instruction for initial Boot and other instruction sets, when a basic input and output system operates, Boot Block operates firstly, and the main task is that before the memory of a system host is initialized, the processor discovers and initializes the processor and most basic hardware by using a cache.
The first part of the image file is obtained by the system host from the baseboard management controller through the serial peripheral interface SPI.
And the second part of the image file is the part except the first part in the image file of the basic input and output system, and is used for realizing the part for initializing the system memory and the processor and then executing the initialization on the system.
The second part of the image file is acquired by the system host from the baseboard management controller through the universal bus PCIE.
Further, the second portion of the image file includes: the processor comprises a first sub-part and a second sub-part, wherein the first sub-part is used for initializing a register of the processor, and the second sub-part is used for initializing other functions and hardware of the processor.
The first sub-part is an mrc (memory Reference code) which is a memory initialization Reference code for initializing a host memory space so that the memory space can be correctly used by the system;
the second sub-part is Main BIOS, which can implement the Main functions of BIOS, and is used to initialize and identify other hardware and execute higher level host startup functions after the CPU and memory are initialized, such as: reading and writing BIOS configuration options, externally inserting card configuration, BIOS upgrading function maintenance and the like.
After the system host obtains the first portion of the image file, the first sub-portion and the second sub-portion may be obtained simultaneously, or the first sub-portion and the second sub-portion may be obtained sequentially.
Specifically, loading the image file into the system, and completing initialization of the system based on the image file may be: loading a first part of the image file into a processor of the system for execution, and determining a first sub-part of a second part of the image file, wherein the first sub-part is used for initializing registers in the processor of the system and the second sub-part is used for initializing other functions and hardware in the processor of the system except the registers; and loading the first subpart into a processor of the system for execution, loading the second subpart into a system memory for execution, and completing the initialization of the system.
That is, in the process of loading the image file into the host, the image file is loaded and initialized according to the sequence of the first part, the first sub-part and the second sub-part, so as to complete the initialization of the system.
Specifically, after the system is powered on, the baseboard management controller is started, and after the system obtains a start instruction, the system host obtains a first part in a storage unit of the baseboard management controller through the SPI interface, where the first part may include boot block and ACM, and initializes after loading is completed; after the initialization of the first part is completed, the second part can be loaded from the storage unit of the baseboard management controller through a faster interface, namely a PCIE interface, so as to achieve faster loading efficiency.
In the system initialization method disclosed in this embodiment, when the system is started, the image file of the bios is acquired from the bmc, the image file is loaded into the system, and the initialization of the system is completed based on the image file, where the image file is stored in the storage unit of the bmc. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.
The embodiment discloses a system initialization method, a flowchart of which is shown in fig. 3, and the method includes:
step S31, storing the mirror image file of the basic input and output system stored in the read only memory of the system to the storage unit of the baseboard management controller;
step S32, when the system is started, the mirror image file of the basic input and output system is obtained from the baseboard management controller;
step S33, loading the mirror image file into the system;
step S34, the initialization of the system is completed based on the image file, wherein the image file is stored in the storage unit of the baseboard management controller.
The image file of the basic input output system called when the system is started is acquired from the baseboard management controller, namely the image file of the basic input output system is acquired from the baseboard management controller when the system receives a starting instruction, and the image file of the basic input output system is stored in a storage unit of the baseboard management controller in advance before the system receives the starting instruction.
The storage unit of the baseboard management controller is a memory of the baseboard management controller BMC.
Before the system is started, the system is powered on, and after the system is powered on, the baseboard management controller in the system is started, namely, the baseboard management controller can be started as long as the system is powered on. After the bmc is started, the bmc may store the image file of the bios pre-stored in another location in the storage unit of the bmc, so that after the system is started, the host, that is, the processor of the system can directly obtain the image file of the bios from the storage unit of the bmc.
Or before the system is powered on, the image file of the basic input and output system is stored in the baseboard management controller in advance, and after the system is not powered on again, the image file is stored in the storage unit of the baseboard management controller.
The image of the bios may be stored in a rom of the system, or alternatively, in a server, before being stored in the bmc.
The image file of the basic input and output system is stored in a read-only memory of the system, namely, the image file of the basic input and output system is firstly stored in the local system, then, after the system is powered on, the baseboard management controller is started, and the baseboard management controller stores the image file stored in the local system into a storage unit of the baseboard management controller, namely, a memory of the baseboard management controller.
The read-only memory of the system can be an eMMc plugged in a baseboard management controller BMC.
In addition, the image file of the basic input output system is stored in the server, namely the image file of the basic input output system is stored on a firmware server which is remotely authenticated to be safe.
Specifically, if the image file of the basic input/output system is stored in the remote server or the local rom before the system is powered on, the baseboard management controller can randomly acquire the image file from the remote server or the local rom after the system is powered on, or the baseboard management controller first acquires the image file from the remote server, and if the baseboard management controller acquires the image file from the remote server, the baseboard management controller does not need to acquire the image file from the local rom; and if the substrate management controller does not acquire the image file from the remote server, acquiring the image file from the local read-only memory.
In addition, the NVRAM may be stored in a local rom, and is stored in the eMMc local to the system together with the image file of the bios, and when the system is powered on, the bmc boots up to obtain the image file of the bios from the remote server or the rom local to the system, and simultaneously needs to obtain the configuration file of the bios from the rom local to the system.
Whether the image file of the basic input output system acquired by the baseboard management controller is acquired from a remote server or is acquired locally, the configuration file of the basic input output system is acquired from a read-only memory local to the system, and only the read-only memory local to the system stores the configuration file of the basic input output system.
After the baseboard management controller is powered on, the baseboard management controller acquires the image file and the configuration file of the basic input and output system, and stores the acquired image file and the configuration file of the basic input and output system in a storage unit of the baseboard management controller.
When storing the image file and the configuration file of the basic input output system in the storage unit of the baseboard management controller, if the image file of the basic input output system is stored in two parts, namely a first part and a second part, the configuration file of the basic input output system and the first part of the image file are stored in one position of the storage unit of the baseboard management controller.
When the system host loads the image file of the basic input output system from the storage unit of the baseboard management controller, the first part of the image file is loaded first, and the configuration file of the basic input output system is loaded at the same time as the first part of the image file, so that the configuration file of the basic input output system and the first part of the image file are loaded into the system host first.
Further, the system initialization method disclosed in this embodiment further includes:
and if the update file of the basic input and output system is obtained, replacing the image file stored in the read-only memory and/or the server with the update file.
That is, if the bios is to be updated, the update file of the bios may be directly obtained, the update file is stored in the rom and/or the server in which the image file of the bios is stored, and the originally stored image file of the bios in the rom and/or the server is deleted, so that the update of the bios is implemented.
The method for initializing the system disclosed by the embodiment stores the image file of the basic input/output system into the substrate management controller, reduces the way of hardware storage media of the basic input/output system, and directly replaces the image file of the basic input/output system with the update file when the basic input/output system is updated.
Further, the system initialization method disclosed in this embodiment further includes:
and if the storage failure is monitored in the process of storing the mirror image file into the storage unit of the substrate management controller, outputting prompt information.
In the process of storing the mirror image file into the storage unit of the substrate management controller, storage failure can be caused if abnormal storage occurs, and at the moment, prompt information is output, so that managers can troubleshoot problems as soon as possible, and the problem that the system cannot be started in time is avoided.
In addition, after the image file is stored in the storage unit of the baseboard management controller, when the system host loads the image file from the storage unit of the baseboard management controller, the situation of loading failure may exist, at this moment, if the basic input and output system fails to start, prompt information is output, so that managers can troubleshoot problems as soon as possible, and the problem that the system cannot be started in time is avoided.
In addition, in this embodiment, the correctness and integrity of the BIOS may be sequentially verified by the BMC and Rot. The remote firmware management server can also perform safety control, so that the error update or malicious update of the BIOS firmware is avoided.
In the system initialization method disclosed in this embodiment, when the system is started, the image file of the bios is acquired from the bmc, the image file is loaded into the system, and the initialization of the system is completed based on the image file, where the image file is stored in the storage unit of the bmc. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.
The present embodiment discloses an initialization apparatus, a schematic structural diagram of which is shown in fig. 4, and the initialization apparatus includes:
an acquisition unit 41, a loading unit 42 and an initialization unit 43.
The obtaining unit 41 is configured to obtain an image file of a basic input/output system from a baseboard management controller when the system is started;
the loading unit 42 is used for loading the image file into the system;
the initialization unit 43 is used for completing the initialization of the system based on the image file;
the mirror image file is stored in a storage unit of the baseboard management controller.
Further, the obtaining unit is configured to: when the system is started, two parts of a mirror image file of a basic input and output system are sequentially acquired from a baseboard management controller;
the two parts at least comprise: the method is used for initializing a first part of a system memory and a processor and a second part except the first part in an image file.
Further, the acquiring unit sequentially acquires two parts of the image file of the bios from the bmc, including:
the acquisition unit acquires a first part of a mirror image file of a basic input and output system from the substrate management controller through the serial peripheral interface; a second portion of the image file of the basic input output system is obtained from the basic management controller via the universal bus.
Further, the loading unit loads the image file into the system, and the initialization unit completes initialization of the system based on the image file, including:
the loading unit loads a first part of the image file into a processor of the system for execution; determining a first sub-portion of the second portion of the image file for initializing registers in a processor of the system and a second sub-portion of the second portion of the image file for initializing functions and hardware in the processor of the system other than the registers; loading the first subsection into a processor of the system for execution; and loading the second sub-part into a system memory for execution, and completing the initialization of the system.
Further, the initialization apparatus disclosed in this embodiment may further include:
the storage unit is used for storing the mirror image file of the basic input and output system stored in the read only memory of the system to the storage unit of the baseboard management controller; or storing the image file of the basic input and output system stored by the server to the storage unit of the baseboard management controller.
Further, the initialization apparatus disclosed in this embodiment may further include:
and the updating unit is used for replacing the mirror image file stored in the read-only memory and/or the server with the update file if the update file of the basic input and output system is obtained.
Further, the initialization apparatus disclosed in this embodiment may further include:
and the prompting unit is used for monitoring storage failure and outputting prompting information if the mirror image file is stored in the storage unit of the substrate management controller.
The initialization apparatus disclosed in this embodiment is implemented based on the initialization method disclosed in the above embodiment, and is not described herein again.
In the initialization apparatus disclosed in this embodiment, when the system is started, the image file of the bios is acquired from the bmc, the image file is loaded into the system, and the initialization of the system is completed based on the image file, where the image file is stored in the storage unit of the bmc. According to the scheme, the image file of the basic input/output system is stored in the storage unit of the baseboard management controller, so that the system can be started by directly calling the image file of the basic input/output system stored in the storage unit of the baseboard management controller when the system is started, an independent chip of the basic input/output system is not required to be arranged, and the basic input/output system is convenient to maintain.
The embodiment discloses an electronic device, a schematic structural diagram of which is shown in fig. 5, and the electronic device includes:
a controller 51 and a memory 52.
The controller 51 is configured to obtain an image file of the bios from the bmc when the system is started, load the image file into the system, and complete initialization of the system based on the image file, where the image file is stored in a storage unit of the bmc;
the memory 52 is used to store programs for the processor to perform the above-described processing procedures.
The electronic device disclosed in this embodiment is implemented based on the initialization method disclosed in the above embodiment, and details are not described here.
In the electronic device disclosed in this embodiment, when the system is started, the image file of the bios is acquired from the baseboard management controller, the image file is loaded into the system, and initialization of the system is completed based on the image file, where the image file is stored in the storage unit of the baseboard management controller. According to the scheme, the image file of the basic input and output system is stored in the storage unit of the base plate management controller, so that the image file of the basic input and output system stored in the storage unit of the base plate management controller can be directly called to complete the starting of the system when the system is started, an independent chip of the basic input and output system does not need to be arranged, and the basic input and output system is convenient to maintain.
The embodiment of the present application further provides a readable storage medium, where a computer program is stored, and the computer program is loaded and executed by a processor to implement each step of the system initialization method, where a specific implementation process may refer to descriptions of corresponding parts in the foregoing embodiment, and details are not described in this embodiment.
The present application also proposes a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instruction from the computer-readable storage medium, and executes the computer instruction, so that the electronic device executes the methods provided in the various optional implementation manners in the aspect of the system initialization method or the aspect of the system initialization apparatus, and the specific implementation process may refer to the description of the corresponding embodiment, which is not described again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of system initialization, comprising:
when the system is started, acquiring a mirror image file of a basic input and output system from a baseboard management controller;
loading the image file into the system;
completing initialization of the system based on the image file;
the image file is stored in a storage unit of the baseboard management controller.
2. The method of claim 1, wherein obtaining an image file of a bios from a baseboard management controller at system startup comprises:
when the system is started, two parts of the mirror image file of the basic input and output system are sequentially obtained from the baseboard management controller;
the two parts at least comprise: the image file comprises a first part for initializing a system memory and a processor and a second part except the first part in the image file.
3. The method of claim 2, wherein said obtaining two portions of the bios image file from the baseboard management controller in sequence comprises:
acquiring a first part of an image file of the basic input and output system from the baseboard management controller through a serial peripheral interface;
and acquiring a second part of the image file of the basic input and output system from the basic management controller through a general bus.
4. The method of claim 2, wherein the loading the image file into the system, completing initialization of the system based on the image file, comprises:
loading a first part of the image file into a processor of the system for execution;
determining a first subsection of a second portion of the image file used to initialize registers in a processor of the system and a second subsection used to initialize functions and hardware in the processor of the system other than registers;
loading the first subsection into a processor of the system for execution;
and loading the second subpart into the system memory for execution, and finishing initialization of the system.
5. The method of claim 1, further comprising:
storing the image file of the basic input and output system stored in a read only memory of the system to a storage unit of the baseboard management controller;
or the like, or, alternatively,
and storing the mirror image file of the basic input and output system stored by the server to a storage unit of the baseboard management controller.
6. The method of claim 5, further comprising:
and if the update file of the basic input and output system is obtained, replacing the image file stored in the read-only memory and/or the server with the update file.
7. The method of claim 5, further comprising:
and if the storage failure is monitored in the process of storing the image file into the storage unit of the substrate management controller, outputting prompt information.
8. An initialization apparatus comprising:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring an image file of a basic input and output system from a baseboard management controller when the system is started;
the loading unit is used for loading the mirror image file into the system;
the initialization unit is used for completing initialization of the system based on the image file;
the image file is stored in a storage unit of the baseboard management controller.
9. An electronic device, comprising:
the controller is used for acquiring an image file of a basic input and output system from a baseboard management controller when the system is started, loading the image file into the system, and finishing initialization of the system based on the image file, wherein the image file is stored in a storage unit of the baseboard management controller;
and the memory is used for storing the program of the processor for executing the processing procedure.
10. A readable storage medium storing at least one set of instructions;
the set of instructions is for being called and for performing at least a method of system initialization according to any one of claims 1-7.
CN202210181494.2A 2022-02-25 2022-02-25 System initialization method and device and electronic equipment Pending CN114546507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210181494.2A CN114546507A (en) 2022-02-25 2022-02-25 System initialization method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210181494.2A CN114546507A (en) 2022-02-25 2022-02-25 System initialization method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114546507A true CN114546507A (en) 2022-05-27

Family

ID=81679404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210181494.2A Pending CN114546507A (en) 2022-02-25 2022-02-25 System initialization method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114546507A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136703A1 (en) * 2004-12-14 2006-06-22 Wisecup George D Apparatus and method for booting a system
CN103365696A (en) * 2013-08-01 2013-10-23 华为技术有限公司 BIOS (Basic Input Output System) image file obtaining method and device
CN106990958A (en) * 2017-03-17 2017-07-28 联想(北京)有限公司 A kind of extension element, electronic equipment and startup method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136703A1 (en) * 2004-12-14 2006-06-22 Wisecup George D Apparatus and method for booting a system
CN103365696A (en) * 2013-08-01 2013-10-23 华为技术有限公司 BIOS (Basic Input Output System) image file obtaining method and device
CN106990958A (en) * 2017-03-17 2017-07-28 联想(北京)有限公司 A kind of extension element, electronic equipment and startup method

Similar Documents

Publication Publication Date Title
US7734945B1 (en) Automated recovery of unbootable systems
TWI384367B (en) System of updating firmware and method thereof
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
US9959125B2 (en) Field update of boot loader using regular device firmware update procedure
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
WO2016206514A1 (en) Startup processing method and device
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN113238790B (en) Firmware program updating method and system based on SD card and EEPROM
CN116932010B (en) System firmware upgrading method, device and server
CN109032636A (en) A method of UEFI firmware is updated based on encryption certification BMC
CN115113905A (en) Firmware upgrading method and firmware upgrading device
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN114265603A (en) System upgrading method and device based on asymmetric partition and electronic equipment
CN106484442B (en) Server system and method for updating startup mapping file
CN115437674B (en) Firmware upgrading method, device, medium and electronic equipment
CN117215656A (en) Linux system-based self-adaptive vehicle chip method and device, electronic equipment and vehicle
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN114546507A (en) System initialization method and device and electronic equipment
CN115658152A (en) Firmware upgrading method, firmware, electronic device and computer readable storage medium
CN115827069A (en) Starting control method, system and device for server mainboard
TWI777664B (en) Booting method of embedded system
CN114237722A (en) System starting method, device, equipment and engineering vehicle
CN115168146A (en) Anomaly detection method and device
CN104834574B (en) A kind of method and device solving system partitioning damage

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