CN1987802A - Basic input and output system information acquisition and editing method and system - Google Patents

Basic input and output system information acquisition and editing method and system Download PDF

Info

Publication number
CN1987802A
CN1987802A CN 200510134671 CN200510134671A CN1987802A CN 1987802 A CN1987802 A CN 1987802A CN 200510134671 CN200510134671 CN 200510134671 CN 200510134671 A CN200510134671 A CN 200510134671A CN 1987802 A CN1987802 A CN 1987802A
Authority
CN
China
Prior art keywords
information
basic input
output system
editing
module
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.)
Granted
Application number
CN 200510134671
Other languages
Chinese (zh)
Other versions
CN100458719C (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.)
Microsoft Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005101346718A priority Critical patent/CN100458719C/en
Publication of CN1987802A publication Critical patent/CN1987802A/en
Application granted granted Critical
Publication of CN100458719C publication Critical patent/CN100458719C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for acquiring and editing Basic Input Output System (BIOS) information, which comprises the steps of mapping the BIOS information to a system nonvolatile random access memory (NVRAM) area, reading the mapping content of the system nonvolatile random access memory area and storing the mapping content as a local file, and modifying the data in the system nonvolatile random access memory by editing the local file so as to acquire and edit the BIOS information. In addition, the content of the nonvolatile random access memory area can be read by calling different underlying drivers under different operating systems. The invention can adapt to multiple platforms and realize the modification of the basic input and output system information under the condition of not restarting an operating system.

Description

基本输入输出系统信息的获取及编辑方法及系统Basic input and output system information acquisition and editing method and system

技术领域technical field

本发明涉及计算机基本输入输出系统(Basic Input Output System,BIOS)的信息管理,特别是涉及一种获取及编辑基本输入输出系统信息的方法和系统。The present invention relates to the information management of computer basic input output system (Basic Input Output System, BIOS), in particular to a method and system for acquiring and editing basic input output system information.

背景技术Background technique

计算机上的一些重要信息诸如计算机厂商信息,产品标识以及资产卷标等烧录在多层印刷板的芯片上,一般而言,用户通过厂商提供的系统基本输入输出系统来获取或者设置。此外,烧录在只读存储器(Read Only Memory,ROM)芯片上的关于自诊断测试程序、系统自举装入程序、系统设置程序和主要(I/O)设备的输入/输出驱动程序及中断服务程序等基本输入输出系统信息,为计算机提供最低级的、最直接的硬件控制,以确保操作代码运行之前所有的计算机电路为可用的。基本输入输出系统属于主机板的一部分,因此有时就称呼其为固件(Firmware)。Some important information on the computer, such as computer manufacturer information, product identification, and asset labels, is burned on the chip of the multilayer printed board. Generally speaking, the user obtains or sets it through the system basic input and output system provided by the manufacturer. In addition, the input/output drivers and interrupts of the self-diagnostic test program, system boot loader, system setup program, and major (I/O) devices burned on the read-only memory (Read Only Memory, ROM) chip Basic input and output system information such as service programs provide the computer with the lowest and most direct hardware control to ensure that all computer circuits are available before the operating code runs. The basic input and output system is part of the motherboard, so it is sometimes called firmware (Firmware).

通常,关于获取、编辑及测试基本输入输出系统信息的情况有:1.读取或编辑例如资产标签、产品标识等服务器信息组中的信息作为产品属性标识;2.测试系统管理基本输入输出系统(System Management BIOS,SMBIO)功能以及测试非易失性随机存储器(Nonvolatile Random Access Memory,NVRAM)的好坏;3.获取或修改烧录在基本输入输出系统只读存储器(BIOS ROM)中的程序。当前获取和编辑上述基本输入输出系统内容采用的主要方法是通过磁盘操作系统(Disk Operating System,Dos)环境下的基本输入输出系统中断调用服务得以实现,可是此方法存在以下缺点:1.目前在Linux/Windows系统下无法直接修改服务器的基本输入输出系统信息,用户若打算修改则必需重新启动系统,以进入基本输入输出系统中执行修改,然后再重启系统回到Linux/Windows中。如果发现所修改的值并非期望值,或者要对新值进行修改,则需重复上述过程,每修改一次数据均需重启至少两次系统。因此,对用户而言,上述操作不仅繁琐且耗费时间;2.由于Linux系统并非实模式,不支持基本输入输出系统中断调用服务,无法将采用这种方法的程序移植到Linux下。此外,此方法在Windows系统下也不可行。即,不能实现多平台操作系统的基本输入输出系统内容获取和编辑;3.假如通过端口方式实现在Linux/Windows系统下对基本输入输出系统内容的获取和编辑,但是可能会导致Linux/Windows与Dos环境下程序实现方法的不统一,且不易维护,进而导致基本输入输出系统数据区中某些重要信息被清空的严重后果;4.传统方法过于依赖硬件和基本输入输出系统,一旦对硬件和基本输入输出系统进行升级,则很可能出现原有程序需要重新维护的情况,并且具体的中断操作方法需由基本输入输出系统厂商提供,从而给用户造成一定的不便;5.无论是基本输入输出系统中断调用还是端口操作,编程接口均较复杂且不易维护;6.在Dos下实现基本输入输出系统中断服务程序,用户需知道所修改的基本输入输出系统数据段,修改所应当使用的中断服务的类型及其功能号/子功能号,以及相应AX/CX/SI/DI等寄存器的使用。基本输入输出系统接口复杂,非专业人员很难全面掌握其设置方法;7.如果编程出现失误,当误操作时很容易造成重要的基本输入输出系统信息丢失,进而给系统带来不可预料的损坏。同时,即使很小的失误也会给程序的调试工作带来很大的困难和不便;8.目前不存在专门针对基本输入输出系统映像至系统非易失性随机存储器区域的测试项,由于系统非易失性随机存储器区域非常重要,能进而直接影响到服务器基本输入输出系统信息储存的完整性及安全性。Usually, the conditions for acquiring, editing and testing the basic input and output system information are as follows: 1. Read or edit information in server information groups such as asset tags and product identification as product attribute identification; 2. Test system management basic input and output system (System Management BIOS, SMBIO) function and test the quality of non-volatile random access memory (Nonvolatile Random Access Memory, NVRAM); 3. Obtain or modify the program burned in the basic input and output system read-only memory (BIOS ROM) . Currently, the main method used to obtain and edit the content of the above-mentioned basic input and output system is to realize the interrupt call service of the basic input and output system under the environment of the disk operating system (Disk Operating System, Dos), but this method has the following disadvantages: 1. The basic input and output system information of the server cannot be directly modified under the Linux/Windows system. If the user intends to modify it, the system must be restarted to enter the basic input and output system to perform the modification, and then restart the system to return to Linux/Windows. If it is found that the modified value is not the expected value, or the new value needs to be modified, the above process needs to be repeated, and the system needs to be restarted at least twice every time the data is modified. Therefore, for the user, the above-mentioned operations are not only loaded down with trivial details and time-consuming; 2. because the Linux system is not a real mode, does not support the basic input and output system interrupt call service, the program that adopts this method cannot be transplanted to Linux. In addition, this method is not feasible under Windows system. That is, the acquisition and editing of the content of the basic input and output system of the multi-platform operating system cannot be realized; In the Dos environment, the method of program implementation is not uniform, and it is not easy to maintain, which leads to serious consequences that some important information in the data area of the basic input and output system is cleared; 4. The traditional method relies too much on hardware and basic input and output systems. If the basic input and output system is upgraded, it is very likely that the original program needs to be re-maintained, and the specific interrupt operation method must be provided by the basic input and output system manufacturer, which will cause some inconvenience to users; 5. Whether it is basic input and output System interrupt call or port operation, the programming interface is more complicated and difficult to maintain; 6. To implement the basic input and output system interrupt service program under Dos, the user needs to know the modified basic input and output system data segment, and modify the interrupt service that should be used The type and its function number/sub-function number, as well as the use of the corresponding registers such as AX/CX/SI/DI. The interface of the basic input and output system is complex, and it is difficult for non-professionals to fully grasp its setting method; 7. If there is a programming error, it is easy to cause important basic input and output system information to be lost when misoperation, and then bring unpredictable damage to the system . At the same time, even a small error will bring great difficulty and inconvenience to the debugging work of the program; 8. At present, there is no test item specifically for the image of the basic input and output system to the non-volatile RAM area of the system, because the system The non-volatile random access memory area is very important, and can directly affect the integrity and security of information storage of the server basic input and output system.

