Method and system for injecting hotfix into software of embedded system

An embedded system and hot patch technology, which is applied in the direction of program loading/starting, program control devices, etc., can solve the problems of long patch activation process and affecting program operation, and achieve the effect of saving memory space and simplifying operation

Active Publication Date: 2015-07-29
WUHAN FIBERHOME TECHNICAL SERVICES CO LTD
View PDF10 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Utilize this kind of method to realize the error of online repairing software equally, but this way needs to stop the running of all other threads except this thread, wait for the jump instruction sequence that inserts this function to finish and then restore the thread that stopped running, so Using this method will affect the operation of the program, and the process of enabling the patch will take a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for injecting hotfix into software of embedded system
  • Method and system for injecting hotfix into software of embedded system
  • Method and system for injecting hotfix into software of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0046] see figure 1 As shown, the embodiment of the present invention provides a method for injecting hot patches into embedded system software, comprising the following steps:

[0047] S1, jump table reservation: in the software program compilation stage, by modifying the link script of the software program, a number of secondary jump table reserved areas are reserved in each module code segment of the software program (such as figure 2 shown), and define an identifier for the second-level jump table reserved area, which is used to mark the second-level jump table reserved area in the software program; in the patch file compilation stage, by modifying the link script of the patch file, in Several three-level jump table reserved areas are reserved in each module code segment of the patch file, and an identifier is also defined for t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a system for injecting a hotfix into software of an embedded system, and relates to the technical field of software fixes for the embedded system. The method comprises the following steps: reserving a plurality of secondary jump table reserving zones in a software program, and reserving a plurality of tertiary jump table reserving zones in a fix file; distributing a nearest secondary jump instruction storage space for each original function, and distributing a nearest tertiary jump instruction storage space for each fix function; generating a secondary jump instruction sequence for each original function and storing each secondary jump instruction sequence into the corresponding secondary jump instruction storage space, and generating a tertiary jump instruction sequence for each fix function and storing each tertiary jump instruction sequence into the corresponding tertiary jump instruction storage space; finally, modifying the first instruction of each original function into a primary jump instruction. According to the method and the system, the operating of a system program is not influenced, and a compiler is not required to be modified; the memory space waste is low; the fix starting time is short.

Description

technical field [0001] The invention relates to the technical field of embedded system software patches, in particular to a method and system for injecting hot patches into embedded system software. Background technique [0002] Embedded systems are widely used, and embedded systems are used in household DVDs, set-top boxes, switches and routers in communication equipment, etc. Embedded system software plays a pivotal role in embedded systems, and users have high requirements for the continuous running time and stability of embedded system software. If there are general software errors in the embedded system software, using the hot patch technology to modify the software errors online can improve the continuous running time and stability of the software. [0003] At present, there are two main implementation methods for injecting hot patches into embedded system software: [0004] (1) When compiling the program, reserve a certain blank area in front of the first instructio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 刘应江简楹
Owner WUHAN FIBERHOME TECHNICAL SERVICES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products