CN1261893C - Method of renewing operating system of embedded equipment - Google Patents

Method of renewing operating system of embedded equipment Download PDF

Info

Publication number
CN1261893C
CN1261893C CN 03100448 CN03100448A CN1261893C CN 1261893 C CN1261893 C CN 1261893C CN 03100448 CN03100448 CN 03100448 CN 03100448 A CN03100448 A CN 03100448A CN 1261893 C CN1261893 C CN 1261893C
Authority
CN
China
Prior art keywords
operating system
embedded device
zone bit
image file
boot sector
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.)
Expired - Fee Related
Application number
CN 03100448
Other languages
Chinese (zh)
Other versions
CN1517899A (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 03100448 priority Critical patent/CN1261893C/en
Publication of CN1517899A publication Critical patent/CN1517899A/en
Application granted granted Critical
Publication of CN1261893C publication Critical patent/CN1261893C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

The present invention discloses a method for updating the operating system of embedded equipment, which has the key that the operating system of the embedded equipment is updated by a special operating system used for an update so as to add functions to the system or repair a system which can not normally starts, and two updating modes are provided by the network function and the USB interface of the embedded equipment. The operating system of the embedded equipment can not only be updated through a network, but also be updated by externally connecting a USB memory, and the operating system of the embedded equipment can be conveniently, easily and flexibly updated by the method so as to solve the problem of the original inconvenience of updating the operating system of the embedded equipment.

Description

Upgrade the method for the operating system of embedded device
Technical field
A kind of method of upgrading the operating system of embedded device of the present invention is meant especially and a kind ofly by Network Transmission or External memory equipment the operating system of embedded device is carried out method for updating, belongs to computing machine
Technical field.
Background technology
The volume of embedded device is generally all smaller, so mostly use capacity and take all smaller memory device, stores of physical space its employed operating system and upper level applications.This mode has characteristics: after this memory device is installed on the embedded device, if think that operating system and application program on the updated stored equipment are just pretty troublesome.
If the operating system of upgrading embedded device can adopt following two kinds of methods usually with the function of increase system and the performance of optimization system:
1, takes embedded device apart, replace original memory device in the embedded device with a memory device that has baked and be equipped with new operating system.
2, write a update software or be used for specially operating system is upgraded by network or by USB (universal serial bus) (UniversalSerial Bus, be called for short USB) or by CF card etc.
In the method for these two kinds of upgrading operation systems, because the inner structure of embedded device is very tight, therefore, adopt first method that memory device is wherein installed, dismantled and all compare difficulty, the equipment installation, maintenance and the maintainer that need specialty could realize; And the easy disassembling of embedded device is caused the damage of related hardware.
Second method is the update method that is embedded into the widely used operating system of formula equipment, but the various software upgrading ways that adopt have a common shortcoming at present: because it only adopts an operating system, when image file (image) file (for a certain reason) of operating system can not normally start, also just can not start update software, and then can't finish renewal work by update software.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of method of upgrading the operating system of embedded device, mode by Network Transmission or External memory equipment communication is convenient, simply, neatly the operating system of embedded device is upgraded, solve the problem that existing embedded device upgrades the operating system inconvenience.
The object of the present invention is achieved like this:
A kind of method of upgrading the operating system of embedded device is upgraded special-purpose operating system by one and is come the operating system of embedded device is upgraded; Specifically the mode by network download realizes that it comprises at least:
Step 10: the operating system loading program of embedded device determines to start the image file of the operating system that reads renewal usefulness or the image file of origin operation system by the zone bit of judging Master boot sector, and then determine whether to carry out the renewal of operating system, be specially:
When the value of statistical indicant of the zone bit of this Master boot sector was normal starting state value, embedded device started the origin operation system; Otherwise, carry out following steps and carry out operating system update;
Step 11: dispose the parameter relevant with procotol in embedded device and the main frame respectively, the IP address and the subnet mask of configuration embedded device make itself and host work within the same network segment; Set up embedded device and main frame being communicated with on network;
Step 12: main frame is given embedded device with new operating system image file by Network Transmission;
Step 13: embedded device receives this new operating system image file, and upgrades the operating system of embedded device;
Step 14: the zone bit of its Master boot sector of embedded device is set to normal starting state value.
A kind of method of upgrading the operating system of embedded device is upgraded special-purpose operating system by one and is come the operating system of embedded device is upgraded; Specifically the mode that imports by external memory realizes that it comprises at least:
Step 20: the operating system loading program of embedded device determines to start the image file of the operating system that reads renewal usefulness or the image file of origin operation system by the zone bit of judging Master boot sector, and then determine whether to carry out the renewal of operating system, be specially:
When the value of statistical indicant of the zone bit of this Master boot sector was normal starting state value, embedded device started the origin operation system; Otherwise, carry out following steps and carry out operating system update;
Step 21: the external memorizer that will preserve the image file of new operating system is connected with embedded device by corresponding interface;
Step 22: embedded device reads the image file of new operating system from this external memorizer, and upgrades the operating system of embedded device;
Step 23: the zone bit of its Master boot sector of embedded device is set to normal starting state value.
After origin operation system start-up success, also need the zone bit of Master boot sector to be set to normal starting state value.The zone bit of this Master boot sector is by artificial setting, or is provided with automatically by embedded device.
The operating system of using method of the present invention to upgrade embedded device does not need disassemblerassembler, so can not cause the damage of the hardware of embedded device; Hardware is promptly renewable extraly because the general tool of embedded device with network function and USB interface, does not need.Along with embedded device be extensive use of, advantage of the present invention can be more and more obvious, the scope of application also can be more and more wider.
Description of drawings
Fig. 1 is the process flow diagram of one embodiment of the invention
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and specific embodiment:
Core of the present invention is that the load software " loader " by embedded system selects a special operating system image file (image) automatically and utilize the network function of embedded device or the renewal that the usb interface is realized operating system.
Preserve image file (image) file of two operating systems on embedded device, one is the image file (image) of operating system just commonly used, and one is the image file (image) that is used for upgrading the operating system of usefulness.
Referring to Fig. 1, the load software of embedded device reads the zone bit of Master boot sector, when being masked as 0, with the mark position is 1, and the image file (image) of guiding operating system just commonly used, after the image file (image) of operating system successfully starts with the zone bit of Master boot sector clear 0; When zone bit was 1, the image file (image) of the operating system of usefulness was upgraded in guiding.Obviously, if in start-up course the generation problem, above-mentioned zone bit then remains " 1 " always, therefore when start next time, embedded device will upgrade the operation flag position automatically.
Refer again to Fig. 1, after the operating system of guiding renewal usefulness, embedded device prompting user selects update mode, may further comprise the steps when selecting network to upgrade:
A. configure host network parameter and on main frame, start a router and give embedded device by Network Transmission with the image file (image) of the new operating system of embedded device;
B. start the image file (image) that a reception program receives new operating system at embedded device, upgrade the operating system of embedded device;
C. with the zone bit of Master boot sector clear 0.
When selecting the circumscribed USB memory updating, may further comprise the steps:
A. the circumscribed USB storer that will preserve image file (image) file of new operating system inserts on the usb interface, confirms then;
B. embedded device reads image file (image) file and the preservation of new operating system from the circumscribed USB storer;
C. the zone bit with Master boot sector is clearly 0.
External memory equipment among the present invention is a USB storage, if this embedded device is supported other storages, for example: CF card, sM card, MS and MMC etc., its External memory equipment is not limited to above-mentioned USB storage.
It should be noted that at last: above embodiment only in order to the explanation the present invention and and unrestricted technical scheme described in the invention; Therefore, although this instructions has been described in detail the present invention with reference to each above-mentioned embodiment,, those of ordinary skill in the art should be appreciated that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (6)

1, a kind of method of upgrading the operating system of embedded device is characterized in that: upgrade special-purpose operating system by one and come the operating system of embedded device is upgraded; Specifically the mode by network download realizes that it comprises at least:
Step 10: the operating system loading program of embedded device determines to start the image file of the operating system that reads renewal usefulness or the image file of origin operation system by the zone bit of judging Master boot sector, and then determine whether to carry out the renewal of operating system, be specially:
When the value of statistical indicant of the zone bit of this Master boot sector was normal starting state value, embedded device started the origin operation system; Otherwise, carry out following steps and carry out operating system update;
Step 11: dispose the parameter relevant with procotol in embedded device and the main frame respectively, the IP address and the subnet mask of configuration embedded device make itself and host work within the same network segment; Set up embedded device and main frame being communicated with on network;
Step 12: main frame is given embedded device with new operating system image file by Network Transmission;
Step 13: embedded device receives this new operating system image file, and upgrades the operating system of embedded device;
Step 14: the zone bit of its Master boot sector of embedded device is set to normal starting state value.
2, the method for the operating system of renewal embedded device according to claim 1 is characterized in that: after origin operation system start-up success, also the zone bit of Master boot sector is set to normal starting state value.
3, the method for the operating system of renewal embedded device according to claim 1 is characterized in that: the zone bit of Master boot sector is by artificial setting, or is provided with automatically by embedded device.
4, a kind of method of upgrading the operating system of embedded device is characterized in that: upgrade special-purpose operating system by one and come the operating system of embedded device is upgraded; Specifically the mode that imports by external memory realizes that it comprises at least:
Step 40: the operating system loading program of embedded device determines to start the image file of the operating system that reads renewal usefulness or the image file of origin operation system by the zone bit of judging Master boot sector, and then determines whether to carry out the renewal of operating system; Be specially:
When the value of statistical indicant of the zone bit of this Master boot sector was normal starting state value, embedded device started the origin operation system; Otherwise, carry out operating system update.
Step 41: the external memorizer that will preserve the image file of new operating system is connected with embedded device by corresponding interface;
Step 42: embedded device reads the image file of new operating system from this external memorizer, and upgrades the operating system of embedded device;
Step 43: the zone bit of its Master boot sector of embedded device is set to normal starting state value.
5, the method for the operating system of renewal embedded device according to claim 4 is characterized in that: after origin operation system start-up success, also the zone bit of Master boot sector is set to normal starting state value.
6, the method for the operating system of renewal embedded device according to claim 4 is characterized in that: the zone bit of Master boot sector is by artificial setting, or is provided with automatically by embedded device.
CN 03100448 2003-01-14 2003-01-14 Method of renewing operating system of embedded equipment Expired - Fee Related CN1261893C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03100448 CN1261893C (en) 2003-01-14 2003-01-14 Method of renewing operating system of embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03100448 CN1261893C (en) 2003-01-14 2003-01-14 Method of renewing operating system of embedded equipment

Publications (2)

Publication Number Publication Date
CN1517899A CN1517899A (en) 2004-08-04
CN1261893C true CN1261893C (en) 2006-06-28

Family

ID=34281164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03100448 Expired - Fee Related CN1261893C (en) 2003-01-14 2003-01-14 Method of renewing operating system of embedded equipment

Country Status (1)

Country Link
CN (1) CN1261893C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006099234A (en) 2004-09-28 2006-04-13 Aruze Corp Network terminal device, distribution server, and client/server system
CN100377085C (en) * 2006-03-31 2008-03-26 浙江大学 Method for implementing hardware image starting optimizing of embedded operating system
CN100456244C (en) * 2006-08-23 2009-01-28 王悦 Device and method for guiding, updating and maintenance based on USB Host
CN100561433C (en) * 2006-09-30 2009-11-18 四川长虹电器股份有限公司 Embedded system and upgrade method thereof
CN101599033A (en) * 2009-07-15 2009-12-09 王颖 Method for restoring system backup and device
CN102456047B (en) * 2010-10-26 2015-07-01 大唐移动通信设备有限公司 Method and device for repairing system file based on X86 architecture
CN102880478B (en) * 2011-07-15 2015-11-25 启碁科技股份有限公司 Oftware updating method
CN102968319A (en) * 2012-11-14 2013-03-13 北京交控科技有限公司 VxWorks image loading method

Also Published As

Publication number Publication date
CN1517899A (en) 2004-08-04

Similar Documents

Publication Publication Date Title
CN1255973C (en) Family network system and its working method
KR101426710B1 (en) Device and method for upgrading version information of terminal
CN1834915A (en) Method of updating firmware in computer server systems
CN1261893C (en) Method of renewing operating system of embedded equipment
CN1694070A (en) Staging method of POS terminal equipment
CN1889041A (en) Software staging and back spacing method
CN103902399B (en) Software system repair processing method and software system repair processing device
CN105573864A (en) Terminal system recovery method and system thereof
CN102214113A (en) Method, device and terminal for upgrading operating system
CN101639785A (en) Method and device for software updating
CN1367628A (en) Program update method of portable terminal device, and portable terminal device thereof
CN102938817A (en) Storage mount achieving method and device under recovery mode of mobile phone
CN1272708C (en) Custom method of embedded appliance applied software
CN1295903C (en) A safe system starting method
CN1199108C (en) Method of automatic updating embedded device operating system using CF card
CN109710297B (en) Method for upgrading and backing equipment wholly or in modules
CN110474793A (en) A kind of upgrade method and device of the network equipment
CN103544151A (en) Method and system for processing data in linux system
CN1786910A (en) BIOS on-line upgrading method
CN1251541C (en) Method for shortening booting time of digital equipment having flash memory
CN104423997A (en) Remote base station version installing method and remote base station version installing device
CN114006901B (en) Embedded network equipment cover-dismounting-free firmware upgrading method and system
CN1315043C (en) Compatibility upgrading method of embedded programm
CN112764793B (en) Method for incrementally updating parameters of function block
CN111949290B (en) Hot patch management method and device, electronic equipment and storage medium

Legal Events

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

Granted publication date: 20060628

Termination date: 20210114