CN104063256A - Partition and firmware upgrading method based on minimum operating system - Google Patents

Partition and firmware upgrading method based on minimum operating system Download PDF

Info

Publication number
CN104063256A
CN104063256A CN201410343601.2A CN201410343601A CN104063256A CN 104063256 A CN104063256 A CN 104063256A CN 201410343601 A CN201410343601 A CN 201410343601A CN 104063256 A CN104063256 A CN 104063256A
Authority
CN
China
Prior art keywords
subregion
partition
root file
firmware upgrade
operation system
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.)
Pending
Application number
CN201410343601.2A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410343601.2A priority Critical patent/CN104063256A/en
Publication of CN104063256A publication Critical patent/CN104063256A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a partition method and a firmware upgrading method based on a minimum operating system. The FLASH partition of a router is made to have a starting bootstrap program partition, an operating system nucleus and root file system partition, a minimum root file system partition and a nonvolatile random access storage device partition. The minimum operating system is stored in the minimum root file system partition and used for being started to carry out firmware upgrading when system crash happens. Through the method, the firmware upgrading operation is convenient, the minimum operating system is developed based on an existing operating system, and hardware cost is saved.

Description

Subregion based on minimum operation system and firmware upgrade method
Technical field
The present invention relates to router device field, particularly a kind of router and the subregion based on minimum operation system and firmware upgrade method.
Background technology
The FLASH subregion of current router as shown in Figure 1, comprise three subregions: Bootloader(Bootloader, or title bootstrap loader), Kernel(operating system nucleus) and FS(root file system), Nvram(nonvolatile random access memory).
Router only has an operating system conventionally, when system wherein starts that image file damages or when file system cannot carry, router just cannot normally be worked.Unique way of head it off is upgraded a normal software exactly.At present the method for update software has two kinds, and first method directly enters the subregion of Bootloader, with serial ports, upgrades.When this mode is commonly used in development debugging code, the hardware facility needing is serial ports, on the router dispatching from the factory, generally there is no serial ports.Second method, directly takes off FLASH chip, by cd-rom recorder, new image file is carried out to burning again, and the hardware facility needing is flatiron, cd-rom recorder etc.In the situation that router is not installed serial ports, can only use second method.If but there is system crash in batches, just the FLASH on route road must be taken off to heavy industry, not only increased human cost, also lose time, in the process of getting weldering FLASH, easily cause scrapping of product, increase cost.
Visible, in the situation that system cannot start, existing upgrade method must be by hardware conditions such as serial ports or cd-rom recorders as support, otherwise just cannot complete upgrading, very inconvenient.And these two hardware conditions all need rework and just can complete on the formal router of producing, expend time in, human and material resources, and likely cause scrapping of product.
Prior art also attempts making dual operating systems in router, when the image file of an operating system has damage, can be equivalent to a backup software from another os starting, but the hardware cost that this mode needs also can increase.
Summary of the invention
The object of the present invention is to provide a kind of router and the subregion based on minimum operation system and firmware upgrade method, do not increase extra hardware resource, to FLASH again subregion, and increase a minimum operation system, realize firmware upgrade, to save cost.
In order to achieve the above object, a technical scheme of the present invention is to provide a kind of partition method based on minimum operation system, carry out FLASH subregion, it is comprised: Bootloader subregion, operating system nucleus and root file system subregion, least root file partition, nonvolatile random access memory subregion; Wherein, in described least root file partition, store the minimum operation system that starts to carry out firmware upgrade when system crash.
Alternatively, in being provided with the FLASH subregion of Bootloader subregion, operating system nucleus and root file system subregion, nonvolatile random access memory subregion, reduce the size of described operating system nucleus and root file system subregion, and the partition sections of minimizing is changed and is made as least root file partition.
Alternatively, after described least root file partition is set, the select command of image file is set, comprises:
When system is normal, use the image file of current operation system to start;
When system crash, start the minimum operation system in least root file partition, obtain up-to-date image file and carry out firmware upgrade, thus recovery system.
Another technical scheme of the present invention is to provide a kind of firmware upgrade method based on minimum operation system, when the image file of current operation system starts unsuccessfully, start the minimum operation system in the least root file partition that is stored in FLASH subregion, obtain up-to-date image file and carry out firmware upgrade, thus recovery system.
Alternatively, described minimum operation system, an application program that can start firmware upgrade operation based on programming in least root file partition is carried out software firmware upgrade when system crash.
Alternatively, described application program is downloaded up-to-date image file by network and is carried out firmware upgrade.
The present invention also has a technical scheme to be to provide a kind of subregion based on minimum operation system and the router of firmware upgrade, and the FLASH subregion of described router comprises Bootloader subregion, operating system nucleus and root file system subregion, least root file partition, nonvolatile random access memory subregion; Wherein, in described least root file partition, store the minimum operation system that starts to carry out firmware upgrade when system crash.
Compared with prior art, subregion and the firmware upgrade method based on minimum operation system of the present invention, its advantage is: when normal system goes wrong, the present invention can be enabled in the minimum operation system in newly-increased subregion, conveniently realizes firmware upgrade; On existing basis, develop described minimum operation system, save hardware cost.No matter be to occur that in process of production system cannot load, or bought when client needs software upgrading and can use the present invention at product, easy to use.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of existing FLASH subregion;
Fig. 2 is the schematic diagram of FLASH subregion in the present invention;
Fig. 3 is the schematic flow diagram of subregion and firmware upgrade method in the present invention.
Embodiment
In router provided by the invention, on the basis of existing FLASH subregion, increased a little subregion and deposited minimum operation system, the storage space that it takies is little, can on the basis that does not change existing hardware cost, complete.In preferred example, this minimum operation system can be set for only realizing this function of FLASH firmware upgrade.When normal system collapses, start this minimum operation system and carry out firmware upgrade, do not increase hardware cost, and can effectively improve the inconvenient problem of current upgrading.
As shown in Figure 2, FLASH subregion in the present invention, comprise four subregions: Bootloader(Bootloader, or title bootstrap loader) subregion 10, Kernel(operating system nucleus) with FS(root file system) subregion 20, Minifs(least root file system) subregion 40, Nvram(nonvolatile random access memory) subregion 30.
As shown in Figure 3, the present invention can be the subregion again that carries out FLASH in Kernel,
S1, reduce the size of original Kernel+FS subregion;
S2, the part of minimizing is changed and is made as newly-increased Minifs subregion (size of for example, establishing Minifs subregion is 800K);
S3, write and select image file start-up code.
Selection to image file, comprising:
S31, when system is normal, use the image file of current operation system to start;
S32, when the system failure, start minimum operation system in Minifs subregion and obtain up-to-date image file and upgrade current software version, complete firmware upgrade.
The described minimum operation system realizing in Minifs subregion, can be based on programming an application program that can start firmware upgrade operation in this Minifs subregion, when system crash, carry out software firmware upgrade.
In some application examples, the function that described application program realizes, can be to read to be originally stored in router interior or the storage area of outside or the up-to-date image file of memory device.And along with the maturation of the universal and cloud function of network system, in other application examples, the function that described application program realizes, can also be to download a up-to-date image file from network, upgrades current software version, completes firmware upgrade, etc.
In sum, when normal system goes wrong, the present invention can be enabled in the minimum operation system in newly-increased subregion, conveniently realizes firmware upgrade; On existing basis, develop described minimum operation system, save hardware cost.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Those skilled in the art, read after foregoing, for multiple modification of the present invention with to substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (7)

