Supercharge Your Innovation With Domain-Expert AI Agents!

Method for accelerating self-decompression stage of Linux kernel startup

A vmlinux-2, self-extracting technology, applied in the field of Linux system, can solve the problem that vmlinux files cannot be programmed and loaded, and achieve the effect of shortening time and improving efficiency

Pending Publication Date: 2021-05-11
北京君正集成电路股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The generation of vmlinux is the key to compiling the kernel, but the obtained vmlinux file cannot be programmed into flash for execution
The main problem is that there is not an environment to load files in ELF format

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 for accelerating self-decompression stage of Linux kernel startup
  • Method for accelerating self-decompression stage of Linux kernel startup
  • Method for accelerating self-decompression stage of Linux kernel startup

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to understand the technical content and advantages of the present invention more clearly, the present invention will be further described in detail in conjunction with the accompanying drawings.

[0039] The zImage stored in FLASH is decomposed into n blocks, each block can be loaded into RAM independently, after loading the first block, it can be loaded into the RAM zImage block before parallel decompression, such as image 3 shown. The reason why loading and decompression can be performed in parallel is that the loading task is mainly completed by the FLASH controller, and the decompression task is completed by the CPU.

[0040] Such as Figure 5As shown, a method for speeding up the self-extracting phase of Linux kernel booting is provided, including the following steps:

[0041] S1, confirm that the zImage stored in the FLASH is decomposed into n blocks, where n is a positive integer, and usually, n is a positive integer greater than 2 and not too large, ...

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 provides a method for accelerating a self-decompression stage of Linux kernel startup, which comprises the following steps: S1, a splitting step: confirming that zImage stored in FLASH is decomposed into n blocks, n being a positive integer; s2, a loading and parallel decompression step: S2.1, loading a first zImage block (zImage-1) into an RAM (Random Access Memory) from a FLASH; s2.2, loading a second zImage block (zImage-2) into the RAM from the FLASH, and meanwhile, decompressing the first zImage block which is loaded into the RAM and is in the step S2.1 in parallel; ...and so on; S2. n, loading the nth zImage block (zImage-n) into the RAM from the FLASH, and simultaneously, and decompressing the (n-1) th zImage block which is loaded into the RAM and is in the previous step S2. N-1 in parallel; s2. N + 1, decompressing the nth zImage block which is already loaded into the RAM; S3, a file restoration step: a first zImage block (zImage-1), a second zImage block (zImage-2),..., and an nth zImage block (zImage-n) in the RAM being respectively corresponding to vmLinux-1, vmLinux-2,..., and vmLinux-n after being decompressed, and merging and restoring the vmLinux block (zImage-1), the vmLinux block (zImage-2),..., and the vmLinux-n into a vmLinux file; and S4, completing a decompression step: executing the vmLinux file, and completing a self-decompression stage.

Description

technical field [0001] The invention relates to the field of Linux systems, in particular to a method for accelerating the self-extracting stage of Linux kernel startup. Background technique [0002] With the continuous development of science and technology, the application of computer operating systems, especially Linux, is becoming more and more common. Generally speaking, the Linux kernel startup process is to first load all the zImages stored in the FLASH into the RAM through the boot program, then decompress the zImages in the RAM into vmLinux, and finally execute vmLinux, where the loading and decompression are completed serially, such as figure 1 shown. [0003] During the boot process of the Linux kernel, you can generally see such as figure 2 The kernel self-extraction interface is shown, and the following is the kernel self-extraction process. Usually, the kernel compression and decompression codes are in the directory kernel / arch / arm / boot / compressed. After the...

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
IPC IPC(8): G06F9/4401
CPCG06F9/4403Y02D10/00
Inventor 王春雷
Owner 北京君正集成电路股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More