+

CN114385379B - Method, system, terminal and storage medium for detecting on-board information refreshing - Google Patents

Method, system, terminal and storage medium for detecting on-board information refreshing Download PDF

Info

Publication number
CN114385379B
CN114385379B CN202111550533.3A CN202111550533A CN114385379B CN 114385379 B CN114385379 B CN 114385379B CN 202111550533 A CN202111550533 A CN 202111550533A CN 114385379 B CN114385379 B CN 114385379B
Authority
CN
China
Prior art keywords
cache
information
onboard information
onboard
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111550533.3A
Other languages
Chinese (zh)
Other versions
CN114385379A (en
Inventor
刘传彬
赵肖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111550533.3A priority Critical patent/CN114385379B/en
Publication of CN114385379A publication Critical patent/CN114385379A/en
Application granted granted Critical
Publication of CN114385379B publication Critical patent/CN114385379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of servers, and particularly provides a method, a system, a terminal and a storage medium for detecting on-board information refreshing, which comprise the following steps: identifying the firmware of the target hardware and a first cache and a second cache for refreshing the on-board information, and setting the first cache as a valid cache; after the on-board information is written, resetting the firmware and switching the effective cache into a second cache; and reading actual on-board information in target hardware, and comparing the consistency of the actual on-board information and the updated on-board information. According to the invention, by setting two caches, after the on-board information is written, the hardware switching cache is reset, the on-board information is written into the hardware, and after the cache is switched, the on-board information written into the hardware is directly read, so that the on-board information is detected. The invention saves the time of one-time startup and shutdown, reduces the time cost and improves the detection efficiency of the on-board information.

Description

板载信息刷写检测方法、系统、终端及存储介质Onboard information flash detection method, system, terminal and storage medium

技术领域Technical field

本发明涉及服务器技术领域,具体涉及一种板载信息刷写检测方法、系统、终端及存储介质。The invention relates to the field of server technology, and specifically to an onboard information rewriting detection method, system, terminal and storage medium.

背景技术Background technique

随着PCBA技术的发展,对于直接在硬件上携带板卡信息的需求越来越强烈,将板卡信息刷写在硬件上,然后通过软件的方式再读取出来,在服务器出货前的整机测试以及客户使用过程中都非常方便。目前刷写板载信息之后,板载信息并没有立即写入到硬件中,而是先写入了缓存中,需要通过断电才能实现写入真实硬件中。如果想检查板卡信息是否真正的写入了,需要重新上电开机才能检查。With the development of PCBA technology, there is an increasingly strong demand for carrying board information directly on the hardware. The board information is written on the hardware and then read out through software. The whole process before the server is shipped It is very convenient during machine testing and customer use. Currently, after the onboard information is flashed, the onboard information is not written to the hardware immediately, but is first written to the cache. It needs to be powered off to write to the real hardware. If you want to check whether the board information is actually written, you need to power on again to check.

现有的技术方案,一种方式是不检查板载信息是否真正写入,这种方式会导致问题板卡流出工厂,对于质量管控是个隐患,另一种方式是断电之后再重新上电来检查板载信息是否真正写入,这种方式测试时间长、测试成本高,在同等产能要求下工装投入也会翻倍。One of the existing technical solutions is not to check whether the onboard information is actually written. This method will cause the problematic board to flow out of the factory, which is a hidden danger for quality control. The other method is to turn off the power and then power it on again. Check whether the onboard information is actually written. This method takes a long time to test and is costly. The tooling investment will also double under the same production capacity requirements.

发明内容Contents of the invention

针对现有技术的上述不足,本发明提供一种板载信息刷写检测方法、系统、终端及存储介质,以解决上述技术问题。In view of the above-mentioned deficiencies of the prior art, the present invention provides an onboard information rewriting detection method, system, terminal and storage medium to solve the above-mentioned technical problems.

第一方面,本发明提供一种板载信息刷写检测方法,包括:In a first aspect, the present invention provides an onboard information rewriting detection method, which includes:

识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;Identify the firmware of the target hardware and the first cache and the second cache used to flash onboard information, and set the first cache as a valid cache;

在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;After flashing the onboard information, reset the firmware and switch the effective cache to the second cache;

读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性。Read the actual onboard information in the target hardware, and compare the consistency between the actual onboard information and the flashed onboard information.

进一步的,在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存,包括:Further, after flashing the onboard information, reset the firmware and switch the effective cache to the second cache, including:

扫描板卡的板载信息并将板载信息刷写至目标硬件;Scan the onboard information of the board and flash the onboard information to the target hardware;

读取当前有效缓存的信息,并将所述信息作为初始生效缓存信息缓存;Read the currently valid cached information and cache the information as the initial valid cached information;

执行重置命令,并在重置过程中切换有效缓存;Execute the reset command and switch the effective cache during the reset process;

重新读取有效缓存信息,并比对重新读取的有效缓存信息与初始生效缓存信息的一致性,若两者不一致则判定缓存切换成功。Re-read the valid cache information, and compare the consistency of the re-read valid cache information with the initial effective cache information. If the two are inconsistent, it is determined that the cache switch is successful.

进一步的,读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性,包括:Further, read the actual onboard information in the target hardware and compare the consistency between the actual onboard information and the flashed onboard information, including:

在扫描板载信息之后,将所述板载信息缓存为初始板载信息;After scanning the onboard information, caching the onboard information as initial onboard information;

读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功。Read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, compare the consistency of the actual onboard information and the initial onboard information, and determine the onboard information if they are consistent. Flashing successful.

第二方面,本发明提供一种板载信息刷写检测系统,包括:In a second aspect, the present invention provides an onboard information rewriting detection system, including:

目标识别单元,用于识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;A target identification unit, used to identify the firmware of the target hardware and the first cache and the second cache used to refresh the onboard information, and set the first cache as a valid cache;

刷写执行单元,用于在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;A flash execution unit, configured to reset the firmware and switch the effective cache to the second cache after flashing the onboard information;

刷写校验单元,用于读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性。The flash verification unit is used to read the actual onboard information in the target hardware and compare the consistency of the actual onboard information with the flashed onboard information.

进一步的,所述刷写执行单元包括:Further, the flash execution unit includes:

板卡扫描模块,用于扫描板卡的板载信息并将板载信息刷写至目标硬件;The board scanning module is used to scan the onboard information of the board and flash the onboard information to the target hardware;

缓存读取模块,用于读取当前有效缓存的信息,并将所述信息作为初始生效缓存信息缓存;The cache reading module is used to read the currently valid cached information and cache the information as the initial valid cached information;

重置执行模块,用于执行重置命令,并在重置过程中切换有效缓存;The reset execution module is used to execute the reset command and switch the effective cache during the reset process;

切换校验模块,用于重新读取有效缓存信息,并比对重新读取的有效缓存信息与初始生效缓存信息的一致性,若两者不一致则判定缓存切换成功。The switching verification module is used to re-read the effective cache information and compare the consistency of the re-read effective cache information with the initial effective cache information. If the two are inconsistent, it is determined that the cache switch is successful.

进一步的,所述刷写校验单元包括:Further, the flash verification unit includes:

初始缓存模块,用于在扫描板载信息之后,将所述板载信息缓存为初始板载信息;An initial cache module, configured to cache the onboard information as initial onboard information after scanning the onboard information;

刷写校验模块,用于读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功。The flash verification module is used to read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, and compare the consistency of the actual onboard information with the initial onboard information. If If the two are consistent, it is determined that the onboard information is successfully written.

第三方面,提供一种终端,包括:In the third aspect, a terminal is provided, including:

处理器、存储器,其中,processor, memory, where,

该存储器用于存储计算机程序,This memory is used to store computer programs,

该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above terminal method.

第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided. The computer-readable storage medium stores instructions, which when run on a computer, cause the computer to perform the methods described in the above aspects.

本发明的有益效果在于,本发明提供的板载信息刷写检测方法、系统、终端及存储介质,通过设置两个缓存,在刷写板载信息之后通过重置硬件切换缓存,将板载信息写入硬件,并在切换缓存之后直接读取写入硬件的板载信息从而对板载信息进行检测。本发明节省了一次开关机的时间,降低了时间成本,提高了板载信息的检测效率。The beneficial effect of the present invention is that the onboard information flash detection method, system, terminal and storage medium provided by the present invention set up two caches, and after the onboard information is flashed, the onboard information is switched to the cache by resetting the hardware. Write to the hardware, and directly read the onboard information written to the hardware after switching caches to detect the onboard information. The invention saves the time of turning on and off the machine once, reduces the time cost, and improves the detection efficiency of onboard information.

此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the invention is reliable, the structure is simple, and it has very broad application prospects.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those of ordinary skill in the art, It is said that other drawings can also be obtained based on these drawings without exerting creative work.

图1是本发明一个实施例的方法的示意性流程图。Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

图2是本发明一个实施例的系统的示意性框图。Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.

图3为本发明实施例提供的一种终端的结构示意图。Figure 3 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.

下面对本发明中出现的关键术语进行解释。Key terms appearing in the present invention are explained below.

BMC,执行伺服器远端管理控制器,英文全称为Baseboard ManagementController.为基板管理控制器。它可以在机器未开机的状态下,对机器进行固件升级、查看机器设备、等一些操作。在BMC中完全实现IPMI功能需要一个功能强大的16位元或32位元微控制器以及用于数据储存的RAM、用于非挥发性数据储存的快闪记忆体和韧体,在安全远程重启、安全重新上电、LAN警告和系统健康监视方面能提供基本的远程可管理性。除了基本的IPMI功能和系统工作监视功能外,通过利用2个快闪记忆体之一储存以前的BIOS,mBMC还能实现BIOS快速元件的选择和保护。例如,在远程BIOS升级後系统不能启动时,远程管理人员可以切换回以前工作的BIOS映像来启动系统。一旦BIOS升级後,BIOS映像还能被锁住,可有效防止病毒对它的侵害。BMC, the execution server remote management controller, the English full name is Baseboard ManagementController. It is the baseboard management controller. It can upgrade the firmware of the machine, check the machine equipment, and other operations when the machine is not turned on. Full implementation of IPMI functionality in the BMC requires a powerful 16-bit or 32-bit microcontroller as well as RAM for data storage, flash memory and firmware for non-volatile data storage, and secure remote restart. , safe power cycle, LAN warning and system health monitoring can provide basic remote manageability. In addition to basic IPMI functions and system operation monitoring functions, mBMC can also enable BIOS fast component selection and protection by utilizing one of the two flash memories to store the previous BIOS. For example, when the system cannot boot after a remote BIOS upgrade, the remote administrator can switch back to the previously working BIOS image to boot the system. Once the BIOS is upgraded, the BIOS image can also be locked to effectively prevent viruses from invading it.

图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种板载信息刷写检测系统。Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Among them, the execution subject in Figure 1 can be an onboard information flash detection system.

如图1所示,该方法包括:As shown in Figure 1, the method includes:

步骤110,识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;Step 110: Identify the firmware of the target hardware and the first cache and the second cache used to flash onboard information, and set the first cache as a valid cache;

步骤120,在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;Step 120, after flashing the onboard information, reset the firmware and switch the effective cache to the second cache;

步骤130,读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性。Step 130: Read the actual onboard information in the target hardware, and compare the consistency between the actual onboard information and the flashed onboard information.

为了便于对本发明的理解,下面以本发明板载信息刷写检测方法的原理,结合实施例中对板载信息刷写进行检测的过程,对本发明提供的板载信息刷写检测方法做进一步的描述。In order to facilitate the understanding of the present invention, the onboard information flash detection method provided by the present invention will be further described below based on the principle of the onboard information flash detection method of the present invention and the process of detecting onboard information flash in the embodiment. describe.

具体的,所述板载信息刷写检测方法包括:Specifically, the onboard information flash detection method includes:

S1、识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存。S1. Identify the firmware of the target hardware and the first cache and the second cache used for flashing onboard information, and set the first cache as a valid cache.

设置两个非易失性内存(flash),分别为第一缓存和第二缓存。预先识别固件和第一缓存和第二缓存是否在位,若不在位则生个告警信息。Set up two non-volatile memories (flash), which are the first cache and the second cache. It is pre-identified whether the firmware and the first cache and the second cache are in place, and if not, an alarm message is generated.

S1、在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存。S1. After flashing the onboard information, reset the firmware and switch the effective cache to the second cache.

将第一缓存设置为有效缓存,并将第一缓存的编号写入有效缓存信息的存储路径。The first cache is set as a valid cache, and the number of the first cache is written into the storage path of the valid cache information.

板卡正常开机测试,刷写板载信息,此时刷写的信息在第一缓存中,未写入板卡硬件。具体的刷写板载信息的过程为:安装RISER卡并开机启动测试,扫描板卡PN/QN信息;通过BMC刷写RISER卡FRU信息中的PN/QN信息。The board is powered on normally and tested, and the onboard information is flashed. At this time, the flashed information is in the first cache and has not been written to the board hardware. The specific process of flashing the onboard information is: install the RISER card and start the test, scan the PN/QN information of the board; flash the PN/QN information in the FRU information of the RISER card through the BMC.

执行ipmitool mc reset cold重置BMC,完成不同flash的切换,即将有效缓存由第一缓存切换为第二缓存,再次读取有效缓存的信息(即第二缓存编号)与存储路径下的第一缓存编号不一致则说明切换成功,否则说明切换失败。在切换有效缓存的同时将第一缓存中的板载信息写入硬件。Execute ipmitool mc reset cold to reset the BMC to complete the switching of different flashes, that is, switch the effective cache from the first cache to the second cache, and read the effective cache information (i.e., the second cache number) and the first cache under the storage path again. If the numbers are inconsistent, the switch is successful; otherwise, the switch fails. The onboard information in the first cache is written to the hardware while switching the active cache.

S3、读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性。S3. Read the actual onboard information in the target hardware, and compare the consistency of the actual onboard information with the flashed onboard information.

在扫描板载信息之后,将所述板载信息缓存为初始板载信息;读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功,若两者不一致则判定板载信息刷写失败,将检测结果输出至检测日志。After scanning the onboard information, cache the onboard information as the initial onboard information; read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, and compare it with the actual onboard information. The consistency between the onboard information and the initial onboard information is determined. If the two are consistent, the onboard information flashing is successful. If the two are inconsistent, the onboard information flashing failure is determined, and the detection results are output to the detection log.

如图2所示,该系统200包括:As shown in Figure 2, the system 200 includes:

目标识别单元210,用于识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;The target identification unit 210 is used to identify the firmware of the target hardware and the first cache and the second cache for flashing the onboard information, and set the first cache as a valid cache;

刷写执行单元220,用于在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;The flash execution unit 220 is configured to reset the firmware and switch the effective cache to the second cache after flashing the onboard information;

刷写校验单元230,用于读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性。The flash verification unit 230 is used to read the actual onboard information in the target hardware and compare the consistency of the actual onboard information with the flashed onboard information.

可选地,作为本发明一个实施例,所述刷写执行单元包括:Optionally, as an embodiment of the present invention, the flash execution unit includes:

板卡扫描模块,用于扫描板卡的板载信息并将板载信息刷写至目标硬件;The board scanning module is used to scan the onboard information of the board and flash the onboard information to the target hardware;

缓存读取模块,用于读取当前有效缓存的信息,并将所述信息作为初始生效缓存信息缓存;The cache reading module is used to read the currently valid cached information and cache the information as the initial valid cached information;

重置执行模块,用于执行重置命令,并在重置过程中切换有效缓存;The reset execution module is used to execute the reset command and switch the effective cache during the reset process;

切换校验模块,用于重新读取有效缓存信息,并比对重新读取的有效缓存信息与初始生效缓存信息的一致性,若两者不一致则判定缓存切换成功。The switching verification module is used to re-read the effective cache information and compare the consistency of the re-read effective cache information with the initial effective cache information. If the two are inconsistent, it is determined that the cache switch is successful.

可选地,作为本发明一个实施例,所述刷写校验单元包括:Optionally, as an embodiment of the present invention, the flash verification unit includes:

初始缓存模块,用于在扫描板载信息之后,将所述板载信息缓存为初始板载信息;An initial cache module, configured to cache the onboard information as initial onboard information after scanning the onboard information;

刷写校验模块,用于读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功。The flash verification module is used to read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, and compare the consistency of the actual onboard information with the initial onboard information. If If the two are consistent, it is determined that the onboard information is successfully written.

图3为本发明实施例提供的一种终端300的结构示意图,该终端300可以用于执行本发明实施例提供的板载信息刷写检测方法。FIG. 3 is a schematic structural diagram of a terminal 300 provided by an embodiment of the present invention. The terminal 300 can be used to perform the onboard information flash detection method provided by an embodiment of the present invention.

其中,该终端300可以包括:处理器310、存储器320及通信单元330。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not limit the invention. It can be a bus structure, a star structure, or More or fewer components may be included than shown, or certain components may be combined, or may be arranged differently.

其中,该存储器320可以用于存储处理器310的执行指令,存储器320可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器320中的执行指令由处理器310执行时,使得终端300能够执行以下上述方法实施例中的部分或全部步骤。Among them, the memory 320 can be used to store execution instructions of the processor 310. The memory 320 can be implemented by any type of volatile or non-volatile storage terminals or their combination, such as static random access memory (SRAM), electronic Erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk . When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 is enabled to perform some or all of the steps in the following method embodiments.

处理器310为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器310可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 310 is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing software programs and/or modules stored in the memory 320, and calling data stored in the memory, To perform various functions of the electronic terminal and/or process data. The processor may be composed of an integrated circuit (IC for short), for example, it may be composed of a single packaged IC, or it may be composed of multiple packaged ICs connected with the same function or different functions. For example, the processor 310 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiment of the present invention, the CPU may be a single computing core or may include multiple computing cores.

通信单元330,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals. Receive user data sent by other terminals or send user data to other terminals.

本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when executed, the program can include some or all of the steps in the embodiments provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

因此,本发明通过设置两个缓存,在刷写板载信息之后通过重置硬件切换缓存,将板载信息写入硬件,并在切换缓存之后直接读取写入硬件的板载信息从而对板载信息进行检测。本发明节省了一次开关机的时间,降低了时间成本,提高了板载信息的检测效率,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention sets two caches, resets the hardware switching cache after flashing the onboard information, writes the onboard information to the hardware, and directly reads the onboard information written to the hardware after switching the cache to thereby perform the onboard processing of the board. Load information for testing. The present invention saves the time of turning on and off the machine once, reduces the time cost, and improves the detection efficiency of onboard information. The technical effects achieved by this embodiment can be found in the above description, and will not be described again here.

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus the necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or in part that contribute to the existing technology. The computer software products are stored in a storage medium such as a USB flash drive or mobile phone. Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code, including a number of instructions to make a computer terminal (It can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。The same and similar parts among the various embodiments in this specification can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the description in the method embodiment.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of the system or unit, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail with reference to the accompanying drawings in conjunction with preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the invention, and these modifications or substitutions should be within the scope of the invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, and they should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (6)

1.一种板载信息刷写检测方法,其特征在于,包括:1. A method for detecting onboard information flash writing, which is characterized by including: 识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;Identify the firmware of the target hardware and the first cache and the second cache used to flash onboard information, and set the first cache as a valid cache; 在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;After flashing the onboard information, reset the firmware and switch the effective cache to the second cache; 读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性;Read the actual onboard information in the target hardware, and compare the consistency of the actual onboard information with the flashed onboard information; 在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存,包括:After flashing the onboard information, reset the firmware and switch the effective cache to the second cache, including: 扫描板卡的板载信息并将板载信息刷写至目标硬件;Scan the onboard information of the board and flash the onboard information to the target hardware; 读取当前有效缓存的信息,并将所述信息作为初始生效缓存信息缓存;Read the currently valid cached information and cache the information as the initial valid cached information; 执行重置命令,并在重置过程中切换有效缓存;Execute the reset command and switch the effective cache during the reset process; 重新读取有效缓存信息,并比对重新读取的有效缓存信息与初始生效缓存信息的一致性,若两者不一致则判定缓存切换成功。Re-read the valid cache information, and compare the consistency of the re-read valid cache information with the initial effective cache information. If the two are inconsistent, it is determined that the cache switch is successful. 2.根据权利要求1所述的方法,其特征在于,读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性,包括:2. The method according to claim 1, characterized in that reading the actual onboard information in the target hardware and comparing the consistency between the actual onboard information and the flashed onboard information includes: 在扫描板载信息之后,将所述板载信息缓存为初始板载信息;After scanning the onboard information, caching the onboard information as initial onboard information; 读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功。Read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, compare the consistency of the actual onboard information and the initial onboard information, and determine the onboard information if they are consistent. Flashing successful. 3.一种板载信息刷写检测系统,其特征在于,包括:3. An onboard information flash detection system, characterized by including: 目标识别单元,用于识别目标硬件的固件和用于刷写板载信息的第一缓存和第二缓存,并将第一缓存设定为有效缓存;A target identification unit, used to identify the firmware of the target hardware and the first cache and the second cache for flashing the onboard information, and set the first cache as a valid cache; 刷写执行单元,用于在刷写板载信息之后,重置所述固件并将有效缓存切换为第二缓存;A flash execution unit, configured to reset the firmware and switch the effective cache to the second cache after flashing the onboard information; 刷写校验单元,用于读取目标硬件中的实际板载信息,比对所述实际板载信息与刷写的板载信息的一致性;The flash verification unit is used to read the actual onboard information in the target hardware and compare the consistency of the actual onboard information with the flashed onboard information; 所述刷写执行单元包括:The flash execution unit includes: 板卡扫描模块,用于扫描板卡的板载信息并将板载信息刷写至目标硬件;The board scanning module is used to scan the onboard information of the board and flash the onboard information to the target hardware; 缓存读取模块,用于读取当前有效缓存的信息,并将所述信息作为初始生效缓存信息缓存;The cache reading module is used to read the currently valid cached information and cache the information as the initial valid cached information; 重置执行模块,用于执行重置命令,并在重置过程中切换有效缓存;The reset execution module is used to execute the reset command and switch the effective cache during the reset process; 切换校验模块,用于重新读取有效缓存信息,并比对重新读取的有效缓存信息与初始生效缓存信息的一致性,若两者不一致则判定缓存切换成功。The switching verification module is used to re-read the effective cache information and compare the consistency of the re-read effective cache information with the initial effective cache information. If the two are inconsistent, it is determined that the cache switch is successful. 4.根据权利要求3所述的系统,其特征在于,所述刷写校验单元包括:4. The system according to claim 3, characterized in that the flash verification unit includes: 初始缓存模块,用于在扫描板载信息之后,将所述板载信息缓存为初始板载信息;An initial cache module, configured to cache the onboard information as initial onboard information after scanning the onboard information; 刷写校验模块,用于读取目标硬件中的实际板载信息,并从指定缓存地址中读取所述初始板载信息,比对实际板载信息与初始板载信息的一致性,若两者一致则判定板载信息刷写成功。The flash verification module is used to read the actual onboard information in the target hardware, read the initial onboard information from the specified cache address, and compare the consistency of the actual onboard information with the initial onboard information. If If the two are consistent, it is determined that the onboard information is successfully written. 5.一种终端,其特征在于,包括:5. A terminal, characterized in that it includes: 处理器;processor; 用于存储处理器的执行指令的存储器;Memory used to store instructions for execution by the processor; 其中,所述处理器被配置为执行权利要求1-2任一项所述的方法。Wherein, the processor is configured to perform the method according to any one of claims 1-2. 6.一种存储有计算机程序的计算机可读存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-2中任一项所述的方法。6. A computer-readable storage medium storing a computer program, characterized in that when the program is executed by a processor, the method according to any one of claims 1-2 is implemented.
CN202111550533.3A 2021-12-17 2021-12-17 Method, system, terminal and storage medium for detecting on-board information refreshing Active CN114385379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111550533.3A CN114385379B (en) 2021-12-17 2021-12-17 Method, system, terminal and storage medium for detecting on-board information refreshing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111550533.3A CN114385379B (en) 2021-12-17 2021-12-17 Method, system, terminal and storage medium for detecting on-board information refreshing

Publications (2)

Publication Number Publication Date
CN114385379A CN114385379A (en) 2022-04-22
CN114385379B true CN114385379B (en) 2023-12-26

Family

ID=81198349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111550533.3A Active CN114385379B (en) 2021-12-17 2021-12-17 Method, system, terminal and storage medium for detecting on-board information refreshing

Country Status (1)

Country Link
CN (1) CN114385379B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000077641A1 (en) * 1999-06-15 2000-12-21 Microsoft Corporation System and method for generating a backup copy of a storage medium
CN109062805A (en) * 2018-09-06 2018-12-21 郑州云海信息技术有限公司 A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium
CN110543394A (en) * 2019-08-16 2019-12-06 苏州浪潮智能科技有限公司 server sensor information consistency testing method, system, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000077641A1 (en) * 1999-06-15 2000-12-21 Microsoft Corporation System and method for generating a backup copy of a storage medium
CN109062805A (en) * 2018-09-06 2018-12-21 郑州云海信息技术有限公司 A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium
CN110543394A (en) * 2019-08-16 2019-12-06 苏州浪潮智能科技有限公司 server sensor information consistency testing method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN114385379A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN103365696B (en) BIOS image file acquisition methods and device
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN109947596A (en) PCIE equipment failure system downtime processing method, device and related components
CN114116280B (en) Interactive BMC self-recovery method, system, terminal and storage medium
EP2189906A1 (en) Method and apparatus for abnormality recovering of data card, and data card
CN107111595B (en) Method, device and system for detecting early boot errors
CN103605591A (en) Method and device for controlling memory initialization of terminal system
CN111782446A (en) Method and device for testing normal power failure of SSD, computer equipment and storage medium
US11226755B1 (en) Core dump in a storage device
CN116069538B (en) Fault repair method, device, electronic equipment and storage medium
CN119336682A (en) Method for performing hot removal operation, hot plug system, device, medium and product
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN114116330B (en) Server performance testing method, system, terminal and storage medium
CN112486785B (en) Method, system, terminal and storage medium for positioning downtime phase of server
CN113076225B (en) External storage medium detection method, device and equipment and storage medium
CN114385379B (en) Method, system, terminal and storage medium for detecting on-board information refreshing
CN113900934B (en) Multi-mirror hybrid refresh test method, system, terminal and storage medium
CN117093414A (en) PCI peripheral equipment repairing method and device, electronic equipment and storage medium
CN116126643A (en) Hard disk status light control method, device, device and readable storage medium
CN116662050A (en) A method, device, terminal and medium for error injection support function verification
CN115098342A (en) System log collection method, system, terminal and storage medium
CN111400113A (en) Complete machine self-checking method, device and system of computer system
CN114443446B (en) Hard disk indicator lamp control method, system, terminal and storage medium
WO2019169615A1 (en) Method for accessing code sram, and electronic device
CN111327722B (en) Method, system, terminal and storage medium for conflict detection between static IP and dynamic IP

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载