CN115129526A - BIOS dynamic debugging method, system, storage medium and equipment - Google Patents

BIOS dynamic debugging method, system, storage medium and equipment Download PDF

Info

Publication number
CN115129526A
CN115129526A CN202210748348.3A CN202210748348A CN115129526A CN 115129526 A CN115129526 A CN 115129526A CN 202210748348 A CN202210748348 A CN 202210748348A CN 115129526 A CN115129526 A CN 115129526A
Authority
CN
China
Prior art keywords
debugging
level
control data
preset
debug
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
CN202210748348.3A
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.)
Suzhou Inspur 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 CN202210748348.3A priority Critical patent/CN115129526A/en
Publication of CN115129526A publication Critical patent/CN115129526A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Abstract

The invention provides a BIOS dynamic debugging method, a system, a storage medium and equipment, wherein the method comprises the following steps: setting a default debugging level as a first preset debugging level in the image file in response to compiling the BIOS image file, adding a second preset debugging level in the image file, and setting a default starting debugging mode; storing control data of a debugging mode in the CMOS, wherein the control data comprises a first numerical value corresponding to a first preset debugging level and a second numerical value corresponding to a second preset debugging level; acquiring control data in the CMOS through a log printing function, and confirming the numerical value of the control data; and printing a log corresponding to the preset debugging level based on the numerical value of the control data. The invention can realize the opening or closing of the debugging mode without recompiling and burning the BIOS image file each time, improves the convenience of the BIOS debugging process, improves the debugging working efficiency, and increases the flexibility of debugging grade configuration, thereby saving the related human resources and cost.

Description