发明内容Contents of the invention

本发明的目的在于提供一种基本输入输出系统信息的获取及编辑方法及系统,来解决公知技术所存在的限制或缺点,在无需重启当前运行的操作系统的状态下,直接对基本输入输出系统信息进行获取与编辑,实现基本输入输出系统处理的简单化、快捷化及人性化。The purpose of the present invention is to provide a basic input and output system information acquisition and editing method and system to solve the limitations or shortcomings of the known technology, without restarting the operating system currently running, directly to the basic input and output system Information is acquired and edited to realize the simplification, quickness and humanization of basic input and output system processing.

为了实现上述目的,本发明提供一种基本输入输出系统信息的获取及编辑方法,包括以下步骤:映像基本输入输出系统信息至一系统非易失性随机存储器区域中;读取系统非易失性随机存储器区域的映像内容并储存为一第一文档;依据基本输入输出系统的修改信息修改第一文件,并生成一第二文档;将第二文件的内容恢复至系统非易失性随机存储器区域的相应位置;以及映像系统非易失性随机存储器区域的相应位置内容至基本输入输出系统中,来编辑基本输入输出系统信息。In order to achieve the above object, the present invention provides a method for obtaining and editing basic input and output system information, including the following steps: mapping basic input and output system information to a system non-volatile random access memory area; reading system non-volatile The image content of the random access memory area is stored as a first file; the first file is modified according to the modification information of the basic input output system, and a second file is generated; the content of the second file is restored to the non-volatile random access memory area of the system and mapping the content of the corresponding location in the non-volatile random access memory area of the system to the BIOS to edit the BIOS information.

此外,本发明的基本输入输出系统信息的获取及编辑方法在不同操作系统下调用不同的底层驱动程序来对系统非易失性随机存储器区域的内容进行读取。In addition, the basic input and output system information acquisition and editing method of the present invention invokes different underlying drivers under different operating systems to read the contents of the non-volatile RAM area of the system.

为了实现上述目的,本发明提供了一种基本输入输出系统信息的获取及编辑系统,包括有映像模块、备份模块、编辑模块以及恢复模块,其中映像模块用来在基本输入输出系统与系统非易失性随机存储器区域间进行信息的双向映像,备份模块用来读取系统非易失性随机存储器区域的内容并储存为一第一文件,编辑模块用来依据基本输入输出系统的修改信息修改第一文件,并生成一第二文件,恢复模块则用来将第二文件的内容恢复至系统非易失性随机存储器区域的相应位置。In order to achieve the above object, the present invention provides a basic input and output system information acquisition and editing system, including an image module, a backup module, an editing module and a recovery module, wherein the image module is used to connect the basic input and output system with the system Two-way mapping of information between the volatile random access memory areas, the backup module is used to read the content of the system non-volatile random access memory area and store it as a first file, and the editing module is used to modify the first file according to the modification information of the basic input output system a file, and generate a second file, and the restoration module is used to restore the content of the second file to the corresponding position of the non-volatile RAM area of the system.

本发明的基本输入输出系统信息的获取及编辑系统,其中编辑模块还包括有一信息搜索模块,一循环冗余码校验模块,一信息重组模块,以及一非易失性随机存储器文件编辑模块。信息搜索模块用来读取第一文档的内容并进行分析,进而获取基本输入输出系统各数据段所对应的信息,来生成数个信息组;循环冗余码校验模块用来依据当前基本输入输出系统信息还原其循环冗余码的原始值,以及依据基本输入输出系统的修改信息产生一新循环冗余码值;信息重组模块用来依据基本输入输出系统的修改信息检索信息搜索模块的数个信息组,并替换信息组中相应信息;非易失性随机存储器文件编辑模块用来借助第一文件、信息组信息以及新循环冗余码值生成第二文档。In the basic input and output system information acquisition and editing system of the present invention, the editing module further includes an information searching module, a cyclic redundancy code checking module, an information reorganizing module, and a non-volatile RAM file editing module. The information search module is used to read and analyze the content of the first document, and then obtain the information corresponding to each data segment of the basic input and output system to generate several information groups; the cyclic redundancy check module is used to The output system information restores the original value of its cyclic redundancy code, and generates a new cyclic redundancy code value according to the modified information of the basic input and output system; the information reorganization module is used to retrieve the data of the information search module according to the modified information of the basic input and output system information group, and replace the corresponding information in the information group; the non-volatile random access memory file editing module is used to generate the second document with the help of the first file, the information group information and the new cyclic redundancy code value.

本发明通过将基本输入输出系统信息映像系统非易失性随机存储器区域,以及将系统非易失性随机存储器区域相应基本输入输出系统信息转换为文件形式,并对文档进行修改编辑,进而达到间接修改基本输入输出系统信息的目的。和公知技术相比,本发明可保证对基本输入输出系统的间接修改不会造成系统意外停机。The present invention maps the basic input and output system information to the system non-volatile random access memory area, and converts the corresponding basic input and output system information of the system non-volatile random access memory area into a file form, and modifies and edits the document, thereby achieving indirect The purpose of modifying the basic input and output system information. Compared with the known technology, the present invention can ensure that the indirect modification to the basic input and output system will not cause unexpected stoppage of the system.

此外,通过调用不同的底层驱动程序读取系统非易失性随机存储器区域的内容,本发明实现了Dos/Windows/Linux操作系统下编程方法的统一,可在不同操作系统下对系统非易失性随机存储器区域数据内容进行读取,进而可实现多平台下对基本输入输出系统信息的获取、编辑及测试。通过在不同系统下基本输入输出系统信息的获取/编辑,进而达到测试基本输入输出系统映像到系统非易失性随机存储器区域的目的。此方法可确保不影响基本输入输出系统中的信息,不添加多余测试项,且在不给系统带来影响的前提下实现对系统非易失性随机存储器的全面测试。In addition, by invoking different underlying drivers to read the contents of the non-volatile random access memory area of the system, the present invention realizes the unification of the programming method under the Dos/Windows/Linux operating system, and can program the non-volatile memory of the system under different operating systems. Read the data content of the permanent random access memory area, and then realize the acquisition, editing and testing of basic input and output system information under multiple platforms. By obtaining/editing the basic input and output system information under different systems, the purpose of testing the basic input and output system image to the non-volatile random access memory area of the system is achieved. This method can ensure that the information in the basic input and output system is not affected, no redundant test items are added, and the comprehensive test of the non-volatile RAM of the system can be realized without affecting the system.

通过采用自动循环冗余码(Cyclic Redundancy Code,CRC)校验确保了系统基本输入输出系统信息的安全储存,避免了因误操作所导致的系统基本输入输出系统信息清空。此外,通过提供基本输入输出系统信息的备份/恢复/对比功能,用户可通过简单操作来实现对不同版本基本输入输出系统信息的备份/恢复/对比。By adopting automatic cyclic redundancy code (Cyclic Redundancy Code, CRC) check to ensure the safe storage of system basic input and output system information, avoiding the emptying of system basic input and output system information caused by misoperation. In addition, by providing the backup/restore/comparison function of the basic input and output system information, the user can realize the backup/restore/comparison of different versions of the basic input and output system information through simple operations.

综上所述,本发明可实现多平台下对基本输入输出系统信息的获取、测试及编辑。本发明还可为用户提供简单的函数接口,用户无需了解自己需要修改的内容,只要通过简单的步骤修改为想要的基本输入输出系统值即可,并且避免了信息由于硬件和基本输入输出系统改动而受到影响。To sum up, the present invention can realize the acquisition, testing and editing of basic input and output system information under multiple platforms. The present invention can also provide users with a simple function interface, users do not need to know what they need to modify, they only need to modify it to the desired basic input and output system value through simple steps, and avoid information due to hardware and basic input and output system affected by changes.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

附图说明Description of drawings

图1为本发明基本输入输出系统信息的获取及编辑系统方块图;Fig. 1 is the acquisition and editing system block diagram of basic input and output system information of the present invention;

图2为本发明基本输入输出系统信息的获取及编辑系统的编辑模块工作架构图;Fig. 2 is the acquisition of the basic input and output system information of the present invention and the editing module working framework figure of editing system;

图3为本发明基本输入输出系统信息的获取及编辑系统实施例的信息设置示意图;Fig. 3 is a schematic diagram of information setting of an embodiment of the acquisition and editing system of basic input and output system information of the present invention;

图4为本发明基本输入输出系统信息的获取及编辑系统实施例的信息组示意图;Fig. 4 is the information group schematic diagram of the embodiment of the acquisition and editing system of basic input and output system information of the present invention;

图5为本发明基本输入输出系统信息的获取及编辑系统实施例的第一文档示意图;5 is a schematic diagram of the first document of the embodiment of the acquisition and editing system of basic input and output system information of the present invention;

图6为本发明基本输入输出系统信息的获取及编辑系统实施例的第二文档示意图;Fig. 6 is a schematic diagram of a second document of an embodiment of the acquisition and editing system of basic input and output system information of the present invention;

图7为本发明基本输入输出系统信息的获取及编辑方法部分流程图;Fig. 7 is a partial flowchart of the acquisition and editing method of basic input and output system information of the present invention;

图8为本发明基本输入输出系统信息的获取及编辑方法部分流程图;以及Fig. 8 is a partial flowchart of the method for acquiring and editing basic input and output system information of the present invention; and

图9为本发明基本输入输出系统信息的获取及编辑方法的恢复步骤流程图。FIG. 9 is a flow chart of restoration steps of the method for obtaining and editing basic input and output system information of the present invention.

其中,附图标记:Among them, reference signs:

10  基本输入输出系统信息的获取及编辑系统10 Basic input and output system information acquisition and editing system

12  计算机主机板     14  映像模块12 Computer motherboard 14 Image module

16  系统NVRAM区域    18  备份模块16 System NVRAM area 18 Backup module

20  备份文档         24  新文档20 backup document 24 new document

26  恢复模块         28  编辑模块26 Restore Module 28 Edit Module

30  信息搜索模块     32  CRC校验模块30 Information search module 32 CRC check module

34  信息重组模块     36  NVRAM文档编辑模块34 Information Reorganization Module 36 NVRAM Document Editing Module

38  对比模块         50  字符区域38 comparison module 50 character area

52  字符区域         54  字符区域52 character area 54 character area

56  字符区域         58  字符区域56 character area 58 character area

60  字符区域         62  字符区域60 character area 62 character area

64  字符区域64 character area

步骤101  映像基本输入输出系统信息至系统非易失性随机存储器区域中Step 101 Map the basic input and output system information to the non-volatile RAM area of the system

步骤102  读取系统非易失性随机存储器区域的映像内容并储存为一第一文档Step 102 Read the image content of the system non-volatile random access memory area and store it as a first file

步骤103  读取第一文档的内容并进行分析,进而获取基本输入输出系统各数据段所对应的信息,生成数个信息组Step 103 Read and analyze the content of the first document, and then obtain the information corresponding to each data segment of the basic input and output system, and generate several information groups

步骤104  依据当前基本输入输出系统信息还原其循环冗余码的原始值Step 104 Restore the original value of the cyclic redundancy code according to the current basic input and output system information

步骤105  依据用户输入的基本输入输出系统修改信息检索数个信息组并替换信息组中相应信息Step 105 Retrieve several information groups and replace corresponding information in the information groups according to the basic input and output system modification information input by the user

步骤106  依据当前信息组信息得到一新循环冗余码值Step 106 Obtain a new cyclic redundancy code value according to the current block information

步骤107  借助第一文件、信息组信息以及新循环冗余码值生成一第二文档Step 107 Generate a second document with the help of the first document, the block information and the new cyclic redundancy code value

步骤108  将第二文件的内容恢复至系统非易失性随机存储器区域的相应位置Step 108 restore the content of the second file to the corresponding position of the system non-volatile random access memory area

步骤109  映像系统非易失性随机存储器区域的相应位置内容至基本输入输出系统中Step 109 Map the content of the corresponding location in the system's non-volatile random access memory area to the basic input and output system

步骤201  打开系统非易失性随机存储器的可写权限Step 201 Open the writable permission of the system non-volatile random access memory

步骤202  将第二文档内容整块写回系统非易失性随机存储器区域Step 202 Write the content of the second document in its entirety back to the non-volatile RAM area of the system

步骤203  读取系统非易失性随机存储器区域中数据,验证读写正确性Step 203 Read the data in the non-volatile random access memory area of the system, and verify the correctness of reading and writing

步骤204  关闭系统非易失性随机存储器的可写权限,来保护基本输入输出系统中信息Step 204 Close the writable permission of the non-volatile RAM of the system to protect the information in the basic input and output system

