Single board matching method and device

By reading multiple soft VIDs and configuration files from the flash memory, obtaining the target soft VID and matching the corresponding configuration files, the problem in the existing technology that configuration file encapsulation is not conducive to version unification is solved, and the flexibility and maintenance of the single board are achieved. Improvement of efficiency.

CN118778972APending Publication Date: 2024-10-15SANECHIPS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310351656.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the configuration file is encapsulated into a separate binary file and burned into the flash memory, which is not conducive to the unification of versions, and when the board is replaced, it needs to be replaced with the corresponding configuration file and re-burned, resulting in a waste of resources and inconsistent versions. question.

Method used

By reading multiple soft VIDs and corresponding configuration files from the flash memory, the target soft VID is obtained and matched to the corresponding configuration file in order to match the target board, achieving unified management of soft VIDs and configuration files, and avoiding the need to re-burn configuration files. need.

Benefits of technology

It achieves unified management of configuration files, avoids the waste of hardware resources and inconsistent versions, and improves the flexibility and maintenance efficiency of single boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778972A_ABST
    Figure CN118778972A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a single board matching method and device, and the method comprises the steps: reading a first target soft VID from a plurality of soft VIDs stored in a flash memory, and storing the plurality of soft VIDs and configuration files of corresponding types in the flash memory; obtaining a first configuration file of a corresponding type according to the first target soft VID; by matching the first configuration file with the single board of the type corresponding to the first target soft VID, the problems that in the related technology, the configuration file is packaged into an independent binary file and burnt into a flash memory, so that the unification of versions is not facilitated, and when the single board is replaced, the single board needs to be replaced with the corresponding configuration file to be burnt again can be solved; a plurality of soft VIDs and configuration files of the corresponding types are stored in the flash memory, the target soft VID and the configuration files of the corresponding types are obtained from the flash memory, single boards of the corresponding types are matched, the single boards of the corresponding types can be matched through one soft VID, and the configuration files do not need to be burnt again when the single boards are replaced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular, to a single board matching method and device. Background Art

[0002] The configuration file is used to describe the configuration of the single board. The configuration file contains the basic information of the single board, including the basic information of the lights and buttons, network port information, Wi-Fi information, voice information, etc. During the single board startup process, the configuration file corresponding to the single board will be selected to start the single board first. Only when the correct configuration file is selected can the single board start normally. Otherwise, the startup of the single board will cause some serious problems, including the failure of related lights to light up, button failure, inability to access the Internet, etc., and even the single board will be bricked. In response to the above problems, a common solution is to reserve some pins on the hardware to distinguish different types of single boards, which is called the hard version identification (Version Identify, abbreviated as VID) solution. However, the defects of this solution are also very obvious. Not only will it occupy hardware pin resources and cause resource waste, but the number of VIDs represented by the hardware is also very limited. Among them, the relationship between the number of pins n and the number of VIDs is: NUM(VID) = 2 n In view of the above defects, the related art proposes to encapsulate the configuration file into a separate binary file and burn it into the flash memory. This method is not conducive to the unification of versions. When a single board is replaced, it is necessary to replace it with the corresponding configuration file and re-burn it.

[0003] In the related art, packaging the configuration file into a separate binary file and burning it into the flash memory is not conducive to version unification, and when the single board is replaced, the corresponding configuration file needs to be replaced and re-burned. No solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a single board matching method and device to at least solve the problem in the related art that packaging the configuration file into a separate binary file and burning it into a flash memory is not conducive to version unification, and when the single board is replaced, it is necessary to replace it with the corresponding configuration file and re-burn it.

[0005] According to an embodiment of the present application, a single board matching method is provided, the method comprising:

[0006] Reading a first target soft VID from a plurality of soft VIDs stored in a flash memory, wherein the plurality of soft VIDs and configuration files of corresponding types are stored in the flash memory;

[0007] Acquire a first configuration file of a corresponding type according to the first target soft VID;

[0008] The first configuration file is used to match a board of a type corresponding to the first target soft VID.

[0009] According to another embodiment of the present application, a single board matching device is also provided, the device comprising:

[0010] A reading module, configured to read a first target soft VID from a plurality of soft VIDs stored in a flash memory, wherein the plurality of soft VIDs and configuration files of corresponding types are stored in the flash memory;

[0011] A first acquisition module, configured to acquire a first configuration file of a corresponding type according to the first target soft VID;

[0012] The first matching module is configured to match a board of a type corresponding to the first target soft VID through the first configuration file.

