Board card upgrading management method and device
Through the BIOS with a unified extensible firmware interface, the basic information of the board is automatically obtained and parsed, and the problem of failure of the board is solved in extreme environments, and efficient and reliable upgrade management of the board is achieved.
Patent Information
- Application Number
- CN202510578384.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-06-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, it is difficult for the board to obtain basic information accurately in extreme environments, resulting in failure or errors in firmware upgrades, affecting the application reliability of the board.
Through the BIOS with a unified extensible firmware interface, automatically finds the type and assembly location of the memory chip, reads the basic information of the board, and uploads it to the operating system for analysis, to determine the software status and current software status at the factory, and performs optimization and upgrades.
It realizes the rapid and accurate acquisition of basic information of the board in extreme environments, ensures the accuracy and reliability of firmware upgrades, and improves the application reliability of the board.
Smart Images

Figure CN120104169A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of board card applications, and in particular to a method and device for upgrading and managing boards. Background Art
[0002] With the rapid development of embedded systems and Internet of Things technologies, boards, as core components of various electronic devices, are increasingly used in a wide range of scenarios and are becoming more complex. As the core software that controls the operation of boards, the timely update of versions and functions of the firmware of boards is crucial to ensure the stability and reliability of boards. In actual applications, boards may be deployed in various extreme environments, such as underwater equipment, aerospace equipment, industrial control systems, etc. These environments place higher requirements on the reliability and adaptability of boards.
[0003] In the prior art, the firmware upgrade of the board usually depends on the basic information of the board, such as the model, version number, etc., which is generally set on the surface of the board in the form of a label or printed text. The upgrade mechanism determines the firmware version and type that needs to be upgraded by reading this information, thereby completing the firmware update. However, in actual applications, the board may be installed in an environment that is difficult to access directly, such as the inside of deep-water equipment or aviation equipment, and the basic information of the board cannot be obtained physically. In addition, the surface information of the board may become blurred or unreadable due to environmental factors (such as corrosion and wear), further increasing the difficulty of obtaining basic information. Due to the inability to accurately obtain the basic information of the board, it is difficult for the upgrade mechanism to determine the appropriate firmware version and type, resulting in upgrade failure or errors, thereby affecting the actual application reliability of the board. Summary of the invention
[0004] The purpose of the present invention is to provide a method and device for upgrading and managing a board, so as to alleviate the technical problems that the board in actual application cannot be accurately upgraded and managed and the application reliability is low.
[0005] In a first aspect, the present invention provides a method for upgrading a board, comprising: Based on the BIOS of the unified extensible firmware interface, the BIOS searches for the type and the mounting position of the storage chip mounted on the first target board, and reads the basic information of the first target board from the target position in the storage chip; wherein the basic information includes firmware version information, product basic information, time node information and usage status information; The basic information is parsed based on the operating system of the first target board and used as an index to determine the first software status information of the first target board when it leaves the factory; According to the comparison result of the first software status information and the second software status information of the first target board at the current moment, the BIOS of the unified extensible firmware interface is modified, the target firmware of the first target board is optimized and upgraded, and the basic information of the first target board in the storage chip is updated.
[0006] In an optional implementation, the step of searching the type and mounting position of a storage chip mounted on the first target board based on the BIOS of the unified extensible firmware interface, and reading the basic information of the first target board from the target position in the storage chip includes: Acquire preset types of acquisition information of the first target board, and match the acquisition information with preset information in a preset mapping table; Based on the successfully matched board information, searching for the type and assembly position of the memory chip assembled on the first target board; Determining, according to the type of the storage chip, a target location in the storage chip for storing the basic information; Based on the target position, the I2C bus is controlled, and basic information of the first target board having a corresponding offset and information storage length in a storage chip is read from the assembly position of the first target board, and stored in an SMBIOS table.
[0007] In an optional implementation manner, the step of parsing the basic information based on the operating system of the first target board and using it as an index to determine the first software status information of the first target board when it leaves the factory includes: Uploading the basic information stored in the SMBIOS table to the operating system of the first target board, so that the operating system parses the basic information stored in the SMBIOS table based on the application scenario of the first target board; Determine the factory information of the first target board according to the basic product information of the first target board in the parsed basic information; wherein the factory information is used to characterize the factory batch of the first target board; The first software status information of the first target board when leaving the factory is determined based on the factory information.
[0008] In an optional embodiment, the method further comprises: In response to an operation instruction input by a user for the operating system of the first target board, query the basic information parsed by the first target board, or modify the BIOS of the unified extensible firmware interface, optimize and upgrade the target firmware of the first target board, and the basic information parsed by the first target board.
[0009] In an optional implementation, the steps of modifying the BIOS of the unified extensible firmware interface, optimizing and upgrading the target firmware of the first target board, and updating the basic information of the first target board in the storage chip according to the comparison result of the first software status information and the second software status information of the first target board at the current moment obtained include: obtaining second software status information of the first target board at the current moment based on the operating system of the first target board, and comparing the first software status information with the second software status information; According to the comparison results, determine the target firmware to be optimized and upgraded; The BIOS of the unified extensible firmware interface is modified based on the target firmware to be optimized and upgraded, and the firmware version information and / or usage status information of the first target board in the storage chip is updated.
[0010] In an optional implementation manner, before the step of searching, based on the UEFI BIOS, the type and mounting position of the storage chip mounted on the first target board and reading the basic information of the first target board from the target position in the storage chip, the method further comprises: Acquire the real-time performance parameters of each application software based on the monitoring module in the operating system of the current board, and compare the real-time performance parameters with the preset performance parameter range of the corresponding application software; If the real-time performance parameter exceeds the preset performance parameter range of the corresponding application software, it is determined that the application software corresponding to the real-time performance parameter is abnormal; The current board with abnormal application software is determined as the first target board.
[0011] In an optional embodiment, the method further comprises: Read and parse the basic information of the second target board from the preset file according to the unified extensible firmware interface; Finding the type and installation position of the storage chip installed on the second target board based on the BIOS of the unified extensible firmware interface, and burning the basic information of the second target board into the target position of the storage chip; or, Firstly read the basic information of the second target board from the preset file according to the unified extensible firmware interface, then find the type and assembly position of the storage chip assembled in the second target board, and report to the operating system of the second target board for parsing; The operating system of the second target board parses the reporting information of the unified extensible firmware interface, and burns the basic information of the second target board into a target position in the storage chip.
[0012] In a second aspect, the present invention provides an upgrade management device for a board, comprising: A reading module, based on the BIOS of the unified extensible firmware interface, searches for the type and assembly position of the storage chip assembled on the first target board, and reads the basic information of the first target board from the target position in the storage chip; wherein the basic information includes firmware version information, product basic information, time node information and usage status information; An index module, which parses the basic information based on the operating system of the first target board and uses it as an index to determine the first software status information of the first target board when it leaves the factory; The upgrade module modifies the BIOS of the unified extensible firmware interface according to the comparison result of the first software status information and the second software status information of the first target board at the current moment, optimizes and upgrades the target firmware of the first target board, and updates the basic information of the first target board in the storage chip.
[0013] In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and capable of running on the processor, wherein the processor implements a method as described in any one of the aforementioned embodiments when executing the program.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the method described in any one of the aforementioned embodiments is implemented.
[0015] The embodiment of the present invention provides an upgrade management method and device for a board card. The BIOS of the unified extensible firmware interface in the board card can automatically find the type of storage chip installed on the first target board card and the installation position of the storage chip, and read the basic information of the first target board card from the target position of the storage chip, and then upload the basic information to the operating system of the first target board card, so as to use this basic information as an index to quickly screen the factory information of the first target board card from a large number of factory-made board cards, and obtain the first software state of the first target board card when it leaves the factory, and then compare the second software state of the first target board card at this time with it, determine the abnormal firmware versions, modify the BIOS of the unified extensible firmware interface accordingly, and upgrade the target firmware of the first target board card accordingly. At the same time, the basic information of the upgraded first target board card is synchronously modified. Based on this method, the basic information of the target board card can be quickly and accurately obtained, and then the corresponding upgrade, management, troubleshooting and other operations can be implemented to ensure the application reliability of the target board card.
[0016] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A flow chart of a board upgrade management method provided by an embodiment of the present invention; Figure 2 A schematic diagram of functional modules of a board upgrade management device provided by an embodiment of the present invention; Figure 3 A schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] Currently, for actual application scenarios where basic information of boards is difficult to obtain, it takes a long time to determine from a large number of factory boards, which in turn affects the reliability and efficiency of upgrade management of the boards.
[0022] Based on this, an upgrade management method and device for a board provided by an embodiment of the present invention can obtain basic information of the board more quickly through the BIOS of the unified extensible firmware interface, thereby achieving more reliable upgrade and management.
[0023] To facilitate understanding of this embodiment, a board upgrade management method disclosed in an embodiment of the present invention is first introduced in detail. This method can be applied to an operating system and a control module set on the board, and can interact with peripheral devices, a host computer, a server, etc.
[0024] Figure 1 A flow chart of a board upgrade management method provided by an embodiment of the present invention.
[0025] Reference Figure 1 As shown, the method can be implemented by the following steps, including: Step S102: searching the type and mounting position of the memory chip mounted on the first target board based on the BIOS of the unified extensible firmware interface, and reading the basic information of the first target board from the target position in the memory chip.
[0026] Among them, the Uniformed Extensible Firmware Interface (UEFI) is a replacement for the traditional Basic Input Output System (BIOS). Computer hardware produced in recent years has basically integrated UEFI firmware (hereinafter referred to as BIOS). BIOS can provide the lowest-level and most direct hardware settings and controls for computers. Basic information includes firmware version information, product basic information, time node information and usage status information; firmware version information includes UEFI EC; product basic information includes product material number, product name (project number), serial number; time node information includes production date and factory date; usage status information includes maintenance times and startup times.
[0027] It should be noted that the first target board includes a unified extensible firmware interface UEFI, and the BIOS in the UEFI can automatically initialize the corresponding components when the first target board is powered on. At the same time, in an embodiment of the present invention, it is also used to automatically obtain basic information of the first target board; the first target board can be understood as a board to be upgraded and optimized, which may have application failures.
[0028] Step S104: parsing the basic information based on the operating system of the first target board and using it as an index to determine first software status information of the first target board when it leaves the factory.
[0029] Among them, the first target board also includes a system disk of the operating system, and the basic information can be used as an index to quickly locate from among many factory-made boards and find their first software status information when they leave the factory; the first software status information can be understood as the status information of each application software of the operating system of the first target board when it leaves the factory.
[0030] Step S106, based on the comparison result of the first software status information and the second software status information of the first target board at the current moment, modify the BIOS of the unified extensible firmware interface, optimize and upgrade the target firmware of the first target board, and update the basic information of the first target board in the storage chip.
[0031] Here, based on the comparison result of the second software status information of each application software of the operating system in the first target board at this time with the first software status information, it is possible to obtain the firmware that may be involved in the current fault, that is, upgrade such firmware, and modify the BIOS of the unified extensible firmware interface accordingly; at the same time, modify the basic information in the first target board, and present the modification record in the modified basic information.
[0032] In a preferred embodiment of actual application, the BIOS of the unified extensible firmware interface in the board can automatically find the type of storage chip installed on the first target board and the installation position of the storage chip, and read the basic information of the first target board from the target position of the storage chip, and then upload the basic information to the operating system of the first target board, so that the basic information can be used as an index to quickly screen the factory information of the first target board from a large number of factory boards, and obtain the first software state of the first target board when it leaves the factory, and then compare the second software state of the first target board at this time with it, determine the firmware versions of each abnormality, modify the BIOS of the unified extensible firmware interface accordingly, and upgrade the target firmware of the first target board accordingly. At the same time, the basic information of the upgraded first target board is synchronously modified; based on this method, the basic information of the target board can be quickly and accurately obtained, and then the corresponding upgrade, management and other operations can be implemented to ensure the application reliability of the target board.
[0033] Before step S102, the abnormal state of each board can be identified according to the corresponding monitoring function module in the operating system, and then the board with problems is selected for upgrading; the method also includes: Step 1.1), based on the monitoring module in the operating system of the current board, the real-time performance parameters of each application software are obtained, and the real-time performance parameters are compared with the preset performance parameter range of the corresponding application software.
[0034] Here, there is a monitoring module in the operating system for acquiring the performance parameters of each application software in real time and monitoring the running status of each application software.
[0035] In step 1.2), if the real-time performance parameter exceeds the preset performance parameter range of the corresponding application software, it is determined that the application software corresponding to the real-time performance parameter is abnormal.
[0036] Each application software may have a corresponding preset performance parameter range. The monitoring module can identify abnormal application software in real time.
[0037] In step 1.3), the current board with abnormal application software is determined as the first target board.
[0038] It is understandable that if there is a problem with at least one application software in the operating system of a certain board, the board can be used as the first target board to be optimized and upgraded.
[0039] In practical applications, the method provided in the embodiment of the present invention can also be used for burning basic information, and the method specifically includes: In step 2.1), basic information of the second target board is read and parsed from a preset file according to the unified extensible firmware interface.
[0040] Here, during the process of burning the basic information of the board, the basic information of a large number of boards can be stored in a preset file in advance, and UEFI reads the basic information of the second target board to be burned from the preset file.
[0041] By calling the I2C driver, the basic information is read and parsed into the SMBIOS standard data structure; then the UEFI Shell command is used to read the basic information parsed from the SMBIOS data table, that is, the electronic label information.
[0042] In step 2.2), the BIOS of the unified extensible firmware interface searches for the type and mounting position of the memory chip mounted on the second target board, and burns the basic information of the second target board into the target position of the memory chip.
[0043] In the UEFI stage, BIOS knows where to burn the basic information based on the preset storage chip installation position and installed chip type of each board; then reads the basic information through the UEFI Shell command, and finally completes the burning of the basic information through the I2C driver.
[0044] Alternatively, in addition to the above-mentioned basic information burning solution implemented by the unified extensible firmware interface UEFI, a solution for burning basic information through the operating system of the board is also included, as shown below: In step 2.3), the basic information of the second target board is first read from the preset file according to the unified extensible firmware interface, and then the type and assembly position of the storage chip assembled in the second target board are found, and reported to the operating system of the second target board for analysis.
[0045] In step 2.4), based on the operating system of the second target board, the reporting information of the unified extensible firmware interface is parsed, and the basic information of the second target board is burned into the target position in the storage chip.
[0046] In the operating system, to burn the electronic tag information into the storage chip, it is necessary to call the I2C library file to read and write the I2C device.
[0047] In addition, the operating system can obtain the electronic label information in the following two ways: first, it can directly call the dmidecode command to obtain the Type information corresponding to the electronic label; second, it can use the preset software to parse the SMBIOS information reported in the UEFI stage. The SMBIOS information is reported by UEFI when reading the storage chip information module, parsing it into a standard SMBIOS data structure, and then outputting the electronic label information after being parsed by the software.
[0048] Based on the above-mentioned embodiment, the basic information of each board can be automatically read by BIOS. Exemplarily, step S102 specifically includes: Step 3.1), obtain the preset type of collection information of the first target board, and match the collection information with the preset information in the preset mapping table.
[0049] As an optional embodiment, the first target board can be scanned by a visual device to obtain collection information of the first target board. The collection information may include an image, size, grayscale image, etc. of the first target board that can identify the installation position of the storage chip in the first target board, as well as data that identifies the type of the storage chip.
[0050] A preset mapping table is pre-stored in the BIOS. The mapping table pre-stores preset information corresponding to each first target board. The preset information includes the installation position of the storage chip in each first target board and the type of the storage chip.
[0051] Step 3.2), based on the successfully matched board information, find the type and assembly position of the memory chip assembled on the first target board.
[0052] Here, after matching in step 3.1), the board information of the current first target board and the type and assembly position of the memory chip corresponding to the board can be determined.
[0053] In step 3.3), a target location for storing basic information in the memory chip is determined according to the type of the memory chip.
[0054] It can be seen that different types of memory chips have corresponding target locations for basic information.
[0055] In step 3.4), the I2C bus is controlled based on the target position, and basic information of the first target board having a corresponding offset and information storage length in the storage chip is read from the assembly position of the first target board, and stored in the SMBIOS table.
[0056] Among them, the basic information has a corresponding offset and information storage length in the erasable storage chip. The corresponding information can be obtained by reading it according to the preset protocol. Since the information of the protocol is complex, after the protocol is specified, the burning and reading of the electronic tag information will be carried out in accordance with the content of the protocol, and the content of the protocol will be encapsulated in the corresponding software. The user does not need to know the specific content of the protocol during use. The software will provide an interface for reading and writing electronic tag information.
[0057] It should be noted that the basic information in the embodiment of the present invention, that is, the electronic tag information, is the basic information of the board stored in an erasable storage chip on the board. It is mainly read by the BIOS in the UEFI stage according to the type and installation position of the flash chip storing the electronic tag, through the I2C bus, and the basic information in the storage chip is parsed, stored in the SMBIOS table, and then reported to the operating system.
[0058] In some embodiments, step S104 can quickly locate the factory status of the board based on the acquired basic information of the first target board, specifically including: In step 4.1), the basic information stored in the SMBIOS table is uploaded to the operating system of the first target board, so that the operating system parses the basic information stored in the SMBIOS table based on the application scenario of the first target board.
[0059] Here, the operating system obtains the Type of the electronic tag through the dmidecode command to obtain the electronic tag information, or obtains and parses the electronic tag information through preset software.
[0060] Step 4.2), according to the basic product information of the first target board in the parsed basic information, determine the factory information of the first target board.
[0061] The factory information is used to characterize the factory batch of the first target board.
[0062] Step 4.3), based on the factory information, determine the first software status information of the first target board when it leaves the factory.
[0063] At this time, the software status of the first target board when it leaves the factory can be quickly located.
[0064] As an optional embodiment, various types of factory data of the first target board can be determined based on the basic information of the first target board as an index to manage the various types of factory data of the first target board, or to troubleshoot the causes of problems that customers are currently experiencing when using the first target board; for example, the factory data includes version data of the preset software, the factory time and usage time of the preset firmware, the product number and material number of the first target board, etc.
[0065] As another optional embodiment, the embodiment of the present invention can also realize querying and modifying basic information based on user demand triggering; specifically including: Step 5.1), in response to a first operation instruction input by a user to the operating system of the first target board, query the parsed basic information of the first target board.
[0066] The user can interact with the operating system of the first target board through the peripheral device, and when the user inputs the first operation instruction, the basic information corresponding to the first target board can be queried.
[0067] and / or, Step 5.2), in response to a second operation instruction input by the user for the operating system of the first target board, modify the BIOS of the unified extensible firmware interface, optimize and upgrade the target firmware of the first target board, and the basic information of the first target board after parsing.
[0068] Among them, the user can interact with the operating system of the first target board through the peripheral device. When the user inputs the second operation instruction, the BIOS and corresponding firmware of the first target board can be modified and upgraded according to the user's corresponding needs, and the corresponding basic information can be updated.
[0069] In some embodiments, the product can check whether the firmware version information corresponds to the basic information of the product during daily maintenance; after a problem occurs in the board, the software status and hardware status of the board can be quickly located by checking the firmware version information and the basic product information, and at the same time, the situation where the UEFI firmware has been changed is excluded, which helps technical support personnel to better analyze the cause of the problem; illustratively, step S106 can also be implemented by the following steps, specifically including: Step 6.1), based on the operating system of the first target board, the second software status information of the first target board at the current moment is obtained, and the first software status information and the second software status information are compared.
[0070] It is understandable that the actual second software status information at the user side at the current moment can be obtained through the network or actual hardware lines, and compared with the first software status information, various software data that differ from the factory at the current moment can be known, and then the target firmware that may have problems when the first target board card has an abnormality can be located.
[0071] Step 6.2) According to the comparison results, determine the target firmware to be optimized and upgraded.
[0072] At this point, the current version of such target firmware can be compared with the latest version and upgraded accordingly.
[0073] Step 6.3) based on the target firmware to be optimized and upgraded, the BIOS of the unified extensible firmware interface is modified, and the firmware version information and / or usage status information of the first target board in the storage chip is updated.
[0074] It is understandable that when the target firmware is upgraded, the basic information of the BIOS and the target board needs to be updated accordingly.
[0075] In some embodiments, the basic information of the board can also be used as the basis for product identity identification to provide product authentication functions for other applications; illustratively, if the operating system of the board needs to install new application software, there is an identification module in the application software to be installed. First, the basic information of the board, such as the project number, is queried. If the project number does not belong to the preset number range, the application software cannot be installed on this board to ensure the application security of the board.
[0076] The embodiment of the present invention adopts a multi-level architecture processing. First, in the hardware design stage of the EEPROM / SPI chip, the installation position of the storage chip in each board is designed to ensure a stable connection with the CPU. Secondly, the basic information of the board is quickly and accurately read through the UEFI BIOS, and the SMBIOS standard data structure is generated and then uploaded to the operating system; the operating system can parse the basic information of the board and provide burning, modification and query functions to meet various user needs.
[0077] In some embodiments, Figure 2 As shown, an embodiment of the present invention provides an upgrade management device for a board, including: A reading module, based on the BIOS of the unified extensible firmware interface, searches for the type and assembly position of the storage chip assembled on the first target board, and reads the basic information of the first target board from the target position in the storage chip; wherein the basic information includes firmware version information, product basic information, time node information and usage status information; An index module, which parses the basic information based on the operating system of the first target board and uses it as an index to determine the first software status information of the first target board when it leaves the factory; The upgrade module modifies the BIOS of the unified extensible firmware interface according to the comparison result of the first software status information and the second software status information of the first target board at the current moment, optimizes and upgrades the target firmware of the first target board, and updates the basic information of the first target board in the storage chip.
[0078] Furthermore, the reading module is also used to obtain preset types of acquisition information of the first target board, and match the acquisition information with preset information in a preset mapping table; based on the successfully matched board information, find the type and assembly position of the storage chip assembled on the first target board; according to the type of the storage chip, determine the target position in the storage chip for storing the basic information; based on the target position, control the I2C bus, read the basic information of the first target board with the corresponding offset and information storage length in the storage chip from the assembly position of the first target board, and store it in the SMBIOS table.
[0079] Furthermore, the index module is also used to upload the basic information stored in the SMBIOS table to the operating system of the first target board, so that the operating system can parse the basic information stored in the SMBIOS table based on the application scenario of the first target board; determine the factory information of the first target board according to the product basic information of the first target board in the parsed basic information; wherein the factory information is used to characterize the factory batch of the first target board; and determine the first software status information of the first target board when leaving the factory based on the factory information.
[0080] Furthermore, the device is also used to, in response to an operation instruction input by a user for the operating system of the first target board, query the basic information after parsing the first target board, or modify the BIOS of the unified extensible firmware interface, optimize and upgrade the target firmware of the first target board, and the basic information after parsing the first target board.
[0081] Furthermore, the upgrade module is also used to obtain the second software status information of the first target board at the current moment based on the operating system of the first target board, and compare the first software status information with the second software status information; determine the target firmware to be optimized and upgraded based on the comparison result; modify the BIOS of the unified extensible firmware interface based on the target firmware to be optimized and upgraded, and update the firmware version information and / or usage status information of the first target board in the storage chip.
[0082] Furthermore, before the step of searching the type and assembly position of the storage chip assembled on the first target board based on the BIOS of the unified extensible firmware interface and reading the basic information of the first target board from the target position in the storage chip, the device is also used to obtain the real-time performance parameters of each application software based on the monitoring module in the operating system of the current board, and compare the real-time performance parameters with the preset performance parameter range of the corresponding application software; if the real-time performance parameters exceed the preset performance parameter range of the corresponding application software, it is determined that the application software corresponding to the real-time performance parameters has an abnormality; and the current board with the abnormal application software is determined to be the first target board.
[0083] Furthermore, the device is also used to read and parse basic information of the second target board from a preset file according to a unified extensible firmware interface; search for the type and assembly position of a storage chip assembled on the second target board based on the BIOS of the unified extensible firmware interface, and burn the basic information of the second target board to the target position in the storage chip; or, first read the basic information of the second target board from a preset file according to the unified extensible firmware interface, then search for the type and assembly position of the storage chip assembled on the second target board, and report it to the operating system of the second target board for parsing; parse the reported information of the unified extensible firmware interface based on the operating system of the second target board, and burn the basic information of the second target board to the target position in the storage chip.
[0084] An embodiment of the present invention provides an electronic device for implementing an electronic device. In this embodiment, the electronic device may be, but is not limited to, a personal computer (PC), a notebook computer, a monitoring device, a server, or other computer device with analysis and processing capabilities.
[0085] As an exemplary embodiment, see Figure 3 The electronic device 110 includes a communication interface 111, a processor 112, a memory 113 and a bus 114. The processor 112, the communication interface 111 and the memory 113 are connected via the bus 114. The memory 113 is used to store a computer program that supports the processor 112 to execute the method. The processor 112 is configured to execute the program stored in the memory 113.
[0086] The machine-readable storage medium mentioned in this article can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0087] The non-volatile medium may be a non-volatile memory, a flash memory, a storage drive (such as a hard drive), any type of storage disk (such as a CD, DVD, etc.), or a similar non-volatile storage medium, or a combination thereof.
[0088] It can be understood that the specific operation methods of each functional module in this embodiment can refer to the detailed description of the corresponding steps in the above method embodiment, and will not be repeated here.
[0089] The computer-readable storage medium provided in the embodiment of the present invention stores a computer program. When the computer program code is executed, the method described in any of the above embodiments can be implemented. For specific implementation, please refer to the method embodiment, which will not be described in detail here.
[0090] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0091] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0092] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0093] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or can easily conceive of changes, or make equivalent replacements for some of the technical features therein. Such modifications, changes or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the protection scope of the present invention.
Claims
1. A method for upgrading and managing a board, characterized in that: include: Based on the BIOS of the unified extensible firmware interface, the BIOS searches for the type and the mounting position of the storage chip mounted on the first target board, and reads the basic information of the first target board from the target position in the storage chip; wherein the basic information includes firmware version information, product basic information, time node information and usage status information; The basic information is parsed based on the operating system of the first target board and used as an index to determine the first software status information of the first target board when it leaves the factory; According to the comparison result of the first software status information and the second software status information of the first target board at the current moment, the BIOS of the unified extensible firmware interface is modified, the target firmware of the first target board is optimized and upgraded, and the basic information of the first target board in the storage chip is updated.
2. The method according to claim 1, characterized in that The steps of searching the type and the mounting position of the storage chip mounted on the first target board based on the BIOS of the unified extensible firmware interface, and reading the basic information of the first target board from the target position in the storage chip include: Acquire preset types of acquisition information of the first target board, and match the acquisition information with preset information in a preset mapping table; Based on the successfully matched board information, searching for the type and assembly position of the memory chip assembled on the first target board; Determining, according to the type of the storage chip, a target location in the storage chip for storing the basic information; Based on the target position, the I2C bus is controlled, and basic information of the first target board having a corresponding offset and information storage length in a storage chip is read from the assembly position of the first target board, and stored in an SMBIOS table.
3. The method according to claim 1 or 2, characterized in that: The step of parsing the basic information based on the operating system of the first target board and using it as an index to determine the first software status information of the first target board when it leaves the factory includes: Uploading the basic information stored in the SMBIOS table to the operating system of the first target board, so that the operating system parses the basic information stored in the SMBIOS table based on the application scenario of the first target board; Determine the factory information of the first target board according to the basic product information of the first target board in the parsed basic information; wherein the factory information is used to characterize the factory batch of the first target board; The first software status information of the first target board when leaving the factory is determined based on the factory information.
4. The method according to claim 1, characterized in that: The method further comprises: In response to an operation instruction input by a user for the operating system of the first target board, query the basic information parsed by the first target board, or modify the BIOS of the unified extensible firmware interface, optimize and upgrade the target firmware of the first target board, and the basic information parsed by the first target board.
5. The method according to claim 1, characterized in that According to the comparison result of the first software status information and the second software status information of the first target board at the current moment, the steps of modifying the BIOS of the unified extensible firmware interface, optimizing and upgrading the target firmware of the first target board, and updating the basic information of the first target board in the storage chip include: obtaining second software status information of the first target board at the current moment based on the operating system of the first target board, and comparing the first software status information with the second software status information; According to the comparison results, determine the target firmware to be optimized and upgraded; The BIOS of the unified extensible firmware interface is modified based on the target firmware to be optimized and upgraded, and the firmware version information and / or usage status information of the first target board in the storage chip is updated.
6. The method according to claim 1, characterized in that Before the step of searching the type and mounting position of the storage chip mounted on the first target board based on the BIOS of the unified extensible firmware interface and reading the basic information of the first target board from the target position in the storage chip, the method further includes: Acquire the real-time performance parameters of each application software based on the monitoring module in the operating system of the current board, and compare the real-time performance parameters with the preset performance parameter range of the corresponding application software; If the real-time performance parameter exceeds the preset performance parameter range of the corresponding application software, it is determined that the application software corresponding to the real-time performance parameter is abnormal; The current board with abnormal application software is determined as the first target board.
7. The method according to claim 1, characterized in that The method further comprises: Read and parse the basic information of the second target board from the preset file according to the unified extensible firmware interface; Finding the type and installation position of the storage chip installed on the second target board based on the BIOS of the unified extensible firmware interface, and burning the basic information of the second target board into the target position of the storage chip; or, Firstly read the basic information of the second target board from the preset file according to the unified extensible firmware interface, then find the type and assembly position of the storage chip assembled in the second target board, and report to the operating system of the second target board for parsing; The operating system of the second target board parses the reporting information of the unified extensible firmware interface, and burns the basic information of the second target board into a target position in the storage chip.
8. A board upgrade management device, characterized in that: include: A reading module, based on the BIOS of the unified extensible firmware interface, searches for the type and assembly position of the storage chip assembled on the first target board, and reads the basic information of the first target board from the target position in the storage chip; wherein the basic information includes firmware version information, product basic information, time node information and usage status information; An index module, which parses the basic information based on the operating system of the first target board and uses it as an index to determine the first software status information of the first target board when it leaves the factory; The upgrade module modifies the BIOS of the unified extensible firmware interface according to the comparison result of the first software status information and the second software status information of the first target board at the current moment, optimizes and upgrades the target firmware of the first target board, and updates the basic information of the first target board in the storage chip.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a program stored in the memory and capable of being run on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for obtaining computer hardware information on the basis of UEFI (Unified Extensible Firmware Interface) driving mode
CN104915280A
BIOS option fault recovery method and device, equipment and storage medium
CN115129517A
Method for updating UEFI wireless network card drive, chip, device, computer, medium and product
CN119902783A