CN1455336A - Method of automatic updating embedded device operating system using CF card - Google Patents

Method of automatic updating embedded device operating system using CF card Download PDF

Info

Publication number
CN1455336A
CN1455336A CN 02116735 CN02116735A CN1455336A CN 1455336 A CN1455336 A CN 1455336A CN 02116735 CN02116735 CN 02116735 CN 02116735 A CN02116735 A CN 02116735A CN 1455336 A CN1455336 A CN 1455336A
Authority
CN
China
Prior art keywords
operating system
file
card
embedded
zone bit
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
CN 02116735
Other languages
Chinese (zh)
Other versions
CN1199108C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 02116735 priority Critical patent/CN1199108C/en
Publication of CN1455336A publication Critical patent/CN1455336A/en
Application granted granted Critical
Publication of CN1199108C publication Critical patent/CN1199108C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

The method includes: In off state, the new operation system file and the flag bit file are copied to the CF card. The CF card is inserted into the embedded device. In the process of starting the device, the operation system queries whether the flag bit file is existed in the CF card automatically. If yes, the program for updating the operation system file is started. The new operation system file on the CF card replaces the old operation system file in the embedded device. The invention has the features of preventing the hardware damage of the embedded device, simplifying the procedure for updating the embedded device, and having high updating efficiency.

Description

