CN103810004A - Method and device for upgrading embedded system as well as equipment - Google Patents

Method and device for upgrading embedded system as well as equipment Download PDF

Info

Publication number
CN103810004A
CN103810004A CN201310598439.4A CN201310598439A CN103810004A CN 103810004 A CN103810004 A CN 103810004A CN 201310598439 A CN201310598439 A CN 201310598439A CN 103810004 A CN103810004 A CN 103810004A
Authority
CN
China
Prior art keywords
embedded system
embedded
started
upgrading
startup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310598439.4A
Other languages
Chinese (zh)
Other versions
CN103810004B (en
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.)
Xiaomi Inc
Xiaomi Technology Wuhan Co Ltd
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310598439.4A priority Critical patent/CN103810004B/en
Publication of CN103810004A publication Critical patent/CN103810004A/en
Application granted granted Critical
Publication of CN103810004B publication Critical patent/CN103810004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and a device for upgrading an embedded system as well as equipment, and belongs to the technical field of computers. The method is as follows: an embedded system with the largest system version number and the starting capacity at present in at least two existing embedded systems is determined as a to-be-started first embedded system, and the first embedded system is started; and a system upgrade patch is acquired under the first embedded system and written in a storage medium partition corresponding to a second embedded system, and upgrade of the second embedded system is finished. The embedded system with the largest system version number and the starting capacity at present in at least two existing embedded systems is determined as the to-be-started first embedded system, the system upgrade patch acquired under the first embedded system is written in the storage medium partition corresponding to the second embedded system after the first embedded system is started, upgrade of the second embedded system is finished, and the upgrade method of the embedded system is expanded.

Description

