CN115878197A - Starting optimization method, system, chip, device and medium based on device tree - Google Patents

Starting optimization method, system, chip, device and medium based on device tree Download PDF

Info

Publication number
CN115878197A
CN115878197A CN202211430240.6A CN202211430240A CN115878197A CN 115878197 A CN115878197 A CN 115878197A CN 202211430240 A CN202211430240 A CN 202211430240A CN 115878197 A CN115878197 A CN 115878197A
Authority
CN
China
Prior art keywords
file
dts
dts file
overlay
dtb
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211430240.6A
Other languages
Chinese (zh)
Inventor
黄蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Nanjing Co Ltd
Original Assignee
Spreadtrum Semiconductor Nanjing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Semiconductor Nanjing Co Ltd filed Critical Spreadtrum Semiconductor Nanjing Co Ltd
Priority to CN202211430240.6A priority Critical patent/CN115878197A/en
Publication of CN115878197A publication Critical patent/CN115878197A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a starting optimization method, a system, a chip, equipment and a medium based on an equipment tree, wherein the starting optimization method comprises the steps of obtaining a DTS file and an Overlay DTS file corresponding to a target object; merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to a target object; the invention completes the operation of combining the DTB file and the DTBO file in the prior art before compiling in advance, does not need to compile the DTS file and the Overlay DTS file, but directly combines the source DTS file and the Overlay DTS file instead of combining the DTB and the DTBO which are compiled products corresponding to the DTS and the Overlay DTS, optimizes the starting process of the system, and achieves the effects of reducing the size of a version product and the starting time.

Description

Starting optimization method, system, chip, device and medium based on device tree
Technical Field
The present invention relates to the field of operating system technologies, and in particular, to a method, a system, a chip, a device, and a medium for device tree-based boot optimization.
Background
DT (Device Tree) is a data structure for describing various hardware on the board level Device, and the hardware can be understood as any physical Device or Device on the board level Device, such as a hard disk, a mouse, a chip, a CPU (central processing unit), and the like. A file describing a Device Tree is called DTS (Device Tree Source code), which is a description method of hardware information, and replaces a hardware code (hard code) in the Source code, and the DTS file adopts a Tree structure to describe a board level Device, that is, to develop Device information on a board, such as the number of CPUs, a memory base address, which devices are connected to an Inter-Integrated Circuit (IIC) Interface, which devices are connected to an SPI (Serial Peripheral Interface) Interface, and the like. The device tree is partitioned into a primary DT, which includes SOC common and default configurations provided by an SOC (System on Chip) provider, and an overlay DT, also known as an extended DT, which is a device-specific configuration provided by an Original Design Manufacturer (ODM)/Original Equipment Manufacturer (OEM).
Under embedded Linux (an operating system), a Device Tree (DT) is used to describe various resources of a hardware platform, and a Linux kernel parses the device tree during a boot process to obtain various hardware resources to initialize hardware. The extended device tree source code (Overlay DTS) may dynamically modify the device tree during system operation.
DTB (Device Tree Binary) is a Binary product compiled by DTS, DTBO (Device Tree Binary Overlay) is a Binary product compiled by Overlay DTS, and both DTB and DTBO are composed of a series of named nodes and attributes (property).
In the prior art, in the system starting process, a corresponding DTB file and a corresponding DTBO file are loaded into a memory, and are combined into one DTB file, and then the DTB file is transmitted to a kernel (kernel) of the system, and the kernel finishes the initialization starting process of the system by reading the DTB file, so that the starting time is long, and the number of version products is large. Therefore, a new start-up optimization method is urgently needed to optimize the system start-up process.
Disclosure of Invention
The invention provides a start optimization method, a system, a chip, equipment and a medium based on an equipment tree, aiming at overcoming the defects that in the prior art, the DTB file is obtained by combining the DTB file and the DTBO file in the system start process, and the system kernel is initialized and started based on the DTB file, so that the start time is long and the version products are more.
The invention solves the technical problems through the following technical scheme:
in a first aspect, a start optimization method based on a device tree is provided, where the start optimization method includes:
acquiring a DTS file and an Overlay DTS file corresponding to a target object;
merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object;
and starting the system based on the target DTS file so as to realize the starting optimization of the system.
Preferably, the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
and for the same nodes with the same attribute name and different attribute values in the DTS file and the Overlay DTS file, covering the attribute values in the Overlay DTS file with the attribute values in the DTS file so as to update and obtain the target DTS file.
Preferably, the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
and adding the attribute names and the attribute values in the Overlay DTS file to the DTS file for the same nodes with different attribute names and different attribute values in the DTS file and the Overlay DTS file so as to update and obtain the target DTS file.
Preferably, the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
adding the unique nodes existing in the Overlay DTS file but not existing in the DTS file, and the attribute names and attribute values corresponding to the unique nodes into the DTS file to update to obtain the target DTS file.
Preferably, the step of starting the system based on the target DTS file to realize the start optimization of the system specifically includes:
compiling the target DTS file to obtain a DTB file;
obtaining a DTB mirror image file corresponding to the DTB file based on the DTB file;
and transmitting the DTB file and the DTB mirror image file to a kernel of the system, so that the kernel realizes the starting optimization of the system based on the DTB file.
In a second aspect, a boot optimization system based on a device tree is further provided, where the boot optimization system includes:
the acquisition module is used for acquiring a DTS file and an Overlay DTS file corresponding to the target object;
the merging module is used for merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object;
and the starting module is used for starting the system based on the target DTS file so as to realize the starting optimization of the system.
Preferably, the merging module is specifically configured to overwrite the attribute value in the Overlay DTS file with the attribute value in the DTS file for the same node having the same attribute name and different attribute values in the DTS file and the Overlay DTS file, so as to obtain the target DTS file by updating.
Preferably, the merging module is specifically configured to add the attribute name and the attribute value in the Overlay DTS file to the DTS file for the same node having different attribute names and different attribute values in the DTS file and the Overlay DTS file, so as to obtain the target DTS file by updating.
Preferably, the merging module is specifically configured to add an unique node existing in the Overlay DTS file but not existing in the DTS file, and an attribute name and an attribute value corresponding to the unique node to the DTS file, so as to update the target DTS file.
Preferably, the starting module comprises:
the compiling unit is used for compiling the target DTS file to obtain a DTB file;
the mirror image unit is used for obtaining a DTB mirror image file corresponding to the DTB file based on the DTB file;
and the starting loading unit is used for transmitting the DTB file and the DTB image file to a kernel of the system so as to enable the kernel to realize the starting optimization of the system based on the DTB file.
In a third aspect, a chip is further provided, where the chip is applied to an electronic device, and the chip is configured to execute any one of the above boot optimization methods based on a device tree.
In a fourth aspect, a chip is further provided, where the chip is applied to an electronic device, and includes a transceiver component and a chip, and the chip is configured to perform any one of the above boot optimization methods based on a device tree.
In a fifth aspect, an electronic device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the device tree-based boot optimization method described in any one of the above.
In a sixth aspect, a computer-readable storage medium is further provided, on which a computer program is stored, the computer program, when being executed by a processor, implementing the method for device tree based boot optimization according to any one of the above.
The positive progress effects of the invention are as follows:
compared with the prior art, the start optimization method, the system, the chip, the equipment and the medium based on the equipment tree complete the operation of combining the compiled products DTB and DTBO in the starting process before compiling, realize the combination of the source file DTS and the Overlay DTS, but not the combination of the compiled products DTB and DTBO corresponding to the DTS and the Overlay DTS, thereby reducing the size of the version product, reducing the starting time and optimizing the starting process of the system.
Drawings
Fig. 1 is a first flowchart of a start optimization method based on a device tree according to embodiment 1 of the present invention;
fig. 2 is a second flow chart of the start optimization method based on the device tree according to embodiment 1 of the present invention;
fig. 3 is a third flow chart of the start optimization method based on the device tree according to embodiment 1 of the present invention;
fig. 4 is a fourth flowchart illustrating a start optimization method based on a device tree according to embodiment 1 of the present invention;
fig. 5 is a fourth flowchart illustrating a start optimization method based on a device tree according to embodiment 1 of the present invention;
fig. 6 is a schematic structural diagram of a device tree-based boot optimization system according to embodiment 2 of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The present embodiment provides a start optimization method based on a device tree, as shown in fig. 1, the start optimization method includes:
s101, obtaining a DTS file and an Overlay DTS file corresponding to the target object.
The Device Tree (DT) describes data structures of various hardware on board level devices, a target object being a certain board level device, a board level device being an integrated circuit board, a development board, etc.
The main function of the DTS file is to describe the device information on the board. After the device tree is adopted, details of a plurality of hardware can be directly transmitted to the system through the device tree, a large amount of redundant coding is not needed to be carried out on an inner core, and the device tree can be analyzed by the inner core of the system in the starting process to obtain various hardware resources to initialize the hardware.
The Overlay function of the device tree means that the device tree can be dynamically modified during system operation. If the device tree is required to be modified, the Overlay function of the device tree is provided, recompilation and kernel restarting of the device tree are omitted, the device tree is directly patched through an Overlay DTS, nodes can be dynamically added or modified during operation, and modification of the device tree is further achieved.
In the same terminal device, there may be multiple board level devices, and each board level device has its own corresponding DTS file and Overlay DTS file. When the information of the board-level equipment is changed, the Overlay function is used, and the DTS file and the Overlay DTS file corresponding to the target object are determined according to the target object selected by the user, namely the board-level equipment.
And S102, combining the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object.
And running the script, and merging the DTS file and the Overlay DTS file of the same target object to obtain a target DTS file corresponding to the target object.
And S103, starting the system based on the target DTS file to realize the starting optimization of the system.
And performing related operations before the system is started on the basis of obtaining the target DTS file so as to initialize each hardware device on the terminal device and establish a memory space mapping chart, so that the software and hardware environment of the system of the terminal device is brought to a proper state, and a correct operating environment is prepared for finally starting a system kernel so as to facilitate normal starting of the system.
When a device tree needs to be modified, in the prior art, a DTS file and an Overlay DTS file corresponding to a certain board-level device are compiled, the DTS file is compiled into a DTB file, the Overlay DTS file is compiled into a DTBO file, the compiled DTB file and the DTBO file are merged into a DTB file, and the DTB file and the DTBO file are transmitted to a kernel of a system, so as to guide the start of the system.
In the start optimization method based on the device tree in this embodiment, the operation of merging the DTB file and the DTBO file in the start in the prior art is completed before compiling, compiling the DTS file and the Overlay DTS file is not required, but the source file DTS file and the Overlay DTS file are directly merged instead of merging the compiled products DTB and DTBO corresponding to the DTS and the Overlay DTS, so that the system start process is optimized, and the effects of reducing the size of the version product and the start time are achieved.
In an alternative embodiment, as shown in fig. 2, the step S102 includes:
and S1021, for the same nodes with the same attribute name and different attribute values in the DTS file and the Overlay DTS file, covering the attribute value in the Overlay DTS file with the attribute value in the DTS file so as to update and obtain the target DTS file.
Each device in the device tree is a node called a device node, each node describes node information through some attribute information, the attributes are key value pairs, each node has different attributes, the different attributes have different contents, the attributes are key value pairs, and the values can be null or any byte streams.
When the DTS file and the Overlay DTS file have the same node, if the attribute information corresponding to the node has the same attribute name and different attribute values, the attribute value in the Overlay DTS file is covered with the attribute value in the DTS file so as to update and obtain the target DTS file. The embodiment realizes the modification and the update of the equipment tree, optimizes the starting process of the system, reduces the size of the version product and reduces the starting time.
In an alternative embodiment, as shown in fig. 3, the step S102 includes:
and S1022, adding the attribute names and the attribute values in the Overlay DTS file to the DTS file for the same nodes with different attribute names and different attribute values in the DTS file and the Overlay DTS file so as to update and obtain the target DTS file.
When the DTS file and the Overlay DTS file have the same node, if the attribute information corresponding to the node has different attribute names and different attribute values, adding the attribute names and the attribute values in the Overlay DTS file to the DTS file so as to update and obtain the target DTS file. The embodiment realizes the modification and the update of the equipment tree, optimizes the starting process of the system, reduces the size of the version product and reduces the starting time.
In an alternative embodiment, as shown in fig. 4, the step S102 includes:
s1023, adding the unique nodes existing in the Overlay DTS file but not existing in the DTS file, and the attribute names and attribute values corresponding to the unique nodes into the DTS file to update to obtain the target DTS file.
When the DTS file and the Overlay DTS file have different nodes, and the node is a unique node existing in the Overlay DTS file but not in the DTS file, adding the attribute name and the attribute value corresponding to the unique node into the DTS file to update and obtain the target DTS file. The embodiment realizes the modification and the update of the equipment tree, optimizes the starting process of the system, reduces the size of the version product and reduces the starting time.
In an alternative embodiment, as shown in fig. 5, the step S103 includes:
and S1031, compiling the target DTS file to obtain a DTB file.
The DTC (Device Tree Compiler) is a Compiler of the Device Tree, which is a tool for compiling the Device Tree, and uses the DTC to compile a target DTS file into a DTB file, and finally generates an executable program.
S1032, obtaining a DTB image file corresponding to the DTB file based on the DTB file.
The core also needs a DTB image file corresponding to the DTB file in the process of starting, and the DTB image file corresponding to the DTB file can be obtained based on the prior art, which is not described herein again.
Taking the Linux system as an example, when the system is started, a boot program (e.g., bootloader, boot loader) reads a DTB file into a memory before starting the Linux system image, jumps to the Linux system image for execution, and transmits a DTB start address to the Linux system image. The Linux system mirror image can analyze the whole equipment tree according to the DTB structure through the initial address to complete the initialization of the hardware drive, the introduction of the equipment tree reduces the change of the system mirror image needed for supporting new hardware, improves the code reuse, accelerates the development of the Linux system support package, and enables a single Linux system mirror image to support a plurality of systems.
In Linux product development, an operating system Image (OS Image) generated by a product is usually packaged by three files: a system image file (uImage or zmage), a DTB file, and a root file system file (RootFS). Because the device tree files are different, the packaging file of each product is different, so after the DTB file is obtained, a DTB image file corresponding to the DTB file is also required to be obtained, and the DTB image file and the Linux system image containing all product drivers in the same Linux system image version are packaged into a Linux system image file.
S1033, the DTB file and the DTB image file are transmitted to a kernel of the system, so that the kernel realizes the starting optimization of the system based on the DTB file.
Before the system is started, the DTB file and the Linux system image file including the DTB image file are transmitted to a kernel of the system through the bootloader, so that the system can be started normally, and further the system can be optimized in starting.
According to the start optimization method based on the device tree, the DTB file is obtained by compiling the target DTS file obtained by combining the DTS file and the Overlay DTS file, and the DTB mirror image file is obtained, so that the DTB file and the DTB mirror image file are transmitted to the kernel of the system before the system is started, the normal start of the system is facilitated, the system start process is optimized, the number of files to be compiled is reduced, the time required by the compilation process is shortened, and the effects of reducing the size of a version product and the start time are achieved.
Example 2
The present embodiment provides a start optimization system based on a device tree, as shown in fig. 6, the start optimization system based on the device tree includes an obtaining module 1, configured to obtain a DTS file and an Overlay DTS file corresponding to a target object; the merging module 2 is configured to merge the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to a target object; and the starting module 3 is used for starting the system based on the target DTS file so as to realize the starting optimization of the system.
In an optional embodiment, the merging module 2 is specifically configured to overwrite the attribute value in the Overlay DTS file with the attribute value in the DTS file for the same node having the same attribute name and different attribute values in the DTS file and the Overlay DTS file, so as to obtain the target DTS file by updating.
In an optional embodiment, the merging module 2 is specifically configured to add, to the DTS file, the attribute name and the attribute value in the Overlay DTS file for the same node having different attribute names and different attribute values in the DTS file and the Overlay DTS file, so as to obtain the target DTS file by updating.
In an optional embodiment, the merging module 2 is specifically configured to add an unique node that exists in the Overlay DTS file but does not exist in the DTS file, and an attribute name and an attribute value corresponding to the unique node to the DTS file, so as to update the target DTS file.
In an optional embodiment, the starting module 3 includes a compiling unit 31, configured to compile a target DTS file to obtain a DTB file; the mirror image unit 32 is configured to obtain a DTB mirror image file corresponding to the DTB file based on the DTB file; and the start loading unit 33 is configured to transfer the DTB file and the DTB image file to a kernel of the system, so that the kernel realizes start optimization of the system based on the DTB file.
In the start optimization system based on the device tree in this embodiment, through mutual cooperation of each module and unit in the system, the target DTS file obtained by combining the DTS file and the Overlay DTS file is compiled to obtain the DTB file, and the DTB mirror image file is obtained, so that before the system is started, the DTB file and the DTB mirror image file are transferred to the kernel of the system, thereby facilitating normal start of the system, optimizing the system start process, reducing the number of files to be compiled, and shortening the time required by the compilation process, thereby achieving the effects of reducing the size of a version product and reducing the start time.
The start optimization system based on the device tree provided in this embodiment may specifically be a separate chip, chip module, or electronic device, or may be a chip or chip module integrated in an electronic device.
The modules/units included in the device tree-based boot optimization system described in this embodiment may be software modules/units, or hardware modules/units, or may also be part of the software modules/units and part of the hardware modules/units.
Example 3
Fig. 7 is a schematic structural diagram of an electronic device provided in this embodiment. The electronic device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the device tree based boot optimization method as in embodiment 1 above. The electronic device 80 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the electronic device 80 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 80 may include, but are not limited to: the at least one processor 81, the at least one memory 82, and a bus 83 connecting the various system components including the memory 82 and the processor 81.
The bus 83 includes a data bus, an address bus, and a control bus.
The memory 82 may include volatile memory, such as Random Access Memory (RAM) 821 and/or cache memory 822, and may further include Read Only Memory (ROM) 823.
Memory 82 may also include a program/utility 825 having a set (at least one) of program modules 824, such program modules 824 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 81 executes computer programs stored in the memory 82 to perform various functional applications and data processing, such as the device tree-based boot optimization method of the present invention as in embodiment 1 above.
The electronic device 80 may also communicate with one or more external devices 84 (e.g., keyboard, pointing device, etc.). Such communication may be through input/output (I/O) interfaces 85. Also, the model-generating device 80 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via a network adapter 86. As shown in FIG. 7, the network adapter 86 communicates with the other modules of the model-generating device 80 via the bus 83. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 80, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the device tree based boot optimization method as in embodiment 1 above.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible embodiment, the present invention can also be implemented in the form of a program product including program code for causing a terminal device to perform the steps of implementing the device tree based boot optimization method as in embodiment 1 above, when the program product is executed on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user's device, partly on the user's device, as a stand-alone software package, partly on the user's device, partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (14)

