CN109254727A - A kind of self-regeneration method of embedded device - Google Patents

A kind of self-regeneration method of embedded device Download PDF

Info

Publication number
CN109254727A
CN109254727A CN201810947104.1A CN201810947104A CN109254727A CN 109254727 A CN109254727 A CN 109254727A CN 201810947104 A CN201810947104 A CN 201810947104A CN 109254727 A CN109254727 A CN 109254727A
Authority
CN
China
Prior art keywords
self
regeneration
file
embedded device
network
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
CN201810947104.1A
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.)
Guangdong Unionman Technology Co Ltd
Original Assignee
Guangdong Unionman 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 Guangdong Unionman Technology Co Ltd filed Critical Guangdong Unionman Technology Co Ltd
Priority to CN201810947104.1A priority Critical patent/CN109254727A/en
Publication of CN109254727A publication Critical patent/CN109254727A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Abstract

The present invention relates to embedded device technology fields, specifically disclose a kind of self-regeneration method of embedded device, comprising the following steps: establish P2P network using index server as source node in advance;Open embedded device;Judge whether subregion has been damaged, if so then execute next step, if otherwise guiding os starting;Self-regeneration file is downloaded by the P2P network and carries out self-regeneration.A kind of self-regeneration method of embedded device provided by the invention, in the case where subregion damage or operating system cannot start, using P2P network share mode, reparation file required for damage subregion is obtained by each node of its network service in P2P network and repairs subregion, it does not need locally keeping complete reparation file in advance, it avoids bringing additional unnecessary expense, save the cost.

Description

