CN113778482A - Dynamic updating method of running program, embedded controller and electronic equipment - Google Patents

Dynamic updating method of running program, embedded controller and electronic equipment Download PDF

Info

Publication number
CN113778482A
CN113778482A CN202110921204.9A CN202110921204A CN113778482A CN 113778482 A CN113778482 A CN 113778482A CN 202110921204 A CN202110921204 A CN 202110921204A CN 113778482 A CN113778482 A CN 113778482A
Authority
CN
China
Prior art keywords
chip
program
running
running program
embedded controller
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
CN202110921204.9A
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.)
China Great Wall Technology Group Co ltd
Original Assignee
China Great Wall Technology Group 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 China Great Wall Technology Group Co ltd filed Critical China Great Wall Technology Group Co ltd
Priority to CN202110921204.9A priority Critical patent/CN113778482A/en
Publication of CN113778482A publication Critical patent/CN113778482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The application is applicable to the technical field of computers, and provides a dynamic update method of an operating program, an embedded controller and electronic equipment, which are applied to the embedded controller in the electronic equipment, wherein the method comprises the following steps: the method comprises the steps of responding to a first starting instruction, obtaining a first running program, wherein the first running program is any running program which is stored in the electronic equipment and can start the electronic equipment, running the first running program to obtain the type information of a chip controlled by the embedded controller, and obtaining a second running program matched with the type information of the chip when the first running program is not matched with the type information of the chip.

Description