具体实施方式Detailed ways

为了更清楚的了解本发明的基本输入输出系统信息的获取及编辑系统的构架及工作原理,下面请参考图1和图2。图1为本发明的基本输入输出系统信息的获取及编辑系统方块图,如图所示,将本发明所公开的基本输入输出系统信息的获取及编辑系统10应用于获取及编辑位于计算机主机板12上基本输入输出系统的信息。In order to understand more clearly the structure and working principle of the basic input and output system information acquisition and editing system of the present invention, please refer to FIG. 1 and FIG. 2 below. Fig. 1 is the acquisition and editing system block diagram of basic input and output system information of the present invention, as shown in the figure, the acquisition and editing system 10 of basic input and output system information disclosed by the present invention is applied to acquisition and editing located on the computer motherboard 12 information on the basic input output system.

基本输入输出系统是计算机系统中用来处理输入、输出数据的最关键组件之一,是被烧录到计算机主机板上的一组程序,为计算机提供最低级的、最直接的硬件控制,用来存放自诊断测试程序、系统自举装入程序、系统设置程序和主要输入/输出设备的输入/输出驱动程序及中断服务程序等任务。当计算机通电时,系统从基本输入输出系统只读存储器的起始地址开始读取并运行基本输入输出系统程序。基本输入输出系统程序首先对内部各个设备进行检查,来测试计算机的硬件及其连接性,并加载必要的操作代码,来允许计算机执行所需的任务。准确地说,基本输入输出系统是计算机硬件与软件程序之间的一个“转换器”或者说是接口(虽然它本身也只是一个程序),负责解决硬件的实时需求,并按软件对硬件的操作要求具体执行。基本输入输出系统的程序代码储存在诸如可擦除可编程只读存储器(Erasable Programmable Read-onlymemory,EPROM)、闪存(Flash ROM)、非易失性随机存储器或其它数字信息储存装置中。The basic input and output system is one of the most critical components used to process input and output data in a computer system. To store tasks such as self-diagnostic test programs, system bootstrap loaders, system setup programs, and input/output drivers and interrupt service programs for major input/output devices. When the computer is powered on, the system reads and runs the BIOS program from the initial address of the BIOS ROM. The BIOS program first checks the various internal devices to test the computer's hardware and its connectivity, and loads the necessary operating code to allow the computer to perform the required tasks. To be precise, the basic input and output system is a "converter" or an interface between computer hardware and software programs (although it is only a program itself), responsible for solving the real-time needs of the hardware and operating the hardware according to the software. Specific implementation is required. The program code of the basic input and output system is stored in such as Erasable Programmable Read-only memory (Erasable Programmable Read-only memory, EPROM), flash memory (Flash ROM), non-volatile random access memory or other digital information storage devices.

基本输入输出系统信息的获取及编辑系统10包括映像模块14、备份模块18、编辑模块28以及恢复模块26。首先,映像模块14将储存于计算机主机板12上的基本输入输出系统信息,如烧录在计算机主机板20的只读存储器芯片上的程序代码等,以及关于服务器的一些重要烧录信息等映像至系统非易失性随机存储器区域16中。非易失性随机存储器(非易失性随机存储器)由于具有在断电后仍能保留数据不致丢失的特点而得到越来越广泛地应用。然后,备份模块18搜索映像至系统非易失性随机存储器区域16中的基本输入输出系统信息,并将此区域中的全部映像内容读出并储存为一第一文档,即备份文档20,文档格式不限,这里设其文档名称为非易失性随机存储器.bak。为了实现在Dos/Windows/Linux不同操作系统下对系统非易失性随机存储器区域16的信息读取,可在不同操作系统下调用不同的底层驱动程序。驱动实现是采用页(Page)的方式读取系统非易失性随机存储器区域16,首先向非易失性随机存储器页寄存器(NVPAGE)写入所选定操作的页,再从非易失性随机存储器数据寄存器(NVDAT)读取系统非易失性随机存储器区域16的信息。驱动中可采用输入/输出方式或者储存方式对非易失性随机存储器页寄存器/非易失性随机存储器数据寄存器进行操作,进而得到系统非易失性随机存储器区域16中的信息。The basic input and output system information acquisition and editing system 10 includes an image module 14 , a backup module 18 , an editing module 28 and a restoring module 26 . First, the imaging module 14 maps the basic input and output system information stored on the computer motherboard 12, such as the program codes burned on the read-only memory chip of the computer motherboard 20, and some important burning information about the server. to the system non-volatile random access memory area 16. Non-volatile random access memory (non-volatile random access memory) is more and more widely used due to its characteristic of retaining data without loss after power failure. Then, the backup module 18 searches the basic input and output system information mapped to the system non-volatile random access memory area 16, and reads out and stores all the image contents in this area as a first file, i.e. the backup file 20, the file The format is not limited, and its file name is set as non-volatile random access memory.bak here. In order to read information from the non-volatile random access memory area 16 of the system under different operating systems of Dos/Windows/Linux, different underlying drivers can be called under different operating systems. The drive implementation is to read the system non-volatile random access memory area 16 in the form of a page (Page), first write the page of the selected operation to the non-volatile random access memory page register (NVPAGE), and then read from the non-volatile random access memory page register (NVPAGE) The RAM data register (NVDAT) reads the information of the system non-volatile RAM area 16 . In the drive, the NRAM page register/NVM data register can be operated in the input/output mode or the storage mode, and then the information in the system NRAM area 16 can be obtained.

然后,编辑模块28依据用户输入的基本输入输出系统修改信息对备份文件20进行修改,并进而生成一第二文档,即新文档24,此文档名称定为NVRAM.new。这里,编辑模块28包括一信息搜索模块30,一循环冗余码校验模块32,一信息重组模块34,一非易失性随机存储器文件编辑模块36以及一对比模块38,下面结合图2对编辑模块28进行说明。Then, the editing module 28 modifies the backup file 20 according to the BIOS modification information input by the user, and then generates a second file, namely a new file 24, which is named NVRAM.new. Here, the editing module 28 includes an information search module 30, a cyclic redundancy check module 32, an information reorganization module 34, a non-volatile random access memory file editing module 36 and a comparison module 38, below in conjunction with Fig. 2 Editing module 28 is described.

图2为本发明基本输入输出系统信息的获取及编辑系统的编辑模块工作构架图,从图中可知,信息搜索模块30读取备份文件20的信息内容并进行分析,从中解析出基本输入输出系统各数据段所对应的信息,信息搜索模块30可以使用任何方式对任何格式的文档进行读取。基本输入输出系统中数据存放遵循一定的规律,通常以各数据段对应的关键词开头,以特定分隔符号作为关键词的结束;接下来是数个子串中的子串1的关键词、长度、内容,然后以特定分隔符号作为子串的1的结束。子串2、3等其余子串按照上述规律进行存放。Fig. 2 is the acquisition of basic input and output system information of the present invention and the working frame diagram of the editing module of editing system, as can be seen from the figure, information search module 30 reads the information content of backup file 20 and analyzes it, resolves therefrom basic input and output system For the information corresponding to each data segment, the information search module 30 can use any method to read documents in any format. The data storage in the basic input and output system follows certain rules, usually starting with the keyword corresponding to each data segment, and ending with a specific delimiter as the keyword; followed by the keyword, length, content, followed by a 1-terminated substring with a specific delimiter. Substrings 2, 3 and other substrings are stored according to the above rules.

图3为本发明基本输入输出系统信息的获取及编辑系统实施例的信息设置示意图,给出了关于“服务器资产测试”信息的设置情况。从图中可知,“服务器资产测试”信息页展开为4组子信息,即服务器名称,服务器资产卷标,服务器基本操作系统以及其它测试,而且每组子信息又分为不同的行。下面结合图3对基本输入输出系统数据区中的“服务器资产测试”信息进行分析。依照上述基本输入输出系统数据存放规律,信息搜索模快30对基本输入输出系统数据进行解析,进而获取如图4所示基本输入输出系统中数据的信息组示意图。Fig. 3 is a schematic diagram of the information setting of the embodiment of the basic input and output system information acquisition and editing system of the present invention, showing the information setting of the "server asset test". It can be seen from the figure that the "Server Asset Test" information page is expanded into 4 groups of sub-information, namely server name, server asset volume label, server basic operating system and other tests, and each group of sub-information is divided into different rows. The following analyzes the "server asset test" information in the data area of the basic input and output system in conjunction with Fig. 3 . According to the above data storage rules of the basic input and output system, the information search module 30 analyzes the basic input and output system data, and then obtains the schematic diagram of the information group of the data in the basic input and output system as shown in FIG. 4 .

图4为本发明基本输入输出系统信息的获取及编辑系统实施例的信息组示意图,从图中可知,基本输入输出系统中的数据储存遵循一定的规律,以各数据段所对应的关键词开头,如图中所示主关键词以特定分隔符号作为关键词的结束。接下来后面跟着子串的关键词,即子关键词,以及子串的位置、子串的信息内容、子串的长度,最后以特定分隔符号作为子串的结束。Fig. 4 is a schematic diagram of the information group of the embodiment of the information acquisition and editing system of the basic input and output system of the present invention. It can be seen from the figure that the data storage in the basic input and output system follows certain rules, starting with the keywords corresponding to each data segment , as shown in the figure, the main keyword ends with a specific delimiter. Then follow the keyword of the substring, that is, the subkeyword, the position of the substring, the information content of the substring, the length of the substring, and finally use a specific delimiter as the end of the substring.

图中给出了一个主关键词“CQHLIPL”,对应于“服务器资产测试”;四个子关键词,CQHLS1、CQHLS2、CQHLS3及CQHLS4,分别与“服务器资产测试”信息页展开的四组子信息对应。经信息搜索模块30解析后,关于“服务器名称”,“服务器资产标签”,“服务器基本操作系统”以及“其它测试”的四个子关键词的对应信息如图4所示。The figure shows a main keyword "CQHLIPL", which corresponds to "server asset test"; four sub-keywords, CQHLS1, CQHLS2, CQHLS3 and CQHLS4, respectively correspond to the four sets of sub-information expanded on the "server asset test" information page . After being parsed by the information search module 30, the corresponding information about the four sub-keywords of "server name", "server asset label", "server basic operating system" and "other tests" is shown in FIG. 4 .

在此实施例中将“服务器资产测试”信息映像至系统非易失性随机存储器区域16中,并被备份模块18储存为一二进制文档,关于备份文档20的格式见图5所示。图5为本发明基本输入输出系统信息的获取及编辑系统实施例的第一文档示意图,图中显示“服务器资产测试”信息的信息组内容,数据地址以及信息组中各个信息所对应的二进制数据。例如字符区域50表示主关键词“CQHLIPL”,其在二进制文件形式中由字符区域52“4C 50 49 48 51 43”表示,字符区域54“01 00”表示为主关键词的分隔符号,字符区域56“0006”为各子关键词的分隔符号,子关键词后面紧接着是各子串的长度,其后为子串的内容,子串各行之间用“00”做分隔符号。In this embodiment, the "server asset test" information is mapped to the system non-volatile RAM area 16 and stored as a binary file by the backup module 18. The format of the backup file 20 is shown in FIG. 5 . Fig. 5 is a schematic diagram of the first document of the embodiment of the acquisition and editing system of basic input and output system information of the present invention, in which the content of the information group of the "server asset test" information, the data address and the binary data corresponding to each information in the information group are displayed . For example, the character area 50 represents the main keyword "CQHLIPL", which is represented by the character area 52 "4C 50 49 48 51 43" in the form of the binary file, and the character area 54 "01 00" represents the separation symbol of the main keyword, and the character area 56 "0006" is the delimiter of each sub-keyword, the sub-keyword is followed by the length of each sub-string, followed by the content of the sub-string, and "00" is used as the delimiter between each line of the sub-string.

现在返回到图3,循环冗余码校验模块32首先搜索循环冗余码校验位所在的位置,然后依据备份文档20中的当前基本输入输出系统信息还原其循环冗余码的原始值,在用户输入需要修改的信息后,产生一新循环冗余码值。传统方法在基本输入输出系统中获取循环冗余码值的算法比较复杂,此算法中循环冗余码值与基本输入输出系统中特定区域中数据的总量,数据的内容,各子数据段的长度,各子数据段的偏移位置,数据段之间的分隔符号等信息密切相关,每一次通过基本输入输出系统中断服务程序修改基本输入输出系统某一数据区内容时,其它数据区的位置顺序也相应改变,并且这一算法不为外界所公知,且在基本输入输出系统升级的情况下此算法也可能会发生改变。本发明按照当前基本输入输出系统数据区中的信息,固定其所在的区域,偏移量,顺序,数据段之间的分隔符号等信息,只对所需修改的内容部分作相应的处理。这样影响循环冗余码值的就只有某几位的变化了,只需分析出新的基本输入输出系统信息内容与旧的信息内容的差异即可得到新循环冗余码值。Returning to Fig. 3 now, the cyclic redundancy check module 32 first searches for the position of the cyclic redundancy check bit, and then restores the original value of the cyclic redundancy code according to the current basic input and output system information in the backup file 20, After the user inputs the information to be modified, a new cyclic redundancy code value is generated. The algorithm for obtaining the cyclic redundancy code value in the traditional method in the basic input and output system is relatively complicated. The length, the offset position of each sub-data segment, the separator between data segments and other information are closely related. Every time the content of a certain data area of the basic input and output system is modified through the interrupt service program of the basic input and output system, the position of other data areas The order is changed accordingly, and this algorithm is not known to the outside world, and this algorithm may also change in the case of BIOS upgrades. According to the information in the data area of the current basic input and output system, the present invention fixes information such as the area where it is located, the offset, the sequence, and the separator between data segments, and only performs corresponding processing on the content part that needs to be modified. In this way, only some changes of certain bits affect the cyclic redundancy code value, and the new cyclic redundancy code value can be obtained only by analyzing the difference between the new basic input and output system information content and the old information content.

