WO2021233363A1 - Computing device and bios update method therefor, and medium - Google Patents

Computing device and bios update method therefor, and medium Download PDF

Info

Publication number
WO2021233363A1
WO2021233363A1 PCT/CN2021/094778 CN2021094778W WO2021233363A1 WO 2021233363 A1 WO2021233363 A1 WO 2021233363A1 CN 2021094778 W CN2021094778 W CN 2021094778W WO 2021233363 A1 WO2021233363 A1 WO 2021233363A1
Authority
WO
WIPO (PCT)
Prior art keywords
basic input
input output
output system
computing device
update
Prior art date
Application number
PCT/CN2021/094778
Other languages
French (fr)
Chinese (zh)
Inventor
杨林
马秋涛
董德远
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021233363A1 publication Critical patent/WO2021233363A1/en

Links

Images

Classifications

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

Definitions

  • the foregoing method further includes: before the operating system enters the sleep state, the basic input output system sets a wake-up flag bit for the embedded controller, wherein the embedded controller After acquiring the wake-up flag bit, the controller resets the central processing unit.
  • the foregoing method further includes:
  • FIG. 2 is a BIOS update control system 200 according to an embodiment of the present application.
  • FIG. 1 a schematic diagram of the structure of an electronic device according to an embodiment of the present application is introduced in conjunction with FIG. 1.
  • Embedded Controller (EC) 140 is a control system used to perform designated independent control functions and has a complex data processing capability. When the system is turned on, EC 140 controls the timing of most important signals. For example, in the following embodiments of this application, the EC 140 activates the CPU 222 to wake up the BIOS to perform BIOS update.
  • the update control system 200 may include a software (SW) part 210 and a hardware (HW) part 220.
  • the software 210 part includes a basic input output system (Basic Input Output System, BIOS) 211 and an operating system (Operating System, OS). 212.
  • the hardware 220 part may include a hard disk 221, a central processing unit (CPU) 222, a BIOS chip 223, and an embedded controller (EC) 224.
  • the hibernation instruction sent by the BIOS 211 to the CPU 222 may also be an S3 hibernation instruction to control the computer system to enter the S3 state, which is also called the Suspend to RAM (STR) state.
  • STR Suspend to RAM
  • the power of the CPU 222 is also turned off, and the working state data before the system enters the STR is stored in the memory.
  • the power supply continues to supply power to the most necessary components such as memory to ensure that data is not lost, while other components are turned off.
  • the system can be re-woken up by pressing the power button and other operations. After the system is woken up, data can be read from the memory immediately and restored to the previous working state of STR. Due to the extremely fast read and write speed of the memory, the time to enter and leave the STR state is shorter than the time to enter and leave the STD state.
  • the system entering S3 or S4 sleep can be realized through Advanced Configuration and Power Interface (ACPI).
  • ACPI Advanced Configuration and Power Interface
  • the embodiment of the present application sends the sleep instruction to the CPU 222 at the same time.
  • Configure the wake-up flag for EC 224 The wake-up flag is set at a location accessible to the EC 224, so that the EC 224 can wake up the BIOS 211 after reading the wake-up flag.
  • BIOS 211 After the BIOS 211 writes the new BIOS file into the BIOS chip 223, the BIOS 211 sends a message to the EC 224 that the update file is successfully written to the BIOS chip 223, and the BIOS 211 causes the CPU 222 to restart, and the CPU 222 resets the BIOS chip 223 after restarting.
  • the BIOS file is loaded into the memory of the computer 100. So far, the BIOS 211 is updated.

Abstract

A computing device and a BIOS system update method therefor, and a medium, relating to the field of computers. The BIOS system update method comprises: an operating system of a computing device enters a dormant state; after the operating system enters the dormant state, restart a basic input/output system; the basic input/output system obtains an update file of the basic input/output system, and executes update of the basic input/output system on the basis of the obtained update file; after the basic input/output system is updated, the operating system wakes up from the dormant state. The update of the BIOS system can be completed after the operating system of the computing device enters the dormant state, without restarting the computing device, and the working state of the operating system can be kept before and after the update of the BIOS system.

Description

计算设备及其BIOS更新方法和介质Computing device and its BIOS update method and medium
本申请要求于2020年05月21日提交中国专利局、申请号为202010436449.8、申请名称为“计算设备及其BIOS更新方法和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 21, 2020, the application number is 202010436449.8, and the application name is "computing equipment and its BIOS update method and medium", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及计算机领域,更具体地,公开了一种计算设备及其BIOS更新方法和介质。This application relates to the computer field, and more specifically, discloses a computing device and its BIOS update method and medium.
背景技术Background technique
基本输入输出系统(Basic Input Output System,BIOS)通常是一组存储于计算机主板上的非易失性存储器内的程序,包括终端最重要的基本输入输出程序、开机后自检程序和系统自启动程序等,是终端系统的根基之一。随着电脑的迅速发展,BIOS作为PC最重要的底层固件更新也越来越频繁。BIOS的迭代和更新能够更好的解决产品问题,例如CPU(Central Processing Unit,中央处理器)等硬件的安全漏洞和产品设计问题,从而提升用户体验。Basic Input Output System (BIOS) is usually a set of programs stored in the non-volatile memory on the computer motherboard, including the most important basic input and output programs of the terminal, self-checking programs after booting, and system startup Programs, etc., are one of the foundations of the terminal system. With the rapid development of computers, BIOS, the most important underlying firmware update for PCs, is becoming more and more frequent. BIOS iterations and updates can better solve product problems, such as CPU (Central Processing Unit, central processing unit) and other hardware security vulnerabilities and product design issues, thereby improving user experience.
然而,由于BIOS更新需要系统重启,系统的当前操作无法保存,因此用户更新意愿不强,此外,目前BIOS也不能强制推送更新。However, because the BIOS update requires the system to restart, the current operation of the system cannot be saved, so users are not willing to update. In addition, the BIOS cannot be forced to push the update at present.
发明内容Summary of the invention
本申请的目的在于提供一种计算设备及其BIOS更新方法和介质,实现在不重启操作系统的情况下更新BIOS,从而保存操作系统的当前操作。The purpose of this application is to provide a computing device and its BIOS update method and medium, so as to update the BIOS without restarting the operating system, so as to save the current operation of the operating system.
第一方面,本申请的实施例提供了一种计算设备的基本输入输出系统的更新方法,包括:所述计算设备的操作系统进入休眠状态;所述操作系统进入休眠状态后,重启所述基本输入输出系统;所述基本输入输出系统获取基本输入输出系统的更新文件,并基于获取的所述更新文件执行基本输入输出系统的更新;在所述基本输入输出系统完成更新后,所述操作系统从所述休眠状态唤醒。In the first aspect, an embodiment of the present application provides a method for updating a basic input output system of a computing device, including: the operating system of the computing device enters a sleep state; after the operating system enters the sleep state, restarting the basic Input output system; the basic input output system obtains the update file of the basic input output system, and performs the update of the basic input output system based on the obtained update file; after the basic input output system is updated, the operating system Waking up from the dormant state.
即在该方法中,先使得操作系统OS进入休眠状态,基本输入输出系统BIOS关闭。然后重启BIOS,使得BIOS开始更新,并在BIOS更新完成后唤醒OS。从而在完成BIOS更新的同时保存OS的当前操作。That is, in this method, the operating system OS is first made to enter the sleep state, and the basic input output system BIOS is closed. Then restart the BIOS to start the BIOS update, and wake up the OS after the BIOS update is complete. In this way, the current operation of the OS is saved while the BIOS update is completed.
在上述第一方面的一种实现中,所述计算设备的操作系统进入休眠状态包括:所述基本输入输出系统的更新程序向所述操作系统发送休眠指令,所述操作系统进入休眠状态。具体地,BIOS的更新程序可以通过BIOS向计算设备的CPU发送休眠指令,CPU关闭电源,OS进入休眠状态。In an implementation of the foregoing first aspect, entering the operating system of the computing device into the sleep state includes: the update program of the basic input output system sends a sleep instruction to the operating system, and the operating system enters the sleep state. Specifically, the BIOS update program may send a sleep instruction to the CPU of the computing device through the BIOS, the CPU turns off the power supply, and the OS enters the sleep state.
在上述第一方面的一种实现中,所述操作系统进入休眠状态后,重启所述基本输入 输出系统包括:所述操作系统进入休眠状态后,所述计算设备的嵌入式控制器重置所述计算设备的中央处理器,以重启所述基本输入输出系统。In an implementation of the foregoing first aspect, after the operating system enters the sleep state, restarting the basic input output system includes: after the operating system enters the sleep state, resetting the embedded controller of the computing device The central processing unit of the computing device restarts the basic input output system.
在操作系统OS进入休眠状态后,与OS解耦的嵌入式控制器EC仍然处于工作状态,故可以采用与OS解耦的EC来重置CPU,从而重启BIOS进行更新。After the operating system OS enters the sleep state, the embedded controller EC decoupled from the OS is still in a working state, so the EC decoupled from the OS can be used to reset the CPU, thereby restarting the BIOS for updating.
在上述第一方面的一种实现中,上述方法还包括:在所述操作系统进入休眠状态前,所述基本输入输出系统为所述嵌入式控制器设置唤醒标志位,其中,所述嵌入式控制器在获取到所述唤醒标志位后,重置所述中央处理器。In an implementation of the foregoing first aspect, the foregoing method further includes: before the operating system enters the sleep state, the basic input output system sets a wake-up flag bit for the embedded controller, wherein the embedded controller After acquiring the wake-up flag bit, the controller resets the central processing unit.
在上述第一方面的一种实现中,上述方法还包括:所述嵌入式控制器在重置所述中央处理器后,删除所述唤醒标志位。In an implementation of the foregoing first aspect, the foregoing method further includes: after the embedded controller resets the central processing unit, deleting the wake-up flag bit.
在上述第一方面的一种实现中,所述基本输入输出系统通过以下方式执行所述基本输入输出系统的更新:所述基本输入输出系统将所述更新文件写入所述计算设备的基本输入输出系统芯片中;所述基本输入输出系统重置所述计算设备的中央处理器,以将所述基本输入输出系统芯片中的所述更新文件加载到所述计算设备的内存中。In an implementation of the above-mentioned first aspect, the basic input output system performs the update of the basic input output system in the following manner: the basic input output system writes the update file into the basic input of the computing device The output system chip; the basic input output system resets the central processing unit of the computing device to load the update file in the basic input output system chip into the memory of the computing device.
即基本输入输出系统BIOS在将BIOS的更新文件写入BIOS芯片后,需要重置CPU,以将BIOS的更新文件加载到内存中完成BIOS的更新。That is, after the BIOS of the basic input output system writes the BIOS update file into the BIOS chip, it needs to reset the CPU to load the BIOS update file into the memory to complete the BIOS update.
在上述第一方面的一种实现中,在所述基本输入输出系统完成更新后,所述操作系统从所述休眠状态唤醒包括:从所述计算设备的硬盘中读取所述操作系统进入休眠状态前的相关数据;基于获取的所述相关数据,使得所述操作系统返回进入所述休眠状态前的工作状态。In an implementation of the above-mentioned first aspect, after the basic input output system is updated, waking up the operating system from the sleep state includes: reading the operating system from the hard disk of the computing device and enters sleep Related data before the state; based on the obtained related data, the operating system returns to the working state before entering the sleep state.
第二方面,本申请的实施例公开了一种计算设备的基本输入输出系统的更新方法,包括:所述基本输入输出系统将从基本输入输出系统的更新程序获取的休眠指令,发送给所述计算设备的操作系统,所述休眠指令用于指令所述操作系统进入休眠状态;所述基本输入输出系统重启;所述基本输入输出系统获取基本输入输出系统的更新文件;所述基本输入输出系统基于获取的更新文件执行基本输入输出系统的更新。In a second aspect, an embodiment of the present application discloses a method for updating a basic input output system of a computing device, including: the basic input output system sends a sleep instruction obtained from the basic input output system update program to the The operating system of the computing device, the hibernation instruction is used to instruct the operating system to enter the hibernation state; the basic input output system is restarted; the basic input output system obtains an update file of the basic input output system; the basic input output system Perform the update of the basic input output system based on the obtained update file.
即在该方法中,先使得操作系统OS进入休眠状态,基本输入输出系统BIOS关闭。然后重启BIOS,使得BIOS开始更新,并在BIOS更新完成后唤醒OS。从而在完成BIOS更新的同时保存OS的当前操作。That is, in this method, the operating system OS is first made to enter the sleep state, and the basic input output system BIOS is closed. Then restart the BIOS to start the BIOS update, and wake up the OS after the BIOS update is complete. In this way, the current operation of the OS is saved while the BIOS update is completed.
在上述第二方面的一种实现中,所述基本输入输出系统基于获取的更新文件完成基本输入输出系统的更新包括:所述基本输入输出系统将所述更新文件写入所述计算设备的基本输入输出系统芯片中;所述基本输入输出系统重启所述计算设备的中央处理器,以将所述基本输入输出系统芯片中的所述更新文件加载到所述计算设备的内存中。In an implementation of the above second aspect, the basic input output system that completes the basic input output system update based on the acquired update file includes: the basic input output system writes the update file into the basic of the computing device In the input output system chip; the basic input output system restarts the central processing unit of the computing device to load the update file in the basic input output system chip into the memory of the computing device.
第三方面,本申请的实施例公开了一种计算设备的基本输入输出系统的更新方法,包括:所述计算设备的嵌入式控制器检测到所述计算设备的中央处理器的电源状态为休眠状态;所述嵌入式控制器重置所述中央处理器,以重启所述计算设备的基本输入输出系统进行基本输入输出系统的更新。In a third aspect, an embodiment of the present application discloses a method for updating a basic input output system of a computing device, including: the embedded controller of the computing device detects that the power state of the central processing unit of the computing device is dormant State; the embedded controller resets the central processing unit to restart the basic input output system of the computing device to update the basic input output system.
在上述第三方面的一种实现中,所述嵌入式控制器重置所述中央处理器包括:In an implementation of the foregoing third aspect, resetting the central processing unit by the embedded controller includes:
所述嵌入式控制器在获取到唤醒标志位的情况下,重置所述中央处理器。The embedded controller resets the central processing unit when the wake-up flag bit is acquired.
在上述第三方面的一种实现中,上述方法还包括:In an implementation of the foregoing third aspect, the foregoing method further includes:
所述嵌入式控制器检测到所述基本输入输出系统将所述基本输入输出系统的更新文件写入所述计算设备的基本输入输出系统芯片中;所述嵌入式控制器重置所述计算设备的中央处理器,以将所述更新文件写入所述计算设备的内存中。The embedded controller detects that the basic input output system writes the update file of the basic input output system into the basic input output system chip of the computing device; the embedded controller resets the computing device To write the update file into the memory of the computing device.
第四方面,本申请的实施例公开了一种计算设备的可读介质,所述可读介质上存储有指令,该指令在计算设备上执行时使所述计算设备执行上述第一或第二方面所述的方法。In a fourth aspect, an embodiment of the present application discloses a readable medium of a computing device, and an instruction is stored on the readable medium. When the instruction is executed on the computing device, the computing device executes the first or second The method described in the aspect.
第五方面,本申请的实施例公开了一种计算设备,该计算设备包括:存储器和控制器;In a fifth aspect, an embodiment of the present application discloses a computing device, which includes: a memory and a controller;
其中,所述存储器用于存储由计算设备的一个或多个控制器执行的指令;Wherein, the memory is used to store instructions executed by one or more controllers of the computing device;
所述控制器包括中央处理器和嵌入式控制器,用于执行上述第一或第二方面所述的方法。The controller includes a central processing unit and an embedded controller, and is used to execute the method described in the first or second aspect.
附图说明Description of the drawings
图1是根据本申请的实施例的计算机100的结构示意图。Fig. 1 is a schematic structural diagram of a computer 100 according to an embodiment of the present application.
图2是根据本申请的实施例的BIOS更新控制系统200。FIG. 2 is a BIOS update control system 200 according to an embodiment of the present application.
图3是根据本申请的实施例的BIOS更新方法的流程图。Fig. 3 is a flowchart of a BIOS update method according to an embodiment of the present application.
图4(a)是根据本申请的实施例的BIOS更新前的操作系统显示界面图。Fig. 4(a) is a diagram of the operating system display interface before BIOS update according to an embodiment of the present application.
图4(b)是根据本申请的实施例的BIOS更新后的操作系统显示界面图。Fig. 4(b) is an operating system display interface diagram after BIOS update according to an embodiment of the present application.
图5是根据本申请的实施例的示例计算设备示意图。Fig. 5 is a schematic diagram of an example computing device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
将使用本领域技术人员通常采用的术语来描述说明性实施例的各个方面,以将他们工作的实质传达给本领域其他技术人员。然而,对于本领域技术人员来说,使用部分所描述的特征来施行一些替代性实施例是显而易见的。出于解释的目的,阐述了具体的数字和配置,以便对说明性实施例进行更加透彻的理解。然而,对于本领域技术人员来说显而易见的是,可以在没有具体细节的情况下实施替代实施例。在一些其他情况下,本文省略或简化了一些众所周知的特征,以避免使本申请的说明性实施例模糊不清。应注意的是,在本说明书中,相似的标号和字母在下面的附图中表示类似项。The terms commonly used by those skilled in the art will be used to describe various aspects of the illustrative embodiments to convey the essence of their work to others skilled in the art. However, it is obvious to those skilled in the art to implement some alternative embodiments using the features described in part. For the purpose of explanation, specific numbers and configurations are set forth for a more thorough understanding of the illustrative embodiments. However, it is obvious to those skilled in the art that alternative embodiments can be implemented without specific details. In some other cases, some well-known features are omitted or simplified herein to avoid obscuring the illustrative embodiments of the present application. It should be noted that in this specification, similar reference numerals and letters indicate similar items in the following drawings.
在诸如计算机之类的各种电子设备中,BIOS是非常重要的底层固件,BIOS的迭代和更新能够更好的解决产品问题,例如CPU等硬件的安全漏洞和产品设计问题,从而提升用户体验。但是BIOS的更新通常需要系统重启,导致系统的当前操作无法保存。本申请的实施例正是基于该情况,提供一种能够在更新BIOS的同时保存当前操作的方案。In various electronic devices such as computers, BIOS is a very important underlying firmware. BIOS iterations and updates can better solve product problems, such as CPU and other hardware security vulnerabilities and product design issues, thereby enhancing user experience. However, the BIOS update usually requires the system to restart, causing the current operation of the system to be unable to be saved. Based on this situation, the embodiment of the present application provides a solution that can save the current operation while updating the BIOS.
本申请的说明性实施例包括但不限于BIOS更新方法、装置、介质、设备及系统等。Illustrative embodiments of this application include but are not limited to BIOS update methods, devices, media, devices, and systems.
本申请的实施例可以应用于各种带有嵌入式控制器(Embedded Controller,EC)的电子设备,例如,个人计算机、笔记本电脑、台式机、手持式或膝上型计算机、平板计 算机、便携式游戏机、服务器等。The embodiments of the present application can be applied to various electronic devices with embedded controllers (Embedded Controller, EC), for example, personal computers, notebook computers, desktop computers, handheld or laptop computers, tablet computers, portable games Machine, server, etc.
下面,以计算机100为例,结合图1介绍根据本申请的实施例的电子设备的结构示意图。Hereinafter, taking the computer 100 as an example, a schematic diagram of the structure of an electronic device according to an embodiment of the present application is introduced in conjunction with FIG. 1.
如图1所示,计算机100可以包括主处理器110、存储器120、输入设备130、嵌入式控制器140、显卡150、显示屏151、电源160、传感器170以及音频模块180等。As shown in FIG. 1, the computer 100 may include a main processor 110, a memory 120, an input device 130, an embedded controller 140, a graphics card 150, a display screen 151, a power supply 160, a sensor 170, an audio module 180, and the like.
可以理解的是,本发明实施例示意的结构并不构成对计算机100的具体限定。在本申请另一些实施例中,计算机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置和/或不同的架构。图示的部件可以以硬件、软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the computer 100. In other embodiments of the present application, the computer 100 may include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements and/or different architectures. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
主处理器110是计算机100的控制中心,利用各种接口和线路连接整个计算机100的各个部分,通过运行或执行存储在存储器120内的软件程序和/或数据,执行计算机100的各种功能和数据处理,从而对计算机100进行整体控制。例如,主处理器110可以执行后文结合图2和图3所述的CPU 222等执行的相关操作,以实现本申请实施例所提供的功能。The main processor 110 is the control center of the computer 100. It uses various interfaces and lines to connect various parts of the entire computer 100, and executes various functions and functions of the computer 100 by running or executing software programs and/or data stored in the memory 120. Data processing, so as to control the computer 100 as a whole. For example, the main processor 110 may perform related operations performed by the CPU 222 described later in conjunction with FIG. 2 and FIG. 3 to implement the functions provided by the embodiments of the present application.
主处理器110可以包括一个或多个处理单元,其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。主处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,主处理器110中的存储器为高速缓冲存储器。该存储器可以保存主处理器110刚用过或循环使用的指令或数据。如果主处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了主处理器110的等待时间,因而提高了系统的效率。The main processor 110 may include one or more processing units, where different processing units may be independent devices, or may be integrated in one or more processors. A memory may also be provided in the main processor 110 to store instructions and data. In some embodiments, the memory in the main processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the main processor 110. If the main processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the main processor 110 is reduced, and the efficiency of the system is improved.
存储器120可以包括的任何合适的非易失性存储器和/或任何合适的非易失性存储设备,例如闪存、硬盘驱动器(hard disk drive,HDD),固态硬盘驱动器(solid-state drive,SSD),光盘(compact disk,CD)驱动器,和/或数字通用光盘(digital versatile disk,DVD)驱动器等。存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。根据本申请的一些实施例,存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如控制计算机100进入休眠状态的功能、唤醒计算机100的功能等)等。存储数据区可存储计算机100使用过程中所创建的数据(比如音频数据,图像数据等)等。主处理器110通过运行存储在存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行计算机100的各种功能应用以及数据处理。The memory 120 may include any suitable non-volatile memory and/or any suitable non-volatile storage device, such as flash memory, hard disk drive (HDD), solid-state drive (SSD) , Compact disk (CD) drive, and/or digital versatile disk (DVD) drive, etc. The memory 120 may be used to store computer executable program code, where the executable program code includes instructions. According to some embodiments of the present application, the memory 120 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (for example, a function for controlling the computer 100 to enter a sleep state, a function for waking up the computer 100, etc.). The data storage area can store data (such as audio data, image data, etc.) created during the use of the computer 100. The main processor 110 executes various functional applications and data processing of the computer 100 by running instructions stored in the memory 120 and/or instructions stored in a memory provided in the processor.
输入设备130可以用于接收输入的数字信息、字符信息或接触式触摸操作/非接触式手势,以及产生与计算机100的用户设置以及功能控制有关的信号输入等。The input device 130 may be used to receive inputted digital information, character information, or contact touch operations/non-contact gestures, and generate signal inputs related to user settings and function control of the computer 100.
具体地,根据本申请的一些实施例,该输入设备130可以包括触控面板131、键盘132和鼠标133。触控面板131可以用于收集用户在其上或其附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上的操作),并根据预先设定的程序驱动相应的连接装置。通过键盘132可以将字符、数字、标点符号等输入到计算机100中,也可以通过键盘132上的功能按键向计算机100发出命令。鼠标133可以对当前显示屏151上的游标进行定位,并通过按键和滚轮装置对游标所经过位置的屏幕 元素进行操作,触发计算机100执行对应的命令。Specifically, according to some embodiments of the present application, the input device 130 may include a touch panel 131, a keyboard 132, and a mouse 133. The touch panel 131 can be used to collect the user's touch operations on or near it (for example, the user's operation on the touch panel 131 with fingers, stylus, or any other suitable object or accessory), and according to a preset program Drive the corresponding connection device. Characters, numbers, punctuation marks, etc. can be input into the computer 100 through the keyboard 132, and commands can also be issued to the computer 100 through function keys on the keyboard 132. The mouse 133 can position the cursor on the current display screen 151, and operate the screen element at the position where the cursor passes through the button and scroll wheel device, triggering the computer 100 to execute the corresponding command.
根据本申请的一些实施例,计算机100还可以包括其他输入设备,其他输入设备可以包括但不限于功能键(比如音量控制按键、开关按键等)、轨迹球、光笔、操作杆等中的任意一种或多种。According to some embodiments of the present application, the computer 100 may also include other input devices, and other input devices may include, but are not limited to, any one of function keys (such as volume control buttons, switch buttons, etc.), trackball, light pen, joystick, etc. Kind or more.
嵌入式控制器(Embedded Controller,EC)140是一种用于执行指定独立控制功能并具有复杂处理数据能力的控制系统。在系统开启的过程中,EC 140控制着绝大多数重要信号的时序。例如,在本申请下文的实施例中,EC 140通过启动CPU 222来唤醒BIOS执行BIOS更新。Embedded Controller (EC) 140 is a control system used to perform designated independent control functions and has a complex data processing capability. When the system is turned on, EC 140 controls the timing of most important signals. For example, in the following embodiments of this application, the EC 140 activates the CPU 222 to wake up the BIOS to perform BIOS update.
显示屏151可以用于显示由用户输入的信息或提供给用户的信息,例如,计算机100的各种菜单界面等。显示屏151包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。可选的,显示屏151可以采用液晶显示器(liquid crystal display,LCD)或有机发光二极体(organic light-emitting diode,OLED)等形式来配置。在一些实施例中,触控面板131的一部分可以与显示屏151集成,形成触摸显示屏。The display screen 151 may be used to display information input by the user or information provided to the user, for example, various menu interfaces of the computer 100 and the like. The display screen 151 includes a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. Optionally, the display screen 151 may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED). In some embodiments, a part of the touch panel 131 may be integrated with the display screen 151 to form a touch display screen.
显卡150中可以包括图形处理单元(graphics processing unit,GPU)或视频处理单元(Video Processing Unit,VPU),用于将输入到计算机100中的数字信号转换为模拟信号,并使显示屏151将转换的模拟信号显示出来,显卡150也具有图像处理能力,处理后的图像通过显示屏151显示出来。显卡150可以集成在计算机100的主板上,也可以独立于计算机100的主板之外。The graphics card 150 may include a graphics processing unit (GPU) or a video processing unit (Video Processing Unit, VPU), which is used to convert the digital signal input into the computer 100 into an analog signal, and make the display screen 151 convert When the analog signal is displayed, the graphics card 150 also has image processing capabilities, and the processed image is displayed on the display screen 151. The graphics card 150 may be integrated on the motherboard of the computer 100, or may be independent of the motherboard of the computer 100.
电源160用于给其他模块供电,电源160中可以包括充电管理模块和电源管理模块。充电管理模块用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块为电池充电的同时,还可以通过电源管理模块为电子设备供电。电源管理模块用于接收电池和/或充电管理模块的输入,为计算机100内的各模块供电。电源管理模块还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。The power supply 160 is used to supply power to other modules, and the power supply 160 may include a charging management module and a power management module. The charging management module is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. While the charging management module charges the battery, it can also supply power to the electronic device through the power management module. The power management module is used to receive input from the battery and/or the charge management module, and supply power to each module in the computer 100. The power management module can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
计算机100可以包括一个或多个传感器170,用于能感测各种信息,并将感测到的信息按一定规律变换成为电信号或其他所需形式的信息输出。在本申请的实施例中,传感器170可以包括各种类型的传感器,例如图像传感器、亮度传感器、光线传感器、GPS传感器、红外传感器等。The computer 100 may include one or more sensors 170 for sensing various information and transforming the sensed information into electrical signals or other required forms of information output according to a certain rule. In the embodiment of the present application, the sensor 170 may include various types of sensors, such as an image sensor, a brightness sensor, a light sensor, a GPS sensor, an infrared sensor, and so on.
计算机100可以通过音频模块180,扬声器181,麦克风182,耳机接口183,以及主处理器110等实现音频功能。例如音乐播放,录音等。The computer 100 can implement audio functions through the audio module 180, the speaker 181, the microphone 182, the earphone interface 183, and the main processor 110. For example, music playback, recording, etc.
音频模块180用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块180还可以用于对音频信号编码和解码。在一些实施例中,音频模块180可以设置于主处理器110中,或将音频模块180的部分功能模块设置于主处理器110中。The audio module 180 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 180 can also be used to encode and decode audio signals. In some embodiments, the audio module 180 may be disposed in the main processor 110, or part of the functional modules of the audio module 180 may be disposed in the main processor 110.
扬声器181用于将音频电信号转换为声音信号。计算机100可以通过扬声器181输出声音。The speaker 181 is used to convert audio electrical signals into sound signals. The computer 100 can output sound through the speaker 181.
麦克风182用于拾取声音信号并将声音信号转换为电信号。计算机100可以设置至少一个麦克风182。在另一些实施例中,计算机100可以设置两个麦克风182,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,计算机100还可以设置三个,四个或更多麦克风182,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 182 is used to pick up sound signals and convert the sound signals into electrical signals. The computer 100 may be provided with at least one microphone 182. In some other embodiments, the computer 100 can be provided with two microphones 182, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the computer 100 may also be provided with three, four or more microphones 182 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口183用于连接有线耳机。耳机接口183可以是USB接口,3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The earphone interface 183 is used to connect wired earphones. The earphone interface 183 may be a USB interface, a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface, and so on.
此外计算机100还可以包括无线射频(radio frequency,RF)电路191,用于与无线网络设备进行网络通信,还可以包括WIFI模块192,用于与其他设备进行WIFI通信,获取其他设备传输的数据等。In addition, the computer 100 may also include a radio frequency (RF) circuit 191 for network communication with wireless network devices, and may also include a WIFI module 192 for WIFI communication with other devices, and to obtain data transmitted by other devices, etc. .
下面结合图2介绍根据本申请的实施例的BIOS更新控制系统200。该更新控制系统200可以实现在如图1所示的计算机100中。The following describes the BIOS update control system 200 according to an embodiment of the present application in conjunction with FIG. 2. The update control system 200 can be implemented in the computer 100 as shown in FIG. 1.
更新控制系统200可以包括软件(Software,SW)部分210和硬件(Hardware,HW)部分220,软件210部分包括基本输入输出系统(Basic Input Output System,BIOS)211和操作系统(Operating System,OS)212,硬件220部分可以包括硬盘221、中央处理器(Central Processing Unit,CPU)222、BIOS芯片223和嵌入式控制器(Embed Controller,EC)224。The update control system 200 may include a software (SW) part 210 and a hardware (HW) part 220. The software 210 part includes a basic input output system (Basic Input Output System, BIOS) 211 and an operating system (Operating System, OS). 212. The hardware 220 part may include a hard disk 221, a central processing unit (CPU) 222, a BIOS chip 223, and an embedded controller (EC) 224.
OS 212是管理计算机中的硬件与软件资源的计算机程序,主要用于处理例如管理与配置内存、决定系统资源供需的优先次序、控制输入设备与输出设备、操作网络与管理文件系统等基本事务。OS 212可以对计算机系统的各项资源进行调度工作,包括软硬件设备和数据、信息等,同时也提供使用户与计算机100交互的界面。常见的操作系统包括但不限于:Windows、Android、IOS等。可以理解,在本申请的实施例中,OS 212与EC 224解耦,OS 212休眠后,EC 224继续工作,执行唤醒CPU 222等功能。 OS 212 is a computer program that manages hardware and software resources in a computer. It is mainly used to handle basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input devices and output devices, operating networks, and managing file systems. The OS 212 can schedule various resources of the computer system, including software and hardware equipment, data, information, etc., and also provide an interface for the user to interact with the computer 100. Common operating systems include but are not limited to: Windows, Android, IOS, etc. It can be understood that, in the embodiment of the present application, the OS 212 is decoupled from the EC 224. After the OS 212 sleeps, the EC 224 continues to work and performs functions such as waking up the CPU 222.
BIOS 211是固化在计算机主板上的BIOS芯片223中的一组程序,包括计算机最重要的基本输入输出的程序、开机自检程序和系统自启动程序,用于直接对计算机系统中的输入输出设备进行硬件级的控制,为其他软件程序与硬件设备之间建立连接提供基础。BIOS 211是计算机加电后最先执行的程序,完成对系统的各个硬件设备初始化设置和测试等功能,以确保系统能够正常工作。BIOS 211进行硬件资源的初始化后,OS 212才会运行,以通过初始化后的硬件资源进行各种业务。 BIOS 211 is a set of programs solidified in the BIOS chip 223 on the computer motherboard, including the most important basic input and output programs of the computer, the power-on self-check program, and the system self-starting program. It is used to directly control the input and output devices in the computer system. Perform hardware-level control to provide a basis for establishing connections between other software programs and hardware devices. BIOS 211 is the first program to be executed after the computer is powered on. It completes functions such as initial setting and testing of various hardware devices of the system to ensure that the system can work normally. After the BIOS 211 initializes the hardware resources, the OS 212 will run to perform various services through the initialized hardware resources.
具体地,从计算机100的主机上电到加载bootloader(引导程序),即BIOS 211完成启动任务进入空闲状态,BIOS 211主要经历了三个阶段:Pown On(未激活电源阶段)、POST(Power on self tes t,加电自检)以及加载bootloader。其中:Specifically, from the power-on of the host computer of the computer 100 to the loading of the bootloader (bootloader), that is, the BIOS 211 completes the startup task and enters the idle state. The BIOS 211 mainly goes through three stages: Pown On (the power phase is not activated), and POST (Power on). self tes t, power-on self-test) and load the bootloader. in:
1)Pown On阶段的主要任务是校验CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物半导体)中的内容是否正确、检查主机上某些硬件的状态以确定下一步的自检。1) The main task of the Pown On stage is to verify whether the content in CMOS (Complementary Metal Oxide Semiconductor) is correct, and to check the status of some hardware on the host to determine the next self-check.
2)POST(power on self test)阶段检查一些关键设备如内存、显卡能否正常工作,并提供简易的内存测试,只要测试没问题,就在屏幕上显示该硬件的基本信息。通常,BIOS 211在POST阶段的基本过程如下:BIOS 211查找显卡的BIOS代码,然后调用其初始化代码,由显卡的BIOS完成显卡的初始化,然后屏幕便可以显示信息;随后,BIOS 211调用找到的其他设备的BIOS代码,以完成相应设备的初始化,依次类推。检查完其它设备后,BIOS 211将显示自己的启动画面,接着检查CPU 222的类型和工作频率、计算机的内存容量等;然后BIOS 211开始测试和配置系统中安装的一些标准硬件设备,例如硬盘、光驱、接口等,然后BIOS 211检查并配置计算机系统中的即插即用设备。一般来说,开机时和开机后所有需要用到的设备都在POST阶段被激活。2) The POST (power on self test) phase checks whether some key devices such as memory and graphics card can work normally, and provides a simple memory test. As long as the test is no problem, the basic information of the hardware is displayed on the screen. Generally, the basic process of BIOS 211 in the POST phase is as follows: BIOS 211 searches for the BIOS code of the graphics card, and then calls its initialization code. The graphics card’s BIOS completes the initialization of the graphics card, and then the screen can display information; then, BIOS 211 calls other found The BIOS code of the device to complete the initialization of the corresponding device, and so on. After checking other devices, the BIOS 211 will display its own startup screen, and then check the type and operating frequency of the CPU 222, the memory capacity of the computer, etc.; then the BIOS 211 starts to test and configure some standard hardware devices installed in the system, such as hard drives, Optical drive, interface, etc., and then BIOS 211 checks and configures the plug-and-play devices in the computer system. Generally speaking, all the devices that need to be used are activated during the POST phase during and after the startup.
3)在加载bootloader阶段中,BIOS退居幕后的办法是将加载OS的主控权交给硬盘的MBR(Master Boot Record,主引导扇区)即硬盘的物理扇区0柱0面1扇区上的内容,让藏匿于此的开机管理程序(bootloader)将指针带到系统核心的地方。3) In the stage of loading bootloader, the way for BIOS to retreat behind the scenes is to transfer the master control of loading the OS to the MBR (Master Boot Record) of the hard disk, that is, the physical sector of the hard disk 0 cylinder 0 surface 1 sector The above content allows the bootloader hidden here to bring the pointer to the core of the system.
此外,可以理解,在本申请的一些实施例中,BIOS 211在OS 212进入休眠状态后,BIOS 211退出,而在CPU222重置后,能够重新启动。下文将进行详细介绍。In addition, it can be understood that, in some embodiments of the present application, the BIOS 211 exits after the OS 212 enters the sleep state, and can be restarted after the CPU 222 is reset. The details will be introduced below.
硬盘221是计算机中最重要的存储器之一。计算机需要正常运行所需的大部分应用程序和数据都存储在硬盘221上。硬盘221可以包括但不限于:固态硬盘驱动器(Solid State Drive,简称SSD)和机械硬盘驱动器(Hard Disk Drive,HDD)等。在更新BIOS211时,BIOS更新工具最初可以将BIOS的二进制(bin)文件存储到硬盘221中。应当理解,在本申请的实施例中,BIOS的bin文件的存储位置并不限于硬盘221,在一些实施方式中,BIOS的bin文件(即BIOS的更新文件)可以被存储到各种内部存储器或可访问的外部存储设备中,例如,可以被存储到U盘等移动存储设备中。The hard disk 221 is one of the most important memories in a computer. Most of the application programs and data required for the computer to run normally are stored on the hard disk 221. The hard disk 221 may include, but is not limited to: a solid state drive (Solid State Drive, SSD for short) and a mechanical hard disk drive (Hard Disk Drive, HDD), etc. When updating the BIOS 211, the BIOS update tool can initially store the binary (bin) file of the BIOS in the hard disk 221. It should be understood that in the embodiments of the present application, the storage location of the BIOS bin file is not limited to the hard disk 221. In some embodiments, the BIOS bin file (ie, BIOS update file) can be stored in various internal memories or In an accessible external storage device, for example, it can be stored in a mobile storage device such as a U disk.
CPU 222是对计算机100的所有硬件资源进行控制调配、执行通用运算的核心硬件单元。CPU 222作为计算机100的运算和控制核心,是信息处理、程序运行的最终执行单元,计算机系统中所有软件层210的操作,最终都将通过指令集映射为CPU 222的操作。在本申请的一些实施例中,BIOS的更新程序通过BIOS 211向CPU 222发送休眠指令,是的OS 212进入休眠状态。The CPU 222 is a core hardware unit that controls and allocates all hardware resources of the computer 100 and executes general operations. As the computing and control core of the computer 100, the CPU 222 is the final execution unit for information processing and program operation. The operations of all software layers 210 in the computer system will eventually be mapped to the operations of the CPU 222 through the instruction set. In some embodiments of the present application, the BIOS update program sends a sleep instruction to the CPU 222 through the BIOS 211, and yes, the OS 212 enters the sleep state.
BIOS芯片223是设置在计算机主板上的非易失性存储器,用于存储前述BIOS 211,其不需要供电就可保持数据不丢失。BIOS芯片223可以是只读存储器(Read-Only Memory,ROM)芯片或闪存(Flash)芯片等。BIOS芯片一般为FlashROM(快速擦写只读编程器)芯片。目前,FlashROM芯片的容量一般多为1M或2M一直到8M,并大致分为28、29两大系列。28系列的FlashROM芯片是双电压设计的,它可以在5V的电压的条件下读取,而写入则必须提供12V的电压。这种芯片的主板在升级时要开机箱、改跳线设置。29系列的FlashROM芯片则相对简单,由于其采用单电压设计,读写都采用5V电压,因此只动用软件就可以完成读写Firmware的操作。The BIOS chip 223 is a non-volatile memory provided on the computer motherboard and used to store the aforementioned BIOS 211, which can keep data without loss without power supply. The BIOS chip 223 may be a read-only memory (Read-Only Memory, ROM) chip or a flash memory (Flash) chip. The BIOS chip is generally a FlashROM (flash-erase read-only programmer) chip. At present, the capacity of FlashROM chips is generally 1M or 2M up to 8M, and is roughly divided into 28 and 29 series. The FlashROM chip of the 28 series is designed with dual voltage, it can be read under the condition of 5V voltage, and the voltage of 12V must be provided for writing. The motherboard of this chip needs to open the case and change the jumper setting when upgrading. The 29 series of FlashROM chips are relatively simple. Because of their single-voltage design, both read and write use 5V voltage, so the firmware read and write operations can be completed with only software.
嵌入式控制器(Embedded Controller,EC)224是一种用于执行指定独立控制功能并具有复杂处理数据能力的控制系统。EC 224作为一个单独的处理器,可以采用单片机来实现,在开机前和开机过程中对整个系统起着全局管理的作用。EC 224利用flash内存储的逻辑程序(即EC代码)来执行控制功能,在一些实施例中,EC 224本身可以 集成一定容量的Flash等来存储EC的代码,在一些实施例中,EC 224中也可以不集成Flash,而是将EC代码存储在BIOS芯片223中。Embedded Controller (EC) 224 is a control system used to perform designated independent control functions and have complex data processing capabilities. As a single processor, EC 224 can be implemented by a single-chip microcomputer, which plays a global management role for the entire system before and during the boot process. The EC 224 uses the logic program (ie EC code) stored in the flash to perform the control function. In some embodiments, the EC 224 itself can integrate a certain capacity of Flash, etc. to store the EC code. In some embodiments, the EC 224 It is also possible not to integrate Flash, but to store the EC code in the BIOS chip 223.
在系统开启的过程中,EC 224控制着绝大多数重要信号的时序。在计算机中,只要在通电的情况下,EC 224会一直开启,无论计算机处于开机状态或者是关机状态,除非电池和适配器被完全卸除。在关机状态下,EC 224一直保持运行,并等待用户的开机信息。而在开机后,EC 224会执行键盘、风扇、充放电、指示灯等功能的控制或支持工作,担负着键盘、鼠标、电池电源以及温控检测的任务。在一些实施例中,EC 224还用于控制系统的待机、休眠等状态。When the system is turned on, EC 224 controls the timing of most important signals. In a computer, as long as it is powered on, the EC 224 will always be turned on, regardless of whether the computer is on or off, unless the battery and adapter are completely removed. In the shutdown state, the EC 224 keeps running and waits for the user's startup information. After booting, EC 224 will perform keyboard, fan, charging and discharging, indicator lights and other functions to control or support work, and is responsible for the tasks of keyboard, mouse, battery power supply, and temperature control detection. In some embodiments, EC 224 is also used to control the standby, hibernation and other states of the system.
下面结合图3来描述利用图2所示的BIOS更新控制系统200进行BIOS更新的过程。The following describes the process of using the BIOS update control system 200 shown in FIG. 2 to perform a BIOS update with reference to FIG. 3.
首先,S301:在OS 212运行的状态下,利用BIOS更新工具将新的BIOS bin文件存储到计算机的硬盘的指定位置,该指定位置由BIOS bin文件的存储路径决定,文件存储路径可以由BIOS更新工具默认设置,也可以由用户来自定义。例如,新的BIOS bin文件可以被存储在硬盘221的EFI系统分区(EFI system partition,ESP),以便BIOS 211无需驱动程序即可直接访问。可以理解,新的BIOS bin文件也可以存储在硬盘221的其他分区或着计算机100的其他存储设备中。First, S301: When the OS 212 is running, use the BIOS update tool to store the new BIOS bin file to the specified location of the computer's hard disk. The specified location is determined by the storage path of the BIOS bin file, and the file storage path can be updated by the BIOS The default settings of the tool can also be customized by the user. For example, the new BIOS bin file may be stored in the EFI system partition (ESP) of the hard disk 221, so that the BIOS 211 can be directly accessed without a driver. It can be understood that the new BIOS bin file may also be stored in other partitions of the hard disk 221 or other storage devices of the computer 100.
S302:通过BIOS 211更新工具设置更新标志位(更新flag),该更新flag可以用在BIOS 211的POST过程中使BIOS 211自检是否需要更新。S302: Set the update flag bit (update flag) through the BIOS 211 update tool. The update flag can be used in the POST process of the BIOS 211 to make the BIOS 211 self-check whether it needs to be updated.
S303-S304:利用BIOS 211更新工具通知BIOS向CPU 222发送休眠指令,以便使计算机进入休眠状态。其中,在OS 212进入休眠状态时,BIOS 211也退出。S303-S304: Use the BIOS 211 update tool to notify the BIOS to send a hibernation instruction to the CPU 222, so that the computer enters the hibernation state. Among them, when the OS 212 enters the sleep state, the BIOS 211 also exits.
例如,如图4a所示,在计算机系统进入休眠状态时,可以通过机算机100的显示器界面,提醒用户计算机要进行BIOS更新,计算机系统即将进入休眠状态,在用户点击确认后,计算机系统进入休眠状态。如果用户选择稍后更新,则可以在预定时间后提醒用户进行更新。或着还可以给用户设置更新时间的选择项,比如选择4小时后更新、选择晚上更新等等。For example, as shown in Figure 4a, when the computer system enters the dormant state, the display interface of the computer 100 can be used to remind the user that the computer is about to update the BIOS and the computer system is about to enter the dormant state. After the user clicks to confirm, the computer system enters Sleep state. If the user chooses to update later, the user can be reminded to update after a predetermined time. Or you can also set the options for the user to update the time, such as choosing to update after 4 hours, choosing to update at night, and so on.
根据本申请的一些实施例,BIOS 211向CPU 222发送的休眠指令可以是S4休眠指令,以控制计算机系统进入S4状态,也称为挂起到硬盘(Suspend to Disk,STD)状态。在S4状态,CPU 222的电源关闭,系统主电源关闭,但是硬盘仍然带电并可以被唤醒,运行中的相关数据被保存到硬盘,然后所有部件停止工作。在STD状态下,用户的当前操作不会丢失,之后可以通过按压电源键等操作来重新唤醒系统,系统唤醒后可以从硬盘中读取相关数据并恢复到STD之前的工作状态。According to some embodiments of the present application, the hibernation instruction sent by the BIOS 211 to the CPU 222 may be an S4 hibernation instruction to control the computer system to enter the S4 state, which is also called the Suspend to Disk (STD) state. In the S4 state, the power of the CPU 222 is turned off, and the main power of the system is turned off, but the hard disk is still powered and can be awakened, the relevant data in operation is saved to the hard disk, and then all components stop working. In the STD state, the user's current operation will not be lost. After that, the system can be re-awakened by pressing the power button and other operations. After the system wakes up, the relevant data can be read from the hard disk and restored to the working state before the STD.
根据本申请的另一些实施例,BIOS 211向CPU 222发送的休眠指令也可以是S3休眠指令,以控制计算机系统进入S3状态,也称为挂起到内存(Suspend to RAM,STR)状态。在STR状态中,CPU 222的电源也关闭,系统进入STR前的工作状态数据被存储到内存中。在STR状态下,电源仍然继续为内存等最必要的部件供电,以确保数据不丢失,而其他部件则均处于关闭状态。同样,之后也可以通过按压电源键等操作来重新唤醒系统,系统唤醒后可以马上从内存中读取数据并恢复到STR之前的工作状态。由于内存的读写速度极快,因此进入和离开STR状态的时间相比于进入和离开STD状 态的时间来说更短。系统进入S3或S4休眠可以通过高级配置与电源接口(Advanced Configuration and Power Interface,ACPI)来实现。According to other embodiments of the present application, the hibernation instruction sent by the BIOS 211 to the CPU 222 may also be an S3 hibernation instruction to control the computer system to enter the S3 state, which is also called the Suspend to RAM (STR) state. In the STR state, the power of the CPU 222 is also turned off, and the working state data before the system enters the STR is stored in the memory. In the STR state, the power supply continues to supply power to the most necessary components such as memory to ensure that data is not lost, while other components are turned off. Similarly, afterwards, the system can be re-woken up by pressing the power button and other operations. After the system is woken up, data can be read from the memory immediately and restored to the previous working state of STR. Due to the extremely fast read and write speed of the memory, the time to enter and leave the STR state is shorter than the time to enter and leave the STD state. The system entering S3 or S4 sleep can be realized through Advanced Configuration and Power Interface (ACPI).
此外,可以理解,在其他实施例中,BIOS 211也可以通过计算机100上共存的其他系统向CPU 222发送休眠指令,例如,BIOS 211可以通过OS 212向CPU发送休眠指令。In addition, it can be understood that in other embodiments, the BIOS 211 may also send a hibernation instruction to the CPU 222 through other systems coexisting on the computer 100. For example, the BIOS 211 may send a hibernation instruction to the CPU through the OS 212.
S305:BIOS 211为EC 224配置唤醒flag(即唤醒标志位),根据本申请的一些实施例,BIOS 211配置唤醒flag的操作可以在BIOS 211向CPU 222发送休眠指令的同时进行,也可以在BIOS 211向CPU 222发送休眠指令的操作之前或者之后进行,但要保证BIOS 211为EC 224配置唤醒flag的操作在BIOS 211有操作权限的时候完成,即,在CPU 222休眠前完成。在CPU 222休眠之前设置好唤醒flag,可以确保在计算机系统进入休眠后,EC 224能够根据获取的唤醒flag,启动CPU 222,从而唤醒BIOS 211进行BIOS更新。S305: BIOS 211 configures the wake-up flag (that is, wake-up flag bit) for EC 224. According to some embodiments of this application, the operation of BIOS 211 to configure the wake-up flag can be performed at the same time when BIOS 211 sends a sleep command to CPU 222, or in BIOS 211 is performed before or after the operation of sending the sleep instruction to the CPU 222, but it must be ensured that the operation of the BIOS 211 to configure the wake-up flag for the EC 224 is completed when the BIOS 211 has the operating authority, that is, before the CPU 222 sleeps. Setting the wake-up flag before the CPU 222 sleeps can ensure that after the computer system enters sleep, the EC 224 can start the CPU 222 according to the obtained wake-up flag, thereby waking up the BIOS 211 for BIOS update.
在正常情况下,BIOS 211向CPU 222发送休眠指令后,OS 212和BIOS 211将一同进入休眠状态,本申请的实施例为了使BIOS可以被唤醒并更新,在向CPU 222发送休眠指令的同时,为EC 224配置唤醒flag。该唤醒flag设置在EC 224可访问的位置,使EC 224读取该唤醒flag后,可以唤醒BIOS 211。Under normal circumstances, after the BIOS 211 sends a sleep instruction to the CPU 222, the OS 212 and the BIOS 211 will enter the sleep state together. In order to enable the BIOS to be awakened and updated, the embodiment of the present application sends the sleep instruction to the CPU 222 at the same time. Configure the wake-up flag for EC 224. The wake-up flag is set at a location accessible to the EC 224, so that the EC 224 can wake up the BIOS 211 after reading the wake-up flag.
S306:利用EC 224唤醒BIOS 211,并清除唤醒flag。S306: Use EC 224 to wake up BIOS 211 and clear the wake-up flag.
由于EC 224在通电情况下会一直开启,因此,即便计算机进入休眠状态,EC 224也一直保持运行,并且可以访问到先前设置的唤醒flag。在本申请的实施例中,EC 224被配置为读取到唤醒flag后,执行重置CPU 222的操作,CPU 222重置以后,BIOS 211被开启,并且在BIOS 211被开启后清除唤醒flag。该清除操作可以由EC在访问唤醒flag后执行;也可以由BIOS 211执行,例如,BIOS 211在配置唤醒flag时设置该唤醒flag被访问后即清除。Since the EC 224 is always on when the power is on, even if the computer enters the dormant state, the EC 224 keeps running and can access the previously set wake-up flag. In the embodiment of the present application, the EC 224 is configured to perform the operation of resetting the CPU 222 after reading the wake-up flag. After the CPU 222 is reset, the BIOS 211 is turned on, and the wake-up flag is cleared after the BIOS 211 is turned on. The clearing operation can be executed by the EC after accessing the wake-up flag; it can also be executed by the BIOS 211. For example, the BIOS 211 sets the wake-up flag to be cleared when the wake-up flag is configured when the wake-up flag is configured.
S307-S308:BIOS 211被开启后,执行启动任务,并在POST阶段检测到更新flag(例如,检测到更新flag为1)的情况下,执行BIOS更新操作。如上文所述,BIOS 211在执行启动任务时,会进入POST阶段,BIOS 211在POST阶段,检测到更新flag为1的情况下,将执行BIOS更新操作,将原先存储在硬盘221中的BIOS bin文件写入BIOS芯片223中,并清除更新flag。S307-S308: After the BIOS 211 is turned on, the startup task is executed, and the BIOS update operation is executed when the update flag is detected during the POST phase (for example, the update flag is detected as 1). As mentioned above, the BIOS 211 will enter the POST phase when it executes the startup task. When the BIOS 211 detects that the update flag is 1 in the POST phase, it will execute the BIOS update operation and store the BIOS bin originally stored in the hard disk 221. The file is written into the BIOS chip 223, and the update flag is cleared.
具体地,BIOS 211在POST阶段检测到更新flag为1后,BIOS 211可以从硬盘221的指定位置读取新的BIOS文件,例如从上文提到的ESP读取新的BIOS文件,随后对新的BIOS文件进行校验认证(例如校验新的BIOS文件是否携带病毒,检测新的BIOS文件的完整性等),确认ESP中存储的是需要升级的新的BIOS文件,并检查当前是否具备升级条件。根据本申请的一些实施例,升级条件可以包括当前计算机设备的电量是否满足升级要求等,该升级条件可以自定义设置,本申请在此不做限制。Specifically, after the BIOS 211 detects that the update flag is 1 in the POST phase, the BIOS 211 can read the new BIOS file from the specified location of the hard disk 221, for example, read the new BIOS file from the ESP mentioned above, and then update the new BIOS file. BIOS file verification and authentication (such as verifying whether the new BIOS file carries viruses, checking the integrity of the new BIOS file, etc.), confirming that the new BIOS file that needs to be upgraded is stored in the ESP, and checking whether the current upgrade is available condition. According to some embodiments of the present application, the upgrade conditions may include whether the current power of the computer equipment meets the upgrade requirements, etc. The upgrade conditions can be customized and set in this application, which is not limited here.
在BIOS 211确认ESP中存储的是需要升级的新的BIOS文件,并且当前计算机设备具备升级条件后,开始进行BIOS更新的准备,将新的BIOS文件写入BIOS芯片223中。在完成新的BIOS文件写入的动作后可以要进行读写检验,检验成功说明刷写BIOS成功,而如果检验失败,则可以重新写入。It is confirmed in the BIOS 211 that the new BIOS file that needs to be upgraded is stored in the ESP, and after the current computer equipment meets the upgrade conditions, the preparation for the BIOS update is started, and the new BIOS file is written into the BIOS chip 223. After completing the writing of the new BIOS file, a read and write check may be performed. A successful check indicates that the BIOS flashing is successful, and if the check fails, it can be rewritten.
BIOS 211将新的BIOS文件写入BIOS芯片223后,BIOS 211向EC 224发送更新文件成功写入BIOS芯片223的消息,并且BIOS 211使得CPU 222进行重启,CPU 222重启后将BIOS芯片223中新的BIOS文件加载到计算机100的内存中,至此,BIOS 211完成更新。After the BIOS 211 writes the new BIOS file into the BIOS chip 223, the BIOS 211 sends a message to the EC 224 that the update file is successfully written to the BIOS chip 223, and the BIOS 211 causes the CPU 222 to restart, and the CPU 222 resets the BIOS chip 223 after restarting. The BIOS file is loaded into the memory of the computer 100. So far, the BIOS 211 is updated.
此外,可以理解,在其他实施例中,也可以是由EC 224来指令CPU进行重启,即BIOS 211将新的BIOS文件写入BIOS芯片223后,BIOS 211向EC 224发送更新文件成功写入BIOS芯片223的消息,EC 224使得CPU 222进行重启,CPU 222重启后将BIOS芯片223中新的BIOS文件加载到计算机100的内存中,至此,BIOS 211完成更新。In addition, it can be understood that in other embodiments, the EC 224 may also instruct the CPU to restart, that is, after the BIOS 211 writes the new BIOS file to the BIOS chip 223, the BIOS 211 sends the update file to the EC 224 to successfully write the BIOS. The message of the chip 223, the EC 224 causes the CPU 222 to restart. After the CPU 222 restarts, the new BIOS file in the BIOS chip 223 is loaded into the memory of the computer 100. At this point, the BIOS 211 is updated.
S309:BIOS211更新完成并顺利启动后,OS 212从休眠状态唤醒,进入S0状态,从内存或硬盘中读取运行相关数据并恢复到休眠之前的工作状态,BIOS更新前系统的相关操作得以保存。例如,如图4b所示,BIOS 211更新完成后,OS 212进入S0状态,保存更新前的相关操作。其中,OS 212的S0状态是OS 212正常工作状态,此时计算机100的硬件设备基本上都处于开启状态。S309: After the BIOS211 update is completed and successfully started, OS 212 wakes up from the sleep state, enters the S0 state, reads operating data from the memory or hard disk and returns to the working state before sleep, and the system related operations before the BIOS update are saved. For example, as shown in Figure 4b, after the BIOS 211 update is completed, the OS 212 enters the S0 state and saves related operations before the update. Among them, the S0 state of the OS 212 is the normal working state of the OS 212. At this time, the hardware devices of the computer 100 are basically in the on state.
本申请的实施例通过OS 212、BIOS 211和EC 224的交互设计来实现BIOS 211的更新。在BIOS更新过程中,BIOS 211与OS 212解耦,使OS 212保持休眠状态,而BIOS 211启动更新。在BIOS 211的更新过程中,OS 212处于S3或S4休眠状态,从而可以保存OS系统的当前操作装态和文件等,实现BIOS更新的同时使当前系统操作不丢失,以满足BIOS 211的闲时自动更新和强制更新的需求。The embodiment of the present application realizes the update of the BIOS 211 through the interactive design of the OS 212, the BIOS 211, and the EC 224. During the BIOS update process, the BIOS 211 is decoupled from the OS 212, so that the OS 212 remains in a dormant state, and the BIOS 211 initiates the update. During the BIOS 211 update process, the OS 212 is in the S3 or S4 dormant state, so that the current operating state and files of the OS system can be saved, so that the current system operations are not lost while the BIOS is updated to meet the idle time of the BIOS 211 Automatic update and mandatory update requirements.
下面结合图5描述根据本申请的一些实施例的示例计算设备500。在本申请的实施例中,计算设备500可以是或可以包括图2所示的更新控制系统200,并且,在各种实施例中,计算设备500可具有更多或更少的组件和/或不同的架构。An example computing device 500 according to some embodiments of the present application will be described below in conjunction with FIG. 5. In the embodiment of the present application, the computing device 500 may be or may include the update control system 200 shown in FIG. 2, and, in various embodiments, the computing device 500 may have more or fewer components and/or Different architectures.
在一个实施例中,计算设备500可以包括一个或多个处理器504,与处理器504中的至少一个连接的系统控制逻辑508,与系统控制逻辑508连接的系统内存512,与系统控制逻辑508连接存储器516(例如非易失性存储器(non-volatile memory,NVM)),以及与系统控制逻辑508连接的网络接口520。In one embodiment, the computing device 500 may include one or more processors 504, a system control logic 508 connected to at least one of the processors 504, a system memory 512 connected to the system control logic 508, and a system control logic 508 The memory 516 (for example, a non-volatile memory (NVM)) is connected, and the network interface 520 is connected to the system control logic 508.
处理器504可以包括一个或多个单核或多核处理器。处理器504可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任何组合。在一些情况下,处理器504可以被配置为执行上述结合图2至图3描述CPU 222或EC 224所执行的各种操作。The processor 504 may include one or more single-core or multi-core processors. The processor 504 may include any combination of a general-purpose processor and a special-purpose processor (for example, a graphics processor, an application processor, a baseband processor, etc.). In some cases, the processor 504 may be configured to perform various operations performed by the CPU 222 or the EC 224 described above with reference to FIGS. 2 to 3.
用于某个实施例的系统控制逻辑508可以包括任何合适的接口控制器,以向处理器504中的至少一个和/或与系统控制逻辑508通信的任何合适的设备或组件提供任何合适的接口。用于某个实施例的系统控制逻辑508可以包括一个或多个存储器控制器以提供连接到系统内存512的接口。系统内存512可以用于加载和存储数据和/或指令,例如,对于计算设备500,用于某个实施例的系统内存512可以包括任何合适的易失性存储器,例如合适的随机存取存储器(random-access memory,RAM)或动态随机存取存储器(dynamic random access memory,DRAM)。The system control logic 508 for a certain embodiment may include any suitable interface controller to provide any suitable interface to at least one of the processors 504 and/or any suitable device or component in communication with the system control logic 508 . The system control logic 508 for a certain embodiment may include one or more memory controllers to provide an interface to the system memory 512. The system memory 512 may be used to load and store data and/or instructions. For example, for the computing device 500, the system memory 512 used in a certain embodiment may include any suitable volatile memory, such as a suitable random access memory ( random-access memory (RAM) or dynamic random access memory (dynamic random access memory, DRAM).
存储器516可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算 机可读介质。例如,存储器516可以包括的任何合适的非易失性存储器和/或任何合适的非易失性存储设备,例如闪存、硬盘驱动器(hard disk drive,HDD),固态硬盘(solid-state drive,SSD),光盘(compact disk,CD)驱动器,和/或数字通用光盘(digital versatile disk,DVD)驱动器等。The memory 516 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. For example, the memory 516 may include any suitable non-volatile memory and/or any suitable non-volatile storage device, such as flash memory, hard disk drive (HDD), and solid-state drive (SSD). ), compact disk (CD) drives, and/or digital versatile disk (DVD) drives, etc.
存储器516可以包括安装计算设备500的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口520通过网络访问存储器516。The memory 516 may include a part of storage resources on the device on which the computing device 500 is installed, or it may be accessed by the device, but not necessarily a part of the device. For example, the storage 516 can be accessed through the network via the network interface 520.
特别地,系统内存512和存储器516可以分别包括:指令524的暂时和永久副本。指令524可以包括:由处理器504中的至少一个执行时导致计算设备500实施上文所述的方法的指令。在各种实施例中,指令524或硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑508,网络接口520和/或处理器504中。In particular, the system memory 512 and the memory 516 may include: temporary and permanent copies of the instructions 524, respectively. The instructions 524 may include instructions that, when executed by at least one of the processors 504, cause the computing device 500 to implement the method described above. In various embodiments, instructions 524 or hardware, firmware, and/or software components thereof may additionally/alternatively be placed in system control logic 508, network interface 520, and/or processor 504.
网络接口520可以包括收发器,用于为计算设备500提供无线电接口,进而通过一个或多个网络与任何其他合适的设备(如前端模块,天线等)进行通信。在各种实施例中,网络接口520可以与计算设备500的其他组件集成。例如,网络接口可以包括处理器504的处理器,系统内存512的内存,存储器516的存储器,和/或具有指令的固件设备(未示出),所述指令为由处理器504中的至少一个执行时导致计算设备500实施如图3中所描述的方法的指令。The network interface 520 may include a transceiver, which is used to provide a radio interface for the computing device 500 to communicate with any other suitable devices (such as a front-end module, an antenna, etc.) through one or more networks. In various embodiments, the network interface 520 may be integrated with other components of the computing device 500. For example, the network interface may include the processor of the processor 504, the memory of the system memory 512, the memory of the memory 516, and/or a firmware device (not shown) with instructions, the instructions being generated by at least one of the processors 504 When executed, instructions that cause the computing device 500 to implement the method described in FIG. 3.
网络接口520可以进一步包括任何合适的硬件和/或固件,以提供多输入多输出无线电接口。例如,用于某个实施例的网络接口520可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。The network interface 520 may further include any suitable hardware and/or firmware to provide a multiple input multiple output radio interface. For example, the network interface 520 used in a certain embodiment may be a network adapter, a wireless network adapter, a telephone modem, and/or a wireless modem.
对于一个实施例,处理器504中的至少一个可以与用于系统控制逻辑508的一个或多个控制器的逻辑封装在一起。对于一个实施例,处理器504中的至少一个可以与用于系统控制逻辑508的一个或多个控制器的逻辑封装在一起,以形成系统封装(SiP)。对于一个实施例,处理器504中的至少一个可以与用于系统控制逻辑508的一个或多个控制器的逻辑集成在一起。对于一个实施例,处理器504中的至少一个可以与用于系统控制逻辑508的一个或多个控制器的逻辑集成在一起,以形成片上系统(SoC)。For an embodiment, at least one of the processors 504 may be packaged with the logic of one or more controllers for the system control logic 508. For one embodiment, at least one of the processors 504 may be packaged with the logic of one or more controllers for the system control logic 508 to form a system in package (SiP). For one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for the system control logic 508. For one embodiment, at least one of the processors 504 may be integrated with the logic of one or more controllers for the system control logic 508 to form a system on chip (SoC).
计算设备500可以进一步包括:输入/输出(I/O)设备532。I/O设备532可以包括,被设计为使得用户能够与计算设备500进行交互的用户界面;被设计为使得外围组件也能够与计算设备500交互的外围组件接口;和/或被设计为用于确定与计算设备500相关的环境条件和/或位置信息的传感器等。The computing device 500 may further include: an input/output (I/O) device 532. The I/O device 532 may include a user interface designed to enable a user to interact with the computing device 500; a peripheral component interface designed to enable peripheral components to also interact with the computing device 500; and/or a user interface designed to enable A sensor that determines environmental conditions and/or location information related to the computing device 500, etc.
本申请公开的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统可以包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。The various embodiments disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system. The programmable system can include at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements). ), at least one input device and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。Program codes can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner.
本申请中的程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申 请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code in this application can be implemented in a high-level programming language or an object-oriented programming language to communicate with the processing system. When needed, assembly language or machine language can also be used to implement the program code. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合形式来实现。所公开的实施例还可以以承载或储存在一个或多个瞬态或非瞬态的机器可读(例如,计算机可读)存储介质上的指令或程序形式实现,其可以由一个或多个处理器等读取和执行。当指令或程序被机器运行时,机器可以执行前述的各种方法。例如,指令可以通过网络或其他计算机可读介质分发。因此,机器可读介质可以包括但不限于,用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,例如,软盘,光盘,光盘只读存储器(CD-ROMs),磁光盘,只读存储器(ROM),随机存取存储器(RAM),可擦除可编程只读存储器(EPROM),电子式可清除程序化只读存储器(EEPROM),磁卡或光卡,或者用于通过电、光、声或其他形式信号(例如,载波、红外信号、数字信号等)传输网络信息的闪存或有形的机器可读存储器。因此,机器可读介质包括任何形式的适合于存储或传输电子指令或机器(例如,计算机)可读信息的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented in the form of instructions or programs carried or stored on one or more transient or non-transitory machine-readable (for example, computer-readable) storage media, which may be implemented by one or more The processor, etc. read and execute. When the instructions or programs are executed by the machine, the machine can execute the aforementioned various methods. For example, the instructions can be distributed via a network or other computer-readable media. Therefore, a machine-readable medium may include, but is not limited to, any mechanism for storing or transmitting information in a form readable by a machine (for example, a computer), such as floppy disks, optical disks, compact disk read-only memories (CD-ROMs), and magnetic disks. Optical disc, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electronically erasable programmable read-only memory (EEPROM), magnetic or optical card, or for Flash memory or tangible machine-readable memory that transmits network information through electricity, light, sound, or other forms of signals (for example, carrier waves, infrared signals, digital signals, etc.). Therefore, the machine-readable medium includes any form of machine-readable medium suitable for storing or transmitting electronic instructions or machine (for example, computer) readable information.
因此,本申请的各实施例还包括非瞬态的有形机器可读介质,该介质包含指令或包含设计数据,诸如硬件描述语言(HDL),它定义本文中描述的结构、电路、装置、处理器和/或系统特征。这些实施例也被称为程序产品。Therefore, the embodiments of the present application also include non-transitory tangible machine-readable media containing instructions or design data, such as hardware description language (HDL), which defines the structures, circuits, devices, and processes described herein. And/or system characteristics. These embodiments are also called program products.
应当理解的是,虽然在本文中可能使用了术语“第一”、“第二”等等来描述各个特征,但是这些特征不应当受这些术语限制。使用这些术语仅仅是为了进行区分,而不能理解为指示或暗示相对重要性。举例来说,在不背离示例性实施例的范围的情况下,第一特征可以被称为第二特征,并且类似地第二特征可以被称为第一特征。It should be understood that although the terms "first", "second", etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only for distinction, and cannot be understood as indicating or implying relative importance. For example, without departing from the scope of the exemplary embodiment, the first feature may be referred to as the second feature, and similarly the second feature may be referred to as the first feature.
此外,各种操作将以最有助于理解说明性实施例的方式被描述为多个彼此分离的操作;然而,描述的顺序不应被解释为暗示这些操作必须依赖描述的顺序,其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序也可以被重新安排。当所描述的操作完成时,所述处理可以被终止,但是还可以具有未包括在附图中的附加操作。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, various operations will be described as multiple operations separated from each other in a manner that is most helpful for understanding the illustrative embodiments; however, the order of description should not be construed to imply that these operations must rely on the order of description, many of which Operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can also be rearranged. When the described operations are completed, the processing may be terminated, but there may also be additional operations not included in the drawings. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and so on.
说明书中对“一个实施例”,“实施例”,“说明性实施例”等的引用表示所描述的实施例可以包括特定特征、结构或性质,但是每个实施例也可能或不是必需包括特定的特征、结构或性质。而且,这些短语不一定是针对同一实施例。此外,当结合具体实施例描述特定特征,本领域技术人员的知识能够影响到这些特征与其他实施例的结合,无论这些实施例是否被明确描述。References in the specification to "one embodiment", "an embodiment", "an illustrative embodiment", etc. indicate that the described embodiment may include specific features, structures, or properties, but each embodiment may or may not necessarily include specific The characteristics, structure or properties of. Moreover, these phrases are not necessarily referring to the same embodiment. In addition, when specific features are described in conjunction with specific embodiments, the knowledge of those skilled in the art can influence the combination of these features with other embodiments, regardless of whether these embodiments are explicitly described.
除非上下文另有规定,否则术语“包含”、“具有”和“包括”是同义词。短语“A/B”表示“A或B”。短语“A和/或B”表示“(A)、(B)或(A和B)”。Unless the context dictates otherwise, the terms "comprising", "having" and "including" are synonymous. The phrase "A/B" means "A or B". The phrase "A and/or B" means "(A), (B) or (A and B)".
如本文所使用的,术语“模块”可以指代,作为其中的一部分,或者包括:用于运行一个或多个软件或固件程序的存储器(共享、专用或组),专用集成电路(ASIC),电子电路和/或处理器(共享、专用或组),组合逻辑电路,和/或提供所述功能的其他合适组件。As used herein, the term "module" can refer to, as a part of it, or include: memory (shared, dedicated or group) for running one or more software or firmware programs, application specific integrated circuit (ASIC), Electronic circuits and/or processors (shared, dedicated or group), combinational logic circuits, and/or other suitable components that provide the described functions.
在附图中,可能以特定布置和/或顺序示出了一些结构或方法特征。然而,应当理解的是,这样的特定布置和/或排序不是必需的。而是,在一些实施例中,这些特征可 以以不同于说明性附图中所示的方式和/或顺序来进行说明。另外,特定附图中所包含得结构或方法特征并不意味着所有实施例都需要包含这样的特征,在一些实施例中,可以不包含这些特征,或者可以将这些特征与其他特征进行组合。In the drawings, some structural or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a specific arrangement and/or ordering is not necessary. Rather, in some embodiments, these features may be described in a different manner and/or order than shown in the illustrative drawings. In addition, the structural or method features included in a particular drawing do not mean that all embodiments need to include such features. In some embodiments, these features may not be included, or these features may be combined with other features.
上面结合附图对本申请的实施例做了详细说明,但本申请技术方案的使用不仅仅局限于本专利实施例中提及的各种应用,各种结构和变型都可以参考本申请技术方案轻易地实施,以达到本文中提及的各种有益效果。在本领域普通技术人员所具备的知识范围内,在不脱离本申请宗旨的前提下做出的各种变化,均应归属于本申请专利涵盖范围。The embodiments of this application are described in detail above in conjunction with the drawings, but the use of the technical solutions of this application is not limited to the various applications mentioned in the embodiments of this patent. Various structures and modifications can be easily referred to the technical solutions of this application. To achieve the various beneficial effects mentioned in this article. Within the scope of knowledge possessed by those of ordinary skill in the art, various changes made without departing from the purpose of this application shall all belong to the scope of the patent coverage of this application.