A kind of self-regeneration method of embedded device
Technical field
The present invention relates to embedded device technology field more particularly to a kind of self-regeneration methods of embedded device.
Background technique
Existing embedded device, especially embedded Android device, the partition holding of file are broadly divided into following a few classes:
(1) bootloader subregion
Bootloader is stored in nor flash, can directly be accessed by cpu, and the starting of guidance system is responsible for.
(2) kernel subregion
The kernel (kernel) of operating system is independently stored in a subregion.But it is identical with following all subregions, all It is stored using nand flash.
(3) system subregion
System subregion is responsible for storing all system files other than operating system nucleus, contains Android use Family interface and preassembled system application.Android system will be deleted by erasing this subregion, need to enter Recovery mode or bootloader mode go to be brushed again into firmware.
(4) recovery subregion
Recovery subregion is considered as another boot partition, can star equipment and enters recovery console and goes to hold The advanced system of row restores and management operation.
(5) other data subregions
Including data subregion, cache partitions, sd card subregion etc., the damage of these subregions will lead to loss of data, but not It will affect the starting of operating system.
Embedded Android system is bigger, is limited to cost reason, often deposits in nand flash, but nand The safety of flash is not very reliable, will appear subregion damage once in a while and system the case where can not starting.In this case Need to reinstall operating system, implementation mainly there are following a few classes:
(1) online upgrading
Process: upgrade package is obtained by network, saves it in local, reboots into upgrade mode, decompresses upgrade package, is used File therein replaces former local file.
Advantage: easy to operate, bandwidth consumption is small.
Disadvantage: it is required that operating system and network environment are normal.
(2) pass through recovery installing firmware
Process: being downloaded complete firmware by user manually, and preservation is brushed to local into recovery into firmware.
Advantage: can be with prosthetic appliance in the case where operating system is not normally functioning.
Disadvantage: needing user to download firmware manually, consumes to server bandwidth big.And require subregion that cannot damage.
(3) computer controls burning
Process: being downloaded complete firmware by user manually, is saved to computer, is connected equipment, pass through special burn recording software It brushes into firmware.
Advantage: can be with prosthetic appliance in the case where subregion damage.
Disadvantage: needing user to download firmware manually, consumes to server bandwidth big.And it is cumbersome.
But these three mainstream autonomous repair technologies require locally keeping complete firmware in advance, but also bring along volume Outer unnecessary expense, increases the cost of product.
Summary of the invention
The technical issues of present invention provides a kind of self-regeneration method of embedded device, solution be, existing embedded to set Standby the autonomous repair technology of use requires locally keeping complete firmware in advance in the case where subregion damage, brings Additional unnecessary expense, increases the cost of product.
In order to solve the above technical problems, the present invention provides a kind of self-regeneration method of embedded device, including following step It is rapid:
S1. P2P network is established using index server as source node in advance;
S2. embedded device is opened;
S3. judge whether subregion has been damaged, if so then execute next step, if otherwise guiding os starting;
S4. self-regeneration file is downloaded by the P2P network and carries out self-regeneration.
Further, the step S1 is specifically included:
S1-1. index server is established, for providing TFTP service;
S1-2. the index server is built into P2P framework as source node, shared terminal as non-source node DHT network.
Further, the step S4 is specifically included:
S4-1. it connects the index server and the P2P network is added, become one of node;
S4-2. the node that the shared subfile for having the self-regeneration file is found in the P2P network, is enjoyed together The node of the subfile establishes connection and downloads the self-regeneration file;
S4-3. it parses the self-regeneration file and carries out self-regeneration.
Further, the step S4-2 is specifically included:
S4-21. it is searched and the self-regeneration in the shared file in the non-source node by TFTP service The subfile that file matches;
S4-22. the non-source node for enjoying the subfile together establishes downloading connection, and starts to download;
S4-23. judge whether the subfile required for the self-regeneration file all can be from the non-source node Middle downloading, if then the subfile of downloading is stored in same memory;If otherwise found in the source node it is described self The remaining subfile of file is repaired, is stored in after downloading in the same memory;
S4-24. confirm whether comprising all subfiles in the self-regeneration file in the same memory, if then Exit the TFTP service;If otherwise returning to the step S4-21, until confirm in the same memory comprising it is described self All subfiles in file are repaired, and TFTP described in backed off after random is serviced.
Further, the step S4-3 is specifically included:
S4-31. nand flash subarea is formatted;
S4-32. subregion is written into the self-regeneration file in the same memory;
S4-33. the os starting of the self-regeneration file is written in guidance.
Further, in the step S4-1, the index server is connected specifically: the rope is obtained by DNS The IP address for drawing server establishes connection by accessing the IP address and the index server.
The self-regeneration method of a kind of embedded device provided by the invention, especially suitable for embedded Android device.
A kind of self-regeneration method of embedded device provided by the invention cannot be opened in subregion damage or operating system In the case where dynamic, using P2P network share mode, damage subregion is obtained by each node of its network service in P2P network Required reparation file simultaneously repairs subregion, does not need locally keeping complete reparation file in advance, avoids bringing additional Unnecessary expense, save the cost.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the self-regeneration method of embedded device provided in an embodiment of the present invention;
Fig. 2 is the Node distribution schematic diagram of P2P network in the embodiment of the present invention;
Fig. 3 is the work flow diagram that embedded device downloads self-regeneration file by P2P network in the embodiment of the present invention;
Fig. 4 is the work flow diagram that embedded device carries out self-examination and self-regeneration in the embodiment of the present invention.
Specific embodiment
Embodiments of the present invention are specifically illustrated with reference to the accompanying drawing, embodiment is only given for illustrative purposes, It can not be interpreted as limitation of the invention, including attached drawing is only for reference and illustrates use, not constitute and the invention patent is protected The limitation of range, because on the basis of not departing from spirit and scope of the invention many changes can be carried out to the present invention.
A kind of self-regeneration method of embedded device provided in an embodiment of the present invention, steps flow chart is as shown in Figure 1, packet Include following steps:
S1. P2P network is established using index server as source node in advance;
S2. embedded device is opened;
S3. judge whether subregion has been damaged, if so then execute next step, if otherwise guiding os starting;
S4. self-regeneration file is downloaded by the P2P network and carries out self-regeneration.
Further, the step S1 is specifically included:
S1-1. index server is established, for providing TFTP service;
S1-2. the index server is built into P2P framework as source node, shared terminal as non-source node DHT network.
The network architecture such as Fig. 2 of the DHT network, wherein A represents source node, and B represents non-source node, rather than source node packet Include other embedded Android devices and other application equipment.
Further, the step S4 is specifically included:
S4-1. it connects the index server and the P2P network is added, become one of node;
S4-2. the node that the shared subfile for having the self-regeneration file is found in the P2P network, is enjoyed together The node of the subfile establishes connection and downloads the self-regeneration file;
S4-3. it parses the self-regeneration file and carries out self-regeneration.
Further, the step S4-2 is specifically included:
S4-21. it is searched and the self-regeneration in the shared file in the non-source node by TFTP service The subfile that file matches, according to the hardware information of non-source node (with the embedded Android device of money, shared FileVersion with It is identical that file is repaired required for the application) judge whether the file that the node is shared matches with itself;
S4-22. the non-source node (Peers in Fig. 3) for enjoying the subfile together establishes downloading connection, and opens Begin to download;
S4-23. judge whether the subfile required for the self-regeneration file all can be from the non-source node Middle downloading, if then the subfile of downloading is stored in same memory;If otherwise found in the source node it is described self The remaining subfile of file is repaired, is stored in after downloading in the same memory;
S4-24. confirm whether comprising all subfiles in the self-regeneration file in the same memory, if then Exit the TFTP service;If otherwise returning to the step S4-21, until confirm in the same memory comprising it is described self All subfiles in file are repaired, and TFTP described in backed off after random is serviced.
Further, the step S4-3 is specifically included:
S4-31. nand flash subarea is formatted;
S4-32. subregion is written into the self-regeneration file in the same memory;
S4-33. the os starting of the self-regeneration file is written in guidance.
Further, in the step S4-1, the index server is connected specifically: the rope is obtained by DNS The IP address for drawing server establishes connection by accessing the IP address and the index server.
A kind of self-regeneration method of embedded device provided in an embodiment of the present invention, sets especially suitable for embedded Android It is standby, because of its special partitioned organization.
It is the workflow that embedded device downloads self-regeneration file by P2P network in the embodiment of the present invention referring to Fig. 3 Cheng Tu can have clearer understanding to the file download during the self-regeneration of the application.
It referring to fig. 4, is the work flow diagram of embedded device progress self-examination and self-regeneration in the embodiment of the present invention. Fig. 1 combination Fig. 4, which can clearly show after whether the inspection subregion of embedded Android device from the beginning damages damage, to carry out The process of self-regeneration.
The self-regeneration method of a kind of embedded device provided in an embodiment of the present invention, in subregion damage or operating system In the case where cannot starting, using P2P network share mode, damage is obtained by each node of its network service in P2P network File is repaired required for bad subregion and repairs subregion, is not needed locally keeping complete reparation file in advance, is avoided band Come additional unnecessary expense, save the cost.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention, It should be equivalent substitute mode, be included within the scope of the present invention.