BIOS dynamic debugging method, system, storage medium and equipment
Technical Field
The invention relates to the technical field of computers, in particular to a BIOS dynamic debugging method, a system, a storage medium and equipment.
Background
The BIOS (Basic Input/Output System), i.e. the Basic Input/Output System, is mainly responsible for initializing computer hardware and booting the operating System, and plays a very important role in the computer System. However, as the computer industry rapidly develops, CPUs (central processing units) and other hardware devices are continuously updated, and the BIOS gradually becomes a bottleneck of system development. Mainly manifested by low development efficiency, poor performance, poor function expansibility, slow upgrade, security problem and no support for booting from an address above the hard disk 2 TB.
Based on the above limitations, uefi (unified Extensible Firmware interface), which is a new standard, was created, and defines an interface between an operating system and platform Firmware. Due to the birth of UEFI, the BIOS is greatly applied and developed. The BIOS used at present is based on the UEFI standard, and hereinafter, if not specifically described, the BIOS is collectively referred to as UEFI BIOS.
In a POST (power on self test) stage, the BIOS prints a large number of start logs through serial ports to display the current start stage and the initialization state of each stage of the platform. The BIOS code may control whether these logs are compiled into Image (Image file). If the BIOS starts a Debug function, compiling a Debug Log and printing through a serial port during POST; if the BIOS closes the Debug function, the Debug Log cannot be compiled, and no Log is printed during POST.
In the prior art, if logs with different debugging levels are needed, Debug Mode (debugging Mode) needs to be frequently turned on or turned off, and the BIOS Image needs to be recompiled and the BIOS needs to be burned and updated every time, which is tedious in operation and takes a lot of time.
Disclosure of Invention
In view of the above, an objective of the present invention is to provide a method, a system, a storage medium, and a device for dynamically debugging a BIOS, so as to solve the problems in the prior art that when logs of different debugging levels are required, a debugging mode needs to be frequently switched, and a BIOS image file needs to be recompiled each time, which results in complex operation and low efficiency.
Based on the above purpose, the present invention provides a BIOS dynamic debugging method, which includes the following steps:
setting a default debugging level as a first preset debugging level in the image file in response to compiling the BIOS image file, adding a second preset debugging level in the image file, and setting a default starting debugging mode;
storing control data of a debugging mode in the CMOS, wherein the control data comprises a first numerical value corresponding to a first preset debugging level and a second numerical value corresponding to a second preset debugging level;
acquiring control data in the CMOS through a log printing function, and confirming the numerical value of the control data;
and printing a log corresponding to the preset debugging level based on the numerical value of the control data.
In some embodiments, printing a log corresponding to the preset debugging level based on the numerical value of the control data comprises:
responding to the control data as a first numerical value, and printing a log of a first preset debugging level; or
And responding to the control data as a second numerical value, and printing a log of a second preset debugging level.
In some embodiments, the method further comprises:
and adding a debugging mode control option in a setting interface of the BIOS to control the on or off of the debugging mode.
In some embodiments, the on state of the debug mode corresponds to a first preset debug level, and the off state of the debug mode corresponds to a second preset debug level.
In another aspect of the present invention, a BIOS dynamic debugging system is further provided, including:
the setting module is configured to respond to compiling of the BIOS image file, set a default debugging level in the image file as a first preset debugging level, increase a second preset debugging level in the image file, and set a default starting debugging mode;
the control data module is configured to store control data of a debugging mode in the CMOS, wherein the control data comprises a first numerical value corresponding to a first preset debugging level and a second numerical value corresponding to a second preset debugging level;
the numerical value confirmation module is configured to acquire control data in the CMOS through a log printing function and confirm the numerical value of the control data; and
and the log printing module is configured for printing a log corresponding to the preset debugging level based on the numerical value of the control data.
In some embodiments, the log printing module is further configured to print a log of a first preset debugging level in response to the control data being a first numerical value; or responding to the control data as a second numerical value, and printing a log of a second preset debugging level.
In some embodiments, the system further comprises a debug mode control module configured to add a debug mode control option in a setting interface of the BIOS to control turning on or off of the debug mode.
In some embodiments, the on state of the debug mode corresponds to a first preset debug level, and the off state of the debug mode corresponds to a second preset debug level.
In yet another aspect of the present invention, a computer-readable storage medium is also provided, storing computer program instructions, which when executed by a processor, implement the above-described method.
In yet another aspect of the present invention, a computer device is further provided, which includes a memory and a processor, the memory storing a computer program, which when executed by the processor performs the above method.
The invention has at least the following beneficial technical effects:
according to the invention, when the BIOS image file is compiled, the default debugging level is set as the first preset debugging level in the image file, the second preset debugging level is added in the image file, the default starting debugging mode is set, the control data corresponding to the first preset debugging level and the second preset debugging level are stored in the CMOS, the control data in the CMOS is obtained through the log printing function, and the specific numerical value of the control data is confirmed, so that the log corresponding to the preset debugging level is printed based on the numerical value of the control data, the starting or the closing of the debugging mode can be realized without recompiling and burning the BIOS image file each time, the convenience of the BIOS debugging process is improved, the debugging working efficiency is improved, the flexibility of debugging level configuration is increased, and the related human resources and cost are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of a BIOS dynamic debugging method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a BIOS dynamic debugging system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer-readable storage medium for implementing a BIOS dynamic debugging method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a computer device for executing a BIOS dynamic debugging method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two non-identical entities with the same name or different parameters, and it should be understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements does not include all of the other steps or elements inherent in the list.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for dynamically debugging a BIOS. FIG. 1 is a schematic diagram illustrating an embodiment of a BIOS dynamic debugging method provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
step S10, in response to compiling the BIOS image file, setting a default debugging level as a first preset debugging level in the image file, adding a second preset debugging level in the image file, and setting a default starting debugging mode;
step S20, storing control data of the debugging mode in the CMOS, wherein the control data comprises a first numerical value corresponding to a first preset debugging level and a second numerical value corresponding to a second preset debugging level;
step S30, obtaining control data in the CMOS through a log printing function, and confirming the numerical value of the control data;
and step S40, printing a log corresponding to the preset debugging level based on the numerical value of the control data.
BIOS (basic Input Output System) represents a basic Input Output system. On an IBM PC (personal computer) compatible system, it is a standard firmware interface in the industry. The BIOS is the first software loaded at startup of the personal computer. In fact, it is a set of programs solidified on a ROM chip on the main board of the computer, it stores the most important basic input and output programs of the computer, the self-checking program after power-on and the system self-starting program, it can read and write the specific information set by the system from the CMOS. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
CMOS, also known as complementary metal oxide semiconductor, a voltage controlled amplifier device, is the basic unit that makes up a CMOS digital integrated circuit. In the field of computers, CMOS often refers to a chip that stores basic startup information (such as date, time, startup settings, etc.) of a computer. Sometimes people will refer to CMOS and BIOS in a mixed way, where CMOS is a writable and readable parallel or serial FLASH (FLASH memory) chip on a motherboard, and is used to store the hardware configuration of BIOS and the settings of some parameters by users. Today, CMOS fabrication technology is also used to fabricate the light-sensitive element of digital image devices, especially for single-lens reflex digital cameras with large format.
The BIOS is software and program; CMOS is a chip, hardware; through BIOS program, parameters in CMOS can be set; the CMOS is a chip, important starting parameters are stored on a mainboard, and a CMOS button battery is used for maintaining electric quantity; storing parameters in the CMOS, and writing the set parameters into the CMOS through a program to set the parameters. The system setting program in the BIOS is a means for completing the setting of CMOS parameters; the CMOS RAM is not only a storage place for setting system parameters by the BIOS, but also a result for setting the system parameters by the BIOS.
The embodiment of the invention sets the default debugging level as the first preset debugging level in the image file when compiling the BIOS image file, and a second preset debugging level is added in the image file, a default starting debugging mode is set, storing in the CMOS control data corresponding to a first preset debug level and corresponding to a second preset debug level respectively, and obtains the control data in the CMOS through the log printing function, then confirms the concrete numerical value of the control data, thereby printing a log corresponding to a preset debugging level based on the numerical value of the control data, realizing the opening or closing of a debugging mode without recompiling and burning a BIOS image file each time, improving the convenience of the BIOS debugging process and the debugging working efficiency, meanwhile, the flexibility of debugging level configuration is increased, and related human resources and cost are saved.
In some embodiments, printing a log corresponding to the preset debugging level based on the numerical value of the control data comprises: responding to the control data as a first numerical value, and printing a log of a first preset debugging level; or responding to the control data being a second value, and printing a log of a second preset debugging level.
In some embodiments, the method further comprises: and adding a debugging mode control option in a setting interface of the BIOS to control the on or off of the debugging mode.
In some embodiments, the on state of the debug mode corresponds to a first preset debug level, and the off state of the debug mode corresponds to a second preset debug level.
The specific embodiment of the BIOS dynamic debugging method of the invention is as follows:
a) when the BIOS Image is compiled, the default is the Enable Debug Mode (Debug Mode is enabled).
b) The default Debug Error Level (i.e. the first preset Debug Level) is set to 0x8100014F, and is used to control the Debug Level when Debug Mode is turned on.
c) And adding a Debug Error Level (namely a second preset debugging Level) with the Level of 0x01000000, named as Debug _ OEM, and outputting Log when the Debug Mode is closed.
d) An option Debug _ Mode _ Ctrl (Debug Mode control option) is added to the Setup interface to control the on/off of Debug Mode, and is set to Disable by default, that is, to turn off Debug Mode by default.
f) Offset 0x4A in CMOS is selected for saving Debug Mode control data and the control data is initialized to 0x1 during BIOS POST (BIOS self test) initialization.
g) During PEI phase of BIOS initialization, BIOS obtains the value of Debug _ Mode _ Ctrl under Setup. If Debug _ Mode _ Ctrl is Disable, then set the control data in CMOS to 0x1 through IO Port (data input/output Port) 0x 70/71; if Debug _ Mode _ Ctrl is Enable, then the control data in CMOS is set to 0x0 through IO Port 0x 70/71.
h) In a PrintLog function in debug lib (debug library), control data in CMOS is acquired.
i) If the control data is 0x1, returning DEBUG _ OME as the current DEBUG Error Level; if the control data is 0x0, returning the default Debug Error Level (0x8100014F) as the current Debug Error Level. And outputting a corresponding log based on the current debugging level.
In a second aspect of the embodiments of the present invention, a BIOS dynamic debugging system is further provided. FIG. 2 is a diagram illustrating an embodiment of a BIOS dynamic debugging system provided by the present invention. As shown in fig. 2, a BIOS dynamic debugging system includes: the setting module 10 is configured to respond to the compiling of the BIOS image file, set a default debugging level in the image file as a first preset debugging level, add a second preset debugging level in the image file, and set a default starting debugging mode; a control data module 20 configured to store control data of a debug mode in the CMOS, the control data including a first value corresponding to a first preset debug level and a second value corresponding to a second preset debug level; a value confirmation module 30 configured to acquire control data in the CMOS through a log print function and confirm a value of the control data; and a log printing module 40 configured to print a log corresponding to the preset debugging level based on the numerical value of the control data.
BIOS (basic Input Output System) represents a basic Input Output system. On an IBM PC (personal computer) compatible system, it is an industry standard firmware interface. The BIOS is the first software loaded at startup of the personal computer. It is a program group solidified on a ROM chip of computer internal main board, it stores the most important basic input and output program, self-test program after starting up and system self-starting program, and it can read and write the concrete information set by system from CMOS. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
CMOS, also known as complementary metal oxide semiconductor, a voltage controlled amplifier device, is the basic unit that makes up a CMOS digital integrated circuit. In the field of computers, CMOS often refers to a chip that stores basic startup information (such as date, time, startup settings, etc.) of a computer. Sometimes, people will refer to CMOS and BIOS in a mixed way, where CMOS is a writable and readable parallel or serial FLASH (FLASH memory) chip on a motherboard, and is used to store the hardware configuration of BIOS and the settings of some parameters by users. Today, CMOS fabrication technology is also used to fabricate the light-sensitive element of digital image devices, especially for single-lens reflex digital cameras with large format.
The BIOS is software and program; CMOS is a chip, hardware; through BIOS program, parameters in CMOS can be set; the CMOS is a chip, important starting parameters are stored on a mainboard, and a CMOS button battery is used for maintaining electric quantity; storing parameters in the CMOS, and writing the set parameters into the CMOS through a program to set the parameters. The system setting program in the BIOS is a means for completing the setting of CMOS parameters; the CMOS RAM is not only a storage place for setting system parameters by the BIOS, but also a result for setting the system parameters by the BIOS.
The BIOS dynamic debugging system of the embodiment of the invention has the advantages that when the BIOS image file is compiled, setting a default debugging level as a first preset debugging level in the image file, adding a second preset debugging level in the image file, setting a default starting debugging mode, storing in the CMOS control data corresponding to a first preset debug level and corresponding to a second preset debug level respectively, and obtains the control data in the CMOS through the log printing function, then confirms the concrete numerical value of the control data, thereby printing the log corresponding to the preset debugging level based on the numerical value of the control data, realizing the opening or closing of the debugging mode without recompiling and burning the BIOS image file each time, improving the convenience of the BIOS debugging process and the debugging working efficiency, meanwhile, the flexibility of debugging level configuration is increased, and related human resources and cost are saved.
In some embodiments, the log printing module 40 is further configured to print a log of a first preset debugging level in response to the control data being a first numerical value; or responding to the control data being a second value, and printing a log of a second preset debugging level.
In some embodiments, the system further comprises a debug mode control module configured to add a debug mode control option in a setting interface of the BIOS to control turning on or off of the debug mode.
In some embodiments, the on state of the debug mode corresponds to a first preset debug level, and the off state of the debug mode corresponds to a second preset debug level.
The BIOS dynamic debugging system of the embodiment of the invention is specifically realized as follows:
a) when the BIOS Image is compiled, the default is the Enable Debug Mode (Debug Mode is enabled).
b) The default Debug Error Level (i.e. the first preset Debug Level) is set to 0x8100014F, and is used to control the Debug Level when Debug Mode is turned on.
c) And adding a Debug Error Level (namely a second preset debugging Level) with the Level of 0x01000000, named as Debug _ OEM, and outputting Log when the Debug Mode is closed.
d) An option Debug _ Mode _ Ctrl (Debug Mode control option) is added to the Setup interface to control the on/off of Debug Mode, and is set to Disable by default, that is, to turn off Debug Mode by default.
f) Offset 0x4A in CMOS is selected for saving Debug Mode control data and the control data is initialized to 0x1 during BIOS POST (BIOS self test) initialization.
g) During PEI phase of BIOS initialization, BIOS obtains the value of Debug _ Mode _ Ctrl under Setup. If Debug _ Mode _ Ctrl is Disable, setting the control data in CMOS to 0x1 through IO Port (data input/output Port) 0x 70/71; if Debug _ Mode _ Ctrl is enabled, the control data in CMOS is set to 0x0 by IO Port 0x 70/71.
h) In a PrintLog function in debug lib (debug library), control data in CMOS is acquired.
i) If the control data is 0x1, returning DEBUG _ OME as the current DEBUG Error Level; if the control data is 0x0, returning the default Debug Error Level (0x8100014F) as the current Debug Error Level. And outputting a corresponding log based on the current debugging level.
In a third aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and fig. 3 is a schematic diagram illustrating a computer-readable storage medium for implementing a BIOS dynamic debugging method according to an embodiment of the present invention. As shown in fig. 3, the computer-readable storage medium 3 stores computer program instructions 31. The computer program instructions 31 when executed by a processor implement the steps of:
setting a default debugging level as a first preset debugging level in the image file in response to compiling the BIOS image file, adding a second preset debugging level in the image file, and setting a default starting debugging mode;
storing control data of a debugging mode in the CMOS, wherein the control data comprises a first numerical value corresponding to a first preset debugging level and a second numerical value corresponding to a second preset debugging level;
acquiring control data in the CMOS through a log printing function, and confirming the numerical value of the control data;
and printing a log corresponding to the preset debugging level based on the numerical value of the control data.
In some embodiments, printing a log corresponding to the preset debugging level based on the numerical value of the control data comprises: responding to the control data as a first numerical value, and printing a log of a first preset debugging level; or responding to the control data being a second value, and printing a log of a second preset debugging level.
In some embodiments, the steps further comprise: and adding a debugging mode control option in a setting interface of the BIOS to control the on or off of a debugging mode.
In some embodiments, the on state of the debug mode corresponds to a first preset debug level, and the off state of the debug mode corresponds to a second preset debug level.
It should be understood that all of the embodiments, features and advantages set forth above with respect to the BIOS dynamic debugging method in accordance with the present invention apply equally to the BIOS dynamic debugging system and storage medium in accordance with the present invention, without conflict therewith.
In a fourth aspect of the embodiment of the present invention, a computer device is further provided, which includes a memory 402 and a processor 401 as shown in fig. 4, where the memory 402 stores therein a computer program, and when the processor 401 executes the computer program, the computer program implements the method of any one of the above embodiments.
Fig. 4 is a schematic diagram of a hardware structure of an embodiment of a computer device for executing a BIOS dynamic debugging method according to the present invention. Taking the computer device shown in fig. 4 as an example, the computer device includes a processor 401 and a memory 402, and may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus. The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the BIOS dynamic debugging system. The output device 404 may include a display device such as a display screen.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the BIOS dynamic debugging method in the embodiment of the present application. The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the BIOS dynamic debugging method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 401 executes various functional applications and data processing of the server by running the nonvolatile software programs, instructions and modules stored in the memory 402, that is, the BIOS dynamic debugging method of the above-described method embodiment is implemented.
Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also combinations between technical features in the above embodiments or in different embodiments are possible, and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A BIOS dynamic debugging method is characterized by comprising the following steps:
setting a default debugging level as a first preset debugging level in a BIOS image file in response to compiling the image file, adding a second preset debugging level in the image file, and setting a default starting debugging mode;
storing control data of the debugging mode in a CMOS, wherein the control data comprises a first numerical value corresponding to the first preset debugging level and a second numerical value corresponding to the second preset debugging level;
acquiring the control data in the CMOS through a log printing function, and confirming the numerical value of the control data;
and printing a log corresponding to a preset debugging level based on the numerical value of the control data.
2. The method of claim 1, wherein printing a log corresponding to a preset debug level based on the value of the control data comprises:
responding to the control data as the first numerical value, and printing a log of the first preset debugging level; or
And responding to the control data as the second numerical value, and printing a log of the second preset debugging level.
3. The method of claim 1, further comprising:
and adding a debugging mode control option in a setting interface of the BIOS to control the on or off of the debugging mode.
4. The method of claim 3, wherein the on state of the debug mode corresponds to the first predetermined debug level, and wherein the off state of the debug mode corresponds to the second predetermined debug level.
5. A BIOS dynamic debug system, comprising:
the device comprises a setting module, a debugging module and a debugging module, wherein the setting module is configured to respond to compiling of a BIOS (basic input output System) image file, set a default debugging level as a first preset debugging level in the image file, increase a second preset debugging level in the image file and set a default starting debugging mode;
a control data module configured to store control data of the debug mode in a CMOS, the control data including a first value corresponding to the first preset debug level and a second value corresponding to the second preset debug level;
the numerical value confirmation module is configured to acquire the control data in the CMOS through a log printing function and confirm the numerical value of the control data; and
and the log printing module is configured for printing a log corresponding to a preset debugging level based on the numerical value of the control data.
6. The system of claim 5, wherein the log printing module is further configured to print a log of the first preset debug level in response to the control data being the first numerical value; or responding to the control data as the second numerical value, and printing the log of the second preset debugging level.
7. The system of claim 5, further comprising a debug mode control module configured to add a debug mode control option to a setup interface of the BIOS to control the turning on or off of the debug mode.
8. The system of claim 7, wherein the on state of the debug mode corresponds to the first predetermined debug level and the off state of the debug mode corresponds to the second predetermined debug level.
9. A computer-readable storage medium, in which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method according to any one of claims 1-4.
10. A computer arrangement comprising a memory and a processor, characterized in that a computer program is stored in the memory, which computer program, when being executed by the processor, is adapted to carry out the method of any one of the claims 1-4.
CN202210748348.3A 2022-06-29 2022-06-29 BIOS dynamic debugging method, system, storage medium and equipment Pending CN115129526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210748348.3A CN115129526A (en) 2022-06-29 2022-06-29 BIOS dynamic debugging method, system, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210748348.3A CN115129526A (en) 2022-06-29 2022-06-29 BIOS dynamic debugging method, system, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN115129526A true CN115129526A (en) 2022-09-30

