CN104918114B - A kind of operating system update method and device - Google Patents

A kind of operating system update method and device Download PDF

Info

Publication number
CN104918114B
CN104918114B CN201510306914.5A CN201510306914A CN104918114B CN 104918114 B CN104918114 B CN 104918114B CN 201510306914 A CN201510306914 A CN 201510306914A CN 104918114 B CN104918114 B CN 104918114B
Authority
CN
China
Prior art keywords
file
kernel
operating
subregion
update
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.)
Active
Application number
CN201510306914.5A
Other languages
Chinese (zh)
Other versions
CN104918114A (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 present invention relates to a kind of operating system update method and devices.The described method includes:When determining to upgrade operating system, the download system upgrade package from server;Wherein, the operating system includes supporting the subregion of file system;Wherein, described to support the subregion of file system in the operating system, to support the set of the file of file system, each file belonged in the subregion for supporting file system can individually be upgraded;When the system upgrade bag includes belonging to the file service packs of the file to be upgraded of the subregion of the support file system, the file to be upgraded is updated according to the file service packs.Network traffics during operating system update can be saved by the method for the present invention, and improve the efficiency of system upgrade.

Description

A kind of operating system update method and device
Technical field
The present invention relates to intelligent television field more particularly to a kind of operating system update method and devices.
Background technology
Operating system is management computer hardware resource, other programs is controlled to run and provide interactive operation interface to the user System software set, such as intelligent television system is a kind of operating system, make user appreciated by smart television it is common During television content, types of applications software can be voluntarily installed and uninstalled, persistently the function of intelligent television system is expanded.
During operating system is the life of people's service, often operating system is upgraded.
Below by taking intelligent television system as an example, the method for operating system update in the prior art is illustrated:Existing skill In order to upgrade to intelligent television system in art, being usually divided into intelligent television system has the function of relatively independent at least two Function module, such as a certain instant communication software is divided into a function module, a certain office software is divided into another Function module.During intelligent television system is run, if desired system upgrade, then replaced to be upgraded with new function module Entire function module.
But in the prior art, after having divided function module, a function module is a string of binary digits, so one Function module is a not subdividable entirety.If reality only needs the partial content of one function module of upgrading, it can only replace Change entire function module.For example, instant communication software is as a function module, if the content of upgrading is to update the instant messaging During the login page of software, then just need to replace entire instant communication software.So in the prior art according to function module liter There is the problem of upgrading efficiency is low in grade, in addition, the upgrade package downloaded from server is also the data of entire function module, so, The prior art also there are problems that wasting network traffics.
In addition, in the prior art, function module upgrades successively, upper updating functional modules success can not represent down One function module can also upgrade successfully, and fail if there are one updating functional modules in escalation process, then operating system will Upgrading failure, so in the prior art function module upgrade successively also there are success rate for upgrading it is low the problem of.
The content of the invention
The object of the present invention is to provide a kind of operating system update method and device, to overcome operating system in the prior art Due to according to updating functional modules cause waste network traffics, upgrading efficiency it is low wait the problem of.
On the one hand, the present invention provides a kind of operating system update method, including:
When determining to upgrade operating system, the download system upgrade package from server;Wherein, the operating system Subregion including supporting file system;Wherein, it is described to support the subregion of file system in the operating system, to support file system The set of the file of system, each file belonged in the subregion for supporting file system can individually be upgraded;
When the file that the system upgrade bag includes belonging to the file to be upgraded of the subregion of the support file system is mended During fourth bag, the file to be upgraded is updated according to the file service packs.
On the other hand, the present invention provides a kind of operating system update device.Described device includes:
Download module, for determine operating system is upgraded when, the download system upgrade package from server;Its In, the operating system includes supporting the subregion of file system;Wherein, it is described to support that the subregion of file system is for the operation The set of the file of file system is supported in system, each file belonged in the subregion for supporting file system can individually be risen Grade;
File update module, the subregion for including belonging to the support file system for working as the system upgrade bag are treated During the file service packs of upgrade file, the file to be upgraded is updated according to the file service packs.
The present invention at least has the advantages that:In method provided by the invention, operating system includes supporting text The subregion of part system;Wherein, the subregion of file system is supported in operating system, to support the set of the file of file system, to belong to Each file in the subregion for supporting file system can individually be upgraded.If it for example, only needs to upgrade instant messaging During the login page of software, since the login page is a file in the subregion of support file system, then under only needing It carries and upgrades this login page.In this way, compared in the prior art, it is necessary to download and update entire function module, both The data volume of download can be reduced, saves network traffics, the data volume of upgrading can also be reduced, improves upgrading efficiency.
Description of the drawings
Fig. 1 is one of exemplary process diagram of operating system update method in the embodiment of the present invention;
Fig. 2 is two of the exemplary process diagram 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.
Specific embodiment
The embodiment of the present invention is illustrated below in conjunction with attached drawing, it should be understood that embodiment described herein is only used In the description and interpretation present invention, it is not intended to limit the present invention.
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
The embodiment of the present invention provides a kind of operating system update method, in method provided by the invention, in operating system Subregion including supporting file system;Wherein, the subregion of file system is supported in operating system, to support the file of file system Set, belong to support file system subregion in each file can individually be upgraded.If it for example, only needs to upgrade During the login page of instant communication software, since the login page is a file in the subregion of support file system, then It only needs to download and upgrade this login page.In this way, compared in the prior art, it is necessary to download and update entire function Module can both reduce the data volume of download, save network traffics, can also reduce the data volume of upgrading, improve upgrading efficiency.
In addition, in the prior art, there is usually one operating system nucleus, so when the upgrading of operating system is related to grasping When making system kernel, then operating system cannot be that user normally provides service.If such as just in newer function module, including right During the update of operating system nucleus, then need to stop for the use to operating system, and enter upgrading link.To operation System kernel can continue to enjoy the service that operating system provides after successfully upgrading;If the updating functional modules fail, Because operating system nucleus is destroyed operating system is caused to damage.In this way, operating system just cannot provide service to the user.
Fail for the problem that aforesaid operations system kernel upgrades, operating system will be caused to damage, the present invention proposes to understand Certainly scheme.Specifically, operating system provided by the invention further includes at least two operating system nucleus, and it is in operating status Main kernel when operating system nucleus is system update, it is standby when the operating system nucleus in off-duty state is system update Part kernel.And, it is necessary to when being updated to operating system nucleus, then updating backup kernel during operating system and should Main kernel when kernel is as next system update.When restarting or starting shooting, then updated backup kernel can be used to run Operating system, the main kernel that so updated backup kernel becomes new due to being in operating status, and with the new main kernel Update is in the operating system nucleus of off-duty state after restarting or starting shooting, to keep the consistent of operating system nucleus.Thus As it can be seen that in the embodiment of the present invention, when the operating system nucleus to operating system is updated without stopping to operating system It uses, only need to update backup kernel, so that user can continue to enjoy the service that operating system provides.Such as work as behaviour Make system for intelligent television system when, user can update intelligent television system kernel when continue watch TV programme, make User completes the upgrading to operating system nucleus in the case of no perception.In addition, even if operating system nucleus is updated Failure, then the main kernel in operating status without update because can still run, then compared with the prior art, operating system It can still be run according to the operating system nucleus of no damage, so as to improve the stability of operating system.
In addition, in the embodiment of the present invention, when upgrading to partitions of file, if the text for needing to upgrade is used in user When the operation of part or operating system relies on this document (such as this document is related to operating system memory upgrading), then user is needed Suspend current business.In order not to interrupting the business of user, realize and complete operating system update in the case of user's unaware, The upgrading of the backup kernel of operating system can be carried out independently with partitions of file upgrading.Specifically, can first it upgrade in backup Core, according to file service packs, synthesis updates for updating the new system for the file to be upgraded for belonging to the subregion for supporting file system Information simultaneously stores, and then completes partitions of file upgrading according to new system fresh information when restarting or starting shooting.So as to fulfill not The upgrading of operating system is dynamically completed in the case of influence user's normal use operating system.
In addition, inventor has found that function module the main reason for success rate for upgrading is low successively in the prior art It is it cannot be guaranteed that all function modules to be upgraded all upgrade successfully.If some updating functional modules successes, some function moulds Block upgrading failure, then it is inconsistent to ultimately result in the version of each function module in same operating system, so as to cause operating system Upgrading failure.Especially when the function module upgraded successfully cannot be compatible with the function module not upgraded, the function may be caused Module or relevant function module are unable to operate normally.And function module failed download to be upgraded or will according to service packs The main reason for procedure failure of functional module synthesis new function module is updating functional modules failure, so as to cause operation System integrally upgrades failure.
In consideration of it, in the embodiment of the present invention, when the upgrading of operating system is the text to belonging to the subregion for supporting file system During the upgrading of part (for ease of reading and understanding hereinafter referred to as partitions of file upgrading), in the version that down operation system to be upgraded to All system upgrade bags after, and according to all system upgrades of download include into new system fresh information and then to text Part subregion is upgraded, and so unsuccessfully operating system update can be caused to fail to avoid failed download or synthesis.
In addition, if the upgrading of backup kernel and partitions of file upgrading independently carry out successively, in order to avoid operating system nucleus It upgrades successfully, and the situation of partitions of file upgrading failure, in the embodiment of the present invention, in all system upgrades of down operation system Bag, and according to all system upgrades of download inclusion into after new system fresh information, generation document upgrading mark, restarting or When person starts shooting, if not detecting this document upgrading mark, partitions of file upgrading failure can be determined, and then can basis Last time is in the backup kernel for kernel covering last time in the master of operating status being not in operating status, to keep operating system nucleus Global coherency improves the stability of system.
Operating system update method provided in an embodiment of the present invention is illustrated below by specific embodiment.
Embodiment one
As shown in Figure 1, in the embodiment of the present invention, the exemplary process diagram of operating system update method, this method includes Following steps:
Step 101:When determining to upgrade operating system, the download system upgrade package from server;Wherein, operate System includes supporting the subregion of file system;Wherein, the subregion of file system is supported in operating system, to support file system The set of file, each file belonged in the subregion for supporting file system can individually be upgraded.
Wherein, in one embodiment, can be determined whether according to one of following methods to operating system update:
Method one:According to preset detection cycle, when reaching detection time point, whether there is in detection service device The system upgrade bag of operating system, if in the presence of, it is determined that operating system update, otherwise, it determines not to operating system update.
Method two:When receiving detection instruction, it whether there is the system upgrade bag of operating system in detection service device, if depositing , it is determined that operating system update, otherwise, it determines not to operating system update.
Wherein, detection instruction can be that user performs predetermined registration operation, for example, start the generation of detection function key or Smart television is sent to after server generates system upgrade bag.
Step 102:When the file that system upgrade bag includes belonging to the file to be upgraded for the subregion for supporting file system is mended During fourth bag, file to be upgraded is updated according to file service packs.
Hereinafter, expansion explanation is carried out to the embodiment of the present invention, wherein:
1), in one embodiment, in order to not influence the use of user in upgrading operation system kernel, the present invention is implemented In example, operating system further includes at least two operating system nucleus, and the operating system nucleus in operating status for system more Main kernel when new, the backup kernel when operating system nucleus in off-duty state is system update;When system upgrade bag When including the kernel patch bag of operating system nucleus, the embodiment of the present invention can also carry out following operation:
Step A1:Backup kernel is updated with kernel patch bag, and kernel is started and identifies the mark for being changed to backup kernel.
Step A2:When restarting or starting shooting, according to kernel start identify, start backup kernel so that backup kernel into For next system update when main kernel.
Wherein, kernel starts which operating system nucleus selection when identity user restarts or starts shooting starts.
Step A3:With the backup kernel of startup to be in after restarting or starting shooting the operating system nucleus of off-duty state into Row update.
In this way, be that the operating system nucleus for being in off-duty state is operated to the upgrading of operating system nucleus, Because not operated to the operating system nucleus for being in operating status, realize that the upgrading to operating system nucleus does not interfere with user Use to operating system.
2), in one embodiment, in order to ensure operating system can normal operation, do not interrupt the operation system that user uses The function of system, and can be ensured that the smooth upgrading of operating system, step 102 can be performed specifically as before step A2, according to text Part service packs, synthesis belong to the new system fresh information of the file to be upgraded for the subregion for supporting file system for update and deposit Storage;After step A2, the file to be upgraded for the subregion for supporting file system is updated according to the new system fresh information of synthesis.Its In, the operation of synthesis new system fresh information can specifically comprise the following steps:
Step B1:When file service packs includes supporting the extended file of the subregion of file system, by extended file mark It notes to store after newly-increased file.
Step B2:When file service packs includes supporting the patch of the existing file of the subregion of file system, replicate There is file, the patch of existing file is updated in the existing file of duplication, and updated existing file is labeled as replacing It is stored after file.
Step B3:When file service packs includes deleting instruction, the file identification pair to be deleted in instruction is deleted in loading The file to be deleted answered, and the check code of file to be deleted is generated, by the check code of the file to be deleted of generation and delete instruction In check code be compared, when comparison result is consistent, storage delete instruction.
Wherein, it is necessary to which explanation, the execution sequence of step B1- steps B3 are unrestricted.
Wherein, in one embodiment, system upgrade bag can be a bag, include operating system in this bag All upgrade patch;It certainly, can also be by the institute of operating system when all upgrade patch data volumes of operating system are bigger There is upgrade patch to be divided at least two bags in order to packet-by-packet store and download, with improve that all upgrade package download into Power.For example, needing the subregion upgraded when operating system includes two, one of subregion is operating system nucleus, another Subregion is when supporting the subregion of file system, and system upgrade bag can also be two bags, wherein, the corresponding subregion of a bag, That is a bag respective operations system kernel, the corresponding subregion for supporting file system of another bag, specifically how by all system liters Grade information is divided at least two bags, can be regarded actual needs and be set, the present invention does not limit this.
Wherein, in one embodiment, in step B2, file service packs includes check code, which is used to verify After the patch of existing file is updated in the existing file of duplication, the raw correctness into updated existing file, because This, step B2, which can be performed specifically, is:When file service packs include support file system subregion existing file patch and During check code, replicate existing file, the patch of existing file is updated in the existing file of duplication, and generate it is updated Documentary check code the check code of generation is compared with the check code in file system service packs, when comparison result one It during cause, determines that successfully the patch of existing file is updated in the existing file of duplication, having afterwards and after being successfully updated File stores after being labeled as alternate file.
In the embodiment of the present invention, when the upgrading of operating system includes upgrading the upgrading of operating system nucleus and partitions of file When, then it downloads and completes when all system upgrade bags, and the kernel patch bag in all system upgrade bags has been used for updating Backup kernel, and file service packs is had been used for after synthesizing new system fresh information, then the preparation of operating system update It is complete, so as to which compared in the prior art, function module upgrades the success rate that can improve system upgrade successively.For example, In the prior art, the upgrading of an a function module then function module, if the newer function module of the latter, failed download Or service packs is blended into the existing module of current operation system and failed, it will cause system upgrade failures so that operation System failure, and in the embodiment of the present invention, it has been to ensure that and has downloaded successfully, and restarted or opening after ensuring generation new system unit It is further continued for upgrading during machine, so as to avoid, because downloading unsuccessful or synthesis new system fresh information failure, causing system Upgrading failure, so as to which, the embodiment of the present invention can improve the success rate of system upgrade, and then ensure system can normal operation, The stability of raising system.
3), wherein, in one embodiment, according to file service packs, synthesize new system unit fresh information and store, have Body comprises the following steps:
Step C1:When new system fresh information includes newly-increased file, newly-increased file is installed.
Step C2:When new system fresh information includes alternate file, it is corresponding to replace alternate file with alternate file There is file.
Step C3:When new system fresh information includes deleting instruction, the file that deletion instruction requirement is deleted is deleted.
Wherein, it is necessary to which explanation, the execution sequence of step C1- steps C3 are unrestricted.
4), wherein, in one embodiment, if the upgrading of operating system includes operating system nucleus upgrading and partitions of file During upgrading, since backup kernel upgrading and the partitions of file upgrading of operating system nucleus independently carry out, in order to avoid operation System kernel upgrades successfully, but the situation that the operation for synthesizing new system fresh information may fail, and therefore, when specific implementation can To have downloaded completion in all system upgrade bags for determining operating system, and the file service packs in all system upgrade bags has been used After new system fresh information is synthesized, generation document upgrading mark.Then, above-mentioned steps A2 (i.e. when restarting or starting shooting, Started according to kernel and identified, start backup kernel), it specifically can perform as following steps:
Step D1:When restarting or starting shooting, detect whether that there are document upgrading marks.
Step D2:When there are during document upgrading mark, starting according to kernel and identifying, start backup kernel.
In the embodiment of the present invention, after new system fresh information is successfully synthesized, document upgrading mark is just generated.So When there are successfully synthesis new system fresh information has been represented during document upgrading mark, which is used to complete file Subregion upgrades, and therefore, updated backup kernel can start, in order to use updated backup kernel operation operation system System, and and then completion partitions of file upgrading.
Wherein, in one embodiment, if not synthesizing new system fresh information successfully, document upgrading mark will not be generated Know, so, when the testing result of step D1 is that there is no the upgrade package downloads for during document upgrading mark, illustrating to support file system Failure or the fresh information failure of synthesis new system, can not complete partitions of file upgrading, so, in order to keep the uniformity of system With stability, it is necessary to start the main kernel before restarting or starting shooting, and backup kernel is updated with the main kernel.For example, operation system Kernel of uniting includes core A and kernel B, and before restarting or starting shooting, core A is main kernel, and kernel B is backup kernel, works as testing result During for document upgrading mark is not present, then starts core A, and backup kernel B is updated with the main kernel.
It is to be appreciated that in embodiments of the present invention, if operating system update relates only to operating system nucleus upgrading, it is System easy to operation determines to perform step A3 or starts the main kernel before restarting or start shooting, and is updated with the main kernel standby Part kernel, when specific implementation, which can perform, is:It can also determine that system upgrade bag only includes kernel patch bag before step A2 The kernel sign of Shi Shengcheng only upgrading operation system kernels, then step A2, which can perform, is:
Step E1:When restarting or starting shooting, detect whether that there are document upgrading mark or kernel signs.
Step E2:In there are when document upgrading mark or kernel sign, being started according to kernel and being identified, startup is backed up Core.
Step E3:It to identify when there is no document upgradings, also there is no during kernel sign, start before restarting or starting shooting Main kernel, and update backup kernel with the main kernel.
5), wherein, in one embodiment, operating system further includes initialization subregion;Initialization subregion is used to initialize The hardware configuration of operating system.In this way, when operating system update unsuccessfully causes operating system to be damaged, initialization point can be passed through Operating system reduction is original state by area, is enjoyed service so as to ensure that user can be continuing with operating system, is increased system System stability.
6), wherein, in one embodiment, when there are multiple system versions of operating system in server, can limit Smart television can only download to the system upgrade bag of the system for the high level-one version for upgrading to current operation system, in order to lower The data volume of system upgrade bag ensures that all system upgrade bags can be downloaded successfully.Such as the operating system version in server Order from low to high is followed successively by V1.0, V2.0, V3.0, then in server, is stored with the system upgrade that V1.0 upgrades to V2.0 Bag and V2.0 upgrade to the system upgrade bag of V3.0, if the current version of the operating system of smart television is V1.0, the intelligence Energy TV can only download to the system upgrade bag that V1.0 upgrades to V2.0.If the smart television is needed operating system update extremely V3.0, then the operating system needs upgraded twice.
Wherein, in one embodiment, system upgrade bag includes two timestamps, and one represents lowest version system Timestamp, one is the timestamp for representing highest version system, and operating system can judge which system liter downloaded according to timestamp Grade is wrapped, such as timestamp of the operating system with current operation system, and the system upgrade bag in server includes lowest version The timestamp of timestamp and highest version, then operating system can in detection service device whether there is represents lowest version timestamp and The identical system upgrade bag of the timestamp of the operating system, if so, determining that there are the system liters of the operating system in server Grade bag.
To sum up, operating system includes supporting the subregion of file system in the embodiment of the present invention, realizes the branch to operating system The standalone upgrade of the file of file system is held, compared with the prior art the upgrading of entire function module, network traffics can be saved, carried Promotion stage efficiency.Operating system further includes at least two operating system nucleus in the embodiment of the present invention, to operating system nucleus Upgrading, can upgrade the backup kernel in off-duty state, thereby may be ensured that the main kernel in operating status can be after Reforwarding row, to prevent use of user's interruption to operating system caused by updating operating system nucleus.In addition, update backup kernel Can avoid because operating system nucleus update failure, caused by operating system nucleus it is unavailable, so as to ensure operating system Stability.In addition, in embodiments of the present invention, partitions of file upgrading, which is placed on, restarts or when start next time carries out, to ensure user The use of operating system will not be interrupted.Finally, in the embodiment of the present invention, all it is used to close in all file system service packs Into after new system fresh information, generation document upgrading mark, and identified and completed according to document upgrading when restarting or start next time Partitions of file upgrades, and upgrades successively compared with function module in the prior art, can more ensure the success of the global upgrading of system, Improve the success rate of system upgrade.
Embodiment two
Operating system update provided in an embodiment of the present invention is suitable for mobile phone, tablet computer, smart television etc..
As shown in Fig. 2, exemplified by upgrading to intelligent television system, to the operating system update method in the embodiment of the present invention It is described in detail, this method comprises the following steps:
Wherein, intelligent television system includes two operating system nucleus, is respectively A kernels, B kernels;Intelligent television system The subregion of support file system can also be further subdivided into data partition and function division;Intelligent television system further includes Initialize subregion;Wherein:
Data partition includes the critical data and user configuration information of intelligent television system;Function division includes intelligence The middleware and application program of energy television system;
Initialization subregion is used to initialize smart television hardware configuration.When intelligent television system upgrades, only for operation System kernel, data partition and function division are upgraded.
Step 201:Smart television by A kernels when being run, when determining to upgrade intelligent television system, from server Download system upgrade package, wherein, main kernel when A kernels are system update, backup kernel when B kernels are system update.
Step 202:When system upgrade bag includes file service packs, according to file service packs, synthesis belongs to for updating In support file system subregion file to be upgraded new system fresh information and store;When system upgrade bag includes operation During the kernel patch bag of system kernel, kernel patch bag is updated in backup kernel B, and by kernel start mark be changed to it is standby The mark of part kernel B.
Wherein, " according to file service packs, synthesis belongs to treating for the subregion for supporting file system for updating in step 202 The new system fresh information of upgrade file simultaneously stores ", it can specifically perform and be:
When file service packs includes supporting the extended file of the subregion of file system, extended file is labeled as increasing newly It is stored after file;
When file service packs includes supporting the patch of the existing file of the subregion of file system, existing file is replicated, The patch of existing file is updated in the existing file of duplication, and is deposited after updated existing file is labeled as alternate file Storage;
When file service packs includes deleting instruction, the file identification to be deleted that loading is deleted in instruction corresponding is waited to delete Except file, and the check code of file to be deleted is generated, by the check code of the file to be deleted of generation and delete the verification in instruction Code is compared, and when comparison result is consistent, instruction is deleted in storage.
Step 203:Completion has been downloaded in all system upgrade bags for determining operating system, and in all system upgrade bags After file service packs has been used for synthesis new system fresh information, generation document upgrading mark.
Step 204:When restarting or starting shooting, detect whether there are document upgrading mark, if so, step 205 is performed, If it is not, then perform step 208.
Step 205:Started according to kernel and identified, start backup kernel B, so that backup kernel B becomes next system update When main kernel, afterwards perform step 206.
Step 206:The file to be upgraded for the subregion for supporting file system is updated according to the new system fresh information of synthesis.
Wherein, step 206, which can be performed specifically, is:
When new system fresh information includes newly-increased file, newly-increased file is installed;
When new system fresh information includes alternate file, the corresponding existing file of alternate file is replaced with alternate file;
When new system fresh information includes deleting instruction, the file that deletion instruction requirement is deleted is deleted.
Step 207:Core A, afterwards, end operation are updated with kernel B.
Step 208:Start core A, and kernel B, afterwards, end operation are updated with core A.
Wherein, in one embodiment, when the damage of smart television operating system cannot be run, at the beginning of starting initialization subregion Beginningization smart television hardware configuration.
It, can by main kernel, backup kernel and the function of initializing smart television hardware configuration in the embodiment of the present invention Ensure the normal operation of intelligent television system, so as to ensure the stability of intelligent television system.Pass through the liter of operating system nucleus Grade and the independent progress of partitions of file upgrading, can ensure user's normal use intelligent television system;In addition, the embodiment of the present invention is led to It crosses after all system upgrade bags all download completion and synthesize new system fresh information, file is completed when restarting or start next time Subregion upgrades, and can avoid losing due to system upgrade caused by system upgrade bag failed download or the failure of synthesis system fresh information Lose and system upgrade failure caused by system damage, so as to be further ensured that the stabilization of the success rate of system upgrade and system Property.
Embodiment three
Based on identical inventive concept, the present invention provides a kind of operating system update device, as shown in figure 3, the device bag It includes:
Download module 301, for determine operating system is upgraded when, the download system upgrade package from server; Wherein, operating system includes supporting the subregion of file system;Wherein, the subregion of file system is supported to support text in operating system The set of the file of part system, each file belonged in the subregion for supporting file system can individually be upgraded;
File update module 302 includes belonging to the to be upgraded of the subregion for supporting file system for working as system upgrade bag During the file service packs of file, file to be upgraded is updated according to file service packs.
Wherein, in one embodiment, device further includes:
First kernel update module further includes at least two operating system nucleus for operating system, and in operation shape Main kernel when the operating system nucleus of state is system update, when the operating system nucleus in off-duty state is system update Backup kernel;When system upgrade bag includes the kernel patch bag of operating system nucleus, updated and backed up with kernel patch bag Kernel, and kernel is started and identifies the mark for being changed to backup kernel;
Starting module for when restarting or starting shooting, starting according to kernel and identifying, starts backup kernel, so that backup Kernel becomes main kernel during next system update;
Second kernel update module, for the backup kernel of startup to being in off-duty state after restarting or starting shooting Operating system nucleus is updated.
Wherein, in one embodiment, file update module specifically includes:
Synthesis unit, for when restarting or starting shooting, being started according to kernel and being identified, before starting backup kernel, root According to file service packs, synthesis belongs to the new system fresh information of the file to be upgraded for the subregion for supporting file system for update simultaneously Storage;
File updating block to be upgraded for when restarting or starting shooting, being started according to kernel and being identified, starts in backup After core, the file to be upgraded for the subregion for supporting file system is updated according to the new system fresh information of synthesis.
Wherein, in one embodiment, synthesis unit is specifically used for:
When file service packs includes supporting the extended file of the subregion of file system, extended file is labeled as increasing newly It is stored after file;
When file service packs includes supporting the patch of the existing file of the subregion of file system, existing file is replicated, The patch of existing file is updated in the existing file of duplication, and is deposited after updated existing file is labeled as alternate file Storage;
When file service packs includes deleting instruction, the file identification to be deleted that loading is deleted in instruction corresponding is waited to delete Except file, and the check code of file to be deleted is generated, by the check code of the file to be deleted of generation and delete the verification in instruction Code is compared, and when comparison result is consistent, instruction is deleted in storage.
Wherein, in one embodiment, file updating block to be upgraded is specifically used for:
When new system fresh information includes newly-increased file, newly-increased file is installed;
When new system fresh information includes alternate file, the corresponding existing file of alternate file is replaced with alternate file;
When new system fresh information includes deleting instruction, the file that deletion instruction requirement is deleted is deleted.
Wherein, in one embodiment, device further includes:
Upgrade identifier generation module, for composite document according to file service packs, synthesis belongs to support file for updating After the new system fresh information of the file to be upgraded of the subregion of system and storage, all system upgrades of operating system are being determined After bag has downloaded completion, and the file service packs in all system upgrade bags has been used for synthesis new system fresh information, generation Document upgrading identifies;
Starting module is specifically used for:
When restarting or starting shooting, detect whether that there are document upgrading marks;
When there are during document upgrading mark, starting according to kernel and identifying, start backup kernel.
Wherein, in one embodiment, starting module is additionally operable to:
When being identified there is no document upgrading, start the main kernel before restarting or starting shooting, and it is standby with the main kernel update Part kernel.
Wherein, in one embodiment, system further includes initialization subregion, and initialization subregion is used to initialize the hard of system Part configures.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (7)

  1. A kind of 1. operating system update method, which is characterized in that the described method includes:
    When determining to upgrade operating system, the download system upgrade package from server;Wherein, the operating system includes Support the subregion of file system;Wherein, it is described to support the subregion of file system in the operating system, to support file system The set of file, each file belonged in the subregion for supporting file system can individually be upgraded;The operating system is also Including at least two operating system nucleus, and in operating status operating system nucleus be system update when main kernel, place Backup kernel when the operating system nucleus of off-duty state is system update;
    When the system upgrade bag includes the file service packs for belonging to the file to be upgraded of the subregion of the support file system When, the file to be upgraded is updated according to the file service packs;
    When further including the kernel patch bag of operating system nucleus in the system upgrade bag, operation system is updated according to following manner System kernel:
    The backup kernel is updated with the kernel patch bag, and kernel is started and identifies the mark for being changed to the backup kernel Know;When restarting or starting shooting, according to the kernel start identify, start the backup kernel so that the backup kernel into For next system update when main kernel;With the backup kernel of startup to being in off-duty state after restarting or starting shooting Operating system nucleus is updated;
    It is described that the file to be upgraded is updated according to the file service packs, it specifically includes:
    Described when restarting or starting shooting, started according to the kernel and identified, before starting the backup kernel, according to described File service packs, synthesis belong to the new system fresh information of the file to be upgraded of the subregion of the support file system for update And it stores;Described when restarting or starting shooting, started according to the kernel and identified, after starting the backup kernel, according to The file to be upgraded of the subregion of the new system fresh information update support file system of synthesis.
  2. 2. according to the method described in claim 1, it is characterized in that, described according to the file service packs, synthesize to update Belong to the new system fresh information of the file to be upgraded of the subregion of the support file system and store, specifically include:
    When the file service packs includes the extended file of the subregion of the support file system, by the extended file mark It notes to store after newly-increased file;
    When the file service packs includes the patch of the existing file of the subregion of the support file system, described in duplication There is file, the patch of the existing file is updated in the existing file of duplication, and by updated existing file mark It notes to store after alternate file;
    When the file service packs includes deleting instruction, it is corresponding to load the file identification to be deleted deleted in instruction File to be deleted, and the check code of the file to be deleted is generated, by the check code of the file to be deleted of generation and the deletion Check code in instruction is compared, and when comparison result is consistent, stores described delete and instructs.
  3. 3. according to the method described in claim 2, it is characterized in that, described update according to the new system fresh information of synthesis The file to be upgraded of the subregion of the support file system, specifically includes:
    When the new system fresh information includes newly-increased file, the newly-increased file is installed;
    When the new system fresh information includes alternate file, it is corresponding to replace the alternate file with the alternate file There is file;
    When the new system fresh information includes deleting instruction, the file deleted instruction requirement and deleted is deleted.
  4. 4. according to the method described in claim 1, it is characterized in that, described according to the file service packs, synthesize to update After belonging to the new system fresh information of the file to be upgraded of the subregion of the support file system and storing, the method is also wrapped It includes:
    Completion, and the file patch in all system upgrade bags have been downloaded in all system upgrade bags for determining the operating system Bag is had been used for after synthesizing the new system fresh information, generation document upgrading mark;
    It is described when restarting or starting shooting, according to the kernel start identify, start the backup kernel, specifically include:
    When restarting or starting shooting, detect whether that there are document upgrading marks;
    When there are during document upgrading mark, being started according to the kernel and identified, start the backup kernel.
  5. 5. according to the method described in claim 4, it is characterized in that, the method further includes:
    When there is no during document upgrading mark, starting the main kernel before restarting or start shooting, and updated with the main kernel standby Part kernel.
  6. 6. according to the method described in claim 1, it is characterized in that, the operating system further includes initialization subregion, at the beginning of described Beginningization subregion is used to initialize the hardware configuration of the operating system.
  7. 7. a kind of operating system update device, which is characterized in that described device includes:
    Download module, for determine operating system is upgraded when, the download system upgrade package from server;Wherein, institute Stating operating system includes supporting the subregion of file system;Wherein, it is described to support the subregion of file system in the operating system Support the set of the file of file system, each file belonged in the subregion for supporting file system can individually be upgraded; The operating system further includes at least two operating system nucleus, and the operating system nucleus in operating status is system update When main kernel, the operating system nucleus in off-duty state be system update when backup kernel;
    File update module, for work as the system upgrade bag include belonging to the support file system subregion it is to be upgraded During the file service packs of file, the file to be upgraded is updated according to the file service packs;
    First kernel update module during for including the kernel patch bag of operating system nucleus when the system upgrade bag, is used The kernel patch bag updates the backup kernel, and kernel is started and identifies the mark for being changed to the backup kernel;
    Starting module, for when restarting or starting shooting, being started according to the kernel and being identified, start the backup kernel, so that The backup kernel becomes main kernel during next system update;
    Second kernel update module, for the backup kernel of startup to being in off-duty state after restarting or starting shooting Operating system nucleus is updated;
    Wherein, the file update module, specifically includes:
    Synthesis unit, for when restarting or starting shooting, being started according to kernel and being identified, before starting backup kernel, according to text Part service packs, synthesis belong to the new system fresh information of the file to be upgraded for the subregion for supporting file system for update and deposit Storage;
    File updating block to be upgraded, for when restarting or starting shooting, being started according to kernel and being identified, start backup kernel it Afterwards, the file to be upgraded for the subregion for supporting file system is updated according to the new system fresh information of synthesis.
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 CN104918114A (en) 2015-09-16
CN104918114B true 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)