1. the partition method based on minimum operation system, is characterized in that,
Carry out FLASH subregion, it is comprised: Bootloader subregion, operating system nucleus and root file system subregion, least root file partition, nonvolatile random access memory subregion;
Wherein, in described least root file partition, store the minimum operation system that starts to carry out firmware upgrade when system crash.
2. partition method as claimed in claim 1, is characterized in that,
In being provided with the FLASH subregion of Bootloader subregion, operating system nucleus and root file system subregion, nonvolatile random access memory subregion, reduce the size of described operating system nucleus and root file system subregion, and the partition sections of minimizing is changed and is made as least root file partition.
3. partition method as claimed in claim 1 or 2, is characterized in that,
After described least root file partition is set, the select command of image file is set, comprises:
When system is normal, use the image file of current operation system to start;
When system crash, start the minimum operation system in least root file partition, obtain up-to-date image file and carry out firmware upgrade, thus recovery system.
4. the firmware upgrade method based on minimum operation system, is characterized in that,
When the image file of current operation system starts unsuccessfully, start the minimum operation system in the least root file partition that is stored in FLASH subregion, obtain up-to-date image file and carry out firmware upgrade, thus recovery system.
5. partition method as claimed in claim 4, is characterized in that,
Described minimum operation system, an application program that can start firmware upgrade operation based on programming in least root file partition is carried out software firmware upgrade when system crash.
6. partition method as claimed in claim 5, is characterized in that,
Described application program is downloaded up-to-date image file by network and is carried out firmware upgrade.
7. a router for the subregion based on minimum operation system and firmware upgrade, is characterized in that,
The FLASH subregion of described router comprises Bootloader subregion, operating system nucleus and root file system subregion, least root file partition, nonvolatile random access memory subregion;
Wherein, in described least root file partition, store the minimum operation system that starts to carry out firmware upgrade when system crash.
CN201410343601.2A 2014-07-18 2014-07-18 Partition and firmware upgrading method based on minimum operating system Pending CN104063256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410343601.2A CN104063256A (en) 2014-07-18 2014-07-18 Partition and firmware upgrading method based on minimum operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410343601.2A CN104063256A (en) 2014-07-18 2014-07-18 Partition and firmware upgrading method based on minimum operating system

