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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com