CN107391120A - One kind starts control method, electronic equipment and computer-readable recording medium - Google Patents

One kind starts control method, electronic equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107391120A
CN107391120A CN201710525017.2A CN201710525017A CN107391120A CN 107391120 A CN107391120 A CN 107391120A CN 201710525017 A CN201710525017 A CN 201710525017A CN 107391120 A CN107391120 A CN 107391120A
Authority
CN
China
Prior art keywords
electronic equipment
memory
management program
hardware management
equipment hardware
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
CN201710525017.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 CN201710525017.2A priority Critical patent/CN107391120A/en
Publication of CN107391120A publication Critical patent/CN107391120A/en
Pending legal-status Critical Current

Links

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/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/4401Bootstrapping

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 invention discloses one kind to start control method, electronic equipment and computer-readable recording medium.Wherein method includes:Electronic equipment obtains the first instruction;The first instruction instruction obtains the second electronic equipment hardware management program from the second memory of the electronic equipment;Respond first instruction, the second electronic equipment hardware management program is read from the second memory, and the first electronic equipment hardware management program storage is replaced to the first memory of the electronic equipment, the second os starting as corresponding to the second electronic equipment hardware management program designation;Wherein, the first memory and second memory are nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management program.

Description

One kind starts control method, electronic equipment and computer-readable recording medium
Technical field
The present invention relates to control field, more particularly to a kind of startup control method, electronic equipment and computer-readable storage Medium.
Background technology
It is customized that server generally requires depth, i.e., to meet several operation systems compatibility, such as Windows, Linux, Vmware etc., meet the depth customization of different clients again, can thus produce many different configuration needs, and different match somebody with somebody Putting the very possible basic input output system of demand (BIOS, Basic Input Output System) or driving can not do To completely compatible.For this problem, correlation technique there is no effective solution.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provide it is a kind of start control method, electronic equipment and Computer-readable recording medium.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide one kind to start control method, applied to electronic equipment, including:
Obtain the first instruction;The first instruction instruction obtains the second electronics from the second memory of the electronic equipment Device hardware management program;
First instruction is responded, the second electronic equipment hardware management program is read from the second memory, and replace The first electronic equipment hardware management program storage is changed to the first memory of the electronic equipment, is set by second electronics Second os starting corresponding to standby hardware management program designation;Wherein,
The first memory and second memory are nonvolatile memory;The first memory is at least stored with First electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management journey Sequence.
In such scheme, when not getting first instruction, drawn by the first electronic equipment hardware management program First os starting corresponding to leading.
In such scheme, methods described also includes:
The first electronic equipment hardware management program is replaced by the second electronic equipment hardware management program storage to described After first memory, judge whether the first electronic equipment hardware management program stored in the second memory;
, will when judged result, which characterizes the first electronic equipment hardware management program, not to be stored in the second memory The first electronic equipment hardware management program storage is to the second memory.
In such scheme, methods described also includes:
Obtain at least one electronic equipment hardware management program;
By at least one electronic equipment hardware management program storage of acquisition into the second memory.
In such scheme, the electronic equipment hardware management program be based on unified Extensible Firmware Interface (UEFI, Unified Extensible Firmware Interface) standard program.
In such scheme, memory is also stored with bootstrap corresponding with electronic equipment hardware management program;To electronics When device hardware management program is operated, bootstrap corresponding to corresponding electronic equipment hardware management program is performed identical Operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
In such scheme, methods described also includes:
When not storing the second electronic equipment hardware management program in the second memory, prompt message is generated; The prompt message is used to prompt not storing the second electronic equipment hardware management program in the second memory;
When not receiving the second instruction for the prompt message in preset duration, by the first electronic equipment hardware pipe Manage the first os starting corresponding to program designation;
When receiving the second instruction for the prompt message in the preset duration, second instruction is performed, by Os starting corresponding to the electronic equipment hardware management program designation of the second instruction instruction.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:Processor and for store can be on a processor The memory of the computer program of operation,
Wherein, the step of processor is for when running the computer program, performing any of the above-described method.
The embodiment of the present invention provides a kind of computer-readable recording medium again, is stored thereon with computer program, described The step of any of the above-described method is realized when computer program is executed by processor.
Startup control method, electronic equipment and computer-readable recording medium provided in an embodiment of the present invention, electronic equipment Obtain the first instruction;First instruction is responded, the second electronic equipment hardware management program is read from the second memory, And the first electronic equipment hardware management program storage is replaced to the first memory of the electronic equipment, by the described second electricity Second os starting corresponding to sub- device hardware management program guiding;Wherein, the first memory and second memory It is nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program;Described second Memory is at least stored with least one electronic equipment hardware management program, and it is hard only to store a set of electronic equipment in first memory Part management program, and other more set electronic equipment hardware management program storages will not increased by first in second memory On the basis of the cost of memory hardware, the switching of more set operating systems can be realized, so, it is possible to substantially reduce cost, and Scheme is realized easy.
Brief description of the drawings
In accompanying drawing (it is not necessarily drawn to scale), similar reference phase described in different views As part.Accompanying drawing generally shows each embodiment discussed herein by way of example and not limitation.
Fig. 1 is the scheme schematic diagram that operating system switching is realized in correlation technique;
Fig. 2 is the implementation process schematic diagram that the embodiment of the present invention one starts control method;
Fig. 3 is the implementation process schematic diagram that the embodiment of the present invention two starts control method;
Fig. 4 is the implementation process schematic diagram that the embodiment of the present invention three starts control method;
Fig. 5 is the implementation process schematic diagram that the embodiment of the present invention four starts control method;
Fig. 6 is the electronic devices structure schematic diagram of the embodiment of the present invention five;
Fig. 7 is a kind of scheme schematic diagram for realizing operating system switching of the embodiment of the present invention.
Embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
In order to meet the compatibility of several operation systems, as shown in figure 1, one kind is achieved in that for several operation systems, Using entirely different BIOS, thus need to increase Serial Peripheral Interface (SPI) (SPI, Serial Peripheral Interface) the capacity of read-only storage (ROM, Read Only Memory), for example increase to 8M etc. from 2M, thus can Greatly increase cost.
Based on this, in various embodiments of the present invention:Electronic equipment obtains the first instruction;First instruction is responded, The second electronic equipment hardware management program is read from the second memory, and replaces the first electronic equipment hardware management Program storage to the electronic equipment first memory, as corresponding to the second electronic equipment hardware management program designation Two os startings;Wherein, the first memory and second memory are nonvolatile memory;First storage Device is at least stored with the first electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment Hardware management program.
Scheme provided in an embodiment of the present invention, a set of electronic equipment hardware management program is only stored in first memory, i.e., A set of BIOS is only stored in SPI ROM, and by other more set electronic equipment hardware management program storages in second memory, than Such as embedded multi-media card (EMMC, Embedded Multi Media Card) storage chip etc., it will not so increase by first and deposit The cost of reservoir hardware, that is to say, that the switching of more set electronic equipment hardware management programs is realized in a manner of software, so as to real The now switching of more set operating systems, it so, it is possible to substantially reduce cost, and scheme is realized easily.
Embodiment one
The embodiment of the present invention provides a kind of startup control method, and methods described is applied in electronic equipment.
Wherein, the electronic equipment can be the electronic equipment for supporting 32-bit operating system and the switching of 64 bit manipulation systems. For example for, the electronic equipment can support 32-bit Windows operating system and 64 Android (Android) operations The electronic equipment of system.
During practical application, the electronic equipment can be server etc..
Here, the electronic equipment includes:First memory and second memory;The first memory and the second storage Device is nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program;Described Two memories are at least stored with least one electronic equipment hardware management program.
Wherein, the basic function of the electronic equipment hardware management program includes:The hardware configuration of electronic equipment is identified, and Self-test and initialization are carried out to it;Guide os starting etc..
Therefore, popular point is said, the electronic equipment hardware management program can refer to BIOS.It should be noted that:With The development of technology, the electronic equipment hardware management program can also be UEFI.That is, the electronic equipment hardware management Program is the program based on UEFI standards.
During practical application, the first memory can be SPI ROM, and the second memory can be EMMC storage cores Piece etc..
Fig. 2 is the implementation process schematic diagram that the embodiment of the present invention one starts control method, as shown in Fig. 2 this method includes Following steps:
Step 201:Obtain the first instruction;
Here, the first instruction instruction obtains the second electronic equipment hardware from the second memory of the electronic equipment Management program.
During practical application, in electronic equipment start-up course, if do not get first instruction, by described first First os starting corresponding to electronic equipment hardware management program designation.
Wherein, when not getting first instruction, illustrate not needing switching operating system, so still by the first electricity First os starting corresponding to sub- device hardware management program guiding.
Step 202:First instruction is responded, the second electronic equipment hardware management journey is read from the second memory Sequence, and the first electronic equipment hardware management program storage is replaced to the first memory of the electronic equipment, by described Second os starting corresponding to two electronic equipment hardware management program designations.
During practical application, bootstrap (can be understood as driver) corresponding with electronic equipment hardware management program There may be with corresponding electronic equipment hardware management program identical memory, to save cost.
Based on this, in one embodiment, memory, which is also stored with, corresponding with electronic equipment hardware management program guides journey Sequence;When being operated to electronic equipment hardware management program, to guiding journey corresponding to corresponding electronic equipment hardware management program Sequence performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
Specifically, when reading the second electronic equipment hardware management program from the second memory, while the is read Bootstrap corresponding to two electronic equipment hardware management programs, and replace the first electronic equipment hardware management program and correspondingly Bootstrap store to the first memory of the electronic equipment.
The scheme of the embodiment of the present invention goes for following scene:Electronic equipment need in Windows operating system and Switched between Android operation system.Assuming that what is stored in the SPI ROM of electronic equipment is 32-bit Windows operation system BIOS corresponding to system, BIOS corresponding to 64 Android operation systems is stored with the EMMC storage chips of electronic equipment, when When needing Windows operating system switching to Android operation system, in electronic equipment start-up course, obtain instruction from EMMC storage chips obtain the instruction of BIOS corresponding to Android operation system;The instruction is responded, is read from EMMC storage chips BIOS corresponding to Android operation system, and replace BIOS corresponding to Windows operating system and store into SPI ROM, this Sample, when electronic equipment starts, BIOS guides 64 Android operation systems to start as corresponding to Android operation system, so as to Realize from Windows operating system and switch to Android operation system.
Scheme provided in an embodiment of the present invention, electronic equipment obtain the first instruction;First instruction is responded, from described the The second electronic equipment hardware management program is read in two memories, and replaces the first electronic equipment hardware management program storage To the first memory of the electronic equipment, the second operation system as corresponding to the second electronic equipment hardware management program designation System starts;Wherein, the first memory and second memory are nonvolatile memory;The first memory is at least deposited Contain the first electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management Program, a set of electronic equipment hardware management program is only stored in first memory, and will other more set electronic equipment hardware managements Program storage will not so increase the cost of first memory hardware, that is to say, that in a manner of software in second memory The switching of more set electronic equipment hardware management programs is realized, so as to realize the switching of more set operating systems, so, it is possible to drop significantly Low cost, and scheme is realized easily.
Embodiment two
The embodiment of the present invention provides a kind of startup control method, and methods described is applied in electronic equipment.
Wherein, the electronic equipment can be the electronic equipment for supporting 32-bit operating system and the switching of 64 bit manipulation systems. For example for, the electronic equipment can support 32-bit Windows operating system and 64 Android operation systems Electronic equipment.
During practical application, the electronic equipment can be server etc..
Here, the electronic equipment includes:First memory and second memory;The first memory and the second storage Device is nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program;Described Two memories are at least stored with least one electronic equipment hardware management program.
Wherein, the basic function of the electronic equipment hardware management program includes:The hardware configuration of electronic equipment is identified, and Self-test and initialization are carried out to it;Guide os starting etc..
Therefore, popular point is said, the electronic equipment hardware management program can refer to BIOS.It should be noted that:With The development of technology, the electronic equipment hardware management program can also be UEFI.That is, the electronic equipment hardware management Program is the program based on UEFI standards.
During practical application, the first memory can be SPI ROM, and the second memory can be EMMC storage cores Piece etc..
Fig. 3 is the implementation process schematic diagram that the embodiment of the present invention two starts control method, as shown in figure 3, this method includes Following steps:
Step 301:Obtain the first instruction;
Here, the first instruction instruction obtains the second electronic equipment hardware from the second memory of the electronic equipment Management program.
During practical application, in electronic equipment start-up course, if do not get first instruction, by described first First os starting corresponding to electronic equipment hardware management program designation.
Wherein, when not getting first instruction, illustrate not needing switching operating system, so still by the first electricity First os starting corresponding to sub- device hardware management program guiding.
Step 302:First instruction is responded, the second electronic equipment hardware management journey is read from the second memory Sequence, and the first electronic equipment hardware management program storage is replaced to the first memory of the electronic equipment, by described Second os starting corresponding to two electronic equipment hardware management program designations;
Step 303:Judge whether the first electronic equipment hardware management program deposited in the second memory Storage;
Step 304:When judged result characterizes the first electronic equipment hardware management program not in the second memory During storage, by the first electronic equipment hardware management program storage to the second memory.
Here, it is by the first electronic equipment hardware management program storage to the purpose of the second memory:When user needs When switching to the first operating system again by the second operating system, it can realize between the second operating system and the first operating system Switching.
During practical application, bootstrap (can be understood as driver) corresponding with electronic equipment hardware management program There may be with corresponding electronic equipment hardware management program identical memory, to save cost.
Based on this, in one embodiment, memory, which is also stored with, corresponding with electronic equipment hardware management program guides journey Sequence;When being operated to electronic equipment hardware management program, to guiding journey corresponding to corresponding electronic equipment hardware management program Sequence performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
Specifically, when reading the second electronic equipment hardware management program from the second memory, while the is read Bootstrap corresponding to two electronic equipment hardware management programs, and replace the first electronic equipment hardware management program and correspondingly Bootstrap store to the first memory of the electronic equipment.
Do not stored when the second memory does not store the first device hardware management program in the second memory When, the first electronic equipment hardware management program and corresponding bootstrap are stored to the second memory.
The scheme of the embodiment of the present invention goes for following scene:Electronic equipment need in Windows operating system and Switched between Android operation system.Assuming that what is stored in the SPI ROM of electronic equipment is 32-bit Windows operation system BIOS corresponding to system, BIOS corresponding to 64 Android operation systems is stored with the EMMC storage chips of electronic equipment, when When needing Windows operating system switching to Android operation system, in electronic equipment start-up course, obtain instruction from EMMC storage chips obtain the instruction of BIOS corresponding to Android operation system;The instruction is responded, is read from EMMC storage chips BIOS corresponding to Android operation system, and replace BIOS corresponding to Windows operating system and store into SPI ROM, this Sample, when electronic equipment starts, BIOS guides 64 Android operation systems to start as corresponding to Android operation system, so as to Realize from Windows operating system and switch to Android operation system.Wherein, when BIOS corresponding to Windows operating system not When EMMC storage chips store, BIOS corresponding to Windows operating system is stored to EMMC storage chips, so as to follow-up energy It is enough to switch to Windows operating system from Android operation system.
Scheme provided in an embodiment of the present invention, electronic equipment obtain the first instruction;First instruction is responded, from described the The second electronic equipment hardware management program is read in two memories, and replaces the first electronic equipment hardware management program storage To the first memory of the electronic equipment, the second operation system as corresponding to the second electronic equipment hardware management program designation System starts;Wherein, the first memory and second memory are nonvolatile memory;The first memory is at least deposited Contain the first electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management Program, a set of electronic equipment hardware management program is only stored in first memory, and will other more set electronic equipment hardware managements Program storage will not so increase the cost of first memory hardware, that is to say, that in a manner of software in second memory The switching of more set electronic equipment hardware management programs is realized, so as to realize the switching of more set operating systems, so, it is possible to drop significantly Low cost, and scheme is realized easily.
In addition, replace the first electronic equipment hardware management program by the second electronic equipment hardware management program storage extremely After the first memory, judge whether the first electronic equipment hardware management program deposited in the second memory Storage;When judged result, which characterizes the first electronic equipment hardware management program, not to be stored in the second memory, by described in First electronic equipment hardware management program storage is to the second memory, because the first electronic equipment hardware management program is There is storage in two memories, so when needing to switch to the first operating system from the second operating system, two behaviour can be realized Make the switching between system.
Embodiment three
The embodiment of the present invention provides a kind of startup control method, and methods described is applied in electronic equipment.
Wherein, the electronic equipment can be the electronic equipment for supporting 32-bit operating system and the switching of 64 bit manipulation systems. For example for, the electronic equipment can support 32-bit Windows operating system and 64 Android operation systems Electronic equipment.
During practical application, the electronic equipment can be server etc..
Here, the electronic equipment includes:First memory and second memory;The first memory and the second storage Device is nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program;Described Two memories are at least stored with least one electronic equipment hardware management program.
Wherein, the basic function of the electronic equipment hardware management program includes:The hardware configuration of electronic equipment is identified, and Self-test and initialization are carried out to it;Guide os starting etc..
Therefore, popular point is said, the electronic equipment hardware management program can refer to BIOS.It should be noted that:With The development of technology, the electronic equipment hardware management program can also be UEFI.That is, the electronic equipment hardware management Program is the program based on UEFI standards.
During practical application, the first memory can be SPI ROM, and the second memory can be EMMC storage cores Piece etc..
Fig. 4 is the implementation process schematic diagram that the embodiment of the present invention three starts control method, as shown in figure 4, this method includes Following steps:
Step 401:Obtain the first instruction;
Here, the first instruction instruction obtains the second electronic equipment hardware from the second memory of the electronic equipment Management program.
During practical application, in electronic equipment start-up course, if do not get first instruction, by described first First os starting corresponding to electronic equipment hardware management program designation.
Step 402:First instruction is responded, the second electronic equipment hardware management journey is read from the second memory Sequence, when not storing the second electronic equipment hardware management program in the second memory, generate prompt message;
Here, the prompt message is used to prompt not storing the second electronic equipment hardware pipe in the second memory Manage program.
During practical application, user may be unaware which electronic equipment hardware management program is stored in second memory, So the instruction sent is possible to incorrect, so that electronic equipment hardware management journey corresponding to can not being obtained from second memory Sequence, now need to prompt user, and wait the next instruction of user.
Step 403:When not receiving the second instruction for the prompt message in preset duration, set by first electronics First os starting corresponding to standby hardware management program designation;
Here, the preset duration can be arranged as required to, such as 1 minute, 2 minutes etc..
Step 404:When receiving the second instruction for the prompt message in the preset duration, described second is performed Instruction, the os starting as corresponding to the electronic equipment hardware management program designation of the described second instruction instruction.
Specifically, second instruction is responded, the electronics of the second instruction instruction is read from the second memory Device hardware management program, and replace the first electronic equipment hardware management program storage and deposit to the first of the electronic equipment Reservoir, the os starting as corresponding to the electronic equipment hardware management program designation of the described second instruction instruction.
Scheme provided in an embodiment of the present invention, a set of electronic equipment hardware management program is only stored in first memory, and By other more set electronic equipment hardware management program storages in second memory, it will not so increase first memory hardware Cost, that is to say, that the switching of more set electronic equipment hardware management programs is realized in a manner of software, so as to realize more set operations The switching of system, it so, it is possible to substantially reduce cost, and scheme is realized easily.
In addition, when not storing the second electronic equipment hardware management program in the second memory, generation prompting Information;The prompt message is used to prompt not storing the second electronic equipment hardware management program in the second memory, User can be allowed to know in time by way of prompt message to carry out next step operation according to the instruction of user, in this way, energy Enough lift Consumer's Experience.
Example IV
The embodiment of the present invention provides a kind of startup control method, and methods described is applied in electronic equipment.
Wherein, the electronic equipment can be the electronic equipment for supporting 32-bit operating system and the switching of 64 bit manipulation systems. For example for, the electronic equipment can support 32-bit Windows operating system and 64 Android operation systems Electronic equipment.
During practical application, the electronic equipment can be server etc..
Here, the electronic equipment includes:First memory and second memory;The first memory and the second storage Device is nonvolatile memory;The first memory is at least stored with the first electronic equipment hardware management program.
Wherein, the basic function of the electronic equipment hardware management program includes:The hardware configuration of electronic equipment is identified, and Self-test and initialization are carried out to it;Guide os starting etc..
Therefore, popular point is said, the electronic equipment hardware management program can refer to BIOS.It should be noted that:With The development of technology, the electronic equipment hardware management program can also be UEFI.That is, the electronic equipment hardware management Program is the program based on UEFI standards.
During practical application, the first memory can be SPI ROM, and the second memory can be EMMC storage cores Piece etc..
Fig. 5 is the implementation process schematic diagram that the embodiment of the present invention four starts control method, as shown in figure 5, this method includes Following steps:
Step 501:Obtain at least one electronic equipment hardware management program;
Step 502:By at least one electronic equipment hardware management program storage of acquisition into the second memory;
That is, after the completion of this step performs, it is hard that the second memory is at least stored with least one electronic equipment Part management program.
Step 503:Obtain the first instruction;
Here, the first instruction instruction obtains the second electronic equipment hardware from the second memory of the electronic equipment Management program.
During practical application, in electronic equipment start-up course, if do not get first instruction, by described first First os starting corresponding to electronic equipment hardware management program designation.
Wherein, when not getting first instruction, illustrate not needing switching operating system, so still by the first electricity First os starting corresponding to sub- device hardware management program guiding.
Step 504:First instruction is responded, the second electronic equipment hardware management journey is read from the second memory Sequence, and the first electronic equipment hardware management program storage is replaced to the first memory of the electronic equipment, by described Second os starting corresponding to two electronic equipment hardware management program designations.
During practical application, bootstrap (can be understood as driver) corresponding with electronic equipment hardware management program There may be with corresponding electronic equipment hardware management program identical memory, to save cost.
Based on this, in one embodiment, memory, which is also stored with, corresponding with electronic equipment hardware management program guides journey Sequence;When being operated to electronic equipment hardware management program, to guiding journey corresponding to corresponding electronic equipment hardware management program Sequence performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
Specifically, when reading the second electronic equipment hardware management program from the second memory, while the is read Bootstrap corresponding to two electronic equipment hardware management programs, and replace the first electronic equipment hardware management program and correspondingly Bootstrap store to the first memory of the electronic equipment.
The scheme of the embodiment of the present invention goes for following scene:Electronic equipment need in Windows operating system and Switched between Android operation system.Assuming that what is stored in the SPI ROM of electronic equipment is 32-bit Windows operation system BIOS corresponding to system, BIOS corresponding to 64 Android operation systems is stored to the EMMC storage chips of electronic equipment, also Be to say, BIOS corresponding to 64 Android operation systems be stored with the EMMC storage chips of electronic equipment, when need by When Windows operating system switches to Android operation system, in electronic equipment start-up course, obtain instruction and deposited from EMMC Store up the instruction that chip obtains BIOS corresponding to Android operation system;The instruction is responded, is read from EMMC storage chips BIOS corresponding to Android operation system, and replace BIOS corresponding to Windows operating system and store into SPI ROM, this Sample, when electronic equipment starts, BIOS guides 64 Android operation systems to start as corresponding to Android operation system, so as to Realize from Windows operating system and switch to Android operation system.
Scheme provided in an embodiment of the present invention, electronic equipment obtain the first instruction;First instruction is responded, from described the The second electronic equipment hardware management program is read in two memories, and replaces the first electronic equipment hardware management program storage To the first memory of the electronic equipment, the second operation system as corresponding to the second electronic equipment hardware management program designation System starts;Wherein, the first memory and second memory are nonvolatile memory;The first memory is at least deposited Contain the first electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management Program, a set of electronic equipment hardware management program is only stored in first memory, and will other more set electronic equipment hardware managements Program storage will not so increase the cost of first memory hardware, that is to say, that in a manner of software in second memory The switching of more set electronic equipment hardware management programs is realized, so as to realize the switching of more set operating systems, so, it is possible to drop significantly Low cost, and scheme is realized easily.
Embodiment five
Based on foregoing startup control method, the present embodiment provides a kind of electronic equipment, as shown in fig. 6, the electronic equipment 60 Including:
Processor 61 and the memory 62 for storing the computer program that can be run on a processor;Wherein, it is described When processor 61 is used to run the computer program, perform:
Obtain the first instruction;The first instruction instruction obtains the second electricity from the second memory of the electronic equipment 60 Sub- device hardware management program;
First instruction is responded, the second electronic equipment hardware management program is read from the second memory, and replace The first electronic equipment hardware management program storage is changed to the first memory of the electronic equipment, is set by second electronics Second os starting corresponding to standby hardware management program designation;Wherein,
The first memory and second memory are nonvolatile memory;The first memory is at least stored with First electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management journey Sequence.
Wherein, it is corresponding by the first electronic equipment hardware management program designation when not getting first instruction The first os starting.
In one embodiment, when the processor 61 is additionally operable to run the computer program, perform:
The first electronic equipment hardware management program is replaced by the second electronic equipment hardware management program storage to described After first memory, judge whether the first electronic equipment hardware management program stored in the second memory;
, will when judged result, which characterizes the first electronic equipment hardware management program, not to be stored in the second memory The first electronic equipment hardware management program storage is to the second memory.
In one embodiment, when the processor 61 is additionally operable to run the computer program, perform:
Obtain at least one electronic equipment hardware management program;
By at least one electronic equipment hardware management program storage of acquisition into the second memory.
In one embodiment, the electronic equipment hardware management program is the program based on UEFI standards.
In one embodiment, memory is also stored with bootstrap corresponding with electronic equipment hardware management program;It is described When processor 61 is additionally operable to run the computer program, perform:
When being operated to electronic equipment hardware management program, to drawing corresponding to corresponding electronic equipment hardware management program Helical pitch sequence performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
In one embodiment, when the processor 61 is additionally operable to run the computer program, perform:
When not storing the second electronic equipment hardware management program in the second memory, prompt message is generated; The prompt message is used to prompt not storing the second electronic equipment hardware management program in the second memory;
When not receiving the second instruction for the prompt message in preset duration, by the first electronic equipment hardware pipe Manage the first os starting corresponding to program designation;
When receiving the second instruction for the prompt message in the preset duration, second instruction is performed, by Os starting corresponding to the electronic equipment hardware management program designation of the second instruction instruction.
The electronic equipment that above-described embodiment provides belongs to same design with starting control method embodiment, and it was implemented Journey refers to embodiment of the method, repeats no more here.
Certainly, during practical application, as shown in fig. 6, the electronic equipment 60 can also include:At least one network interface 63. Each component in electronic equipment 60 is coupled by bus system 64.It is understood that bus system 64 is used to realize these Connection communication between component.Bus system 64 is in addition to including data/address bus, in addition to power bus, controlling bus and state Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 64 in figure 6.
Wherein, the number of the processor 61 can be at least one.
Network interface 63 is used for the communication of wired or wireless way between electronic equipment 60 and other equipment.
It is appreciated that memory 62 can be volatile memory or nonvolatile memory, may also comprise volatibility and Both nonvolatile memories.Wherein, nonvolatile memory can be ROM, programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic RAM (FRAM, ferromagnetic Random access memory), flash memory (Flash Memory), magnetic surface storage, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be magnetic disk storage or tape storage Device.Volatile memory can be random access memory (RAM, Random Access Memory), and it is used as outside high speed Caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (SRAM, Static Random Access Memory), synchronous static RAM (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links dynamic random are deposited Access to memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus arbitrary access are deposited Reservoir (DRRAM, Direct Rambus Random Access Memory).The memory 62 of description of the embodiment of the present invention is intended to The including but not limited to memory of these and any other suitable type.
Memory 62 in the embodiment of the present invention is used to store various types of data to support the operation of electronic equipment 60. The example of these data includes:For any computer program operated on electronic equipment 60, such as operating system 621 and application Program 622.
The method that the embodiments of the present invention disclose can apply in processor 61, or be realized by processor 61.Place It is probably a kind of IC chip to manage device 61, has the disposal ability of signal.In implementation process, each step of the above method It can be completed by the integrated logic circuit of the hardware in processor 61 or the instruction of software form.Above-mentioned processor 61 can To be general processor, digital signal processor (DSP, Digital Signal Processor), or other programmable are patrolled Collect device, discrete gate or transistor logic, discrete hardware components etc..The present invention can be realized or performed to processor 61 Disclosed each method, step and logic diagram in embodiment.General processor can be microprocessor or any conventional Processor etc..The step of method with reference to disclosed in the embodiment of the present invention, hardware decoding processor execution can be embodied directly in Complete, or completion is performed with the hardware in decoding processor and software module combination.Software module can be located at storage medium In, the storage medium is located at memory 62, and processor 61 reads the information in memory 62, and preceding method is completed with reference to its hardware The step of.
In the exemplary embodiment, electronic equipment 60 can by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, PLD (PLD, Programmable Logic Device), CPLD (CPLD, Complex Programmable Logic Device), scene Programmable gate array (FPGA, Field-Programmable Gate Array), general processor, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronic components are realized, are used for Perform preceding method.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, such as including The memory 62 of computer program, above computer program can be performed by the processor 61 of electronic equipment 60, to complete foregoing side Step described in method.Computer-readable recording medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic The memories such as memory surface, CD or CD-ROM.
Specifically, the embodiments of the invention provide a kind of computer-readable recording medium, computer program is stored thereon with, When the computer program is run by processor, perform:
Obtain the first instruction;The first instruction instruction obtains the second electronics from the second memory of the electronic equipment Device hardware management program;
First instruction is responded, the second electronic equipment hardware management program is read from the second memory, and replace The first electronic equipment hardware management program storage is changed to the first memory of the electronic equipment, is set by second electronics Second os starting corresponding to standby hardware management program designation;Wherein,
The first memory and second memory are nonvolatile memory;The first memory is at least stored with First electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management journey Sequence.
Wherein, it is corresponding by the first electronic equipment hardware management program designation when not getting first instruction The first os starting.
In one embodiment, when the computer program is run by processor, also perform:
The first electronic equipment hardware management program is replaced by the second electronic equipment hardware management program storage to described After first memory, judge whether the first electronic equipment hardware management program stored in the second memory;
, will when judged result, which characterizes the first electronic equipment hardware management program, not to be stored in the second memory The first electronic equipment hardware management program storage is to the second memory.
In one embodiment, when the computer program is run by processor, also perform:
Obtain at least one electronic equipment hardware management program;
By at least one electronic equipment hardware management program storage of acquisition into the second memory.
In one embodiment, the electronic equipment hardware management program is the program based on UEFI standards.
In one embodiment, memory is also stored with bootstrap corresponding with electronic equipment hardware management program;It is described When computer program is run by processor, also perform:
When being operated to electronic equipment hardware management program, to drawing corresponding to corresponding electronic equipment hardware management program Helical pitch sequence performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, with management Electronic equipment hardware.
In one embodiment, when the computer program is run by processor, also perform:
When not storing the second electronic equipment hardware management program in the second memory, prompt message is generated; The prompt message is used to prompt not storing the second electronic equipment hardware management program in the second memory;
When not receiving the second instruction for the prompt message in preset duration, by the first electronic equipment hardware pipe Manage the first os starting corresponding to program designation;
When receiving the second instruction for the prompt message in the preset duration, second instruction is performed, by Os starting corresponding to the electronic equipment hardware management program designation of the second instruction instruction.
In summary, scheme provided in an embodiment of the present invention, unlike the scheme shown in Fig. 1:As shown in fig. 7, work as When that stored in SPI ROM is BIOS A, when electronic equipment starts, the operating system A as corresponding to BIOS A guiding starts, when When needing switching system, driver is started to, is deposited by the driver for backing up and switching BIOS or system drive from EMMC Store up chip and read BIOS B, replacing BIOS A with BIOS B is stored to SPI ROM, and BIOS A are backuped into EMMC storage cores Piece, BIOS B being switched to by BIOS A when now electronic equipment starts, the operating system B as corresponding to BIOS B guiding starts, from And realize from operating system A and switch to operating system B.
The scheme of the embodiment of the present invention, compared with the scheme shown in Fig. 1, by other more set electronic equipment hardware management programs It is stored in EMMC storage chips, it is not necessary to increase SPI ROM cost, that is to say, that more set electronics are realized in a manner of software The switching of device hardware management program, so as to realize the switching of more set operating systems, it so, it is possible to substantially reduce cost, and side Case is realized easy.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is relevant with embodiment During special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure " in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knots Structure or characteristic can combine in one or more embodiments in any suitable manner.It should be understood that in the various implementations of the present invention In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work( It can be determined with internal logic, the implementation process without tackling the embodiment of the present invention forms any restriction.The embodiments of the present invention Sequence number is for illustration only, does not represent the quality of embodiment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (9)

1. one kind starts control method, applied to electronic equipment, methods described includes:
Obtain the first instruction;The first instruction instruction obtains the second electronic equipment from the second memory of the electronic equipment Hardware management program;
First instruction is responded, the second electronic equipment hardware management program is read from the second memory, and replace institute The first electronic equipment hardware management program storage is stated to the first memory of the electronic equipment, it is hard by second electronic equipment Second os starting corresponding to the guiding of part management program;Wherein,
The first memory and second memory are nonvolatile memory;The first memory is at least stored with first Electronic equipment hardware management program;The second memory is at least stored with least one electronic equipment hardware management program.
2. according to the method for claim 1, it is characterised in that when not getting first instruction, by described first First os starting corresponding to electronic equipment hardware management program designation.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The first electronic equipment hardware management program is replaced by the second electronic equipment hardware management program storage to described first After memory, judge whether the first electronic equipment hardware management program stored in the second memory;
When judged result, which characterizes the first electronic equipment hardware management program, not to be stored in the second memory, by described in First electronic equipment hardware management program storage is to the second memory.
4. the method that the electronic equipment starts according to claim 1, it is characterised in that methods described also includes:
Obtain at least one electronic equipment hardware management program;
By at least one electronic equipment hardware management program storage of acquisition into the second memory.
5. according to the method for claim 1, it is characterised in that the electronic equipment hardware management program is can based on unification Extend the program of firmware interface standard.
6. according to the method described in any one of claim 1 to 5, it is characterised in that memory is also stored with hard with electronic equipment Bootstrap corresponding to part management program;It is hard to corresponding electronic equipment when being operated to electronic equipment hardware management program Bootstrap corresponding to part management program performs identical operation;Wherein,
Electronic equipment hardware management program depends on corresponding bootstrap that electronic equipment hardware is identified, to manage electronics Device hardware.
7. according to the method described in any one of claim 1 to 5, it is characterised in that methods described also includes:
When not storing the second electronic equipment hardware management program in the second memory, prompt message is generated;It is described Prompt message is used to prompt not storing the second electronic equipment hardware management program in the second memory;
When not receiving the second instruction for the prompt message in preset duration, by the first electronic equipment hardware management journey First os starting corresponding to sequence guiding;
When receiving the second instruction for the prompt message in the preset duration, second instruction is performed, by described Os starting corresponding to the electronic equipment hardware management program designation of second instruction instruction.
8. a kind of electronic equipment, it is characterised in that including:Processor and the computer that can be run on a processor for storage The memory of program,
Wherein, when the processor is used to run the computer program, any one of perform claim requirement 1 to 7 methods described Step.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The step of any one of claim 1 to 7 methods described is realized during computing device.
CN201710525017.2A 2017-06-30 2017-06-30 One kind starts control method, electronic equipment and computer-readable recording medium Pending CN107391120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525017.2A CN107391120A (en) 2017-06-30 2017-06-30 One kind starts control method, electronic equipment and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525017.2A CN107391120A (en) 2017-06-30 2017-06-30 One kind starts control method, electronic equipment and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107391120A true CN107391120A (en) 2017-11-24

Family

ID=60334972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525017.2A Pending CN107391120A (en) 2017-06-30 2017-06-30 One kind starts control method, electronic equipment and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107391120A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228387A (en) * 2017-12-27 2018-06-29 中兴通讯股份有限公司 A kind of startup control method, electronic equipment and computer readable storage medium
CN109086099A (en) * 2018-07-25 2018-12-25 浪潮(北京)电子信息产业有限公司 A kind of method, apparatus, equipment and storage medium starting virtual machine
CN110032397A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN113867829A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for switching Bios option schemes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019753A (en) * 2011-09-21 2013-04-03 联想(北京)有限公司 Starting control method and device for mobile terminal and mobile terminal
CN103377054A (en) * 2012-04-16 2013-10-30 联想(北京)有限公司 Starting method and starting device
CN104360867A (en) * 2014-12-01 2015-02-18 重庆蓝岸通讯技术有限公司 Method for switching 32-bit Windows system and 64-bit Android system based on Intel X86
US9207948B2 (en) * 2012-05-10 2015-12-08 Celestica Technology Consultancy (Shanghai) Co., Ltd. Multi-BIOS circuit and switching method between multiple BIOS chips

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019753A (en) * 2011-09-21 2013-04-03 联想(北京)有限公司 Starting control method and device for mobile terminal and mobile terminal
CN103377054A (en) * 2012-04-16 2013-10-30 联想(北京)有限公司 Starting method and starting device
US9207948B2 (en) * 2012-05-10 2015-12-08 Celestica Technology Consultancy (Shanghai) Co., Ltd. Multi-BIOS circuit and switching method between multiple BIOS chips
CN104360867A (en) * 2014-12-01 2015-02-18 重庆蓝岸通讯技术有限公司 Method for switching 32-bit Windows system and 64-bit Android system based on Intel X86

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王红军: "《从学徒到高手 玩转电脑装机与软硬件维修》", 29 February 2016 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228387A (en) * 2017-12-27 2018-06-29 中兴通讯股份有限公司 A kind of startup control method, electronic equipment and computer readable storage medium
CN110032397A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN109086099A (en) * 2018-07-25 2018-12-25 浪潮(北京)电子信息产业有限公司 A kind of method, apparatus, equipment and storage medium starting virtual machine
CN113867829A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for switching Bios option schemes
CN113867829B (en) * 2021-08-20 2023-08-11 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for switching Bios option schemes

Similar Documents

Publication Publication Date Title
CN101650660B (en) Booting a computer system from central storage
CN107391120A (en) One kind starts control method, electronic equipment and computer-readable recording medium
US20120260027A1 (en) Device bootup from a nand-type non-volatile memory
US20110231595A1 (en) Systems and methods for handling hibernation data
US20100036973A1 (en) Storage device for mounting to a host
WO2008000088A1 (en) Method of configuring non-volatile memory for a hybrid disk drive
US8195930B2 (en) Computer system with reduced storage device and associated booting method
EP2263156B1 (en) Identification of memory cards by host
CN107870769A (en) The installation method and device of operating system
CN104679540A (en) Computer system and computer system starting method
CN105824678A (en) Method and device for installing operating system
TW201220047A (en) Method for performing automatic boundary alignment and related non-volatile memory device
CN105653330A (en) SD card based NorFlash programming system and method
CN106250125A (en) Obtain the method and device of daily record
CN116737244A (en) Method and device for starting multiple hardware domains of chip
CN102075710A (en) Starting operation method for television and television
CN104808953A (en) Device and method for controlling data storage and mobile terminal
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN101645048B (en) Method for realizing computer virtualized evidence obtaining
CN113031854B (en) One-time programmable memory device and fault tolerance method thereof
JP2009053993A (en) File system management apparatus
CN112148203B (en) Memory management method, device, electronic equipment and storage medium
TW200933354A (en) Multi-regulator power delivery system for ASIC cores
US20230350593A1 (en) Method, system, and circuit for deploying file system on embedded memory in programmable computing device
CN112540889B (en) Method, device, equipment and medium for adjusting hard disk starting sequence in user mode

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124

RJ01 Rejection of invention patent application after publication