Multi-dts (Device Tree Source)-file supporting method, compilation device and embedded device
An embedded device and file technology, applied in the embedded field, can solve problems such as inconvenient version management, and achieve the effect of solving the inconvenience of version management
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] The present invention provides a method for supporting multiple dts files, referring to figure 1 , including the following steps:
[0036] S101. Obtain N dts files.
[0037] Specifically, all N dts files in the folder are traversed in the script to obtain N dts files and their file names, wherein each dts file corresponds to a device model. For example, suppose there are three dts files under the file, including board1.dts, board2.dts and board3.dts, where board1.dts corresponds to the device model board1, board2.dts corresponds to the device model board2, and board3.dts corresponds to the device Model board3.
[0038] S102. Compile the N dts files respectively to generate N dtb files, wherein each dts file is compiled into a dtb file.
[0039] Specifically, each dts file in the N dts files is compiled into a dtb file by using a DTC tool in the script. For example, compile board1.dts to board1.dtb, board2.dts to board2.dtb, and board3.dts to board3.dtb.
[0040] Be...
Embodiment 2
[0062] The present invention provides a compiling device 11, which is used for the above-mentioned multi-dts file support method, refer to image 3 As shown, the device includes:
[0063] An acquisition unit 111, configured to acquire N device tree source dts files, wherein each dts file corresponds to a device model;
[0064] The compiling unit 112 is configured to compile the N dts files acquired by the acquiring unit 111 to generate N device tree binary dtb files, wherein each dts file is compiled into a dtb file;
[0065] A creation unit 113, configured to create an assembly file;
[0066] The adding unit 114 is used to add the N dtb files generated by the compiling unit 112 to the assembly file created by the creating unit 113;
[0067] The compiling unit 112 is also used to compile the assembly file after adding N dtb files to the adding unit 114 to generate a dtb target file;
[0068] The compiling unit 112 is also used to compile the dtb object file and the universa...
Embodiment 3
[0078] The present invention provides an embedded device 12, which is used for the above-mentioned multi-dts file support method, refer to Figure 4 As shown, the device includes:
[0079] The loading unit 121 is used to load the binary bin file of the universal boot loader uboot into the memory, wherein the bin file of uboot is generated by compiling the device tree binary dtb target file and the uboot source code by the compiling device, and the dtb target file is compiled by the compiling device The assembly file is compiled and generated, and the assembly file includes N dtb files, and each dtb file is generated by compiling a device tree source dts file by a compiling device, and each dts file corresponds to a device model.
[0080] The obtaining unit 122 is configured to obtain the corresponding dtb file from the internal memory according to the current device model.
[0081] The delivery unit 123 is configured to deliver the dtb file acquired by the acquisition unit to...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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



