CN114510255A - BIOS information configuration method based on BIOS information configuration module - Google Patents

BIOS information configuration method based on BIOS information configuration module Download PDF

Info

Publication number
CN114510255A
CN114510255A CN202111671394.XA CN202111671394A CN114510255A CN 114510255 A CN114510255 A CN 114510255A CN 202111671394 A CN202111671394 A CN 202111671394A CN 114510255 A CN114510255 A CN 114510255A
Authority
CN
China
Prior art keywords
bios
information
module
configuration
file
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.)
Pending
Application number
CN202111671394.XA
Other languages
Chinese (zh)
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.)
Clp Technology Beijing Co ltd
Original Assignee
Clp Technology Beijing 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 Clp Technology Beijing Co ltd filed Critical Clp Technology Beijing Co ltd
Priority to CN202111671394.XA priority Critical patent/CN114510255A/en
Publication of CN114510255A publication Critical patent/CN114510255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a BIOS information configuration method based on a BIOS information configuration module, which comprises the following specific processes: the method comprises the following steps of constructing a BIOS information module: reading BIOS information configuration file information, constructing a BIOS information module, and embedding the BIOS information module into a BIOS mirror image file; writing the BIOS mirror image file to the SPI FLASH; BIOS information configuration: reading the configuration file information of the BIOS information module; and comparing the read information in the BIOS information module with the information in the BIOS information module built in the BIOS updating image file, and executing the BIOS updating operation when the comparison result meets the condition. The method can solve the problems that the BIOS configuration information cannot be detected, so that the compiling consistency cannot be realized and the BIOS can not be automatically refreshed.

Description

