Method, system, device and program product compatible with heterogeneous storage device
By obtaining the identification information of heterogeneous storage devices and calling the corresponding device tree source files, file systems and applications, complex development and maintenance problems caused by the differences in storage devices of traditional routers and computing power routers are solved, and compatibility and efficient management of heterogeneous storage devices are achieved.
Patent Information
- Application Number
- CN202510394783.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-22
AI Technical Summary
There are differences in storage, computing power and software functions of traditional routers and computing power routers, resulting in high development and maintenance complexity.
The bootloader of the preset heterogeneous storage device obtains the identification information of the target storage device and determines the corresponding device tree source files, file systems and applications to realize the parsing of the target storage device to ensure compatibility of the heterogeneous storage device.
It reduces the management complexity of heterogeneous storage devices, improves development and maintenance efficiency, simplifies hardware configuration complexity, and improves the flexibility and maintainability of software systems.
Smart Images

Figure CN120353387A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage technology, and in particular, to a method, system, device, and program product for compatible heterogeneous storage devices. Background Art
[0002] Traditional routers usually use NAND Flash to store firmware, operating systems, and other related software for network connection and data forwarding. In a computing power network, the functions of a router have exceeded traditional data forwarding. It not only provides network connection but also has certain computing and processing capabilities. A computing power router usually integrates an embedded MultiMediaCard (eMMC) storage to support stronger computing and storage requirements.
[0003] Due to the different application scenarios of traditional routers and computing power routers, both types of routers are often deployed in the current network. The storage devices of the two types of routers have differences in storage, computing capabilities, and software functions, and relevant function development and software maintenance for in-network upgrade need to be carried out separately, thus increasing the complexity of development and maintenance. Summary of the Invention
[0004] Embodiments of this application provide a method, system, device, and program product for compatible heterogeneous storage devices, so as to at least solve the problem of high complexity that existing heterogeneous storage devices need to be separately developed for functions and maintained for software in-network upgrade.
[0005] To solve the above technical problems, this application is implemented as follows: In a first aspect, an embodiment of this application provides a method for compatible heterogeneous storage devices, including: reading a target storage device from the at least two heterogeneous storage devices through a pre-set boot loader of the at least two heterogeneous storage devices, and obtaining target identification information of the target storage device; determining a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application program having a third call relationship with the target identification information; parsing the target storage device through the target device tree source file, the target file system, and the target application program to process data stored in the target storage device.
[0006] In a second aspect, an embodiment of the present application provides a system compatible with heterogeneous storage devices, including: a bootloader configuration unit configured to read a target storage device from the at least two heterogeneous storage devices through bootloaders of the at least two pre-set heterogeneous storage devices, and obtain target identification information of the target storage device; the system is configured to determine a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application program having a third call relationship with the target identification information; and parse the target storage device through the target device tree source file, the target file system and the target application program to process data stored in the target storage device.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect above are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect above are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the steps of the method described in the first aspect above.
[0010] In the embodiment of the present application, a target storage device is read from at least two heterogeneous storage devices through bootloaders of the at least two pre-set heterogeneous storage devices, and target identification information of the target storage device is obtained; a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application program having a third call relationship with the target identification information are determined; and the target storage device is parsed through the target device tree source file, the target file system and the target application program to process data stored in the target storage device. In this way, corresponding device tree source files, file systems and application programs can be called according to different types of heterogeneous storage devices, ensuring the compatibility of at least two heterogeneous storage devices, thereby facilitating the reduction of the management complexity of heterogeneous storage devices and improving the development and maintenance efficiency.
[0011] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0013] Figure 1 A flowchart showing a method for compatible heterogeneous storage devices provided by some embodiments of the present application; Figure 2 A schematic structural diagram showing a system for compatible heterogeneous storage devices provided by some embodiments of the present application; Figure 3 A schematic structural diagram showing a system for compatible heterogeneous storage devices provided by other embodiments of the present application; Figure 4 A schematic structural diagram showing an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0014] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0015] Due to the different application scenarios of traditional routers and computing power routers, both types of routers are usually deployed simultaneously in the existing network. Traditional routers use NAND Flash to store firmware, operating systems, and other related software; computing power routers usually integrate eMMC storage, which has a large storage space and fast data read and write speeds, allowing users to directly store data on the router. NAND Flash storage and eMMC storage have different performance characteristics and different management methods, belonging to heterogeneous storage devices. For heterogeneous storage devices, relevant function development and software maintenance for network upgrade often need to be carried out separately, thus increasing the complexity of development and maintenance.
[0016] In view of the problems existing in the development and maintenance of the above-mentioned heterogeneous storage devices, embodiments of the present application provide a method for compatible heterogeneous storage devices, which calls corresponding device tree source files, file systems, and application programs according to different types of heterogeneous storage devices to ensure the compatibility of at least two heterogeneous storage devices, thereby helping to reduce the management complexity of heterogeneous storage devices and improve the development and maintenance efficiency.
[0017] Figure 1A flowchart of a method for compatible heterogeneous storage devices provided by some embodiments of the present application is shown. The execution subject of the method can be a software system running on a terminal device or a server, wherein the terminal device can be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, a vehicle-mounted device, a medical device, etc. The terminal device can be a terminal device used by a user. The server can be an independent server or a server cluster composed of multiple servers. Moreover, the server can be a background server of a certain business, or a background server of a certain platform or application (such as a data center, a cloud platform, a monitoring system, etc.). As shown in the figure, the method 100 can include the following steps: Step 101: a target storage device is read from at least two heterogeneous storage devices by using boot loaders preset in at least two heterogeneous storage devices to obtain target identification information of the target storage device.
[0018] Among them, at least two heterogeneous storage devices include two or more of NAND Flash, eMMC, Universal Flash Storage (UFS), and Dynamic Random-Access Memory (DRAM); the target identification information can be the type, name, device identifier, etc. of the target storage device, or it can be parameter information related to the target storage device for characterizing the type of the storage device.
[0019] In an exemplary embodiment, in an embedded system, different storage devices (such as NAND Flash and eMMC) use different ROM codes (i.e., boot codes fixed in the storage devices). After the software system is powered on, it performs basic initialization of the processor and identifies and loads the bootloader into the on-chip RAM. Since the ROM code needs to be fixed in the chip during burning, when the boot loader U-Boot is burned in the factory, the U-Boot burned in the NAND Flash and eMMC storage is different. Different storage types are integrated into the parameters passed by U-Boot to the Linux kernel, and the software system can automatically detect different storage devices at startup.
[0020] Step 102: Determine a target device tree source file having a first calling relationship with the target identification information, a target file system having a second calling relationship with the target identification information, and a target application having a third calling relationship with the target identification information.
[0021] Continuing with the above embodiment, the Linux kernel can pre-configure the device tree source files (DTS) of NAND Flash and eMMC. When the kernel starts, it selects and calls different DTS according to the parameters passed by U-Boot; the file systems of NAND Flash and eMMC are pre-configured in the Linux file system. When Linux starts, different file systems are formatted according to the parameters passed by U-Boot and the different storage device types recognized; the application programs of NAND Flash and eMMC are pre-configured in the software system. After the software system starts, different application programs are called according to the different storage device types recognized by U-Boot, so as to adapt the corresponding target device tree source file, target file system and target application program according to the detected target storage device, to ensure the stable operation and efficient management of the software system. Among them, the target storage device can be NAND Flash or eMMC.
[0022] Step 103: Parse the target storage device through the target device tree source file, target file system and target application program to process the data stored in the target storage device.
[0023] Continuing with the above embodiment, parse NAND Flash or eMMC through the target device tree source file, target file system and target application program to process the data stored in the corresponding storage device.
[0024] In this way, corresponding device tree source files, file systems and application programs are called according to different types of heterogeneous storage devices to ensure the compatibility of at least two heterogeneous storage devices, which is conducive to reducing the management complexity of heterogeneous storage devices and improving the development and maintenance efficiency. Taking at least two heterogeneous storage devices as NAND Flash and eMMC as an example, based on the original software and hardware solutions, without additional hardware modifications, the same software system is made compatible with NAND Flash and eMMC with minimal impact, which is conducive to reducing the management complexity of traditional routers and computing power routers and improving the development and maintenance efficiency.
[0025] In some embodiments, the above-mentioned target device tree source file is one of the device tree source files of at least two pre-set heterogeneous storage devices, and there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; the above-mentioned target file system is one of the file systems of at least two pre-set heterogeneous storage devices, and there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; the above-mentioned target application program is one of the application programs of the at least two pre-set heterogeneous storage devices, and there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application program.
[0026] Among them, the device tree source file can be configured in the operating system kernel of the software system, and the operating system kernel includes but is not limited to Linux kernel, Windows NT kernel, BSD kernel, XNU kernel, etc.
[0027] In an exemplary embodiment, the user configures the DTS of NAND Flash and the DTS of eMMC in the Linux kernel, obtains the configured DTS of NAND Flash and the DTS of eMMC, and determines the first call relationship between the identification information of the two storage devices of NAND Flash and eMMC and each DTS, so that when the software system starts, different DTSs can be called according to the identification information of different storage devices.
[0028] In another exemplary embodiment, NAND Flash usually uses the ubi file system, and eMMC usually uses the ext4 file system. The user can configure the ubi file system and the ext4 file system in the Linux file system, obtain the file systems configured by the user, and determine the second call relationship between the identification information of the two storage devices of NAND Flash and eMMC and each file system, so that when the software system starts, different file systems can be formatted according to the identification information of different storage devices.
[0029] In another exemplary embodiment, the NAND Flash storage usually contains application programs related to the data forwarding function. Since the eMMC storage has a large storage space and fast data read and write speeds, it is usually integrated in the computing power router, so it will also additionally contain a computing power program that is interconnected with the computing power platform. The user can pre-configure the application programs of NAND Flash and eMMC storage in the software system, obtain the application programs configured by the user, and determine the third call relationship between the identification information of the two storage devices of NAND Flash and eMMC and each application program, so that when the software system starts, different application programs can be called according to the identification information of different storage devices.
[0030] By the above steps, configuring the device tree source files, file systems, application programs, and call relationships of at least two heterogeneous storage devices can ensure the compatibility of at least two heterogeneous storage devices, enabling the same software system to be compatible with at least two heterogeneous storage devices, thereby facilitating the reduction of the management complexity of heterogeneous storage devices and improving the development and maintenance efficiency.
[0031] In some embodiments, the device tree source files of the above at least two heterogeneous storage devices are configured based on the first difference information of the at least two heterogeneous storage devices.
[0032] In an exemplary embodiment, if the DTS of NAND Flash includes parts A, B, C, and D, and the DTS of eMMC contains parts A, B, C, and E, where A, B, and C are the configurations common to the two storage devices, and D and E are the first difference information of the two storage devices. When the user inputs a first operation instruction, the software system configures the first difference information of NAND Flash and eMMC, namely D and E, so as to generate the DTS of NAND Flash and eMMC.
[0033] By this means, configuring the device tree source files of the storage devices based on the first difference information of the heterogeneous storage devices can avoid duplicate development of the functions of at least two heterogeneous storage devices and improve the development efficiency.
[0034] In some embodiments, the file systems of the above at least two heterogeneous storage devices are configured based on the second difference information of the at least two heterogeneous storage devices.
[0035] In an exemplary embodiment, if the file system of NAND Flash includes parts F, G, and K, and the file system of eMMC contains parts F, G, and L, where F and G are the configurations common to the two storage devices, and K and L are the second difference information of the two storage devices. When the user inputs a second operation instruction, the software system configures the second difference information of NAND Flash and eMMC, namely parts K and L, so as to generate the file systems of NAND Flash and eMMC.
[0036] By this means, configuring the file systems of the storage devices based on the second difference information of the heterogeneous storage devices can avoid duplicate development of the functions of at least two heterogeneous storage devices and improve the development efficiency.
[0037] In some embodiments, the application programs of the above at least two heterogeneous storage devices are configured based on the third difference information of the at least two heterogeneous storage devices.
[0038] In an exemplary embodiment, suppose the application program of the NAND Flash includes parts M, N, O, and P, and the application program of the eMMC includes parts M, N, Q, and R, where M and N are the configurations common to the two storage devices, and O, P and Q, R are the third difference information of the two storage devices. When the user inputs a second operation instruction, the software system configures the third difference information of the NAND Flash and the eMMC according to the input, that is, parts O, P, Q, and R, so as to generate the application programs of the NAND Flash and the eMMC.
[0039] In this way, based on the third difference information of heterogeneous storage devices, the application programs of the storage devices can be configured, which can avoid the repeated development of the functions of at least two heterogeneous storage devices and improve the development efficiency.
[0040] In some embodiments, in step 103 above, after parsing the target storage device through the target device tree source file, the target file system, and the target application program to process the data stored in the target storage device, it further includes: In response to obtaining the system upgrade file, upgrade the device tree source file, the file system, and the application program of at least two heterogeneous storage devices to the versions included in the system upgrade file.
[0041] In an exemplary embodiment, when the system upgrade file is packaged, it includes the Linux kernel, the Linux file system, and the application program, while U-Boot is burned in the factory and is not included in the system upgrade file. After modifying functions such as network connection, the system upgrade file can be used for the upgrade of both the NAND Flash and the eMMC at the same time, avoiding the repeated development of functions and the maintenance of multiple upgrade versions.
[0042] Through the above steps, the compatibility problem of the same software system on different storage devices (NAND Flash and eMMC) can be effectively solved, which provides great convenience for the software version development and maintenance of network devices such as smart home routers or gateways. At the same time, through this method, not only the complexity of the hardware configuration is simplified, but also the flexibility and maintainability of the software system are improved.
[0043] Figure 2 shows a schematic structural diagram of a system compatible with heterogeneous storage devices provided by some embodiments of the present application. The system compatible with heterogeneous storage devices can implement all or part of the content in the Figure 1 illustrated embodiment. The system 200 compatible with heterogeneous storage devices includes: A bootloader configuration unit 210, configured to read a target storage device from the at least two heterogeneous storage devices through a pre-set bootloader of the at least two heterogeneous storage devices, and obtain target identification information of the target storage device; The above-mentioned system 200 is used to determine the target device tree source file having a first call relationship with the target identification information, the target file system having a second call relationship with the target identification information, and the target application having a third call relationship with the target identification information; the target storage device is parsed through the target device tree source file, the target file system, and the target application to process the data stored in the target storage device.
[0044] In some embodiments, the target device tree source file is one of the device tree source files of the at least two heterogeneous storage devices preset, and there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; The target file system is one of the file systems of the at least two heterogeneous storage devices preset, and there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; The target application is one of the applications of the at least two heterogeneous storage devices preset, and there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application.
[0045] In some embodiments, the device tree source file of the at least two heterogeneous storage devices is configured based on the first difference information of the at least two heterogeneous storage devices.
[0046] In some embodiments, the file system of the at least two heterogeneous storage devices is configured based on the second difference information of the at least two heterogeneous storage devices.
[0047] In some embodiments, the application of the at least two heterogeneous storage devices is configured based on the third difference information of the at least two heterogeneous storage devices.
[0048] In some embodiments, the above-mentioned system 200 is further used to, in response to obtaining a system upgrade file, upgrade the device tree source file, the file system, and the application of the at least two heterogeneous storage devices to the versions included in the system upgrade file.
[0049] In some embodiments, the above-mentioned system 200 further includes: The operating system kernel unit 220 is used to configure the device tree source file of the at least two heterogeneous storage devices, and there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; The system file configuration unit 230 is used to configure the file system of the at least two heterogeneous storage devices, and there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; An application configuration unit 240, configured to configure applications for the at least two heterogeneous storage devices, where there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application.
[0050] In an exemplary embodiment, taking the at least two heterogeneous storage devices as NAND Flash and eMMC as an example, as Figure 3 shown, the software system is divided into four parts: a bootloader configuration unit 310, an operating system kernel unit 320, a system file configuration unit 330, and an application configuration unit 340. The bootloader configuration unit 310 is configured with the U-Boot of NAND Flash and the U-Boot of eMMC; the operating system kernel unit 320 is configured with the DTS of NAND Flash and the DTS of eMMC; the system file configuration unit 330 is configured with the file system of NAND Flash and the file system of eMMC; the application configuration unit 340 is configured with the applications of NAND Flash and the applications of eMMC.
[0051] Assume that the target storage device is NAND Flash. When the software system starts, the bootloader configuration unit 310 reads the NAND Flash, and by passing the NAND Flash-related parameters to the operating system kernel unit 320, dynamically adapts the corresponding DTS, file system, and application to process the data stored in the NAND Flash.
[0052] The embodiment of the present application provides a system compatible with heterogeneous storage devices, including a bootloader configuration unit; the bootloader configuration unit reads a target storage device from the at least two heterogeneous storage devices through the bootloaders of the preset at least two heterogeneous storage devices, and obtains the target identification information of the target storage device; the system determines a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application having a third call relationship with the target identification information; and parses the target storage device through the target device tree source file, the target file system, and the target application to process the data stored in the target storage device. In this way, the corresponding device tree source file, file system, and application can be called according to different types of heterogeneous storage devices, ensuring the compatibility of the at least two heterogeneous storage devices, thereby facilitating reducing the management complexity of the heterogeneous storage devices and improving the development and maintenance efficiency.
[0053] Moreover, by configuring the device tree source files of at least two heterogeneous storage devices through the operating system kernel unit, there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; by configuring the file systems of the at least two heterogeneous storage devices through the system file configuration unit, there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; by configuring the application programs of the at least two heterogeneous storage devices through the application program configuration unit, there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application program. This can ensure the compatibility of the at least two heterogeneous storage devices, enabling the same software system to be compatible with the at least two heterogeneous storage devices, thus facilitating the reduction of the management complexity of the heterogeneous storage devices and improving the development and maintenance efficiency.
[0054] Figure 4 FIG. shows a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. Referring to this figure, at the hardware level, the electronic device 400 includes a processor 410, and optionally, an internal bus 420, a network interface 430, and a memory 440. Among them, the memory 440 may include a memory 441, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory 442 (non-volatile memory), such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services.
[0055] The processor 410, the network interface 430, and the memory can be interconnected through the internal bus 420. The internal bus 420 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a bidirectional arrow is used in this figure to represent it, but it does not mean that there is only one bus or one type of bus.
[0056] The memory 440 stores programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 440 may include a memory 441 and a non-volatile memory 442, and provide instructions and data to the processor 410.
[0057] The processor 410 reads the corresponding computer program from the non-volatile memory 442 into the memory and then runs it, forming a device for locating the target user at the logical level. The processor 410 executes the program stored in the memory and specifically executes: Figure 1 The method disclosed in the illustrated embodiment and implements the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be elaborated herein.
[0058] The above as in this application Figure 1 The method disclosed in the illustrated embodiment can be applied to the processor 410 or implemented by the processor 410. The processor 410 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method can be completed by the integrated logic circuit in the hardware of the processor 410 or the instructions in the form of software. The above-mentioned processor 410 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by the hardware decoding processor or executed by the combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.
[0059] This computer device can also execute the various methods described in the foregoing method embodiments and implement the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be elaborated herein.
[0060] Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit and may also be hardware or a logic device.
[0061] The embodiments of the present application also propose a computer-readable storage medium. The computer-readable medium stores one or more programs. When the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to execute Figure 1 the method disclosed in the illustrated embodiment and achieve the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be elaborated herein.
[0062] Wherein, the computer-readable storage medium includes a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disk, etc.
[0063] Furthermore, the embodiments of the present application also provide a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the following process is implemented: Figure 1 the method disclosed in the illustrated embodiment and achieve the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be elaborated herein.
[0064] The embodiments of the present application can be applied to various scenarios of electronic device cooperation or interconnection, including: cooperation and interconnection between a mobile phone and a laptop / tablet computer; cooperation and interconnection between a mobile terminal and a smart TV / display; cooperation and interconnection between a mobile phone or a tablet computer and an in-vehicle entertainment system; cooperation and interconnection between a mobile terminal and a smart conference system, etc. Thus, it can meet the diverse scenario requirements of users in smart home, smart office, smart travel, etc.
[0065] In summary, the above are only the preferred embodiments of the present application and do not limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0066] The systems, devices, modules or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0067] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0068] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0069] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for compatible heterogeneous storage devices, characterized in that Including: Reading a target storage device from the at least two heterogeneous storage devices through a bootloader of the at least two pre - set heterogeneous storage devices, and obtaining target identification information of the target storage device; Determining a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application program having a third call relationship with the target identification information; Parsing the target storage device through the target device tree source file, the target file system, and the target application program to process data stored in the target storage device.
2. The method according to claim 1, wherein The target device tree source file is one of the device tree source files of the at least two pre - set heterogeneous storage devices, and there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; The target file system is one of the file systems of the at least two pre - set heterogeneous storage devices, and there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; The target application program is one of the application programs of the at least two pre - set heterogeneous storage devices, and there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application program.
3. The method according to claim 2, wherein The device tree source files of the at least two heterogeneous storage devices are configured based on first difference information of the at least two heterogeneous storage devices.
4. The method according to claim 2, wherein The file systems of the at least two heterogeneous storage devices are configured based on second difference information of the at least two heterogeneous storage devices.
5. The method according to claim 2, wherein The application programs of the at least two heterogeneous storage devices are configured based on third difference information of the at least two heterogeneous storage devices.
6. The method according to any one of claims 1 to 5, characterized in that After parsing the target storage device through the target device tree source file, the target file system, and the target application program to process data stored in the target storage device, it further includes: In response to obtaining a system upgrade file, upgrading the device tree source files, file systems, and application programs of the at least two heterogeneous storage devices to the versions included in the system upgrade file.
7. A system compatible with heterogeneous storage devices, characterized in that Including: A bootloader configuration unit, configured to read a target storage device from the at least two heterogeneous storage devices through a bootloader of the at least two pre - set heterogeneous storage devices, and obtain target identification information of the target storage device; The system is configured to determine a target device tree source file having a first call relationship with the target identification information, a target file system having a second call relationship with the target identification information, and a target application program having a third call relationship with the target identification information; Parsing the target storage device through the target device tree source file, the target file system, and the target application program to process data stored in the target storage device.
8. The system according to claim 7, wherein It further includes: An operating system kernel unit, configured to configure the device tree source files of the at least two heterogeneous storage devices, and there is a first call relationship between the identification information of the at least two heterogeneous storage devices and each device tree source file; A system file configuration unit for configuring the file systems of the at least two heterogeneous storage devices, where there is a second call relationship between the identification information of the at least two heterogeneous storage devices and each file system; An application configuration unit for configuring the applications of the at least two heterogeneous storage devices, where there is a third call relationship between the identification information of the at least two heterogeneous storage devices and each application.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory, and the memory stores programs or instructions that can run on the processor. When the programs or instructions are executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to execute the steps of the method according to any one of claims 1 to 6.