Publications (1)

Publication Number Publication Date
CN104063256A true CN104063256A (en) 2014-09-24

Family

ID=51550980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410343601.2A Pending CN104063256A (en) 2014-07-18 2014-07-18 Partition and firmware upgrading method based on minimum operating system

Country Status (1)

Country Link
CN (1) CN104063256A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809396A (en) * 2015-05-07 2015-07-29 北京瑞星信息技术有限公司 Method and system for analyzing router firmware
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
CN105406981A (en) * 2015-10-20 2016-03-16 上海斐讯数据通信技术有限公司 System and method used for upgrading router
CN105893090A (en) * 2016-03-31 2016-08-24 武汉光迅科技股份有限公司 Method for upgrading BOOTROM and application of embedded system
CN106598651A (en) * 2016-11-25 2017-04-26 上海斐讯数据通信技术有限公司 Embedded system and upgrade method thereof
CN111273918A (en) * 2020-01-15 2020-06-12 深圳英飞拓科技股份有限公司 Remote upgrading method for embedded camera
CN112698985A (en) * 2020-12-21 2021-04-23 厦门锐骐物联技术股份有限公司 System starting method and system based on multi-partition technology firmware protection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908900A (en) * 2005-08-05 2007-02-07 四零四科技股份有限公司 Method for resetting starting system
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908900A (en) * 2005-08-05 2007-02-07 四零四科技股份有限公司 Method for resetting starting system
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809396A (en) * 2015-05-07 2015-07-29 北京瑞星信息技术有限公司 Method and system for analyzing router firmware
CN104809396B (en) * 2015-05-07 2018-08-31 北京瑞星网安技术股份有限公司 Parse the method and system of router firmware
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
CN105406981A (en) * 2015-10-20 2016-03-16 上海斐讯数据通信技术有限公司 System and method used for upgrading router
CN105893090A (en) * 2016-03-31 2016-08-24 武汉光迅科技股份有限公司 Method for upgrading BOOTROM and application of embedded system
CN106598651A (en) * 2016-11-25 2017-04-26 上海斐讯数据通信技术有限公司 Embedded system and upgrade method thereof
CN111273918A (en) * 2020-01-15 2020-06-12 深圳英飞拓科技股份有限公司 Remote upgrading method for embedded camera
CN111273918B (en) * 2020-01-15 2023-09-15 深圳英飞拓仁用信息有限公司 Remote upgrading method of embedded video camera
CN112698985A (en) * 2020-12-21 2021-04-23 厦门锐骐物联技术股份有限公司 System starting method and system based on multi-partition technology firmware protection

Similar Documents

Publication Publication Date Title
CN104063256A (en) Partition and firmware upgrading method based on minimum operating system
JP6390644B2 (en) Program update system, program update method, and computer program
CN106802813B (en) Method and device for upgrading aerial firmware and vehicle
CN109933348B (en) Method and device for updating Bootloader in electronic control unit
US9507604B2 (en) Boot method and boot system
CN102033790B (en) Method and device for upgrading embedded-type system BOOTROM
CN102334100A (en) Program update device, program update method, and information processing device
CN109032632B (en) FOTA upgrading method, wireless communication terminal and storage medium
CN104572206A (en) Application program self updating and backup recovery method
CN105183517A (en) Method and device for mounting external storage equipment in recovery mode and electronic device
CN111782339B (en) Container creation method and device, electronic equipment and storage medium
CN104123153A (en) Apparatus and method for firmware upgrade using USB
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN104915226A (en) Network device software starting method, device and network device
CN110083380A (en) Firmware update and the electronic device for using the method
CN103514015A (en) Method and device for booting operation system from storage medium
CN104965744A (en) System upgrading method and embedded system
US20170052779A1 (en) Method and Device for Running Version File
CN105930184A (en) System upgrade method and device
CN112631625A (en) System upgrading method and device of embedded equipment and embedded equipment
CN102609290A (en) Software updating method for electronic product
CN109710297B (en) Method for upgrading and backing equipment wholly or in modules
CN111104173A (en) Protection design method of bootstrap program
CN105183580A (en) Storage method and fault recovery method for bootstrap program, and devices
CN112860291B (en) Firmware upgrading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140924

RJ01 Rejection of invention patent application after publication