BIOS information configuration method based on BIOS information configuration module
Technical Field
The invention belongs to the technical field of computer firmware, and particularly relates to a BIOS information configuration method based on a BIOS information configuration module.
Background
The BIOS is used for initializing a computer processor platform and loading an operating system, and has the basic functions of obtaining system control right after a hardware platform is powered on, initializing key components such as a processor, a memory, a chipset and the like, enumerating peripheral equipment and distributing resources for the peripheral equipment, initializing necessary peripheral equipment such as a video card, a hard disk, a network card and the like, establishing an operating environment for the operating system, and then giving the control right to the operating system.
However, information such as version number and compiling time of the conventional BIOS is generally compiled into a pe (portable executable) file in a macro definition form, and the information such as the version number and the compiling information of the BIOS can be known only after the boot. Therefore, the general BIOS update tool cannot determine whether the BIOS image file is adapted to the current platform. Moreover, the system time is obtained during compiling and compiled into the code through the macro definition, and the requirement of compiling consistency cannot be met.
Disclosure of Invention
In view of this, the present invention provides a BIOS information configuration method based on a BIOS information configuration module, which can solve the problem that the BIOS configuration information cannot be detected, so that the compiling consistency and the BIOS auto-refresh cannot be realized.
The technical scheme for realizing the invention is as follows:
a BIOS information configuration method based on a BIOS information configuration module comprises the following specific processes: the method comprises the following two parts of BIOS information module construction and BIOS information configuration:
(1) BIOS information module construction
Reading a BIOS information configuration file, and extracting compiler information, version information, time information and processor platform information from the BIOS information configuration file; if the extracted time information is empty, taking the current system time as the release time; aiming at the acquired information and according to the format requirement of a BIOS file, a BIOS information module is constructed and is built in a BIOS mirror image file; writing the BIOS mirror image file to the SPI FLASH;
(2) BIOS information configuration
Initial conditions: the BIOS updating mirror image file is internally provided with a BIOS information module;
reading compiler information, version information, time information and processor platform information in a BIOS information module; and comparing the read information in the BIOS information module with the information in the BIOS information module built in the BIOS updating image file, and executing the BIOS updating operation when the comparison result meets the condition.
Further, the case where the comparison result of the present invention satisfies the condition is:
the version number in the BIOS updating image file is larger than the read version information, the time information in the BIOS updating image is later than the read time information, and the processor platform information is the same as the compiler information.
Further, after the BIOS updating operation is executed, the BIOS information module in the BIOS updating image file is used for updating the BIOS information module stored in the SPI FLASH.
Furthermore, the information extracted from the BIOS information configuration file of the present invention further includes a project name, the project name is written into the BIOS information module, and in the BIOS information configuration process, it is determined whether the BIOS update operation can be performed based on the judgment of the project name.
Furthermore, the information extracted from the BIOS information configuration file of the present invention further includes processor architecture information, the processor architecture information is written into the BIOS information module, and during the BIOS information configuration process, whether the BIOS update operation can be performed is determined based on the judgment of the processor architecture information.
Further, the BIOS information module of the present invention is compiled by using binary files.
Advantageous effects
Firstly, the invention can read the information in the BIOS information module to obtain the information of version and the like by introducing the BIOS information module when the BIOS runs, and judges whether the BIOS information can be updated or not based on the content stored in the BIOS information module.
Secondly, the data format of the BIOS information module has expandability, any data can be added, and tools can be used for modifying the part of contents in the BIOS.
Drawings
FIG. 1 is a flow chart of BIOS information module construction;
FIG. 2 is a flow chart of BIOS information configuration;
FIG. 3 is a block diagram of the BIOS information configuration module.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
It should be noted that, in the case of no conflict, the features in the following embodiments and examples may be combined with each other; moreover, all other embodiments that can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort fall within the scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
The design idea of the invention is as follows: a BIOS information configuration module is arranged in the SPI FLASH, and comprises a BIOS version number, compiler information and the like; when the BIOS main program is to be updated, whether the updating condition is met or not is judged through the information stored in the BIOS information configuration module, so that the BIOS updating tool can judge whether the BIOS updating image file is matched with the current platform or not in advance.
The BIOS information configuration method based on the BIOS information configuration module comprises the following two parts:
(1) BIOS information module construction
As shown in fig. 1, the BIOS information configuration file is read, and compiler information, version information, time information, and processor platform information are extracted therefrom; if the extracted time information is empty, taking the current system time as the release time; aiming at the acquired information and according to the format requirement of a BIOS file, a BIOS information module is constructed and is built in a BIOS mirror image file; writing the BIOS mirror image file to the SPI FLASH;
(2) BIOS information configuration
Initial conditions: the BIOS updating mirror image file is internally provided with a BIOS information module;
as shown in fig. 2, the compiler information, the version information, the time information and the processor platform information in the BIOS information module are read; and comparing the read information in the BIOS information module with the information in the BIOS information module built in the BIOS updating image file, and executing the BIOS updating operation when the comparison result meets the condition.
According to the application, the BIOS information module is arranged in the SPI FLASH, the BIOS information module comprises BIOS configuration information, and a BIOS version number, compiling information and the like can be obtained from the BIOS information module before starting, so that whether the BIOS updating image file is matched with the current platform or not can be judged in advance, and the problem that the BIOS updating image file cannot be applied after being updated due to improper matching is avoided.
In another embodiment of the present application, the case where the comparison result satisfies the condition is:
the version number in the BIOS updating image file is larger than the read version information, the time information in the BIOS updating image is later than the read time information, and the processor platform information is the same as the compiler information.
When the condition is met, the BIOS updating image file is suitable for updating the BIOS main program on the current hardware platform, namely the platform can run normally after the updating is finished, and therefore the problem that the BIOS main program cannot be used after the updating can be avoided through the judging condition.
In another embodiment of the present application, after the BIOS update operation is performed, the BIOS information module in the BIOS update image file is used to update the BIOS information module stored in the SPI FLASH.
The information stored in the BIOS information module with similar setting corresponds to the content stored in the BIOS main program, and when the BIOS information module needs to be updated next time, the content stored in the SPI FLASH is directly read.
In another embodiment of the present application, the information extracted from the BIOS information configuration file further includes a project name, the project name is written in the BIOS information module, and during the BIOS information configuration process, it is further determined whether the BIOS update operation can be performed based on the judgment of the project name.
In another embodiment of the present application, the information extracted from the BIOS information configuration file further includes processor architecture information written into the BIOS information module, and during the BIOS information configuration process, it is further determined whether the BIOS update operation can be performed based on a determination of the processor architecture information.
In another embodiment of the present application, the BIOS information module is compiled by using a binary file, that is, a binary file is generated, and information such as a BIOS version, a generation date, a release date, a GUID, and an applicable platform is stored in the file. The binary file is wrapped in the generated BIOS image file.
The following takes a soar D2000 platform as an example to illustrate a specific implementation process of the present application:
the configuration file adopts an ASCII coded ini format, BIOS basic information is stored in a [ BIOSINFO ] section, and the method comprises the following steps:
the BIOS project name is expressed as: project name ═ FTD2000_ CRB;
the BIOS version information is represented as: BiosVer ═ KL.4.001.210125;
the BIOS release date is expressed as: ReleaseDate 2021/01/25;
the compiler information is represented as: compalsering ═ Linaro GCC 7.3-2018.05;
the processor architecture is represented as: arch ═ AARCH 64;
the processor platform information is represented as: CPU ═ FTD 2000;
the other extended information to be added can add parameters in the [ bios info ] section, or can create a section and add the extended parameters therein.
The embodiment of the application provides a BIOS information configuration method for a BIOS information configuration module of a Feiteng D2000 platform, which comprises the following specific processes:
(1) BIOS information module construction
Reading a BIOS information module configuration file by an information module construction tool, and extracting compiler information, version information, time information, information processing platform information, processor architecture and the like from the BIOS information module configuration file;
and step two, determining whether the current time is used as the release time, if the acquired time information is empty, using the current system time as the release time, and if the acquired time information is not empty, using the time acquired in the configuration file as the release time.
For example, if the release date in the configuration file is 2021/01/25 in the first step, 2021/01/25 is written into the BIOS information module as the release date; for example, if there is no release time in the configuration file obtained in step one, the system obtains the current time as the release time.
And thirdly, constructing a BIOS information module according to the acquired information and the format requirement of the BIOS file, and embedding the BIOS information module into the BIOS mirror image file.
And fourthly, writing the BIOS mirror image file to the SPI FLASH.
(2) BIOS information configuration
When configuring the BIOS information, an update tool and a BIOS update image file need to be prepared in advance, and a BIOS information configuration module is also built in the BIOS update image file, and includes compiler information, version information, and time information.
The method comprises the following steps that firstly, an updating tool reads a BIOS information module from a current platform (namely a computer mainboard) and reads BIOS configuration information from the BIOS information module, wherein the BIOS configuration information comprises compiler information, version information, time information and processor platform information;
step two, comparing the BIOS configuration information read in the step one with the configuration information of an information module in a BIOS updating image file, and judging whether the information in the BIOS information module meets the updating condition;
the update conditions are as follows: the version information in the BIOS updating mirror image is larger than the read version information, the time information in the BIOS updating mirror image is later than the read time information, the processor platform information is the same, the compiler information is the same, and if the conditions are met, a BIOS updating tool is used for executing the BIOS updating operation; if not, the flow is ended.
As shown in fig. 3, the BIOS information configuration device based on the BIOS information configuration module according to the embodiment of the present application includes two parts, namely, the BIOS information configuration module and the BIOS main program, in the SPI FLASH.
And the BIOS information configuration module is used for describing BIOS information such as BIOS version number, BIOS release time, processor architecture, compiler information and the like.
The BIOS main program comprises a BIOS core frame and a BIOS function module.
And the BIOS core framework is used for establishing a system Service table in the UEFI, including a boot Service (Bootservice) and a Runtime Service (Runtime Service), and performing unified management of all modules in the firmware and management of various resources. The BIOS boot time recording component may be loaded and run through the BIOS core framework.
BIOS function module, which is independent program module for initializing processor chip set, managing power supply and booting system. These program modules are called through the BIOS core framework.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A BIOS information configuration method based on a BIOS information configuration module is characterized by comprising the following specific processes: the method comprises the following two parts of BIOS information block construction and BIOS information configuration:
(1) BIOS information module construction
Reading a BIOS information configuration file, and extracting compiler information, version information, time information and processor platform information from the BIOS information configuration file; if the extracted time information is empty, taking the current system time as the release time; aiming at the acquired information and according to the format requirement of a BIOS file, a BIOS information module is constructed and is built in a BIOS mirror image file; writing the BIOS mirror image file to the SPI FLASH;
(2) BIOS information configuration
Initial conditions: the BIOS updating mirror image file is internally provided with a BIOS information module;
reading compiler information, version information, time information and processor platform information in a BIOS information module; and comparing the read information in the BIOS information module with the information in the BIOS information module built in the BIOS updating image file, and executing the BIOS updating operation when the comparison result meets the condition.
2. The BIOS information configuration method of claim 1, wherein the condition that the comparison result satisfies the condition is that:
the version number in the BIOS updating image file is larger than the read version information, the time information in the BIOS updating image is later than the read time information, and the processor platform information is the same as the compiler information.
3. The BIOS information configuration method of claim 1 wherein the BIOS information module stored in the SPI FLASH is updated with the BIOS information module in the BIOS update image file after the BIOS update operation is performed.
4. The BIOS information configuration method of claim 1, wherein the information extracted from the BIOS information configuration file further includes a project name, the project name is written in the BIOS information module, and the BIOS information configuration process further determines whether the BIOS update operation can be performed based on the judgment of the project name.
5. The BIOS information configuration method of claim 1 wherein the information extracted from the BIOS information configuration file further includes processor architecture information written into the BIOS information module, and wherein the determination of whether the update BIOS operation can be performed is further based on the determination of the processor architecture information during the BIOS information configuration process.
6. The BIOS information configuration method of claim 1 wherein the BIOS information module is implemented using binary files.
CN202111671394.XA 2021-12-31 2021-12-31 BIOS information configuration method based on BIOS information configuration module Pending CN114510255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111671394.XA CN114510255A (en) 2021-12-31 2021-12-31 BIOS information configuration method based on BIOS information configuration module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111671394.XA CN114510255A (en) 2021-12-31 2021-12-31 BIOS information configuration method based on BIOS information configuration module

