CN101169726A - Embedded type Linux system on-line upgrading method based on MTD partition - Google Patents
Embedded type Linux system on-line upgrading method based on MTD partition Download PDFInfo
- Publication number
- CN101169726A CN101169726A CNA2007101146763A CN200710114676A CN101169726A CN 101169726 A CN101169726 A CN 101169726A CN A2007101146763 A CNA2007101146763 A CN A2007101146763A CN 200710114676 A CN200710114676 A CN 200710114676A CN 101169726 A CN101169726 A CN 101169726A
- Authority
- CN
- China
- Prior art keywords
- file
- dev
- linux system
- mtdblock1
- mtd
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000005192 partition Methods 0.000 title abstract 5
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005465 channeling Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Abstract
The invention provides an embedded Linux system online update method based on a MTD partition. The method comprises firstly building the MTD partition in a Linux system, mounting when the system is started, and assuming the name of a file to be updated is KERNEL_NEW, the partition of the original file is mtdblock1, then realizing online update of the original file in a FLASH chip by using the command of dd if equals to ERNEL_NEW of equals to /dev/null 2 is less than /dev/mtdblock1 and more than &1. The inventive method can simply realize online update of the embedded system by using the MTD partition of the embedded Linux system, and can be widely used in various embedded devices based on the Linux system.
Description
1, technical field
The present invention relates to Computer Applied Technology field or computing machine embedded software technology field, specifically a kind of embedded Linux system upgrade method based on the MTD subregion.
2, background technology
In the Computer Applied Technology field, because the application of the embedded device of employing embedded Linux system is increasingly extensive, how to adopt easy easy-to-use method to carry out the online upgrading of system, be very crucial and important link in the embedded product research and development.Because this is related to all many-sides such as perfect of maintenance cost, the product function performance of life cycle, the product of product.
3, summary of the invention
The purpose of this invention is to provide a kind of embedded Linux system online upgrading method based on the MTD subregion.
Method of the present invention realizes in the following manner, online upgrading method concrete steps are as follows: at first set up the MTD subregion in linux system, and when system start-up, carry out carry, suppose that file to be updated is called KERNEL_NEW, the subregion at original place is mtdblock1, then use dd if=ERNEL_NEWof=/dev/mtdblock1>/dev/null 2>﹠amp; 1 order realizes the renewal of original in the FLASH chip.
The invention has the beneficial effects as follows that this method can realize the online upgrading of system with very easy method under the prerequisite that does not influence system's operate as normal.
4, embodiment
A kind of embedded Linux system online upgrading method of the present invention based on the MTD subregion.The concrete steps method is at first to need to set up the MTD subregion that is used to deposit linux kernel and file system when system start-up in FLASH.MTD subregion among the FLASH is that the known technology in the LINUX system can realize with comparalive ease.Original system is just by depositing in kernel and file system channeling conduct and the loading in these MTD subregions.After system start-up, the file that upgrade downloads in the local temporary files folder by network mode or is present in the server such as FTP.The present invention is an example with the KERNEL_NEW file that is stored in below the local root catalogue, establish the MTD subregion that is updated the file place and be mtdblock1 then use dd if=/KERNEL_NEW of=/dev/mtdblock1>/dev/null 2>﹠amp; 1 order can realize the renewal of original in the FLASH chip.
File layout to be updated is disk mirroring file layout, various root file system form.
Dd if=ERNEL_NEW of=/dev/mtdblock1>/dev/null 2>﹠amp; The execution of 1 order is compiled in the executable file and moves by command line mode, Linux shell script file.
The explanation of key code statement
Of the present invention as follows for realizing at the employed key order statement of system update function:
dd?if=/KERNEL_NEW?of=/dev/mtdblock1>/dev/null?2>&1
Wherein dd is the standard commands of linux system, is used for input equipment or file with appointment, copies in output device or the file.Wherein if is used to specify input equipment or file, and of is used to specify output device or file.To be appointed as file to be updated among the if just in the present invention, of is appointed as the online updating that the FLASH subregion that is updated has been realized system, and the back increases the output redirection statement, be used to shield unwanted information.
Claims (3)
1. based on the embedded Linux system online upgrading method of MTD subregion, it is characterized in that concrete steps are as follows: at first in linux system, set up the MTD subregion, and when system start-up, carry out carry, suppose that file to be updated is called KERNEL_NEW, the subregion at original place is mtdblock1, then use dd if=ERNEL_NEWof=/dev/mtdblock1>/dev/null 2>﹠amp; 1 order realizes the online upgrading of original in the FLASH chip.
2. method according to claim 1 is characterized in that file layout to be updated is disk mirroring file layout, various root file system form.
3. method according to claim 1, it is characterized in that dd if=ERNEL_NEWof=/dev/mtdblock1>/dev/null 2>﹠amp; The execution of 1 order is to be compiled in the executable file and to move by command line mode, Linux shell script file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101146763A CN101169726A (en) | 2007-11-28 | 2007-11-28 | Embedded type Linux system on-line upgrading method based on MTD partition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101146763A CN101169726A (en) | 2007-11-28 | 2007-11-28 | Embedded type Linux system on-line upgrading method based on MTD partition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101169726A true CN101169726A (en) | 2008-04-30 |
Family
ID=39390365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101146763A Pending CN101169726A (en) | 2007-11-28 | 2007-11-28 | Embedded type Linux system on-line upgrading method based on MTD partition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101169726A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102200919A (en) * | 2010-03-25 | 2011-09-28 | 深圳市先阳软件技术有限公司 | Method and device for starting operation of embedded operation system |
CN102298531A (en) * | 2011-09-08 | 2011-12-28 | 北京傲天动联技术有限公司 | Method for upgrading flash memory file system in embedded system |
CN102707980A (en) * | 2012-05-29 | 2012-10-03 | 深圳市共进电子股份有限公司 | Embedded product customization method based on MTD partition |
CN105005491A (en) * | 2015-08-11 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | Linux kernel and application program upgrading method and system |
CN105094913A (en) * | 2015-07-31 | 2015-11-25 | 广东欧珀移动通信有限公司 | System, base band fastener and system application upgrading method and device |
CN103853496B (en) * | 2012-11-28 | 2017-02-22 | 华为技术有限公司 | Method and device for hooking various devices in same memory technology device partition |
-
2007
- 2007-11-28 CN CNA2007101146763A patent/CN101169726A/en active Pending
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102200919A (en) * | 2010-03-25 | 2011-09-28 | 深圳市先阳软件技术有限公司 | Method and device for starting operation of embedded operation system |
CN102200919B (en) * | 2010-03-25 | 2013-12-25 | 深圳市先阳软件技术有限公司 | Method and device for starting operation of embedded operation system |
CN102298531A (en) * | 2011-09-08 | 2011-12-28 | 北京傲天动联技术有限公司 | Method for upgrading flash memory file system in embedded system |
CN102298531B (en) * | 2011-09-08 | 2014-08-06 | 北京傲天动联技术股份有限公司 | Method for upgrading flash memory file system in embedded system |
CN102707980A (en) * | 2012-05-29 | 2012-10-03 | 深圳市共进电子股份有限公司 | Embedded product customization method based on MTD partition |
CN102707980B (en) * | 2012-05-29 | 2015-05-27 | 深圳市共进电子股份有限公司 | Embedded product customization method based on MTD partition |
CN103853496B (en) * | 2012-11-28 | 2017-02-22 | 华为技术有限公司 | Method and device for hooking various devices in same memory technology device partition |
CN105094913A (en) * | 2015-07-31 | 2015-11-25 | 广东欧珀移动通信有限公司 | System, base band fastener and system application upgrading method and device |
CN105094913B (en) * | 2015-07-31 | 2018-06-15 | 广东欧珀移动通信有限公司 | System, base band firmware and system application upgrade method and device |
CN105005491A (en) * | 2015-08-11 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | Linux kernel and application program upgrading method and system |
CN105005491B (en) * | 2015-08-11 | 2018-06-29 | 上海斐讯数据通信技术有限公司 | The upgrade method and system of a kind of linux kernel and application program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10592229B1 (en) | Method and system for restoring software | |
EP3488337B1 (en) | Shared software libraries for computing devices | |
EP3336690B1 (en) | Extensible data transformation authoring and validation system | |
US9280336B2 (en) | Virtual machine disk image installation | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
CN109739523B (en) | Application program packaging method and device, storage medium and terminal | |
US8997085B2 (en) | Image delta-based upgrade of complex stack in software appliance | |
WO2005020089A1 (en) | Servicing a component-base software product | |
EP2877919A1 (en) | System updates from cloud blob storage using vhd differentials | |
CN102609328A (en) | System difference upgrade method and device and mobile terminal | |
CN102955702A (en) | Method and device for installing and upgrading software | |
CN101169726A (en) | Embedded type Linux system on-line upgrading method based on MTD partition | |
CN103530150A (en) | Remote updating method for Linux operating system | |
CN101515238A (en) | Method for automatically installing or uninstalling application software of computers and a device thereof | |
CN107977218A (en) | Code update method, device, electronic equipment and readable storage medium storing program for executing | |
EP2805233B1 (en) | Installation engine and package format for parallelizable, reliable installations | |
CN105426208A (en) | OpenStack offline automatic installation method of cloud computing system | |
US11132259B2 (en) | Patch reconciliation of storage nodes within a storage cluster | |
CN104111843A (en) | Sandbox based script updating method and system | |
CN104484207A (en) | Mirror image upgrading method for switch, linux operation system and switch | |
CN108376074B (en) | RancherOS ros core module transplanting method based on embedded system | |
CN104809021A (en) | Management system and management method for multiple operation environment service | |
CN103530151A (en) | Customization method of Linux operating system capable of switching service software systems | |
CN110806876B (en) | Lightweight Linux system customization method based on slit, device computer equipment and storage medium | |
JP2014164545A (en) | Deployment method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |