CN109710286A - Method for upgrading system, device, equipment and storage medium - Google Patents

Method for upgrading system, device, equipment and storage medium Download PDF

Info

Publication number
CN109710286A
CN109710286A CN201811457537.5A CN201811457537A CN109710286A CN 109710286 A CN109710286 A CN 109710286A CN 201811457537 A CN201811457537 A CN 201811457537A CN 109710286 A CN109710286 A CN 109710286A
Authority
CN
China
Prior art keywords
new
user data
partition
partition table
former
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
CN201811457537.5A
Other languages
Chinese (zh)
Other versions
CN109710286B (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.)
Goertek Inc
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201811457537.5A priority Critical patent/CN109710286B/en
Publication of CN109710286A publication Critical patent/CN109710286A/en
Application granted granted Critical
Publication of CN109710286B publication Critical patent/CN109710286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of method for upgrading system, device, equipment and storage medium, former partition table Central Plains user data partition information is stored in this method comprises: obtaining, original subscriber's data partition information includes that the former initial address of user data subregion and former end address, original subscriber's data partition information are located at the initial position of former partition table;Acquisition is stored in new partition table new user data partition information, and new user data partition information includes that the new initial address of user data subregion and new end address, new user data partition information are located at the initial position of new partition table;If former initial address is identical as new initial address, and former end address is different with new end address, then according to new partition table upgrade-system.Based on over the air, the upgrading to system and partition table can be realized, while will not be purged to user data subregion in the case where not carrying out data backup to user data subregion;Simplify partition table and upgrade process, lifting system and partition table upgrade efficiency.

Description