1. A starting optimization method based on a device tree is characterized by comprising the following steps:
acquiring a DTS file and an Overlay DTS file corresponding to a target object;
merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object;
and starting the system based on the target DTS file to realize the starting optimization of the system.
2. The start optimization method according to claim 1, wherein the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
and for the same nodes with the same attribute name and different attribute values in the DTS file and the Overlay DTS file, covering the attribute values in the Overlay DTS file with the attribute values in the DTS file so as to update and obtain the target DTS file.
3. The start optimization method according to claim 1, wherein the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
and adding the attribute names and the attribute values in the Overlay DTS file to the DTS file for the same nodes with different attribute names and different attribute values in the DTS file and the Overlay DTS file so as to update and obtain the target DTS file.
4. The start optimization method according to claim 1, wherein the step of merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object specifically includes:
adding the unique nodes existing in the Overlay DTS file but not existing in the DTS file, and the attribute names and attribute values corresponding to the unique nodes into the DTS file to update to obtain the target DTS file.
5. The boot optimization method according to claim 1, wherein the step of booting a system based on the target DTS file to achieve boot optimization of the system specifically includes:
compiling the target DTS file to obtain a DTB file;
obtaining a DTB mirror image file corresponding to the DTB file based on the DTB file;
and transmitting the DTB file and the DTB image file to a kernel of the system, so that the kernel realizes the starting optimization of the system based on the DTB file.
6. A boot optimization system based on a device tree, the boot optimization system comprising:
the acquisition module is used for acquiring a DTS file and an Overlay DTS file corresponding to the target object;
the merging module is used for merging the DTS file and the Overlay DTS file based on a preset rule to obtain a target DTS file corresponding to the target object;
and the starting module is used for starting the system based on the target DTS file so as to realize the starting optimization of the system.
7. The start optimization system of claim 6, wherein the merging module is specifically configured to overwrite an attribute value in the Overlay DTS file with an attribute value in the DTS file for a same node having a same attribute name and a different attribute value in the DTS file and the Overlay DTS file, so as to update to obtain the target DTS file.
8. The startup optimization system according to claim 6, wherein the merging module is specifically configured to add, to the DTS file, the attribute name and the attribute value in the Overlay DTS file for the same node having different attribute names and different attribute values in the DTS file and the Overlay DTS file, so as to obtain the target DTS file by updating.
9. The startup optimization system according to claim 6, wherein the merging module is specifically configured to add an unique node existing in the Overlay DTS file but not existing in the DTS file, and an attribute name and an attribute value corresponding to the unique node to the DTS file, so as to update the target DTS file.
10. The startup optimization system of claim 6, wherein the startup module comprises:
the compiling unit is used for compiling the target DTS file to obtain a DTB file;
the mirror image unit is used for obtaining a DTB mirror image file corresponding to the DTB file based on the DTB file;
and the starting loading unit is used for transmitting the DTB file and the DTB image file to a kernel of the system so as to enable the kernel to realize the starting optimization of the system based on the DTB file.
11. A chip applied to an electronic device, wherein the chip is configured to perform the device tree based boot optimization method according to any one of claims 1 to 5.
12. A chip module applied to an electronic device, comprising a transceiver component and a chip, wherein the chip is used for executing the device tree-based boot optimization method according to any one of claims 1 to 5.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the device tree based boot optimization method according to any one of claims 1 to 5 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for device tree based boot optimization according to any one of claims 1 to 5.
CN202211430240.6A 2022-11-15 2022-11-15 Starting optimization method, system, chip, device and medium based on device tree Pending CN115878197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211430240.6A CN115878197A (en) 2022-11-15 2022-11-15 Starting optimization method, system, chip, device and medium based on device tree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211430240.6A CN115878197A (en) 2022-11-15 2022-11-15 Starting optimization method, system, chip, device and medium based on device tree

