CN111143021B - Display drive loading method and device, chip, main board and electronic equipment - Google Patents
Display drive loading method and device, chip, main board and electronic equipment Download PDFInfo
- Publication number
- CN111143021B CN111143021B CN201911424126.0A CN201911424126A CN111143021B CN 111143021 B CN111143021 B CN 111143021B CN 201911424126 A CN201911424126 A CN 201911424126A CN 111143021 B CN111143021 B CN 111143021B
- Authority
- CN
- China
- Prior art keywords
- bios
- display driver
- mode
- interface
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 88
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000008569 process Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 75
- 238000004590 computer program Methods 0.000 claims description 7
- 230000001105 regulatory effect Effects 0.000 claims 2
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000052 comparative effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to the technical field of software development, and provides a display driver loading method, a device, a chip, a main board and electronic equipment. The display driver loading method comprises the following steps: acquiring a BIOS display mode, wherein the BIOS display mode comprises a text mode and a graphical mode; loading the corresponding BIOS display driver according to the BIOS display mode, and initializing a BIOS interface to be displayed in the loading process of the BIOS display driver; wherein, BIOS display driver includes: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the t-graphical mode. According to the method, the BIOS interface can be displayed in a text mode or a graphical mode as long as the BIOS display mode is set according to the requirement, so that the advantages of the two BIOS interfaces are complemented, and the user can conveniently set the BIOS as required.
Description
Technical Field
The application relates to the technical field of computers, in particular to a display drive loading method, a device, a chip, a main board and electronic equipment.
Background
Currently, a Setup (Setup) interface of a basic input/output system (Basic Input Output System, abbreviated as BIOS) of a computer is commonly displayed in one of two modes, namely a text mode and a graphical mode. With the development of a unified extensible firmware interface (Unified Extensible Firmware Interface, abbreviated as UEFI), a simple and easy-to-use graphical BIOS setting interface gradually becomes mainstream, and is more visual and humanized than a traditional text BIOS setting interface, and is easier to set, so that a user can easily set all functions of the BIOS as if using a common application program. However, the graphical BIOS setup interface cannot support some conventional text functions (which may be supported in the text BIOS setup interface) such as console redirection (ConsoleRedirection), which brings inconvenience to the user.
Disclosure of Invention
An embodiment of the application aims to provide a display drive loading method, a device, a chip, a main board and electronic equipment, so as to improve the technical problems.
In order to achieve the above purpose, the present application provides the following technical solutions:
in a first aspect, an embodiment of the present application provides a display driver loading method, including: acquiring a BIOS display mode, wherein the BIOS display mode comprises a text mode and a graphical mode; loading the corresponding BIOS display driver according to the BIOS display mode, and initializing a BIOS interface to be displayed in the loading process of the BIOS display driver; wherein the BIOS display driver comprises: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode.
In the method, two BIOS display drivers, namely a text BIOS interface display driver and a graphical BIOS interface display driver, are generated in advance, and the loading of which BIOS display driver needs to be completed is determined according to the BIOS display mode. The text BIOS interface displays a BIOS interface (referred to as BIOS setting interface, hereinafter simply referred to as BIOS interface) capable of displaying a text mode after the driver is loaded, and the graphical BIOS interface displays a BIOS interface capable of displaying a graphical mode after the driver is loaded.
Therefore, as long as the BIOS display mode is set according to the requirement, the BIOS interface can be displayed in a text mode or a graphical mode, the advantages of the two BIOS interfaces are complemented, and the user can conveniently set the BIOS according to the requirement. Contrary to the prior art, the BIOS interface can only be displayed in a single mode, resulting in a complete loss of some of the advantages of the other display mode.
In an implementation manner of the first aspect, the BIOS display driver includes a portal function, and the acquiring the BIOS display mode includes: loading the BIOS display driver, and acquiring a BIOS display mode after the loading process enters an entry function of the BIOS display driver; the loading of the corresponding BIOS display driver according to the BIOS display mode includes: judging whether the BIOS display mode corresponds to the loaded BIOS display drive, if so, continuing to execute the entry function until the loading of the BIOS display drive is completed.
In one implementation manner of the first aspect, the method further includes: if the BIOS display mode does not correspond to the BIOS display drive being loaded, the current execution position of the entry function is returned directly.
The loading of the BIOS display driver is in at least two ways: firstly, acquiring a BIOS display mode, loading a text BIOS interface display driver if the BIOS display mode is a text mode, not loading a graphical BIOS interface display driver, and loading the graphical BIOS interface display driver if the BIOS display mode is a graphical mode, not loading the text BIOS interface display driver; and secondly, as described in the two implementations, the text BIOS interface display driver and the graphical BIOS interface display driver are loaded, and whether loading is continuously finished is judged according to the BIOS display mode after entering the entry function of the BIOS display driver.
If the BIOS display mode is a text mode and the BIOS display driver being loaded is a text BIOS interface display driver, continuing the loading process until the loading of the BIOS display driver is completed, otherwise (the BIOS display driver being loaded is a graphical BIOS interface display driver) entering the entry function returns in advance, so that the current BIOS display driver is not loaded successfully; if the BIOS display mode is the graphical mode and the BIOS display driver being loaded is the graphical BIOS interface display driver, continuing the loading process until the loading of the BIOS display driver is completed, otherwise (the BIOS display driver being loaded is the text BIOS interface display driver) the entry function returns in advance, so that the current BIOS display driver is not loaded successfully.
Since the entry function must be executed during the loading of the BIOS display driver, it is simple to directly add the code for judging the BIOS display mode (mode two) to the entry function.
In one implementation of the first aspect, the entry functions of the text BIOS interface display driver and the graphical BIOS interface display driver have the same function name.
The entry function of the text BIOS interface display driver and the graphical BIOS interface display driver adopt the same function name so as to facilitate unified call when the BIOS display driver is loaded.
In one implementation of the first aspect, the BIOS display mode is saved in the form of a BIOS setting option, which is capable of being changed on the BIOS interface.
The BIOS display mode can be designated by a user, and a simple implementation mode is to realize the BIOS display mode as a BIOS setting option (Setup Item), meanwhile, the setting option is also displayed on a text BIOS interface and a graphical BIOS interface, if the user wants to use the graphical BIOS interface, the BIOS display mode can be designated as a graphical mode through the setting option, if the user wants to use the text BIOS interface, the BIOS display mode can be designated as a text mode through the setting option, the operation is very convenient, and the setting of the user can be formally effective after the computer is started next time.
In one implementation manner of the first aspect, the method further includes: and displaying the initialized BIOS interface.
After the loading of the BIOS display driver is completed, the corresponding BIOS interface is supported to be displayed, and of course, whether the BIOS interface is to be displayed or not depends on the selection of the user, for example, some computers need to press the F2, F12, del, etc. keys to enter the BIOS interface after being started.
In a second aspect, an embodiment of the present application provides a display driver loading apparatus, including: the display mode acquisition module is used for acquiring a BIOS display mode, wherein the BIOS display mode comprises a text mode and a graphical mode; the drive loading module is used for completing loading of the corresponding BIOS display drive according to the BIOS display mode and initializing a BIOS interface to be displayed in the loading process of the BIOS display drive; wherein the BIOS display driver comprises: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode.
In a third aspect, embodiments of the present application provide a BIOS chip having stored thereon computer program instructions which, when read and executed by a processor, perform the method provided by the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides a motherboard, where the BIOS chip provided in the third aspect is mounted on the motherboard.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a BIOS chip and a processor, wherein the BIOS chip stores computer program instructions which are read and executed by the processor to execute the method provided by the first aspect or any one of the possible implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for developing a BIOS program according to an embodiment of the present application;
FIG. 3 is a flowchart of a display driver loading method according to an embodiment of the present application;
fig. 4 shows a functional block diagram of a display driver loading device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 shows a schematic diagram of an electronic device according to an embodiment of the present application. Referring to fig. 1, an electronic device 100 includes: the processor 110 and the BIOS chip 120 are interconnected and communicate with each other via a communication bus 130 and/or other form of connection mechanism (not shown). Both the processor 110 and the BIOS chip 120 may be mounted on a motherboard (not shown) of the electronic device 100.
The processor 110 includes one or more (only one shown), which may be an integrated circuit chip, with signal processing capabilities. The processor 110 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a micro control unit (Micro Controller Unit, MCU), a network processor (Network Processor, NP), or other conventional processor; but may also be a special purpose processor including a digital signal processor (Digital Signal Processor, DSP for short), an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short), a field programmable gate array (Field Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The BIOS chip 120 may be, but is not limited to, a programmable read-Only Memory (PROM), an erasable read-Only Memory (EPROM), an electrically erasable read-Only Memory (Electric Erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash), etc.
One or more computer program instructions, abbreviated as BIOS program, may be stored in the BIOS chip 120, and the BIOS program may be cured in the BIOS chip by a burning manner. The processor 110 may read and run a BIOS program in the BIOS chip when the electronic device is started, so as to implement the display driver loading method provided by the embodiment of the present application.
It is to be understood that the configuration shown in fig. 1 is merely illustrative, and that electronic device 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof. For example, when implemented in hardware, the electronic device 100 may be a personal computer, a notebook computer, a tablet computer, a server, or the like.
Fig. 2 shows a flowchart of a development method of the above BIOS program, where the developed BIOS program is compiled to finally generate a BIOS image (such as a bin, a hex file, etc.), and burned into the BIOS chip. There may be a lot of content in the BIOS image, mainly a text BIOS interface display driver and a graphical BIOS interface display driver related to the present application, where the two drivers may exist in the form of EFI files, such as tse.efi (text BIOS interface display driver) and graphic.efi (graphical BIOS interface display driver).
Step S200: and adding a library function of the graphical BIOS interface into engineering codes of the BIOS program.
The engineering code of the BIOS program corresponds to the BIOS image described above, and is the source code of the entire BIOS program. In one implementation, the text BIOS interface is used as a conventional BIOS interface, and the source code of the text BIOS interface is already contained in the engineering code of the initial BIOS program, and exists in the form of library functions and is located in the functional part of the text setting environment (TextSetup Environment, abbreviated as TSE). The source code of the graphical BIOS interface needs to be added into engineering codes of the BIOS program by a developer, and the source code of the graphical BIOS interface also exists in a library function mode and can also be added into relevant codes of the TSE function part.
Step S210: and adjusting the generation mode of the BIOS display driver, and reserving the library function of the text BIOS interface.
Step S220: a text BIOS interface display driver is generated based on the library function of the text BIOS interface, and a graphical BIOS interface display driver is generated based on the library function of the graphical BIOS interface.
Step S210 and step S220 are explained in combination.
The generation method of the adjustment BIOS display driver in step S210 is compared with the comparative embodiment. In a comparative embodiment, the library functions of the graphical BIOS interface are replaced with the library functions of the text BIOS interface, which is referred to herein as "replacing," which may refer to either removing the library functions of the text BIOS interface from the engineering code of the BIOS program or masking the library functions of the text BIOS interface by the library functions of the graphical BIOS interface (but without the code being removed) and not being used to generate the text BIOS interface display driver. In summary, the graphical BIOS interface display driver is only generated based on the library function of the graphical BIOS interface, since only one BIOS display driver is generated, the display function of the graphical BIOS interface is only provided naturally, and the display of the text BIOS interface cannot be supported.
In the embodiment of the application, the newly added library function of the graphical BIOS interface does not replace the library function of the text BIOS interface, but is coexistent with the library function of the text BIOS interface. Therefore, the text BIOS interface display driver (named TSE. EFI) can be generated after the library function based on the text BIOS interface is packaged, the graphical BIOS interface display driver (named graphic. EFI) can be generated after the library function based on the graphical BIOS interface is packaged, namely two BIOS display drivers are generated in total, so that the display function of the graphical BIOS interface can be provided, the text BIOS interface can be supported to be displayed later, and the step of FIG. 3 is specifically described.
The files of the two BIOS interface display drivers are both contained in a BIOS image generated based on engineering codes of the BIOS program, and the image is finally burned into a BIOS chip of an electronic device (the structure of which can refer to the electronic device 100 in fig. 1). In a power on self test (Power On Self Test, POST) stage of the electronic device start-up, a processor of the electronic device reads and runs a BIOS program in a BIOS chip, the BIOS program runs to execute the steps in fig. 3, and it should be understood that the BIOS program covers multiple functions, and the steps in fig. 3 are only a part of the functions.
Fig. 3 shows a flowchart of a display driver loading method according to an embodiment of the present application. Referring to fig. 3, the method includes:
step S300: and acquiring a BIOS display mode.
Step S310: and loading the corresponding BIOS display driver according to the BIOS display mode.
Step S300 and step S310 are described in conjunction.
In some implementations, when the electronic device is booted, a TSE driver (corresponding to a TSE function portion in the engineering code of the BIOS program) is loaded, and in the process of loading the TSE driver, some display-related drivers, hotkey-related drivers, etc. are loaded, including loading the BIOS display driver, that is, executing step S300 and step S310.
The BIOS display mode in step S300 includes a text mode, i.e. displaying the BIOS interface in a text manner, and a graphical mode, i.e. displaying the BIOS interface in a graphical manner, for example, two different values may be used to represent the two modes. The BIOS display driver in step S310 includes a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode, both of which are generated in step S220, as already described above.
The display driver loading method provided by the embodiment of the application determines which BIOS display driver is required to be loaded according to the BIOS display mode: if the BIOS display mode is the text mode, loading of the text BIOS interface display driver should be completed; if the BIOS display mode is the graphical mode, loading of the graphical BIOS interface display driver should be completed. In the process of loading the BIOS display driver, the BIOS interface to be displayed can be initialized: initializing a text BIOS interface in the loading process of the text BIOS interface display driver, and displaying the text BIOS interface after the initialization is completed; and initializing the graphical BIOS interface in the loading process of the graphical BIOS interface display driver, and displaying the graphical BIOS interface after the initialization is completed.
It should be noted that, although the display of the corresponding BIOS interface is supported after the loading of the BIOS display driver is completed, whether to display the BIOS interface may also depend on the selection of the user, for example, some electronic devices may need to press the keys F2, F12, del, etc. to enter and display the BIOS interface after the start-up, and may not enter the BIOS interface if the user does not press the keys, but rather enter the operating system interface. If the BIOS interface is to be displayed, the BIOS interface is displayed according to the BIOS interface which is successfully initialized when the BIOS display driver is loaded.
Therefore, in the display driver loading method provided by the embodiment of the application, as long as the BIOS display mode is set according to the requirement, the BIOS interface can be displayed in a text mode or a graphical mode, so that the advantages of the two BIOS interfaces are complemented: if the interface is attractive and operation-friendly, a graphical BIOS interface can be selected; if the interface is pursued for simplicity or if it is desired to use some conventional text functionality (e.g., console redirection functionality), a text BIOS interface may be selected. In addition, when the electronic device is remotely maintained, if the BIOS interface needs to be remotely accessed, the text BIOS interface also has the advantages of the self (the text BIOS interface has less resource occupation compared with the graphical BIOS interface in display, and is more beneficial to remote operation). Contrary to the prior art, the BIOS interface can only be displayed in a single mode, resulting in a complete loss of some of the advantages of the other display mode.
Further, the loading of the BIOS display driver (i.e., step S300 and step S310) is at least two ways:
firstly, acquiring a BIOS display mode, and if the BIOS display mode is a text mode, loading only a text BIOS interface display driver and not loading a graphical BIOS interface display driver; if the BIOS display mode is the graphical mode, only the graphical BIOS interface display driver is loaded, and the text BIOS interface display driver is not loaded.
And secondly, loading a text BIOS interface display driver and a graphical BIOS interface display driver. The BIOS display driver comprises an entry function, the entry function is firstly executed when the BIOS display driver is loaded, and a library function of the BIOS interface is called in the entry function. In the second mode, when the loading process enters the entry function of the BIOS display driver, the BIOS display mode is obtained, and then whether loading is completed is judged according to the BIOS display mode, which is specifically as follows:
if the BIOS display mode is a text mode and the BIOS display driver being loaded is a text BIOS interface display driver, continuing to execute the entry function until the text BIOS interface display driver is loaded, otherwise (the BIOS display driver being loaded is a graphical BIOS interface display driver) entering the entry function is returned in advance, and the current BIOS display driver cannot successfully complete the loading at the moment; if the BIOS display mode is the graphical mode and the BIOS display driver being loaded is the graphical BIOS interface display driver, continuing to execute the entry function until the graphical BIOS interface display driver is loaded, otherwise (the BIOS display driver being loaded is the text BIOS interface display driver) returning the entry function in advance, and at the moment, the current BIOS display driver cannot successfully complete the loading.
Since the entry function must be executed during the loading of the BIOS display driver, it is simple to directly add the code for judging the BIOS display mode (mode two) to the entry function.
In one implementation, the entry functions of the text BIOS interface display driver and the graphical BIOS interface display driver may use the same function name to facilitate unified calls when the BIOS display driver is loaded, for example, the function name may be, but is not limited to, miniSetupApplication.
Further, in one implementation, a BIOS setting option (Setup Item) may be added to save the BIOS display mode, and step S300 may only need to directly access the BIOS setting option when the BIOS display mode is acquired. The BIOS setting option corresponds to a configurable item displayed on the BIOS interface, the BIOS setting option is provided for a user to specify a display mode of the BIOS interface no matter the BIOS interface is a text BIOS interface or a graphical BIOS interface, if the user wants to use the graphical BIOS interface, the BIOS display mode can be specified as the graphical mode through the setting option, if the user wants to use the text BIOS interface, the BIOS display mode can be specified as the text mode through the setting option, the operation is very convenient, and the setting of the user can be formally effective after the electronic equipment is started next time. For example, the user designates the BIOS display mode as a graphical mode in the text BIOS interface, and the graphical BIOS interface will be displayed after the next time the electronic device is started, and the text BIOS interface is no longer displayed. It should be noted that to provide the BIOS setup option for specifying the BIOS display mode, both the library functions of the text BIOS interface and the library functions of the graphical BIOS interface need to be modified accordingly. The storage location of the value of the BIOS setting option is not limited, and may be stored in a CMOS chip on the motherboard, for example.
Fig. 4 shows a functional block diagram of a display driver loading apparatus 400 according to an embodiment of the present application. Referring to fig. 4, the display drive loading apparatus 400 includes:
a display mode obtaining module 410, configured to obtain a BIOS display mode, where the BIOS display mode includes a text mode and a graphics mode;
the driver loading module 420 is configured to complete loading of a corresponding BIOS display driver according to the BIOS display mode, and initialize a BIOS interface to be displayed in the loading process of the BIOS display driver; wherein the BIOS display driver comprises: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode.
In one implementation of the display driver loading apparatus 400, the BIOS display driver includes an entry function, and the display mode obtaining module 410 obtains a BIOS display mode, including: loading the BIOS display driver, and acquiring a BIOS display mode after the loading process enters an entry function of the BIOS display driver; the driver loading module 420 completes loading of the corresponding BIOS display driver according to the BIOS display mode, including: judging whether the BIOS display mode corresponds to the loaded BIOS display drive, if so, continuing to execute the entry function until the loading of the BIOS display drive is completed.
In one implementation of display driver loading apparatus 400, driver loading module 420 is further to: if the BIOS display mode does not correspond to the BIOS display drive being loaded, the current execution position of the entry function is returned directly.
In one implementation of the display driver loading device 400, the entry functions of the text BIOS interface display driver and the graphical BIOS interface display driver have the same function name.
In one implementation of the display driver loading apparatus 400, the BIOS display mode is saved in the form of BIOS setting options that can be changed on the BIOS interface.
In one implementation of the display driver loading apparatus 400, the apparatus further comprises: and the BIOS interface display module is used for displaying the initialized BIOS interface.
The display driving loading apparatus 400 according to the embodiment of the present application has been described in the foregoing method embodiments, and for brevity, reference may be made to the corresponding contents of the method embodiments where the apparatus embodiment is not mentioned.
The embodiment of the application also provides a BIOS chip, wherein the BIOS chip stores computer program instructions, and when the computer program instructions are read and run by a processor of a computer, the display driver loading method provided by the embodiment of the application is executed. For example, the BIOS chip may be implemented as BIOS chip 120 in electronic device 100 in FIG. 1.
The embodiment of the application also provides a mainboard, and the BIOS chip provided by the embodiment of the application is arranged on the mainboard. For example, the motherboard may be mounted on the electronic device 100 of fig. 1.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A display driver loading method, comprising:
acquiring a basic input/output system (BIOS) display mode, wherein the BIOS display mode comprises a text mode and a graphical mode;
loading the corresponding BIOS display driver according to the BIOS display mode, and initializing a BIOS interface to be displayed in the loading process of the BIOS display driver; wherein the BIOS display driver comprises: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode;
the text BIOS interface display driver and the graphical BIOS interface display driver are obtained in the following mode:
adding a library function of the graphical BIOS interface into engineering codes of a BIOS program;
regulating a generation mode of a BIOS display driver, and reserving a library function of the text BIOS interface;
generating the text BIOS interface display driver based on the library function of the text BIOS interface, and generating the graphical BIOS interface display driver based on the library function of the graphical BIOS interface.
2. The method of claim 1, wherein the BIOS display driver includes a portal function therein, and the obtaining the BIOS display mode includes:
starting to load the BIOS display driver, and acquiring a BIOS display mode after the loading flow enters an entry function of the BIOS display driver;
the loading of the corresponding BIOS display driver according to the BIOS display mode includes:
judging whether the BIOS display mode corresponds to the loaded BIOS display drive, if so, continuing to execute the entry function until the loading of the BIOS display drive is completed.
3. The display driver loading method of claim 2, wherein the method further comprises: if the BIOS display mode does not correspond to the BIOS display drive being loaded, the current execution position of the entry function is returned directly.
4. The display driver loading method of claim 2, wherein the entry functions of the text BIOS interface display driver and the graphical BIOS interface display driver have the same function name.
5. The display driver loading method of claim 1, wherein the BIOS display mode is saved in the form of BIOS setup options that can be changed on the BIOS interface.
6. The display driver loading method according to any one of claims 1 to 5, wherein the method further comprises:
and displaying the initialized BIOS interface.
7. A display drive loading apparatus, comprising:
the display mode acquisition module is used for acquiring a BIOS display mode, wherein the BIOS display mode comprises a text mode and a graphical mode;
the drive loading module is used for completing loading of the corresponding BIOS display drive according to the BIOS display mode and initializing a BIOS interface to be displayed in the loading process of the BIOS display drive; wherein the BIOS display driver comprises: a text BIOS interface display driver corresponding to the text mode and a graphical BIOS interface display driver corresponding to the graphical mode;
the text BIOS interface display driver and the graphical BIOS interface display driver are obtained in the following mode:
adding a library function of the graphical BIOS interface into engineering codes of a BIOS program;
regulating a generation mode of a BIOS display driver, and reserving a library function of the text BIOS interface;
generating the text BIOS interface display driver based on the library function of the text BIOS interface, and generating the graphical BIOS interface display driver based on the library function of the graphical BIOS interface.
8. A BIOS chip having stored thereon computer program instructions which, when read and executed by a processor, perform the method of any one of claims 1-6.
9. A motherboard on which the BIOS chip of claim 8 is mounted.
10. An electronic device, comprising: a BIOS chip and a processor, the BIOS chip having stored therein computer program instructions which, when read and executed by the processor, perform the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911424126.0A CN111143021B (en) | 2019-12-31 | 2019-12-31 | Display drive loading method and device, chip, main board and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911424126.0A CN111143021B (en) | 2019-12-31 | 2019-12-31 | Display drive loading method and device, chip, main board and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111143021A CN111143021A (en) | 2020-05-12 |
CN111143021B true CN111143021B (en) | 2023-10-31 |
Family
ID=70523180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911424126.0A Active CN111143021B (en) | 2019-12-31 | 2019-12-31 | Display drive loading method and device, chip, main board and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111143021B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116149759B (en) * | 2023-04-20 | 2023-07-14 | 深圳市吉方工控有限公司 | UEFI (unified extensible firmware interface) drive unloading method and device, electronic equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653306A (en) * | 2014-11-25 | 2016-06-08 | 杭州华三通信技术有限公司 | Method and device for displaying start Setup interface |
CN106933553A (en) * | 2015-12-29 | 2017-07-07 | 研祥智能科技股份有限公司 | The method and system that a kind of basic input output system is set |
CN107656785A (en) * | 2017-09-20 | 2018-02-02 | 深圳市恒扬数据股份有限公司 | Basic input output system sets interface display method and terminal device |
-
2019
- 2019-12-31 CN CN201911424126.0A patent/CN111143021B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653306A (en) * | 2014-11-25 | 2016-06-08 | 杭州华三通信技术有限公司 | Method and device for displaying start Setup interface |
CN106933553A (en) * | 2015-12-29 | 2017-07-07 | 研祥智能科技股份有限公司 | The method and system that a kind of basic input output system is set |
CN107656785A (en) * | 2017-09-20 | 2018-02-02 | 深圳市恒扬数据股份有限公司 | Basic input output system sets interface display method and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN111143021A (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8352577B2 (en) | Method and apparatus for updating information on an embedded system | |
US9304788B2 (en) | Electronic device, configurable component and configuration information storage method thereof | |
US8443183B2 (en) | Pre-boot loader for reducing system boot time | |
US8484631B2 (en) | Supporting hardware configuration changes in a UEFI firmware component | |
US9274804B2 (en) | Overlapped boot task fetches and boot task execution to reduce boot time in an electrical device | |
US7080244B2 (en) | System and method for configuring hardware devices using a menu for platforms with EFI and legacy option-ROMs | |
CN114253890B (en) | Communication module, external interface configuration method, configuration device and storage medium thereof | |
CN113672296B (en) | Custom application switching method, switching device, electronic equipment and storage medium | |
CN116737244A (en) | Method and device for starting multiple hardware domains of chip | |
CN111143021B (en) | Display drive loading method and device, chip, main board and electronic equipment | |
US9411602B2 (en) | Techniques for booting an information processing system | |
CN110895518A (en) | GPIO (general purpose input/output) interface configuration method and system | |
WO2011008196A1 (en) | Modifying a video resolution of video data in a pre-operating system environment | |
CN107911816B (en) | Starting method for multi-mode IoT device, multi-mode IoT device and storage medium | |
US12086608B2 (en) | Method and computing system for returning to a bios setup utility while in a shell environment during a booting process | |
CN114127685B (en) | Electronic apparatus and control method thereof | |
CN113138785A (en) | Application program updating method and device | |
CN102915246A (en) | Terminal device and method of supporting multi-firmware loading | |
US20220334820A1 (en) | System and method for intermediate software upgrades for information handling systems | |
CN113821265B (en) | Operating system control method and device, computer mainboard and readable storage medium | |
CN108829460A (en) | The method, apparatus and car-mounted terminal of car-mounted terminal quick start | |
CN112395017A (en) | UEFI starting method, UEFI and computer | |
US7568197B1 (en) | Method and apparatus for interposing kernel symbols | |
CN112732284B (en) | Installation method, installation device, installation equipment and computer readable storage medium | |
CN112114882B (en) | Mainboard starting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |