CN117931246B - Method and device for upgrading EC firmware, electronic equipment and storage medium - Google Patents

Method and device for upgrading EC firmware, electronic equipment and storage medium Download PDF

Info

Publication number
CN117931246B
CN117931246B CN202410309461.0A CN202410309461A CN117931246B CN 117931246 B CN117931246 B CN 117931246B CN 202410309461 A CN202410309461 A CN 202410309461A CN 117931246 B CN117931246 B CN 117931246B
Authority
CN
China
Prior art keywords
firmware
computer
rom
cpu
starting
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
CN202410309461.0A
Other languages
Chinese (zh)
Other versions
CN117931246A (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.)
Tiangu Information Security System Shenzhen Co ltd
Original Assignee
Tiangu Information Security System Shenzhen 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 Tiangu Information Security System Shenzhen Co ltd filed Critical Tiangu Information Security System Shenzhen Co ltd
Priority to CN202410309461.0A priority Critical patent/CN117931246B/en
Publication of CN117931246A publication Critical patent/CN117931246A/en
Application granted granted Critical
Publication of CN117931246B publication Critical patent/CN117931246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for upgrading EC firmware, and relates to the technical field of electronic equipment; the method is applied to a computer, and the computer at least comprises EC, CPU and MCU; the method for upgrading the EC firmware comprises the following steps: s10, starting a computer, and connecting the computer with external equipment provided with a new EC firmware file; s20, the computer enters a BIOS interface, selects a new EC firmware file in the BIOS interface, performs updating operation, and sends an updating signal to the CPU; s30, after receiving the update signal, the computer sends a preparation signal to the MCU and starts to execute a power state protection program; s40, the computer burns a new EC firmware file, and after the burning is completed, a starting signal is sent to the EC; s50, the computer reads the new EC firmware file and executes the starting program; s60, disconnecting the computer from the external equipment, and completing the EC firmware updating. The invention has the beneficial effects that: not only improves the updating efficiency, but also optimizes the experience of the user.

Description