Publications (1)

Publication Number Publication Date
CN115878197A true CN115878197A (en) 2023-03-31

Family

ID=85760003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211430240.6A Pending CN115878197A (en) 2022-11-15 2022-11-15 Starting optimization method, system, chip, device and medium based on device tree

Country Status (1)

Country Link
CN (1) CN115878197A (en)

Similar Documents

Publication Publication Date Title
CN106227579B (en) Docker container construction method and Docker management console
US7761701B2 (en) Component firmware integration in distributed systems
US8464242B2 (en) Virtualization of configuration settings
US20090064196A1 (en) Model based device driver code generation
US10684846B2 (en) Using semantic annotations to control compatibility behaviors
US10929149B2 (en) Method and system for updating firmware
US10579801B2 (en) Selecting and loading firmware volumes based on license
JP5401561B2 (en) Application of platform-dependent routines within a virtual mechanism by embedding native code in a class file
CN106796521B (en) API version control independent of product release
US20080141219A1 (en) Multiple inheritance facility for java script language
CN116755713A (en) Application program generation method, device, equipment and storage medium
US9703550B1 (en) Techniques for building code entities
CN109558121B (en) Interface driver development method, device, equipment and storage medium
CN114756290A (en) Operating system installation method, device and readable storage medium
US11347523B2 (en) Updated shared library reloading without stopping the execution of an application
CN115878197A (en) Starting optimization method, system, chip, device and medium based on device tree
CN112379885B (en) Applet compiling method, device, equipment and readable storage medium
CN114816475A (en) Method, device, equipment and medium for updating embedded operating system
US8135943B1 (en) Method, apparatus, and computer-readable medium for generating a dispatching function
TWI777636B (en) Method, device, and computer program product for composing modular firmware
US8555046B2 (en) Computer system and its HW abstraction method
CN114253615B (en) Method and device for setting bootstrap program, electronic equipment and storage medium
CN114443582B (en) File system mounting method, device, equipment and medium on operating system
US11086605B1 (en) Processing portable extensions at build time
CN113672238B (en) Operation method, device and equipment based on real-time operating system modularized management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination