CN109408122A - A kind of equipment starting method, electronic equipment and computer storage medium - Google Patents
A kind of equipment starting method, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN109408122A CN109408122A CN201811141335.XA CN201811141335A CN109408122A CN 109408122 A CN109408122 A CN 109408122A CN 201811141335 A CN201811141335 A CN 201811141335A CN 109408122 A CN109408122 A CN 109408122A
- Authority
- CN
- China
- Prior art keywords
- memory
- data
- starting
- setting information
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 230000015654 memory Effects 0.000 claims abstract description 251
- 230000006870 function Effects 0.000 claims abstract description 32
- 230000002085 persistent effect Effects 0.000 claims description 13
- 238000004891 communication Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 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
-
- 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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
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 embodiment of the invention discloses a kind of equipment starting methods, which comprises the enabled instruction based on the hardware device for starting electronic equipment obtains the corresponding target data of the hardware device from the first memory of the electronic equipment;Wherein, the first memory has the function of non-volatile memories;The target data includes below one or more: log-on data, setting information and driving data;Based on the target data, start the hardware device of the electronic equipment.The embodiment of the present invention constantly also discloses a kind of electronic equipment and computer storage medium.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an apparatus starting method, an electronic apparatus, and a computer storage medium.
Background
With the rapid development of electronic technology, the requirement of users on the starting speed of electronic equipment becomes stricter and stricter. Currently, the mainstream electronic device starting technology is mainly implemented based on a Basic Input Output System (BIOS) or a Unified Extensible Firmware Interface (UEFI).
However, when the electronic device is restarted each time, data stored in a Read-Only Memory (ROM) needs to be copied to a Random Access Memory (RAM) for execution in the starting process of the UEFI, and hardware in the electronic device is initialized one by one; such a starting method is time-consuming and seriously affects the working efficiency of the electronic device.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention desirably provide an apparatus starting method, an electronic apparatus, and a computer storage medium, which solve the problem in the prior art that an apparatus starting speed is slow.
The technical scheme of the invention is realized as follows:
a device booting method, the method comprising:
acquiring target data corresponding to a hardware device from a first memory of the electronic device based on a starting instruction for starting the hardware device of the electronic device; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data;
starting the hardware device of the electronic device based on the target data.
An electronic device, the electronic device comprising at least: an acquisition unit and a processing unit; wherein,
the acquiring unit is used for acquiring target data corresponding to a hardware device from a first memory of the electronic device based on a starting instruction for starting the hardware device of the electronic device; wherein the first memory has a non-volatile storage function; the target data at least comprises starting data, setting information and driving data;
the processing unit is configured to start the hardware device of the electronic device based on the start data, the setting information, and the driving data.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a device boot program stored in the memory to implement the steps of:
based on a start instruction for starting a hardware device of the electronic device; acquiring target data corresponding to the hardware equipment from a first memory of the electronic equipment; wherein the first memory has a non-volatile storage function; the target data at least comprises starting data, setting information and driving data;
starting the hardware device of the electronic device based on the start data, the setting information, and the driving data.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of a device booting method as aforementioned
First, based on a start instruction for starting a hardware device of an electronic device, target data corresponding to the hardware device is acquired from a first memory of the electronic device; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data; starting the hardware device of the electronic device based on the target data. Therefore, the target data is stored in the first memory with the nonvolatile function, and when the electronic equipment is restarted, the target data is directly taken out of the first memory, so that the problem that the target data needs to be copied from the ROM once when the electronic equipment is restarted in the prior art is solved, the time consumed by starting is reduced, and the working efficiency of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flowchart of an apparatus startup method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another apparatus starting method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another apparatus starting method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an apparatus startup method according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a UEFI starting process according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating the implementation of PEI according to an embodiment of the present invention;
FIG. 7 is a flow chart illustrating a DXE execution according to an embodiment of the present invention
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides an apparatus starting method, which is shown in fig. 1 and includes the following steps:
step 101, acquiring target data corresponding to a hardware device from a first memory of the electronic device based on a starting instruction for starting the hardware device of the electronic device.
Wherein the first memory has a nonvolatile storage function; the target data includes one or more of: start-up data, setting information and drive data.
In other embodiments of the present invention, the step 101 may be implemented by the electronic device, based on a start instruction for starting a hardware device of the electronic device, to acquire target data corresponding to the hardware device from a first memory of the electronic device; the electronic device may be an electronic device capable of installing an operating system or application software. In practical applications, the electronic device is preferably any type of server device. In the above scheme, the hardware device is a generic term referring to various physical devices composed of electronic, mechanical, and optoelectronic components in a computer system; the hardware equipment comprises equipment such as a CPU, a hard disk, a display card and the like.
In other embodiments of the present invention, the first memory has a nonvolatile function; it is understood that the first memory can still store the data of the internal memory after the electronic device is powered off, and the stored content of the first memory does not change according to the external environment. Preferably, the first memory further has a high-speed read-write characteristic, and the delay time of the first memory is in the order of nanoseconds, so that the time for starting the hardware device of the electronic device can be effectively shortened. In addition, the startup data in the above scheme refers to a program required to start up hardware devices in the electronic device, such as a program for initializing internal resources of the CPU and a program for initializing external hardware devices; the setting information may refer to hardware configuration data of the current system, for example, the setting information is to initialize a hard disk in the order from D disk to C disk to E disk; the drive data means a special program that can cause the CPU to communicate with an external device; it is understood to be a hardware interface through which the operating system can control the operation of the hardware device.
In other embodiments of the present invention, before performing step 101, the operation mode of the first memory needs to be set to the preset operation mode. The preset working mode is a mode with persistent storage. It should be noted that the first memory has multiple operation modes, and can perform different storage functions.
And 102, starting the hardware equipment of the electronic equipment based on the target data.
Wherein step 102 is implemented by an electronic device, based on the target data, the hardware device that starts the electronic device. Here, the electronic apparatus executes the startup data and the drive data in accordance with the setting information after acquiring the target data.
The device starting method provided by the embodiment of the invention comprises the steps of firstly, acquiring target data corresponding to hardware equipment from a first memory of the electronic equipment based on a starting instruction for starting the hardware equipment of the electronic equipment; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data; starting the hardware device of the electronic device based on the target data. Therefore, the target data is stored in the first memory with the nonvolatile function, and when the electronic equipment is restarted, the target data is directly taken out of the first memory, so that the problem that the target data needs to be copied from the ROM once when the electronic equipment is restarted in the prior art is solved, the time consumed by starting is reduced, and the working efficiency of the electronic equipment is improved.
Based on the foregoing embodiment, the present invention further provides an apparatus starting method, which, as shown in fig. 2, includes the following steps:
step 201, the electronic device acquires target data corresponding to a hardware device from a first memory of the electronic device based on a start instruction for starting the hardware device of the electronic device.
Wherein the first memory has a non-volatile storage function; the target data includes one or more of: start-up data, setting information and drive data.
In other embodiments of the present invention, the first memory is preferably an Apache channel (AEP) device. Here, the AEP device is a storage device having non-volatility and high-speed read-write characteristics; it is understood that the data stored internally by the AEP device is not lost after power is removed. All data required for starting the hardware device, including start data, setting information, drive data, and the like, can be stored in the AEP device.
Step 202, if the target data is not stored in the first memory, the electronic device obtains the start data and the driving data from the second memory, and stores the start data and the driving data in the first memory.
Wherein the second memory does not have a non-volatile storage function.
In other embodiments of the present invention, the second Memory may be a Read-Only Memory (ROM); the data stored in the ROM is pre-stored data, and the data cannot be changed or deleted once being stored in the ROM; therefore, the ROM usually stores data unique to the electronic device, such as startup data, drive data, and the like. Since the ROM cannot be rewritten, the electronic device needs to copy boot data and drive data from the ROM into a Random Access Memory (RAM) for reading and writing and executing at the time of booting. However, the RAM loses its stored contents when the electronic device is powered off, and therefore, the electronic device needs to copy the boot data and the driving data every time the electronic device is booted, which reduces the booting speed of the electronic device.
In this embodiment, when the electronic device is started, first, target data is acquired from the first memory; if the first memory stores the target data, directly acquiring the target data from the first memory for execution; if the electronic device detects that the target data is not stored in the first storage, the electronic device needs to copy the starting data and the driving data in the target data from the ROM to the first storage for execution. It is worth noting that the electronic device copies the starting data and the driving data from the second memory to the first memory for execution, and the first memory can store the starting data and the driving data, so that the electronic device can directly read the starting data and the driving data from the first memory in the subsequent starting process, and the starting speed is improved.
And step 203, the electronic equipment acquires the setting information from the third memory and stores the setting information in the first memory.
In other embodiments of the present invention, the third memory may be a Complementary Metal Oxide Semiconductor (COMS) memory; in another embodiment, the third Memory may also be a Non-Volatile Random Access Memory (NVRAM). In practical applications, the third memory is generally used to store the hardware configuration data of the current system, i.e. the setting information mentioned above.
In this embodiment, the electronic device first obtains the setting information from the first memory each time the electronic device is started, and if the setting information exists in the first memory, the electronic device directly reads the setting information, and if the setting information is not stored in the first memory, the electronic device copies the setting information from the third memory to the first memory. It is worth noting that the first memory can store the setting information while the electronic device copies the setting information from the third memory to the first memory for execution, so that the electronic device can directly read the setting information from the first memory in the subsequent starting process, and the starting speed is improved.
Step 204, the electronic device obtains the starting data, the setting information and the driving data from the first memory.
Specifically, after steps 202 and 203 are executed, the first memory stores therein start-up data, setting information, and driving data; the electronic equipment only needs to acquire the starting data, the setting information and the driving data from the first memory; in this way, the electronic device only needs to copy the starting data and the driving data from the second memory to the first memory and copy the setting information from the third memory to the first memory at the time of initial starting; therefore, the electronic equipment only needs to directly read the target data from the first equipment in each subsequent starting, and the hardware starting speed of the electronic equipment can be effectively improved.
Step 205, the electronic device starts the hardware device of the electronic device based on the start data, the setting information and the driving data.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The device starting method provided by the embodiment of the invention comprises the steps of firstly, acquiring target data corresponding to hardware equipment from a first memory of the electronic equipment based on a starting instruction for starting the hardware equipment of the electronic equipment; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data; starting the hardware device of the electronic device based on the target data. Therefore, the target data is stored in the first memory with the nonvolatile function, and when the electronic equipment is restarted, the target data is directly taken out of the first memory, so that the problem that the target data needs to be copied from the ROM once when the electronic equipment is restarted in the prior art is solved, the time consumed by starting is reduced, and the working efficiency of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an apparatus starting method, which is shown in fig. 3 and includes the following steps:
step 301, the electronic device obtains target data corresponding to the hardware device from a first memory of the electronic device based on a start instruction for starting the hardware device of the electronic device.
Step 302, if the target data is not stored in the first memory, the electronic device obtains the start data and the driving data from the second memory, and stores the start data in the first memory and the fourth memory.
Wherein the fourth memory is different from the first and second memories.
In other embodiments of the present invention, the fourth memory may be a RAM; here, if the electronic device detects that the target data is not stored in the first memory, the electronic device may directly copy the boot data and the driving data stored in the second memory (i.e., ROM) to the fourth memory (i.e., RAM) for execution; in the process of copying the start data and the drive data to the fourth memory, the electronic device simultaneously copies the data to the first memory. It is understood that, in the case that the hardware device is started for the first time or the target data is not stored in the first memory, the electronic device copies the target data from the ROM into the RAM to start the hardware device, and simultaneously copies the target data into the AEP device to store the target data.
Step 303, the electronic device obtains the setting information from a third memory, and stores the setting information in the first memory and the fourth memory.
Wherein the fourth memory is different from the third memory; the second memory and the fourth memory do not have a nonvolatile storage function.
In other embodiments of the present invention, the electronic device obtains the setting information from a third memory, and saves the setting information to the first memory and the fourth memory; it is understood that the electronic device copies the setting information from the cmos chip to the RAM for execution, and at the same time, copies the setting information to the AEP.
Step 304, the electronic device obtains the startup data, the setting information and the driving data from the fourth memory.
Specifically, after the electronic device goes through steps 302 and 303, the first memory and the fourth memory already store target data required for starting the hardware device; therefore, when the hardware equipment is started next time, the electronic equipment does not need the process of copying the target data from the ROM, but the electronic equipment directly reads the corresponding data from the AEP and directly executes the corresponding data.
And 305, starting the hardware equipment of the electronic equipment by the electronic equipment based on the target data.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The device starting method provided by the embodiment of the invention comprises the steps of firstly, acquiring target data corresponding to hardware equipment from a first memory of the electronic equipment based on a starting instruction for starting the hardware equipment of the electronic equipment; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data; starting the hardware device of the electronic device based on the target data. Therefore, the target data is stored in the first memory with the nonvolatile function, and when the electronic equipment is restarted, the target data is directly taken out of the first memory, so that the problem that the target data needs to be copied from the ROM once when the electronic equipment is restarted in the prior art is solved, the time consumed by starting is reduced, and the working efficiency of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an apparatus starting method, which is shown in fig. 4 and includes the following steps:
step 401, the electronic device obtains, based on a start instruction for starting a hardware device of the electronic device, start data and setting information in target data from a first memory at a first stage in a Unified Extensible Firmware Interface (UEFI) start process.
Wherein the first phase is used to indicate the initialization phase of UEFI.
In other embodiments of the present invention, the hardware device comprises a unified extensible firmware interface, UEFI; the hardware starting process is the UEFI starting process. Generally, as shown in fig. 5, the UEFI start-up process has seven stages, including: a Security Phase (SEC) Phase, a Pre-EFI initialization (PEI) Phase, a Driver Execution Environment (DXE) Phase, a Boot Device Selection (BDS) Phase, an operating System Load (TSL) Phase, a Run Time (Run Time) Phase, and an disaster recovery (After Life) Phase.
In other embodiments of the present invention, the first phase in step 401 is referred to as the PEI phase of the UEFI startup process; here, the phase prepares an execution environment for the DXE phase, composes a handover Block (HOB) list of information to be passed to the DXE phase, and finally passes control to the DXE phase. Functionally, PEI can be divided into two parts: the PEI kernel is responsible for PEI basic services and processes; the PEIM dispatcher finds out all PEIMs in the system.
The PEI execution flow is shown in FIG. 6 and includes PEI entry, initializing PEI Core Service (Core Service), scheduling PEI Modules (PEI Modules, PEIMs) in the system, preparing HOB lists, and entering DXE entry. In the PEI module stage of the dispatching system, the electronic equipment can also complete the initialization of the relevant functions of the CPU PEIM, the initialization of the relevant functions of the PEIM platform and the initialization of the memory; the memory initialization includes initialization of a normal RAM.
In this embodiment, after normal RAM initialization, first memory (i.e., AEP device) initialization is performed. Specifically, the electronic device first detects whether the persistent storage area of the AEP has boot data and configuration information stored therein. When the persistent storage area of the AEP has the above-mentioned startup data and setting information, the startup data and setting information are acquired from the AEP.
Additionally, prior to performing step 401, the operational mode of at least one AEP may be set to a mode with persistent storage, such as an App Direct (App Direct) mode.
And step 402, the electronic device acquires the driving data in the target data from the first memory at a second stage in the UEFI starting process.
Wherein the second phase is used for indicating a drive data loading phase of the UEFI; the second stage is performed after the first stage.
Here, the second phase in step 402 refers to the DXE phase of the UEFI boot process. The DXE phase performs most of the system initialization work, and this phase can perform a lot of complex work. The execution flow is shown in fig. 7, and includes: DXE entry, initializing system services according to HOB list, scheduling drivers (drivers) in the system, and entry into BDS entry. The drivers in the scheduling system include all drivers in the traversal firmware, when the resources on which the drivers depend are all satisfied, whether the first memory (i.e., the AEP device) stores the driving data is determined, and when the AEP device stores the driving data, the driving data is directly read from the AEP.
In step 403, the electronic device starts the hardware device of the electronic device based on the start data, the setting information and the driving data.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
In the scheme, the electronic equipment can directly read the data required by UEFI starting in the AEP equipment, reduce the copying times of target data and further improve the UEFI initialization speed; UEFI initialization speed is improved by directly reading UEFI setting information from AEP; and the UEFI initialization speed is improved by reducing the initialization operation of the peripheral.
Based on the foregoing embodiments, an embodiment of the present invention provides an apparatus starting method, as shown in fig. 8, the method includes the following steps:
step 801, the electronic device judges whether target data is stored in the first memory at a first stage in the UEFI starting process based on a starting instruction for starting a hardware device of the electronic device.
And step 802, if the target data is not stored in the first memory, the electronic device acquires the starting data from the second memory at a first stage in the UEFI starting process, and stores the starting data in the first memory.
Specifically, as shown in fig. 6, in the AEP initialization process in the PEI phase, when it is determined that the persistent storage area of the AEP device does not store the setting information and the start data, the electronic device opens up a space in the persistent storage area of the AEP device, and can acquire the start data from the second memory (i.e., ROM) and store the start data into the space opened up by the AEP.
In other embodiments of the present invention, step 802 may further be: and at the first stage in the UEFI starting process, acquiring the starting data from the second memory and storing the starting data into the first memory and the fourth memory.
Specifically, the fourth memory is a RAM. When the electronic device detects that target data is not stored in the AEP in the initialization process of the AEP in the PEI phase, the electronic device can copy starting data in the ROM and simultaneously store the starting data in the RAM and the AEP.
And step 803, the electronic device acquires the setting information from the third memory and stores the setting information in the first memory.
Here, based on the above steps, in the AEP initialization process in the PEI phase, when it is determined that the persistent storage area of the AEP device does not store the setting information and the start-up data, the electronic device may acquire the setting information from the third memory (i.e., COMS or NVRAM) and copy the setting information into the AEP persistent storage area.
In other embodiments of the present invention, step 803 may also be: and acquiring the setting information from the third memory, and saving the setting information to the first memory and the fourth memory.
Specifically, in the AEP initialization process in the PEI phase, when detecting that the setting information is not saved in the AEP, the electronic device may copy the setting information in the COMS and save the setting information in the RAM and the AEP at the same time.
And step 804, the electronic device acquires the driving data from the second memory at a second stage in the UEFI starting process, and stores the driving data in the first memory.
Specifically, as shown in fig. 7, in the process of detecting whether the drive data exists in the DXE phase, when it is determined that the persistent storage area of the AEP device does not store the drive data, the electronic device creates a space in the persistent storage area of the AEP device, acquires the drive data from the second memory (i.e., ROM), and stores the drive data in the persistent storage area of the AEP device.
In addition, step 804 may further be: and at the second stage in the UEFI starting process, acquiring the driving data from the second memory and storing the driving data into the first memory and the fourth memory.
Specifically, in the process of detecting whether the drive data exists in the DXE phase, when detecting that the drive data is not saved in the AEP, the electronic device may copy the drive data in the ROM and save the drive data in the RAM and the AEP at the same time.
Step 805, the electronic device obtains the startup data, the setting information and the driving data from the first memory.
Step 806, the electronic device starts the hardware device of the electronic device based on the start data, the setting information and the driving data.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
In the scheme, the electronic equipment can directly read the data required by UEFI starting in the AEP equipment, reduce the copying times of target data and further improve the UEFI initialization speed; UEFI initialization speed is improved by directly reading UEFI setting information from AEP; and the UEFI initialization speed is improved by reducing the initialization operation of the peripheral.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 9, where the electronic device 9 includes: an acquisition unit 91 and a processing unit 92;
the acquiring unit 91 is configured to acquire, based on a start instruction for starting a hardware device of the electronic device, target data corresponding to the hardware device from a first memory of the electronic device; wherein the first memory has a nonvolatile storage function; the target data at least comprises starting data, setting information and driving data;
the processing unit 92 is configured to start a hardware device of the electronic device based on the start data, the setting information, and the driving data.
In another embodiment of the present invention, the obtaining unit 91 is specifically configured to, if the target data is not stored in the first memory, obtain the start data and the driving data from the second memory, and store the start data and the driving data in the first memory; wherein the second memory does not have a non-volatile storage function; acquiring the setting information from the third memory and storing the setting information in the first memory; the startup data, the setting information, and the drive data are acquired from the first memory.
In another embodiment of the present invention, the obtaining unit 91 is further specifically configured to, if the target data is not stored in the first memory, obtain the start data and the driving data from the second memory, and store the start data in the first memory and the fourth memory; wherein the fourth memory is different from the first memory and the second memory; acquiring the setting information from the third memory, and storing the setting information in the first memory and the fourth memory; wherein the fourth memory is different from the third memory; the second memory and the fourth memory do not have a nonvolatile storage function; the startup data, the setting information, and the drive data are acquired from the fourth memory.
In other embodiments of the present invention, the hardware device comprises a unified extensible firmware interface, UEFI;
the obtaining unit 91 is configured to obtain, at a first stage in the UEFI starting process, starting data and setting information in the target data from the first memory; the first stage is used for indicating an initialization stage of UEFI; at the second stage in the UEFI starting process, acquiring driving data in the target data from the first memory; the second stage is used for indicating a drive data loading stage of UEFI; the second stage is performed after the first stage.
In other embodiments of the present invention, the obtaining unit 91 is specifically configured to, at a first stage in the UEFI starting process, obtain the starting data from the second memory, and store the starting data in the first memory; acquiring the setting information from the third memory and storing the setting information in the first memory; and at the second stage in the UEFI starting process, acquiring the driving data from the second memory and storing the driving data into the first memory.
In other embodiments of the present invention, the obtaining unit 91 is further configured to, at a first stage in the UEFI starting process, obtain the starting data from the second memory, and store the starting data in the first memory and the fourth memory; acquiring the setting information from the third memory, and storing the setting information in the first memory and the fourth memory; and at the second stage in the UEFI starting process, acquiring the driving data from the second memory and storing the driving data into the first memory and the fourth memory.
In other embodiments of the present invention, the processing unit 92 is further configured to set the working mode of the first memory to a preset working mode; the preset working mode is a mode with persistent storage.
Based on the hardware implementation of each unit in the electronic device, in order to implement the device booting method provided in the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 10, where an electronic device 10 (the electronic device 10 in fig. 10 corresponds to the electronic device 9 in fig. 9) includes: a processor 1001 and a memory 1002 configured to store a computer program capable of running on the processor,
wherein the processor 1001 is configured to execute the steps of the aforementioned method embodiments when running the computer program.
Of course, in actual practice, as shown in FIG. 10, the various components of the electronic device 10 are coupled together by a bus system 1003. It will be appreciated that the bus system 1003 is used to enable communications among these components. The bus system 1003 includes a power bus, a control bus, and a status signal bus, in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 1003 in figure 10.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 1002, comprising a computer program, which is executable by a processor 1001 of the electronic device 10 to perform the steps described in the foregoing method embodiments. The computer-readable storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a flash Memory (FlashMemory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM).
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. A device booting method, the method comprising:
acquiring target data corresponding to a hardware device from a first memory of the electronic device based on a starting instruction for starting the hardware device of the electronic device; wherein the first memory has a non-volatile storage function; the target data includes one or more of: start data, setting information and drive data;
starting the hardware device of the electronic device based on the target data.
2. The method of claim 1, wherein the obtaining target data corresponding to the hardware device from the first memory of the electronic device comprises:
if the target data is not stored in the first memory, acquiring the starting data and the driving data from a second memory, and storing the starting data and the driving data into the first memory; wherein the second memory does not have a non-volatile storage function;
acquiring the setting information from a third memory and storing the setting information into the first memory;
the startup data, the setting information, and the drive data are acquired from the first memory.
3. The method of claim 1, wherein the obtaining target data corresponding to the hardware device from the first memory of the electronic device further comprises:
if the target data is not stored in the first memory, acquiring the starting data and the driving data from a second memory, and storing the starting data into the first memory and a fourth memory; wherein the fourth memory is different from the first and second memories;
acquiring the setting information from a third memory and saving the setting information to the first memory and the fourth memory; wherein the fourth memory is different from the third memory; the second memory and the fourth memory do not have a nonvolatile storage function;
the startup data, the setting information, and the drive data are acquired from the fourth memory.
4. The method of claim 1, wherein the hardware device comprises a Unified Extensible Firmware Interface (UEFI), and wherein the obtaining target data corresponding to the hardware device from the first memory of the electronic device comprises:
at a first stage in the UEFI starting process, starting data and setting information in target data are acquired from the first memory; wherein the first stage is used for indicating an initialization stage of the UEFI;
at the second stage in the UEFI starting process, acquiring driving data in the target data from the first memory; wherein the second phase is used for indicating a drive data loading phase of the UEFI; the second stage is performed after the first stage.
5. The method of claim 2, wherein the hardware device comprises a UEFI, and wherein if the target data is not stored in the first memory, retrieving the boot data and the driver data from a second memory and saving the boot data and the driver data to the first memory, retrieving the setting information from a third memory and saving the setting information to the first memory comprises:
at the first stage in the UEFI starting process, acquiring the starting data from the second memory and storing the starting data into the first memory;
acquiring the setting information from the third memory and storing the setting information in the first memory;
and at the second stage in the UEFI starting process, acquiring the driving data from the second memory and storing the driving data into the first memory.
6. The method of claim 3, wherein the hardware device comprises a UEFI, and wherein if the target data is not stored in the first memory, retrieving the boot data and the driver data from a second memory and saving the boot data to the first memory and a fourth memory, retrieving the setting information from a third memory and saving the setting information to the first memory and the fourth memory comprises:
at the first stage in the UEFI starting process, acquiring the starting data from the second memory and storing the starting data into the first memory and the fourth memory;
acquiring the setting information from the third memory and saving the setting information to the first memory and the fourth memory;
and at the second stage in the UEFI starting process, acquiring the driving data from the second memory and storing the driving data into the first memory and the fourth memory.
7. The method according to claims 1 to 6, wherein before the obtaining, based on a start instruction for starting a hardware device of an electronic device, target data corresponding to the hardware device from a first memory of the electronic device, further comprises:
setting the working mode of the first memory to be a preset working mode; wherein the preset working mode is a mode with persistent storage.
8. An electronic device, characterized in that the electronic device comprises at least: an acquisition unit and a processing unit; wherein,
the acquiring unit is used for acquiring target data corresponding to a hardware device from a first memory of the electronic device based on a starting instruction for starting the hardware device of the electronic device; wherein the first memory has a non-volatile storage function; the target data at least comprises starting data, setting information and driving data;
the processing unit is configured to start the hardware device of the electronic device based on the start data, the setting information, and the driving data.
9. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a device boot program stored in the memory to implement the steps of:
based on a start instruction for starting a hardware device of the electronic device; acquiring target data corresponding to the hardware equipment from a first memory of the electronic equipment; wherein the first memory has a non-volatile storage function; the target data at least comprises starting data, setting information and driving data;
starting the hardware device of the electronic device based on the start data, the setting information, and the driving data.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the device boot method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811141335.XA CN109408122B (en) | 2018-09-28 | 2018-09-28 | Equipment starting method, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811141335.XA CN109408122B (en) | 2018-09-28 | 2018-09-28 | Equipment starting method, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109408122A true CN109408122A (en) | 2019-03-01 |
CN109408122B CN109408122B (en) | 2021-05-18 |
Family
ID=65465526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811141335.XA Active CN109408122B (en) | 2018-09-28 | 2018-09-28 | Equipment starting method, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408122B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297674A (en) * | 2019-06-28 | 2019-10-01 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN110716697A (en) * | 2019-09-29 | 2020-01-21 | 联想(北京)有限公司 | Information processing method and equipment |
CN111078469A (en) * | 2019-12-03 | 2020-04-28 | 联想(北京)有限公司 | Data processing method and data processing equipment |
CN111142955A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Information processing method and device |
CN111309652A (en) * | 2020-02-21 | 2020-06-19 | 深圳震有科技股份有限公司 | Host message sending method, system on chip and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0464988A2 (en) * | 1990-06-25 | 1992-01-08 | International Business Machines Corporation | Personal Computer system |
CN1497443A (en) * | 2002-10-09 | 2004-05-19 | 松下电器产业株式会社 | Arithmetic device of shortening start tme and data loading method |
CN1520549A (en) * | 2001-06-27 | 2004-08-11 | 英特尔公司 | System boot time reducton method |
CN104679503A (en) * | 2013-11-28 | 2015-06-03 | 京瓷办公信息系统株式会社 | Electronic device and boot method for electronic device |
CN106095439A (en) * | 2016-06-12 | 2016-11-09 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
-
2018
- 2018-09-28 CN CN201811141335.XA patent/CN109408122B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0464988A2 (en) * | 1990-06-25 | 1992-01-08 | International Business Machines Corporation | Personal Computer system |
CN1520549A (en) * | 2001-06-27 | 2004-08-11 | 英特尔公司 | System boot time reducton method |
CN1497443A (en) * | 2002-10-09 | 2004-05-19 | 松下电器产业株式会社 | Arithmetic device of shortening start tme and data loading method |
CN104679503A (en) * | 2013-11-28 | 2015-06-03 | 京瓷办公信息系统株式会社 | Electronic device and boot method for electronic device |
CN106095439A (en) * | 2016-06-12 | 2016-11-09 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
Non-Patent Citations (2)
Title |
---|
HTTP://WWW.TUDOUPE.COM: "[BIOS设置]win10最快启动方式设置", 《HTTP://WWW.TUDOUPE.COM/HELP/SZJC/20153920.HTML》 * |
VLADIMIR BASHUN;ANTON SERGEEV;VICTOR MINCHENKOV;ALEXANDR YAKOVLE: "Too young to be secure: Analysis of UEFI threats and vulnerabilities", 《14TH CONFERENCE OF OPEN INNOVATION ASSOCIATION FRUCT》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297674A (en) * | 2019-06-28 | 2019-10-01 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN110716697A (en) * | 2019-09-29 | 2020-01-21 | 联想(北京)有限公司 | Information processing method and equipment |
CN111078469A (en) * | 2019-12-03 | 2020-04-28 | 联想(北京)有限公司 | Data processing method and data processing equipment |
CN111142955A (en) * | 2019-12-31 | 2020-05-12 | 联想(北京)有限公司 | Information processing method and device |
CN111309652A (en) * | 2020-02-21 | 2020-06-19 | 深圳震有科技股份有限公司 | Host message sending method, system on chip and storage medium |
CN111309652B (en) * | 2020-02-21 | 2021-05-25 | 深圳震有科技股份有限公司 | Host message sending method, system on chip and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109408122B (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109408122B (en) | Equipment starting method, electronic equipment and computer storage medium | |
CN109478135B (en) | Computer system and method for rebooting a computer system | |
US5269022A (en) | Method and apparatus for booting a computer system by restoring the main memory from a backup memory | |
CN106990958B (en) | Expansion assembly, electronic equipment and starting method | |
US8751783B2 (en) | Booting computing devices with EFI aware operating systems | |
US11550593B2 (en) | Information handling system quick boot | |
CN104123153A (en) | Apparatus and method for firmware upgrade using USB | |
KR20070039841A (en) | Digital tv and upgrade method of bootloader for the same | |
TWI450090B (en) | Method and system of changing a startup list of programs to determine whether computer system performance increases | |
US20190303172A1 (en) | Information processing apparatus, device assignment method, and computer readable medium | |
CN116737244A (en) | Method and device for starting multiple hardware domains of chip | |
EP2645239A1 (en) | Electronic apparatus and booting method | |
US10491736B2 (en) | Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS | |
CN116414472A (en) | Method, system, equipment and storage medium for starting up server rapidly | |
US20120144182A1 (en) | Apparatus and method for fast booting based on virtualization technique | |
US9223697B2 (en) | Computer reprogramming method, data storage medium and motor vehicle computer | |
US9852028B2 (en) | Managing a computing system crash | |
CN110688235A (en) | System and method for sharing wireless connection information between UEFI firmware and OS | |
CN110286953B (en) | Method and device for starting embedded system, embedded device and storage medium | |
CN110134456B (en) | Method, apparatus, device and storage medium for managing operating system | |
CN116880877A (en) | Virtual machine enhancement tool upgrading method and device, computer equipment and storage medium | |
WO2008048581A1 (en) | A processing device operation initialization system | |
CN116107673A (en) | Screen adaptation method, vehicle-mounted terminal and computer storage medium | |
KR101420026B1 (en) | A method, apparatus and computer program for loading files during a boot-up process | |
CN114385255B (en) | POS machine control method, POS machine control system, POS machine control device and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |