CN113821265B - Operating system control method and device, computer mainboard and readable storage medium - Google Patents

Operating system control method and device, computer mainboard and readable storage medium Download PDF

Info

Publication number
CN113821265B
CN113821265B CN202111382101.6A CN202111382101A CN113821265B CN 113821265 B CN113821265 B CN 113821265B CN 202111382101 A CN202111382101 A CN 202111382101A CN 113821265 B CN113821265 B CN 113821265B
Authority
CN
China
Prior art keywords
board card
board
operating system
system control
loaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111382101.6A
Other languages
Chinese (zh)
Other versions
CN113821265A (en
Inventor
刘辉
阮文科
王井红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huabei Industrial Control Software Technology Co ltd
Original Assignee
Shenzhen Huabei Industrial Control Software 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 Shenzhen Huabei Industrial Control Software Technology Co ltd filed Critical Shenzhen Huabei Industrial Control Software Technology Co ltd
Priority to CN202111382101.6A priority Critical patent/CN113821265B/en
Publication of CN113821265A publication Critical patent/CN113821265A/en
Application granted granted Critical
Publication of CN113821265B publication Critical patent/CN113821265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the application provides an operating system control method, an operating system control device, a computer mainboard and a readable storage medium, wherein the method comprises the following steps: after the power-on self-test operation is carried out, acquiring a preset address used by a BIOS (basic input/output system) for the EC board card and carrying out initialization configuration on a preset GPIO (general purpose input/output) port for requesting interruption of the EC board card; setting an identification value for the EC register value, and determining whether an EC board card is loaded at present according to the EC register value obtained by access and the identification value; initializing a preset GPIO port when the EC board card is determined to be carried; and after the functions of the EC board card which need to be realized are successfully loaded and configured, the EC board card is guided to enter the system. The mainboard adopting the method can fully achieve synchronous compatibility for customers with EC board card function requirements and customers without EC board card function requirements, so as to meet different use scenes.

Description

Operating system control method and device, computer mainboard and readable storage medium
Technical Field
The present application relates to the field of operating system technologies, and in particular, to an operating system control method and apparatus, a computer motherboard, and a readable storage medium.
Background
The BIOS (Basic Input/Output System), i.e. the Basic Input/Output System, is a bridge or interface between computer hardware and software, and can provide the lowest level hardware control program for the computer. An EC board (EC, Embedded Controller) is a single chip, and an existing EC board has two frameworks, the first is that a FLASH memory of a BIOS is connected to the EC board through a bus, and then the EC board is connected to a south bridge through an LPC bus, in which case a code of the EC board is stored in FLASH, which means that the EC board and the BIOS share one FLASH. The second is that EC board card and FLASH are connected to LPC bus together, the code of EC board card is stored in a FLASH separately and is separated from BIOS.
The BIOS or EC board card is upgraded mainly to start or close functions, such as some requirements customized by a customer or solving some faults caused by compatibility and known bugs of a specific mainboard. However, there are some risks in upgrading the BIOS or the EC board, for example, if the BIOS or the EC board is not matched with the upgrade file, or the motherboard is powered off or powered off during the upgrade process, the motherboard cannot be powered on, and at this time, a professional can only take down the BIOS chip or the EC board and burn the corresponding correct file to be soldered on again.
In practice, some processes for detecting peripheral devices are performed as much as possible by the BIOS, and particularly in industrial control situations, since there are a plurality of peripheral board card devices, different BIOS needs to be performed for different peripheral board card devices to support the functions of the peripheral board card devices. However, this increases the risk of distinguishing and controlling BIOS files, and even brings corresponding influence to the main board and main board maintenance in the factory, for example, if the BIOS file burned in the production process is incompatible with the EC board card required by the client, the BIOS chip needs to be detached and the relevant BIOS file needs to be burned again, otherwise, various strange problems occur, such as slow start, abnormal operation, serious start, and even no start. In the daily maintenance, if a customer wants to upgrade the function of the EC board, and the BIOS of the current motherboard is not compatible with the function of the EC board, the system is down even if the system cannot be powered on due to blind updating. Therefore, the normal operation of the client is affected, and the machine needs to be sent back, disassembled and re-burned with the relevant BIOS file, so that the maintenance time and cost are greatly increased.
Disclosure of Invention
In view of this, embodiments of the present application provide an operating system control method, an operating system control apparatus, a computer motherboard, and a readable storage medium, where the method can effectively solve the problem of compatibility of a BIOS with or without an EC board mounted on the motherboard.
An embodiment of the present application provides an operating system control method, which is applied to a motherboard, and the method includes:
after the BIOS performs power-on self-test operation, activating a preset address used for being allocated to the EC board card for use, and performing initialization configuration on a preset GPIO port used for requesting interruption of the EC board card;
setting an identification value for the EC register value, accessing the activated preset address to obtain the EC register value, and determining whether the mainboard is currently loaded with the EC board card according to the identification value and the EC register value obtained by the access;
when the EC board card is determined not to be carried, the initialization of the preset GPIO port and the data access of the EC board card are closed, and then the EC board card is guided into a system;
and when the EC board card is determined to be carried, initializing the preset GPIO port and accessing data of the EC board card, and after the functions required to be realized by the EC board card are successfully loaded and correspondingly configured, guiding the EC board card to enter a system.
In some embodiments, the successful loading and configuration of the functions that the EC board needs to implement includes:
loading functions which need to be realized by the EC board card based on ASLCODE, and detecting whether the corresponding BIOS ASL file is loaded to the identification value;
and when the identification value is detected to be loaded, configuring the related functions which need to be realized by the EC board card in the BIOS ASL file.
In some embodiments, the operating system control method further comprises:
and when the identification value is detected not to be loaded, closing the functions to be realized by the EC board card in the BIOS ASL file, and then guiding the EC board card into the system.
In some embodiments, the determining, according to the identification value and the EC register value obtained by the accessing, whether the motherboard is currently loaded with the EC board includes:
and if the obtained EC register value is the same as the identification value, determining that the EC board card is carried on the mainboard currently, and otherwise, determining that the EC board card is not carried on the mainboard currently.
In some embodiments, the initializing the preset GPIO port includes:
and setting the preset GPIO port to be used for receiving the request system interrupt of the EC board card.
In some embodiments, the activating the preset address allocated to the EC board includes:
setting a state bit of a designated address allocated to the EC board card for use as an open state, and then allocating a corresponding storage space to the designated address of which the state bit is the open state, wherein the storage space is used for accessing the related data of the EC board card.
An embodiment of the present application further provides an operating system control device, which is applied to a motherboard, the device including:
the configuration module is used for activating a preset address used for being distributed to the EC board card after the power-on self-test operation is carried out, and carrying out initialization configuration on a preset GPIO port used for requesting interruption of the EC board card;
the determining module is used for setting an identification value for the EC register value, accessing the preset address to obtain the EC register value, and determining whether the main board is currently loaded with the EC board card according to the identification value and the EC register value obtained through the access;
the guide module is used for closing initialization of the preset GPIO port and data access of the EC board card when the EC board card is determined not to be carried, and then guiding the EC board card into the system;
the guide module is further configured to initialize the preset GPIO port and perform data access on the EC board when it is determined that the EC board is loaded, and guide the EC board to enter the system after functions that need to be implemented by the EC board are successfully loaded and configured accordingly.
An embodiment of the present application further provides a computer motherboard, where the computer motherboard includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the operating system control method described above.
The embodiment of the application also provides computer equipment, and the computer equipment adopts the computer mainboard to control the operating system.
Embodiments of the present application also provide a readable storage medium storing a computer program, which when executed on a processor implements the operating system control method described above.
The embodiment of the application has the following beneficial effects:
according to the operating system control method, after the BIOS performs the power-on self-test operation, the preset address allocated to the EC board card is activated, and the initialization configuration is performed on the preset GPIO port used for requesting the interruption of the EC board card; setting an identification value for the EC register value, accessing the activated preset address to obtain the EC register value, and determining whether an EC board card is loaded currently according to the identification value and the EC register value obtained by accessing; initializing a preset GPIO port when the EC board card is determined to be carried; and after the functions which need to be realized by the EC board card are successfully loaded and configured, the EC board card is guided to enter the system. The method provides a simple and efficient error correction application, and by adding the control logic of the method in the mainboard, the method can be automatically compatible with the external EC board card under the condition of not influencing factory production and customer use, so as to solve the problems that the existing BIOS cannot be started even when the EC board card is not supported to update or upgrade the incompatibility, which causes system downtime.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 illustrates a first flowchart of an operating system control method of an embodiment of the present application;
FIG. 2 illustrates a second flowchart of an operating system control method of an embodiment of the present application;
fig. 3 shows a schematic structural diagram of an operating system control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
Some terms appearing in the embodiments of the present application are explained below.
BIOS, Basic Input/Output System;
the PEI phase and DXE phase are different phases in the BIOS boot process, respectively, where a PEI (Pre-EFI Initialization) phase is mainly used to initialize a memory and prepare an execution environment for a next DXE phase. The DXE phase is primarily used to drive the execution environment.
ECSCI is a PIN on the EC board that requests an interrupt, specified by BIOS, and reported to the operating system via ACPI (Advanced Configuration and Power Management Interface). Such as reporting of battery information, reporting of temperature, brightness adjustment requests, and screen switching, all require such interrupts to notify the operating system to execute.
The LPC Bus, Low pin count Bus, is a Bus commonly used in Low speed devices, where the LPC Bus is typically physically connected to the south bridge on the motherboard.
ASL (ACPI Source language) is a specialized language for writing tables of ACPI (advanced Configuration and Power interface), and ACPI mainly functions to provide some services of the operating system and some messages to the operating system, and ASLCODE is executed by the operating system after being compiled by a compiler.
The BIOS ASL file is a file of which one file type is ASL in a source code of the BIOS, and is mainly used for services such as information interaction between the BIOS and an operating system.
Example 1
Referring to fig. 1, the present embodiment provides an operating system control method, which is applied to a computer motherboard, such as an industrial motherboard, and the like, and the motherboard adopting the method can implement different usage scenarios with and without requirements on an EC board, and particularly can solve the problem that some BIOS and EC boards are incompatible and are still updated, so that a system is not available, and the like.
Exemplarily, the operating system control method includes:
in step S110, the BIOS performs a power-on self-test operation.
When the mainboard is powered on and started, the CPU is activated and then searches for a first instruction address of the BIOS, and then the BIOS is operated, namely the BIOS performs power-on self-test and system boot operation. Exemplarily, the BIOS first establishes a BIOS code execution working environment, then initializes a chip (such as a north-south bridge) and a memory on a motherboard, and scans an external device (including a mouse keyboard, a serial port, a network card, a hard disk, a display device, and the like). And if the equipment is not interrupted in the starting process, entering an operating system until all the equipment on the mainboard is initialized. The power-on self-test operation mainly refers to detecting whether the hardware part of the computer is good or not when the power is just switched on.
Step S120, activating a preset address allocated to the EC board, and performing initialization configuration on a preset GPIO port for requesting interrupt by the EC board.
In order to avoid the phenomena that the EC board is carried on the mainboard of the BIOS incompatible EC board, which causes the system to slow down, the operation is abnormal, even the system cannot be started, and the like, in the embodiment, the BIOS activates the designated address which is used for being allocated to the EC board in advance and initializes and configures the preset GPIO port for requesting the interruption of the EC board in the PEI stage, so that the EC board can be normally accessed and operated in the subsequent stage when the EC board is determined to be carried currently.
The designated address is mainly used for being allocated to the EC board card to access the related data. In one embodiment, the activating operation may include setting a status bit used for a specific address allocated to the EC board card to be in an on state in advance, and then allocating a corresponding storage space to the specific address whose status bit is in the on state. It can be understood that when the EC board does not need to be loaded, the state bit of the designated address is in a closed state, and the address is inaccessible in the closed state; when the EC board needs to be loaded, the specified address will be allocated to the EC board for use, at this time, the state of the specified address will be set to an on state, and a corresponding address storage space will be allocated for storage of data related to the EC board, and the like. The GPIO port is a pin corresponding to the ECSCI, and is mainly used to receive a system interrupt signal requested by the EC board when the EC board is mounted.
It can be understood that when the motherboard needs to carry the EC board, a corresponding address is usually set and a corresponding GPIO port is allocated to request system interrupt by the EC board, so as to access the EC board.
As an optional scheme, after the BIOS performs the power-on self-test operation, it may also first detect whether there is a preset address used by the EC board, and if so, perform a decoding operation on the preset address; otherwise, if the program does not exist, the program can be directly guided into the system to complete the starting operation of the mainboard.
Step S130, an identification value is set for the EC register value, and the address obtained by decoding is accessed.
Exemplarily, the BIOS may set an identifier Flag to a register value of an EC board card that may exist in the DXE phase, then access the address obtained by the parsing through the LPC bus, and determine whether the actual EC board card is currently loaded on the motherboard according to whether the register value obtained by actual access is the same as the Flag value. Different values of Flag are used for representing different EC board card carrying states, for example, the value of Flag may be set to 0 or 1, where a state that an EC board card is currently connected is indicated when Flag is 1, and a state that an EC board card is not currently connected is indicated when Flag is 0. It should be understood that the value of Flag is not limited to 1 and 0, and may be other values as long as different values can distinguish different carrying states of the EC board.
And step S140, determining whether the main board is currently loaded with the EC board card according to the identification value and the accessed EC register value.
For example, in an embodiment, if the obtained EC register value is the same as the Flag value, that is, the obtained matching Flag value indicates that the EC register value is obtained, then it is determined that the EC board is currently mounted on the motherboard. Otherwise, if the obtained EC register value is different from the identification value, that is, it indicates that the matched Flag value is not obtained, it is determined that the EC board card is not currently mounted. Further, when it is determined that the EC board is not mounted, step S150 is executed; if it is determined that the EC board is mounted, step S160 is executed.
And step S150, the initialization of the preset GPIO port and the data access of the EC board card are closed.
For the first case, when it is determined that the EC board is not mounted, exemplarily, the BIOS turns off the GPIO function corresponding to the ECSCI initialized in the PIE stage before the initialization, and also turns off the data access to the EC board, and then enters the system according to the normal boot program, that is, jumps to step S180.
And step S160, initializing a preset GPIO port and accessing data of the EC board card.
For the second case, when it is determined that the EC board is loaded, the BIOS may continue to initialize the preset GPIO port configured in the PIE stage, specifically, set the GPIO port to receive the system interrupt request of the EC board, that is, configure the GPIO port as an SCI function. Afterwards, the BIOS can access data to the EC board card.
And step S170, successfully loading and configuring functions which need to be realized by the EC board card.
As shown in fig. 2, exemplarily, after performing step S160, step S170 includes:
step S190, loading a function that needs to be implemented by the EC board based on the aslmode, and detecting whether the corresponding BIOS ASL file is loaded with the identification value.
In view of the fact that some BIOS may not be compatible with the EC board, in this embodiment, after the relevant functions to be implemented by the EC board are loaded, it is further required to detect whether the loading is successful, so as to determine whether to further close the relevant functions to be implemented by the EC board.
Illustratively, when data access to the EC board is allowed, the BIOS may load the relevant functions to be implemented by the EC board using ASLCODE, where successfully loaded data is stored in the BIOS ASL file. Then, if the value loaded to Flag in the BIOS ASL file is detected, step S200 is executed, otherwise step S210 is executed.
Step S200, if the identification value is loaded, the functions to be realized by the EC board card are correspondingly configured in the BIOS ASL file.
Step S210, if the identification value is not loaded, closing the function that needs to be implemented by the EC board in the BIOS ASL file.
On the contrary, if it is detected that loading the Flag value in the BIOS ASL file fails, the functions that the EC board needs to implement need to be prohibited to be configured, so as to avoid situations such as downtime and dead halt before entering the system.
Step S180, the system is booted.
Therefore, after the BIOS successfully loads and configures the function that the EC board needs to implement, normal boot is performed to enter the system. It can be understood that the BIOS can be compatible with the situations that the EC board is not loaded and the EC board is loaded at the same time by the above processing operations on two different situations, and different use scenarios are satisfied.
The operating system control method of the embodiment can be applied to a scene where an EC board can be carried or an EC board is not carried, the address of the EC board is decoded, GPIO corresponding to ECSCI is initialized, a Flag is established for an EC register value to further determine whether the current motherboard is connected with the EC board, and then whether the function which needs to be implemented by loading the EC board is needed is determined again by the Flag to determine whether the function of the EC board needs to be loaded, and when the loading is unsuccessful, the function is immediately turned off to avoid the situation that the system cannot be normally turned on. According to the method, corresponding judgment is carried out in different processing operations, so that the phenomena of downtime, system incapability and the like caused by the incompatibility problem of the EC board card are avoided, synchronous compatibility of customers requiring the EC board card function and customers not requiring the EC board card function can be realized, more time can be saved for the customers, the use efficiency can be improved, and the like.
Example 2
Referring to fig. 3, based on the method of embodiment 1, the present embodiment provides an operating system control apparatus 100 applied to a motherboard, where exemplarily, the operating system control apparatus 100 includes:
the configuration module 110 is configured to activate a preset address allocated to the EC board after the BIOS performs the power-on self-test operation, and perform initialization configuration on a preset GPIO port for requesting interruption by the EC board.
The determining module 120 is configured to set an identification value for the EC register value, access the activated preset address to obtain the EC register value, and determine whether the motherboard is currently loaded with the EC board card according to the identification value and the EC register value obtained through the access.
The guiding module 130 is configured to, when it is determined that the EC board is not mounted, close initialization of a preset GPIO port and data access to the EC board, and then guide entry into the system.
The guiding module 130 is further configured to initialize a preset GPIO port and perform data access on the EC board when it is determined that the EC board is mounted, and guide the EC board to enter the system after functions that need to be implemented by the EC board are successfully loaded and configured accordingly.
It is to be understood that the apparatus of the present embodiment corresponds to the method of embodiment 1 described above, and the alternatives of embodiment 1 described above are equally applicable to the present embodiment, and therefore, the description thereof will not be repeated.
The present application also provides a computer motherboard, which may be an industrial motherboard or the like, exemplarily including a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the functions of the respective modules in the operating system control method or the operating system control apparatus in embodiment 1.
The present application also provides a computer device, for example, as an industrial control device, and the like, exemplarily comprising the above computer motherboard, and the above operating system control is performed by using the motherboard.
The application also provides a readable storage medium for storing the computer program used in the computer motherboard.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (9)

1. An operating system control method applied to a mainboard, the method comprising:
after the BIOS performs power-on self-test operation, setting a state bit of a designated address allocated to the EC board card to be in an open state, and then allocating a corresponding storage space to the designated address with the state bit being in the open state, wherein the storage space is used for storing related data of the EC board card and performing initialization configuration on a preset GPIO port for requesting interruption of the EC board card;
setting an identification value for the EC register value, accessing the activated preset address to obtain the EC register value, and determining whether the mainboard is currently loaded with the EC board card according to the identification value and the EC register value obtained by the access;
when the EC board card is determined not to be carried, the initialization of the preset GPIO port and the data access of the EC board card are closed, and then the EC board card is guided into a system;
and when the EC board card is determined to be carried, initializing the preset GPIO port and accessing data of the EC board card, and after the functions required to be realized by the EC board card are successfully loaded and correspondingly configured, guiding the EC board card to enter a system.
2. The operating system control method according to claim 1, wherein the functions that the EC board needs to implement are successfully loaded and configured accordingly, and the method includes:
loading functions which need to be realized by the EC board card based on ASLCODE, and detecting whether the corresponding BIOS ASL file is loaded to the identification value;
and when the identification value is detected to be loaded, configuring the related functions which need to be realized by the EC board card in the BIOS ASL file.
3. The operating system control method according to claim 2, characterized by further comprising:
and when the identification value is detected not to be loaded, closing the functions to be realized by the EC board card in the BIOS ASL file, and then guiding the EC board card into the system.
4. The operating system control method according to claim 1, wherein the determining whether the main board is currently loaded with the EC board according to the identification value and the EC register value obtained by the access includes:
and if the obtained EC register value is the same as the identification value, determining that the EC board card is carried on the mainboard currently, and otherwise, determining that the EC board card is not carried on the mainboard currently.
5. The operating system control method according to claim 1, wherein the initializing operation of the preset GPIO port comprises:
and setting the preset GPIO port to be used for receiving the request system interrupt of the EC board card.
6. An operating system control apparatus, applied to a motherboard, the apparatus comprising:
the configuration module is used for setting a state bit of a designated address used for being allocated to the EC board card to be in an open state after power-on self-test operation is carried out, and then allocating a corresponding storage space to the designated address with the state bit in the open state, wherein the storage space is used for storing related data of the EC board card and carrying out initialization configuration on a preset GPIO port used for requesting interruption of the EC board card;
the determining module is used for setting an identification value for the EC register value, accessing the activated preset address to obtain the EC register value, and determining whether the main board is currently loaded with the EC board card according to the identification value and the EC register value obtained through the access;
the guide module is used for closing initialization of the preset GPIO port and data access of the EC board card when the EC board card is determined not to be carried, and then guiding the EC board card into the system;
the guide module is further configured to initialize the preset GPIO port and perform data access on the EC board when it is determined that the EC board is loaded, and guide the EC board to enter the system after functions that need to be implemented by the EC board are successfully loaded and configured accordingly.
7. A computer motherboard comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program to implement the operating system control method of any of claims 1 to 5.
8. A computer device characterized in that it employs a motherboard as claimed in claim 7 for operating system control.
9. A readable storage medium, characterized in that it stores a computer program which, when executed on a processor, implements the operating system control method according to any one of claims 1 to 5.
CN202111382101.6A 2021-11-22 2021-11-22 Operating system control method and device, computer mainboard and readable storage medium Active CN113821265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111382101.6A CN113821265B (en) 2021-11-22 2021-11-22 Operating system control method and device, computer mainboard and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111382101.6A CN113821265B (en) 2021-11-22 2021-11-22 Operating system control method and device, computer mainboard and readable storage medium

Publications (2)

Publication Number Publication Date
CN113821265A CN113821265A (en) 2021-12-21
CN113821265B true CN113821265B (en) 2022-02-22

Family

ID=78917961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111382101.6A Active CN113821265B (en) 2021-11-22 2021-11-22 Operating system control method and device, computer mainboard and readable storage medium

Country Status (1)

Country Link
CN (1) CN113821265B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145198A (en) * 2017-04-19 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of method and its mainboard for lifting server to hard disk compatibility

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9400896B2 (en) * 2003-07-10 2016-07-26 Getac Technology Corporation Portable computer and security operating method thereof
TWI377470B (en) * 2009-04-17 2012-11-21 Quanta Comp Inc Portable computer and charging method thereof
CN103376868A (en) * 2012-04-19 2013-10-30 鸿富锦精密工业(武汉)有限公司 Power adapter identification system and method
CN107301037B (en) * 2016-04-15 2021-03-30 龙芯中科技术股份有限公司 Loading method and device of operating system kernel
CN107451005B (en) * 2017-08-10 2020-11-17 合肥联宝信息技术有限公司 Onboard memory configuration method, control device, computer mainboard and computer
CN107817981B (en) * 2017-11-23 2021-12-10 合肥联宝信息技术有限公司 Control method of embedded controller and electronic equipment
US11144328B2 (en) * 2020-02-03 2021-10-12 Dell Products L.P. System method to update failover process by running basic input/output (BIOS) system boot code from non-volatile memory express device (NVME)
CN112817796A (en) * 2021-02-04 2021-05-18 东莞市金锐显数码科技有限公司 Board setting method, board resetting method, device, equipment and storage medium
CN113032023B (en) * 2021-03-03 2022-08-19 联想(北京)有限公司 Electronic equipment processing method and device and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145198A (en) * 2017-04-19 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of method and its mainboard for lifting server to hard disk compatibility

Also Published As

Publication number Publication date
CN113821265A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN105745617B (en) Selective power management for pre-boot firmware updates
EP2831722B1 (en) Method and system for verifying proper operation of a computing device after a system change
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US9430250B2 (en) Bootability with multiple logical unit numbers
US9240924B2 (en) Out-of band replicating bios setting data across computers
EP3163441B1 (en) Computer device and memory starting method for computer device
US9298470B2 (en) Method and apparatus for selecting bios program for a processor
US9766876B2 (en) Methods of updating software components, computer systems and memory apparatus
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
US20220027165A1 (en) Systems And Methods To Bifurcate At Least One Peripheral Component Interconnect Express (PCIE) Port In Accordance With A User-Selectable PCIE Bifurcation Setting
CN111708652A (en) Fault repairing method and device
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
CN113821265B (en) Operating system control method and device, computer mainboard and readable storage medium
CN116501343A (en) Program upgrading method, power supply and computing device
CN113849230A (en) Server starting method and device, electronic equipment and readable storage medium
CN102455919A (en) Automatic optimization setting method for basic input output system(BIOS)
JP2008191957A (en) Computer system, and file system automatic setting and os activation method therefor
KR100556874B1 (en) Abbreviation method for booting time of mobile communication terminal device
CN115586981B (en) Method, system, computer and storage medium for preventing SIO signal loss
CN110119624A (en) A kind of security measure method
CN117311890B (en) Picture display method and device in starting process of server
CN117311828A (en) Computer starting method, computer equipment and storage medium
CN109901844B (en) Guiding method suitable for different processors
CN113051140A (en) System and method for providing state index in power-on self-test program
CN112114882A (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