此外,信息重组模块34会依据用户输入的基本输入输出系统修改信息检索信息搜索模块30中的数个信息组,并依据修改信息替换信息组中的相应信息。非易失性随机存储器文件编辑模块36则借助备份文件20、信息搜索模块30中的数个信息组信息以及新循环冗余码值生成新文档24。首先非易失性随机存储器文件编辑模块36依据备份文档20复制出新文档24,然后清除新文文件24中基本输入输出系统数据区相关信息,再按照信息组中记录的信息对新文件进行编辑,此外将新循环冗余码值写回新文件中相应位置,最后依据备份文件20、信息组信息及新循环冗余码值验证新文档24中内容的正确性。In addition, the information reorganization module 34 modifies several information groups in the information retrieval module 30 according to the basic input and output system input by the user, and replaces corresponding information in the information groups according to the modified information. The non-volatile random access memory file editing module 36 generates a new document 24 with the help of the backup file 20 , several information groups in the information search module 30 and the new cyclic redundancy code value. First, the non-volatile RAM file editing module 36 copies the new file 24 according to the backup file 20, then clears the relevant information of the basic input and output system data area in the new file 24, and then edits the new file according to the information recorded in the information group In addition, the new cyclic redundancy code value is written back to the corresponding position in the new file, and finally the correctness of the content in the new document 24 is verified according to the backup file 20, the information of the information group and the new cyclic redundancy code value.

图5与图6为依据本发明的基本输入输出系统信息的获取及编辑系统对基本输入输出系统信息进行修改的实施例,其中图5为本发明基本输入输出系统信息的获取及编辑系统实施例的第一文档示意图,图6为本发明基本输入输出系统信息的获取及编辑系统实施例的第二文档示意图。Figures 5 and 6 are embodiments of modifying basic input and output system information according to the basic input and output system information acquisition and editing system of the present invention, wherein Figure 5 is an embodiment of the basic input and output system information acquisition and editing system of the present invention Fig. 6 is a schematic diagram of the second document of the embodiment of the basic input and output system information acquisition and editing system of the present invention.

当图5所示的“服务器资产测试”中的“服务器资产卷标”信息第一行的内容,即子关键词2的信息内容的字符区域58“333333333333”改为“AAAAAA”,以及将第二行的内容,即子关键词2的信息内容的字符区域60改为空,其中字符区域58、60所对应的二进制数据内容为字符区域62,则通过非易失性随机存储器文件编辑模块36生成的新文档24,如图6所示,得到字符区域64对应的修改内容。When the content of the first line of the "server asset label" information in the "server asset test" shown in Figure 5, that is, the character area 58 "333333333333" of the information content of the subkeyword 2 is changed to "AAAAAA", and the first line The content of two lines, namely the character area 60 of the information content of sub-keyword 2 is changed into empty, wherein the binary data content corresponding to character area 58,60 is character area 62, then by nonvolatile RAM file editing module 36 The generated new document 24, as shown in FIG. 6, obtains the modified content corresponding to the character area 64.

此外,编辑模块28还包括有一对比模块38,来对不同版本的基本输入输出系统信息进行对比,例如对比用户指定的两个非易失性随机存储器文件,或用户指定的某一非易失性随机存储器文件与当前基本输入输出系统信息,从中找出各版本基本输入输出系统信息的不同,用户也可以指定所需对比的区域或关键词。In addition, the editing module 28 also includes a comparison module 38 to compare different versions of the basic input and output system information, such as comparing two non-volatile RAM files specified by the user, or a certain non-volatile RAM file specified by the user. The random access memory file and the current BIOS information are used to find out the differences between the versions of the BIOS information, and the user can also designate the area or keyword to be compared.

编辑模块28是本发明的核心模块,其实现了对基本输入输出系统信息模块数据的自动检索定位,设置偏移量及自动循环冗余码值校验的功能,此操作保证了基本输入输出系统信息修改操作的安全性。在修改基本输入输出系统信息时,如果修改了基本输入输出系统中的特定区间而没有修改其对应的校验值,会引发基本输入输出系统本身的保护机制,导致其中重要信息被清空甚至更严重的后果。Editing module 28 is the core module of the present invention, and it has realized the automatic retrieval positioning of basic input and output system information module data, the function of setting offset and automatic cyclic redundancy code value check, this operation has guaranteed basic input and output system Security of information modification operations. When modifying the basic input and output system information, if a specific interval in the basic input and output system is modified without modifying its corresponding check value, it will trigger the protection mechanism of the basic input and output system itself, causing important information to be cleared or even more serious s consequence.

本发明所公开的恢复模块26将新文件24的内容恢复至系统非易失性随机存储器区域的相应位置,以达到修改基本输入输出系统信息的目的。由于系统非易失性随机存储器的读写也需要遵循一定规律,且系统非易失性随机存储器中信息是相互关联的,单独对某字节操作可能会影响其它位置的数据,而有的数据位又不能以字节作为单位进行修改操作,因此恢复模块26采用整体覆盖读写的方式将新文档中内容写回至系统非易失性随机存储器中相应区域,以避免单独操作某字节所带来的不良影响。同时,对系统非易失性随机存储器的读写功能进行检测,以验证读写的正确性。此时,整个对基本输入输出系统信息的修改操作全部完成。需要注意的是,在整个修改基本输入输出系统的过程中需时刻检查操作的正确性,当遇到严重错误时,自动将开始备份好的备份文档20恢复回去,以保证基本输入输出系统信息的完整性与安全性。The restoration module 26 disclosed in the present invention restores the content of the new file 24 to the corresponding position in the system non-volatile RAM area, so as to achieve the purpose of modifying basic input and output system information. Since the reading and writing of the system non-volatile random access memory also needs to follow certain rules, and the information in the system non-volatile random access memory is interrelated, a single operation on a certain byte may affect the data in other locations, and some data Bits cannot be modified in units of bytes, so recovery module 26 writes the content in the new document back to the corresponding area in the system non-volatile random access memory in the form of overall overwriting and reading and writing, so as to avoid operating a certain byte separately. adverse effects. At the same time, the read and write functions of the non-volatile random access memory of the system are tested to verify the correctness of reading and writing. At this point, the entire modification operation of the basic input and output system information is completed. It should be noted that during the entire process of modifying the basic input and output system, it is necessary to check the correctness of the operation at all times. When a serious error is encountered, the backup file 20 that has been backed up at the beginning will be automatically restored to ensure the integrity of the basic input and output system information. Integrity and Security.

