Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for supporting multiple DTBs in single Linux system mirror image

A technology of system mirroring and mirroring, which is applied in the field of computer communication and can solve problems such as uneconomical

Active Publication Date: 2019-06-07
FENGHUO COMM SCI & TECH CO LTD
View PDF22 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is not economical either from a product development perspective or from a product maintenance perspective

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 supporting multiple DTBs in single Linux system mirror image
  • Method and system for supporting multiple DTBs in single Linux system mirror image
  • Method and system for supporting multiple DTBs in single Linux system mirror image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] see figure 1 As shown, the embodiment of the present invention provides a method for supporting multiple DTBs in a single Linux system image, including:

[0051] Integrate multiple different DTB files into one DTB integrated file (ie figure 1 DEV.DTB in the file), the DTB integration file and the Linux system image image containing all product drivers under the same Linux system image version are packaged into a Linux system image file (ie figure 1 Linux.kernel.Image in);

[0052] When the boot program (Uboot or bootloader, etc.) starts, the DTB file corresponding to each product is loaded by modifying the boot program code.

[0053] The invention integrates a plurality of different DTB files into a unified DTB integration file, and packs the Linux system image files with the Linux system image images containing all product drivers under the same Linux system image version to form a Linux system image file. When the boot program boots the system, multiple products us...

Embodiment 2

[0055] On the basis of embodiment 1, see figure 2 As shown, the integration of multiple different DTB files into one DTB integration file specifically includes the following steps:

[0056] Use the DTC tool to compile and generate DTB files for multiple products;

[0057] Use a script tool to fill each generated DTB file into a file of a set size.

[0058] Use a script to merge multiple DTB files with a set size into a DTB integrated file with a set size of n*, where n is the total number of DTB files.

[0059] Since common storage media such as flash use n*32K bytes as a sector unit, considering that DTB files are generally not larger than 50K bytes, use script tools to fill each generated DTB file into a 64K file , or use the DTC tool to specify that the DTB file size is 64K bytes when generating the DTB file;

[0060] When using a script tool to fill each generated DTB file into a 64K file, the actual size of the device tree file can be obtained from the file's own attr...

Embodiment 3

[0068] On the basis of embodiment 1, see image 3 As shown, when the boot program starts, the DTB file corresponding to each product is loaded by modifying the boot program code, which specifically includes the following steps:

[0069] Determine whether there is a product identification mechanism (FPGA identification or DIP switch identification, etc.);

[0070] The FPGA identification process is: the designated register of the FPGA stores the product identification code that has been pre-burned. When the boot program starts, the CPU accesses the designated register of the FPGA through the designated interface (Local Bus or SPI, etc.) communicating with the FPGA, reads the product identification code, and loads the corresponding DTB file according to the identification code.

[0071] The identification process of the DIP switch is as follows: the DIP switch can be equivalent to a set of resistors whose setting value can be changed, and a product corresponds to a set of fixed...

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 supporting multiple DTBs in a single Linux system mirror image, and relates to the technical field of computer communication. According to the method,a plurality of different DTB files are integrated into a unified DTB integrated file, and the DTB integrated file and the Linux system mirror image containing all product drivers under the same Linuxsystem mirror image version are packaged into the Linux system mirror image file. The invention discloses a method for booting a program boot system. A plurality of products use the same Linux systemmirror image file, and the corresponding DTB file is loaded through the corresponding strategy, so that a plurality of different DTB files are supported in the same Linux system mirror image, and thepurpose that a plurality of products uniformly use one Linux system mirror image is achieved.

Description

technical field [0001] The invention relates to the technical field of computer communication, in particular to a method and system for supporting multiple DTBs in a single Linux system image. Background technique [0002] Device tree (Device tree) is a set of rules used to describe the hardware genus in the Linux system. It describes the parameters of the target hardware in a tree data structure; DTS (Device tree syntax) is the source file of the device tree, which uses text format; and DTB (Device tree blob) is a binary file compiled from a DTS file, which is programmed into a storage medium. DTC (Device treecompiler) is a small tool responsible for converting DTS into DTB (Devicetreeblob). When the Linux system starts, the boot program (for example: Uboot, bootloader) reads the DTB file into the memory before starting the Linux system image, jumps to the Linux system image for execution, and passes the DTB start address to the system image . The Linux system image can ...

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/4401G06F8/41
Inventor 张彤李炎涛
Owner FENGHUO COMM SCI & TECH CO LTD
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