Use the method for CF card automatic updating embedded device operating system
Technical field
The present invention relates to a kind of method of update calculation machine equipment operating system, more particularly, relate to a kind of method of the CF of use card automatic updating embedded device operating system.
Technical background
At present, the embedded OS that the most employing of embedded device can be reduced, Windows CE for example, flush type LINUX or the like, the characteristics of these Embedded Operating Systems are to take storage space less (for example the I of Windows CE is reduced 3M).Compare with PC simultaneously, because the most volume of embedded device is less, so these embedded OSs with and upper level applications be stored in FlashMemory mostly, DOC capacity such as (Disk On Chip) and taking in all less memory device of physical space.
Because it is very tight mostly to embed equipment inner structure, to the installation of these memory devices, dismantle also relative complex, difficulty.If in case need be to the operating system that embeds equipment upgrade (for example being upgraded to 3.0) from Windows CE 2.12, so that increase the function of system, the performance of optimization system, usually adopt following two kinds of methods: (1) will embed equipment and link to each other with a main frame (Host PC), by main frame new operating system is transferred to embedding equipment, thereby realize upgrading; (2) replace memory device in original embedding equipment with a memory device that has baked (being mounted with new operating system).For first method, user's relative complex that operates, but also need load corresponding software at Host PC end.For second method, the equipment installation, maintenance, the maintainer that need relevant speciality could realize, and the easy disassembling that embeds equipment be caused the damage of related hardware.Given this, need design embedding device operating system upgrading scheme a kind of efficiently, simple to operate, that be difficult for producing hardware damage especially, to overcome above-mentioned defective of the prior art.
Summary of the invention
According to purpose of the present invention, a kind of method of the CF of use card automatic updating embedded device operating system is provided, to solve in the prior art the above-mentioned technical matters that is run into when operating system upgraded exactly, it is by using CF (Compact Flash) card, can realize embedding the auto-update of device operating system, and without any need for the dismounting of hardware aspect, thereby can guarantee in escalation process, can not make hardware to sustain damage.
In order to achieve the above object, provide a kind of method of the CF of use card automatic updating embedded device operating system, comprise following operation steps:
(a) under off-mode, with new operating system file and zone bit document copying to the CF card.
(b) the CF card is inserted in the CF card reader of embedding equipment;
(c) in the device start process, whether operating system inquiry automatically exists the zone bit file on the CF card; Exist if inquire the zone bit file, the file refresh routine then starts the operating system;
(d) replace old operating system literary composition in the embedding equipment with the new operating system file on the CF card
Part.
Use the method for CF card automatic updating embedded device operating system to have following effect or advantage: not need to be connected, and only be that CF card with upgrading usefulness inserts into embedding equipment with other any equipment (comprising Host PC); Without any need for the dismounting of hardware aspect, can guarantee that hardware does not sustain damage; Whole renewal process is simple, and after the CF card that will upgrade usefulness inserted embedding equipment, by the start of start key, system just can upgrade automatically; After renewal finishes, only need the operating system after start change again can start renewal, therefore whole renewal process operation is very convenient, has higher update efficiency
In actual development process, fully proved to obtain above-mentioned effect and advantage.For example, production run with 500 computers is an example, in the prior art, if the operating system of the finished product computer of pre-production is upgraded, need to adopt and tear the way that machine is fired DOC again open, so just may cause damage to hardware, and consuming time longer, can cause the reduction of Production Line efficient.Generation for fear of this situation, we adopt this programme that the operating system of above-mentioned 500 computers has been carried out automatic renewal, have obtained great success, and be 2 minutes the update time of average every computer, this has not only improved production efficiency, has also avoided the damage of hardware simultaneously.
Describe most preferred embodiment of the present invention in detail below in conjunction with accompanying drawing, be appreciated that for a person skilled in the art, the present invention is not limited to these embodiment.
Accompanying drawing 1 is to use CF to stick into row and embeds the process flow diagram that device operating system upgrades automatically.
Preferred forms of the present invention
Below, be that the embedded device of operating system is an example with WINCE300 with a in the Legend computer series, illustrate that use CF card of the present invention upgrades the method that embeds device operating system automatically.It is pointed out that the computer equipment that is adopted is not limited to the computer of association series when realizing described method of the present invention.But, no matter adopt the computer of which kind of series, realize technical solutions according to the invention, on hardware, all require embedding equipment to have the CF card reader, or other similar movable storage devices.Need to prove, CF (Compact Flash) card be a kind of at present embed the movable storage device that apparatus field is widely used (for example in the association series computer, in some PDA equipment, the CF card reader all is equipped with), its capacity can be 8M, 32M or the like, can hold embedded OS down usually.
Aspect software, mainly contain three parts and form:
(1) zone bit enquiry module.The zone bit enquiry module is loaded in the startup module of system when customizing Embedded Operating System as one section program.In each start-up course, this section program all will be performed, and whether its function exists the zone bit file for detecting on the CF card, if exist then the refresh routine that starts the operating system if there is no just continues to start the operating system;
(2) zone bit file.Sign asks that file itself there is no in all senses, its role is to allow the zone bit enquiry module judge whether the refresh routine that starts the operating system.If in this document existence and the CF card, the refresh routine of then representing to start the operating system upgrades operating system, otherwise quite different;
(3) operating system update program.The effect of this program is that the old operating system file in the embedding equipment is replaced with the new operating system file that leaves in the CF card, thereby realizes the renewal of operating system.
Wherein, zone bit enquiry module, operating system update program embed the employed different Embedded Operating Systems of equipment according to difference and have different concrete forms, but its function is identical.
With reference to accompanying drawing, accompanying drawing 1 is to use CF to stick into row and embeds the process flow diagram that device operating system upgrades automatically, when using the CF card to upgrade automatically embedding device operating system, needs to carry out following operation steps:
(1) with new operating system file and zone bit document copying to the CF card.Windows CE with Microsoft is an example, and its operating system file is NK.BIN, in this document, is comprising WindowsCE starting outfit needed various stratum module and upper level applications.In order to realize upgrading operation system, the new NK.BIN document copying that OEM (original device producer) need be provided is to the CF card.The zone bit file then is the self-defining a kind of binary file type of OEM (original device producer), and it is not limited to any form (file layout);
(2) the CF card is inserted in the CF card reader of embedding equipment, then start;
(3) in start-up course, operating system can automatically perform zone bit file polling program, and this program can inquire about whether exist the zone bit file on the CF card.Start-up course at the equipment of embedding, usually allow OEM (original device producer) to carry out some specific operations, this operating system update scheme has just made full use of this characteristic, after operating system nucleus, file system, device management module, the startup of graphical interfaces module are finished, carry out by the self-defining start-up routine of OEM (original device producer).At first inquire about on the CF card whether exist the zone bit file behind this start-up routine by file system api (application programming interfaces), the existence of zone bit file means that " notice " operating system need carry out the renewal operation of operating system in start-up course, and the file refresh routine that starts the operating system; If there is no, then only need proceed existing normal start-up operation.And the process of " notice " is actually in start-up course, and whether operating system is deposited and realized by calling zone bit file on file system api (for example the FindFirstFile () under the Windows Ce etc.) the inquiry CF card;
(4) after the operating system file refresh routine starts, replace old operating system file in the embedding equipment with using new operating system file on the CF card.Concrete renewal process is to finish by the read-write operation function in the file system api, and the operating system file that at first uses the deleted file function to start is at present deleted; Then, open the new operating system file that is kept on the CF card, and it is read in internal memory; At last, the operating system file in the internal memory is saved to the corresponding position that is used for preserving operating system file in the External memory equipment (as DOC, hard disk etc.).When embedding equipment started once more, start-up system just can guide upgraded back embedding device operating system, thereby has realized the renewal of operating system;
In actual applications, accuracy for the file that guarantees to be read into internal memory after read-in process is finished, also needs the file that reads in is carried out verification and comparison, if verification is with identical then show and upgrade successfully, if verification is with different then need to carry out again copy function.
(5) after renewal work was finished, the operating system file refresh routine will point out the user to extract the CF card again, restarts embedding equipment afterwards.
(6) start new operating system.
Be understood that, compare with update method in the past, the method of use CF card automatic updating embedded device operating system of the present invention does not need embedding equipment to be connected, not need hardware is dismantled with any other equipment, and only be that CF card with upgrading usefulness inserts into embedding equipment, have and avoid embedding device hardware damage, simplify device upgrade flow process and the higher characteristics such as update efficiency of embedding.Being in the example process of developing, testing with the association series computer, use this kind method that the operating system of 500 finished products is upgraded, obtained good effect.
Though preferred forms of the present invention and most preferred embodiment have been carried out above-mentioned explanation, but, be appreciated that for the person of ordinary skill of the art, clearly can carry out changes and improvements to the present invention in every respect, and the present invention is not limited to above-mentioned specific embodiment.Therefore, in the spirit and protection domain of claims, attempt to cover various improvement, change or be equal to replacement.