Claims (14)

  1. 一种计算设备的基本输入输出系统的更新方法,其特征在于,包括:A method for updating a basic input output system of a computing device, which is characterized in that it comprises:
    所述计算设备的操作系统进入休眠状态;The operating system of the computing device enters a sleep state;
    所述操作系统进入休眠状态后,重启所述基本输入输出系统;After the operating system enters the sleep state, restart the basic input output system;
    所述基本输入输出系统获取基本输入输出系统的更新文件,并基于获取的所述更新文件执行基本输入输出系统的更新;The basic input output system obtains the update file of the basic input output system, and performs the update of the basic input output system based on the obtained update file;
    在所述基本输入输出系统完成更新后,所述操作系统从所述休眠状态唤醒。After the basic input output system is updated, the operating system wakes up from the sleep state.
  2. 根据权利要求1所述的更新方法,其特征在于,所述计算设备的操作系统进入休眠状态包括:The update method according to claim 1, wherein the operating system of the computing device enters a dormant state comprises:
    所述基本输入输出系统的更新程序向所述操作系统发送休眠指令,所述操作系统进入休眠状态。The update program of the basic input output system sends a sleep instruction to the operating system, and the operating system enters a sleep state.
  3. 根据权利要求2所述的更新方法,其特征在于,所述操作系统进入休眠状态后,重启所述基本输入输出系统包括:The update method according to claim 2, wherein after the operating system enters a sleep state, restarting the basic input output system comprises:
    所述操作系统进入休眠状态后,所述计算设备的嵌入式控制器重置所述计算设备的中央处理器,以重启所述基本输入输出系统。After the operating system enters the sleep state, the embedded controller of the computing device resets the central processing unit of the computing device to restart the basic input output system.
  4. 根据权利要求3所述的更新方法,其特征在于,还包括:The update method according to claim 3, further comprising:
    在所述操作系统进入休眠状态前,所述基本输入输出系统为所述嵌入式控制器设置唤醒标志位,其中,所述嵌入式控制器在获取到所述唤醒标志位后,重置所述中央处理器。Before the operating system enters the sleep state, the basic input output system sets a wake-up flag bit for the embedded controller, wherein the embedded controller resets the wake-up flag bit after acquiring the wake-up flag bit. CPU.
  5. 根据权利要求1所述的更新方法,其特征在于,还包括:The update method according to claim 1, further comprising:
    所述嵌入式控制器在重置所述中央处理器后,删除所述唤醒标志位。The embedded controller deletes the wake-up flag bit after resetting the central processing unit.
  6. 根据权利要求1所述的更新方法,其特征在于,所述基本输入输出系统通过以下方式执行所述基本输入输出系统的更新:The update method according to claim 1, wherein the basic input output system performs the update of the basic input output system in the following manner:
    所述基本输入输出系统将所述更新文件写入所述计算设备的基本输入输出系统芯片中;The basic input output system writes the update file into the basic input output system chip of the computing device;
    所述基本输入输出系统重置所述计算设备的中央处理器,以将所述基本输入输出系统芯片中的所述更新文件加载到所述计算设备的内存中。The basic input output system resets the central processing unit of the computing device to load the update file in the basic input output system chip into the memory of the computing device.
  7. 根据权利要求1所述的更新方法,其特征在于,在所述基本输入输出系统完成更新后,所述操作系统从所述休眠状态唤醒包括:The update method according to claim 1, wherein after the basic input output system is updated, the operating system waking up from the sleep state comprises:
    从所述计算设备的硬盘中读取所述操作系统进入休眠状态前的相关数据;Reading the relevant data before the operating system enters the hibernation state from the hard disk of the computing device;
    基于获取的所述相关数据,使得所述操作系统返回进入所述休眠状态前的工作状态。Based on the acquired relevant data, the operating system is returned to the working state before entering the sleep state.
  8. 一种计算设备的基本输入输出系统的更新方法,其特征在于,包括:A method for updating a basic input output system of a computing device, which is characterized in that it comprises:
    所述基本输入输出系统将从基本输入输出系统的更新程序获取的休眠指令,发送给所述计算设备的操作系统,所述休眠指令用于指令所述操作系统进入休眠状态;The basic input output system sends the hibernation instruction obtained from the update program of the basic input output system to the operating system of the computing device, where the hibernation instruction is used to instruct the operating system to enter a hibernation state;
    所述基本输入输出系统重启;The basic input output system restarts;
    所述基本输入输出系统获取基本输入输出系统的更新文件;The basic input output system obtains an update file of the basic input output system;
    所述基本输入输出系统基于获取的更新文件执行基本输入输出系统的更新。The basic input output system performs the update of the basic input output system based on the obtained update file.
  9. 根据权利要求8所述的更新方法,其特征在于,所述基本输入输出系统基于获取的更新文件完成基本输入输出系统的更新包括:The update method according to claim 8, wherein the completion of the update of the basic input output system by the basic input output system based on the obtained update file comprises:
    所述基本输入输出系统将所述更新文件写入所述计算设备的基本输入输出系统芯片中;The basic input output system writes the update file into the basic input output system chip of the computing device;
    所述基本输入输出系统重启所述计算设备的中央处理器,以将所述基本输入输出系统芯片中的所述更新文件加载到所述计算设备的内存中。The basic input output system restarts the central processing unit of the computing device to load the update file in the basic input output system chip into the memory of the computing device.
  10. 一种计算设备的基本输入输出系统的更新方法,其特征在于,包括:A method for updating a basic input output system of a computing device, which is characterized in that it comprises:
    所述计算设备的嵌入式控制器检测到所述计算设备的中央处理器的电源状态为休眠状态;The embedded controller of the computing device detects that the power state of the central processing unit of the computing device is a sleep state;
    所述嵌入式控制器重置所述中央处理器,以重启所述计算设备的基本输入输出系统进行基本输入输出系统的更新。The embedded controller resets the central processing unit to restart the basic input output system of the computing device to update the basic input output system.
  11. 根据权利要求10所述的方法,其特征在于,所述嵌入式控制器重置所述中央处理器包括:The method of claim 10, wherein the embedded controller resetting the central processing unit comprises:
    所述嵌入式控制器在获取到唤醒标志位的情况下,重置所述中央处理器。The embedded controller resets the central processing unit when the wake-up flag bit is acquired.
  12. 根据权利要求10或11所述的方法,其特征在于,还包括:The method according to claim 10 or 11, further comprising:
    所述嵌入式控制器检测到所述基本输入输出系统将所述基本输入输出系统的更新文件写入所述计算设备的基本输入输出系统芯片中;The embedded controller detects that the basic input output system writes the update file of the basic input output system into the basic input output system chip of the computing device;
    所述嵌入式控制器重置所述计算设备的中央处理器,以将所述更新文件写入所述计算设备的内存中。The embedded controller resets the central processing unit of the computing device to write the update file into the memory of the computing device.
  13. 一种计算设备的可读介质,其特征在于,所述可读介质上存储有指令,该指令在计算设备上执行时使所述计算设备执行权利要求1至12中任一项所述的方法。A readable medium for a computing device, characterized in that an instruction is stored on the readable medium, and when the instruction is executed on a computing device, the computing device executes the method according to any one of claims 1 to 12 .
  14. 一种计算设备,其特征在于,包括:存储器和控制器;A computing device, characterized by comprising: a memory and a controller;
    其中,所述存储器用于存储由计算设备的一个或多个控制器执行的指令;Wherein, the memory is used to store instructions executed by one or more controllers of the computing device;
    所述控制器包括中央处理器和嵌入式控制器,用于执行权利要求1至12中任一项所述的方法。The controller includes a central processing unit and an embedded controller, and is configured to execute the method according to any one of claims 1-12.
