CN1928820A - Embedded system and its upgrading method - Google Patents

Embedded system and its upgrading method Download PDF

Info

Publication number
CN1928820A
CN1928820A CN 200610021985 CN200610021985A CN1928820A CN 1928820 A CN1928820 A CN 1928820A CN 200610021985 CN200610021985 CN 200610021985 CN 200610021985 A CN200610021985 A CN 200610021985A CN 1928820 A CN1928820 A CN 1928820A
Authority
CN
China
Prior art keywords
software upgrading
embedded system
upgrade
module
upgrading module
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 200610021985
Other languages
Chinese (zh)
Other versions
CN100561433C (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNB2006100219851A priority Critical patent/CN100561433C/en
Publication of CN1928820A publication Critical patent/CN1928820A/en
Application granted granted Critical
Publication of CN100561433C publication Critical patent/CN100561433C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The related embedded system update method comprises: without writing driver or network protocol to expand the bootloader, adding a reduced software update module in the FLASH to download the update software. This invention can update system during the bootstrap stage without added cost, and can provide system recovery function to improve security and maintenance, and has great social and economic benefits.

Description

Embedded system and upgrade method thereof
Technical field
The present invention relates to embedded system technology, particularly a kind of technology of upgrading that in embedded system bootstrap program, realizes.
Background technology
Embedded software system is owing to have operating system and numerous driver, protocol stack and application programs, and system is comparatively complicated, thereby becomes fragile, program error takes place easily and constantly upgrading.
System bootstrap routine (bootloader) is first section software code of embedded system electrifying startup operation, is before operating system nucleus or user application operation, a cross-talk program of operation.By this section program, initiating hardware equipment, set up the mapping graph of memory headroom, so that be ready to correct environment for final call operation system kernel or user application.Promptly the system bootstrap module links to each other with operating system in embedded system, the operation of pilot operationp system.
Built-in system software generally is burnt among the FLASH by EJTAG debugger or programmable device when manufacturing experimently or produce by the equipment development merchant, and its bootloader function is very weak.Though existing embedded system includes RS232 serial ports, network interface, AKU storage unit, but system realizes system upgrade as desiring in boot, must additionally in boot, write a large amount of software codes, increase modules such as network port driving, http protocol stack.System bootstrap module after expanding can be communicated by letter with RS232 serial ports, network interface respectively by operating system, and the upgrade software of downloading is kept at the AKU storage unit.But because different platform hardware structure difference, software will be done a lot of transplanting work, and its workload is bigger, and this class methods complicated operation and upgrade software speed are slower, have brought inconvenience to product development merchant and user.
Summary of the invention
Technical matters to be solved by this invention is: provide a kind of under the situation that does not expand bootloader, allow system can pass through the embedded system and the upgrade method thereof of http, tftp agreement downloaded software realization system upgrade.
The present invention is that the technical scheme that solves the problems of the technologies described above employing is:
Embedded system comprises system bootstrap module, operating system, RS232 serial ports, network interface, AKU storage unit; Increased a software upgrading module, operating system links to each other with the system bootstrap module; The software upgrading module also links to each other with the system bootstrap module; The software upgrading module also links to each other with RS232 serial ports, network interface, AKU storage unit respectively.
By in FLASH, increasing a software upgrading module, this software upgrading module is the operating system after reducing, come download and upgrade software by this software upgrading module, need not write driver and procotol again in bootloader, existing driver and procotol are come download and upgrade software in the operating system after promptly directly utilization is reduced.
The present invention also provides the upgrade method of this embedded system: detect upgrade request whether occurs earlier in time delay during the software upgrading module starts, if then normally do not start; If have then to enter the software upgrading module, carry out ROMPaq and download, write FLASH.Its concrete steps are as follows:
A, embedded system power on, and operational system boot, system boot are finished the initialization of hardware and loaded relevant hardware drive program;
Whether b, judgement have upgrade request in time delay, if not, enter step c; If enter steps d;
C, start the operating system;
D, startup software upgrading module, the software upgrading module is provided with network parameter, and communicates by letter with upgrade server by network interface, and upgrade file is downloaded to FLASH, and upgrading finishes and gets back to step a.
The invention has the beneficial effects as follows: use embedded system of the present invention to carry out software upgrading, increase a function of strengthening boot through the software upgrading module after the operating system reduction, realized finishing system upgrade in the vectoring phase, save workload greatly, shortened the Products Development cycle.The software upgrading module of reducing is very little, does not increase system cost, and also can provide the system recovery function when host file system damages, and has improved security, helps the subsequent upgrade and the maintenance of software, and bigger social benefit and use value are arranged.
The present invention will be further described below in conjunction with accompanying drawing and embodiment.
Description of drawings
Fig. 1 is the embedded system synoptic diagram;
Fig. 2 is the upgrading process flow diagram of embedded system.
Embodiment
Be example with the PNX8550 development platform below, adopt PHILIPS PNX8550 development board, transplanted linux operating system, associated drives and application software are finished substantially, a basic bootloader is arranged, this bootloader has only uart to drive and nand FLASH drives, and allow this bootloader support file download function need write network interface card driving and TCP/IP, tftp, http agreement, and workload is big and be not easy to transplanting.
The linux kernel had just comprised network interface card driving and TCP/IP, tftp, http agreement originally, cutting linux kernel, generate a software upgrading module that is used for download and upgrade software specially, comprise that network card chip drives, FLASH reads and writes driving, RS232 serial port drive etc., constitute an embedded minimum system, will be connected, download the irrelevant process module of preservation with network and reduce.
Operating system is only used static module without the dynamic module storehouse, and file system adopts initramfs, network interface card drives and adopts static mode to connect into kernel, and the rootfs file system adopts the busybox compiling, only keeps the httpget program, be compiled into vmlinux, compress with gzip again.
Further reduce, make first process init that carries out into http and download, remove shell programs such as bash, init.
Further reduce again, transform the linux actuating section, linux is started thread init make the http download thread into, remove the rootfs file system.
Last final reduction operating system later, i.e. the software upgrading module of keeping of FLASH.Utilize this software upgrading module download and upgrade software to FLASH, realize system upgrade.As shown in Figure 1, form dual system bootloader, removing operating system and the system bootstrap module linking to each other, the software upgrading module also links to each other with the system bootstrap module in addition; The software upgrading module also links to each other with RS232 serial ports, network interface, AKU storage unit respectively.The FLASH allocation of space such as the following table of above-mentioned embedded system:
Program The address Size
bootloader 0x00000000~0x00040000 256K
The software upgrading module 0x00040000~0x00300000 2M-256K
Operating system 0x00300000~0x01000000 2M-64M
So just need in bootloader, not write related driver programs, embedded system utilizes driving and the procotol in the software upgrading module to come download and upgrade software, can also utilize the LCD in the driving to drive the progress of downloading, write FLASH with the graphics mode software for display, not only shortened the construction cycle, and it is powerful, http downloads can pass through proxy, can show the download progress figure.
Compact operating system also can remove all no functions with other smaller system such as systems such as ucDOS, pSos, only keeps the http download and writes the FLASH program, compresses with gzip.
As shown in Figure 2, the upgrading flow process for embedded system is as follows:
Behind the embedded system electrification reset, at first move bootloader, this program is mainly finished the initialization of hardware and is loaded relevant hardware drive program.After the bootLoader initialization finishes, add 3 seconds software delay by software control, judge that a RS232 serial ports has or not the button of request upgrading to press in the section between at this moment, if do not have, time delay to after start the operating system immediately, carry out normal boot.Receive corresponding upgrade function request key as if RS232 serial ports in time delay and pressed, entered the software upgrading flow process at once.By being set, network parameter (this machine address, server address, MAC Address, the network transmission protocol etc.) comes to interconnect with upgrade server.Be provided with and press upgrading beginning function key after the end and begin software upgrading, successfully then turn back to the power-up initializing state and restart system if upgrade.
Upgrading software generally comprises the driving revision program of operating system or two aspects of value-added service software of application.

Claims (8)

1, embedded system comprises system bootstrap module, operating system, RS232 serial ports, network interface, AKU storage unit, it is characterized in that, also comprises the software upgrading module, and described software upgrading module links to each other with described system bootstrap module; Described software upgrading module links to each other with described RS232 serial ports, described network interface, described AKU storage unit respectively.
2, embedded system as claimed in claim 1 is characterized in that, described system bootstrap module, operating system, AKU storage unit, software upgrading module all are built among the FLASH.
3, embedded system as claimed in claim 1 or 2 is characterized in that, described software upgrading module comprises that network card chip drives, the FLASH read-write drives, the RS232 serial port drive.
4, its upgrade method of embedded system according to claim 1 may further comprise the steps:
A, embedded system power on, and operational system boot, system boot are finished the initialization of hardware and loaded relevant hardware drive program;
Whether b, judgement have upgrade request in time delay, if not, enter step c; If enter steps d;
C, start the operating system;
D, startup software upgrading module, the software upgrading module is provided with network parameter, and communicates by letter with upgrade server by network interface, and upgrade file is downloaded to FLASH, and upgrading finishes and gets back to step a.
As the upgrade method of embedded system as described in the claim 4, it is characterized in that 5, described software upgrading module is the operating system after reducing, comprise that network card chip drives, the FLASH read-write drives, the RS232 serial port drive.
6, as the upgrade method of embedded system as described in claim 4 or 5, it is characterized in that described software upgrading module is kept on the described FLASH.
7, as the upgrade method of embedded system as described in the claim 6, it is characterized in that, described step b, described upgrade request is imported by the RS232 serial ports.
8, as the upgrade method of embedded system as described in the claim 7, it is characterized in that described network parameter comprises this machine address, server address, MAC Address, the network transmission protocol.
CNB2006100219851A 2006-09-30 2006-09-30 Embedded system and upgrade method thereof Expired - Fee Related CN100561433C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100219851A CN100561433C (en) 2006-09-30 2006-09-30 Embedded system and upgrade method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100219851A CN100561433C (en) 2006-09-30 2006-09-30 Embedded system and upgrade method thereof

Publications (2)

Publication Number Publication Date
CN1928820A true CN1928820A (en) 2007-03-14
CN100561433C CN100561433C (en) 2009-11-18

Family

ID=37858794

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100219851A Expired - Fee Related CN100561433C (en) 2006-09-30 2006-09-30 Embedded system and upgrade method thereof

Country Status (1)

Country Link
CN (1) CN100561433C (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882087A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Multimedia terminal equipment and maintaining method thereof
CN102214106A (en) * 2010-04-08 2011-10-12 三星电子(中国)研发中心 Automatic dual-system guide method of embedded device
CN102541585A (en) * 2011-11-11 2012-07-04 深圳市迪威新软件技术有限公司 Remote upgrade method and embedded system
CN102799452A (en) * 2012-06-29 2012-11-28 深圳市安普尔科技有限公司 Method and device for upgrading system software
CN103095497A (en) * 2013-01-11 2013-05-08 厦门亿联网络技术股份有限公司 Recovery mode upgrading method of voice over internet protocol (VOIP) phone
CN103559059A (en) * 2013-11-05 2014-02-05 广东新支点技术服务有限公司 Quick medium-free upgrading method for Linux system
CN103677941A (en) * 2013-12-27 2014-03-26 北京大唐智能卡技术有限公司 Method and device for upgrading intelligent card operation system module
CN103744702A (en) * 2014-01-07 2014-04-23 上海斐讯数据通信技术有限公司 Dual-system starting method of switching and routing device
CN101477471B (en) * 2009-01-07 2014-04-30 杭州海康威视数字技术股份有限公司 Embedded system firmware on-line upgrading method
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
CN105204896A (en) * 2015-09-08 2015-12-30 江苏绿扬电子仪器集团有限公司 BootLoader design method of digital storage oscilloscope
CN105278410A (en) * 2015-10-26 2016-01-27 广东威创视讯科技股份有限公司 Minimum system automatic embedding method, device and system
CN103761129B (en) * 2014-01-13 2017-04-12 中南大学 Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN106878160A (en) * 2017-02-24 2017-06-20 烽火通信科技股份有限公司 Home gateway enters the method and home gateway system of safe mode
CN107844305A (en) * 2016-09-20 2018-03-27 芯讯通无线科技(上海)有限公司 The method for upgrading software and embedded device of embedded device
CN105279002B (en) * 2015-11-23 2018-10-26 上海网测通信技术有限公司 Automatically updating method based on System guides file in embedded system
CN112882731A (en) * 2021-01-08 2021-06-01 北京锦鸿希电信息技术股份有限公司 Embedded software upgrading method and device
CN114489702A (en) * 2022-01-29 2022-05-13 北京有竹居网络技术有限公司 Method, device, medium and electronic equipment for installing operating system
WO2022246958A1 (en) * 2021-05-28 2022-12-01 武汉天喻信息产业股份有限公司 Firmware update method and system for smart device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253846A (en) * 2010-05-21 2011-11-23 康佳集团股份有限公司 Method for upgrading embedded system software

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261893C (en) * 2003-01-14 2006-06-28 联想(北京)有限公司 Method of renewing operating system of embedded equipment
CN100389389C (en) * 2003-06-20 2008-05-21 华为技术有限公司 Method for implementing hot-update of bootstrap program in flush bonding system
CN100373337C (en) * 2006-01-20 2008-03-05 北京朗通环球科技有限公司 Guide system of embedded system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477471B (en) * 2009-01-07 2014-04-30 杭州海康威视数字技术股份有限公司 Embedded system firmware on-line upgrading method
CN102214106B (en) * 2010-04-08 2014-03-26 三星电子(中国)研发中心 Automatic dual-system guide method of embedded device
CN102214106A (en) * 2010-04-08 2011-10-12 三星电子(中国)研发中心 Automatic dual-system guide method of embedded device
CN101882087A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Multimedia terminal equipment and maintaining method thereof
CN102541585A (en) * 2011-11-11 2012-07-04 深圳市迪威新软件技术有限公司 Remote upgrade method and embedded system
CN102541585B (en) * 2011-11-11 2016-05-18 深圳市迪威新软件技术有限公司 A kind of remote upgrade method and embedded system
CN102799452A (en) * 2012-06-29 2012-11-28 深圳市安普尔科技有限公司 Method and device for upgrading system software
CN102799452B (en) * 2012-06-29 2015-10-07 深圳市安普尔科技有限公司 system software upgrading method and device
CN103095497A (en) * 2013-01-11 2013-05-08 厦门亿联网络技术股份有限公司 Recovery mode upgrading method of voice over internet protocol (VOIP) phone
CN103559059A (en) * 2013-11-05 2014-02-05 广东新支点技术服务有限公司 Quick medium-free upgrading method for Linux system
CN103677941A (en) * 2013-12-27 2014-03-26 北京大唐智能卡技术有限公司 Method and device for upgrading intelligent card operation system module
CN103677941B (en) * 2013-12-27 2017-08-11 北京大唐智能卡技术有限公司 A kind of method and device for realizing smart card operating system module upgrade
CN103744702A (en) * 2014-01-07 2014-04-23 上海斐讯数据通信技术有限公司 Dual-system starting method of switching and routing device
CN103761129B (en) * 2014-01-13 2017-04-12 中南大学 Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN104965744A (en) * 2015-07-10 2015-10-07 上海斐讯数据通信技术有限公司 System upgrading method and embedded system
CN105204896A (en) * 2015-09-08 2015-12-30 江苏绿扬电子仪器集团有限公司 BootLoader design method of digital storage oscilloscope
CN105278410A (en) * 2015-10-26 2016-01-27 广东威创视讯科技股份有限公司 Minimum system automatic embedding method, device and system
CN105278410B (en) * 2015-10-26 2018-07-10 广东威创视讯科技股份有限公司 A kind of method, apparatus and system for automatically inserting minimum system
CN105279002B (en) * 2015-11-23 2018-10-26 上海网测通信技术有限公司 Automatically updating method based on System guides file in embedded system
CN107844305A (en) * 2016-09-20 2018-03-27 芯讯通无线科技(上海)有限公司 The method for upgrading software and embedded device of embedded device
CN106878160A (en) * 2017-02-24 2017-06-20 烽火通信科技股份有限公司 Home gateway enters the method and home gateway system of safe mode
CN112882731A (en) * 2021-01-08 2021-06-01 北京锦鸿希电信息技术股份有限公司 Embedded software upgrading method and device
WO2022246958A1 (en) * 2021-05-28 2022-12-01 武汉天喻信息产业股份有限公司 Firmware update method and system for smart device
CN114489702A (en) * 2022-01-29 2022-05-13 北京有竹居网络技术有限公司 Method, device, medium and electronic equipment for installing operating system
CN114489702B (en) * 2022-01-29 2023-09-15 北京有竹居网络技术有限公司 Method, device, medium and electronic equipment for installing operating system

Also Published As

Publication number Publication date
CN100561433C (en) 2009-11-18

Similar Documents

Publication Publication Date Title
CN100561433C (en) Embedded system and upgrade method thereof
CN106990958B (en) Expansion assembly, electronic equipment and starting method
US7441113B2 (en) Method and apparatus for virtualization of appliances
CN101794235B (en) Diskless computer starting method based on operating system network drive
US8171276B2 (en) Minimal startup mode for performing multiple-reboot configuration
CN1648863A (en) Portable software application method
CN104572206A (en) Application program self updating and backup recovery method
US20090217079A1 (en) Method and apparatus for repairing multi-controller system
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN1781091A (en) System and method for virtualizing basic input/output system (BIOS) including BIOS run time services
CN101593120A (en) Be with outer upgrade method and system
CN103677915A (en) Automatic burning method of flash mirror image based on TF starting card
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
WO2007056343A2 (en) Networked linux machine and windows software development system
CN1776619A (en) Method for realizing embedded system run based on start loading programme
CN102262555B (en) Method and device for loading different versions of JAVA three-party library
CN111427624A (en) Method, device and system for batch automatic deployment and configuration of servers
CN103729219A (en) Method and system for framing UEFI BIOS (unified extensible firmware interface basic input/output system)
CN1811708A (en) Method for realizing flash-storage dynamic update of single-chip machine
CN102023857A (en) ServiceOS-based multi-platform application program service management method and system
CN103984572A (en) Method and equipment for realizing computer installation and operating system switch without CD driver
CN104866397A (en) Computer System And Control Method
CN100465894C (en) Class loading method for starting Java Processor
CN101452405A (en) Method for time-sharing using fixed t peripheral device for multiple operating systems
CN102053885A (en) Test system and test method for computer device without storage device

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: 20091118

Termination date: 20170930