Method and device for upgrading EC firmware, electronic equipment and storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method, an apparatus, an electronic device, and a storage medium for upgrading EC firmware.
Background
EC firmware refers to embedded controller firmware, which is a microcontroller embedded in a computer motherboard or other device that is responsible for managing and controlling the operation of hardware devices, such as keyboards, touchpads, fans, temperature sensors, and other peripheral devices. EC firmware is typically developed by computer hardware vendors to manage and coordinate communications and operations between computer hardware devices, and is responsible for processing input signals from external devices and corresponding control and processing according to preset logic, e.g., when a user presses a key on a keyboard, the EC firmware receives the corresponding signals and decides what instructions to send to the computer system. EC firmware is typically stored in firmware form in the flash memory or EEPROM of an embedded controller and is loaded into memory for operation at computer start-up. The method plays an important role in the starting process of computer hardware and an operating system, ensures the normal work and coordination of peripheral equipment, and is an important component for the normal operation of a computer system.
However, firmware such as the BIOS can be updated online through the USB flash disk at present and corresponding options in the BIOS interface. But the firmware controlling the power supply timing cannot be updated online. The EC ROM chip can be taken down to be burnt by using a burner only through shutdown and power failure, or a burning contact pin reserved on a connecting plate of the burner is used for updating. Updating the EC ROM firmware requires turning off and unplugging the power supply, using additional computers, programming software, writers, and cables, and is complex and cumbersome to operate.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method, a device, electronic equipment and a storage medium for upgrading EC firmware, which solve the problems of complex and complicated operation in the updating process caused by the fact that the firmware for controlling the power supply time sequence cannot be updated online at present, thereby improving the updating efficiency and optimizing the experience of users.
The technical scheme adopted for solving the technical problems is as follows: a method for upgrading EC firmware is applied to a computer, wherein the computer at least comprises a USB interface, EC ROM, CPU, BIOS ROM and MCU; the improvement is that the method for upgrading the EC firmware comprises the following steps:
S10, starting a computer, and connecting the computer with external equipment provided with a new EC firmware file through a USB interface, wherein the computer reads the original EC firmware file in the EC ROM through EC and executes a starting program;
S20, the computer reads the BIOS ROM through the CPU to enter the BIOS interface, selects a new EC firmware file in the external equipment in the BIOS interface, performs updating operation, and sends an updating signal to the CPU;
S30, after receiving the update signal through the CPU, the computer sends a preparation signal to the MCU, and starts to execute a power state protection program through the MCU;
S40, the computer burns a new EC firmware file in the external equipment in the EC ROM through the CPU, and after the burning is completed, a starting signal is sent to the EC through the CPU;
S50, the computer re-reads the new EC firmware file in the EC ROM through the EC and executes the starting program;
s60, disconnecting the computer from the external equipment, and finishing the EC firmware updating.
Further, the computer also comprises a power module, wherein the power module, the EC ROM and the CPU are all connected with the EC; and the BIOS ROM and the MCU are both connected with the CPU.
Further, in step S10, the specific steps of the computer start include:
S101, a user performs starting operation on a computer to trigger a starting signal;
S102, the EC receives a starting signal through an internal circuit of the computer, converts the starting signal into an enabling signal when a starting program is executed, and sends the enabling signal to the power module to request to start a power supply;
S103, after receiving the enabling signal, the power module starts a power supply and sends a finishing signal to the EC;
s104, after the EC receives the completion signal, the power supply time sequence is controlled to complete the starting of the computer.
Further, in step S20, the BIOS interface is a user operation interface provided by the computer, and is used for configuring and managing computer hardware and a start-up procedure.
Further, a BIOS program is set in the BIOS ROM, and the CPU jumps to a memory address where the BIOS program is located by reading the BIOS program in the BIOS ROM, so as to enter the BIOS interface.
Further, the computer also comprises an LED indicator lamp, and the LED indicator lamp is connected with the MCU.
Further, in step S40, when the new EC firmware is successfully burned in the process of burning the new EC firmware file, the CPU sends a success signal to the MCU, and the MCU controls the LED indicator to light green light; when the new EC firmware is failed to burn, the CPU burns the original EC firmware in the memory back to the EC ROM, and the CPU sends a failure signal to the MCU, and the MCU controls the LED indicator lamp to light red light.
In an apparatus for upgrading EC firmware, an application of the method for upgrading EC firmware is improved, the apparatus for upgrading EC firmware comprises:
the starting response module is used for establishing connection between the computer and the external equipment; the method comprises the steps that EC acquires a starting signal of a starting button, and a USB controller is connected with external USB equipment in a recognition mode;
The burning module is used for burning the new EC firmware in the external equipment into the EC ROM;
The reading module is used for acquiring new EC firmware in the USB peripheral through connection of the USB controller; the method comprises the steps that the method is used for EC to read original EC firmware and new EC firmware in an EC ROM; the CPU is used for reading BIOS firmware in the BIOS ROM;
The power supply starting and maintaining module is used for starting the power supply module according to the time sequence and maintaining the power supply state;
the state prompting module is used for: and the method is used for prompting whether the new EC firmware is successfully burnt into the EC ROM.
A storage medium, for use in a computer system, comprising a computer program or instructions which, when executed on a computer, cause the computer to perform the method of upgrading EC firmware described above.
An electronic device comprising a processor coupled to a memory; the processor is configured to execute the computer program stored in the memory, so that the intelligent terminal executes the method for upgrading the EC firmware.
The beneficial effects of the invention are as follows: the method comprises the steps of reading a new EC firmware in an external device through a computer, burning the new EC firmware in an EC ROM, carrying out updating operation on a BIOS interface by a user, carrying out updating of the EC firmware in the computer through signal transmission between a CPU and the EC, and re-reading the new EC firmware file in the EC ROM and carrying out a starting program through the EC by the computer to indicate that the EC firmware takes effect in real time, thereby improving updating efficiency and optimizing experience of the user.
Drawings
FIG. 1 is a general flow chart of a method of online upgrading EC firmware of the present invention;
FIG. 2 is a diagram showing an overall structure of a computer according to an embodiment;
FIG. 3 is a diagram showing the connection between the CPU and the EC ROM of a computer according to one embodiment;
FIG. 4 is a block diagram of an apparatus for online upgrade of EC firmware of the present invention;
FIG. 5 is a hardware block diagram of an electronic device shown in an exemplary embodiment;
fig. 6 is a block diagram of an electronic device, as shown in an example embodiment.
Detailed Description
The invention will be further described with reference to the drawings and examples.
The conception, specific structure, and technical effects produced by the present invention will be clearly and completely described below with reference to the embodiments and the drawings to fully understand the objects, features, and effects of the present invention. It is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and that other embodiments obtained by those skilled in the art without inventive effort are within the scope of the present invention based on the embodiments of the present invention. In addition, all the coupling/connection relationships referred to in the patent are not direct connection of the single-finger members, but rather, it means that a better coupling structure can be formed by adding or subtracting coupling aids depending on the specific implementation. The technical features in the invention can be interactively combined on the premise of no contradiction and conflict.
Referring to fig. 1, the invention discloses a method for upgrading EC firmware, which is applied to a computer, and as a preferred embodiment, referring to fig. 2, the computer comprises a USB interface, EC ROM, CPU, BIOS ROM, MCU, power module, LED indicator and power-on button, wherein the power module, EC ROM, CPU and power-on button are all connected with EC; the BIOS ROM and the MCU are both connected with the CPU; the LED indicator lamp is connected with the MCU; specifically, GPIO channels are respectively arranged between the starting key and EC, between the EC and the CPU, between the CPU and the MCU and between the MCU and the indicator lamp, and the starting key is connected with the EC, the EC and the CPU, the CPU and the MCU and the indicator lamp through the GPIO channels; SPI channels are arranged between the EC ROM and the CPU and between the EC ROM and the EC, and the EC ROM and the CPU and the EC ROM and the EC are connected through the SPI channels; the USB interface comprises a USB connector, a USB controller and a USB bus, wherein the USB connector is connected with the USB controller through the USB bus, a PCIE channel is arranged between the USB controller and the CPU, and the USB controller is connected with the CPU through the PCIE channel; an LPC channel and a UART channel are further arranged between the CPU and the EC, and the CPU and the EC are further connected through the LPC channel and the UART channel; a QSPI channel is arranged between the BIOS ROM and the CPU, and the BIOS ROM and the CPU are connected through the QSPI channel;
In this embodiment, the GPIO channel refers to a general purpose input/Output (GPIO) channel, and in the embedded system and the single chip microcomputer, the GPIO channel is a channel that can be used for inputting or outputting digital signals, and in this embodiment, the GPIO channel is used for signal transmission between a power-on key and EC, between EC and CPU, between CPU and MCU, and between MCU and indicator lamp; referring to fig. 3, a bidirectional level conversion chip is arranged in the SPI channel between the CPU and the EC ROM, and is used for adjusting the voltage value of the CPU terminal to 1.8V adapted by the CPU and the voltage value of the EC ROM terminal to 3.3V adapted by the EC ROM, so as to ensure the normal circuit connection between the CPU and the EC ROM; the SPI channel between the EC ROM and the EC is not subjected to level conversion and is only used for data transmission and communication between the EC ROM and the EC, namely, the original EC firmware or the new EC firmware is loaded into the EC from the EC ROM; the USB connector provides a physical interface, so that the connection and power supply of external equipment are realized; the USB controller is used for managing and controlling data transmission and communication on the USB bus and coordinating the work among all USB devices so as to realize effective communication and data transmission among the devices; the PCIE channel is a high-speed serial data bus standard, and is used for connecting a computer motherboard and various external devices, such as a graphics card, a network card, a storage device, etc., where the PCIE channel has a higher bandwidth and a faster data transmission speed than a conventional PCI (PERIPHERAL COMPONENT INTERCONNECT ) bus; the LPC (Low Pin Count) is a parallel communication bus that transmits data and control signals over a small number of pins, typically for low-speed data transmission and configuration communications, allowing basic data exchange and communications between the CPU and EC, such as transmission of system configuration information, firmware updates, etc.; the UART channel is a universal asynchronous serial communication interface and is used for realizing the transceiving of serial data, the data transmission and the receiving are realized by sending and receiving data bits, a start bit, a stop bit, a check bit and the like, and the UART channel can be used for realizing simple data transmission and debugging communication between a CPU and an EC, such as the output of debugging information, the transmission of control instructions and the like; the QSPI channel is an interface standard for high-speed serial communication, and in this embodiment, the QSPI channel is used to connect the BIOS ROM and the CPU, so as to implement rapid transmission and exchange of data;
The method for upgrading the EC firmware comprises the following steps:
S10, starting a computer, and connecting the computer with external equipment provided with a new EC firmware file through a USB interface, wherein the computer reads the original EC firmware file in the EC ROM through EC and executes a starting program; specifically, the specific steps of the computer start include:
S101, a user performs starting operation on a computer to trigger a starting signal;
S102, the EC receives a starting signal through an internal circuit of the computer, converts the starting signal into an enabling signal when a starting program is executed, and sends the enabling signal to the power module to request to start a power supply;
S103, after receiving the enabling signal, the power module starts a power supply and sends a finishing signal to the EC;
s104, after the EC receives the completion signal, controlling the power supply time sequence to complete the starting of the computer;
In this embodiment, the user performs the power-on operation by pressing the power-on key, and after the user presses the power-on key, the level of the GPIO channel between the power-on key and EC is lowered to trigger the power-on signal; after the EC receives the starting-up signal, the original EC firmware in the EC ROM is read through an SPI channel between the EC and the EC ROM, the starting-up program in the original EC firmware is executed, and an enabling signal is sent to the power module; after receiving the enabling signal sent by the EC, the power module starts a power supply and sends a finishing signal to the EC, the enabling EN of the power module is pulled up, the power module starts the finishing signal PowerGood, after normal starting, the power module outputs a high level to the EC, and the EC controls the power supply to finish time sequence so as to finish starting of the computer;
S20, the computer reads the BIOS ROM through the CPU to enter the BIOS interface, selects a new EC firmware file in the external equipment in the BIOS interface, performs updating operation, and sends an updating signal to the CPU; the BIOS interface is a user operation interface provided by a computer and is used for configuring and managing computer hardware and a starting process, specifically, a BIOS program is arranged in the BIOS ROM, and a CPU jumps to a memory address where the BIOS program is located by reading the BIOS program in the BIOS ROM so as to enter the BIOS interface;
In this embodiment, when the computer is started, the CPU reads the BIOS program from the BIOS ROM and jumps to the memory address where the BIOS program is located to enter the BIOS interface, where the BIOS interface is a user operation interface provided by the computer and is used to configure and manage the computer hardware and the starting process, and in the BIOS interface, the user may select to perform an update operation on a new EC firmware file in the external device and send an update signal to the CPU; the EC firmware is one kind of firmware in the computer system, it is responsible for managing and controlling input and output devices such as power management, keyboard, mouse and touch pad of the computer, some problems of the apparatus can be repaired or the performance of the apparatus is improved by updating EC firmware, therefore, carry on the updating operation of EC firmware file in BIOS interface, provide the interface that users interact with system, enable users to carry on the updating operation of firmware online, thus has improved the updating efficiency, has optimized users' experience;
S30, after receiving the update signal through the CPU, the computer sends a preparation signal to the MCU, and starts to execute a power state protection program through the MCU;
In this embodiment, the EN enable pin GPIO of the MCU (the pin that the MCU is connected to the power module) and the EN enable pin GPIO of the EC (the pin that the EC is connected to the power module) are used as input ends, the output ends are connected to the EN enable pin of the power module through one or logic gate element, the EN enable of the MCU and the EN enable of the EC, one of the GPIO is high, the output of the or logic gate element is high, the EN enable pin of the power module is high, and the power module turns on the power; when the computer needs to update the firmware, the CPU receives an update signal, and the update signal is from the firmware update operation performed by the user in the BIOS interface; after receiving the update signal, the CPU judges whether corresponding operation is needed, if so, a preparation signal is sent to the MCU, the MCU system receives the preparation signal and responds to the EC firmware update operation, and starts to execute a power state protection program, which has the function of ensuring that the power state of the system is effectively protected and managed in the EC firmware update process or other related operations; generally including but not limited to the following:
monitoring the power supply state: the MCU monitors the power supply state of the whole system, including power supply condition, voltage stability and the like;
switching to a secure mode: in the firmware updating process, in order to avoid damage caused by accidental power failure, the MCU may switch the system to a safe mode, close unnecessary equipment and reduce the risk of system operation;
Handling abnormal conditions: if an abnormality occurs in the updating process, such as unstable power supply or failed firmware updating, the MCU is responsible for processing the abnormal conditions, so that the system safety is ensured;
s40, the computer burns a new EC firmware file in the external equipment in the EC ROM through the CPU, and after the burning is completed, a starting signal is sent to the EC through the CPU; in the process of burning the new EC firmware file, when the new EC firmware is successfully burned, the CPU sends a success signal to the MCU, and the MCU controls the LED indicator lamp to light green light; when the new EC firmware fails to burn, the CPU burns the original EC firmware in the memory back to the EC ROM, and sends a failure signal to the MCU, and the MCU controls the LED indicator lamp to light red light;
In this embodiment, the computer burns a new EC firmware file in the external device in the EC ROM through the CPU, where EC is an embedded controller, and is responsible for managing control and communication functions of the external device, and the new EC firmware file is burned to update an EC firmware version to repair a problem or add a function; after the new EC firmware file is burnt, the CPU sends a starting signal to the EC to inform the EC that the new EC firmware content is ready to be started and loaded; in the process of burning the new EC firmware, if the new EC firmware is successfully burned, the CPU sends a success signal to the MCU, and the MCU controls the LED indicator lamp to light green light after receiving the success signal, and under the condition, the system considers that the firmware update is successful and the new firmware version is effective; if the new EC firmware fails to burn, the CPU burns the original EC firmware in the memory back to the EC ROM, then the CPU sends a failure signal to the MCU, and the MCU controls the LED indicator lamp to light red light after receiving the failure signal, in this case, the system rolls back to the original firmware version to avoid the abnormality or instability of the system; the design can ensure the effectiveness and stability of EC firmware update, and simultaneously improve the reliability and user experience of the system;
S50, the computer re-reads the new EC firmware file in the EC ROM through the EC and executes the starting program; specifically, after the new EC firmware is burnt, the EC can load the latest firmware file when the computer is started, so that the system can normally operate with the latest firmware version and ensure the normal operation of external equipment;
s60, disconnecting the computer from the external equipment, and finishing the EC firmware updating.
Referring to fig. 4, the present invention also discloses an apparatus 800 for upgrading EC firmware, which is applied to the method for upgrading EC firmware described in the above embodiment, where the apparatus for upgrading EC firmware includes:
A startup response module 801, configured to establish a connection between a computer and an external device; the method comprises the steps that EC acquires a starting signal of a starting button, and a USB controller is connected with external USB equipment in a recognition mode;
The burning module 802 is configured to burn the new EC firmware in the external device into the EC ROM;
A reading module 803, configured to obtain new EC firmware in the USB peripheral device by using the USB controller connection; the method comprises the steps that the method is used for EC to read original EC firmware and new EC firmware in an EC ROM; the CPU is used for reading BIOS firmware in the BIOS ROM;
The power-on maintaining module 804 is used for starting the power module according to a time sequence and maintaining a power state;
Status prompting module 805: and the method is used for prompting whether the new EC firmware is successfully burnt into the EC ROM.
In this embodiment, the device 800 for upgrading EC firmware establishes connection between the computer and the external device through the boot response module 801, and specifically includes the EC obtaining a boot button boot signal, and the USB controller identifying connection to the external USB device; the new EC firmware in the external equipment is burnt into the EC ROM through a burning module 802; the USB controller is connected through the reading module 803 to acquire new EC firmware in the USB peripheral; the EC reads the original EC firmware and the new EC firmware in the EC ROM, and the CPU reads the BIOS firmware in the BIOS ROM; the power supply module is started according to time sequence through the power supply starting and maintaining module 804, and the power supply state is maintained; prompting whether the new EC firmware is successfully burned into the EC ROM by a state prompting module 805; the method for upgrading the firmware is realized, so that the updating efficiency is improved, and the experience of a user is optimized.
Fig. 5 shows a schematic structure of an electronic device according to an exemplary embodiment.
It should be noted that the electronic device is only an example adapted to the present invention, and should not be construed as providing any limitation on the scope of use of the present invention. Nor should the electronic device be construed as necessarily relying on or necessarily having one or more of the components of the exemplary electronic device 2000 illustrated in fig. 5.
The hardware structure of the electronic device 2000 may vary widely depending on the configuration or performance, as shown in fig. 5, the electronic device 2000 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU, central Processing Units) 270.
Specifically, the power supply 210 is configured to provide an operating voltage for each hardware device on the electronic device 2000.
The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Of course, in other examples of the adaptation of the present invention, the interface 230 may further include at least one serial-parallel conversion interface 233, at least one input-output interface 235, at least one USB interface 237, and the like, as shown in fig. 5, which is not particularly limited herein.
The memory 250 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, where the resources stored include an operating system 251, application programs 253, and data 255, and the storage mode may be transient storage or permanent storage.
The operating system 251 is used for managing and controlling various hardware devices and applications 253 on the electronic device 2000, so as to implement the operation and processing of the cpu 270 on the mass data 255 in the memory 250, which may be Windows server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The application 253 is based on computer readable instructions on the operating system 251 to perform at least one specific task, which may include at least one module (not shown in fig. 5), each of which may include computer readable instructions for the electronic device 2000, respectively. For example, the means for determining the priority of the bank account checking notification task may be regarded as the application 253 deployed on the electronic device 2000.
The data 255 may be signal information or the like, and is stored in the memory 250.
The central processor 270 may include one or more of the above processors and is configured to communicate with the memory 250 via at least one communication bus to read computer readable instructions stored in the memory 250, thereby implementing operations and processing of the bulk data 255 in the memory 250. For example, the method of upgrading EC firmware is accomplished by central processor 270 reading a series of computer readable instructions stored in memory 250.
Furthermore, the present invention can be realized by hardware circuitry or by a combination of hardware circuitry and software, and thus, the implementation of the present invention is not limited to any specific hardware circuitry, software, or combination of the two.
Referring to fig. 6, in an embodiment of the present invention, an electronic device 4000 is provided, and the electronic device 400 may include: desktop computers, notebook computers, servers, etc. with sensor recognition capabilities.
In fig. 6, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.
Among other things, data interaction between the processor 4001 and the memory 4003 may be achieved by at least one communication bus 4002. The communication bus 4002 may include a path for transferring data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus or the like. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
Optionally, the electronic device 4000 may further comprise a transceiver 4004, the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 is not limited to the embodiment of the present invention.
The Processor 4001 may be a CPU (Central Processing Unit ), general purpose Processor, DSP (DIGITAL SIGNAL Processor, data signal Processor), ASIC (Application SPECIFIC INTEGRATED Circuit), FPGA (Field Programmable GATE ARRAY ) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program instructions or code in the form of instructions or data structures and that can be accessed by electronic device 400.
The memory 4003 has computer readable instructions stored thereon, and the processor 4001 can read the computer readable instructions stored in the memory 4003 through the communication bus 4002.
The computer readable instructions are executed by the one or more processors 4001 to implement the method of upgrading EC firmware in the above embodiments.
Furthermore, in an embodiment of the present invention, a storage medium having stored thereon computer readable instructions that are executed by one or more processors to implement a method of upgrading EC firmware as described above is provided.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present application, and the equivalent modifications or substitutions are included in the scope of the present application as defined in the appended claims.