PCT/CN2021/094778 2020-05-21 2021-05-20 Computing device and bios update method therefor, and medium WO2021233363A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010436449.8A CN113703799A (en) 2020-05-21 2020-05-21 Computing device and BIOS updating method and medium thereof
CN202010436449.8 2020-05-21

Publications (1)

Publication Number Publication Date
WO2021233363A1 true WO2021233363A1 (en) 2021-11-25

Family

ID=78645839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094778 WO2021233363A1 (en) 2020-05-21 2021-05-20 Computing device and bios update method therefor, and medium

Country Status (2)

Country Link
CN (1) CN113703799A (en)
WO (1) WO2021233363A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594967A (en) * 2022-01-28 2022-06-07 浪潮(山东)计算机科技有限公司 Basic input output system updating method, device, equipment and medium
CN115562698B (en) * 2022-04-29 2023-10-20 荣耀终端有限公司 Upgrading method of Basic Input Output System (BIOS) and electronic equipment
CN115756616A (en) * 2022-11-07 2023-03-07 超聚变数字技术有限公司 Basic Input Output System (BIOS) configuration item configuration method and server
CN116185429B (en) * 2023-05-05 2023-07-07 成都市易冲半导体有限公司 Firmware upgrading method, device, receiving terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200419450A (en) * 2003-03-28 2004-10-01 Compal Electronics Inc BIOS upgrading method of embedded controller in electronic device
CN102262550A (en) * 2010-05-31 2011-11-30 仁宝电脑工业股份有限公司 Computer system and turning-on and turning-off method thereof
US20140189337A1 (en) * 2012-12-27 2014-07-03 Giga-Byte Technology Co., Ltd. Electronic device having updatable bios and bios updating method thereof
CN105808270A (en) * 2014-12-17 2016-07-27 纬创资通股份有限公司 Firmware variable updating method
CN108304223A (en) * 2017-12-22 2018-07-20 天津麒麟信息技术有限公司 A kind of operating system for power supply dormancy mechanism and hardware platform exchange method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9128729B1 (en) * 2014-09-08 2015-09-08 Quanta Computer Inc. System and method for automatically configuring bios performance profiles

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200419450A (en) * 2003-03-28 2004-10-01 Compal Electronics Inc BIOS upgrading method of embedded controller in electronic device
CN102262550A (en) * 2010-05-31 2011-11-30 仁宝电脑工业股份有限公司 Computer system and turning-on and turning-off method thereof
US20140189337A1 (en) * 2012-12-27 2014-07-03 Giga-Byte Technology Co., Ltd. Electronic device having updatable bios and bios updating method thereof
CN105808270A (en) * 2014-12-17 2016-07-27 纬创资通股份有限公司 Firmware variable updating method
CN108304223A (en) * 2017-12-22 2018-07-20 天津麒麟信息技术有限公司 A kind of operating system for power supply dormancy mechanism and hardware platform exchange method

