Make the method and the device of restoring mapping file in the embedded electronic installation of system
[technical field]
The present invention relates to a kind of method and device that makes restoring mapping file in the electronic installation, particularly relate to a kind of method and device of making restoring mapping file in the embedded electronic installation of system that utilizes less storage area to back up and upgrade image file.
[background technology]
Along with development in science and technology, the embedded electronic installation of multiple systems is pushed out one after another, for example set-top box (STB), PDA (Personal Digital Assistant) (PDA), palmtop computer (Pocket PC), mobile phone, notebook computer or the like bring all conveniences for people live.Big city is embedded with an image file (image) in the storage element in the embedded electronic installation of these systems, so that the embedded electronic installation of system does not need can independently carry out required function with other device collocation.For instance, as Fig. 1, the embedded electronic installation of this system is a set-top box 1, and the storage element 11 that set-top box 1 inside is provided with just like flash memory and so on comes storage map file 12, so that TV can be surfed the Net and play originally the signal of video signal that can only play in computing machine.As Fig. 2, image file 12 may comprise operating system (OS), system database, picture displaying program, network server, assembly driver or the like, directly is embedded in the storage element 11 with the software that set-top box 1 start is required.So, set-top box 1 can be utilized image file 12 to come independently working without leave and not need other system to cooperate, to reach effect easy to use.Moreover, stability in order to ensure system, more can store a standby image file 13 identical in the storage element 11 with image file 12, with in when the embedded electronic installation 1 of system can't application image file 12 activation systems, for example image file 12 makes a mistake, and then can directly come activation system by standby image file 13, can start at any time to guarantee the embedded electronic installation 1 of system, and after activating, can utilize standby image file 13 to reduce image file 12.
In addition, along with factors such as mistake (Bug) in technical progress or the software are found, image file 12 needs to upgrade operation unavoidably.There is multiple update mode at present, wherein a kind of common update mode is that the image file with new edition is stored in the image file server 2, and when the embedded electronic installation 12 of system needs to upgrade image file, then can carry out image file to the image file that image file server 2 is downloaded new edition and upgrade operation.Specifically, cooperate Fig. 3, at first in step 21, the embedded electronic installation 1 of system can see through such as the mode of remote access service (RAS) and download new edition image file in the image file server 2, and enters step 22 after download is finished.In step 22, the embedded electronic installation 1 of system can make the new edition image file cover original image file 12, upgrades the image file content to utilize the new edition image file.Secondly, execution in step 23 after renewal is finished, to utilize image file 12 activation system, the i.e. start again again after upgrading.If activate successfully, then execution in step 24, upgrade standby image file 13 synchronously, and the image file 12 after making it and upgrading is identical.On the contrary, if in the time of can't be with image file 12 activation systems after upgrading, then skip to step 25, after coming activation system with standby image file 13, continue step 26, utilize standby image file 13 to reduce and upgrade the image file 12 of failing, and order comes activation system by the image file 12 that reduces next time.So, when image file 12 upgrades failure, still can utilize standby image file 13 to reduce, to guarantee that system's perseverance can be activated, and then repair image file 12 voluntarily, very the person upgrades image file 12 again, and assistance that need not the maintenance personal is to reach maintenance cost that reduces manufacturer and user and the effect of guaranteeing system stability.Yet, present standby image file 13 is copies fully of image file 12, so the storage area that standby image file 13 takies is suitable with image file 12, make the embedded electronic installation 1 of system that the storage element 11 that doubles image file 12 capacity need be arranged at least, come for storage map file 12 and standby image file 13.Factors such as volume size, data access speed and data preservation for the embedded electronic installation of taking into account system, storage element 11 in the embedded electronic installation 1 of system mostly is quickflashing (Flash) assembly at present, for example CF (Compact Flash) card, DOM (Disk On Module) card.
Yet this type of storage element 11 other assembly in embedded electronic installation 1 total system of system is to belong to the expensive element of cost, and along with the price of the increase storage element 11 of capacity significantly increases especially.So collocation storage element 11 desired volumes can reduce in the embedded electronic installation 1 of system if can make, then hardware cost just can effectively descend.But standby image file 13 has its existence necessary, to deal with the situation that image file 12 upgrades failure or image file 12 damages, so also can't give up standby image file 13, causes the desired volume of storage element 11 effectively to reduce.
Yet, standby image file 13 is to be used for the moment that back-up system can't activate by image file 12, and system replys or upgrades if can utilize can activate the time external device such as image file server 2 to carry out image file 12, so this case inventor thinks and standby image file 13 can only comprise the necessary systems and procedure that allows system activate and link external device, so then can see through external device upgrades or replys image file 12, to keep the stability of system, and because of standby image file 13 is not that the copy fully of image file 12 only comprises some in the image file 12, so the file size of standby image file 13 can effectively reduce, the cost of storage element 11 also can reduce thereupon, to solve problem in the past.
[summary of the invention]
A purpose of the present invention is to provide a kind of method and device that makes restoring mapping file in the embedded electronic installation of system, be to utilize reduction incense still to have the function that is enough to deal with from extraneous workbench down loading updating file to it, to reach the effect of effective reduction storage area with the capacity of core image file.
According to an aspect of the present invention, a kind of method that makes restoring mapping file in the embedded electronic installation of system is provided, be loaded with an image file and a core image file in the embedded electronic installation of this system, this image file has an operating system, a plurality of drivers and a plurality of application program, this core image file only has the subclass system that the embedded electronic apparatus system of this system activates that keeps, one can make the embedded electronic installation of this system be connected with workbench and image file refresh routine that the network server of mutual data transmission set and is used from this workbench down loading updating file, this workbench stores a updating file corresponding with this image file, and this method comprises the following step:
A) when the embedded electronic installation of this system can't be by this image file activation system, then go out this core image file and come activation system and be linked to this workbench, upgrade this image file to download this updating file; And
B) after this image file upgrades, then recover to come activation system by this image file.
Preferably, one in this step B) after step C), when the embedded electronic installation of this system can't be by the image file activation system of this renewal, then repeated execution of steps A).
Preferably, this updating file has the file of at least one version, and step B) in this image file be to select the file of latest edition in this updating file to download.
Preferably, this updating file has the file of a plurality of versions, and one in these versions in the file is identical with the image file of this electronic installation, and in steps A) in, after the embedded electronic installation of this system links this workbench, then select to download in these files one according to the user.
Preferably, this workbench is a server, and the set of this network server is fit to make the embedded electronic installation of this system and this server program through the network mutual data transmission.
According to a further aspect in the invention, a kind of method that makes restoring mapping file in the embedded electronic installation of system is provided, be loaded with an image file in the embedded electronic installation of this system, this image file has an operating system, a plurality of driver and a plurality of application program, it is characterized in that this method comprises the following step:
A) select one to keep subclass system, that the embedded electronic apparatus system of this system activates and can make the embedded electronic installation of this system be connected with workbench that the network server of mutual data transmission is also gathered and an image file refresh routine of using from this workbench down loading updating file, to form a core image file, this workbench stores a updating file corresponding with this image file;
B) store this core image file in the embedded electronic installation of this system;
C) when the embedded electronic installation of this system can't be by this image file activation system, then come activation system and be linked to this workbench, upgrade this image file to download this updating file by this core image file; And
D) after this image file upgrades, then recover to come activation system by this image file.
Preferably, one is positioned at this step D) after step e), when the embedded electronic installation of this system can't be by the image file activation system of this renewal, then repeated execution of steps C).
Preferably, this updating file has the file of at least one version, and step C) in this core image file select the file of latest edition in this updating file to download.
Preferably, this updating file has the file of a plurality of versions, one in these versions in the file is identical with the image file of this embedded electronic installation of system, and at step C) in, after the embedded electronic installation of this system links this workbench, then select to download in these files one according to the user.
Preferably, this workbench is a server, and the set of this network server is that make can be through the program of network mutual data transmission between the embedded electronic installation of this system and this server.
According to a further aspect in the invention, a kind of image file method for updating in the embedded electronic installation of system that makes is provided, be loaded with an image file and a core image file in the embedded electronic installation of this system, this image file has an operating system, a plurality of drivers and a plurality of application program, this core image file only has the subclass system that the embedded electronic apparatus system of this system activates that keeps, one can make the embedded electronic installation of this system be connected with workbench and image file refresh routine that the network server of mutual data transmission set and is used from this workbench down loading updating file, this workbench stores a updating file corresponding with this image file, it is characterized in that this method comprises the following step:
A) when the embedded electronic installation of this system when this workbench is downloaded this updating file, then upgrade this image file with this updating file;
B) after this image file upgrades, then come activation system with the image file after this renewal;
C) if the image file after this upgrades can't activation system the time, be then come activation system and is linked to this workbench by this core image file, upgrade this image file to download this updating file again; And
D) after this image file upgrades, then recover to come activation system by this image file.
Preferably, this method more comprises: one is positioned at this step D) after step e), when the embedded electronic installation of this system can't be by the image file activation system of this renewal, then repeated execution of steps C).
Preferably, this updating file has the file of at least one version, and step C) in this core image file select the file of latest edition in this updating file to download.
Preferably, this updating file has the file of a plurality of versions, and one in these versions in the file is identical with the image file of this electronic installation, and at step C) in, after the embedded electronic installation of this system links this workbench, then select to download in these files one according to the user.
Preferably, this workbench is a server, and the set of this network server is fit to make the embedded electronic installation of this system and this server program through the network mutual data transmission.
According to of the present invention more on the other hand, a kind of embedded electronic installation of system with restoring mapping file function is provided, be suitable for linking a workbench that is loaded with at least one updating file, to download this updating file, it is characterized in that the embedded electronic installation of this system comprises: a storage element, store an image file, one core image file, this image file has an operating system, a plurality of drivers and a plurality of application program, this core image file only have the subclass system that the embedded electronic apparatus system of this system activates that keeps, one can make the embedded electronic installation of this system be connected with workbench and image file refresh routine that the network server of mutual data transmission set and is used from this workbench down loading updating file; One transmission interface is suitable for linking this workbench, so that the embedded electronic installation of this system can be from this workbench data download; Updating device, be used to carry out this image file and activate the embedded electronic installation of this system, in the time can't activating with this image file, then carrying out this core image file activates and links this workbench, upgrade this image file to download this updating file, and recovery device, be used for after this image file renewal is finished, then recovering to activate the embedded electronic installation of this system by this image file.
Preferably, this workbench is that a server and this transmission interface are Network Transmission interfaces, and the set of this network server is fit to make the embedded electronic installation of this system and this server program through the network mutual data transmission.
Preferably, the embedded electronic installation of this system is a PDA (Personal Digital Assistant).
Preferably, the embedded electronic installation of this system is a palmtop computer.
Preferably, the embedded electronic installation of this system is a set-top box.
[description of drawings]
The present invention is described in detail below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the synoptic diagram of the embedded electronic installation of a kind of system in the past, and the embedded electronic installation of this system is a set-top box.
Fig. 2 is the synoptic diagram of the image file in the embedded electronic installation of the system of Fig. 1.
Fig. 3 is a kind of update method of image file in the past of the embedded electronic installation of Fig. 1 system.
Fig. 4 is the synoptic diagram with embedded electronic installation of system of restoring mapping file function of the present invention, and the embedded electronic installation of this system is that a set-top box also can be through network connections one workbench.
Fig. 5 is the block schematic diagram of the embedded electronic installation of system among Fig. 4.
Fig. 6 is the synoptic diagram of core image file one example of the embedded electronic installation of system among Fig. 4.
Fig. 7 is the process flow diagram of an example of the image file update method of the embedded electronic installation of system among Fig. 4.
Fig. 8 is the process flow diagram of another example of the image file update method of the embedded electronic installation of system among Fig. 4.
Fig. 9 is the synoptic diagram of another embodiment of the embedded electronic installation of system with restoring mapping file function of the present invention.
[embodiment]
The invention is characterized in to make and only comprise the necessary systems and procedure that makes the embedded electronic installation of system activate and supply the bridging work platform in the image file for the standby core image file of image file, and unlike the copy fully that was image file in the past, and arrange in pairs or groups when image file damages (promptly can't activation system), the bridging work platform is replied (or renewal) image file to download updating file, and is different from the past the mode by standby restoring mapping file.In order to allow the easier quilt of the present invention understand, will illustrate with a embodiment as Fig. 4.The embedded electronic installation 3 of system is set-top box in the present embodiment, and being used for making TV to surf the Net and to play originally can only be in the signal of video signal of computing machine broadcast.
Fig. 5, the embedded electronic installation 3 of this routine system roughly have a microprocessor 31, an internal memory 32, a storage element 33 and a network card 34.Microprocessor 31 is in order to the embedded electronic installation 3 whole starts of control system.Internal memory 32 usefulness can be random access memory RAM for the data in the scratch system running).Storage element 33 is flash component and be used for storing the data of non-temporality, as software, data file case or the like.Network card 34 be a kind of transmission interface and with so that data can be uploaded to other devices or make through the network download data through network to the embedded electronic installation 3 of system.In addition, have the knack of this skill person when knowing, the embedded electronic installation 3 of this routine system more can comprise the transmission interface of other kind, for example IEEE 1,394 35, USB, infrared ray, blue bud or the like, link up with transmission interface and external device that other standard is provided, and the embedded electronic installation 3 of system comprises a display adapter 36 (as VGA), a MPEG I/II code translator/scrambler 37, CD/VCD ROM (ROM (read-only memory)) or the like, should not be subject to the explanation of this example.
It should be noted that as Fig. 4, this routine storage element 33 stores an image file 331 and a core image file 332 at least.Similar earlier figures 2, image file 331 comprise operating system (as WinCE, Linux), a plurality of driver (for example display adapter driver, network card driver, 1394 drivers, PS2 driver, USB driver) and a plurality of application program [Microsoft's class library (MFC), browser, image file refresh routine, DirectX, multimedia player].Then, by selecting in the image file 331 that the embedded electronic installation 3 of system is activated and the necessary systems and procedure core that links an extraneous workbench 4, to constitute core image file 332.In this example, workbench 4 is image file servers, stores a updating file corresponding with image file 331, owing to along with mistake in technology evolution and the system is found, so may comprise the file of most versions in the updating file, be to be same as image file 331 and a version is wherein arranged.Because of workbench 4 is a server, the corresponding transmission interface that uses is network card 34 in the embedded electronic installation 3 of system, for another Fig. 6, the subclass system 38 (Subset OS claims basic model operating system again) that the system of keeping that has core image file 332 activates, network server set 39 (first collection of programs) and an image file refresh routine 40 (i.e. first application program).Network server set 39 is to make the embedded electronic installation 3 of system can link and make both can be through the program of network mutual data transmission with workbench 4, it comprises a driver in order to drive network card 34, with a network server is to make data fit network data transmission standard, for example TCP/IP.Image file refresh routine 40 is application programs of using from workbench 4 down loading updating files.And, the embedded electronic installation 3 priority application image files 331 decided at the higher level but not officially announced of system come activation system and set core image file 332 to be next cis-position, so, when the embedded electronic installation 3 of system is started shooting activation systems, can come activation system by first application image file 331, and when can't using, image file 331 comes activation system by core image file 332 again, and the program that the aforementioned core image file 332 of foundation is comprised, can make the system boot parallel machine to workbench 4, to download the updating file (appearance after repeat) corresponding with image file 331.In addition, it is read-only that core image file 332 is set basically, and promptly the user can't change the content of core image file 332 voluntarily, and is correct with the data of guaranteeing core image file 332, can support start with perseverance when image file 331 can't be started shooting.
According to aforesaid member and mutual relationship, cooperate Fig. 7 that an embodiment who uses renewal image file 331 methods of the present invention is described.Because image file 331 is easier to make image file 331 to damage when upgrading, present embodiment is an example to upgrade image file 331.
At first in step 41, the embedded electronic installation 3 of system is workbenches 4 and select the file download of latest edition in the updating file corresponding with image file 331 on network connections.Secondly, in step 42, to replace image file 331, to upgrade the version of image file 331 from workbench 4 downloaded files.And after renewal is finished and initialization system activate again, so in step 43, judging whether can be by the image file activation system of having upgraded 43, if, mean that downloaded files is correct, then finish image file 331 and upgrade operations.On the contrary, when if system can't activate, then execution in step 44, change by core image file 332 activation systems and link and go up workbench 4, and then rebound step 42, to obtain the file of latest edition again, so utilize abovementioned steps 41~44, can repeat to upgrade image file 331 till the image file 331 after the renewal can be used to activation system.So, when image file 331 upgrades mistake, can utilize core image file 332 to come the activation system newly downloaded file of laying equal stress on to remedy mistake, and 332 of core image files are the some of image file 331 but not the copy of image file 331, core image file 332 (as Fig. 6) with set-top box is an example compared to image file (as Fig. 2), then can reduce about 38%, so the capacity of core image file 332 is very less than standby image file in the past, and then can reach the effect of taking into account system stability and dwindling capacity.
Moreover, though previous embodiment is to illustrate to upgrade the image file mode, yet have the knack of this skill person when knowing, repair function when the present invention also can be provided in image file 331 breaking-ups, promptly when image file 331 because of other factors for example when machine damages, this moment is because of can't then carrying out abovementioned steps 43,44,41,42 in regular turn with image file 331 activation systems, utilize the mode of upgrading image file 331 to replace the image file 331 of breaking-up, to reach the effect that system repairs voluntarily.
In addition, previous embodiment is set the latest edition of downloading in the workbench 4 in the updating file corresponding with image file 331 in step 41, yet in fact owing to be stored in the file that updating file in the workbench 4 can comprise a plurality of versions, download for you to choose, wherein a version can be same as the version of image file 331, and sometimes the new edition image file use uncomfortable, upgrade not smooth or the like factor, the user may want to revert back to original preceding image file that upgrades, so, disclose another embodiment of update method of the present invention as Fig. 8.
Present embodiment is different with previous embodiment be in, when beginning to upgrade image file, in step 51, it is temporary that the user can select whether image file 331 to be uploaded to workbench 4.If be chosen as be, then the embedded electronic installation 4 of system is understood execution in step 52, and so that image file 331 is uploaded to workbench 4, promptly Backup Images file 331 then continues execution in step 53 in workbench 4.On the contrary, if be chosen as when denying, then skip to step 53.In step 53, the user can be by after selecting one in the file of all versions in the updating file corresponding with image file 331 and the Backup Images file, execution in step 54, beginning is downloaded from workbench 4 and is selected files, and in download is finished after continuation step 55.In step 55, upgrade image file 331 with downloaded files, and after renewal is finished, execution in step 56 judges with activation system again whether the image file 331 after the renewal can activation system.In step 56, but, then finish to upgrade operation if during the image file activation system after judge upgrading.On the contrary, if step 56 is judged as when denying, then execution in step 57, change by core image file 332 activation systems and bridging work platform 4, then rebound step 53.So, in step 53, the user can select to download the Backup Images file of before uploading, the file of other version in step 52, for example with the file or the latest edition file that upgrade preceding image file identical version originally, more select so that the user to be provided.Thereby, present embodiment is except the effect of taking into account system stability and reduction storage area with previous embodiment, more provide the user to select to back up original image file and the function of selecting to download different editions, come selective to allow the user have more elastic spaces.
Conclude above-mentioned, in the present invention, 332 of core image files that make standby functions are the method for a part of and collocation of image file 331 by extraneous workbench 4 file in download, make under the prerequisite important document that image file can effectively upgrade or reply, reduce the required storage volume of core image file 332, cause to reach and take into account system stability and the effect that reduces storage volume, related also can reduce for the capacity required of storage map file 331 with the expensive storage element 33 of core image file 332 usefulness, thereby can adopt the lower storage element of capacity 33, significantly reducing hardware cost, and then improve product market competitiveness.
It should be noted, though it is example that the embedded electronic installation 3 of the system of previous embodiment is enumerated set-top box, yet have the knack of this skill person when knowing, also can be applicable to the embedded electronic installation of system of other kind, as the PDA (Personal Digital Assistant) among Fig. 96, palmtop computer 7, mobile phone, mobile computer or the like, and the data of 4 of embedded electronic installation 3 of system and workbenches are except seeing through network, also can see through the transmission interface of other kind, for example IEEE 1,394 35, USB, blue bud, infrared ray or the like, and workbench 4 can be the device that differs from server, personal computer or the like for example, thereby should not be subject to this paper for the purpose of illustration and the revealer.