[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0015] In an embodiment of the present application, a first target soft VID is read from a flash memory, wherein the flash memory stores multiple soft VIDs and configuration files of corresponding types; a first configuration file of corresponding type is obtained according to the first target soft VID; and a single board of corresponding type is matched with the first configuration file through the first configuration file, so that the problem that the configuration file is encapsulated into a separate binary file and burned into the flash memory in the related art is not conducive to version unification, and when the single board is replaced, it is necessary to replace it with the corresponding configuration file and re-burn it. Multiple soft VIDs and configuration files of corresponding types are stored in the flash memory, and the target soft VID and the configuration file of corresponding type are obtained from the flash memory to match the single board of corresponding type. One type of single board can be matched through one soft VID, and there is no need to re-burn the configuration file when the single board is replaced. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a hardware structure block diagram of a computer device of a single board matching method according to an embodiment of the present application;

[0017] Figure 2 is a flow chart of a single board matching method according to an embodiment of the present application;

[0018] Figure 3 is a schematic diagram of single board matching according to an embodiment of the present application;

[0019] Figure 4 The process of single board matching based on soft VID according to the embodiment of the present application is as follows Figure 1 ;

[0020] Figure 5 The process of single board matching based on soft VID according to the embodiment of the present application is as follows Figure 2 ;

[0021] Figure 6 It is a block diagram of a single board matching device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a computer device or a similar computing device. Taking running on a computer device as an example, Figure 1 is a hardware structure block diagram of a computer device of a single board matching method according to an embodiment of the present application, such as Figure 1 As shown, the computer device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device) and a memory 104 for storing data, wherein the above-mentioned computer device may also include a transmission device 106 for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the single board matching method in the embodiment of the present application. The processor 102 executes various functional applications and single board matching by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a single board matching method running on the above-mentioned computer device is provided. Figure 2 is a flow chart of a single board matching method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0028] Step S202, reading a first target soft VID from a plurality of soft VIDs stored in a flash memory, wherein the flash memory stores the plurality of soft VIDs and configuration files of corresponding types;

[0029] Step S204, obtaining a first configuration file of a corresponding type according to the first target soft VID;

[0030] Step S206: Match a board of a type corresponding to the first target soft VID through the first configuration file.

[0031] In the embodiment of the present application, the above step S204 may specifically include:

[0032] S2041, if the board-level configuration information is described in code, match the target board-level configuration information corresponding to the first target soft VID from a plurality of structure arrays, wherein each of the structure arrays defines the board-level configuration information and the soft VID of the represented single board;

[0033] S2042, if the board-level configuration information is described in a device tree manner, obtain a binary file (Device Tree Blob, DTB for short) generated by the device tree corresponding to the first target soft VID, wherein the DTB is obtained by compiling the board-level configuration information in a device tree manner; the first configuration file is the board-level configuration information.

[0034] Further, S2041 may specifically include: comparing the first target soft VID with the soft VIDs defined in the multiple structure arrays respectively; and determining that the board-level configuration information defined in the target structure array having the same comparison result is the target board-level configuration information.

[0035] In one embodiment, after the above step S2041, the method further includes: the structure array also defines basic information of the single board, assigning the basic information of the single board defined in the target structure array to the single board of the type corresponding to the first configuration file, and initializing the single board of the type corresponding to the first configuration file.

[0036] In another embodiment, after matching the target board-level configuration information corresponding to the first target soft VID from the multiple structure arrays, the first target soft VID is stored in a preset memory, the kernel is entered, and the first configuration file is matched in the kernel; after obtaining the binary file DTB generated by the device tree corresponding to the first target soft VID, the first configuration file is passed to the kernel by loading a kernel image (boot application image from memory, referred to as bootm).

[0037] In another embodiment, before the above step S202, the method further includes: while burning the first target soft VID and the corresponding configuration file into the flash memory, storing the first target soft VID into the personalized parameters, wherein the first target soft VID in the personalized parameters is used to restore the first target soft VID in the flash memory when the first target soft VID in the flash memory is abnormal, thereby achieving fault tolerance of the soft VID. That is, the current soft VID is saved into the personalized parameters, mainly to back up the soft VID. In order to avoid damage to the soft VID when the flash memory is a bad block, when the soft VID read on the flash is abnormal, it is restored by the VID in the personalized parameters.

[0038] In an embodiment of the present application, the soft VID can also be switched. Specifically, after matching the single board of the type corresponding to the first target soft VID through the first configuration file, the first target soft VID is switched; the second configuration file of the corresponding type is obtained according to the switched second target soft VID; and the single board of the type corresponding to the second target soft VID is matched according to the second configuration file.