Claims (6)

1, a kind of method of using CF card automatic updating embedded device operating system comprises following operation steps:
(a) under off-mode, with new operating system file and zone bit document copying to the CF card;
(b) the CF card is inserted in the CF card reader of embedding equipment;
(c) in the device start process, whether operating system inquiry automatically exists the zone bit file on the CF card; Exist if inquire the zone bit file, the file refresh routine then starts the operating system;
(d) replace old operating system file in the embedding equipment with the new operating system file on the CF card.
2, the method for renewal embedded OS as claimed in claim 1 is characterized in that the operating system file renewal process described in the above-mentioned steps (c) comprises: delete by the operating system file that the deleted file function in the read-write operation function of file system api will start at present; Then, open the new operating system file that is kept on the CF card, and it is read in internal memory; At last, the operating system file in the internal memory is saved to External memory equipment.
3, the method for renewal embedded OS as claimed in claim 2, it is characterized in that after above-mentioned read-in process is finished, the file that reads in is carried out verification and comparison, if verification is with identical then show and upgrade successfully, if verification is with different then need to carry out again copy function.
4, the method for renewal embedded OS as claimed in claim 1 is characterized in that in above-mentioned steps (d) afterwards, also further comprises start again, so that start the step of the Embedded Operating System after upgrading.
5, the method for renewal embedded OS as claimed in claim 1 is characterized in that further being included in each start-up course of embedding equipment, all carries out the program module that whether the zone bit file exists on the inquiry CF card.
6, the method for renewal embedded OS as claimed in claim 1 is characterized in that in above-mentioned steps (c), if the zone bit file does not exist, then continues to start existing operating system.
CN 02116735 2002-04-30 2002-04-30 Method of automatic updating embedded device operating system using CF card Expired - Fee Related CN1199108C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02116735 CN1199108C (en) 2002-04-30 2002-04-30 Method of automatic updating embedded device operating system using CF card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02116735 CN1199108C (en) 2002-04-30 2002-04-30 Method of automatic updating embedded device operating system using CF card

Publications (2)

Publication Number Publication Date
CN1455336A true CN1455336A (en) 2003-11-12
CN1199108C CN1199108C (en) 2005-04-27

Family

ID=29257018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02116735 Expired - Fee Related CN1199108C (en) 2002-04-30 2002-04-30 Method of automatic updating embedded device operating system using CF card

Country Status (1)