Claims (6)

1. The method for upgrading the EC firmware is applied to a computer, and the computer at least comprises a USB interface, EC ROM, CPU, BIOS ROM, MCU, a power module and an LED indicator lamp, wherein the power module, the EC ROM and the CPU are all connected with EC; the BIOS ROM and the MCU are both connected with the CPU; the LED indicator lamp is connected with the MCU; GPIO channels are arranged between the EC and the CPU, between the CPU and the MCU and between the MCU and the indicator lamp, and the starting key is connected with the EC, the EC and the CPU, the CPU and the MCU and the indicator lamp through the GPIO channels; SPI channels are arranged between the EC ROM and the CPU and between the EC ROM and the EC, and the EC ROM and the CPU and the EC ROM and the EC are connected through the SPI channels; a bidirectional level conversion chip is arranged in an SPI channel between the CPU and the EC ROM, and is used for adjusting the voltage value of the CPU end to be 1.8V matched with the CPU and the voltage value of the EC ROM end to be 3.3V matched with the EC ROM so as to ensure the normal circuit connection between the CPU and the EC ROM; the SPI channel between the EC ROM and the EC is not subjected to level conversion and is only used for data transmission and communication between the EC ROM and the EC, namely, the original EC firmware or the new EC firmware is loaded into the EC from the EC ROM; the method for upgrading the EC firmware is applied to firmware upgrading for controlling power supply time sequence, and comprises the following steps:
S10, starting a computer, and connecting the computer with external equipment provided with a new EC firmware file through a USB interface, wherein the computer reads the original EC firmware file in the EC ROM through EC and executes a starting program; the specific steps of the computer start-up include:
S101, a user performs starting operation on a computer to trigger a starting signal;
S102, the EC receives a starting signal through an internal circuit of the computer, converts the starting signal into an enabling signal when a starting program is executed, and sends the enabling signal to the power module to request to start a power supply;
S103, after receiving the enabling signal, the power module starts a power supply and sends a finishing signal to the EC;
s104, after the EC receives the completion signal, controlling the power supply time sequence to complete the starting of the computer;
S20, the computer reads the BIOS ROM through the CPU to enter the BIOS interface, selects a new EC firmware file in the external equipment in the BIOS interface, performs updating operation, and sends an updating signal to the CPU;
S30, after receiving the update signal through the CPU, the computer sends a preparation signal to the MCU, and starts to execute a power state protection program through the MCU;
S40, the computer burns a new EC firmware file in the external equipment in the EC ROM through the CPU, and after the burning is completed, a starting signal is sent to the EC through the CPU; specifically, in the process of burning the new EC firmware file, when the new EC firmware is successfully burnt, the CPU sends a success signal to the MCU, and the MCU controls the LED indicator lamp to light green light; when the new EC firmware fails to burn, the CPU burns the original EC firmware in the memory back to the EC ROM, and sends a failure signal to the MCU, and the MCU controls the LED indicator lamp to light red light;
S50, the computer re-reads the new EC firmware file in the EC ROM through the EC and executes the starting program;
s60, disconnecting the computer from the external equipment, and finishing the EC firmware updating.
2. The method of claim 1, wherein in step S20, the BIOS interface is a computer-provided user operation interface for configuring and managing computer hardware and boot-up procedures.
3. The method for upgrading EC firmware according to claim 2, wherein a BIOS program is set in the BIOS ROM, and the CPU jumps to a memory address where the BIOS program is located by reading the BIOS program in the BIOS ROM, so as to enter the BIOS interface.
4. An apparatus for upgrading EC firmware applied to the method for upgrading EC firmware as claimed in any one of claims 1 to 3, wherein the apparatus for upgrading EC firmware comprises:
the starting response module is used for establishing connection between the computer and the external equipment; the method comprises the steps that EC acquires a starting signal of a starting button, and a USB controller is connected with external USB equipment in a recognition mode;
The burning module is used for burning the new EC firmware in the external equipment into the EC ROM;
The reading module is used for acquiring new EC firmware in the USB peripheral through connection of the USB controller; the method comprises the steps that the method is used for EC to read original EC firmware and new EC firmware in an EC ROM; the CPU is used for reading BIOS firmware in the BIOS ROM;
The power supply starting and maintaining module is used for starting the power supply module according to the time sequence and maintaining the power supply state;
the state prompting module is used for: and the method is used for prompting whether the new EC firmware is successfully burnt into the EC ROM.
5. A storage medium for use in a computer system comprising a computer program or instructions which, when run on a computer, cause the computer to perform the method of upgrading EC firmware of any of claims 1 to 3.
6. An electronic device comprising a processor coupled to a memory; the processor is configured to execute a computer program stored in the memory, so that the smart terminal performs the method of upgrading EC firmware according to any one of claims 1 to 3.
CN202410309461.0A 2024-03-19 2024-03-19 Method and device for upgrading EC firmware, electronic equipment and storage medium Active CN117931246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410309461.0A CN117931246B (en) 2024-03-19 2024-03-19 Method and device for upgrading EC firmware, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410309461.0A CN117931246B (en) 2024-03-19 2024-03-19 Method and device for upgrading EC firmware, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117931246A CN117931246A (en) 2024-04-26
CN117931246B true CN117931246B (en) 2024-06-14

Family

ID=90752205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410309461.0A Active CN117931246B (en) 2024-03-19 2024-03-19 Method and device for upgrading EC firmware, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117931246B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681751A (en) * 2015-11-05 2017-05-17 广达电脑股份有限公司 Unified firmware management system, management method, and computer readable medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030877A1 (en) * 2002-08-06 2004-02-12 Aleksandr Frid Using system BIOS to update embedded controller firmware
CN104461644A (en) * 2014-12-18 2015-03-25 山东超越数控电子有限公司 Method of burning EC (embedded controller) firmware in made-in-China computer platforms
CN109408097A (en) * 2018-12-11 2019-03-01 深圳市英威腾电气股份有限公司 A kind of firmware upgrade method, device, system and a kind of electronic equipment
CN111045709B (en) * 2019-12-26 2021-12-24 联想(北京)有限公司 Firmware upgrading method and firmware upgrading device
CN112558721A (en) * 2020-12-24 2021-03-26 同方计算机有限公司 Computer firmware maintenance mainboard without dismounting
CN113485721A (en) * 2021-06-29 2021-10-08 广东湾区智能终端工业设计研究院有限公司 Firmware updating method and device and electronic equipment
CN116795394A (en) * 2023-04-28 2023-09-22 深圳市科曼医疗设备有限公司 Firmware upgrading method and device for embedded equipment, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681751A (en) * 2015-11-05 2017-05-17 广达电脑股份有限公司 Unified firmware management system, management method, and computer readable medium