[0039] Further, switching the first target soft VID may specifically include: determining whether the chip type corresponding to the first target soft VID is consistent with the chip type of the single board of the type corresponding to the first target soft VID; if the judgment result is inconsistent, refusing to switch the first target soft VID; if the judgment result is consistent, determining whether the second target soft VID used for switching is in a preset VID list; if the judgment result is yes, switching the first target soft VID to the second target soft VID in the flash memory; if the judgment result is no, refusing to switch the first target soft VID.

[0040] In the embodiment of the present application, the soft VID solution is used to burn the soft VID and all possible configuration files into the flash memory, and the corresponding configuration file is selected according to the soft VID. In short, each type of single board in the comparative document requires a separate configuration file, and the soft VID solution can realize one software version to adapt to different types of single boards.

[0041] The soft VID is proposed mainly to solve the problem that the number of VIDs is limited and that it will occupy hardware pin resources, resulting in resource waste. The soft VID is a 4-byte unsigned integer and is stored in a specified flash partition. When the universal boot loader (UBOOT) is started, it will first read the data stored in the soft VID in the partition, and then check whether magic_num is correct. If it is not correct, it will be treated as 0 by default.

[0042] The soft VID in this embodiment is a 4-byte unsigned integer, one of which is used to represent the chip type. When switching the VID, first determine whether the chip type corresponding to the VID is consistent with the chip type of the board. If not, switching is not allowed. If yes, then determine whether the switched VID is in the pre-set VID list. If not, switching is not allowed.

[0043] In order to prevent the soft VID from being damaged, two methods, primary and backup, are used to store the soft VID. One is stored in the flash partition, and the other is stored in the personalized parameters. When the VID in the personalized parameters is different from the VID in the flash partition, the correct VID is used for recovery.

[0044] Figure 3 is a schematic diagram of single board matching according to an embodiment of the present application, such as Figure 3 As shown, it includes UBOOT, kernel and flash memory.

[0045] UBOOT, boot the kernel.

[0046] The kernel is the bottom layer of the entire operating system. It is responsible for driving the entire hardware and providing the core functions required by various systems.

[0047] DTB, the generated binary device tree file.

[0048] Flash memory is used to store data.

[0049] There are two ways to describe board-level information, one is to use code, and the other is to use device tree. Our solution is implemented in both scenarios. The following introduces the implementation solutions for the two scenarios respectively.

[0050] For the method of using code to describe board-level information, during the boot process, the soft VID in the flash is first read, and the relevant board-level configuration information is matched according to this VID. The board-level configuration information is defined on a structure array. Each structure represents a single board, which contains the soft VID information corresponding to the single board, pinmux settings, and related settings of lights and buttons. During the matching process, the read soft VID is compared with the VID defined in the structure array. If they are the same, it means that the configuration of this single board is found, and the other information defined in the structure is assigned to this single board for initialization. Before the kernel is started, the soft VID read from the flash is placed in the specified memory. During the kernel startup process, the soft VID information in the memory is first read, and at the same time, the kernel defines a structure array similar to that under boot to represent the board-level configuration information, and adds some configuration information that needs to be started under the kernel. The matching process is similar to boot. Figure 4 The process of single board matching based on soft VID according to the embodiment of the present application is as follows Figure 1 ,like Figure 4 As shown, including:

[0051] Step S401, enter BootLoader, then enter UBOOT;

[0052] Step S402, read the soft VID from the flash memory, and verify the MAGIC of the read soft VID;

[0053] Step S403, determining whether the verification is passed. If the verification is not passed, executing step S404; if the verification is passed, executing step S405;

[0054] Step S404, default VID=0, use default board-level configuration information;

[0055] Step S405, obtaining corresponding board-level configuration information according to the read VID;

[0056] Step S406, storing the soft VID read from the flash memory into a designated preset memory;

[0057] Step S407, entering the kernel, then reading the soft VID from the preset memory, and verifying the MAGIC of the soft VID;

[0058] Step S408, determining whether the verification is passed. If the verification is not passed, executing step S409; if the verification is passed, executing step S410;

[0059] Step S409, default VID=0, use default board-level configuration information;

[0060] Step S410, obtaining corresponding board-level configuration information from the flash memory according to the VID read from the preset memory, and matching a single board of a corresponding type according to the board-level configuration information;

[0061] The matching of soft VID in kernel is similar to that in boot. The main reason for reading soft VID into memory is that the flash memory cannot be accessed for a period of time during the board startup process. At this time, it is necessary to know the soft VID corresponding to the board, so the soft VID is read into memory.

