LINUX inner core dynamic loading method

A dynamic loading and kernel technology, applied in the direction of program loading/starting, multi-programming device, program control device, etc., can solve the problems of poor adaptability, single function, long process, etc., achieve strong adaptability, improve management functions, improve The effect of efficiency

Inactive Publication Date: 2008-12-17
ZTE CORP
View PDF0 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the aforementioned BootLoaders often have relatively single functions, so there are many limitations in actual use, which are mainly reflected in the following aspects:
[0004] (1) When the device wants to update the LINUX kernel version, it needs to be restarted, and then run BootLoader to reload the new LINUX kernel after power-on, and some devices take a long time to initialize after power-on, which makes the whole process longer;
[0005] (2) At present, most BootLoaders have relatively single functions, few programming interfaces, and do not support multi-task programming and interrupt processing methods. In most cases, polling methods are used to process sequentially. In this way, it is difficult for users to program when developing their own functions on it. ;
[0006] (3) The support for device drivers is not comprehensive. For example, the support for communication devices is relatively limited, and usually they only support common devices such as serial ports and network cards;
[0007] (4) The support for the communication protocol is limited, and the use of the usual BootLoader to obtain the LINUX kernel version from the outside world will be subject to many restrictions
[0008] Based on the foregoing, it can be seen that the current use of BOOTLAODER loading technology to update the LINUX kernel is slow, has a single function, and has poor adaptability. Therefore, it is undoubtedly ideal to provide a method for quickly and effectively switching the LINUX kernel for embedded devices. of

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
  • LINUX inner core dynamic loading method
  • LINUX inner core dynamic loading method
  • LINUX inner core dynamic loading method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In this embodiment, a method for dynamically loading the LINUX kernel is provided. The following will take the X86 series as an example (currently, X86 CPUs are widely used in embedded devices, which often do not have storage devices such as hard disks, and due to the characteristics of telecommunications equipment, system devices often need to update system software).

[0025] like figure 1 As shown, the LINUX kernel dynamic loading method according to the present embodiment includes the following processing: Step S102, reserve memory space (this space will not be occupied by the existing LINUX kernel) in the system running the existing LINUX kernel, for loading new LINUX Kernel image and relocation program image; Step S104, when needing to replace the existing LINUX kernel in operation, new LINUX kernel image and relocation program image are saved to reserved memory space, therefore avoided when switching LINUX kernel Caused damage, while avoiding occupying the exter...

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 relates to a dynamic loading method for a LINUX kernel. The method comprises the following steps: Step S102, a memory space is reserved in the system for running the prior LINUX kernel, and used for loading a new LINUX kernel image and a relocatable program image; Step S104, when the prior LINUX kernel in the operation is required to be replaced, the new LINUX kernel image and the relocatable program image are put into the reserved memory space; Step S106, the prior LINUX kernel in the operation is stopped, the outside request is not responded any more, and the system control right is given to the relocatable program; Step S108, the new LINUX kernel image is moved to the memory location of a designated system through the relocatable program, so as to cover the prior LINUX kernel image, and the boot parameters of the new LINUX kernel are set; and Step S110, the new LINUX kernel is started, and the system control right is taken over by the started new LINUX kernel.

Description

technical field [0001] The present invention relates to a method for dynamically updating a LINUX kernel based on an embedded LINUX system device, and in particular relates to a technique for dynamically loading and switching to another LINUX kernel using running LINUX. Background technique [0002] At present, LINUX has been used in a large number of embedded systems. These devices often need to upgrade the LINUX kernel when they are used. Currently, loading and updating the LINUX kernel version is usually completed by the corresponding BootLoader (boot loader), which usually requires the running Reboot the device and run BootLoader to reload the new LINUX kernel version. [0003] However, the aforementioned BootLoaders often have relatively single functions, so there are many limitations in actual use, which are mainly reflected in the following aspects: [0004] (1) When the device wants to update the LINUX kernel version, it needs to be restarted, and then run BootLoade...

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/445G06F9/46
Inventor 徐强
Owner ZTE CORP
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