Publications (1)

Publication Number Publication Date
CN114510255A true CN114510255A (en) 2022-05-17

Family

ID=81547605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111671394.XA Pending CN114510255A (en) 2021-12-31 2021-12-31 BIOS information configuration method based on BIOS information configuration module

Country Status (1)

Country Link
CN (1) CN114510255A (en)

Similar Documents

Publication Publication Date Title
US10447814B2 (en) Joint servicing of software packages
US7761701B2 (en) Component firmware integration in distributed systems
US7657881B2 (en) Using optimized libraries to improve performance of deployed application code at runtime
US8484631B2 (en) Supporting hardware configuration changes in a UEFI firmware component
US20150186161A1 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
US10248409B1 (en) Limiting the effects of source code patches on corresponding native-code patches
US20070169111A1 (en) Identification of software execution data
CN107577477B (en) DTB file-based multi-platform software version self-adaption method and system
CN110990019A (en) Java class analysis method and device, storage medium and electronic equipment
CN113805882A (en) Method and device for developing application program, electronic equipment and storage medium
CN103136002A (en) Automatic upgrade control method based on UBoot instruction and system
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN106796521B (en) API version control independent of product release
CN112631600A (en) Software construction method and system based on Flutter
CN108694052B (en) Firmware upgrading method, firmware upgrading device and firmware upgrading system
CN107423093B (en) Control method and apparatus, computer apparatus, and computer-readable storage medium
CN113064610A (en) Method, device and medium for updating BIOS
CN110806891B (en) Method and device for generating software version of embedded device
US20070100820A1 (en) Identification of software configuration data
CN114510255A (en) BIOS information configuration method based on BIOS information configuration module
CN115629795A (en) Configuration method and device of executable file and electronic equipment
CN112379867B (en) Embedded operating system, method and storage medium based on modular development
CN113849161A (en) Application control method and device, storage medium and electronic equipment
CN112463262A (en) Android system GPS module self-adaption method and terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 north side, 13th floor, Taiji building, No.6 working area (South), wohuqiao, Haidian District, Beijing

Applicant after: Kunlun Taike (Beijing) Technology Co.,Ltd.

Address before: 100083 north side, 13th floor, Taiji building, No.6 working area (South), wohuqiao, Haidian District, Beijing

Applicant before: CLP Technology (Beijing) Co.,Ltd.