[0062] Step S411, implementing the acquisition and setting functions of the soft VID in bspdriver.ko, wherein bspdriver.ko can implement the acquisition and setting functions of the soft VID;

[0063] Step S412, integrate the soft VID setting command into sismac to switch the read soft VID. After the version is successfully started, the integrated command can be used to switch the soft VID (calling the bspdriver.ko soft VID acquisition and setting function).

[0064] The way of using device tree is slightly different from the code description of board-level configuration information. The same device tree file is used under boot and kernel. The relevant device tree in the kernel is passed through bootm and does not need to be matched in the kernel. Figure 5 The process of single board matching based on soft VID according to the embodiment of the present application is as follows Figure 2 ,like Figure 5 As shown, including:

[0065] Step S501, enter BootLoader, then enter UBOOT;

[0066] Step S502, read the soft VID from the flash memory, and verify the MAGIC of the read soft VID;

[0067] Step S503, determining whether the verification is passed. If the verification is not passed, executing step S504; if the verification is passed, executing step S505;

[0068] Step S504, default VID=0, use default DTB;

[0069] Step S505, obtaining the corresponding DTB according to the read VID, and matching the corresponding board according to the DTB;

[0070] Step S506, constructing boot parameters of bootm and DTB that the kernel needs to load according to the VID, that is, passing the DTB to the kernel through bootm;

[0071] The device tree is used to represent the board-level configuration information. The boot and kernel use the same device tree file. Matching is performed under boot. After the match is successful, the corresponding device tree file is obtained. The bootm command is used under boot to load the device tree and the kernel image to the specified address.

[0072] Step S507, entering the kernel;

[0073] Step S508, implementing the acquisition and setting functions of the soft VID in bspdriver.ko, wherein bspdriver.ko can implement the acquisition and setting functions of the soft VID;

[0074] Step S509, integrate the soft VID setting command into sismac to switch the read soft VID. After the version is successfully started, the integrated command can be used to switch the soft VID. (The bspdriver.ko soft VID acquisition and setting function is called).

[0075] The embodiment of the present application also provides a single board matching device, Figure 6 is a block diagram of a single board matching device according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0076] A reading module 62, configured to read a first target soft VID from a plurality of soft VIDs stored in a flash memory, wherein the plurality of soft VIDs and configuration files of corresponding types are stored in the flash memory;

[0077] A first acquisition module 64, configured to acquire a first configuration file of a corresponding type according to the first target soft VID;

[0078] The first matching module 66 is configured to match a board of a type corresponding to the first target soft VID through the first configuration file.

[0079] In one embodiment, the first acquisition module 64 includes:

[0080] A matching unit, configured to match the target board-level configuration information corresponding to the first target soft VID from a plurality of structure arrays if the board-level configuration information is described in code, wherein each of the structure arrays defines the board-level configuration information and the soft VID of the represented single board;

[0081] an acquiring unit, configured to acquire a binary file DTB generated by a device tree corresponding to the first target soft VID if the board-level configuration information is described in a device tree manner, wherein the DTB is obtained by compiling the board-level configuration information in the device tree manner;

[0082] The first configuration file is the board-level configuration information.

[0083] In one embodiment, the matching unit is further configured to compare the first target soft VID with the soft VIDs defined in the multiple structure arrays respectively; and determine that the board-level configuration information defined in the target structure array having the same comparison result is the target board-level configuration information.

[0084] In one embodiment, the device further comprises:

[0085] The initialization module is used for defining basic information of the single board in the structure array, assigning the basic information of the single board defined in the target structure array to the single board of the type corresponding to the first configuration file, and initializing the single board of the type corresponding to the first configuration file.

[0086] In one embodiment, the matching unit is further configured to, after matching the target board-level configuration information corresponding to the first target soft VID from the plurality of structure arrays, store the first target soft VID into a preset memory, enter the kernel, and match the first configuration file in the kernel; or

[0087] The acquisition unit is further configured to transfer the first configuration file to the kernel through bootm after acquiring the binary file DTB generated by the device tree corresponding to the first target soft VID.

[0088] In one embodiment, the device further comprises:

[0089] A storage module is used to store the first target soft VID in the personalized parameters while burning the first target soft VID and the corresponding configuration file into the flash memory, wherein the first target soft VID in the personalized parameters is used to restore the first target soft VID in the flash memory when the soft VID in the flash memory is abnormal.

[0090] In one embodiment, the device further comprises:

[0091] A switching module, used for switching the first target soft VID;

[0092] A second acquisition module, used for acquiring a second configuration file of a corresponding type according to the switched second target soft VID;

[0093] The second matching module is configured to match a board of a type corresponding to the second target soft VID according to the second configuration file.

[0094] In one embodiment, the switching module is also used to determine whether the chip type corresponding to the first target soft VID is consistent with the chip type of the single board of the type corresponding to the first target soft VID; if the judgment result is inconsistent, refuse to switch the first target soft VID; if the judgment result is consistent, determine whether the second target soft VID used for switching is in a preset VID list; if the judgment result is yes, switch the first target soft VID to the second target soft VID in the flash memory; if the judgment result is no, refuse to switch the first target soft VID.

[0095] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0096] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0097] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0098] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0099] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0100] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0101] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A single board matching method, characterized in that: The method comprises: Reading a first target soft VID from a plurality of soft version identifiers VID stored in a flash memory, wherein the flash memory stores the plurality of soft VIDs and configuration files of corresponding types; Acquire a first configuration file of a corresponding type according to the first target soft VID; The first configuration file is used to match a board of a type corresponding to the first target soft VID.

2. The method according to claim 1, characterized in that Acquiring a first configuration file of a corresponding type according to the first target soft VID includes: If the board-level configuration information is described in code, the target board-level configuration information corresponding to the first target soft VID is matched from a plurality of structure arrays, wherein each of the structure arrays defines the board-level configuration information and the soft VID of the represented single board; If the board-level configuration information is described in a device tree manner, obtaining a binary file DTB generated by the device tree corresponding to the first target soft VID, wherein the DTB is obtained by compiling the board-level configuration information in the device tree manner; The first configuration file is the board-level configuration information.

3. The method according to claim 2, characterized in that Matching the target board-level configuration information corresponding to the first target soft VID from a plurality of structure arrays includes: respectively comparing the first target soft VID with the soft VIDs defined in the plurality of structure arrays; The board-level configuration information defined in the target structure array whose comparison results are the same is determined to be the target board-level configuration information.

4. The method according to claim 3, characterized in that After matching the target board-level configuration information corresponding to the first target soft VID from multiple structure arrays, the method further includes: The structure array also defines basic information of the single board, assigns the basic information of the single board defined in the target structure array to the single board of the type corresponding to the first configuration file, and initializes the single board of the type corresponding to the first configuration file.

5. The method according to claim 2, characterized in that: The method further comprises: After matching the target board-level configuration information corresponding to the first target soft VID from the plurality of structure arrays, storing the first target soft VID in a preset memory, entering a kernel, and matching the first configuration file in the kernel; or After obtaining the binary file DTB generated by the device tree corresponding to the first target soft VID, the first configuration file is transferred to the kernel by loading the kernel image bootm.

6. The method according to claim 1, characterized in that Before reading the first target soft version identifier VID from the flash memory, the method further includes: While burning the first target soft VID and the corresponding configuration file into the flash memory, the first target soft VID is stored in the personalized parameters, wherein the first target soft VID in the personalized parameters is used to restore the first target soft VID in the flash memory when the first target soft VID in the flash memory is abnormal.

7. The method according to any one of claims 1 to 6, characterized in that After matching the first target soft VID with a board of a type corresponding to the first target soft VID through the first configuration file, the method further includes: Switching the first target soft VID; Acquire a second configuration file of a corresponding type according to the switched second target soft VID; A board of a type corresponding to the second target soft VID is matched according to the second configuration file.

8. The method according to claim 7, characterized in that Switching the first target soft VID includes: Determine whether the chip type corresponding to the first target soft VID matches the chip type of the board of the type corresponding to the first target soft VID; If the judgment result is that the product does not meet the requirements, refusing to switch the first target soft VID; If the result of the judgment is compliance, determining whether the second target soft VID for switching is in a preset VID list; If the judgment result is yes, switching the first target soft VID to the second target soft VID in the flash memory; If the judgment result is no, the switching of the first target soft VID is rejected.

9. A single board matching device, characterized in that: The device comprises: A reading module, configured to read a first target soft VID from a plurality of soft version identifiers VID stored in a flash memory, wherein the plurality of soft VIDs and configuration files of corresponding types are stored in the flash memory; A first acquisition module, configured to acquire a first configuration file of a corresponding type according to the first target soft VID; The first matching module is configured to match a board of a type corresponding to the first target soft VID through the first configuration file.

10. A computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein: The computer program is configured to execute the method according to any one of claims 1 to 8 when executed.

11. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 8.