Claims (7)

1. a kind of self-regeneration method of embedded device, which comprises the following steps:
S1. P2P network is established using index server as source node in advance;
S2. embedded device is opened;
S3. judge whether subregion has been damaged, if so then execute next step, if otherwise guiding os starting;
S4. self-regeneration file is downloaded by the P2P network and carries out self-regeneration.
2. a kind of self-regeneration method of embedded device as described in claim 1, it is characterised in that: the step S1 is specific Include:
S1-1. index server is established, for providing TFTP service;
S1-2., the index server is built into the DHT net of P2P framework as source node, shared terminal as non-source node Network.
3. a kind of self-regeneration method of embedded device as claimed in claim 2, which is characterized in that the step S4 is specific Include:
S4-1. it connects the index server and the P2P network is added, become one of node;
S4-2. the node that the shared subfile for having the self-regeneration file is found in the P2P network is enjoyed described together The node of subfile establishes connection and downloads the self-regeneration file;
S4-3. it parses the self-regeneration file and carries out self-regeneration.
4. a kind of self-regeneration method of embedded device as claimed in claim 3, which is characterized in that the step S4-2 tool Body includes:
S4-21. it is searched and the self-regeneration file in the shared file in the non-source node by TFTP service The subfile to match;
S4-22. the non-source node for enjoying the subfile together establishes downloading connection, and starts to download;
S4-23. judge whether the subfile required for the self-regeneration file all can be under in the non-source node It carries, if then the subfile of downloading is stored in same memory;If otherwise finding the self-regeneration in the source node File remaining subfile is stored in the same memory after downloading;
S4-24. confirm whether comprising all subfiles in the self-regeneration file in the same memory, if then exiting The TFTP service;It include the self-regeneration in the same memory until confirming if otherwise returning to the step S4-21 All subfiles in file, and TFTP described in backed off after random is serviced.
5. a kind of self-regeneration method of embedded device as claimed in claim 4, which is characterized in that the step S4-3 tool Body includes:
S4-31. nand flash subarea is formatted;
S4-32. subregion is written into the self-regeneration file in the same memory;
S4-33. the os starting of the self-regeneration file is written in guidance.
6. a kind of self-regeneration method of embedded device as claimed in claim 3, which is characterized in that in the step S4-1 In, connect the index server specifically: the IP address that the index server is obtained by DNS, by accessing the IP Address and the index server establish connection.
7. a kind of self-regeneration method of embedded device as described in claim 1, it is characterised in that: be suitable for embedded peace Tall and erect equipment.
CN201810947104.1A 2018-08-20 2018-08-20 A kind of self-regeneration method of embedded device Pending CN109254727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810947104.1A CN109254727A (en) 2018-08-20 2018-08-20 A kind of self-regeneration method of embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810947104.1A CN109254727A (en) 2018-08-20 2018-08-20 A kind of self-regeneration method of embedded device