Country Link
CN (1) CN1199108C (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100386728C (en) * 2006-03-24 2008-05-07 清华大学 On-line software updating method of implantation medical equipment
CN101807156A (en) * 2010-03-04 2010-08-18 广东宝莱特医用科技股份有限公司 Equipment and method for maintaining and updating system through interface medium
CN102043652A (en) * 2010-12-08 2011-05-04 苏州捷泰科信息技术有限公司 Processing system and method for embedded device root file system
CN102207885A (en) * 2010-03-31 2011-10-05 国际商业机器公司 Virtual machine manager of computer system and method for starting virtual machine
CN101572748B (en) * 2009-06-15 2012-05-02 北京握奇数据系统有限公司 Method and device for starting mobile phone
CN102520981A (en) * 2011-11-24 2012-06-27 深圳市路畅科技有限公司 Production method of INAND/NAND-based multi-partition storage device
CN102736934A (en) * 2012-05-22 2012-10-17 深圳市共进电子股份有限公司 Image file updating method and system for singlechip, singlechip and upper computer
CN102830994A (en) * 2012-08-02 2012-12-19 广东欧珀移动通信有限公司 Method for implementing persistence of application installed on external storage
CN102945190A (en) * 2012-11-05 2013-02-27 无敌科技(西安)有限公司 Method for continuing to update embedded device Code even after interruption of updating process of embedded device by card
CN103514014A (en) * 2013-09-16 2014-01-15 北京科技大学 Method for designing boot system of embedded terminal equipment
CN104317619A (en) * 2014-10-24 2015-01-28 南车株洲电力机车研究所有限公司 Maintenance system and method of embedded system
CN106326048A (en) * 2016-08-11 2017-01-11 广东欧珀移动通信有限公司 External storage device detection method and device
CN110837720A (en) * 2019-11-04 2020-02-25 中科寒武纪科技股份有限公司 Method, device and related product for instruction execution

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100386728C (en) * 2006-03-24 2008-05-07 清华大学 On-line software updating method of implantation medical equipment
CN101572748B (en) * 2009-06-15 2012-05-02 北京握奇数据系统有限公司 Method and device for starting mobile phone
CN101807156A (en) * 2010-03-04 2010-08-18 广东宝莱特医用科技股份有限公司 Equipment and method for maintaining and updating system through interface medium
CN102207885A (en) * 2010-03-31 2011-10-05 国际商业机器公司 Virtual machine manager of computer system and method for starting virtual machine
CN102043652B (en) * 2010-12-08 2014-04-30 苏州捷泰科信息技术有限公司 Processing system and method for embedded device root file system
CN102043652A (en) * 2010-12-08 2011-05-04 苏州捷泰科信息技术有限公司 Processing system and method for embedded device root file system
CN102520981A (en) * 2011-11-24 2012-06-27 深圳市路畅科技有限公司 Production method of INAND/NAND-based multi-partition storage device
CN102736934A (en) * 2012-05-22 2012-10-17 深圳市共进电子股份有限公司 Image file updating method and system for singlechip, singlechip and upper computer
CN102830994A (en) * 2012-08-02 2012-12-19 广东欧珀移动通信有限公司 Method for implementing persistence of application installed on external storage
CN102830994B (en) * 2012-08-02 2016-06-22 广东欧珀移动通信有限公司 The application persistence being installed in external memory realizes method
CN102945190A (en) * 2012-11-05 2013-02-27 无敌科技(西安)有限公司 Method for continuing to update embedded device Code even after interruption of updating process of embedded device by card
CN102945190B (en) * 2012-11-05 2016-05-11 无敌科技(西安)有限公司 Utilize card to the method that still can continue after being interrupted in embedded device Code renewal process to upgrade
CN103514014A (en) * 2013-09-16 2014-01-15 北京科技大学 Method for designing boot system of embedded terminal equipment
CN104317619A (en) * 2014-10-24 2015-01-28 南车株洲电力机车研究所有限公司 Maintenance system and method of embedded system
CN104317619B (en) * 2014-10-24 2018-01-05 南车株洲电力机车研究所有限公司 The maintenance system and method for embedded system
CN106326048A (en) * 2016-08-11 2017-01-11 广东欧珀移动通信有限公司 External storage device detection method and device
CN110837720A (en) * 2019-11-04 2020-02-25 中科寒武纪科技股份有限公司 Method, device and related product for instruction execution

Also Published As

Publication number Publication date
CN1199108C (en) 2005-04-27

Similar Documents

Publication Publication Date Title
CN1273891C (en) Method for atomically updating a plurality of files
CN1199108C (en) Method of automatic updating embedded device operating system using CF card
CN102216905B (en) Method and system for creating application restore point for application operated in computer system
JP4901095B2 (en) Fail-safe way to apply custom software image updates to non-volatile storage
US7519806B2 (en) Virtual partition for recording and restoring computer data files
US6658435B1 (en) Disk image backup/restore with data preparation phase
US7664982B2 (en) Method and system for storing recovery related information on a computer memory
CN102662689B (en) Method and system for upgrading embedded software based on USB interface
CN1652080A (en) Apparatus and method for updating firmware
CN1498363A (en) System and method for restoring computer systems damaged by mallcious computer program
CN101078993A (en) Method for on-line upgrading of edition in terminal product without interrupting the operation
WO2013078951A1 (en) Method and system for upgrading software
CN1282016A (en) Display picture during period of leading and turn-off computer
CN101110788A (en) Method and system for updating client software
CN1694070A (en) Staging method of POS terminal equipment
CN1710546A (en) Systems and methods for building a disk image
CN1924821A (en) Firmware renewing system and method
US8667035B2 (en) Method of converting a filesystem while the filesystem remains in an active state
US20100115004A1 (en) Backup system that stores boot data file of embedded system in different strorage sections and method thereof
CN1818824A (en) High-reliable personal computer and operating system thereof
WO2004114129A2 (en) Embedded device with software registry
CN101655800B (en) Updating method and updating system for basic input output system
US8990618B2 (en) Partial fault tolerance in an embedded appliance
CN107423075A (en) The register method and user terminal of driving
CN100504787C (en) Virtual executing method for installing software, and system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050427

Termination date: 20210430

CF01 Termination of patent right due to non-payment of annual fee