CN104918114A - Method and device for upgrading operation system - Google Patents

Method and device for upgrading operation system Download PDF

Info

Publication number
CN104918114A
CN104918114A CN201510306914.5A CN201510306914A CN104918114A CN 104918114 A CN104918114 A CN 104918114A CN 201510306914 A CN201510306914 A CN 201510306914A CN 104918114 A CN104918114 A CN 104918114A
Authority
CN
China
Prior art keywords
file
kernel
operating system
subregion
upgrade
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
CN201510306914.5A
Other languages
Chinese (zh)
Other versions
CN104918114B (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201510306914.5A priority Critical patent/CN104918114B/en
Publication of CN104918114A publication Critical patent/CN104918114A/en
Application granted granted Critical
Publication of CN104918114B publication Critical patent/CN104918114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention relates to a method and a device for upgrading an operation system. The method comprises the steps of: downloading a system upgrade package from a server when determining that the operation system is to be upgraded, wherein the operation system comprises a partition of a supporting file system, the partition of the supporting file system is a set of files of the supporting file system in the operation system, and each file which belongs to the partition of the supporting file system can be upgraded independently; and updating a file to be upgraded according to a file patch package when the system upgrade package comprises the file patch package of the file to be upgraded belonging of the partition of the supporting file system. Through the method provided by the invention, network traffic in the upgrade of the operation system can be saved, and the system upgrading efficiency can be improved.

Description

A kind of operating system update method and device
Technical field
The present invention relates to intelligent television field, particularly relate to a kind of operating system update method and device.
Background technology
Operating system is supervisory computer hardware resource, control other programs to run and the set that the systems soft ware at interactive operation interface is provided for user, such as intelligent television system is a kind of operating system, make user when appreciating general television content by intelligent television, can install and unload types of applications software voluntarily, continue to expand the function of intelligent television system.
Be in people's lifetime of serving in operating system, often upgrade to operating system.
Below for intelligent television system, the method of operating system update in prior art is described: in order to upgrade to intelligent television system in prior art, usually intelligent television system is divided at least two functional modules with relatively independent function, such as a certain instant communication software is divided into a functional module, a certain office software is divided into another functional module.In the process that intelligent television system runs, if desired system upgrade, then replace whole functional module to be upgraded by new functional module.
But in prior art, after having divided functional module, a functional module is a string binary digit, so a functional module is not subdividable entirety.If when reality only needs the partial content of a upgrading functional module, whole functional module can only be replaced.Such as, instant communication software is as a functional module, if the content of upgrading, when upgrading the login page of this instant communication software, so just needs to replace whole instant communication software.So according to updating functional modules in prior art, there is the inefficient problem of upgrading, in addition, is also the data of whole functional module from the AKU of server download, so prior art also exists the problem of waste network traffics.
In addition, in prior art, functional module is upgraded successively, upper updating functional modules success, next functional module can not be represented also can upgrade successfully, if there is the failure of updating functional modules in escalation process, so operating system just can be upgraded failure, so functional module is upgraded successively and also be there is the low problem of success rate for upgrading in prior art.
Summary of the invention
The object of this invention is to provide a kind of operating system update method and device, to overcome in prior art operating system owing to causing waste network traffics according to updating functional modules, the problem of the low grade of upgrading efficiency.
On the one hand, the invention provides a kind of operating system update method, comprising:
When determining to upgrade to operating system, download system AKU from server; Wherein, described operating system comprises the subregion of supporting document system; Wherein, the subregion of described supporting document system is in described operating system, the set of the file of supporting document system, and each file belonged in the subregion of supporting document system can be upgraded separately;
When described system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to described supporting document system, upgrade described file to be upgraded according to described file service packs.
On the other hand, the invention provides a kind of operating system update device.Described device comprises:
Download module, for when determining to upgrade to operating system, download system AKU from server; Wherein, described operating system comprises the subregion of supporting document system; Wherein, the subregion of described supporting document system is the set of the file of supporting document system in described operating system, and each file belonged in the subregion of supporting document system can be upgraded separately;
File update module, for when described system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to described supporting document system, upgrades described file to be upgraded according to described file service packs.
The present invention at least has following beneficial effect: in method provided by the invention, and operating system comprises the subregion of supporting document system; Wherein, the subregion of supporting document system is in operating system, the set of the file of supporting document system, and each file belonged in the subregion of supporting document system can be upgraded separately.Such as, if when only needing the login page of upgrading instant communication software, because this login page is a file in the subregion of supporting document system, so only need to download and this login page of upgrading.Like this, relative in prior art, need download and upgrade whole functional module, both can reduce the data volume of download, save network traffics, also can reduce the data volume of upgrading, improve upgrading efficiency.
Accompanying drawing explanation
Fig. 1 is one of exemplary process diagram of operating system update method in the embodiment of the present invention;
Fig. 2 is the exemplary process diagram two of operating system update method in the embodiment of the present invention;
Fig. 3 is the schematic diagram of operating system update device in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described, should be appreciated that embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
The embodiment of the present invention provides a kind of operating system update method, and in method provided by the invention, operating system comprises the subregion of supporting document system; Wherein, the subregion of supporting document system is in operating system, the set of the file of supporting document system, and each file belonged in the subregion of supporting document system can be upgraded separately.Such as, if when only needing the login page of upgrading instant communication software, because this login page is a file in the subregion of supporting document system, so only need to download and this login page of upgrading.Like this, relative in prior art, need download and upgrade whole functional module, both can reduce the data volume of download, save network traffics, also can reduce the data volume of upgrading, improve upgrading efficiency.
In addition, in prior art, usually only have an operating system nucleus, so when the upgrading of operating system relates to operating system nucleus, then operating system normally can not provide service for user.If the functional module such as upgraded, when comprising the renewal to operating system nucleus, so need to stop for the use to operating system, and enter upgrading link.The service that enjoyment operating system provides can be continued after operating system nucleus is successfully upgraded; If this updating functional modules failure, then cause operating system to damage because destroying operating system nucleus.Like this, operating system just can not provide service for user.
Upgrade unsuccessfully for aforesaid operations system kernel, the problem damaged causing operating system, the present invention proposes solution.Concrete, operating system provided by the invention also comprises at least two operating system nucleus, and the main kernel when operating system nucleus being in running status is system update, the backup kernel when operating system nucleus being in off-duty state is system update.And in the process of operating system, when needing to upgrade operating system nucleus, then upgrade backup kernel using this kernel as main kernel during next system update.When restarting or start shooting, then can use the backup kernel operation system after renewal, the main kernel that backup kernel after such renewal becomes new owing to being in running status, and with this new main kernel upgrade restart or start shooting after be in the operating system nucleus of off-duty state, to keep the consistent of operating system nucleus.As can be seen here, in the embodiment of the present invention, when upgrading the operating system nucleus of operating system without the need to stopping use to operating system, backup kernel only need be upgraded, thus the service making user can continue enjoyment operating system to provide.Such as when operating system is intelligent television system, user can continue viewing TV programme when upgrading the kernel of intelligent television system, makes user complete upgrading to operating system nucleus when not having perception.In addition, even if upgrade unsuccessfully to operating system nucleus, be so in the main kernel of running status because renewal still can not run, so hinge structure, operating system still can be run according to the operating system nucleus not having to damage, thus can improve the stability of operating system.
In addition, in the embodiment of the present invention, when upgrading to partitions of file, if when user is using the operation needing file or the operating system of upgrading to rely on this file (such as this file relates to operating system memory upgrading), then need user to suspend current business.In order to not interrupt the business of user, realizing the complete operation system upgrade when user's unaware, the upgrading of the backup kernel of operating system, upgrading can independently carry out with partitions of file.Concrete, can first to upgrade backup kernel, according to file service packs, synthesizing the new system update information of the file to be upgraded for upgrading the subregion belonging to supporting document system and store, then completing partitions of file upgrading when restarting or start shooting according to new system update information.Thus realize in the upgrading not affecting dynamic complete operation system user normally uses operating system.
In addition, inventor finds through research, and in prior art, the functional module main cause that success rate for upgrading is low is successively to ensure that all functional modules to be upgraded all upgrade successfully.If some updating functional modules successes, some updating functional modules failures, then finally cause the version of each functional module in same operating system inconsistent, thus cause the upgrading failure of operating system.Especially the functional module upgraded successfully and the functional module of not upgrading can not compatible time, this functional module or relevant functional module may be caused normally to run.And functional module failed download to be upgraded, or according to the procedure failure of service packs by existing functional module synthesis New function module, be the main cause of updating functional modules failure, thus cause operating system entirety to be upgraded unsuccessfully.
Given this, in the embodiment of the present invention, when the upgrading of operating system is the upgrading of file (for ease of reading and understanding hereinafter referred to as partitions of file upgrading) to the subregion belonging to supporting document system, after all system upgrade bags of the version that will be upgraded in down operation system, and after becoming new system update information according to all system upgrade inclusions downloaded, again partitions of file is upgraded, failed download can be avoided like this or synthesize unsuccessfully causing operating system update failure.
In addition, if the upgrading of backup kernel and partitions of file upgrading are independently carried out successively, in order to avoid operating system nucleus upgrades successfully, and the situation that partitions of file upgrading is failed, in the embodiment of the present invention, at all system upgrade bags of down operation system, and after becoming new system update information according to all system upgrade inclusions downloaded, spanned file upgrading mark, when restarting or start shooting, if do not detect that this document upgrading identifies, then can determine that partitions of file is upgraded unsuccessfully, and then the backup kernel of running status can be in last time according to kernel covering in the master being in running status last time, keep the global coherency of operating system nucleus, the stability of raising system.
Below by specific embodiment, the operating system update method that the embodiment of the present invention provides is described.
Embodiment one
As shown in Figure 1, in the embodiment of the present invention, the exemplary process diagram of operating system update method, the method comprises the following steps:
Step 101: when determining to upgrade to operating system, download system AKU from server; Wherein, operating system comprises the subregion of supporting document system; Wherein, the subregion of supporting document system is in operating system, the set of the file of supporting document system, and each file belonged in the subregion of supporting document system can be upgraded separately.
Wherein, in one embodiment, can determine whether operating system update according to one of following methods:
Method one: according to the sense cycle preset, when arrive put detection time time, detect in server the system upgrade bag that whether there is operating system, if exist, then determine operating system update, otherwise, determine not to operating system update.
Method two: when receiving detection instruction, detect the system upgrade bag that whether there is operating system in server, if exist, then determine operating system update, otherwise, determine not to operating system update.
Wherein, detecting instruction can be that user performs predetermined registration operation, and such as start detection function key generates, and also can send to intelligent television after server generation system AKU.
Step 102: when system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to supporting document system, upgrade file to be upgraded according to file service packs.
Below, expansion is carried out to the embodiment of the present invention and illustrates, wherein:
1), in one embodiment, in order to not affect the use of user when upgrading operation system kernel, in the embodiment of the present invention, operating system also comprises at least two operating system nucleus, and the main kernel of the operating system nucleus being in running status when being system update, the backup kernel when operating system nucleus being in off-duty state is system update; When system upgrade bag comprises the kernel patch bag of operating system nucleus, the embodiment of the present invention can also perform following operation:
Steps A 1: upgrade backup kernel with kernel patch bag, and kernel is started the mark that mark changes to backup kernel.
Steps A 2: when restarting or start shooting, starts mark according to kernel, starts backup kernel, main kernel when becoming next system update to make backup kernel.
Wherein, kernel starts when identifying user is restarted or starts shooting to select which operating system nucleus of startup.
Steps A 3: the operating system nucleus of restarting or be in off-duty state after starting shooting is upgraded with the backup kernel started.
Like this, all that the operating system nucleus being in off-duty state is operated to the upgrading of operating system nucleus, because not operating the operating system nucleus being in running status, realize can not affecting the use of user to operating system to the upgrading of operating system nucleus.
2), in one embodiment, in order to ensure that operating system can normally be run, do not interrupt the function of the operating system that user uses, and the smooth upgrading of operating system can be guaranteed, step 102 can specifically perform as before steps A 2, according to file service packs, synthesize the new system update information of the file to be upgraded for upgrading the subregion belonging to supporting document system and store; After steps A 2, according to the file to be upgraded of the subregion of the new system update information updating supporting document system of synthesis.Wherein, the operation of synthesizing new system update information can be concrete comprise the following steps:
Step B1: when file service packs comprises the extended file of the subregion of supporting document system, store after extended file is labeled as newly-increased file.
Step B2: when file service packs comprises the patch of the existing file of the subregion of supporting document system, copy existing file, the patch of existing file is updated in the existing file copied, and store after the existing file after renewal is labeled as alternate file.
Step B3: when file service packs comprises delete instruction, the file to be deleted that file identification to be deleted in loading delete instruction is corresponding, and generate the check code of file to be deleted, check code in the check code of the file to be deleted generated and delete instruction is compared, when comparison result is consistent, store delete instruction.
Wherein, it should be noted that, the execution sequence of step B1-step B3 is not limited.
Wherein, in one embodiment, system upgrade bag can be a bag, includes all upgrade patch of operating system in this bag; Certainly, when all upgrade patch data volumes of operating system are larger, also all upgrade patch of operating system can be divided to so that can packet-by-packet store and download at least two bags, to improve the success rate that all AKUs are downloaded.Such as, when operating system comprises the subregion of two needs upgradings, one of them subregion is operating system nucleus, when another subregion is the subregion of supporting document system, system upgrade bag also can be two bags, wherein, bag corresponding a subregion, i.e. a bag respective operations system kernel, another wraps the subregion of corresponding supporting document system, specifically how all system upgrade information to be divided at least two bags, can look actual needs and arrange, the present invention does not limit this.
Wherein, in one embodiment, in step B2, file service packs comprises check code, this check code is for after verifying and being updated in the existing file copied by the patch of existing file, the correctness of the existing file after raw one-tenth upgrades, therefore, step B2 can specifically perform: when file service packs comprises patch and the check code of the existing file of the subregion of supporting document system, copy existing file, the patch of existing file is updated in the existing file copied, and generate the check code of the existing file after upgrading, check code in the check code of generation and file system service packs is compared, when comparison result is consistent, determine successfully the patch of existing file to be updated in the existing file copied, afterwards and by successfully upgrade after existing file be labeled as alternate file after store.
In the embodiment of the present invention, when the upgrading of operating system comprises the upgrading of operating system nucleus and partitions of file upgrading, so when all system upgrade bags have been downloaded, and the kernel patch bag in all system upgrade bags is for upgrading backup kernel, and file service packs is all for the synthesis of after new system update information, so the preparation of operating system update completes all, thus relative in prior art, functional module is upgraded successively and can be improved the success rate of system upgrade.Such as, in prior art, the upgrading of functional module then functional module, if a rear functional module upgraded, failed download or service packs is blended into current operation system existing module in failure, then can cause system upgrade failure, operating system is damaged, and in the embodiment of the present invention, ensure that to download successfully, and continue upgrading again when restarting or start shooting after ensure that the new system unit of generation, thus can avoid because download unsuccessful, or synthesize the failure of new system update information, cause system upgrade failure, thus, the embodiment of the present invention can improve the success rate of system upgrade, and then guarantee system can normally be run, the stability of raising system.
3), wherein, in one embodiment, according to file service packs, synthesize new system unit lastest imformation and store, specifically comprising the following steps:
Step C1: when new system update information comprises newly-increased file, installs newly-increased file.
Step C2: when new system update information comprises alternate file, replaces existing file corresponding to alternate file with alternate file.
Step C3: when new system update information comprises delete instruction, deletes the file that this delete instruction requirement is deleted.
Wherein, it should be noted that, the execution sequence of step C1-step C3 is not limited.
4), wherein, in one embodiment, if when the upgrading of operating system comprises operating system nucleus upgrading and partitions of file upgrading, because the backup kernel upgrading of operating system nucleus and partitions of file upgrading are independently carried out, in order to avoid operating system nucleus upgrades successfully, but the operation of synthesizing new system update information may be failed situation, therefore, can download at all system upgrade bags of determination operation system during concrete enforcement, and the file service packs in all system upgrade bags is for the synthesis of after new system update information, spanned file upgrading mark.Then, above-mentioned steps A2 (namely when restarting or start shooting, starting mark according to kernel, starting backup kernel), specifically can perform as following steps:
Step D1: when restarting or start shooting, detects and whether there is document upgrading mark.
Step D2: when there is document upgrading mark, start mark according to kernel, starts backup kernel.
In the embodiment of the present invention, after successfully synthesizing new system update information, just spanned file upgrading mark.So, represent when there is document upgrading mark and successfully synthesize new system update information, this new system update information has been used for partitions of file upgrading, therefore, backup kernel after renewal can start, so that use the backup kernel operation system after upgrading, and and then complete partitions of file upgrading.
Wherein, in one embodiment, if successfully do not synthesize new system update information, then can not spanned file upgrading identify, so, when the testing result of step D1 is not for existing document upgrading mark, the AKU failed download of supporting document system is described or synthesizes the failure of new system update information, partitions of file upgrading cannot be completed, so, in order to consistency and the stability of keeping system, need to start the main kernel before restarting or starting shooting, and upgrade backup kernel with this main kernel.Such as, operating system nucleus comprises core A and kernel B, and before restarting or starting shooting, core A is main kernel, and kernel B is backup kernel, when testing result is not for existing document upgrading mark, then starts core A, and upgrades backup kernel B with this main kernel.
Need explanation, in embodiments of the present invention, if when operating system update only relates to operating system nucleus upgrading, determine to perform steps A 3 or start the main kernel before restarting or starting shooting for ease of operating system, and upgrade backup kernel with this main kernel, specifically can perform and be when implementing: can also generate the kernel sign of only upgrading operation system kernel when only comprising kernel patch bag by certainty annuity AKU before steps A 2, so steps A 2 can perform and be:
Step e 1: when restarting or start shooting, detects and whether there is document upgrading mark or kernel sign.
Step e 2: when there is document upgrading mark or kernel sign, start mark according to kernel, starts backup kernel.
Step e 3: when there is not document upgrading mark, when also there is not kernel sign, start the main kernel before restarting or starting shooting, and upgrade backup kernel with this main kernel.
5), wherein, in one embodiment, operating system also comprises initialization subregion; Initialization subregion is used for the hardware configuration of initialized operating system.Like this, when operating system update unsuccessfully causes operating system to be damaged, can pass through initialization subregion, be initial condition by operating system reduction, thus can ensure that user can continue to use operating system to enjoy service, increases the stability of a system.
6), wherein, in one embodiment, when there being multiple system version of operating system in server, the system upgrade bag that intelligent television can only download to the system of the high one-level version upgrading to current operation system can be limited, so that lower the data volume of system upgrade bag, ensure that all system upgrade bags can successfully be downloaded.Such as, operating system version in server order is from low to high followed successively by V1.0, V2.0, V3.0, then in server, store the system upgrade bag that V1.0 upgrades to V2.0, and V2.0 upgrades to the system upgrade bag of V3.0, if the current version of the operating system of intelligent television is V1.0, then this intelligent television can only download to the system upgrade bag that V1.0 upgrades to V2.0.If this intelligent television needs by operating system update to V3.0, then this operating system needs to carry out twice upgrading.
Wherein, in one embodiment, system upgrade bag comprises two timestamps, one is the timestamp representing lowest version system, one is the timestamp representing highest version system, operating system can judge to download which system upgrade bag according to timestamp, such as operating system has the timestamp of current operation system, system upgrade bag in server comprises the timestamp of lowest version and the timestamp of highest version, then operating system can detect in server the system upgrade bag whether existing and represent that the timestamp of lowest version is identical with the timestamp of this operating system, if, then determine the system upgrade bag that there is this operating system in server.
To sum up, in the embodiment of the present invention, operating system comprises the subregion of supporting document system, realizes the standalone upgrade of the file of the supporting document system to operating system, and the upgrading of the whole functional module of hinge structure, can save network traffics, improves upgrading efficiency.In the embodiment of the present invention, operating system also comprises at least two operating system nucleus, operating system nucleus is being upgraded, can upgrade and be in the backup kernel of off-duty state, thus the main kernel that can ensure to be in running status can continue to run, to prevent the use because renewal rewards theory system kernel causes user to interrupt operating system.In addition, upgrade backup kernel and can avoid because operating system nucleus upgrades unsuccessfully, the operating system nucleus caused is unavailable, thus ensures the stability of operating system.In addition, in embodiments of the present invention, partitions of file upgrading be placed on restart or next time start time carry out, to guarantee that user can not be interrupted the use of operating system.Finally, in the embodiment of the present invention, after all file system service packs are all for the synthesis of new system update information, spanned file upgrading mark, and identified partitions of file upgrading when restarting or next time starts shooting according to document upgrading, upgrade successively relative to functional module in prior art, more can ensure the success of system overall situation upgrading, improve the success rate of system upgrade.
Embodiment two
The operating system update that the embodiment of the present invention provides is applicable to mobile phone, panel computer, intelligent television etc.
As shown in Figure 2, to upgrade to example to intelligent television system, be described in detail to the operating system update method in the embodiment of the present invention, the method comprises the following steps:
Wherein, intelligent television system comprises two operating system nucleus, is respectively A kernel, B kernel; The subregion of the supporting document system of intelligent television system can also be divided into data partition and function division further; Intelligent television system also comprises initialization subregion; Wherein:
Data partition comprises critical data and the user configuration information of intelligent television system; Function division comprises middleware and the application program of intelligent television system;
Initialization subregion is used for initialization intelligent television hardware configuration.When intelligent television system is upgraded, only upgrade for operating system nucleus, data partition and function division.
Step 201: intelligent television by A kernel run time, when determining to upgrade to intelligent television system, download system AKU from server, wherein, main kernel when A kernel is system update, backup kernel when B kernel is system update.
Step 202: when system upgrade bag comprises file service packs, according to file service packs, synthesizes the new system update information of the file to be upgraded for upgrading the subregion belonging to supporting document system and stores; When system upgrade bag comprises the kernel patch bag of operating system nucleus, kernel patch bag is updated in backup kernel B, and kernel is started the mark that mark changes to backup kernel B.
Wherein, " according to file service packs, synthesize the new system update information of the file to be upgraded for upgrading the subregion belonging to supporting document system and store " in step 202, specifically can perform and be:
When file service packs comprises the extended file of the subregion of supporting document system, store after extended file is labeled as newly-increased file;
When file service packs comprises the patch of the existing file of the subregion of supporting document system, copy existing file, the patch of existing file is updated in the existing file copied, and store after the existing file after renewal is labeled as alternate file;
When file service packs comprises delete instruction, the file to be deleted that file identification to be deleted in loading delete instruction is corresponding, and generate the check code of file to be deleted, check code in the check code of the file to be deleted generated and delete instruction is compared, when comparison result is consistent, store delete instruction.
Step 203: downloaded at all system upgrade bags of determination operation system, and the file service packs in all system upgrade bags is for the synthesis of after new system update information, spanned file upgrading mark.
Step 204: when restarting or start shooting, detects and whether there is document upgrading mark, if so, then perform step 205, if not, then performs step 208.
Step 205: start mark according to kernel, starts backup kernel B, and main kernel when becoming next system update to make backup kernel B, performs step 206 afterwards.
Step 206: according to the file to be upgraded of the subregion of the new system update information updating supporting document system of synthesis.
Wherein, step 206 specifically can perform and be:
When new system update information comprises newly-increased file, newly-increased file is installed;
When new system update information comprises alternate file, replace existing file corresponding to alternate file with alternate file;
When new system update information comprises delete instruction, delete the file that this delete instruction requirement is deleted.
Step 207: upgrade core A with kernel B, afterwards, end operation.
Step 208: start core A, and upgrade kernel B by core A, afterwards, end operation.
Wherein, in one embodiment, when the damage of intelligent television operating system can not run, initialization subregion initialization intelligent television hardware configuration is started.
In the embodiment of the present invention, by the function of main kernel, backup kernel and initialization intelligent television hardware configuration, the normal operation of intelligent television system can be ensured, thus ensure the stability of intelligent television system.Independently carried out by the upgrading of operating system nucleus and partitions of file upgrading, can ensure that user normally uses intelligent television system; In addition, the embodiment of the present invention is by after all system upgrade bags have all been downloaded and synthesized new system update information, partitions of file upgrading is completed when restarting or next time starts shooting, the system upgrade failure because system upgrade bag failed download or synthesis system lastest imformation unsuccessfully cause can be avoided, and the system damage that system upgrade unsuccessfully causes, thus ensure the success rate of system upgrade and the stability of system further.
Embodiment three
Based on identical inventive concept, the invention provides a kind of operating system update device, as shown in Figure 3, this device comprises:
Download module 301, for when determining to upgrade to operating system, download system AKU from server; Wherein, operating system comprises the subregion of supporting document system; Wherein, the subregion of supporting document system is the set of the file of supporting document system in operating system, and each file belonged in the subregion of supporting document system can be upgraded separately;
File update module 302, during for comprising the file service packs of the file to be upgraded of the subregion belonging to supporting document system when system upgrade bag, upgrades file to be upgraded according to file service packs.
Wherein, in one embodiment, device also comprises:
First kernel update module, also comprises at least two operating system nucleus for operating system, and the main kernel when operating system nucleus being in running status is system update, the backup kernel when operating system nucleus being in off-duty state is system update; When system upgrade bag comprises the kernel patch bag of operating system nucleus, upgrade backup kernel with kernel patch bag, and kernel is started the mark that mark changes to backup kernel;
Start module, for when restarting or start shooting, starting mark according to kernel, starting and backing up kernel, main kernel when becoming next system update to make backup kernel;
Second kernel update module, for upgrading the operating system nucleus of restarting or be in off-duty state after starting shooting with the backup kernel started.
Wherein, in one embodiment, file update module, specifically comprises:
Synthesis unit, for when restarting or start shooting, starts mark according to kernel, before starting backup kernel, according to file service packs, synthesizes the new system update information of the file to be upgraded for upgrading the subregion belonging to supporting document system and stores;
File update unit to be upgraded, for when restarting or start shooting, starts mark according to kernel, after starting backup kernel, according to the file to be upgraded of the subregion of the new system update information updating supporting document system of synthesis.
Wherein, in one embodiment, synthesis unit specifically for:
When file service packs comprises the extended file of the subregion of supporting document system, store after extended file is labeled as newly-increased file;
When file service packs comprises the patch of the existing file of the subregion of supporting document system, copy existing file, the patch of existing file is updated in the existing file copied, and store after the existing file after renewal is labeled as alternate file;
When file service packs comprises delete instruction, the file to be deleted that file identification to be deleted in loading delete instruction is corresponding, and generate the check code of file to be deleted, check code in the check code of the file to be deleted generated and delete instruction is compared, when comparison result is consistent, store delete instruction.
Wherein, in one embodiment, file update unit to be upgraded specifically for:
When new system update information comprises newly-increased file, newly-increased file is installed;
When new system update information comprises alternate file, replace existing file corresponding to alternate file with alternate file;
When new system update information comprises delete instruction, delete the file that this delete instruction requirement is deleted.
Wherein, in one embodiment, device also comprises:
Upgrading identifier generation module, for the synthesis of file according to file service packs, after synthesis also stores for the new system update information upgrading the file to be upgraded of the subregion belonging to supporting document system, download at all system upgrade bags of determination operation system, and the file service packs in all system upgrade bags is for the synthesis of after new system update information, spanned file upgrading mark;
Start module, specifically for:
When restarting or start shooting, detecting and whether there is document upgrading mark;
When there is document upgrading mark, starting mark according to kernel, starting backup kernel.
Wherein, in one embodiment, start module also for:
When there is not document upgrading mark, start the main kernel before restarting or starting shooting, and upgrade backup kernel with this main kernel.
Wherein, in one embodiment, system also comprises initialization subregion, and initialization subregion is used for the hardware configuration of initialization system.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. an operating system update method, is characterized in that, described method comprises:
When determining to upgrade to operating system, download system AKU from server; Wherein, described operating system comprises the subregion of supporting document system; Wherein, the subregion of described supporting document system is in described operating system, the set of the file of supporting document system, and each file belonged in the subregion of supporting document system can be upgraded separately;
When described system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to described supporting document system, upgrade described file to be upgraded according to described file service packs.
2. method according to claim 1, it is characterized in that, described operating system also comprises at least two operating system nucleus, and the main kernel when operating system nucleus being in running status is system update, the backup kernel when operating system nucleus being in off-duty state is system update; When described system upgrade bag comprises the kernel patch bag of operating system nucleus, described method also comprises:
Upgrade described backup kernel with described kernel patch bag, and kernel is started the mark that mark changes to described backup kernel;
When restarting or start shooting, starting mark according to described kernel, starting described backup kernel, main kernel when becoming next system update to make described backup kernel;
With the described backup kernel started, the operating system nucleus of restarting or be in off-duty state after starting shooting is upgraded.
3. method according to claim 2, is characterized in that, when described system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to described supporting document system, upgrades described file to be upgraded, specifically comprise according to described file service packs:
Described when restarting or start shooting, starting mark according to described kernel, before starting described backup kernel, according to described file service packs, synthesize the new system update information of the file to be upgraded for upgrading the subregion belonging to described supporting document system and store;
Described when restarting or start shooting, start mark according to described kernel, after starting described backup kernel, the file to be upgraded of the subregion of supporting document system according to the described new system update information updating of synthesis.
4. method according to claim 3, is characterized in that, described according to described file service packs, synthesizes the new system update information of the file to be upgraded for upgrading the subregion belonging to described supporting document system and stores, specifically comprising:
When described file service packs comprises the extended file of the subregion of described supporting document system, store after described extended file is labeled as newly-increased file;
When described file service packs comprises the patch of the existing file of the subregion of described supporting document system, copy described existing file, the patch of described existing file is updated in the described existing file copied, and stores after the existing file after renewal is labeled as alternate file;
When described file service packs comprises delete instruction, load the file to be deleted that file identification to be deleted in described delete instruction is corresponding, and generate the check code of described file to be deleted, check code in the check code of the file to be deleted generated and described delete instruction is compared, when comparison result is consistent, store described delete instruction.
5. method according to claim 4, is characterized in that, the file to be upgraded of the subregion of described supporting document system according to the described new system update information updating of synthesis, specifically comprises:
When described new system update information comprises newly-increased file, described newly-increased file is installed;
When described new system update information comprises alternate file, replace existing file corresponding to described alternate file with described alternate file;
When described new system update information comprises delete instruction, delete the file that described delete instruction requirement is deleted.
6. method according to claim 3, is characterized in that, described according to described file service packs, synthesize the file to be upgraded for upgrading the subregion belonging to described supporting document system new system update information and store after, described method also comprises:
Determining that all system upgrade bags of described operating system have been downloaded, and the file service packs in all system upgrade bags is for the synthesis of after described new system update information, spanned file upgrading mark;
Described when restarting or start shooting, start mark according to described kernel, start described backup kernel, specifically comprise:
When restarting or start shooting, detecting and whether there is described document upgrading mark;
When there is described document upgrading mark, starting mark according to described kernel, starting described backup kernel.
7. method according to claim 6, is characterized in that, described method also comprises:
When there is not described document upgrading mark, start the main kernel before restarting or starting shooting, and upgrade backup kernel with this main kernel.
8. method according to claim 1, is characterized in that, described operating system also comprises initialization subregion, and described initialization subregion is used for the hardware configuration of operating system described in initialization.
9. an operating system update device, is characterized in that, described device comprises:
Download module, for when determining to upgrade to operating system, download system AKU from server; Wherein, described operating system comprises the subregion of supporting document system; Wherein, the subregion of described supporting document system is the set of the file of supporting document system in described operating system, and each file belonged in the subregion of supporting document system can be upgraded separately;
File update module, for when described system upgrade bag comprises the file service packs of the file to be upgraded of the subregion belonging to described supporting document system, upgrades described file to be upgraded according to described file service packs.
10. device according to claim 9, is characterized in that, described device also comprises:
First kernel update module, at least two operating system nucleus are also comprised for described operating system, and the main kernel of the operating system nucleus being in running status when being system update, the backup kernel when operating system nucleus being in off-duty state is system update; When described system upgrade bag comprises the kernel patch bag of operating system nucleus, upgrade described backup kernel with described kernel patch bag, and kernel is started the mark that mark changes to described backup kernel;
Start module, for when restarting or start shooting, starting according to described kernel and identifying, starting described backup kernel, main kernel when becoming next system update to make described backup kernel;
Second kernel update module, for upgrading the operating system nucleus of restarting or be in off-duty state after starting shooting with the described backup kernel started.
CN201510306914.5A 2015-06-05 2015-06-05 A kind of operating system update method and device Active CN104918114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510306914.5A CN104918114B (en) 2015-06-05 2015-06-05 A kind of operating system update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510306914.5A CN104918114B (en) 2015-06-05 2015-06-05 A kind of operating system update method and device