Dynamic updating method of running program, embedded controller and electronic equipment
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a dynamic update method for an operating program, an embedded controller, and an electronic device.
Background
An embedded controller is a control system for performing a specified independent control function and having the ability to process data in a complex manner, and is capable of performing various automated processing tasks such as monitoring, control, and the like.
Due to the fact that certain types of chips are lost in the notebook manufacturing process, other chips are required to be used for replacement. If the notebook is manufactured by using the substitute chip, the running program of the embedded controller needs to be changed correspondingly. When the notebook computer is assembled, an appropriate operation program of the embedded controller needs to be manually selected according to the type of the used chip, and the automation degree is low.
Disclosure of Invention
The embodiment of the application provides a dynamic updating method of an operating program, an embedded controller and electronic equipment, and can solve the problem that the embedded controller cannot select a proper operating program in a self-adaptive manner when a notebook computer is assembled.
In a first aspect, an embodiment of the present application provides a method for dynamically updating an operating program, which is applied to an embedded controller in an electronic device, and includes:
responding to a first starting instruction, and acquiring a first running program, wherein the first running program is any running program which is stored in the electronic equipment and can start the electronic equipment;
operating the first operating program to obtain the type information of the chip controlled by the embedded controller;
and when the first running program is not matched with the type information of the chip, acquiring a second running program matched with the type information of the chip, wherein the electronic equipment stores running programs corresponding to different types of chips, and the second running program is used for realizing the control of the embedded controller on the chip.
In a second aspect, an embodiment of the present application provides an embedded controller, including: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for dynamically updating an operating program according to any one of the first aspect when executing the computer program.
In a third aspect, an embodiment of the present application provides an embedded controller, including:
the first program running module is used for responding to a first starting instruction and acquiring a first running program, wherein the first running program is any running program which is stored in the electronic equipment and can start the electronic equipment;
the type information determining module is used for operating the first operating program to obtain the type information of the chip controlled by the embedded controller;
and the target operation program determining module is used for acquiring a second operation program matched with the type information of the chip when the first operation program is not matched with the type information of the chip, wherein the electronic equipment stores operation programs corresponding to different types of chips, and the second operation program is used for realizing the control of the embedded controller on the chip.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: the embedded controller and the bios chip of the second aspect described above;
the basic input and output system chip is used for storing running programs respectively matched with at least two types of chips, wherein the at least two types of chips are chips controlled by the embedded controller.
In a fifth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program is implemented, when executed by a processor, to implement the method for dynamically updating a running program according to any one of the above first aspects.
In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the method for dynamically updating a running program according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: the embedded controller responds to a first starting instruction, acquires a first running program, runs the first running program to acquire the type information of a chip controlled by the embedded controller, and acquires a second running program matched with the type information of the chip when the first running program is not matched with the type information of the chip; according to the method and the device, the type information of the chip is acquired, the required running program is determined according to the type information, manual intervention selection is not needed, and automatic updating of the running program in the embedded controller is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for dynamically updating an operating program according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an obtaining method of a second running program according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an embedded controller according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an embedded controller according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in the specification of this application and the appended claims, the term "if" may be interpreted contextually as "when … …" or "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and with reference to fig. 1, the electronic device includes: an embedded controller 10 and a basic input output system chip 20.
And the bios chip 20 is configured to store running programs respectively matched with at least two types of chips, where the at least two types of chips are chips controlled by the embedded controller.
In this embodiment, the Basic Input Output System (Basic Input Output System-BIOS) is stored in the Basic Input Output System chip 20, and the Basic Input Output System stores at least two types of running programs respectively matched with the chips. At least two types of chips are chips which are controlled by an embedded controller and involve material change.
By way of example, the chip controlled by the embedded controller 10 includes chips of item a and item B, where item a may be divided into an α material chip and a β material chip, and item B may include an α material chip and a β material chip. The basic input/output system may include an operation program of the a-project α material chip, an operation program of the a-project β material chip, an operation program of the B-project α material chip, and an operation program of the B-project β material chip.
The embedded controller 10(embedded controller-EC) is used to implement a dynamic update method of the running program described below.
In this embodiment, the running programs in the embedded controller 10 are all in the form of bin files, and each bin file may be referred to as a firmware. The embedded controller 10 obtains firmware from the BIOS.
In this embodiment, the electronic device may be a notebook, or may be other devices having the embedded controller 10 and the bios chip 20. For convenience of description, the electronic device is used as a notebook in the present application.
The following describes the dynamic update method of the running program according to the embodiment of the present application in detail with reference to fig. 1.
Fig. 2 shows a schematic flow chart of a dynamic update method for running programs provided by the present application, and referring to fig. 2, the method is described in detail as follows:
s101, responding to a first starting instruction, and acquiring a first running program, wherein the first running program is any running program which is stored in the electronic equipment and can start the electronic equipment.
In this embodiment, after receiving the first boot instruction, the embedded controller obtains the first running program from the bios. The first start instruction may be a power-on instruction when the notebook is run for the first time. The first operating program may be any operating program stored in the bios.
In this embodiment, the first running program may be any kind of running program for chip matching.
For example, if the BIOS stores an operating program of the a-item α material chip and an operating program of the a-item β material chip. The first operation program may be an operation program of the a-project α material chip, or an operation program of the a-project β material chip.
Specifically, after receiving the first power-on instruction, the EC may send a program acquisition instruction to the BIOS, and the BIOS randomly assembles an operating program after acquiring the program acquisition instruction sent by the EC.
And S102, operating the first operating program to obtain the type information of the chip controlled by the embedded controller.
In this embodiment, the first running program may include a first sub-program and a second sub-program, where the first sub-program is used to start the electronic device and read the category information of the chip. The second subprogram is used for configuring the chip and controlling the operation of the chip.
Specifically, when the first running program is run, the first sub-program is run first, and the second sub-program is not run first. The level signal of a general input/output port pin in the embedded controller is read by operating a first subprogram in a first operating program, and then the type information of the chip is determined according to the level signal.
In this embodiment, the embedded controller includes at least one general purpose input/output pin, and the general purpose input/output pin in the embedded controller is connected to the chip. Different level signals of the universal input/output port pin represent different kinds of information of the chip, and equipment can be specifically carried out according to requirements. The category information of the chip may include item types of the chip and materials of the chip, the item types may be used to characterize the role of the chip, and the like. Different level signals for a common i/o pin may correspond to different materials for an item of chip.
In this embodiment, the level signals of the corresponding general input/output port pins of different types of chips are different. Specifically, different types of chips pull the level signal of the general input/output port pin low or high. For example, the a-item α material chip pulls up the level signal of the gpio pin 1 to a high level signal, and the a-item β material chip pulls down the level signal of the gpio pin 1 to a low level signal.
By way of example, if the embedded controller includes two general purpose input/output pins, respectively designated as a first pin and a second pin. The high level of the first pin can be used for characterizing an A item alpha material chip, the low level of the first pin can be used for characterizing an A item beta material chip, the high level of the second pin can be used for characterizing a B item alpha material chip, and the low level of the second pin can be used for characterizing a B item beta material chip.
S103, when the first running program is not matched with the type information of the chip, a second running program matched with the type information of the chip is obtained, wherein the running programs corresponding to different types of chips are stored in the electronic equipment, and the second running program is used for realizing the control of the embedded controller on the chip.
In this embodiment, after obtaining the kind information of the chip, it may be determined whether the first running program matches the kind information of the chip. If the first running program is not matched with the category information, the first running program is not a program for running the chip, the chip cannot be controlled, and the running program matched with the chip needs to be found again to achieve the purpose of controlling the running of the chip. The specific first running program is specifically matched with which kind of information, and is already acquired when the EC acquires the program from the BIOS.
In this embodiment, the mismatch between the operation program and the type information of the chip indicates that the operation program is not a program for operating the chip, and the operation program cannot achieve the effect of operating the chip. Otherwise, it can be determined that the running program is a program for running the chip.
As an example, if the first run program is a program that runs a chip of the a-project α material, and the obtained kind information of the chip is the β material of the a-project, the first run program does not match the kind information.
In this embodiment, the second running program may be obtained from the BIOS.
In this embodiment, if the first running program matches the type information of the chip, the second subprogram in the first running program is run to configure the chip and control the chip to run.
In the embodiment of the application, an embedded controller responds to a first starting instruction to obtain a first running program, the first running program is run to obtain the type information of a chip controlled by the embedded controller, and when the first running program is not matched with the type information of the chip, a second running program matched with the type information of the chip is obtained; according to the method and the device, the type information of the chip is acquired, the required running program is determined according to the type information, manual intervention selection is not needed, and automatic updating of the running program in the embedded controller is achieved. The application stores the running programs of various chips in the BIOS, completes the normalization processing of the programs, and can complete the composition by using the same BIOS when the notebook is assembled, so that the BIOS does not need to be replaced according to the types of the chips, and the production efficiency of the notebook is improved.
As shown in fig. 3, in a possible implementation manner, the implementation process of step S103 may include:
and S1031, sending the type information of the chip to the basic input/output system, wherein the type information of the chip is used for indicating the basic input/output system to obtain the second running program based on the type information of the chip, and sending a completion notification to the embedded controller after the second running program is obtained.
In this embodiment, after the EC obtains the type information of the chip, an operation program matched with the type information of the chip needs to be obtained from the BIOS, which is referred to as a second operation program in this application. Specifically, after obtaining the type information of the chip sent by the EC, the BIOS may search for or assemble a second running program corresponding to the type information based on the type information of the chip. After the second running program is found by the BIOS, other running programs in the BIOS can be deleted, and only the second running program is left in the BIOS, so that data stored in the BIOS is reduced, and the storage space is saved.
S1032, after receiving the completion notification sent by the basic input output system, acquiring the second running program from the basic input output system, and covering the first running program with the second running program.
In this embodiment, after receiving the completion notification sent by the BIOS, the EC acquires the second running program by using a software mirror image method, and stores the second running program, so as to ensure that the second running program can be directly run when the notebook is powered on next time, and the running program in the embedded controller does not need to be updated in each running process after the notebook.
In a possible implementation manner, after step S103, the method may further include:
and responding to a second starting-up instruction, and operating the second operating program, wherein the second starting-up instruction is any starting-up instruction after the first starting-up instruction.
In this embodiment, the notebook computer may be restarted after the second running program is obtained, and the notebook computer may run the second running program after the notebook computer is restarted.
Specifically, the second running program may include a third subroutine and a fourth subroutine. The first subprogram may be the same as the first subprogram in the first running program, and the third subprogram and the first subprogram are both programs for starting the notebook and reading the category information of the chip. The fourth subprogram is used for configuring the corresponding chip and controlling the chip to operate.
Specifically, after a second start instruction is received, a third subprogram in a second running program is run to obtain the type information of the chip controlled by the embedded controller, and since the second running program is a running program matched with the type information of the chip, the chip can be configured and controlled to run based on the second running program, that is, the fourth subprogram can be directly run to configure and control the chip to run.
According to the method and the device, the running program in the EC only needs to be updated when the computer is started for the first time, the correct running program is found after the computer is started for the first time, and the running program in the EC does not need to be updated in the running process of the notebook computer later, so that the running time of the notebook computer is saved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 shows a structural block diagram of an embedded controller provided in the embodiment of the present application, corresponding to the dynamic update method of the running program described in the above embodiment, and for convenience of explanation, only the parts related to the embodiment of the present application are shown.
Referring to fig. 4, the embedded controller 200 may include: a first program execution module 210, a category information determination module 220, and a target execution program determination module 230.
The first program running module 210 is configured to, in response to a first boot instruction, obtain a first running program, where the first running program is any running program that is stored in the electronic device and is capable of starting the electronic device;
a category information determining module 220, configured to run the first running program to obtain category information of a chip controlled by the embedded controller;
and a target running program determining module 230, configured to obtain a second running program matched with the type information of the chip when the first running program is not matched with the type information of the chip, where the electronic device stores running programs corresponding to different types of chips, and the second running program is used to implement control of the chip by the embedded controller.
In a possible implementation manner, the first program running module 210 may specifically be configured to:
and acquiring the first running program from a basic input and output system in the electronic equipment, wherein the basic input and output system stores running programs matched with different types of chips.
In a possible implementation manner, the category information determining module 220 may be specifically configured to:
reading level signals of general input/output port pins in the embedded controller through the first running program, wherein the general input/output port pins are connected with the chips, and the level signals of the general input/output port pins corresponding to different types of chips are different;
and determining the type information of the chip based on the level signal.
In a possible implementation manner, the target operating program determining module 230 may specifically be configured to:
sending the type information of the chip to the basic input and output system, wherein the type information of the chip is used for indicating the basic input and output system to obtain the second running program based on the type information of the chip, and sending a completion notice to the embedded controller after the second running program is obtained;
and after receiving the completion notification sent by the basic input output system, acquiring the second running program from the basic input output system, and covering the first running program with the second running program.
In a possible implementation manner, the connection with the category information determining module 220 further includes:
and the program running module is used for configuring the chip based on the first running program and controlling the chip to run when the first running program is matched with the type information of the chip.
In a possible implementation manner, the target operating program determining module 230 further includes:
and the second operation module is used for responding to a second starting-up instruction and operating the second operation program, wherein the second starting-up instruction is any starting-up instruction after the first starting-up instruction.
In a possible implementation manner, the second operation module may specifically be configured to:
operating the second operating program to obtain the type information of the chip controlled by the embedded controller;
and when the second operation program corresponds to the type information of the chip, configuring the chip based on the second operation program and controlling the operation of the chip.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the present application further provides an embedded controller, and referring to fig. 5, the embedded controller 400 may include: at least one processor 410, a memory 420, and a computer program stored in the memory 420 and executable on the at least one processor 410, wherein the processor 410 when executing the computer program implements the steps of any of the method embodiments described above, such as the steps S101 to S103 in the embodiment shown in fig. 2. Alternatively, the processor 410, when executing the computer program, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 210 to 230 shown in fig. 4.
Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in the memory 420 and executed by the processor 410 to accomplish the present application. The one or more modules/units may be a series of computer program segments capable of performing specific functions, which are used to describe the execution of the computer program in the embedded controller 400.
Those skilled in the art will appreciate that fig. 5 is merely an example of an embedded controller and does not constitute a limitation on an embedded controller, and may include more or fewer components than shown, or combine certain components, or different components, such as input output devices, network access devices, buses, etc.
The Processor 410 may be a Central Processing Unit (CPU), other 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, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 420 may be an internal memory unit of the embedded controller, or may be an external memory device of the embedded controller, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. The memory 420 is used to store the computer programs and other programs and data required by the embedded controller. The memory 420 may also be used to temporarily store data that has been output or is to be output.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The dynamic updating method for the running program provided by the embodiment of the application can be applied to terminal equipment such as a computer, a tablet computer, a notebook computer, a netbook, a Personal Digital Assistant (PDA) and the like, and the embodiment of the application does not limit the specific type of the terminal equipment at all.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the embodiments of the dynamic update method for the running program may be implemented.
The embodiment of the application provides a computer program product, and when the computer program product runs on a mobile terminal, the steps in each embodiment of the dynamic updating method for the running program can be realized when the mobile terminal executes the computer program product.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A dynamic update method of an operating program is applied to an embedded controller in an electronic device, and comprises the following steps:
responding to a first starting instruction, and acquiring a first running program, wherein the first running program is any running program which is stored in the electronic equipment and can start the electronic equipment;
operating the first operating program to obtain the type information of the chip controlled by the embedded controller;
and when the first running program is not matched with the type information of the chip, acquiring a second running program matched with the type information of the chip, wherein the electronic equipment stores running programs corresponding to different types of chips, and the second running program is used for realizing the control of the embedded controller on the chip.
2. The method for dynamically updating an operating program according to claim 1, wherein the acquiring the first operating program includes:
and acquiring the first running program from a basic input and output system in the electronic equipment, wherein the basic input and output system stores running programs matched with different types of chips.
3. The method for dynamically updating the running program according to claim 1, wherein the running the first running program to obtain the type information of the chip controlled by the embedded controller comprises:
reading level signals of general input/output port pins in the embedded controller through the first running program, wherein the general input/output port pins are connected with the chips, and the level signals of the general input/output port pins corresponding to different types of chips are different;
and determining the type information of the chip based on the level signal.
4. The method for dynamically updating the running program according to claim 2, wherein the obtaining of the second running program that matches the class information of the chip includes:
sending the type information of the chip to the basic input and output system, wherein the type information of the chip is used for indicating the basic input and output system to obtain the second running program based on the type information of the chip, and sending a completion notice to the embedded controller after the second running program is obtained;
and after receiving the completion notification sent by the basic input output system, acquiring the second running program from the basic input output system, and covering the first running program with the second running program.
5. The method for dynamically updating the running program according to claim 1, wherein after obtaining the class information of the chip controlled by the embedded controller, the method comprises:
and when the first operation program is matched with the type information of the chip, configuring the chip based on the first operation program and controlling the operation of the chip.
6. The dynamic update method of the running program according to claim 1, wherein after the acquiring of the second running program corresponding to the kind information of the chip, comprising:
and responding to a second starting-up instruction, and operating the second operating program, wherein the second starting-up instruction is any starting-up instruction after the first starting-up instruction.
7. The dynamic update method of the running program according to claim 6, wherein the running of the second running program includes:
operating the second operating program to obtain the type information of the chip controlled by the embedded controller;
and when the second operation program corresponds to the type information of the chip, configuring the chip based on the second operation program and controlling the operation of the chip.
8. An embedded controller comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for dynamically updating a running program according to any one of claims 1 to 7 when executing the computer program.
9. An electronic device, comprising: the embedded controller and bios chip of claim 8;
the basic input and output system chip is used for storing running programs respectively matched with at least two types of chips, wherein the at least two types of chips are chips controlled by the embedded controller.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a method for dynamically updating a running program according to any one of claims 1 to 7.
CN202110921204.9A 2021-08-11 2021-08-11 Dynamic updating method of running program, embedded controller and electronic equipment Pending CN113778482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110921204.9A CN113778482A (en) 2021-08-11 2021-08-11 Dynamic updating method of running program, embedded controller and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110921204.9A CN113778482A (en) 2021-08-11 2021-08-11 Dynamic updating method of running program, embedded controller and electronic equipment

Publications (1)

Publication Number Publication Date
CN113778482A true CN113778482A (en) 2021-12-10

Family

ID=78837526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110921204.9A Pending CN113778482A (en) 2021-08-11 2021-08-11 Dynamic updating method of running program, embedded controller and electronic equipment

Country Status (1)

Country Link
CN (1) CN113778482A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117435141A (en) * 2023-11-17 2024-01-23 荣耀终端有限公司 Memory activation method, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117435141A (en) * 2023-11-17 2024-01-23 荣耀终端有限公司 Memory activation method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8458524B2 (en) Firmware recovery system and method
CN102646045B (en) Multicomputer system and parallel starting method thereof
US9710284B1 (en) System for programmably configuring a motherboard
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
US20140052403A1 (en) Test system and test method thereof
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
US20060265581A1 (en) Method for switching booting devices of a computer
CN102073514A (en) Method for updating basic input/output system
US8010727B2 (en) System management interrupt interface wrapper
CN110297726B (en) Computer system with serial presence detection data and memory module control method
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN113778482A (en) Dynamic updating method of running program, embedded controller and electronic equipment
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
US7257704B2 (en) Method of selectively loading a pre-boot execution extension determined based on an identifier
US11500647B2 (en) Systems and methods for achieving faster boot times using BIOS attribute mitigation
CN110798370A (en) Bus protocol debugging method and device based on universal interface and terminal equipment
CN116909634A (en) Radio frequency drive identification method and device, storage medium and electronic equipment
EP4296860A1 (en) Method for running startup program of electronic device, and electronic device
CN112527276B (en) Data updating method and device in visual programming tool and terminal equipment
CN111027104A (en) Method, device and mainboard for preventing loss of network card identification data
CN113254304A (en) Method for determining shutdown type of server, server and storage medium
CN113721953A (en) Firmware program upgrading method and device and display control equipment
CN112306040A (en) Vehicle detection method, device, equipment and server
CN106548311B (en) Inventory management setting system
CN111177055A (en) PCIE slot configuration setting method, system, medium 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