Method for upgrading system, device, equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for upgrading system, device, equipment and storage to be situated between Matter.
Background technique
Currently, to the electronic equipment with operating system (for example, android system) (for example, mobile phone, smartwatch, intelligence Can glasses etc.) operating system when being upgraded, (can be passed through using line brush (pass through data line and carry out system upgrade), card brush Storage card carries out system upgrade) or over the air (Over-the-Air, OTA) progress system upgrade.Some upgrading sides Formula can only upgrade operating system, and some upgrading modes can upgrade partition table and operating system simultaneously.
In the prior art, to upgrade simultaneously to partition table and system, often by the way of card brush, under aerial It carries technology upgrading mode and does not support the upgrading to partition table;Also, partition table upgrading will lead to the data in user data subregion It is wiped free of;To avoid the data in user data subregion from being wiped free of, the data in user data subregion can be carried out in advance Backup, then carries out system upgrade again, and escalation process is complicated inconvenient.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method for upgrading system, device, equipment and storage medium, to base The scheme upgraded to partition table and system is realized in over the air.
In a first aspect, the embodiment of the present invention provides a kind of method for upgrading system, this method comprises:
The original subscriber's data partition information being stored in former partition table is obtained, includes in original subscriber's data partition information The former initial address of user data subregion and former end address, original subscriber's data partition information are located at the former partition table Initial position;
Acquisition is stored in new partition table new user data partition information, includes institute in the new user data partition information The new initial address and new end address, the new user data partition information for stating user data subregion are located at the new partition table Initial position;
If the original initial address is identical as the new initial address, and the former end address and the new end ground Location is different, then carries out system upgrade according to the new partition table.
Further, the acquisition is stored in new partition table new user data partition information, comprising:
Based on aerial downloading mode, system upgrade data packet is obtained;
The new partition table in the system upgrade data packet is parsed, to obtain the new user data partition information.
Further, it obtains and is stored in new partition table after new user data partition information, further includes:
Based on the new initial address and new end address, the corresponding user data subregion of the new partition table is determined Default memory space;
It is empty to compare data occupied space and the default storage in the corresponding user data subregion of the former partition table Between size;
If the data occupied space is greater than the default memory space, the system liter according to the new partition table is terminated Grade.
Further, further includes: if the data occupied space is less than or is equal to the default memory space, compare institute It states former initial address and whether the new initial address is identical.
Further, whether the former initial address and the new initial address are identical, comprising:
If the original initial address is different from the new initial address, the system liter according to the new partition table is terminated Grade.
Further, further includes: if the original initial address is identical as the new initial address, save the user data The former initial address of subregion is constant, and the former end address for updating the user data subregion is the new end ground Location.
Further, after parsing the new partition table in the system upgrade data packet, further includes:
Obtain the partition information of other data subregions in the new partition table;
According to other described partition informations, initial address and the end address of other data subregions are updated.
It is further, described that system upgrade is carried out according to the new partition table, comprising:
Load the new partition table;
By the upgrading partition data in the obtained system upgrade data packet of parsing, be written to it is updated it is described other Data subregion.
Second aspect, the embodiment of the present invention provide a kind of system upgrade device, and described device includes:
First obtains module, for obtaining the original subscriber's data partition information being stored in former partition table, the original subscriber Former initial address and former end address in data partition information including user data subregion, original subscriber's data partition information Positioned at the initial position of the former partition table;
Second obtains module, is stored in new partition table new user data partition information, the new number of users for obtaining According to the new initial address and new end address in partition information including the user data subregion, the new user data subregion letter Breath is located at the initial position of the new partition table;
Upgraded module, if the original initial address is identical as the new initial address, and the former end address and institute It is different to state new end address, then system upgrade is carried out according to the new partition table.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: memory, processor;Wherein,
The memory is for storing one or more computer instruction, wherein one or more computer instruction The method of system upgrade as described in relation to the first aspect is realized when being executed by the processor.
Fourth aspect, the embodiment of the present invention provide a kind of computer storage medium, for storing computer program, the meter The method of system upgrade as described in relation to the first aspect is realized when calculation machine program executes computer.
Method for upgrading system provided in an embodiment of the present invention, when carrying out partition table setting, by the original of user data subregion User data partition information is stored in the initial position of former partition table;Also, in subsequent progress system upgrade, system upgrade number According to the new user data partition information in the new partition table in packet also in initial position.Meanwhile number of users in new partition table It is identical as the former initial address of user data subregion in former partition table according to the new initial address of subregion, if former end address and new End address is different, then carries out system upgrade according to new partition table.Through the above technical solutions, being based on over the air, energy Enough in the case where not carrying out data backup to user data subregion, the upgrading to system and partition table is realized, while will not be right User data subregion is purged;Simplify partition table and upgrade process, lifting system and partition table upgrade 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 this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of method for upgrading system provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of a kind of former partition table and new partition table provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of system upgrade device provided in an embodiment of the present invention;
Fig. 4 is provided in an embodiment of the present invention a kind of realizes the structural schematic diagram for scheming the electronic equipment of method as indicated with 1.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning, " a variety of " generally comprise at least two, but not It excludes to include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determination " or " in response to detection ".Similarly, context is depended on, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include, so that commodity or system including a series of elements not only include those elements, but also including not clear The other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited more Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or system for including the element also There are other identical elements.
It should be noted that original partition table mentioned here can be understood as partition table currently in use in current device, New partition table mentioned here can be understood as the partition table that will be used.
In existing system upgrading scheme, the storage order of each partition information is unfixed in partition table, for example, going out Under factory's facilities, the user data partition information in primary partition table is located at the rearmost position of partition table, when once being risen After grade, user data partition information may be stored in the initial position of partition table.Since user data partition information is dividing Position in area's table changes, and user data partition information may also can be modified, and will lead to the number in user data subregion According to loss.In addition, if the storage address of user data subregion, which changes, may also lead to loss of data, specifically, if with The initial address of user data subregion changes, and the content in user data subregion is caused to lack or wipe completely.Such as to avoid Because partition table upgrading leads to user data loss, therefore, to assure that position of the user data partition information in partition table is not modified, Ensure that the initial address of user data subregion is constant simultaneously.
Fig. 1 is the flow diagram of method for upgrading system provided in an embodiment of the present invention, and this method mainly includes following step It is rapid:
101: original subscriber's data partition information for being stored in former partition table is obtained, in original subscriber's data partition information Former initial address and former end address including user data subregion, original subscriber's data partition information are located at the former subregion The initial position of table.
In former partition table, while many data partition informations are stored with, for example, user data subregion (userdata) is believed Breath, kernel partition information, system partition information etc..It may include former starting point in original subscriber's data partition information Location (for example, original subscriber's data subregion starting head number, sector number etc.), former end address are (for example, original subscriber's data subregion terminates Head number, sector number etc.) and file system flag bit etc..Original subscriber's data partition information mentioned here is located at former aging schedule Initial position, it can be understood as original subscriber's data partition information will be leaned on than position of other partition informations in partition table Before, in other words, user data partition information is located at first position in all partition informations.When other partition informations carry out more When changing or when storage order of other partition informations in partition table is modified, not for original subscriber's data partition information It is modified, original subscriber's data partition information is stored in the initial position in former partition table.
102: acquisition is stored in new partition table new user data partition information, wraps in the new user data partition information The new initial address and new end address, the new user data partition information for including the user data subregion are located at described new point The initial position of area's table.
In practical applications, new partition table mentioned here is the system upgrade obtained by over the air (OTA) Parsing obtains in data packet.In the upgrading of subsequent progress operating system and partition table, therefore, to assure that new user data point Area's information is located at the initial position of new partition table.New user data partition information mentioned here is located at the start bit of new aging schedule It sets, it can be understood as new user data partition information will be forward than position of other partition informations in partition table, in other words, User data partition information is located at first position in all partition informations.To partition information in former partition table and new partition table Storage location is as shown in Figure 2.
It should be noted that there is no the limitations of strict sequence for step 101 and step 102, and in other words, Ke Yixian It executes step 101 and executes step 102 again, step 102 can also be first carried out and execute step 101 again.
103: if the original initial address is identical as the new initial address, and the former end address and the new knot Beam address is different, then carries out system upgrade according to the new partition table.
After obtaining former partition table and new partition table, initial address and end address are compared.Specifically, first Compare former initial address and new initial address, if former initial address is identical as new initial address, it is possible to further more former End address and new end address.
If former initial address is identical as new initial address, also, former end address and new end address are also identical, then are dividing User data partition information in area's table is not needed there is no any variation in the data and partition table in user data subregion User data partition information upgraded.For example, generating system upgrade if user data subregion does not need to be upgraded When data packet, part upgrading can be carried out, user data partition data can not be included in system data upgrade package, is used User data partition information etc.;So as to simplify updating operation, upgrading efficiency is promoted.
If former initial address is identical as new initial address, former end address is different from new end address, then it represents that partition table Changed, the size in corresponding partitioned storage space is also changed.It then needs to partition table and operating system simultaneously Upgraded.
In one or more embodiment of the invention, the acquisition is stored in new partition table new user data subregion Information can specifically include: being based on aerial downloading mode, obtains system upgrade data packet;Parse the system upgrade data packet In the new partition table, to obtain the new user data partition information.
For example, it is assumed that operating system to be upgraded be mobile phone terminal operating system, when there is new system version, server to Each mobile phone terminal pushes new system upgrade tip message.If user wants to carry out system upgrade, the corresponding system of downloading can choose System upgrading data packet.Mobile phone terminal equipment parses the system upgrade data packet, obtain new partition table included in upgrade package (when So, there are also other data to be written in the upgrade package), it may thereby determine that the new user data subregion letter in new partition table Breath.
In one or more embodiment of the invention, acquisition is stored in new partition table new user data partition information It later, can also include: that the corresponding user of the new partition table is determined based on the new initial address and new end address The default memory space of data subregion;Compare in the corresponding user data subregion of the former partition table data occupied space with The size of the default memory space;If the data occupied space is greater than the default memory space, terminate according to The system upgrade of new partition table.
For example, determining the default of the corresponding user data subregion of new partition table according to new initial address and new end address Memory space is the space 1G, default memory space mentioned here, it can be understood as set in manufacturing system upgrading data packet Fixed memory space.The data occupied space stored in the corresponding user data subregion of former partition table is the space 1.2G, it is known that, number The size of default memory space 1G is significantly greater than according to occupied space 1.2G, if according to the knot of new partition table change user data subregion Beam address will lead to the loss of user data, and therefore, it is necessary to terminate the upgrading according to new partition table to operating system.Due to pre- If the size of memory space can no longer meet the existing user data of storage, therefore, can without to former initial address and The comparison of new initial address.
In one or more embodiment of the invention, if can also include: that the data occupied space is less than or waits In the default memory space, then whether the former initial address and the new initial address are identical.
For example, presetting memory space is 1.2G, then data occupied space is significantly less than default if data occupied space is 1G Memory space can continue former initial address compared between new initial address.So as to further determine whether The upgrading of partition table and system can be carried out based on new partition table.
In one or more embodiment of the invention, it is more described original initial address and the new initial address whether It is identical, if can also include: that the former initial address is different from the new initial address, terminate according to the new partition table System upgrade.
If the former initial address in former partition table is different from the new initial address in new partition table, then it represents that partition table and right The actual storage address for the user data subregion answered all is changed, if continuing the behaviour for executing system upgrade according to new partition table Make, it will the user data in user data subregion is caused to be deleted.Therefore, if it was found that former initial address and new starting point Location is different, then no longer needs to the former end address of comparison and new end address, can terminate the operation according to new partition table to system upgrade.
In one or more embodiment of the invention, if can also include: the former initial address and described new Beginning address is identical, and the former end address is different with the new end address, saves the described of the user data subregion Former initial address is constant, and the former end address for updating the user data subregion is the new end address.
In practical applications, if by after comparison, it was found that, former initial address is identical as new initial address, former end address with New end address is different, in order to avoid the data in user data subregion from being wiped free of, saves the current of user data subregion In the case that initial address (the current initial address and former initial address and new initial address are all identical) is constant, by user data The end address of subregion is updated to new end address.For example, can be terminated using Resize2fs instruction adjustment user data subregion Address is the end address in new partition table.
In one or more embodiment of the invention, the new partition table in the system upgrade data packet is parsed It later, can also include: the partition information for obtaining other data subregions in the new partition table;Believed according to other described subregions Breath updates initial address and the end address of other data subregions.
In practical applications, if desired operating system is upgraded, it may be necessary to while to multiple data subregions and dividing Corresponding partition information is upgraded in area's table.Therefore, it is also desirable to obtain other data subregions and corresponding partition information.Here Other described data subregions can be understood as in system, the data subregion other than user data subregion.If other data Partition information changes, then needs to carry out the updating operation of each data subregion according further to other data partition informations.
It is described that system upgrade is carried out according to the new partition table in one or more embodiment of the invention, specifically It may include: the load new partition table;The upgrading partition data in the system upgrade data packet that parsing is obtained, write-in To other updated described data subregions.
After available to the confirmation of new partition table, new partition table is loaded, corresponding block device is refreshed.It will be in system upgrade data packet The data corresponding to each data subregion for being included are written in other corresponding updated data subregions.
Based on same thinking, the structure for being illustrated in figure 3 a kind of system upgrade device provided in an embodiment of the present invention is shown It is intended to.The embodiment of the present invention also provides a kind of system upgrade device, which includes:
First obtains module 31, for obtaining the original subscriber's data partition information being stored in former partition table, the former use Former initial address and former end address in user data partition information including user data subregion, original subscriber's data subregion letter Breath is located at the initial position of the former partition table;
Second obtains module 32, is stored in new partition table new user data partition information, the new user for obtaining New initial address and new end address in data partition information including the user data subregion, the new user data subregion Information is located at the initial position of the new partition table;
Upgraded module 33, if the original initial address is identical with the new initial address, and the former end address with The new end address is different, then carries out system upgrade according to the new partition table.
Further, first module 31 is obtained, for being based on aerial downloading mode, obtains system upgrade data packet;
The new partition table in the system upgrade data packet is parsed, to obtain the new user data partition information.
Further, further includes: comparison module 34 determines institute for being based on the new initial address and new end address State the default memory space of the corresponding user data subregion of new partition table;
It is empty to compare data occupied space and the default storage in the corresponding user data subregion of the former partition table Between size;
If the data occupied space is greater than the default memory space, the system liter according to the new partition table is terminated Grade.
Further, further includes: after comparing by comparing module 34, if the data occupied space is less than or equal to described Default memory space, then whether the former initial address and the new initial address are identical.
Further, comprising: after comparing by comparing module 34, if the original initial address and the new initial address are not Together, then the system upgrade according to the new partition table is terminated.
Further, further includes: after comparing by comparing module 34, if the original initial address and the new initial address Identical, the former initial address for saving the user data subregion is constant, updates the former knot of the user data subregion Beam address is the new end address.
Further, upgraded module 33, for obtaining the partition information of other data subregions in the new partition table;
According to other described partition informations, initial address and the end address of other data subregions are updated.
Further, upgraded module 33, for loading the new partition table;The system upgrade data that parsing is obtained Upgrading partition data in packet is written to other updated described data subregions.
Based on same thinking, as shown in figure 4, the embodiment of the present invention also provides a kind of electronic equipment, which is characterized in that packet It includes: memory 41, processor 42;Wherein,
The memory 41 is for storing one or more computer instruction, wherein one or more computer refers to Enable the method that the system upgrade as described in above-described embodiment is realized when being executed by the processor 42.
Based on same thinking, the embodiment of the present invention also provides a kind of computer storage medium, for storing computer journey Sequence realizes the method for the system upgrade as described in above-described embodiment when the computer program executes computer.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of required general hardware platform is added, naturally it is also possible to which reality is come in conjunction with by way of hardware and software It is existing.Based on this understanding, substantially the part that contributes to existing technology can be to calculate in other words for above-mentioned technical proposal The form of machine product embodies, and it wherein includes the meter of computer usable program code that the present invention, which can be used in one or more, The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product 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 General purpose computer, special purpose computer, Embedded Processor or other programmable coordinates are instructed to determine the processor of equipment to produce A raw machine, so that being generated by the instruction that computer or other programmable coordinates determine that the processor of equipment executes 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 coordinates determine equipment 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 can also be loaded into computer or other programmable coordinates determine in equipment, 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.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (11)

1. a kind of method for upgrading system characterized by comprising
The original subscriber's data partition information being stored in former partition table is obtained, includes user in original subscriber's data partition information The former initial address of data subregion and former end address, original subscriber's data partition information are located at the starting of the former partition table Position;
Acquisition is stored in new partition table new user data partition information, includes the use in the new user data partition information The new initial address of user data subregion and new end address, the new user data partition information are located at rising for the new partition table Beginning position;
If the original initial address is identical as the new initial address, and the former end address and the new end address are not Together, then system upgrade is carried out according to the new partition table.
2. the method according to claim 1, wherein the acquisition is stored in new partition table new user data point Area's information, comprising:
Based on aerial downloading mode, system upgrade data packet is obtained;
The new partition table in the system upgrade data packet is parsed, to obtain the new user data partition information.
3. method according to claim 1 or 2, which is characterized in that acquisition is stored in new partition table new user data point After area's information, further includes:
Based on the new initial address and new end address, the pre- of the corresponding user data subregion of the new partition table is determined If memory space;
Compare data occupied space and the default memory space in the corresponding user data subregion of the former partition table Size;
If the data occupied space is greater than the default memory space, the system upgrade according to the new partition table is terminated.
4. according to the method described in claim 3, it is characterized by further comprising:
If the data occupied space is less than or is equal to the default memory space, the original initial address and described new Whether initial address is identical.
5. according to the method described in claim 4, it is characterized in that, the original initial address is with the new initial address It is no identical, comprising:
If the original initial address is different from the new initial address, the system upgrade according to the new partition table is terminated.
6. according to the method described in claim 4, it is characterized by further comprising:
If the original initial address is identical as the new initial address, and the former end address and the new end address are not Together, the former initial address for saving the user data subregion is constant, and the original for updating the user data subregion terminates Address is the new end address.
7. according to the method described in claim 2, it is characterized in that, parsing the new subregion in the system upgrade data packet After table, further includes:
Obtain the partition information of other data subregions in the new partition table;
According to other described partition informations, initial address and the end address of other data subregions are updated.
8. the method according to the description of claim 7 is characterized in that described carry out system upgrade, packet according to the new partition table It includes:
Load the new partition table;
The upgrading partition data in the system upgrade data packet that parsing is obtained is written to other updated described data Subregion.
9. a kind of system upgrade device characterized by comprising
First obtains module, for obtaining the original subscriber's data partition information being stored in former partition table, original subscriber's data Former initial address and former end address, original subscriber's data partition information in partition information including user data subregion are located at The initial position of the original partition table;
Second obtains module, is stored in new partition table new user data partition information for obtaining, the new user data point New initial address and new end address in area's information including the user data subregion, the new user data partition information position In the initial position of the new partition table;
Upgraded module, if the original initial address is identical with the new initial address, and the former end address and it is described newly End address is different, then carries out system upgrade according to the new partition table.
10. a kind of electronic equipment characterized by comprising memory, processor;Wherein,
The memory is for storing one or more computer instruction, wherein one or more computer instruction is by institute State the method realized when processor executes such as system upgrade described in any item of the claim 1 to 8.
11. a kind of computer storage medium, for storing computer program, the realization when computer program executes computer Such as the method for system upgrade described in any item of the claim 1 to 8.
CN201811457537.5A 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium Active CN109710286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457537.5A CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457537.5A CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109710286A true CN109710286A (en) 2019-05-03
CN109710286B CN109710286B (en) 2022-11-15

Family

ID=66254510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457537.5A Active CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109710286B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495744A (en) * 2020-03-19 2021-10-12 华为技术有限公司 Version upgrading method and related device
CN113741812A (en) * 2021-08-09 2021-12-03 浙江大华技术股份有限公司 Memory partition updating method and device, electronic device and storage medium
CN114780120A (en) * 2022-04-02 2022-07-22 荣耀终端有限公司 Upgrading method, equipment and storage medium
WO2022268127A1 (en) * 2021-06-23 2022-12-29 华为技术有限公司 Ota upgrade method and device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130185563A1 (en) * 2012-01-12 2013-07-18 Gueorgui Djabarov Multiple System Images for Over-The-Air Updates
CN103455348A (en) * 2013-08-27 2013-12-18 小米科技有限责任公司 Subarea adjustment method, device, terminal, server and system
US20150277897A1 (en) * 2013-09-13 2015-10-01 Huizhou Tcl Mobile Communication Co., Ltd. Software upgrade method and system for mobile terminal
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN106708543A (en) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 OTA upgrading method and apparatus for operation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130185563A1 (en) * 2012-01-12 2013-07-18 Gueorgui Djabarov Multiple System Images for Over-The-Air Updates
CN103455348A (en) * 2013-08-27 2013-12-18 小米科技有限责任公司 Subarea adjustment method, device, terminal, server and system
US20150277897A1 (en) * 2013-09-13 2015-10-01 Huizhou Tcl Mobile Communication Co., Ltd. Software upgrade method and system for mobile terminal
CN106708543A (en) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 OTA upgrading method and apparatus for operation system
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495744A (en) * 2020-03-19 2021-10-12 华为技术有限公司 Version upgrading method and related device
WO2022268127A1 (en) * 2021-06-23 2022-12-29 华为技术有限公司 Ota upgrade method and device, and computer-readable storage medium
CN113741812A (en) * 2021-08-09 2021-12-03 浙江大华技术股份有限公司 Memory partition updating method and device, electronic device and storage medium
CN113741812B (en) * 2021-08-09 2024-04-12 浙江大华技术股份有限公司 Memory partition updating method and device, electronic device and storage medium
CN114780120A (en) * 2022-04-02 2022-07-22 荣耀终端有限公司 Upgrading method, equipment and storage medium

Also Published As

Publication number Publication date
CN109710286B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN109710286A (en) Method for upgrading system, device, equipment and storage medium
KR102229742B1 (en) Method and device for previewing a dynamic image, and method and device for displaying a presentation package
CN103778211B (en) The language switching method and device of game of mobile terminal software
CN111930486A (en) Task selection data processing method, device, equipment and storage medium
CN108243032B (en) Method, device and equipment for acquiring service level information
CN112473144A (en) Game resource data processing method and device
CN111258965A (en) Data acquisition method and device, electronic equipment and storage medium
CN109857516A (en) Cluster moving method and device based on container
CN104598237B (en) A kind of method and apparatus that user interface is generated under upgrade mode
CN105138344A (en) Method and system for randomly generating screensaver according to picture hotness
CN109102200B (en) Timed task processing method and device
CN109582384A (en) The update method and device of configuration information
US20140215035A1 (en) Distribution of application components among devices
CN110968377B (en) Interface display processing method and device
US10082956B2 (en) Method and apparatus for downloading data including a progress bar indicating progress of downloading
CN111400056A (en) Message queue-based message transmission method, device and equipment
CN111552575A (en) Message queue-based message consumption method, device and equipment
US9569452B1 (en) Exponential decay set pruning
US20130145013A1 (en) Communication terminal and content update method
CN110716699A (en) Method and apparatus for writing data
CN111736895A (en) Method, equipment and storage medium for merging and upgrading version numbers of software products
CN110704742A (en) Feature extraction method and device
CN108733444A (en) A kind of method for refreshing of the page, device, storage medium and mobile terminal
CN109300043A (en) The generation method and device of line chart
CN115604354B (en) Transaction processing method, device and equipment based on block chain and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 261061 north of Yuqing East Street, east of Dongming Road, Weifang High tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 266104 Laoshan Qingdao District North House Street investment service center room, Room 308, Shandong

Applicant before: GOERTEK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 261061 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 261061 east of Dongming Road, north of Yuqing East Street, Weifang High tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Applicant before: GoerTek Optical Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221117

Address after: 261031 No. 268 Dongfang Road, hi tech Industrial Development Zone, Shandong, Weifang

Patentee after: GOERTEK Inc.

Address before: 261061 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.

TR01 Transfer of patent right