Publications (2)

Publication Number Publication Date
CN104918114A true CN104918114A (en) 2015-09-16
CN104918114B CN104918114B (en) 2018-05-18

Family

ID=54086755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510306914.5A Active CN104918114B (en) 2015-06-05 2015-06-05 A kind of operating system update method and device

Country Status (1)

Country Link
CN (1) CN104918114B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677427A (en) * 2016-01-12 2016-06-15 浪潮通用软件有限公司 Module upgrading method and device
CN105867962A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 System upgrading method and device
CN107766064A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 The method and device of component upgrade
CN111399874A (en) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 System upgrading method and device, storage medium and intelligent wearable device
CN112698846A (en) * 2020-12-30 2021-04-23 麒麟软件有限公司 Method and system for automatically installing patch in Linux system
CN113821233A (en) * 2021-06-15 2021-12-21 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product
CN113905039A (en) * 2021-09-30 2022-01-07 苏州挚途科技有限公司 System upgrade file transmission method, device and system
WO2022022185A1 (en) * 2020-07-29 2022-02-03 华为技术有限公司 Kernel restarting method
CN114389951A (en) * 2022-03-02 2022-04-22 深圳震有科技股份有限公司 Seamless upgrading method under 5G network, network equipment and storage medium
CN115729586A (en) * 2021-06-15 2023-03-03 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140082A1 (en) * 2002-01-23 2003-07-24 Nec Corporation Patch processing system and method
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
CN102455954A (en) * 2011-10-17 2012-05-16 中标软件有限公司 Power-failure-preventing upgrading method of Linux system
CN103514016A (en) * 2013-09-22 2014-01-15 上海华为技术有限公司 Method and device for upgrading system version and base station controller
CN104252369A (en) * 2013-06-27 2014-12-31 上海博泰悦臻电子设备制造有限公司 On-board equipment and dual-system backup method and device of on-board equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140082A1 (en) * 2002-01-23 2003-07-24 Nec Corporation Patch processing system and method
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
CN102455954A (en) * 2011-10-17 2012-05-16 中标软件有限公司 Power-failure-preventing upgrading method of Linux system
CN104252369A (en) * 2013-06-27 2014-12-31 上海博泰悦臻电子设备制造有限公司 On-board equipment and dual-system backup method and device of on-board equipment
CN103514016A (en) * 2013-09-22 2014-01-15 上海华为技术有限公司 Method and device for upgrading system version and base station controller

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867962A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 System upgrading method and device
CN105677427A (en) * 2016-01-12 2016-06-15 浪潮通用软件有限公司 Module upgrading method and device
CN107766064A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 The method and device of component upgrade
CN111399874A (en) * 2020-03-05 2020-07-10 Tcl移动通信科技(宁波)有限公司 System upgrading method and device, storage medium and intelligent wearable device
CN114064128B (en) * 2020-07-29 2024-01-02 华为技术有限公司 Kernel restarting method
WO2022022185A1 (en) * 2020-07-29 2022-02-03 华为技术有限公司 Kernel restarting method
CN114064128A (en) * 2020-07-29 2022-02-18 华为技术有限公司 Kernel restarting method
CN112698846A (en) * 2020-12-30 2021-04-23 麒麟软件有限公司 Method and system for automatically installing patch in Linux system
CN112698846B (en) * 2020-12-30 2024-04-09 麒麟软件有限公司 Method and system for automatically installing patches in Linux system
CN113821233A (en) * 2021-06-15 2021-12-21 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product
CN115729586A (en) * 2021-06-15 2023-03-03 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product
CN115729586B (en) * 2021-06-15 2023-10-20 荣耀终端有限公司 Operating system upgrade method, device, storage medium and computer program product
CN113905039A (en) * 2021-09-30 2022-01-07 苏州挚途科技有限公司 System upgrade file transmission method, device and system
CN114389951A (en) * 2022-03-02 2022-04-22 深圳震有科技股份有限公司 Seamless upgrading method under 5G network, network equipment and storage medium