Also Published As

Publication number Publication date
CN117931246A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
RU2402804C2 (en) Method of booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device from which host device may be booted
US11768736B2 (en) Storage system boot method and apparatus, and computer-readable storage medium
US10656676B2 (en) Docking device, electrical device, and MAC address cloning method
US11301413B2 (en) Enhanced PCIe auto-bifurcation
US20210048850A1 (en) Firmware setup menu options for docking stations
WO2023138693A1 (en) Data processing system and method, and storage medium
WO2023147748A1 (en) Method and apparatus for initializing smart network interface card by server, device, and medium
WO2023082622A1 (en) Method for designing communication module having master and slave devices compatible, and apparatus
WO2015196479A1 (en) Program data updating method and device
US11544414B2 (en) Secure wake-on of a computing device
WO2024113767A1 (en) Power-on method and power-on apparatus for smart network interface cards
CN116644011B (en) Quick identification method, device and equipment of I2C equipment and storage medium
CN117931246B (en) Method and device for upgrading EC firmware, electronic equipment and storage medium
CN108108314B (en) Exchanger system
US20190370008A1 (en) Boot times in an information processing device with externally connected devices
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN115952122A (en) I2C device hot plug method, system, device, medium and product
CN210324179U (en) Double-firmware circuit structure applied to computer mainboard
CN110781501B (en) Control circuit and server
CN113946530A (en) Control method and device of expansion card and nonvolatile storage medium
CN114594995A (en) Electronic device and starting method thereof
CN219533773U (en) Firmware burning circuit and system
CN117112308B (en) Dual basic input/output system switching method and system of intelligent network card, terminal, medium and network card
US20230384843A1 (en) Configuration changes for expansion cards
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip

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