Method, device and the equipment of embedded system upgrading
Technical field
The disclosure is directed to field of computer technology, especially a kind of method, device and equipment of embedded system upgrading.
Background technology
Along with the continuous progress of society, the embedded device of implanting embedded system relies on the features such as its high reliability having and time limit high life, has been widely used in the field such as traffic, water conservancy.In computer technology fast development instantly, each field requires also day by day improving to the system performance of embedded device.Therefore, how the embedded system of embedded device is upgraded, to meet system performance requirement embedded device being improved each field day by day, become the problem that those skilled in the art comparatively pay close attention to.
Correlation technique, before embedded system is upgraded, is implanted single embedded system in the storage media of embedded device.In the time that embedded system is upgraded, first determine whether embedded device is set up network with the exploitation main frame (host) of far-end and connected; Set up with the exploitation main frame of far-end after network connection at definite embedded device, obtained the AKU of embedded system by serial ports or network interface from developing main frame; Afterwards, the AKU of the embedded system getting is written in the storage media of embedded device, and starts the embedded system after upgrading.
Realizing in process of the present invention, inventor finds that correlation technique at least exists following problem:
In the embedded system upgrading mode that correlation technique provides, only in the storage media of embedded device, implant single embedded system, therefore require can not have abnormal conditions in escalation process, such as, in escalation process embedded device can not power-off or AKU itself can not exist extremely; If there are abnormal conditions in escalation process, may cause embedded system to be upgraded unsuccessfully, even cause whole embedded device unavailable, so the upgrading mode of this kind of embedded system has very strong limitation.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of method, device and equipment of embedded system upgrading.
On the one hand, the disclosure provides a kind of method of embedded system upgrading; Described method comprises:
In already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start described the first embedded system;
Under described the first embedded system, obtain system upgrade bag, described system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to described the second embedded system.
Alternatively, also comprise:
For storage media subregion corresponding to different embedded system logical partitionings, and implant corresponding embedded system in corresponding storage media subregion.
Alternatively, described the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that described the first embedded system comprises are stored in storage media subregion corresponding to described the first embedded system;
Described the first embedded system of described startup, comprising:
The kernel image file of described first embedded system of storing in storage media subregion corresponding described the first embedded system is loaded in internal memory and is moved, and the root file system image file of the first embedded system described in carry.
Alternatively, described system upgrade bag comprises kernel image file and the root file system image file after upgrading;
Described described system upgrade bag is write in storage media subregion corresponding to the second embedded system, comprising: the kernel image file after the upgrading that described system upgrade bag is comprised and root file system image file write in storage media subregion corresponding to described the second embedded system.
Alternatively, also comprise:
Described system upgrade bag is carried out to verification;
After verification succeeds, described system upgrade bag is write in storage media subregion corresponding to the second embedded system.
Alternatively, described in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, comprising:
Determine that according to the first startup mark the embedded system whether other not being started upgrades under the upper embedded system once starting;
If the embedded system under the upper embedded system once starting, other not being started is upgraded, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, described the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Described second starts mark for identifying the last embedded system starting.
Alternatively, also comprise:
If the embedded system other not being started under the upper embedded system once starting is upgraded, the embedded system last time being started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
Alternatively, described in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, comprising:
If having the embedded device of described already present at least two embedded systems is initial start-up, determine the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the described the 3rd starts mark for identifying the embedded system of current startup.
On the other hand, the disclosure provides a kind of device of embedded system upgrading; Described device comprises:
Determination module, for determining current first embedded system to be started with startup ability in already present at least two embedded systems;
Start module, the first embedded system of determining for starting described determination module;
Acquisition module, for obtaining system upgrade bag under the first embedded system starting in described startup module;
Upgrading module, writes storage media subregion corresponding to the second embedded system for the system upgrade bag that described acquisition module is got, and completes the upgrading to described the second embedded system.
Alternatively, described device also comprises:
Divide module, be used to storage media subregion corresponding to different embedded system logical partitionings;
Implant module, implants corresponding embedded system for the corresponding storage media subregion in described division Module Division.
Alternatively, described the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that described the first embedded system comprises are stored in storage media subregion corresponding to described the first embedded system;
Described startup module, comprising:
Loading unit, is loaded in internal memory and moves for the kernel image file of described the first embedded system that storage media subregion corresponding described the first embedded system is stored;
Carry unit, for the root file system image file of the first embedded system described in carry.
Alternatively, described system upgrade bag comprises kernel image file and the root file system image file after upgrading;
Described upgrading module, writes storage media subregion corresponding to described the second embedded system for the kernel image file after the upgrading that described system upgrade bag is comprised and root file system image file.
Alternatively, described device also comprises:
Correction verification module, for carrying out verification to described system upgrade bag;
Described upgrading module, for when after described correction verification module verification succeeds, writes described system upgrade bag in storage media subregion corresponding to the second embedded system.
Alternatively, described determination module comprises:
The first determining unit, for determining that according to the first startup mark the embedded system whether other not being started under the upper embedded system once starting upgrades;
The second determining unit, carry out after upgrading for determine the embedded system under the upper embedded system once starting, other not being started when described the first determining unit, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, described the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Described second starts mark for identifying the last embedded system starting.
Alternatively, described determination module also comprises:
The 3rd determining unit, for determine that when described the first determining unit the embedded system other not being started is upgraded under the upper embedded system once starting after, the embedded system that last time is started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
Alternatively, described determination module comprises:
The 4th determining unit, in the time having the embedded device of described already present at least two embedded systems and be initial start-up, determines the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the described the 3rd starts mark for identifying the embedded system of current startup.
On the one hand, the disclosure provides a kind of equipment again; Described equipment includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be carried out by more than one or one processor, and described more than one or one routine package contains for carrying out the instruction of following operation:
In already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start described the first embedded system;
Under described the first embedded system, obtain system upgrade bag, described system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to described the second embedded system.
Beneficial effects more of the present disclosure can comprise:
In already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start after the first embedded system, under the first embedded system, obtain system upgrade bag, and system upgrade bag is write in storage media corresponding to the second embedded system, thereby expand the mode of embedded system upgrading, reached the object of embedded system upgrading.
Should be understood that, it is only exemplary that above general description and details are hereinafter described, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the disclosure, forms the application's a part, does not form restriction of the present disclosure.In the accompanying drawings:
Fig. 1 is the exemplary process diagram of the method for a kind of embedded system upgrading that provides of embodiment of the disclosure;
Fig. 2 is the exemplary process diagram of the method for a kind of embedded system upgrading that provides of another embodiment of the disclosure;
Fig. 3 is the example arrangement schematic diagram of the device of the first embedded system upgrading that provides of another embodiment of the disclosure;
Fig. 4 is the example arrangement schematic diagram of the device of the second embedded system upgrading that provides of another embodiment of the disclosure;
Fig. 5 is a kind of exemplary internal structure schematic diagram that starts module that another embodiment of the disclosure provides;
Fig. 6 is the example arrangement schematic diagram of the device of the third embedded system upgrading of providing of another embodiment of the disclosure;
Fig. 7 is the exemplary internal structure schematic diagram of the first determination module of providing of another embodiment of the disclosure;
Fig. 8 is the exemplary internal structure schematic diagram of the second determination module of providing of another embodiment of the disclosure;
Fig. 9 is the exemplary internal structure schematic diagram of the third determination module of providing of another embodiment of the disclosure;
Figure 10 is the example arrangement schematic diagram of a kind of terminal device of providing of another embodiment of the disclosure.
By above-mentioned accompanying drawing, the embodiment that the disclosure is clear and definite has been shown, will there is hereinafter more detailed description.These accompanying drawings and text description are not the scope in order to limit disclosure design by any mode, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearer, below in conjunction with embodiment and accompanying drawing, the disclosure is described in further details.At this, exemplary embodiment of the present disclosure and explanation thereof are used for explaining the disclosure, but not as to restriction of the present disclosure.
Disclosure embodiment provides a kind of method of embedded system upgrading, is applied to and implants the embedded device or the terminal that there are embedded system.In embedded system, include BootLoader(system start-up loading device), the section start that it is positioned at the flash memory of embedded device or terminal, is mainly used to startup system.BootLoader operation before the kernel operation of embedded system.Can initiating hardware equipment, set up memory headroom mapping graph, thereby take the hardware environment of embedded system to a suitable state, to be ready to correct environment for the kernel that finally calls embedded system.Below in conjunction with accompanying drawing and foregoing, the disclosure is elaborated.
In one embodiment, as shown in Figure 1, the method for embedded system upgrading comprises:
In step S101, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start the first embedded system;
In another embodiment, also comprise:
For storage media subregion corresponding to different embedded system logical partitionings, and implant corresponding embedded system in corresponding storage media subregion.
In another embodiment, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, includes but not limited to:
Determine that according to the first startup mark the embedded system whether other not being started upgrades under the upper embedded system once starting;
If the embedded system under the upper embedded system once starting, other not being started is upgraded, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Second starts mark for identifying the last embedded system starting.
In another embodiment, also comprise:
If the embedded system other not being started under the upper embedded system once starting is upgraded, the embedded system last time being started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
In another embodiment, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, includes but not limited to:
If having the embedded device of already present at least two embedded systems is initial start-up, determine the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the 3rd starts mark for identifying the embedded system of current startup.
In another embodiment, the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that the first embedded system comprises are stored in storage media subregion corresponding to the first embedded system;
Start the first embedded system, include but not limited to:
The kernel image file of first embedded system of storing in storage media subregion corresponding the first embedded system is loaded in internal memory and is moved, and the root file system image file of carry the first embedded system;
In step S102, under the first embedded system, obtain system upgrade bag, system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to the second embedded system.
In another embodiment, system upgrade bag comprises kernel image file and the root file system image file after upgrading;
System upgrade bag is write in storage media subregion corresponding to the second embedded system, comprising:
Kernel image file after the upgrading that system upgrade bag is comprised and root file system image file write in storage media subregion corresponding to the second embedded system.
In another embodiment, also comprise:
System upgrade bag is carried out to verification;
After verification succeeds, system upgrade bag is write in storage media subregion corresponding to the second embedded system.
The method that the present embodiment provides, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is the highest is as the first embedded system to be started, and start after the first embedded system, the system upgrade bag getting under the first embedded system is write in storage media subregion corresponding to the second embedded system, thereby complete the upgrading of the second embedded system, reach the object of embedded system upgrading.Under this kind of method, even if do not get system upgrade bag under the first embedded system, also can continue to move the first embedded system, even so the second embedded system is upgraded unsuccessfully, can not cause whole embedded device unavailable yet, therefore, the upgrading mode of this kind of embedded system has good extendability.
In another embodiment, to exist two embedded systems as example in embedded device, the method for the embedded system upgrading that the disclosure is provided is at length explained.As shown in Figure 2, the method for embedded system upgrading comprises:
In step S201, in already present two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start the first embedded system;
For this step, before carrying out this step, in advance the storage media of embedded device is carried out to logical partition, to obtain the each self-corresponding storage media subregion of two embedded systems to be implanted, thereby implant respectively corresponding embedded system in corresponding storage media subregion.
Wherein, in the time that the storage media of embedded device is carried out to logical partition, the quantity of the storage media subregion obtaining specifically can be 8, certainly outside the number of partitions divider value 8 of storage media, can also be other numerical value,, for example, 16 or 32 etc., the present embodiment is not done concrete restriction to the quantity of storage media subregion, is determined by the number of embedded system to be implanted.In addition, the size of each storage media subregion can be the same or different.For example, can divide the storage media subregion that storage space is less, be used for storing a class and start mark; Also can divide the storage media subregion that storage space is larger, be used for storing the associated documents of two embedded systems.The size of the storage media subregion that wherein, storage space is less can be 64 kilobyte; The size of the storage media subregion that storage space is larger specifically can be 4 gigabits.Certainly, the size of the storage media subregion that the storage media subregion that storage space is little and storage space are large is except above-mentioned numerical value, can also be other numerical value, for example 32 kilobyte or 2 gigabits, the present embodiment is not done concrete restriction equally to the size of each storage media subregion.
In another embodiment, the implementation of implanting respectively corresponding embedded system at the different storage media subregions of embedded device, includes but not limited to: the kernel image file of two embedded systems and root file system image file are write respectively to corresponding storage media subregion; And in other storage media subregions, write the BootLoader of two embedded systems.
Wherein, there is (preserving into disk file form), i.e. kernel image file in the kernel of embedded system form with file in embedded device; In embedded device, there is (preserving into disk file form), i.e. root file system image file with the form of file equally in root file system.In addition, because effect and the program code of the BootLoader of each embedded system are all consistent, therefore, in the time writing the kernel image file of two embedded systems and root file system image file, only need to write a BootLoader, just can control the startup of write two embedded systems, thereby reach the object of saving storage space.
Except the above-mentioned different storage media subregions at embedded device write the mode of corresponding embedded system, can also take other writing modes, the present embodiment is not done concrete restriction to this.
In another embodiment, in order to determine in already present two embedded systems that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, the method that the present embodiment provides also comprises that the first startup mark, the second startup mark and the 3rd startup are set to be identified, and the first startup mark, the second startup mark and the 3rd startup are identified to the step in the storage media subregion that writes respectively embedded device.
Wherein, first starts mark, can identify by symbol flag_where_reboot, starts for current subsystem, whether has carried out system upgrade for being illustrated in the last embedded system starting; The present embodiment represents " in the upper embedded system once starting, having carried out system upgrade " with flag_where_reboot=1; Flag_where_reboot=0 represents " in the upper embedded system once starting, not carrying out system upgrade ".
Second starts mark, can identify by symbol flag_last_success, start for current subsystem, and be which system of two embedded systems for identifying the last successful system starting; For example, if identify respectively with system 1 and system 2 two embedded systems that write, in the present embodiment, can the last successful system starting of flag_last_success=0 mark be system 1; The system starting with the last success of flag_last_success=1 mark is system 2.
The 3rd starts mark, can identify by symbol flag_last_boot_try, for embedded system initial start-up, can start when mark is determined embedded system initial start-up to start which embedded system according to the 3rd.For example, if identify respectively with system 1 and system 2 two embedded systems that write, while can flag_last_boot_try=0 in the present embodiment representing embedded system initial start-up, should start system 1; While representing embedded system initial start-up with flag_last_boot_try=0, should start system 2.
It should be noted that, above-mentioned the 3rd startup is identified at when embedded system upgrades successfully or embedded system normally starts, and all can not play a role.In the time of embedded system initial start-up or when embedded system starts fault, just can play a role.It is in order to determine while starting first to start which system, and continues to start another system in the time that definite this system starts unsuccessfully, for preventing what repeatedly start fault embedded system from arranging.Its concrete effect meeting is explained in conjunction with program code in subsequent step.
In another embodiment, setting after above-mentioned three startup marks, be respectively three and start mark initializes 0.In the time that the storage media subregion to embedded device writes above-mentioned three startup marks, in order to prevent breaking down in write-enable identification procedure in storage media subregion, thereby the startup that causes successfully writing mark lost efficacy, write on respectively in three storage media subregions that are different from the file of storing two embedded systems so start mark by above-mentioned three.
Start mark based on three of above-mentioned setting, in already present two embedded systems, determine embedded system that the current system version with startup ability the is number the highest implementation as the first embedded system to be started, include but not limited to:
Determine that according to the first startup mark the embedded system whether other not being started upgrades under the upper embedded system once starting;
If the embedded system under the upper embedded system once starting, other not being started is upgraded, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
If the embedded system other not being started under the upper embedded system once starting is upgraded, the embedded system last time being started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
In another embodiment, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, includes but not limited to:
If having the embedded device of already present at least two embedded systems is initial start-up, determine the first embedded system current to be started according to the 3rd currency that starts mark.
Now identify respectively two embedded systems with system 1 and system 2, the first startup is designated flag_where_reboot, and the value of flag_where_reboot is 0 or 1, the second startup is designated flag_last_success, and the value of flag_last_success is 0 or 1, the 3rd starts mark flag_last_boot_try, and the value of flag_last_boot_try is 0 or 1 for example, to above-mentioned in already present two embedded systems determine the current system version number the highest embedded system with startup ability explain visually as the first embedded system to be started.Wherein, each concrete meaning that starts the numeric representation of mark is introduced in the previous section of this step, repeats no more herein.Concrete steps are as follows:
The first step: the currency of determining the first startup mark flag_where_reboot;
Second step: if the currency of flag_where_reboot is 1, the currency of flag_where_reboot is composed to 0, and continue to determine that second starts the currency of mark flag_last_success;
The 3rd step: in second step, if the currency of flag_last_success is 1, determine that the first embedded system current to be started is system 1; If the currency of flag_last_success is 0, determine that the first embedded system current to be started is system 2;
The 4th step: in the first step, if the currency of flag_where_reboot is 0, continue to determine that second starts the currency of mark flag_last_success;
The 5th step: in the 4th step, if the second currency that starts mark flag_last_success is 1, start system 2; If the second currency that starts mark flag_last_success is 0, continue to determine that the 3rd starts the currency of mark flag_last_boot_try;
The 6th step: in the 5th step, if the 3rd currency that starts mark flag_last_boot_try is 0, starts system 1, and flag_last_boot_try is composed to 1; If the 3rd currency that starts mark flag_last_boot_try is 1, start system 2.
The implementation of the above-mentioned first step to the six steps, also can be realized by program code, and program code is specific as follows:
Figure BDA0000420331470000131
Figure BDA0000420331470000141
In another embodiment, start the implementation of the first embedded system, include but not limited to:
The kernel image file of first embedded system of storing in storage media corresponding the first embedded system is loaded in internal memory and is moved, and the root file system image file of carry the first embedded system.
Wherein, carry refers to an equipment (normally memory device, for example, storage media) is articulated in an already present catalogue.While wanting the file in accessing storage device, the subregion at file place need be mounted in an already present catalogue, then visit memory device by accessing this catalogue.
For root file system image file that can successful carry the first embedded system, before the root file system image file of carry the first embedded system, also be required to be each storage media subregion address is set respectively, and set up the mapping table of storage media subregion and address.Thereby search this mapping table and just can find the place storage media subregion of the root file system image file of the first embedded system according to storage media partition address; And then the root file system image file of successful carry the first embedded system.
In step S202, under the first embedded system, obtain system upgrade bag, system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to the second embedded system.
For this step, when embedded device is set up with the exploitation main frame of far-end after network connection, exploitation main frame is as the promoter of system upgrade task, detecting while there is new system upgrade bag, just initiatively to embedded device transmitting system upgrading order, to indicate embedded device to carry out system upgrade.And in order to make the clear and definite system upgrade bag that when obtains of embedded device, the method that the present embodiment provides also comprises the step that judges whether to receive system upgrade indication.
About the implementation that judges whether to receive system upgrade indication, include but not limited to:
Judge whether to receive the system upgrade order that comprises specific character that exploitation main frame sends; If receive the system upgrade order that comprises specific character, send the reply message of confirming to carry out system upgrade to exploitation main frame; If do not receive the system upgrade order that comprises specific character, executive system updating operation not.
Wherein, reply message and specifically can be ACK(Acknowledgement, acknowledge character) message, certainly, reply message except ACK message, can also be the message of other types, the present embodiment is not done concrete restriction to the type of replying message.
In another embodiment, under the first embedded system, obtain the implementation of system upgrade bag, include but not limited to:
The first embedded system receives each packet that far-end exploitation main frame sends, often receive after a packet, exploitation main frame to far-end sends acknowledge message, receive the checking data bag of the exploitation main frame transmission of far-end simultaneously, if packet verification is errorless, judge and successfully obtain this packet, and receive next packet to exploitation main frame back-checking result and the continuation of far-end; If packet verification is wrong, judgement does not get this packet.
Wherein, each packet is split as multiple data cells of regular length by the kernel image file of latest edition and root file system image file in advance by the exploitation main frame of far-end, and forms packet take each data cell as core.Wherein, packet comprises data packet head mark, command header, packet sequence, data cell, CRC check code, packet tail tag will and overall budget number etc.
Getting after system upgrade bag, whether complete for confirming the content of the system upgrade bag getting, to guarantee that the system upgrade bag that follow-up basis gets successfully upgrades to system, the method that the present embodiment provides also comprises the step of system upgrade bag being carried out to verification.
Wherein, system upgrade bag is carried out to the implementation of verification, includes but not limited to:
Whether the bag number of confirming the packet receiving is consistent with the overall budget number comprising in each packet; If the bag number of the packet receiving is consistent with the overall budget number comprising in each packet, to system upgrade bag verification succeeds, determine the content intact of the AKU getting.
Certainly, except above-mentioned mode of system upgrade bag being carried out to verification, also can take other verification modes, the present embodiment is not done concrete restriction to this.
Alternatively, after to system upgrade bag verification succeeds, system upgrade bag can be written in storage media subregion corresponding to the second embedded system.Wherein, system upgrade bag is written to the implementation in storage media subregion corresponding to the second embedded system, includes but not limited to:
The original packet of storing in storage media subregion corresponding the second embedded system is wiped, the system upgrade bag obtaining is written in storage media subregion corresponding to the second embedded system.Because system upgrade bag comprises kernel image file and the root file system image file after upgrading, system upgrade bag is write in storage media subregion corresponding to the second embedded system, comprising: the kernel image file after the upgrading that system upgrade bag is comprised and root file system image file write in storage media subregion corresponding to the second embedded system.By upgrading after kernel image file and root file system image file write storage media subregion corresponding to the second embedded system in after, owing in the first embedded system, the second embedded system being upgraded, therefore, the currency of the first startup mark need be upgraded, be updated to flag_where_reboot=1 by flag_where_reboot=0.
Alternatively, because the version of system upgrade bag is better than the version of the first embedded system, in order to guarantee the system works performance of embedded system, need to carry out embedded system switching, control the first embedded system out of service, and start the second embedded system after upgrading.Control the kernel image file of the first embedded system by BootLoader out of service.After control the first embedded system is out of service, restart the second embedded system.
Wherein, start the implementation of the second embedded system after upgrading, include but not limited to:
The kernel image file that the system upgrade bag of storing in storage media corresponding the second embedded system is comprised is loaded in internal memory and moves, and the root file system image file that comprises of carry system upgrade bag.
In another embodiment, in the time of the second embedded system starting after upgrading, the method that the present embodiment provides also comprises the step that judges whether successfully to start the second embedded system after upgrading; If successfully start the second embedded system after upgrading, the currency of the second startup mark and the 3rd currency that starts mark are upgraded.
About the implementation that judges whether successfully to start the second embedded system after upgrading, include but not limited to: whether the initialize routine that judges the second embedded system after upgrading starts; If the initialize routine successful operation of the second embedded system after upgrading, judges and successfully starts the second embedded system after upgrading; If the unsuccessful startup of initialization of the second embedded system after upgrading, judges the second embedded system after unsuccessful startup upgrading.
In addition, if successfully start the second embedded system after upgrading, the currency of the second startup mark and the 3rd currency that starts mark are upgraded.Take the second embedded system after upgrading as system 1 is as example, successfully starting after system 1, be that 0, the three currency assignment that starts mark flag_last_boot_try is 0 by the currency assignment of the second startup mark flag_last_success.
In addition, the present embodiment is only to exist two embedded systems as example in embedded device, and the method for the embedded system upgrading that the disclosure is provided is explained.In the time there is plural embedded system in embedded device, upgrading mode when two embedded systems of the same existence of system upgrade mode is similar.There are tri-embedded systems of system A, system B and system C in embedded device, the first embedded system of this startup is that system A is example, under system A, get after system upgrade bag, system upgrade bag can be written to respectively in the storage media subregion that storage media subregion neutralized system C that system B is corresponding is corresponding, also system B and system C all be upgraded; Like this, upper while once starting system, arbitrary system in system C after system B after upgrading and upgrading can be defined as having the system version number the highest embedded system of startup ability, and this is had to embedded system that the system version of startup ability is number the highest as this first embedded system to be started, and start this first embedded system.Under this first embedded system, obtain system upgrade bag, this system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to the second embedded system.Wherein, this second embedded system comprises two embedded systems; If the system B after upgrading is defined as having to the system version number the highest embedded system of startup ability, this second embedded system comprises system A and system C; If the system C after upgrading is defined as having to the system version number the highest embedded system of startup ability, this second embedded system comprises system A and system B.
The method that the present embodiment provides, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start after the first embedded system, the system upgrade bag getting under the first embedded system is write in storage media subregion corresponding to the second embedded system, thereby complete the upgrading of the second embedded system, reach the object of embedded system upgrading.Under this kind of method, even if do not get system upgrade bag under the first embedded system, also can continue to move the first embedded system, even so the second embedded system is upgraded unsuccessfully, can not cause whole embedded device unavailable yet, therefore, the upgrading mode of this kind of embedded system has good extendability.
In another embodiment, as shown in Figure 3, the device of embedded system upgrading comprises:
Determination module 31, for determining that in already present at least two embedded systems embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started;
Start module 32, the first embedded system of determining for starting determination module 31;
Acquisition module 33, for obtaining system upgrade bag under the first embedded system starting in startup module 32;
Upgrading module 34, writes storage media subregion corresponding to the second embedded system for the system upgrade bag that acquisition module 33 is got, and completes the upgrading to the second embedded system.
In another embodiment, referring to Fig. 4, this device also comprises:
Divide module 35, be used to storage media subregion corresponding to different embedded system logical partitionings;
Implant module 36, implants corresponding embedded system for the corresponding storage media subregion of dividing in division module 35.
In another embodiment, the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that the first embedded system comprises are stored in storage media subregion corresponding to the first embedded system;
Referring to Fig. 5, start module 32, comprising:
Loading unit 321, is loaded in internal memory and moves for the kernel image file of the first embedded system that storage media subregion corresponding the first embedded system is stored;
Carry unit 322, for the root file system image file of carry the first embedded system.
In another embodiment, system upgrade bag comprises kernel image file and the root file system image file after upgrading;
Upgrading module 34, writes storage media subregion corresponding to the second embedded system for the kernel image file after the upgrading that system upgrade bag is comprised and root file system image file.
In another embodiment, referring to Fig. 6, this device also comprises:
Correction verification module 37, for carrying out verification to system upgrade bag;
Upgrading module 34, for when after correction verification module 37 verification succeeds, writes system upgrade bag in storage media subregion corresponding to the second embedded system.
In another embodiment, referring to Fig. 7, determination module 31 comprises:
The first determining unit 311, for determining that according to the first startup mark the embedded system whether other not being started under the upper embedded system once starting upgrades;
The second determining unit 312, carry out after upgrading for determine the embedded system under the upper embedded system once starting, other not being started when the first determining unit 311, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Second starts mark for identifying the last embedded system starting.
In another embodiment, referring to Fig. 8, determination module 31 also comprises:
The 3rd determining unit 313, for determine that when the first determining unit 311 embedded system other not being started is upgraded under the upper embedded system once starting after, the embedded system that last time is started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
In another embodiment, referring to Fig. 9, determination module 31 comprises,
The 4th determining unit 314, in the time having the embedded device of already present at least two embedded systems and be initial start-up, determines the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the 3rd starts mark for identifying the embedded system of current startup.
The device that the present embodiment provides, in already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start after the first embedded system, the system upgrade bag getting under the first embedded system is write in storage media subregion corresponding to the second embedded system, thereby complete the upgrading of the second embedded system, reach the object of embedded system upgrading.Even if do not get system upgrade bag under the first embedded system, also can continue to move the first embedded system, so even if the second embedded system is upgraded unsuccessfully, also can not cause whole embedded device unavailable, therefore, the upgrading mode of this kind of embedded system has good extendability.
In another embodiment, Figure 10 is terminal device in the embodiment of the present invention (can be requesting party's terminal or associated terminal) structural representation.Referring to Figure 10, this terminal can be for the method for implementing to provide in above-described embodiment.Preferred:
Terminal device 1000 can comprise communication unit 110, include the storer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WIFI(Wireless Fidelity, Wireless Fidelity) module 170, include one or one parts such as processor 180 and power supply 190 of processing above core.It will be understood by those skilled in the art that the terminal device structure shown in figure does not form the restriction to terminal device, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, in the time that communication unit 110 is RF circuit, after the downlink information of base station is received, transfer to more than one or one processor 180 to process; In addition, send to base station by relating to up data.Conventionally, include but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier as the RF circuit of communication unit), diplexer etc.In addition, communication unit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM(Global System of Mobile communication, global system for mobile communications), GPRS(General Packet Radio Service, general packet radio service), CDMA(Code Division Multiple Access, CDMA), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE(Long Term Evolution, Long Term Evolution), Email, SMS(Short Messaging Service, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, thereby carries out various function application and data processing.Storer 120 can mainly comprise storage program district and storage data field, wherein, and the application program (such as sound-playing function, image player function etc.) that storage program district can storage operation system, at least one function is required etc.; The data (such as voice data, phone directory etc.) that create according to the use of terminal device 1000 etc. can be stored in storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that processor 180 and the access of input block 130 to storer 120 to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation is inputted with user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Alternatively, input block 130 can comprise touch-sensitive surperficial 131 and other input equipments 132.Touch-sensitive surperficial 131, also referred to as touch display screen or Trackpad, can collect user or near touch operation (using any applicable object or near the operations of annex on touch-sensitive surperficial 131 or touch-sensitive surperficial 131 such as finger, stylus such as user) thereon, and drive corresponding coupling arrangement according to predefined formula.Optionally, touch-sensitive surperficial 131 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch-sensitive surperficial 131.Except touch-sensitive surperficial 131, input block 130 can also comprise other input equipments 132.Alternatively, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for showing the information inputted by user or the various graphical user interface of the information that offers user and terminal device 1000, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, can adopt LCD(Liquid Crystal Display, liquid crystal display), OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display panel 141.Further, touch-sensitive surperficial 131 can cover display panel 141, when touch-sensitive surperficial 131 detect thereon or near touch operation after, send processor 180 to determine the type of touch event, corresponding vision output is provided according to the type of touch event with preprocessor 180 on display panel 141.Although in Figure 10, touch-sensitive surperficial 131 with display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by touch-sensitive surperficial 131 and display panel 141 integrated and realize input and output function.
Terminal device 1000 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor can regulate according to the light and shade of ambient light the brightness of display panel 141, and proximity transducer can, in the time that terminal device 1000 moves in one's ear, cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of the acceleration that (is generally three axles) in all directions, when static, can detect size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as passometer, knock) of mobile phone attitude etc.; As for also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor of terminal device 1000, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal device 1000.Voicefrequency circuit 160 can, by the electric signal after the voice data conversion receiving, be transferred to loudspeaker 161, is converted to voice signal output by loudspeaker 161; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160, be converted to voice data, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal device, or export voice data to storer 120 so as further process.Voicefrequency circuit 160 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal device 1000 to be provided.
In order to realize radio communication, on this terminal device, can dispose wireless communication unit 170, this wireless communication unit 170 can be WIFI module.WIFI belongs to short range wireless transmission technology, terminal device 1000 by wireless communication unit 170 can help that user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for user.Although there is shown wireless communication unit 170, be understandable that, it does not belong to must forming of terminal device 1000, completely can be as required in the essential scope that does not change invention and omit.
Processor 180 is control centers of terminal device 1000, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out the software program and/or the module that are stored in storer 120, and call the data that are stored in storer 120, carry out various functions and the deal with data of terminal device 1000, thereby mobile phone is carried out to integral monitoring.Optionally, processor 180 can comprise one or more processing cores; Preferably, processor 180 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal device 1000 also comprises that the power supply 190(powering to all parts is such as battery), preferably, power supply can be connected with processor 180 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise the random component such as one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 1000 can also comprise camera, bluetooth module etc., does not repeat them here.In the present embodiment, terminal device also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to carry out described more than one or one routine package containing the instruction for carrying out the method that the embodiment of the present invention provides by more than one or one processor.
Although disclosed content shows exemplary embodiment of the present disclosure above, it should be noted that under the prerequisite of the scope of the present disclosure that does not deviate from claim restriction, can carry out multiple change and modification.Need not carry out with any particular order according to the function of the claim to a method of disclosed embodiment described herein, step and/or action.In addition, although element of the present disclosure can be with individual formal description or requirement, also it is contemplated that multiple, unless be clearly restricted to odd number.
Above-described embodiment; object of the present disclosure, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only embodiment of the present disclosure; and be not used in limit protection domain of the present disclosure; all within spirit of the present disclosure and principle, any modification of making, be equal to replacement, improvement etc., within all should being included in protection domain of the present disclosure.

Claims (17)

1. a method for embedded system upgrading, is characterized in that, described method comprises:
In already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start described the first embedded system;
Under described the first embedded system, obtain system upgrade bag, described system upgrade bag is write in storage media subregion corresponding to the second embedded system, complete the upgrading to described the second embedded system.
2. method according to claim 1, is characterized in that, also comprises:
For storage media subregion corresponding to different embedded system logical partitionings, and implant corresponding embedded system in corresponding storage media subregion.
3. method according to claim 1, it is characterized in that, described the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that described the first embedded system comprises are stored in storage media subregion corresponding to described the first embedded system;
Described the first embedded system of described startup, comprising:
The kernel image file of described first embedded system of storing in storage media subregion corresponding described the first embedded system is loaded in internal memory and is moved, and the root file system image file of the first embedded system described in carry.
4. method according to claim 1, is characterized in that, described system upgrade bag comprises kernel image file and the root file system image file after upgrading;
Described described system upgrade bag is write in storage media subregion corresponding to the second embedded system, comprising:
Kernel image file after the upgrading that described system upgrade bag is comprised and root file system image file write in storage media subregion corresponding to described the second embedded system.
5. method according to claim 1, is characterized in that, also comprises:
Described system upgrade bag is carried out to verification;
After verification succeeds, described system upgrade bag is write in storage media subregion corresponding to the second embedded system.
6. method according to claim 1, is characterized in that, described in already present at least two embedded systems, determines that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, comprising:
Determine that according to the first startup mark the embedded system whether other not being started upgrades under the upper embedded system once starting;
If the embedded system under the upper embedded system once starting, other not being started is upgraded, determine the embedded system of last upgrading according to the second startup mark, embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, described the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Described second starts mark for identifying the last embedded system starting.
7. method according to claim 6, is characterized in that, also comprises:
If the embedded system other not being started under the upper embedded system once starting is upgraded, the embedded system last time being started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
8. method according to claim 1, is characterized in that, described in already present at least two embedded systems, determines that embedded system that the current system version with startup ability is number the highest, as the first embedded system to be started, comprising:
If having the embedded device of described already present at least two embedded systems is initial start-up, determine the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the described the 3rd starts mark for identifying the embedded system of current startup.
9. a device for embedded system upgrading, is characterized in that, described device comprises:
Determination module, for determining that in already present at least two embedded systems embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started;
Start module, the first embedded system of determining for starting described determination module;
Acquisition module, for obtaining system upgrade bag under the first embedded system starting in described startup module;
Upgrading module, writes storage media subregion corresponding to the second embedded system for the system upgrade bag that described acquisition module is got, and completes the upgrading to described the second embedded system.
10. device according to claim 9, is characterized in that, described device also comprises:
Divide module, be used to storage media subregion corresponding to different embedded system logical partitionings;
Implant module, implants corresponding embedded system for the corresponding storage media subregion in described division Module Division.
11. devices according to claim 9, it is characterized in that, described the first embedded system comprises kernel image file and root file system image file, and kernel image file and root file system image file that described the first embedded system comprises are stored in storage media subregion corresponding to described the first embedded system;
Described startup module, comprising:
Loading unit, is loaded in internal memory and moves for the kernel image file of described the first embedded system that storage media subregion corresponding described the first embedded system is stored;
Carry unit, for the root file system image file of the first embedded system described in carry.
12. devices according to claim 9, is characterized in that, described system upgrade bag comprises kernel image file and the root file system image file after upgrading;
Described upgrading module, writes storage media subregion corresponding to described the second embedded system for the kernel image file after the upgrading that described system upgrade bag is comprised and root file system image file.
13. devices according to claim 9, is characterized in that, described device also comprises:
Correction verification module, for carrying out verification to described system upgrade bag;
Described upgrading module, for when after described correction verification module verification succeeds, writes described system upgrade bag in storage media subregion corresponding to the second embedded system.
14. devices according to claim 9, is characterized in that, described determination module comprises:
The first determining unit, for determining that according to the first startup mark the embedded system whether other not being started under the upper embedded system once starting upgrades;
The second determining unit, carry out after upgrading for determine the embedded system under the upper embedded system once starting, other not being started when described the first determining unit, determine the embedded system of last upgrading according to the second startup mark, and the embedded system after last time upgrading is defined as to the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started;
Wherein, described the first startup mark is upgraded for being identified at the embedded system whether other not being started under the last embedded system starting; Described second starts mark for identifying the last embedded system starting.
15. devices according to claim 14, is characterized in that, described determination module also comprises:
The 3rd determining unit, for determine that when described the first determining unit the embedded system other not being started is upgraded under the upper embedded system once starting after, the embedded system that last time is started is defined as the current system version number the highest embedded system with startup ability, and using embedded system number the highest the current system version with startup ability as the first embedded system to be started.
16. devices according to claim 9, is characterized in that, described determination module comprises:
The 4th determining unit, in the time having the embedded device of described already present at least two embedded systems and be initial start-up, determines the first embedded system current to be started according to the 3rd currency that starts mark;
Wherein, the described the 3rd starts mark for identifying the embedded system of current startup.
17. 1 kinds of equipment, it is characterized in that, described equipment includes storer, and one or more than one program, one of them or more than one program are stored in storer, and be configured to be carried out by more than one or one processor, described more than one or one routine package contains for carrying out the instruction of following operation:
In already present at least two embedded systems, determine that embedded system that the current system version with startup ability is number the highest is as the first embedded system to be started, and start described the first embedded system;
Under described the first embedded system, obtain system upgrade bag, described system upgrade bag is write in storage media corresponding to the second embedded system, complete the upgrading to described the second embedded system.
CN201310598439.4A 2013-11-22 2013-11-22 Method and device for upgrading embedded system as well as equipment Active CN103810004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310598439.4A CN103810004B (en) 2013-11-22 2013-11-22 Method and device for upgrading embedded system as well as equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310598439.4A CN103810004B (en) 2013-11-22 2013-11-22 Method and device for upgrading embedded system as well as equipment

Publications (2)

Publication Number Publication Date
CN103810004A true CN103810004A (en) 2014-05-21
CN103810004B CN103810004B (en) 2017-03-22

Family

ID=50706819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310598439.4A Active CN103810004B (en) 2013-11-22 2013-11-22 Method and device for upgrading embedded system as well as equipment

Country Status (1)

Country Link
CN (1) CN103810004B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484200A (en) * 2014-12-09 2015-04-01 小米科技有限责任公司 Method and device for updating firmware
CN105487883A (en) * 2014-10-07 2016-04-13 福特全球技术公司 Methods and systems to update a vehicle computing system
CN105722119A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 Mobile terminal and system upgrade method thereof
CN107291490A (en) * 2017-05-03 2017-10-24 上海上讯信息技术股份有限公司 A kind of method and apparatus of system upgrade
CN107704756A (en) * 2017-09-26 2018-02-16 晶晨半导体(上海)股份有限公司 Safe checking method and system before a kind of system upgrade
CN108121554A (en) * 2017-12-20 2018-06-05 浙江亿邦通信科技股份有限公司 A kind of upgrade method and upgrade-system of open air embedded device system
CN109358871A (en) * 2018-09-18 2019-02-19 深圳Tcl数字技术有限公司 Application system replacing options, device and the storage medium of embedded system device
CN110865837A (en) * 2019-11-14 2020-03-06 青岛海信移动通信技术股份有限公司 Method and terminal for upgrading system
WO2021098015A1 (en) * 2019-11-22 2021-05-27 歌尔股份有限公司 Earphone upgrade method, earphone assembly, upgrade device and readable storage medium
CN114741119A (en) * 2022-03-22 2022-07-12 深圳数马电子技术有限公司 System starting method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138865A1 (en) * 2004-12-10 2009-05-28 Furbee Richard L Performing an operating system upgrade without multiple system interruptions
US20120110274A1 (en) * 2010-10-27 2012-05-03 Ibm Corporation Operating System Image Management
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138865A1 (en) * 2004-12-10 2009-05-28 Furbee Richard L Performing an operating system upgrade without multiple system interruptions
US20120110274A1 (en) * 2010-10-27 2012-05-03 Ibm Corporation Operating System Image Management
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487883A (en) * 2014-10-07 2016-04-13 福特全球技术公司 Methods and systems to update a vehicle computing system
CN105487883B (en) * 2014-10-07 2020-03-10 福特全球技术公司 Method and system for updating vehicle computing system
CN104484200A (en) * 2014-12-09 2015-04-01 小米科技有限责任公司 Method and device for updating firmware
CN105722119B (en) * 2016-01-27 2019-09-06 努比亚技术有限公司 Mobile terminal and its method for upgrading system
CN105722119A (en) * 2016-01-27 2016-06-29 努比亚技术有限公司 Mobile terminal and system upgrade method thereof
CN107291490A (en) * 2017-05-03 2017-10-24 上海上讯信息技术股份有限公司 A kind of method and apparatus of system upgrade
CN107704756A (en) * 2017-09-26 2018-02-16 晶晨半导体(上海)股份有限公司 Safe checking method and system before a kind of system upgrade
CN107704756B (en) * 2017-09-26 2021-10-19 晶晨半导体(上海)股份有限公司 Security verification method and system before system upgrade
CN108121554A (en) * 2017-12-20 2018-06-05 浙江亿邦通信科技股份有限公司 A kind of upgrade method and upgrade-system of open air embedded device system
CN109358871A (en) * 2018-09-18 2019-02-19 深圳Tcl数字技术有限公司 Application system replacing options, device and the storage medium of embedded system device
CN109358871B (en) * 2018-09-18 2022-11-15 深圳Tcl数字技术有限公司 Method and device for replacing application system of embedded system equipment and storage medium
CN110865837A (en) * 2019-11-14 2020-03-06 青岛海信移动通信技术股份有限公司 Method and terminal for upgrading system
CN110865837B (en) * 2019-11-14 2023-08-18 青岛海信移动通信技术有限公司 Method and terminal for system upgrade
WO2021098015A1 (en) * 2019-11-22 2021-05-27 歌尔股份有限公司 Earphone upgrade method, earphone assembly, upgrade device and readable storage medium
CN114741119A (en) * 2022-03-22 2022-07-12 深圳数马电子技术有限公司 System starting method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103810004B (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN103810004B (en) Method and device for upgrading embedded system as well as equipment
CN107273160A (en) A kind of method and device of edition upgrading
CN103455348B (en) Subarea adjustment, device, terminal, server and system
CN105278937A (en) Method and device for displaying pop-up box messages
CN104780164A (en) Method and device for operating game client
CN104915241A (en) Virtual machine migration control method and device
CN103327102A (en) Application program recommending method and device
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN104572819A (en) Clearing method and system for junk data
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN103473163A (en) Application program detection method and device
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN104142868A (en) Connection establishment method and device
CN104717341A (en) Message prompting method and terminal
CN105760203A (en) Software upgrading method and terminal equipment
CN106066686A (en) A kind of information processing method and terminal device
CN103631625A (en) Data acquisition method, user terminal, server and system
US20220255639A1 (en) Radio frequency parameter processing method and device, and mobile terminal and storage medium
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN103713943A (en) Native terminal operating system based application function realization method and device
CN104253870A (en) Method and device for controlling data access period
CN104699501A (en) Method and device for running application program
CN104243394A (en) Multimedia file playing method and device
CN106445719A (en) Recovery-mode Recovery instruction reading and writing method and device
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221109

Address after: 430000 No. 006, floor 1, No. 66, Jiufeng 1st Road, Donghu New Technology Development Zone, Wuhan, Hubei Province (Wuhan area of free trade zone)

Patentee after: Xiaomi Technology (Wuhan) Co.,Ltd.

Patentee after: Xiaomi Technology Co.,Ltd.

Address before: 100085 Beijing Haidian District Qinghe middle street 68 Huarun colorful shopping mall two phase 13 level.

Patentee before: Xiaomi Technology Co.,Ltd.