下面结合图7与图8对本发明基本输入输出系统信息的获取及编辑方法进行说明。首先映像基本输入输出系统信息至系统非易失性随机存储器区域(步骤101),然后读取系统非易失性随机存储器区域的映像内容并储存为一第一文档(步骤102),接着读取第一文档的内容并进行分析,进而获取基本输入输出系统各数据段所对应的信息,以生成数个信息组(步骤103)。依据当前基本输入输出系统信息还原其循环冗余码的原始值(步骤104),并依据用户输入的基本输入输出系统修改信息对数个信息组进行检索,并借助基本输入输出系统修改信息替换信息组中的相应信息(步骤105),然后依据当前信息组信息得到一新循环冗余码值(步骤106)。借助第一文件、信息组信息并依据新循环冗余码值生成一第二文档(步骤107),再采用整体覆盖读写的方式将第二文档的内容恢复至非易失性随机存储器区域的相应位置(步骤108),最后映像非易失性随机存储器区域的相应位置内容至基本输入输出系统中。此外,本发明基本输入输出系统信息的获取及编辑方法还包括一信息/版本对比步骤,用来对不同版本的基本输入输出系统信息进行对比。The method for acquiring and editing the basic input and output system information of the present invention will be described below with reference to FIG. 7 and FIG. 8 . First map the basic input and output system information to the system non-volatile random access memory area (step 101), then read the image content of the system non-volatile random access memory area and store it as a first file (step 102), then read The content of the first document is analyzed, and then the information corresponding to each data segment of the BIOS is obtained to generate several information groups (step 103). Restoring the original value of the cyclic redundancy code according to the current basic input output system information (step 104), and retrieving several information groups according to the basic input output system modification information input by the user, and replacing the information with the help of the basic input output system modification information Corresponding information in the group (step 105), and then obtain a new cyclic redundancy code value according to the information of the current group (step 106). Generate a second file (step 107) with the help of the first file and the block information and according to the new cyclic redundancy code value, and then restore the content of the second file to the non-volatile random access memory area in the way of overall overwriting and reading The corresponding location (step 108 ), and finally map the content of the corresponding location in the non-volatile RAM area to the BIOS. In addition, the method for acquiring and editing the BIOS information of the present invention further includes an information/version comparison step, which is used to compare different versions of the BIOS information.

图9为本发明基本输入输出系统信息的获取及编辑方法的恢复步骤流程图,即图8中步骤108的具体恢复步骤流程图。由图可知,在恢复第二文件时首先打开系统非易失性随机存储器的可写权限(步骤201),然后将第二文档的内容整块写回系统非易失性随机存储器区域,即不单独对第二文档某一个字节操作(步骤202),接着,读取系统非易失性随机存储器区域中的数据,并验证读写的正确性(步骤203),最后关闭系统非易失性随机存储器的可写权限,来保护基本输入输出系统中的信息(步骤204)。FIG. 9 is a flowchart of restoration steps of the method for acquiring and editing basic input and output system information of the present invention, that is, a flowchart of specific restoration steps of step 108 in FIG. 8 . As can be seen from the figure, when restoring the second file, first open the writable permission of the system non-volatile random access memory (step 201), and then write back the whole block of the content of the second file to the system non-volatile random access memory area, that is, not Separately operate on a certain byte of the second document (step 202), then read the data in the system non-volatile random access memory area, and verify the correctness of reading and writing (step 203), and finally close the system non-volatile The writable permission of the random access memory is used to protect the information in the BIOS (step 204).

当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding changes All changes and modifications should belong to the scope of protection of the appended claims of the present invention.

Claims (12)

1、一种基本输入输出系统信息的获取及编辑方法,用于获取及编辑一基本输入输出系统的信息,其特征在于,包括有下列步骤:1. A method for obtaining and editing information of a basic input and output system, used for obtaining and editing information of a basic input and output system, characterized in that it includes the following steps: 映像该基本输入输出系统信息至一系统非易失性随机存储器区域中;Mapping the BIOS information into a system non-volatile random access memory area; 读取该系统非易失性随机存储器区域的映像内容并储存为一第一文档;Read the image content of the non-volatile random access memory area of the system and store it as a first file; 依据该基本输入输出系统的修改信息修改该第一文档,并生成一第二文档;modifying the first document according to the modification information of the basic input output system, and generating a second document; 将该第二文档的内容恢复至该系统非易失性随机存储器区域的相应位置;以及restoring the contents of the second file to a corresponding location in the system non-volatile random access memory area; and 映像该系统非易失性随机存储器区域的相应位置内容至该基本输入输出系统中,以编辑该基本输入输出系统信息。Mapping the content of the corresponding location of the system non-volatile random access memory area to the BIOS, so as to edit the BIOS information. 2、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,在不同操作系统下调用不同的底层驱动程序来对该系统非易失性随机存储器区域的内容进行读取。2. The method for obtaining and editing basic input and output system information according to claim 1, characterized in that different underlying drivers are called under different operating systems to read the contents of the system's non-volatile random access memory area Pick. 3、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,还包括一信息搜索步骤,读取该第一文档的内容,进而获取该基本输入输出系统各数据段所对应的信息,以生成数个信息组。3. The method for obtaining and editing information of the basic input and output system according to claim 1, further comprising an information search step of reading the content of the first document, and then obtaining each data segment of the basic input and output system The corresponding information to generate several information groups. 4、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,还包括一循环冗余码校验步骤,依据当前基本输入输出系统信息还原其循环冗余码的原始值,以及依据该基本输入输出系统的修改信息产生一新循环冗余码值。4. The method for obtaining and editing the basic input and output system information according to claim 1, further comprising a cyclic redundancy code checking step of restoring the original cyclic redundancy code of the current basic input and output system information. value, and generate a new CRC value according to the modification information of the BIOS. 5、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,还包括一信息重组步骤,用来依据该基本输入输出系统的修改信息检索并替换该基本输入输出系统各数据段所对应的信息。5. The method for obtaining and editing the information of the basic input and output system according to claim 1, further comprising an information reorganization step for retrieving and replacing the basic input and output system according to the modified information of the basic input and output system Information corresponding to each data segment. 6、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,还包括一信息/版本对比步骤,用来对不同版本的基本输入输出系统信息进行对比。6. The method for obtaining and editing the basic input and output system information according to claim 1, further comprising an information/version comparison step for comparing different versions of basic input and output system information. 7、根据权利要求1所述的基本输入输出系统信息的获取及编辑方法,其特征在于,该将该第二文档的内容恢复至该系统非易失性随机存储器区域的相应位置的步骤系采用整体覆盖读写的方式。7. The method for obtaining and editing basic input and output system information according to claim 1, wherein the step of restoring the content of the second file to the corresponding position of the system non-volatile random access memory area adopts Overall coverage of reading and writing. 8、一种基本输入输出系统信息的获取及编辑系统,用于获取及编辑一基本输入输出系统的信息,其特征在于,包括有:8. A basic input and output system information acquisition and editing system for acquiring and editing information of a basic input and output system, characterized in that it includes: 一映像模块,用来在该基本输入输出系统与一系统非易失性随机存储器区域间进行信息的双向映像;a mapping module, used for bidirectional mapping of information between the BIOS and a system non-volatile random access memory area; 一备份模块,用来读取该系统非易失性随机存储器区域的内容并储存为一第一文档;A backup module, used to read the contents of the non-volatile random access memory area of the system and store it as a first file; 一编辑模块,用来依据该基本输入输出系统的修改信息修改该第一文档,并生成一第二文档;以及an editing module, used to modify the first document according to the modification information of the BIOS, and generate a second document; and 一恢复模块,用来将该第二文档的内容恢复至该系统非易失性随机存储器区域的相应位置。A restoration module is used to restore the content of the second file to the corresponding position of the system non-volatile random access memory area. 9、根据权利要求8所述的基本输入输出系统信息的获取及编辑系统,其特征在于,该编辑模块进一步包括有:9. The basic input and output system information acquisition and editing system according to claim 8, characterized in that the editing module further includes: 一信息搜索模块,用来读取该第一文档的内容并进行分析,进而获取该基本输入输出系统各数据段所对应的信息,以生成数个信息组;An information search module, used to read and analyze the content of the first document, and then obtain information corresponding to each data segment of the basic input and output system to generate several information groups; 一循环冗余码校验模块,用来依据当前基本输入输出系统信息还原其循环冗余码的原始值,以及依据该基本输入输出系统的修改信息产生一新循环冗余码值;A cyclic redundancy code check module, used to restore the original value of the cyclic redundancy code according to the current basic input output system information, and generate a new cyclic redundancy code value according to the modification information of the basic input output system; 一信息重组模块,用来依据该基本输入输出系统的修改信息检索该信息搜索模块的该数个信息组,并替换该信息组中相应信息;以及an information reorganization module, used to retrieve the several information groups of the information search module according to the modification information of the basic input output system, and replace the corresponding information in the information groups; and 一非易失性随机存储器文文件编辑模块,用来借助该第一文文件、该信息组信息以及该新循环冗余码值生成该第二文档。A non-volatile RAM file editing module is used to generate the second file by using the first file, the block information and the new cyclic redundancy code value. 10、根据权利要求8所述的基本输入输出系统信息的获取及编辑系统,其特征在于,该编辑模块还包括有一对比模块,来对不同版本的基本输入输出系统信息进行对比。10. The system for obtaining and editing the basic input and output system information according to claim 8, wherein the editing module further includes a comparison module for comparing different versions of basic input and output system information. 11、根据权利要求8所述的基本输入输出系统信息的获取及编辑系统,其特征在于,在不同操作系统下该备份模块采用调用不同底层驱动程序的方式来读取该系统非易失性随机存储器区域的内容。11. The basic input and output system information acquisition and editing system according to claim 8, characterized in that the backup module reads the system non-volatile random Contents of the memory area. 12、根据权利要求8所述的基本输入输出系统信息的获取及编辑系统,其特征在于,该恢复模块将该第二文件恢复至该系统非易失性随机存储器区域的操作采用整体覆盖读写的方式。12. The basic input and output system information acquisition and editing system according to claim 8, characterized in that, the operation of restoring the second file to the non-volatile random access memory area of the system by the recovery module adopts overall overwriting and reading and writing The way.
CNB2005101346718A 2005-12-19 2005-12-19 Method and system for acquiring and editing basic input and output system information Expired - Lifetime CN100458719C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101346718A CN100458719C (en) 2005-12-19 2005-12-19 Method and system for acquiring and editing basic input and output system information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101346718A CN100458719C (en) 2005-12-19 2005-12-19 Method and system for acquiring and editing basic input and output system information

