CN109669707A - A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing - Google Patents
A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109669707A CN109669707A CN201811590081.XA CN201811590081A CN109669707A CN 109669707 A CN109669707 A CN 109669707A CN 201811590081 A CN201811590081 A CN 201811590081A CN 109669707 A CN109669707 A CN 109669707A
- Authority
- CN
- China
- Prior art keywords
- storage medium
- electronic equipment
- cpu
- resetting
- replacement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing, resetting can be realized in storage medium under the software environment of electronic equipment in the present invention, and it is bound with the new CPU after replacement, there is no need to disassemble storage medium, there are no that storage medium must be returned factory, the resetting of storage medium and the binding of new CPU can be locally carried out in electronic equipment, simplifies CPU replacement process, the time cycle is shortened, CPU replacement efficiency is improved.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of CPU replacing options, device, electronic equipment and readable deposit
Storage media.
Background technique
When CPU (Central Processing Unit, the central processing unit) failure or aging in electronic equipment
When, the supplier or after-sale service quotient of electronic equipment can extend the use longevity of electronic equipment by more being brought to CPU
Life.CPU in usual electronic equipment is bound with storage medium, and storage medium may include applying eMMC
(Embedded Multi Media Card, embedded multi-media card), eMCP (Embedded Multi-Chip Package,
The encapsulation of embedded type multi-core piece) or the standards such as UFS storage medium.
Since the CPU in electronic equipment is bound with storage medium, usually require when replacing CPU by CPU
It is dismantled as a whole with storage medium, storage medium is then returned into factory, by the supplier of the electronic equipment using special
Fixed machine carries out reset (resetting) to storage medium, then the storage medium after reset is bound with new CPU, after binding
Storage medium and new CPU be installed in electronic equipment as a whole.
Due to needing integrally to carry out CPU and storage medium to disassemble and storage medium is returned factory, CPU replacement is resulted in
Process is complicated, long period, reduces CPU replacement efficiency.
Summary of the invention
It is existing to solve the present invention provides a kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing
The problem of CPU replacement process is complicated in technology, long period, and CPU replaces low efficiency.
The present invention provides a kind of CPU replacing options, are applied to electronic equipment, this method comprises:
If the electronic equipment is currently at the lk stage, the corresponding firmware of the storage medium of the electronic equipment is written
In the storage medium;
According to the corresponding resetting order of the storage medium, the storage medium that corresponding firmware is written is reset;
Storage medium after resetting and the CPU after replacement are bound.
Further, it controls the electronic equipment and is in the lk stage and include:
It controls the electronic equipment and enters fastboot mode;
Under the fastboot mode, brush into the corresponding lk of the electronic equipment;
Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
Further, the corresponding firmware of the storage medium of the electronic equipment is according to the affiliated producer of the storage medium
What the product identification of mark and/or the storage medium determined.
Further, the storage medium comprises at least one of the following: eMMC, eMCP and UFS.
Further, if the storage medium includes eMMC, the corresponding resetting order of the storage medium includes eMMC
CMD and argument order.
Further, before the CPU after the storage medium and replacement by after resetting is bound, the method is also wrapped
It includes:
Whether the mode for judging the current USB got is downloading mode;
If so, carrying out subsequent step.
The present invention provides a kind of CPU more changing devices, are applied to electronic equipment, which includes:
Writing module, if being currently at the lk stage for the electronic equipment, by the storage medium of the electronic equipment
Corresponding firmware is written in the storage medium;
Module is reset, for being ordered according to the corresponding resetting of the storage medium, is situated between to the storage that corresponding firmware is written
Matter is reset;
Binding module, for binding the storage medium after resetting and the CPU after replacement.
Further, described device further include:
Control module enters fastboot mode for controlling the electronic equipment;Under the fastboot mode, brush
Enter the corresponding lk of the electronic equipment;Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
Further, the corresponding firmware of the storage medium of the electronic equipment is according to the affiliated producer of the storage medium
What the product identification of mark and/or the storage medium determined.
Further, the storage medium comprises at least one of the following: eMMC, eMCP and UFS.
Further, if the storage medium includes eMMC, the corresponding resetting order of the storage medium includes eMMC
CMD and argument order.
Further, the binding module is also used to judge whether the mode of the current USB got is downloading mode;
If so, the storage medium after resetting and the CPU after replacement are bound.
The present invention provides a kind of electronic equipment, comprising: processor, communication interface, memory and communication bus, wherein
Processor, communication interface, memory complete mutual communication by communication bus;
It is stored with computer program in the memory, when described program is executed by the processor, so that the place
Manage the step of device executes any of the above-described the method.
The present invention provides a kind of computer readable storage medium, it is stored with the computer journey that can be executed by electronic equipment
Sequence, when described program is run on the electronic equipment, so that the electronic equipment executes any of the above-described the method
Step.
The present invention provides a kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing, stored in the present invention
Resetting can be realized in medium under the software environment of electronic equipment, and is bound with the new CPU after replacement, and there is no need to will deposit
Storage media is disassembled, and there are no storage medium must being returned factory, can locally carry out the resetting of storage medium and new in electronic equipment
The binding of CPU simplifies CPU replacement process, shortens the time cycle, improves CPU replacement efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram for CPU replacement process that present example 1 provides;
Fig. 2 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention 6 provides;
Fig. 3 is that a kind of CPU provided in an embodiment of the present invention replaces schematic device.
Specific embodiment
In order to simplify CPU replacement process, shortens the time cycle, improve CPU and replace efficiency, the embodiment of the invention provides one
Kind CPU replacing options, device, electronic equipment and readable storage medium storing program for executing.
Electronic equipment includes hardware layer, operates in the operating system layer on hardware layer, and operation is on an operating system
Application layer.
The hardware layer include central processing unit (CPU, Central Processing Unit), memory management unit (MMU,
Memory Management Unit) and the hardware such as memory.
The operating system can be any one or more calculating that electronic equipment control is realized by process (Process)
Machine operating system, for example, (SuSE) Linux OS, Unix operating system, Android operation system, iOS operating system or
Windows operating system etc..
And the electronic equipment can be the handheld devices such as smart phone, tablet computer in embodiments of the present invention, can also
To be the electronic equipments such as desktop computer, portable computer, in the embodiment of the present invention and it is not particularly limited, as long as can pass through
Log has the program of the code of the CPU replacing options in the embodiment of the present invention, realizes CPU replacement.
The executing subject of electronic equipment control in the embodiment of the present invention can be in electronic equipment or electronic equipment
Caller and the functional module of program can be executed.
To make the objectives, technical solutions, and advantages of the present invention clearer, make below in conjunction with the attached drawing present invention into one
Step ground detailed description, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
Embodiment 1:
Fig. 1 be a kind of schematic diagram of CPU replacement process provided in an embodiment of the present invention, the process the following steps are included:
S101: if the electronic equipment is currently at the lk stage, the storage medium of the electronic equipment is corresponding solid
Part is written in the storage medium.
CPU replacing options provided in an embodiment of the present invention are applied to electronic equipment, can specifically apply and set about electronics
Standby CPU.
If the electronic equipment is brushed into corresponding lk (little kernel, a kind of small small operating system of kernel), then should
Electronic equipment, which can control, itself enters the lk stage, therefore the electronic equipment can determine whether itself is currently in the lk stage,
It should can be understood as electronic equipment in the lk stage to be currently under lk system or lk mode.
Storage medium is also equipped in electronic equipment, the storage medium comprises at least one of the following: eMMC, eMCP and
UFS, the eMMC can be understood as applying the storage medium of eMMC standard, which can be understood as applying eMCP standard
Storage medium, the UFS can be understood as applying the storage medium of UFS standard.
Electronic equipment is available to arrive the corresponding firmware of storage medium, and the corresponding firmware of storage medium is provided by supplier,
The corresponding firmware of different storage mediums can with it is identical can be different, it is not limited here.
It, can be by the corresponding firmware write-in storage of the storage medium after electronic equipment gets the corresponding firmware of storage medium
In medium, specifically into the storage medium, the burned storage medium corresponds to firmware.
The process of the burned storage medium of firmware can be realized using the prior art, do not done in embodiments of the present invention superfluous
It states.
S102: ordering according to the corresponding resetting of the storage medium, carries out weight to the storage medium that corresponding firmware is written
It sets.
Electronic equipment can also get the corresponding resetting order of storage medium, and the corresponding resetting order of storage medium is by supplying
Answer quotient to provide, the corresponding resetting order of different storage mediums can with it is identical can be different, it is not limited here.
The storage medium of electronic equipment is the storage medium for being written with corresponding firmware at this time, and electronic equipment can be written
The corresponding resetting order of the storage medium is responded in the storage medium of corresponding firmware, so that electronic equipment is according to storage medium
Corresponding resetting order, resets the storage medium of the corresponding firmware of the write-in.
It can be realized according to the process that resetting order resets storage medium with the prior art, in embodiments of the present invention
It does not repeat them here.
If CPU to be replaced can still provide for data processing, such as CPU to be replaced is asked there is only unstable or aging
Topic, then step 101 and step 102 can be applied to the i.e. old CPU of CPU to be replaced.
S103: the storage medium after resetting and the CPU after replacement are bound.
After-sales staff can carry out the replacement of CPU after determining storage medium resetting, and then electronic equipment is by depositing after resetting
Storage media is bound with the CPU after replacement.
The process of binding storage medium and CPU belong to the prior art, do not repeat them here in embodiments of the present invention.
After the process that storage medium after resetting and the CPU after replacement are bound can be by replacing in electronic equipment
New CPU is realized.
The program may be implemented to carry out reset (resetting) to emmc, solve since CPU and storage medium are bound
And lead to that single cpu is bad and needs the problem of integrally being replaced CPU and storage medium, storage when also solving reset
Medium needs the problem of returning factory, and the demand of reset can be completed by software version, that is, lk specific after sale.
Storage medium can be realized resetting under the software environment of electronic equipment in the embodiment of the present invention, and with after replacement
New CPU is bound, there is no need to disassemble storage medium, there are no storage medium must be returned to factory, in electronic equipment local
The resetting of storage medium and the binding of new CPU can be carried out, CPU replacement process is simplified, shortens the time cycle, improve
CPU replaces efficiency.
Embodiment 2:
On the basis of the above embodiments, it in the embodiment of the present invention, controls the electronic equipment and is in the lk stage and include:
It controls the electronic equipment and enters fastboot mode;
Under the fastboot mode, brush into the corresponding lk of the electronic equipment;
Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
In order to realize the resetting of storage medium, and then realize the replacement of CPU, the present invention provides storage mediums to reset when institute
The environment needed.
Electronic equipment is in the lk stage by controlling electronic devices, come environment required when providing resetting for storage medium.
Electronic equipment controls itself into fastboot mode first, and the control itself, which enters fastboot mode, can be
When electronic equipment determination needs to carry out CPU replacement, itself is automatically controlled into fastboot mode, electronic equipment is can be and is opening
During machine, after the fastboot mode selecting operation for receiving user, itself is controlled into fastboot mode etc..
Electronic equipment determine itself enter fastboot mode after, under the fastboot mode, brush into electronic equipment pair
The lk answered, demand of the different electronic equipments to lk may be identical or different, therefore the corresponding lk of distinct electronic apparatuses may phase
With possible difference, brushing can guarantee that storage medium can more steadily realize resetting into the corresponding lk of electronic equipment.
If the corresponding lk of electronic equipment is interpreted as lk system, brush can be used into the corresponding lk of electronic equipment it is existing
Technology is realized, is not repeated them here in embodiments of the present invention.
After brushing the corresponding lk of electronic equipment, the electronic equipment is restarted, controlling electronic devices enters the lk stage, restarts electronics
The process of equipment belongs to the prior art, does not repeat them here in embodiments of the present invention.
Because electronic equipment brush has entered corresponding lk, after restarting the electronic equipment, it can be restarted automatically the lk stage, thus real
Existing controlling electronic devices enters the lk stage.
After electronic equipment enters the lk stage, environment required when storage medium resetting is provided, has been storage medium
Preliminary preparation has been carried out in resetting, to realize the resetting of follow-up storage medium, and then realizes the replacement of CPU.
Embodiment 3:
On the basis of the various embodiments described above, in the embodiment of the present invention, the storage medium of the electronic equipment is corresponding solid
Part is to be determined according to the mark of the affiliated producer of the storage medium and/or the product identification of the storage medium.
In order to guarantee the stability of electronic equipment after CPU is replaced, the corresponding firmware of storage medium is written to by electronic equipment
In storage medium, the stability that can guarantee resetting when the resetting of follow-up storage medium is carried out.
Electronic equipment, which obtains the corresponding firmware of storage medium, can be after-sales staff for the corresponding firmware guarantor of the storage medium
It deposits and can be electronic equipment in the electronic device according to the mark of the affiliated producer of storage medium and/or the production of the storage medium
What product mark determined in multiple firmwares etc..
If electronic equipment is according to the mark of the affiliated producer of storage medium and/or the product identification of the storage medium more
It is determined in a firmware, the mark and/or product of the affiliated producer of the available storage medium installed to thereon of electronic equipment
Mark and firmware it is corresponding belonging to producer mark and/or product identification, by with the affiliated producer of storage medium installed thereon
Mark and/or the matched firmware of product identification, be determined as the corresponding firmware of the storage medium.
The mark of the affiliated producer of storage medium, that is, producer identifies and can be indicated with VendorID, the product identification of storage medium
It can be indicated with productID.
Then the corresponding firmware of the storage medium of the electronic equipment, which is written in the storage medium, can be understood as in lk
Stage burned corresponding firmware into storage medium according to different VendorID and productID.
The corresponding firmware of different storage mediums can with it is identical can be different.
The corresponding firmware of storage medium is determined if it is according to the mark of the affiliated producer of storage medium, then affiliated producer is identical
The corresponding firmware of storage medium can be identical, the corresponding firmware of the different storage medium of affiliated producer can be different.If it is
It is deposited according to the product identification of storage medium, or according to the mark of the affiliated producer of storage medium and the product identification determination of storage medium
The corresponding firmware of storage media, then the corresponding firmware of different storage mediums can be different.Certainly, in order to guarantee the pervasive of firmware
Property, the corresponding firmware of storage medium that supplier provides can be all the same.
Since the corresponding firmware of storage medium is written in storage medium by electronic equipment in the embodiment of the present invention, after progress
It can guarantee the stability of resetting when renewing the resetting of storage media, and then ensure that the stability of electronic equipment after CPU replacement.
Embodiment 4:
It is described to deposit if the storage medium includes eMMC in the embodiment of the present invention on the basis of the various embodiments described above
The corresponding resetting order of storage media includes eMMC CMD and argument order.
The corresponding resetting order of eMMC is provided only in the embodiment of the present invention, it is believed that those skilled in the art,
When storage medium includes eMCP and UFS, using its corresponding resetting order to storage medium carry out resetting be it will be apparent that because
This is not repeated them here in embodiments of the present invention.
Specifically, if the storage medium includes eMMC, eMMC CMD indicates the resetting command type, argument table
Show the parameter in the resetting order, eMMC CMD and argument order constitutes a complete resetting order.
If the storage medium includes eMMC, is ordered according to the corresponding resetting of the storage medium, write-in is corresponded to
Firmware storage medium reset be understood that emmc CMD and argument for the reset provided according to supplier into
Row packaging is sent to the end eMMC, after waiting resettings order to be sent completely, waits for a period of time and is restarted, carries out the weight of storage medium
It sets.
It determines whether resetting order is sent completely can be and preserves the first duration, be sent to the end eMMC when resetting is ordered
Duration when reaching the first duration, determine that resetting order is sent completely, can be after eMMC termination receives resetting order, to CPU
Returning response determines that resetting order is sent completely after receiving response.
In order to guarantee to realize restarting for storage medium, after determining that resetting order is sent completely, after waiting for a period of time
Restarted again, this can be for a period of time the second duration saved in electronic equipment, after determining that resetting order is sent completely, open
Dynamic timer timing, is restarted when the duration of timing reaches the second duration.
Due to ensure that storage medium can be complete the embodiment of the invention provides the corresponding resetting order of storage medium
At resetting, and then realize the replacement of CPU.
Embodiment 5:
On the basis of the various embodiments described above, in the embodiment of the present invention, after the storage medium and replacement by after resetting
CPU bound before, the method also includes:
Whether the mode for judging the current USB got is downloading mode;
If so, carrying out subsequent step.
The available mode to current USB of electronic equipment, the process for obtaining the mode of current USB belong to the prior art,
It does not repeat them here in embodiments of the present invention.
After electronic equipment gets the mode of current USB, it can be determined that whether the mode of current USB is that downloading mode is
It is no be DL mode, if so, determine current storage media be sky piece state, reset successfully, thus progress it is subsequent will be after resetting
Storage medium is bound with the CPU after replacement, realizes the replacement of CPU, if not, determine current storage media resetting, it can be with
Directly the storage medium is reset again, after-sales staff can also be reminded, determined whether also to need by after-sales staff to this
Storage medium re-starts resetting etc..
By taking storage medium includes eMMC as an example, gives one example in the embodiment of the present invention and the various embodiments described above are said
It is bright, by brushing into specified lk and then restarting, selected in the lk stage according to the vendorID and ProductID of eMMC different
EMMC firmware, and brush in eMMCc, the order (CMD and argument of eMMC) of corresponding reset is packed later to eMMC
Reset is carried out, reset order, which executes, to be completed to be restarted later, and mobile phone enters DL (downloading) mode, determines that eMMC completes weight
It sets, the storage medium after resetting and the CPU after replacement is bound.
Due to the embodiment of the present invention determine current USB mode be downloading mode after, by after resetting storage medium with more
CPU after changing is bound, to realize the replacement of CPU.
Embodiment 6:
On the basis of the various embodiments described above, the embodiment of the invention also provides a kind of electronic equipment, as shown in Fig. 2, packet
It includes: processor 201, communication interface 202, memory 203 and communication bus 204, wherein processor 201, communication interface 202 are deposited
Reservoir 203 completes mutual communication by communication bus 204;
It is stored with computer program in the memory 203, when described program is executed by the processor 201, so that
The processor 201 executes following steps:
If the electronic equipment is currently at the lk stage, the corresponding firmware of the storage medium of the electronic equipment is written
In the storage medium;
According to the corresponding resetting order of the storage medium, the storage medium that corresponding firmware is written is reset;
Storage medium after resetting and the CPU after replacement are bound.
CPU replacing options provided in an embodiment of the present invention are applied to electronic equipment.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 202 is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital command processor (Digital Signal Processing, DSP), dedicated collection
At circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
The processor enters fastboot mode specifically for controlling the electronic equipment;In the fastboot mould
Under formula, brush into the corresponding lk of the electronic equipment;Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
The corresponding firmware of the storage medium of the electronic equipment be according to the mark of the affiliated producer of the storage medium and/or
What the product identification of the storage medium determined.
The storage medium comprises at least one of the following: eMMC, eMCP and UFS.
If the storage medium includes eMMC, the corresponding resetting order of the storage medium include eMMC CMD and
Argument order.
The processor is also used to judge whether the mode of the current USB got is downloading mode;If so, will weigh
CPU after the storage medium postponed and replacement is bound.
In embodiments of the present invention, when processor executes the program stored on memory, realize storage medium in electronics
Resetting can be realized under the software environment of equipment, and bound with the new CPU after replacement, there is no need to carry out storage medium
Dismantling can locally carry out the resetting of storage medium and the binding of new CPU in electronic equipment there are no that storage medium must be returned factory,
CPU replacement process is simplified, the time cycle is shortened, improves CPU replacement efficiency.
Embodiment 7:
On the basis of the various embodiments described above, the embodiment of the invention also provides a kind of computers to store readable storage medium
Matter is stored with the computer program that can be executed by electronic equipment in the computer readable storage medium, when described program is in institute
It states when being run on electronic equipment, so that the electronic equipment realizes following steps when executing:
If the electronic equipment is currently at the lk stage, the corresponding firmware of the storage medium of the electronic equipment is written
In the storage medium;
According to the corresponding resetting order of the storage medium, the storage medium that corresponding firmware is written is reset;
Storage medium after resetting and the CPU after replacement are bound.
Above-mentioned computer readable storage medium can be any usable medium that the processor in electronic equipment can access
Or data storage device, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory
Such as CD, DVD, BD, HVD and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND
FLASH), solid state hard disk (SSD) etc..
The processor enters fastboot mode specifically for controlling the electronic equipment;In the fastboot mould
Under formula, brush into the corresponding lk of the electronic equipment;Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
The corresponding firmware of the storage medium of the electronic equipment be according to the mark of the affiliated producer of the storage medium and/or
What the product identification of the storage medium determined.
The storage medium comprises at least one of the following: eMMC, eMCP and UFS.
If the storage medium includes eMMC, the corresponding resetting order of the storage medium include eMMC CMD and
Argument order.
The processor is also used to judge whether the mode of the current USB got is downloading mode;If so, will weigh
CPU after the storage medium postponed and replacement is bound.
Computer program, computer program are provided in the computer readable storage medium provided in embodiments of the present invention
When being executed by processor, realize that storage medium can be realized resetting under the software environment of electronic equipment, and with it is new after replacement
CPU is bound, and there is no need to disassemble storage medium, there are no that storage medium must be returned factory, is locally in electronic equipment
The resetting of storage medium and the binding of new CPU can be carried out, CPU replacement process is simplified, shortens the time cycle, improve CPU
Replace efficiency.
Fig. 3 is that a kind of CPU provided in an embodiment of the present invention replaces schematic device, is applied to electronic equipment, the device packet
It includes:
The storage of the electronic equipment is situated between by writing module 301 if being currently at the lk stage for the electronic equipment
The corresponding firmware of matter is written in the storage medium;
Module 302 is reset, for being ordered according to the corresponding resetting of the storage medium, the storage to corresponding firmware is written
Medium is reset;
Binding module 303, for binding the storage medium after resetting and the CPU after replacement.
Described device further include:
Control module 304 enters fastboot mode for controlling the electronic equipment;In the fastboot mode
Under, it brushes into the corresponding lk of the electronic equipment;Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
The corresponding firmware of the storage medium of the electronic equipment be according to the mark of the affiliated producer of the storage medium and/or
What the product identification of the storage medium determined.
The storage medium comprises at least one of the following: eMMC, eMCP and UFS.
If the storage medium includes eMMC, the corresponding resetting order of the storage medium include eMMC CMD and
Argument order.
The binding module 303 is also used to judge whether the mode of the current USB got is downloading mode;If so,
Storage medium after resetting and the CPU after replacement are bound.
Storage medium can be realized resetting under the software environment of electronic equipment in the embodiment of the present invention, and with after replacement
New CPU is bound, there is no need to disassemble storage medium, there are no storage medium must be returned to factory, in electronic equipment local
The resetting of storage medium and the binding of new CPU can be carried out, CPU replacement process is simplified, shortens the time cycle, improve
CPU replaces efficiency.
For systems/devices embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or an operation are distinguished with another entity or another operation, without necessarily requiring or implying these entities
Or there are any actual relationship or orders between operation.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (14)
1. a kind of central processor CPU replacing options, which is characterized in that it is applied to electronic equipment, this method comprises:
It, will be described in the corresponding firmware write-in of the storage medium of the electronic equipment if the electronic equipment is currently at the lk stage
In storage medium;
According to the corresponding resetting order of the storage medium, the storage medium that corresponding firmware is written is reset;
Storage medium after resetting and the CPU after replacement are bound.
2. the method as described in claim 1, which is characterized in that control the electronic equipment and be in the lk stage and include:
It controls the electronic equipment and enters fastboot mode;
Under the fastboot mode, brush into the corresponding lk of the electronic equipment;
Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
3. the method as described in claim 1, which is characterized in that according to the corresponding firmware of the storage medium of the electronic equipment
What the mark of the affiliated producer of storage medium and/or the product identification of the storage medium determined.
4. the method according to claim 1, which is characterized in that the storage medium comprises at least one of the following:
EMMC, eMCP and UFS.
5. method as claimed in claim 4, which is characterized in that if the storage medium includes eMMC, the storage medium
Corresponding resetting order includes eMMC CMD and argument order.
6. the method as described in claim 1, which is characterized in that CPU after the storage medium and replacement by after resetting into
Before row binding, the method also includes:
Whether the mode for judging the current USB got is downloading mode;
If so, carrying out subsequent step.
7. a kind of central processor CPU more changing device, which is characterized in that be applied to electronic equipment, which includes:
Writing module, it is if being currently at the lk stage for the electronic equipment, the storage medium of the electronic equipment is corresponding
Firmware be written in the storage medium;
Reset module, for being ordered according to the corresponding resetting of the storage medium, to the storage medium of the corresponding firmware of write-in into
Row resetting;
Binding module, for binding the storage medium after resetting and the CPU after replacement.
8. device as claimed in claim 7, which is characterized in that described device further include:
Control module enters fastboot mode for controlling the electronic equipment;Under the fastboot mode, brush into institute
State the corresponding lk of electronic equipment;Restart the electronic equipment, controls the electronic equipment and enter the lk stage.
9. device as claimed in claim 7, which is characterized in that according to the corresponding firmware of the storage medium of the electronic equipment
What the mark of the affiliated producer of storage medium and/or the product identification of the storage medium determined.
10. such as the described in any item devices of claim 7-9, which is characterized in that the storage medium comprises at least one of the following:
EMMC, eMCP and UFS.
11. device as claimed in claim 10, which is characterized in that if the storage medium includes eMMC, the storage is situated between
The corresponding resetting order of matter includes eMMC CMD and argument order.
12. device as claimed in claim 7, which is characterized in that the binding module is also used to judge to get current
Whether the mode of USB is downloading mode;If so, the storage medium after resetting and the CPU after replacement are bound.
13. a kind of electronic equipment characterized by comprising processor, communication interface, memory and communication bus, wherein place
Device, communication interface are managed, memory completes mutual communication by communication bus;
It is stored with computer program in the memory, when described program is executed by the processor, so that the processor
Perform claim requires the step of any one of 1~6 the method.
14. a kind of computer readable storage medium, which is characterized in that it is stored with the computer journey that can be executed by electronic equipment
Sequence, when described program is run on the electronic equipment, so that the electronic equipment perform claim requires any one of 1~6 institute
The step of stating method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811590081.XA CN109669707A (en) | 2018-12-25 | 2018-12-25 | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811590081.XA CN109669707A (en) | 2018-12-25 | 2018-12-25 | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109669707A true CN109669707A (en) | 2019-04-23 |
Family
ID=66146038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811590081.XA Pending CN109669707A (en) | 2018-12-25 | 2018-12-25 | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669707A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001320516A (en) * | 2000-05-09 | 2001-11-16 | Canon Inc | Facsimile equipment, communication system, method for standby control with low power consumption, and storage medium |
CN1936837A (en) * | 2005-09-22 | 2007-03-28 | 英华达(上海)电子有限公司 | Method for quickly changing hand-set fixer using USB interface |
CN107422993A (en) * | 2017-07-31 | 2017-12-01 | 北京小米移动软件有限公司 | The processing unit and system of embedded memory |
CN107463341A (en) * | 2017-08-25 | 2017-12-12 | 上海闻泰电子科技有限公司 | Method for deleting, device and the mobile terminal of FLASH chip |
-
2018
- 2018-12-25 CN CN201811590081.XA patent/CN109669707A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001320516A (en) * | 2000-05-09 | 2001-11-16 | Canon Inc | Facsimile equipment, communication system, method for standby control with low power consumption, and storage medium |
CN1936837A (en) * | 2005-09-22 | 2007-03-28 | 英华达(上海)电子有限公司 | Method for quickly changing hand-set fixer using USB interface |
CN107422993A (en) * | 2017-07-31 | 2017-12-01 | 北京小米移动软件有限公司 | The processing unit and system of embedded memory |
CN107463341A (en) * | 2017-08-25 | 2017-12-12 | 上海闻泰电子科技有限公司 | Method for deleting, device and the mobile terminal of FLASH chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10958524B2 (en) | Method for generating network slice template and for applying network slice template, and apparatus | |
CN109034814B (en) | Intelligent contract processing method and device based on Etheng virtual machine | |
CN105324760B (en) | Pre-configured and pretrigger computing resource | |
CN104199706A (en) | Firmware upgrade method and device for eMMC | |
CN108345462B (en) | Method and device for upgrading components | |
CN104461698A (en) | Dynamic virtual disk mounting method, virtual disk management device and distributed storage system | |
CN103853586A (en) | Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer | |
WO2016078263A1 (en) | Upgrading control device and terminal, terminal upgrading method and system, and storage medium | |
CN111124286A (en) | Libcloud-based multi-cloud management implementation method | |
CN107770299A (en) | A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium | |
US10284415B1 (en) | Time-based computing instances | |
CN104040517B (en) | A kind of hard-disk system operating method, storage system and processor | |
CN108304044A (en) | A kind of setting method and system of NVME hard disk hot-plugs | |
US11237761B2 (en) | Management of multiple physical function nonvolatile memory devices | |
CN103686821A (en) | Control method for application program traffic statistics according to unique identification of mobile terminal | |
CN104461589A (en) | Single-chip microcomputer updating method and system | |
CN114595058A (en) | Model training method and device based on GPU (graphics processing Unit) resources, electronic equipment and storage medium | |
CN110222019B (en) | Method and device for adjusting space occupied by file system | |
CN109669707A (en) | A kind of CPU replacing options, device, electronic equipment and readable storage medium storing program for executing | |
CN107957878B (en) | Embedded equipment software online upgrading method based on storage resource redistribution | |
CN109039765A (en) | Network collocating method and device | |
CN106951288B (en) | Development and application method and device of hot upgrade resource | |
CN109254928A (en) | A kind of method of log processing, system, equipment and computer readable storage medium | |
US11017417B1 (en) | Using incentives to manage computing resources | |
CN104778144B (en) | Intelligent terminal method of controlling operation thereof and device based on OTG |
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: 20190423 |
|
RJ01 | Rejection of invention patent application after publication |