Family

ID=83380510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210748348.3A Pending CN115129526A (en) 2022-06-29 2022-06-29 BIOS dynamic debugging method, system, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115129526A (en)

Similar Documents

Publication Publication Date Title
US8176281B2 (en) Controlling access to an embedded memory of a microcontroller
US8065512B2 (en) Embedded memory protection
WO2011116621A1 (en) Electronic device, configurable component and configuration information storage method thereof
CN108614718A (en) The method, apparatus and realization device of start-up operation system
JP2013532864A (en) Providing platform independent memory logic
US10489582B1 (en) Firmware security vulnerability verification service
CN113254286B (en) Log output method and system of server and related device
US10592393B1 (en) Firmware debug trace capture
CN104035757A (en) MIPS-based (microprocessor without interlocked piped stages-based) U-boot (universal boot loader) transplantation implementing method
CN113918197A (en) Firmware upgrading method, system, storage medium and equipment
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN115129526A (en) BIOS dynamic debugging method, system, storage medium and equipment
US9778936B1 (en) Booting a computing system into a manufacturing mode
CN115509622A (en) Configuration information updating method and device
CN115827347A (en) Control method of embedded equipment and embedded equipment
CN111399926A (en) Method and device for downloading starting program
KR20110078171A (en) Bootable volatile memory appratus, memory module having it, and processing system, and method for booting processing system using it
KR101118111B1 (en) Mobile communication terminal and booting method thereof
CN109558181B (en) Method for enabling non-IE browser to be compatible with OCX control, computer storage medium and equipment
CN112667544A (en) Method, device, system and medium for controlling mainboard slot enabling
CN111124510A (en) BIOS (basic input output System) selectable double-mirror starting method and device
US11966749B2 (en) Processor and booting method thereof
US11068276B2 (en) Controlled customization of silicon initialization
US20230350593A1 (en) Method, system, and circuit for deploying file system on embedded memory in programmable computing device
US10997300B2 (en) Double boot encryption password restore

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