Publications (1)

Publication Number Publication Date
CN109254727A true CN109254727A (en) 2019-01-22

Family

ID=65049387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810947104.1A Pending CN109254727A (en) 2018-08-20 2018-08-20 A kind of self-regeneration method of embedded device

Country Status (1)

Country Link
CN (1) CN109254727A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582891A (en) * 2009-06-19 2009-11-18 杭州华三通信技术有限公司 Wide area network endpoint access domination (EAD) authentication method, system and terminal
CN103970564A (en) * 2014-04-23 2014-08-06 京信通信系统(中国)有限公司 Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN106257417A (en) * 2015-06-17 2016-12-28 中兴通讯股份有限公司 Bootstrap upgrade method, embedded device, control equipment and embedded system
US20170160969A1 (en) * 2012-12-21 2017-06-08 Commvault Systems, Inc. Systems and methods to confirm replication data accuracy for data backup in data storage systems
CN107979498A (en) * 2018-01-03 2018-05-01 深圳市吉祥腾达科技有限公司 A kind of mesh network clusters and the big document transmission method based on the cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582891A (en) * 2009-06-19 2009-11-18 杭州华三通信技术有限公司 Wide area network endpoint access domination (EAD) authentication method, system and terminal
US20170160969A1 (en) * 2012-12-21 2017-06-08 Commvault Systems, Inc. Systems and methods to confirm replication data accuracy for data backup in data storage systems
CN103970564A (en) * 2014-04-23 2014-08-06 京信通信系统(中国)有限公司 Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN106257417A (en) * 2015-06-17 2016-12-28 中兴通讯股份有限公司 Bootstrap upgrade method, embedded device, control equipment and embedded system
CN107979498A (en) * 2018-01-03 2018-05-01 深圳市吉祥腾达科技有限公司 A kind of mesh network clusters and the big document transmission method based on the cluster

Similar Documents

Publication Publication Date Title
CN102129375B (en) Method and equipment for system upgrade of mobile terminal
CN107247603A (en) Support the remote upgrade method and system of firmware auto restore facility
CN110347414A (en) Firmware update, device, equipment and computer readable storage medium
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
US20070245134A1 (en) Testing device and testing method for computer
CN104915226B (en) A kind of network device software starting method, apparatus and the network equipment
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
US9547345B2 (en) System and method for safely updating thin client operating system over a network
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN103384208B (en) The upgrade-system of the ONU equipment in EPON system and upgrade method
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
CN109144532B (en) Upgrading method and device
CN106250196A (en) The method updating vehicle-mounted boot loader by CAN communication
US20130007724A1 (en) Firmware repairable customer premises equipment and firmware repairing method thereof
WO2017000567A1 (en) Bootrom upgrading method and device
CN107566169A (en) A kind of firmware upgrade method and router based on openwrt
CN106598576A (en) Equipment parameter updating method and device based on squashfs read-only file
CN108984198A (en) A kind of upgrade method and device of android system
CN106201584B (en) Version upgrading method and terminal device
CN110474793A (en) A kind of upgrade method and device of the network equipment
CN104699499A (en) Heterogeneous terminal software upgrading method
US20030018865A1 (en) Disablement of a write filter stored on a write-protected partition
CN103064692A (en) Firmware update method and firmware update device
CN109375953A (en) A kind of os starting method and device
CN109254727A (en) A kind of self-regeneration method of embedded device

Legal Events

Date Code Title Description
PB01 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122