Also Published As

Publication number Publication date
CN104918114B (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN104918114A (en) Method and device for upgrading operation system
RU2419839C2 (en) Software update system and method for portable ota supporting mobile terminal
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN101110788B (en) Method and system for updating client software
US20100325622A1 (en) Updating Firmware of an Electronic Device
WO2019062635A1 (en) Update method and device
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
WO2022111097A1 (en) File update method and apparatus, device and storage medium
CN105373396A (en) Method and device for updating plug-in in plug-in platform
CN106886436B (en) Android system upgrading method and device
CN111221682B (en) Method for mirroring storage system
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN107643898A (en) Terminal staging method and device
CN105740017A (en) Cloud television system upgrading method and device
CN106210877A (en) The method for upgrading system of intelligent television and device
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
CN111290773A (en) System upgrading method, device and readable storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN117056115B (en) Application program repairing method and device, storage medium and electronic equipment
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN103559059A (en) Quick medium-free upgrading method for Linux system
CN111338751B (en) Cross-pool migration method and device for data in same ceph cluster
CN106933604B (en) System upgrading method and device
CN113032183A (en) System management method, device, computer equipment and storage medium
CN112882746A (en) Application program updating method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: HISENSE ELECTRIC Co.,Ltd.

CP01 Change in the name or title of a patent holder