Publications (2)

Publication Number Publication Date
CN1987802A true CN1987802A (en) 2007-06-27
CN100458719C CN100458719C (en) 2009-02-04

Family

ID=38184607

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101346718A Expired - Lifetime CN100458719C (en) 2005-12-19 2005-12-19 Method and system for acquiring and editing basic input and output system information

Country Status (1)

Country Link
CN (1) CN100458719C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136066A (en) * 2011-11-25 2013-06-05 英业达股份有限公司 Voltage error processing device and method
CN103853573A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN115291956A (en) * 2022-08-05 2022-11-04 北京天融信网络安全技术有限公司 Method and device for acquiring configuration information of basic input and output system
CN115480883A (en) * 2021-05-31 2022-12-16 比亚迪半导体股份有限公司 Chip, chip testing method, and computer-readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1129914C (en) * 2000-01-18 2003-12-03 神达电脑股份有限公司 Method for upgrading system basic input and output system read-only memory
CN1186717C (en) * 2002-07-18 2005-01-26 威盛电子股份有限公司 A Method of Automatically Obtaining Relevant Control Data in Basic Input/Output System
CN1225701C (en) * 2003-05-23 2005-11-02 威盛电子股份有限公司 Method for BIOS setting of CMOS in DMI block backup computer system
US7373498B2 (en) * 2003-12-23 2008-05-13 Intel Corporation Method and apparatus for updating a system configuration through an active or passive update

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136066A (en) * 2011-11-25 2013-06-05 英业达股份有限公司 Voltage error processing device and method
CN103853573A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103853573B (en) * 2012-12-05 2017-09-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN115480883A (en) * 2021-05-31 2022-12-16 比亚迪半导体股份有限公司 Chip, chip testing method, and computer-readable storage medium
CN115291956A (en) * 2022-08-05 2022-11-04 北京天融信网络安全技术有限公司 Method and device for acquiring configuration information of basic input and output system

Also Published As

Publication number Publication date
CN100458719C (en) 2009-02-04

Similar Documents

Publication Publication Date Title
US5623661A (en) System for and method of providing delta-versioning of the contents of PCTE file objects
JP4878715B2 (en) Method, computer system and computer readable recording medium for patching applications that do not conform to operating system
US6851073B1 (en) Extensible system recovery architecture
US6820214B1 (en) Automated system recovery via backup and restoration of system state
JP5208350B2 (en) Self-describing software image update component
US6161218A (en) Software patch architecture
CN101430703B (en) Systems and methods for automatic maintenance and repair of entites in data model
JP4901095B2 (en) Fail-safe way to apply custom software image updates to non-volatile storage
US6535998B1 (en) System recovery by restoring hardware state on non-identical systems
US9836362B2 (en) Cyclic commit transaction protocol
US6976221B2 (en) System and method for flexible software linking
CN101529395B (en) File system
US7487385B2 (en) Apparatus and method for recovering destroyed data volumes
CN1561483A (en) Method for atomically updating a plurality of files
CN104239082A (en) Hot patching implementation method of embedded system
CN103430178A (en) Data updating method, device and product
CN101002174B (en) Method for loading software with an intermediate object oriented language in a portable device
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
CN100458719C (en) Method and system for acquiring and editing basic input and output system information
US20080222215A1 (en) Method for Deleting Virus Program and Method to Get Back the Data Destroyed by the Virus
CN107844303B (en) Production mirror image-based configurable and power-down security embedded system deployment method
JP3792232B2 (en) Information processing apparatus, storage location management method, and program
CN116841463A (en) Data verification method, device and equipment of storage equipment and storage medium
CN115729750A (en) Method capable of integrating third-party software into recovery environment
JP2005149291A (en) File system, program thereof, and information processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: I VALLEY HOLDINGS CO., LTD.

Free format text: FORMER OWNER: YINGYEDA CO., LTD., TAIWAN

Effective date: 20150717

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150717

Address after: Cayman Islands, George Town

Patentee after: Microsoft Corp.

Address before: Taipei City, Taiwan, China

Patentee before: Yingda Co.,Ltd.

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20090204