Families Citing this family (3)

* 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003216449A (en) * 2002-01-23 2003-07-31 Nec Corp Patch processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104918114A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
US8539471B2 (en) Updating firmware of an electronic device
CN105573780B (en) A kind of mobile terminal operating system upgrade method and device based on container
JP6236533B2 (en) Method and apparatus for creating differential update package, system differential update method and apparatus
KR100986487B1 (en) Mobile handset with a fault tolerant update agent
CN104918114B (en) A kind of operating system update method and device
CN103024782B (en) A kind of method and system of base station software version management
CN102147747B (en) The system and method for the upgrading path strengthened
CN106610840A (en) FOTA (Firmware Over-The-Air) upgrade method and system
CN104679527A (en) Off-line upgrading method of virtual machine image
CN105260209A (en) Hot-update solution of program
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN106155915B (en) Data storage processing method and device
CN107003876A (en) Firmware updates
US20070079279A1 (en) Embedded device with software registry
CN107333181A (en) Linux system intelligent television software upgrade method
CN103176826B (en) A kind of method of free configurating terminal device default language and terminal default language configuration system
CN105160253B (en) Repair method, apparatus, system and the server of client-side program
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN106201584B (en) Version upgrading method and terminal device
CN104461621A (en) Attribute information updating method and device
CN106210877A (en) The method for upgrading system of intelligent television and device
CN107643898A (en) Terminal staging method and device
CN102880478B (en) Oftware updating method
EP3320436A1 (en) System and method for provisioning cloud services across heterogeneous computing environments

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
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.