Also Published As

Publication number Publication date
CN113703799A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
WO2021233363A1 (en) Computing device and bios update method therefor, and medium
EP2581826B1 (en) Method and device for cold starting android mobile terminal
KR101957555B1 (en) System on a chip with always-on processor
KR101702700B1 (en) Fast computer startup
US9098305B2 (en) Computer system and bootup and shutdown method thereof
US9424022B2 (en) Method for updating firmware of an electronic device within a computer
US9395919B1 (en) Memory configuration operations for a computing device
TW201502764A (en) Specialized boot path for speeding up resume from sleep state
US11550592B2 (en) Methods and apparatus to utilize non-volatile memory for computer system boot
TW201602791A (en) System on a chip with always-on processor which reconfigures SOC and supports memory-only communication mode
US10564986B2 (en) Methods and apparatus to suspend and resume computing systems
JP2009516244A (en) Direct computing experience
TW201525869A (en) System and method for dual OS memory switching
US11392318B2 (en) Electronic device and method of utilizing storage space thereof
JP2015511045A (en) Implementing a power off state on a computing device
TWI534707B (en) Computer system, shutdown and boot method thereof
US10908919B2 (en) Booting and power management by coordinating operations between processors
US20150317181A1 (en) Operating system switching method
KR101249831B1 (en) Computer system and method for booting the same
WO2020113469A1 (en) Power on self test method, power on self test device and mobile terminal
RU2815054C2 (en) Electronic device and its method for using storage space
JP7005577B2 (en) Information processing equipment and information processing method
CN116243997A (en) Chip system, starting method thereof and electronic equipment
TWI386794B (en) Electronic apparatus and power management method thereof
TW201322129A (en) Electronic device and method for switching operating systems thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21809509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21809509

Country of ref document: EP

Kind code of ref document: A1