CN114995893B - Firmware management method, flash memory, host and storage medium - Google Patents

Firmware management method, flash memory, host and storage medium Download PDF

Info

Publication number
CN114995893B
CN114995893B CN202210914594.1A CN202210914594A CN114995893B CN 114995893 B CN114995893 B CN 114995893B CN 202210914594 A CN202210914594 A CN 202210914594A CN 114995893 B CN114995893 B CN 114995893B
Authority
CN
China
Prior art keywords
firmware
flash memory
partition
configuration file
information
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
CN202210914594.1A
Other languages
Chinese (zh)
Other versions
CN114995893A (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.)
Mole Thread Intelligent Technology Beijing Co ltd
Original Assignee
Moore Threads Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Moore Threads Technology Co Ltd filed Critical Moore Threads Technology Co Ltd
Priority to CN202210914594.1A priority Critical patent/CN114995893B/en
Publication of CN114995893A publication Critical patent/CN114995893A/en
Application granted granted Critical
Publication of CN114995893B publication Critical patent/CN114995893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44589Program code verification, e.g. Java bytecode verification, proof-carrying code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to a firmware management method, a flash memory, a host, and a storage medium, the method including: acquiring an operation instruction for the firmware to be operated; determining partition information corresponding to the firmware to be operated according to the operation instruction; and executing the operation content in the operation instruction on the firmware to be operated according to the firmware information corresponding to the firmware to be operated. According to the embodiment of the disclosure, the firmware information of the firmware to be operated can be determined by the flash memory based on the partition information by acquiring the partition information corresponding to the firmware in the flash memory, so that the flash memory can be compatible with the firmware in different development environments. In addition, under the condition that the adapter comprising the flash memory is connected to the host, the host can also access the firmware to be operated through the partition information, and therefore the host can be compatible with the firmware under different development environments.

Description

固件的管理方法、闪存、主机及存储介质Firmware management method, flash memory, host and storage medium

技术领域technical field

本公开涉及计算机技术领域,尤其涉及一种固件的管理方法、闪存、主机及存储介质。The present disclosure relates to the technical field of computers, and in particular to a firmware management method, a flash memory, a host and a storage medium.

背景技术Background technique

硬件设备通常通过闪存管理其对应的各个固件,例如:基于UEFI环境开发的固件,可通过闪存上存储的OPROM(Option Read-Only Memory,可选实现的只读存储器)区域进行固件信息的访问。而随着硬件设备的不断发展,硬件设备通常需要加载多种固件,故如何更好地管理固件是本领域技术人员亟需解决的技术问题。Hardware devices usually manage their corresponding firmware through flash memory. For example, firmware developed based on UEFI environment can access firmware information through the OPROM (Option Read-Only Memory) area stored on the flash memory. With the continuous development of hardware devices, hardware devices usually need to load multiple firmwares, so how to better manage firmware is a technical problem urgently needed to be solved by those skilled in the art.

发明内容Contents of the invention

本公开提出了一种固件的管理技术方案。The present disclosure proposes a firmware management technical solution.

根据本公开的一方面,提供了一种固件的管理方法,应用于闪存,所述管理方法包括:获取针对待操作固件的操作指令;根据所述操作指令,确定所述待操作固件对应的分区信息;其中,所述分区信息包括:所述待操作固件以及所述待操作固件对应的固件信息;根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。According to one aspect of the present disclosure, a firmware management method is provided, which is applied to flash memory, and the management method includes: acquiring an operation instruction for the firmware to be operated; and determining a partition corresponding to the firmware to be operated according to the operation instruction information; wherein, the partition information includes: the firmware to be operated and the firmware information corresponding to the firmware to be operated; according to the firmware information corresponding to the firmware to be operated, execute the operation instruction on the firmware to be operated Action content.

在一种可能的实施方式中,所述管理方法还包括:响应于主机发送的、打包后的配置文件,对所述打包后的配置文件进行解析,得到每个固件对应的分区信息;保存所述每个固件对应的分区信息。In a possible implementation manner, the management method further includes: responding to the packaged configuration file sent by the host, parsing the packaged configuration file to obtain partition information corresponding to each firmware; saving the Describe the partition information corresponding to each firmware.

在一种可能的实施方式中,所述对所述打包后的配置文件进行解析,得到每个固件对应的分区信息,包括:对所述打包后的配置文件进行解析,得到每个固件对应的分区信息、对应的分区闪存地址;其中,所述分区闪存地址用以确定所述分区信息在闪存中的保存位置;所述保存所述每个固件对应的分区信息,包括:将所述每个固件对应的分区信息保存至所述闪存的所述分区闪存地址中。In a possible implementation manner, the parsing the packaged configuration file to obtain the partition information corresponding to each firmware includes: parsing the packaged configuration file to obtain the partition information corresponding to each firmware Partition information, corresponding partition flash memory address; wherein, the partition flash memory address is used to determine the storage location of the partition information in the flash memory; the storage of the partition information corresponding to each firmware includes: storing each The partition information corresponding to the firmware is stored in the partition flash memory address of the flash memory.

根据本公开的一方面,提供了一种固件的管理方法,应用于主机,所述主机与闪存相连,所述管理方法包括:根据每个固件对应的初始固件信息,生成或更新配置文件;其中,所述初始固件信息用以表示所述每个固件在初始开发环境下的固件信息;对所述配置文件进行打包处理,将打包后的配置文件发送至所述闪存。According to one aspect of the present disclosure, a firmware management method is provided, which is applied to a host connected to a flash memory, and the management method includes: generating or updating a configuration file according to initial firmware information corresponding to each firmware; wherein , the initial firmware information is used to represent the firmware information of each firmware in the initial development environment; the configuration file is packaged, and the packaged configuration file is sent to the flash memory.

在一种可能的实施方式中,所述根据每个固件对应的初始固件信息,生成或更新配置文件,包括:对每个固件进行签名,生成所述每个固件对应的签名文件;根据所述每个固件对应的初始固件信息、所述每个固件对应的签名文件,生成或更新配置文件。In a possible implementation manner, the generating or updating the configuration file according to the initial firmware information corresponding to each firmware includes: signing each firmware, and generating a signature file corresponding to each firmware; according to the The initial firmware information corresponding to each firmware, the signature file corresponding to each firmware, and the configuration file is generated or updated.

在一种可能的实施方式中,所述根据每个固件对应的初始固件信息,生成或更新配置文件,包括:确定所述每个固件对应的分区闪存地址;所述分区闪存地址用以确定所述每个固件加载于所述闪存中的位置;根据所述每个固件对应的初始固件信息、所述每个固件对应的分区闪存地址,生成或更新配置文件。In a possible implementation manner, the generating or updating the configuration file according to the initial firmware information corresponding to each firmware includes: determining the partition flash memory address corresponding to each firmware; the partition flash memory address is used to determine the The location where each firmware is loaded in the flash memory; according to the initial firmware information corresponding to each firmware and the partition flash memory address corresponding to each firmware, a configuration file is generated or updated.

在一种可能的实施方式中,所述管理方法还包括:根据所述配置文件,生成针对待操作固件的操作指令;其中,所述操作指令用以更新所述待操作固件在闪存中的分区信息;发送所述操作指令至所述闪存;响应于所述闪存发送的固件更新信息,生成与所述固件更新信息对应的提示信息。In a possible implementation manner, the management method further includes: generating an operation instruction for the firmware to be operated according to the configuration file; wherein the operation instruction is used to update the partition of the firmware to be operated in the flash memory information; sending the operation instruction to the flash memory; generating prompt information corresponding to the firmware update information in response to the firmware update information sent by the flash memory.

根据本公开的一方面,提供了一种闪存,所述闪存包括:操作指令获取模块,用以获取针对待操作固件的操作指令;分区信息确定模块,用以根据所述操作指令,确定所述待操作固件对应的分区信息;其中,所述分区信息包括:所述待操作固件以及所述待操作固件对应的固件信息;操作指令执行模块,用以根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。According to an aspect of the present disclosure, there is provided a flash memory, the flash memory includes: an operation instruction acquisition module, used to acquire an operation instruction for the firmware to be operated; a partition information determination module, used to determine the Partition information corresponding to the firmware to be operated; wherein, the partition information includes: the firmware to be operated and firmware information corresponding to the firmware to be operated; the operation instruction execution module is used to, according to the firmware information corresponding to the firmware to be operated, Execute the operation content in the operation instruction on the firmware to be operated.

根据本公开的一方面,提供了一种主机,所述主机与所述闪存相连,所述主机还包括:配置文件更新模块,用以根据每个固件对应的初始固件信息,生成或更新配置文件;其中,所述初始固件信息用以表示所述每个固件在初始开发环境下的固件信息;配置文件发送模块,用以对所述配置文件进行打包处理,将打包后的配置文件发送至所述闪存。According to an aspect of the present disclosure, a host is provided, the host is connected to the flash memory, and the host further includes: a configuration file update module, configured to generate or update a configuration file according to initial firmware information corresponding to each firmware ; Wherein, the initial firmware information is used to represent the firmware information of each firmware in the initial development environment; the configuration file sending module is used to package the configuration file, and send the packaged configuration file to the described flash memory.

根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述管理方法。According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the above-mentioned management method is implemented when the computer program instructions are executed by a processor.

在本公开实施例中,可获取针对待操作固件的操作指令,而后根据所述操作指令,确定所述待操作固件对应的分区信息,最终根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。本公开实施例可通过获取闪存中固件对应的分区信息的方式,使得闪存可基于该分区信息,确定待操作固件的固件信息,进而实现了闪存可兼容不同开发环境的固件。此外,在包括有上述闪存的适配器连接至主机的情况下,主机也可通过上述分区信息访问待操作固件,进而实现了主机可兼容不同开发环境下的固件。In the embodiment of the present disclosure, the operation instruction for the firmware to be operated can be obtained, and then according to the operation instruction, the partition information corresponding to the firmware to be operated is determined, and finally the firmware information corresponding to the firmware to be operated is determined for the The firmware to be operated executes the operation content in the operation instruction. In the embodiments of the present disclosure, by obtaining the partition information corresponding to the firmware in the flash memory, the flash memory can determine the firmware information of the firmware to be operated based on the partition information, thereby realizing that the flash memory is compatible with firmware in different development environments. In addition, when the adapter including the above-mentioned flash memory is connected to the host, the host can also access the firmware to be operated through the above-mentioned partition information, thereby realizing that the host is compatible with firmware in different development environments.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure.

图1示出了根据本公开实施例提供的固件的管理方法的流程图。Fig. 1 shows a flowchart of a firmware management method provided according to an embodiment of the present disclosure.

图2示出了根据本公开实施例提供的固件的管理方法的流程图。Fig. 2 shows a flowchart of a firmware management method provided according to an embodiment of the present disclosure.

图3示出了根据本公开实施例提供的闪存的框图。FIG. 3 shows a block diagram of a flash memory provided according to an embodiment of the present disclosure.

图4示出了根据本公开实施例提供的主机的框图。Fig. 4 shows a block diagram of a host provided according to an embodiment of the present disclosure.

图5示出了根据本公开实施例提供的一种电子设备800的框图。Fig. 5 shows a block diagram of an electronic device 800 provided according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.

另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present disclosure may be practiced without some of the specific details. In some instances, methods, means, components and circuits that are well known to those skilled in the art have not been described in detail so as to obscure the gist of the present disclosure.

相关技术中,大多数的固件通常为基于UEFI(Unified Extensible FirmwareInterface,统一可扩展固件接口)环境的OPROM(Option Read-Only Memory,可选实现的只读存储器),其基于EDKII(一种UEFI的开发软件包)的生态,主板中的SBIOS(System BasicInput Output System,系统级基本输入输出系统)在识别到与之连接的外接设备后,可通过SBIOS提供的接口对固件进行基于PCIE(Peripheral Component InterconnectExpress,一种高速串行计算机扩展总线标准)的各项操作。但是对于不同应用领域、不同开发环境的固件,主板通常无法对其兼容,例如:基于Boot Loader(启动加载器)、RTOS(Real-Time Operating System,实时操作系统)等环境开发的固件对同一主板的兼容性较差。In related technologies, most firmware is usually OPROM (Option Read-Only Memory, optional read-only memory) based on UEFI (Unified Extensible Firmware Interface, Unified Extensible Firmware Interface) environment, which is based on EDKII (a UEFI development software package), the SBIOS (System Basic Input Output System, system-level basic input and output system) in the motherboard can perform PCIE (Peripheral Component Interconnect Express , a high-speed serial computer expansion bus standard). However, for firmware in different application fields and different development environments, the motherboard is usually not compatible with it, for example: firmware developed based on Boot Loader (boot loader), RTOS (Real-Time Operating System, real-time operating system) The compatibility is poor.

有鉴于此,本公开实施例提供了一种固件的管理方法,可获取针对待操作固件的操作指令,而后根据所述操作指令,确定所述待操作固件对应的分区信息,最终根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。本公开实施例可通过获取闪存中固件对应的分区信息的方式,使得闪存可基于该分区信息,确定待操作固件的固件信息,进而实现了闪存可兼容不同开发环境的固件。此外,在包括有上述闪存的适配器连接至主机的情况下,主机也可通过上述分区信息访问待操作固件,进而实现了主机可兼容不同开发环境下的固件。In view of this, the embodiment of the present disclosure provides a firmware management method, which can obtain the operation instructions for the firmware to be operated, and then determine the partition information corresponding to the firmware to be operated according to the operation instructions, and finally according to the operation instructions Operate the firmware information corresponding to the firmware, and execute the operation content in the operation instruction on the firmware to be operated. In the embodiments of the present disclosure, by obtaining the partition information corresponding to the firmware in the flash memory, the flash memory can determine the firmware information of the firmware to be operated based on the partition information, thereby realizing that the flash memory is compatible with firmware in different development environments. In addition, when the adapter including the above-mentioned flash memory is connected to the host, the host can also access the firmware to be operated through the above-mentioned partition information, thereby realizing that the host is compatible with firmware in different development environments.

参阅图1所示,图1示出了本公开实施例提供的固件的管理方法的流程图,如图1所示,上述管理方法可应用于闪存,示例性地,上述闪存可包括MTD(Memory TechnologyDevice,内存技术设备,又称存储技术设备等,以下简称MTD)、非易失性闪存(例如:Nandflash、Nor flash)等。本公开实施例在此不作限制。上述管理方法包括:Referring to FIG. 1, FIG. 1 shows a flowchart of a firmware management method provided by an embodiment of the present disclosure. As shown in FIG. 1, the above-mentioned management method can be applied to flash memory. Technology Device, memory technology device, also known as storage technology device, hereinafter referred to as MTD), non-volatile flash memory (for example: Nandflash, Nor flash), etc. Embodiments of the present disclosure are not limited here. The management methods mentioned above include:

步骤S100,获取针对待操作固件的操作指令。示例性地,该操作指令可为任意一种可对固件进行操作的指令,具体的指令内容可参考相关技术中固件可执行的操作内容,例如:针对固件的升级、降级、检测、禁用等操作,本公开实施例在此不作赘述。在一个示例中,上述操作指令可包括待操作固件的唯一编号,以使闪存确定所有固件中的待操作固件。Step S100, acquiring an operation instruction for the firmware to be operated. Exemplarily, the operation instruction can be any instruction that can operate on the firmware. For specific instruction content, please refer to the operation content that can be executed by firmware in related technologies, such as: upgrade, downgrade, detect, disable and other operations for firmware , the embodiments of the present disclosure will not be described in detail here. In one example, the above operation instruction may include a unique serial number of the firmware to be operated, so that the flash memory determines the firmware to be operated among all the firmware.

步骤S200,根据所述操作指令,确定所述待操作固件对应的分区信息。其中,所述分区信息包括:所述待操作固件以及所述待操作固件对应的固件信息。示例性地,该闪存中可保存有每个固件对应的分区信息,即每个固件可运行在上述闪存中,且该闪存可基于上述分区信息确定每个固件的固件信息,以实现不同开发环境的固件的统一管理。上述固件信息可参考相关技术,例如,上述固件信息可包括:唯一编号、版本信息、签名文件等,本公开实施例在此不作限制。Step S200, according to the operation instruction, determine partition information corresponding to the firmware to be operated. Wherein, the partition information includes: the firmware to be operated and firmware information corresponding to the firmware to be operated. Exemplarily, partition information corresponding to each firmware can be stored in the flash memory, that is, each firmware can run in the above-mentioned flash memory, and the flash memory can determine the firmware information of each firmware based on the above-mentioned partition information, so as to realize different development environments Unified management of firmware. For the above firmware information, reference may be made to related technologies. For example, the above firmware information may include: a unique number, version information, signature file, etc., which are not limited in this embodiment of the present disclosure.

步骤S300,根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。示例性地,上述固件信息用以提供上述操作内容的参数支持,例如:若操作内容为固件的纠错恢复,则闪存可将待操作固件的版本降级为固件信息中的回滚版本。再例如:若操作内容为固件的升级,则闪存可根据固件信息中的当前版本信息、预升级的版本信息,确定待操作固件的补丁包。Step S300, according to the firmware information corresponding to the firmware to be operated, execute the operation content in the operation instruction on the firmware to be operated. Exemplarily, the above-mentioned firmware information is used to provide parameter support for the above-mentioned operation content. For example, if the operation content is error correction and recovery of firmware, the flash memory can downgrade the version of the firmware to be operated to the rolled-back version in the firmware information. Another example: if the operation content is firmware upgrade, the flash memory can determine the patch package of the firmware to be operated according to the current version information and the pre-upgrade version information in the firmware information.

在一种可能的实施方式中,上述管理方法还包括:响应于主机发送的、打包后的配置文件,对所述打包后的配置文件进行解析,得到每个固件对应的分区信息;而后保存所述每个固件对应的分区信息。示例性地,上述配置文件可为任意一种文件格式的、经由相关技术中对应的打包工具处理后可供闪存读取并可将其记录的固件信息加载至闪存中的文件,例如:上述配置文件可为JSON文件,上述JSON文件可由相关技术中对应的打包工具打包后,由打包工具将其记录的固件信息配置到闪存中,开发人员可根据实际场景下闪存所支持读取的文件格式对配置文件的文件格式进行灵活设置,本公开实施例在此不作限制。示例性地,闪存可将配置文件中的固件信息加载至闪存中为其预留的空间里,并在该空间中运行该固件,以使闪存可确定每个固件的固件信息、运行情况等,进而在后续闪存接收到针对待操作固件的操作指令后,可对待操作固件进行相应的操作。结合实际应用场景,开发人员可对配置文件进行修改,并将修改后的配置文件经相关技术中的打包工具打包后,发送至闪存,闪存即可对其进行保存,以形成开发阶段的闪存固件配置。例如:上述闪存可配置于适配器中,即闪存用以保存适配器中各个硬件对应的固件信息。示例性地,上述配置文件可对用户侧可见,用户侧可根据主机的实际运行情况对配置文件中的固件信息进行更改,以提高固件设置的自由程度。而后在用户侧提交了针对配置文件的修改后,闪存即可根据修改后的配置文件,更新闪存中对应的分区信息,进而实现了用户侧对固件信息的更新。对于用户侧而言,本公开实施例提供了配置文件以供用户查阅固件信息(例如,可通过可视化界面显示),而用户侧本身不必关心固件的排布、生成以及加载方式,易于用户侧的固件管理。对于开发侧而言,本公开实施例支持开发侧将固件、固件信息配置进配置文件中即可使得闪存对多固件进行集中管理,进而也易于开发侧的固件管理。In a possible implementation manner, the above management method further includes: responding to the packaged configuration file sent by the host, parsing the packaged configuration file to obtain the partition information corresponding to each firmware; and then saving the Describe the partition information corresponding to each firmware. Exemplarily, the above-mentioned configuration file can be any file format, which can be read by the flash memory after being processed by the corresponding packaging tool in the related art and can load the recorded firmware information into the flash memory, for example: the above-mentioned configuration The file can be a JSON file. The above-mentioned JSON file can be packaged by the corresponding packaging tool in related technologies, and the firmware information recorded by the packaging tool will be configured into the flash memory. The file format of the configuration file can be set flexibly, which is not limited in this embodiment of the present disclosure. Exemplarily, the flash memory can load the firmware information in the configuration file into the space reserved for it in the flash memory, and run the firmware in this space, so that the flash memory can determine the firmware information, running conditions, etc. of each firmware, Furthermore, after the subsequent flash memory receives an operation instruction for the firmware to be operated, corresponding operations can be performed on the firmware to be operated. Combined with the actual application scenario, developers can modify the configuration file, and after the modified configuration file is packaged by the packaging tool in the related technology, it is sent to the flash memory, and the flash memory can save it to form the flash memory firmware in the development stage configuration. For example, the above-mentioned flash memory can be configured in the adapter, that is, the flash memory is used to store firmware information corresponding to each hardware in the adapter. Exemplarily, the above-mentioned configuration file can be visible to the user side, and the user side can modify the firmware information in the configuration file according to the actual running conditions of the host computer, so as to improve the freedom of firmware setting. After the modification of the configuration file is submitted on the user side, the flash memory can update the corresponding partition information in the flash memory according to the modified configuration file, thereby realizing the update of the firmware information on the user side. For the user side, the embodiment of the present disclosure provides a configuration file for the user to check the firmware information (for example, it can be displayed through a visual interface), and the user side itself does not need to care about the arrangement, generation and loading of the firmware, which is easy for the user side. Firmware management. For the development side, the embodiments of the present disclosure support the development side to configure firmware and firmware information into the configuration file, so that the flash memory can centrally manage multiple firmwares, and the firmware management on the development side is also facilitated.

在一种可能的实施方式中,所述对所述打包后的配置文件进行解析,得到每个固件对应的分区信息,包括:对所述打包后的配置文件进行解析,得到每个固件对应的分区信息、对应的分区闪存地址;其中,所述分区闪存地址用以确定所述分区信息在闪存中的保存位置。在此情况下,所述保存所述每个固件对应的分区信息,包括:将所述每个固件对应的分区信息保存至所述闪存的所述分区闪存地址中。示例性地,上述分区闪存地址可根据每个固件对应的固件信息的大小进行自动分配,也可设定一个固定的闪存大小以供分区信息的存储,也可由人工进行设定,本公开实施例在此不作限制。在一个示例中,厂商可在配置文件中手动设定每个固件对应的分区闪存地址,例如,可通过配置文件中分区闪存地址对应的字段,为每个固件的分区信息设定不同的位置,以使不同的固件对应的分区信息均可在闪存中查询到。上述对分区闪存地址的配置流程可在主机中执行,后文将予以详述。In a possible implementation manner, the parsing the packaged configuration file to obtain the partition information corresponding to each firmware includes: parsing the packaged configuration file to obtain the partition information corresponding to each firmware Partition information, corresponding partition flash memory address; wherein, the partition flash memory address is used to determine the storage location of the partition information in the flash memory. In this case, the saving the partition information corresponding to each firmware includes: saving the partition information corresponding to each firmware to the partition flash memory address of the flash memory. Exemplarily, the address of the above-mentioned partition flash memory can be automatically allocated according to the size of the firmware information corresponding to each firmware, or a fixed flash memory size can be set for storage of partition information, or it can be set manually. The embodiment of the present disclosure No limitation is imposed here. In one example, the manufacturer can manually set the partition flash memory address corresponding to each firmware in the configuration file. For example, through the field corresponding to the partition flash memory address in the configuration file, a different location can be set for the partition information of each firmware. So that the partition information corresponding to different firmware can be queried in the flash memory. The above process of configuring the address of the partitioned flash memory can be executed in the host, which will be described in detail later.

本公开实施例提供的管理方法,可应用于闪存,通过使用分区信息的方式,使得闪存可管理多种开发环境下的固件,提升了闪存对于固件的兼容性,有利于多种开发环境下的固件的发展。The management method provided by the embodiments of the present disclosure can be applied to flash memory. By using partition information, flash memory can manage firmware in various development environments, which improves the compatibility of flash memory with firmware and is beneficial to development in various development environments. Firmware development.

参阅图2所示,图2示出了本公开实施例提供的固件的管理方法的流程图,如图2所示,上述管理方法可应用于主机,示例性地,上述主机可为任意一种可连接上述闪存的主板或搭载有该主板的电子设备。上述闪存可内置于相对于主机的外接设备(例如:任意一种适配器)中,用以管理外接设备中硬件对应的固件信息。上述闪存也可直接连接至主机,用以管理主机中硬件对应的固件信息,本公开实施例在此不作限制。例如:闪存可内置于显卡、网卡等适配器中。在此情况下,上述主机可包括外接设备接口,即闪存可通过适配器的接口与主机进行交互。如图2所示,上述管理方法包括:Referring to FIG. 2, FIG. 2 shows a flowchart of a firmware management method provided by an embodiment of the present disclosure. As shown in FIG. 2, the above-mentioned management method can be applied to a host, for example, the above-mentioned host can be any A motherboard to which the above-mentioned flash memory can be connected or an electronic device equipped with the motherboard. The above-mentioned flash memory can be built into an external device relative to the host (for example: any kind of adapter) to manage firmware information corresponding to the hardware in the external device. The above-mentioned flash memory may also be directly connected to the host to manage firmware information corresponding to the hardware in the host, which is not limited in this embodiment of the present disclosure. For example: flash memory can be built into adapters such as graphics cards and network cards. In this case, the above-mentioned host may include an external device interface, that is, the flash memory may interact with the host through the interface of the adapter. As shown in Figure 2, the above management methods include:

步骤S500,根据每个固件对应的初始固件信息,生成或更新配置文件。其中,所述初始固件信息用以表示所述每个固件在初始开发环境下的固件信息。上述初始开发环境可为任意一种固件的开发环境,例如上文所提及的UEFI、Boot Loader、RTOS等。示例性地,上述配置文件也可预设一个固定的格式,该固定的格式可包括固定的配置字段类型(或称代表固件信息类型的字段),若主机检测到初始固件信息中的配置字段与配置文件中的配置字段相同,则也可自动地直接将初始固件信息中配置字段的值赋值给配置文件中的配置字段,以更新配置文件中配置字段的值。在一个示例中,开发人员也可手动建立上述配置文件,即开发人员可将初始固件信息中的各个配置字段的值,手动填入上述配置文件中。本公开实施例在此不作限制。示例性地,上述配置文件可包括在各自开发环境下生成的固件的大小、固件信息在闪存中的位置、各个固件的固件信息等,本公开实施例在此不作限制。Step S500, generating or updating a configuration file according to initial firmware information corresponding to each firmware. Wherein, the initial firmware information is used to represent the firmware information of each firmware in the initial development environment. The aforementioned initial development environment may be any firmware development environment, such as UEFI, Boot Loader, RTOS, etc. mentioned above. Exemplarily, the above-mentioned configuration file may also preset a fixed format, and the fixed format may include a fixed configuration field type (or a field representing a type of firmware information), if the host detects that the configuration field in the initial firmware information is consistent with If the configuration fields in the configuration file are the same, the value of the configuration field in the initial firmware information can also be automatically and directly assigned to the configuration field in the configuration file, so as to update the value of the configuration field in the configuration file. In an example, the developer may also manually create the configuration file, that is, the developer may manually fill in the configuration file with the values of each configuration field in the initial firmware information. Embodiments of the present disclosure are not limited here. Exemplarily, the above configuration files may include the size of firmware generated in respective development environments, the location of firmware information in the flash memory, firmware information of each firmware, etc., which are not limited in this embodiment of the present disclosure.

在一种可能的实施方式中,上述初始固件信息可对应签名文件。上述签名文件可用于闪存、配置有该闪存的适配器、连接有该闪存的主机出厂后,在用户使用时,确定固件是否被恶意篡改,以增加固件的安全性。In a possible implementation manner, the above initial firmware information may correspond to a signature file. The above-mentioned signature file can be used to determine whether the firmware has been maliciously tampered with after the flash memory, the adapter configured with the flash memory, and the host connected to the flash memory leave the factory, so as to increase the security of the firmware.

在此基础上,步骤S500可包括:对每个固件进行签名,生成所述每个固件对应的签名文件。而后根据所述每个固件对应的初始固件信息、所述每个固件对应的签名文件,生成或更新配置文件。在相关技术中,厂商受制于适配器中闪存、主机中闪存对于固件开发环境的低兼容性,厂商通常只能够使用特定的某一种签名方案,即对于固件的安全管理方式过于单一,不利于固件的升降级管理,也不利于厂商对其的配置,例如,厂商通常只能够基于PKCS(Public Key Cryptography Standards,公钥加密标准)对固件进行加密。而在本公开实施例中,由于在配置文件中可保存签名文件这一字段,故本公开实施例提供的固件管理方法可兼容对不同的固件采用相同的加密标准,也可兼容对不同的固件采用不同的加密标准,本公开实施例在此不作限制。例如:厂商可用私钥对不同开发环境下的固件进行签名,以生成签名文件,而后将签名文件保存至上述配置文件中,并经打包发送至闪存中,以供后续与该闪存连接的主板或主机校验。此外,上述配置文件还可设定为开发侧或用户侧可见,以便于固件的管理。On this basis, step S500 may include: signing each firmware, and generating a signature file corresponding to each firmware. Then generate or update the configuration file according to the initial firmware information corresponding to each firmware and the signature file corresponding to each firmware. In related technologies, manufacturers are limited by the low compatibility of the flash memory in the adapter and the flash memory in the host with the firmware development environment. Usually, manufacturers can only use a specific signature scheme, that is, the security management method for firmware is too single, which is not conducive to firmware development. It is also not conducive to the manufacturer's configuration. For example, the manufacturer can only encrypt the firmware based on PKCS (Public Key Cryptography Standards, public key encryption standard). In the embodiment of the present disclosure, since the signature file field can be saved in the configuration file, the firmware management method provided by the embodiment of the present disclosure can be compatible with using the same encryption standard for different firmware, and can also be compatible with different firmware Different encryption standards are used, which are not limited in the embodiments of the present disclosure. For example: Manufacturers can use private keys to sign firmware under different development environments to generate signature files, then save the signature files to the above configuration files, and send them to the flash memory after being packaged for subsequent motherboards or Host verification. In addition, the above-mentioned configuration files can also be set to be visible on the development side or the user side, so as to facilitate firmware management.

在一种可能的实施方式中,步骤S500可包括:确定所述每个固件对应的分区闪存地址。所述分区闪存地址用以确定所述每个固件加载于所述闪存中的位置。而后根据所述每个固件对应的初始固件信息、所述每个固件对应的分区闪存地址,生成或更新配置文件。示例性地,上述分区闪存地址可根据每个固件对应的固件信息的大小进行自动分配,也可设定一个固定的闪存大小以供分区信息的存储,也可由人工进行设定,本公开实施例在此不作限制。在一个示例中,厂商可在配置文件中手动设定每个固件对应的分区闪存地址,例如,可通过对应的字段,为每个固件的分区信息设定不同的位置,以使不同的固件对应的分区信息均可在闪存中查询到。示例性地,上述配置文件可对用户侧、开发侧可见,即用户侧或开发侧可在使用主机时,通过上述配置文件,对固件的各类固件信息进行调整,例如:可在主机上设置一个基于上述配置文件设定的操作界面,以使上述配置文件中的各类固件信息可显性地供用户侧或开发侧查阅,而用户侧或开发侧在该操作界面上调整的固件信息也会对应更新至上述配置文件,而后闪存即可将该配置文件中的固件信息加载至闪存中,即实现了主机对闪存中不同固件的集中管理。In a possible implementation manner, step S500 may include: determining a partition flash memory address corresponding to each firmware. The address of the partition flash memory is used to determine the location where each firmware is loaded in the flash memory. Then generate or update the configuration file according to the initial firmware information corresponding to each firmware and the partition flash memory address corresponding to each firmware. Exemplarily, the address of the above-mentioned partition flash memory can be automatically allocated according to the size of the firmware information corresponding to each firmware, or a fixed flash memory size can be set for storage of partition information, or it can be set manually. The embodiment of the present disclosure No limitation is imposed here. In one example, the manufacturer can manually set the partition flash address corresponding to each firmware in the configuration file. For example, through the corresponding fields, different locations can be set for the partition information of each firmware, so that different firmware corresponds to All partition information can be queried in the flash memory. Exemplarily, the above-mentioned configuration file can be visible to the user side and the development side, that is, the user side or the development side can adjust various firmware information of the firmware through the above-mentioned configuration file when using the host computer, for example: it can be set on the host computer An operation interface set based on the above-mentioned configuration file, so that various firmware information in the above-mentioned configuration file can be explicitly consulted by the user side or the development side, and the firmware information adjusted by the user side or the development side on the operation interface is also It will be updated to the above configuration file accordingly, and then the flash memory can load the firmware information in the configuration file to the flash memory, which realizes the centralized management of different firmware in the flash memory by the host.

继续参阅图2,步骤S600,对所述配置文件进行打包处理,将打包后的配置文件发送至所述闪存。示例性地,主机可通过相关技术中的打包工具对配置文件进行打包处理,本公开实施例在此不作赘述,打包工具能够兼容配置文件的文件格式即可。Continue to refer to FIG. 2, step S600, package the configuration file, and send the packaged configuration file to the flash memory. Exemplarily, the host may package the configuration file through a packaging tool in the related art, which will not be described in detail in this embodiment of the present disclosure, as long as the packaging tool is compatible with the file format of the configuration file.

在一种可能的实施方式中,所述管理方法还包括:根据所述配置文件,生成针对待操作固件的操作指令。其中,所述操作指令用以更新所述待操作固件在闪存中的分区信息。示例性地,上述操作指令可为任意一种可对固件进行操作的指令,具体的指令内容可参考相关技术中固件可执行的操作内容,例如:针对固件的升级、降级、检测、禁用等操作,本公开实施例在此不作赘述。在一个示例中,上述操作指令可包括待操作固件的唯一编号,以使该操作指令发送至闪存后,闪存可更新所有固件中的待操作固件。示例性地,主机可根据上述配置文件调用对应的不同开发环境下的固件的操作接口,以实现主机对于不同开发环境下的固件的兼容。而后发送所述操作指令至所述闪存。最终响应于所述闪存发送的固件更新信息,生成与所述固件更新信息对应的提示信息。示例性地,上述固件更新信息可包括:更新成功信息、更新失败信息等,以使主机可将固件的更新结果可视化地转换为提示信息,以供用户查阅。示例性地,上述提示信息可为声音提示或文字提示,能够表现出固件的更新结果即可,本公开实施例在此不作限制。结合实际应用场景,上述步骤可应用于用户侧使用阶段,即用户可通过主机中可视化的管理界面,对闪存中的固件进行管理,上述管理界面可根据配置文件确定与闪存的操作接口,以使操作指令可在闪存中被正确执行,进而实现了用户侧对于闪存中固件的便捷管理。In a possible implementation manner, the management method further includes: generating an operation instruction for the firmware to be operated according to the configuration file. Wherein, the operation instruction is used to update the partition information of the firmware to be operated in the flash memory. Exemplarily, the above operation instructions can be any instruction that can operate on firmware. For specific instruction content, please refer to the operation content that firmware can perform in related technologies, such as: upgrade, downgrade, detect, disable and other operations for firmware , the embodiments of the present disclosure will not be described in detail here. In one example, the operation instruction may include a unique serial number of the firmware to be operated, so that after the operation instruction is sent to the flash memory, the flash memory may update the firmware to be operated among all the firmware. Exemplarily, the host can call corresponding operation interfaces of firmware in different development environments according to the above configuration files, so as to realize compatibility of the host with firmware in different development environments. Then send the operation instruction to the flash memory. Finally, in response to the firmware update information sent by the flash memory, prompt information corresponding to the firmware update information is generated. Exemplarily, the above firmware update information may include: update success information, update failure information, etc., so that the host can visually convert the firmware update result into prompt information for the user to review. Exemplarily, the above-mentioned prompt information may be a voice prompt or a text prompt, and it only needs to be able to show the update result of the firmware, which is not limited in this embodiment of the present disclosure. Combined with actual application scenarios, the above steps can be applied to the user-side use stage, that is, the user can manage the firmware in the flash memory through the visualized management interface in the host, and the above-mentioned management interface can determine the operation interface with the flash memory according to the configuration file, so that The operation instructions can be correctly executed in the flash memory, thereby realizing the convenient management of the firmware in the flash memory at the user side.

本公开实施例提供的管理方法,可应用于主机,通过使用配置文件的方式,使得每个固件的固件信息可经由用户侧、开发侧根据实际的运行环境进行更改,进而提升了不同固件的实际处理效果。The management method provided by the embodiments of the present disclosure can be applied to the host computer. By using the configuration file, the firmware information of each firmware can be changed according to the actual operating environment through the user side and the development side, thereby improving the actual performance of different firmware. processing effect.

可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in this disclosure can all be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, this disclosure will not repeat them. Those skilled in the art can understand that, in the above method in the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.

图3示出了根据本公开实施例提供的闪存的框图,如图3所示,所述闪存100包括:操作指令获取模块110,用以获取针对待操作固件的操作指令;分区信息确定模块120,用以根据所述操作指令,确定所述待操作固件对应的分区信息;其中,所述分区信息包括:所述待操作固件以及所述待操作固件对应的固件信息;操作指令执行模块130,用以根据所述待操作固件对应的固件信息,对所述待操作固件执行所述操作指令中的操作内容。FIG. 3 shows a block diagram of a flash memory provided according to an embodiment of the present disclosure. As shown in FIG. 3 , the flash memory 100 includes: an operation instruction acquisition module 110 for obtaining an operation instruction for the firmware to be operated; a partition information determination module 120 , used to determine partition information corresponding to the firmware to be operated according to the operation instruction; wherein, the partition information includes: the firmware to be operated and firmware information corresponding to the firmware to be operated; the operation instruction execution module 130, It is used for executing the operation content in the operation instruction on the firmware to be operated according to the firmware information corresponding to the firmware to be operated.

在一种可能的实施方式中,所述闪存还包括:分区信息处理模块,用以执行以下任意一项:响应于主机发送的、打包后的配置文件,对所述打包后的配置文件进行解析,得到每个固件对应的分区信息;保存所述每个固件对应的分区信息。In a possible implementation manner, the flash memory further includes: a partition information processing module, configured to perform any of the following: responding to the packaged configuration file sent by the host, parsing the packaged configuration file , obtain the partition information corresponding to each firmware; save the partition information corresponding to each firmware.

在一种可能的实施方式中,所述对所述打包后的配置文件进行解析,得到每个固件对应的分区信息,包括:对所述打包后的配置文件进行解析,得到每个固件对应的分区信息、对应的分区闪存地址;其中,所述分区闪存地址用以确定所述分区信息在闪存中的保存位置;所述保存所述每个固件对应的分区信息,包括:将所述每个固件对应的分区信息保存至所述闪存的所述分区闪存地址中。In a possible implementation manner, the parsing the packaged configuration file to obtain the partition information corresponding to each firmware includes: parsing the packaged configuration file to obtain the partition information corresponding to each firmware Partition information, corresponding partition flash memory address; wherein, the partition flash memory address is used to determine the storage location of the partition information in the flash memory; the storage of the partition information corresponding to each firmware includes: storing each The partition information corresponding to the firmware is stored in the partition flash memory address of the flash memory.

图4示出了根据本公开实施例提供的主机的框图,如图4所示,所述主机与所述闪存相连,所述主机200包括:配置文件更新模块210,用以根据每个固件对应的初始固件信息,生成或更新配置文件;其中,所述初始固件信息用以表示所述每个固件在初始开发环境下的固件信息;配置文件发送模块220,用以对所述配置文件进行打包处理,将打包后的配置文件发送至所述闪存。FIG. 4 shows a block diagram of a host provided according to an embodiment of the present disclosure. As shown in FIG. 4 , the host is connected to the flash memory, and the host 200 includes: a configuration file update module 210 configured to correspond to each firmware The initial firmware information, generate or update the configuration file; Wherein, the initial firmware information is used to represent the firmware information of each firmware in the initial development environment; The configuration file sending module 220 is used to package the configuration file processing, sending the packaged configuration file to the flash memory.

在一种可能的实施方式中,所述根据每个固件对应的初始固件信息,生成或更新配置文件,包括:对每个固件进行签名,生成所述每个固件对应的签名文件;根据所述每个固件对应的初始固件信息、所述每个固件对应的签名文件,生成或更新配置文件。In a possible implementation manner, the generating or updating the configuration file according to the initial firmware information corresponding to each firmware includes: signing each firmware, and generating a signature file corresponding to each firmware; according to the The initial firmware information corresponding to each firmware, the signature file corresponding to each firmware, and the configuration file is generated or updated.

在一种可能的实施方式中,所述根据每个固件对应的初始固件信息,生成或更新配置文件,包括:确定所述每个固件对应的分区闪存地址;所述分区闪存地址用以确定所述每个固件加载于所述闪存中的位置;根据所述每个固件对应的初始固件信息、所述每个固件对应的分区闪存地址,生成或更新配置文件。In a possible implementation manner, the generating or updating the configuration file according to the initial firmware information corresponding to each firmware includes: determining the partition flash memory address corresponding to each firmware; the partition flash memory address is used to determine the The location where each firmware is loaded in the flash memory; according to the initial firmware information corresponding to each firmware and the partition flash memory address corresponding to each firmware, a configuration file is generated or updated.

在一种可能的实施方式中,所述主机还包括:提示信息生成模块,用以执行以下任意一项:根据所述配置文件,生成针对待操作固件的操作指令;其中,所述操作指令用以更新所述待操作固件在闪存中的分区信息;发送所述操作指令至所述闪存;响应于所述闪存发送的固件更新信息,生成与所述固件更新信息对应的提示信息。In a possible implementation manner, the host further includes: a prompt information generation module, configured to perform any of the following: generate an operation instruction for the firmware to be operated according to the configuration file; wherein, the operation instruction uses to update the partition information of the firmware to be operated in the flash memory; send the operation instruction to the flash memory; and generate prompt information corresponding to the firmware update information in response to the firmware update information sent by the flash memory.

在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.

本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. Computer readable storage media may be volatile or nonvolatile computer readable storage media.

本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.

本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.

电子设备可以被提供为终端或其它形态的设备,示例性地,上述主机可为包括闪存接口的电子设备。The electronic device may be provided as a terminal or other forms of devices. Exemplarily, the above-mentioned host may be an electronic device including a flash memory interface.

图5示出了根据本公开实施例提供的一种电子设备800的框图。例如,电子设备800可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等终端设备。Fig. 5 shows a block diagram of an electronic device 800 provided according to an embodiment of the present disclosure. For example, the electronic device 800 may be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, vehicle-mounted device, Terminal devices such as wearable devices.

参照图5,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出接口812,传感器组件814,以及通信组件816。5, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output interface 812, sensor component 814, and communication component 816.

处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be realized by any type of volatile or non-volatile storage device or their combination, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.

电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .

多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

输入/输出接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The input/output interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, the sensor component 814 can also detect the electronic device 800 or a Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi)、第二代移动通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)、通用移动通信技术的长期演进(LTE)、第五代移动通信技术(5G)或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access wireless networks based on communication standards, such as wireless networks (Wi-Fi), second-generation mobile communication technologies (2G), third-generation mobile communication technologies (3G), fourth-generation mobile communication technologies (4G ), long-term evolution (LTE) of universal mobile communication technology, fifth generation mobile communication technology (5G) or their combination. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the method described above.

在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.

本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider). connect). In some embodiments, electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.

这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically realized by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.

上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated herein.

本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.

若本申请技术方案涉及个人信息,应用本申请技术方案的产品在处理个人信息前,已明确告知个人信息处理规则,并取得个人自主同意。若本申请技术方案涉及敏感个人信息,应用本申请技术方案的产品在处理敏感个人信息前,已取得个人单独同意,并且同时满足“明示同意”的要求。例如,在摄像头等个人信息采集装置处,设置明确显著的标识告知已进入个人信息采集范围,将会对个人信息进行采集,若个人自愿进入采集范围即视为同意对其个人信息进行采集;或者在个人信息处理的装置上,利用明显的标识/信息告知个人信息处理规则的情况下,通过弹窗信息或请个人自行上传其个人信息等方式获得个人授权;其中,个人信息处理规则可包括个人信息处理者、个人信息处理目的、处理方式以及处理的个人信息种类等信息。If the technical solution of this application involves personal information, the product applying the technical solution of this application has clearly notified the personal information processing rules and obtained the individual's independent consent before processing personal information. If the technical solution of this application involves sensitive personal information, the products applying the technical solution of this application have obtained individual consent before processing sensitive personal information, and at the same time meet the requirements of "express consent". For example, at a personal information collection device such as a camera, a clear and prominent sign is set up to inform that it has entered the scope of personal information collection, and personal information will be collected. If an individual voluntarily enters the collection scope, it is deemed to agree to the collection of his personal information; or On the personal information processing device, when the personal information processing rules are informed with obvious signs/information, personal authorization is obtained through pop-up information or by asking individuals to upload their personal information; among them, the personal information processing rules may include Information such as the information processor, the purpose of personal information processing, the method of processing, and the type of personal information processed.

以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Having described various embodiments of the present disclosure above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.

Claims (10)

1. A management method of firmware is applied to a flash memory, and is characterized in that the flash memory is configured in an adapter, and the management method comprises the following steps:
acquiring an operation instruction for the firmware to be operated; the firmware to be operated is firmware corresponding to hardware in the adapter;
determining partition information corresponding to the firmware to be operated according to the operation instruction; wherein the partition information includes: the firmware to be operated and the firmware information corresponding to the firmware to be operated; the partition information is obtained based on a packed configuration file sent by a host; the partition information corresponds to a partition flash memory address; the partition flash memory address is used for determining the storage position of the partition information in the flash memory;
and executing the operation content in the operation instruction on the firmware to be operated according to the firmware information corresponding to the firmware to be operated.
2. The management method according to claim 1, wherein the management method further comprises:
responding to a packed configuration file sent by a host, and analyzing the packed configuration file to obtain partition information corresponding to each firmware;
and saving the partition information corresponding to each firmware.
3. The method for managing according to claim 2, wherein the parsing the packaged configuration file to obtain partition information corresponding to each firmware includes:
analyzing the packed configuration file to obtain partition information corresponding to each firmware and a partition flash memory address corresponding to each firmware; the partition flash memory address is used for determining the storage position of the partition information in the flash memory;
the saving of the partition information corresponding to each firmware includes:
and storing the partition information corresponding to each firmware into the partition flash memory address of the flash memory.
4. A management method of firmware is applied to a host, and is characterized in that the host is connected with a flash memory in an adapter, and the management method comprises the following steps:
generating or updating a configuration file according to the initial firmware information corresponding to each firmware; the initial firmware information is used for representing the firmware information of each firmware in the initial development environment, and the firmware is the firmware corresponding to the hardware in the adapter; wherein the configuration file is used to determine partition information for each firmware; the partition information corresponds to a partition flash memory address; the partition flash memory address is used for determining the storage position of the partition information in the flash memory;
and packaging the configuration file, and sending the packaged configuration file to the flash memory.
5. The method for managing as set forth in claim 4, wherein the generating or updating the configuration file according to the initial firmware information corresponding to each firmware comprises:
signing each firmware to generate a signature file corresponding to each firmware;
and generating or updating a configuration file according to the initial firmware information corresponding to each firmware and the signature file corresponding to each firmware.
6. The method according to claim 4 or 5, wherein the generating or updating the configuration file according to the initial firmware information corresponding to each firmware comprises:
determining a partition flash memory address corresponding to each firmware; the partition flash memory address is used for determining the position of each firmware loaded in the flash memory;
and generating or updating a configuration file according to the initial firmware information corresponding to each firmware and the partition flash memory address corresponding to each firmware.
7. The management method according to any one of claims 4 or 5, characterized in that the management method further comprises:
generating an operation instruction for the firmware to be operated according to the configuration file; the operating instruction is used for updating the partition information of the firmware to be operated in the flash memory;
sending the operation instruction to the flash memory;
and generating prompt information corresponding to the firmware updating information in response to the firmware updating information sent by the flash memory.
8. A flash memory, wherein the flash memory is configured in an adapter, the flash memory comprising:
the operating instruction acquisition module is used for acquiring an operating instruction aiming at the firmware to be operated; the firmware to be operated is firmware corresponding to hardware in the adapter;
the partition information determining module is used for determining partition information corresponding to the firmware to be operated according to the operation instruction; wherein the partition information includes: the firmware to be operated and the firmware information corresponding to the firmware to be operated; the partition information is obtained based on a packed configuration file sent by a host; the partition information corresponds to a partition flash memory address; the partition flash memory address is used for determining the storage position of the partition information in the flash memory;
and the operating instruction executing module is used for executing the operating content in the operating instruction to the firmware to be operated according to the firmware information corresponding to the firmware to be operated.
9. A host, wherein the host is coupled to the flash memory of claim 8, the flash memory being configured in an adapter, the host further comprising:
the configuration file updating module is used for generating or updating a configuration file according to the initial firmware information corresponding to each firmware; the initial firmware information is used for representing the firmware information of each firmware in the initial development environment, and the firmware is the firmware corresponding to the hardware in the adapter; wherein the configuration file is used to determine partition information for each firmware; the partition information corresponds to a partition flash memory address; the partition flash memory address is used for determining the storage position of the partition information in the flash memory;
and the configuration file sending module is used for packaging the configuration files and sending the packaged configuration files to the flash memory.
10. A computer-readable storage medium on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the management method of any one of claims 1 to 7.
CN202210914594.1A 2022-08-01 2022-08-01 Firmware management method, flash memory, host and storage medium Active CN114995893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210914594.1A CN114995893B (en) 2022-08-01 2022-08-01 Firmware management method, flash memory, host and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210914594.1A CN114995893B (en) 2022-08-01 2022-08-01 Firmware management method, flash memory, host and storage medium

Publications (2)

Publication Number Publication Date
CN114995893A CN114995893A (en) 2022-09-02
CN114995893B true CN114995893B (en) 2022-11-01

Family

ID=83021450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210914594.1A Active CN114995893B (en) 2022-08-01 2022-08-01 Firmware management method, flash memory, host and storage medium

Country Status (1)

Country Link
CN (1) CN114995893B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118981340B (en) * 2024-07-16 2025-11-28 厦门紫光展锐科技有限公司 Field configuration method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317618A (en) * 2014-10-24 2015-01-28 福州瑞芯微电子有限公司 Firmware partitioning method and device
CN109446815A (en) * 2018-09-30 2019-03-08 华为技术有限公司 Management method, device and the server of basic input output system firmware
CN111033466A (en) * 2017-08-04 2020-04-17 高通股份有限公司 Partitioning flash and enabling flexible boot with image upgrade capability
CN111666082A (en) * 2020-06-05 2020-09-15 北京元心科技有限公司 Peripheral firmware loading method based on linux operating system, control equipment and computer readable storage medium
CN112882734A (en) * 2021-03-11 2021-06-01 北京百度网讯科技有限公司 Upgrading method and device, computer equipment and medium
CN113238771A (en) * 2021-04-27 2021-08-10 瑞芯微电子股份有限公司 Android system-based FOTA firmware upgrading method and device
CN113238778A (en) * 2021-05-23 2021-08-10 山东英信计算机技术有限公司 Method, system, equipment and medium for upgrading BIOS firmware
CN114281788A (en) * 2021-11-19 2022-04-05 苏州浪潮智能科技有限公司 BMC firmware data extraction method, device, terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100771519B1 (en) * 2006-10-23 2007-10-30 삼성전자주식회사 Memory system including flash memory and its merge method
US9208072B2 (en) * 2013-06-25 2015-12-08 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Firmware storage and maintenance
US10776492B2 (en) * 2018-09-10 2020-09-15 Dell Products, L.P. Multi-stage firmware update method and system therefor

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317618A (en) * 2014-10-24 2015-01-28 福州瑞芯微电子有限公司 Firmware partitioning method and device
CN111033466A (en) * 2017-08-04 2020-04-17 高通股份有限公司 Partitioning flash and enabling flexible boot with image upgrade capability
CN109446815A (en) * 2018-09-30 2019-03-08 华为技术有限公司 Management method, device and the server of basic input output system firmware
CN111666082A (en) * 2020-06-05 2020-09-15 北京元心科技有限公司 Peripheral firmware loading method based on linux operating system, control equipment and computer readable storage medium
CN112882734A (en) * 2021-03-11 2021-06-01 北京百度网讯科技有限公司 Upgrading method and device, computer equipment and medium
CN113238771A (en) * 2021-04-27 2021-08-10 瑞芯微电子股份有限公司 Android system-based FOTA firmware upgrading method and device
CN113238778A (en) * 2021-05-23 2021-08-10 山东英信计算机技术有限公司 Method, system, equipment and medium for upgrading BIOS firmware
CN114281788A (en) * 2021-11-19 2022-04-05 苏州浪潮智能科技有限公司 BMC firmware data extraction method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114995893A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN113342697B (en) Simulation test system and method for flash translation layer
US20170116987A1 (en) Electronic device and method for executing function using speech recognition thereof
CN113018868B (en) Cloud game login method, device and system
EP3982253A1 (en) Terminal software upgrade method, terminal software upgrade apparatus and storage medium
CN116048724A (en) Image creation method, device, electronic device and storage medium
CN105183571A (en) Function calling method and device
CN114995893B (en) Firmware management method, flash memory, host and storage medium
CN115391601B (en) Video format detection method, index model construction method and device
CN111767006B (en) Data processing method and device
KR20210137107A (en) Systems, methods, computer programs, mobile devices and kits for operating devices with low computing power
CN111443903A (en) Software development file acquisition method and device, electronic device, and storage medium
CN106547705A (en) USB (universal serial bus) operating mode control method and device
CN114968877B (en) Hardware management method, adapter, host and storage medium
CN105335200A (en) System upgrading method and device
CN115062012A (en) Data processing method, data processing device, storage medium and electronic equipment
CN111240735B (en) Application packaging method, application packaging device and storage medium
CN111090463B (en) Resource identification method and device, computer storage medium
CN107193530B (en) Method and device for generating random number
CN111414188A (en) Application version matching method, application version matching device and storage medium
CN115562681A (en) Cloud application management method and device, system, electronic equipment and storage medium
CN110262840A (en) Equipment starting monitoring method and related product
CN111290843A (en) Process management method and device
CN114546436A (en) Micro front-end service updating method and device, electronic equipment and storage medium
CN110837720B (en) Method, device and related product for instruction execution
CN115629772B (en) Kubernetes software installation method and device, electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: B655, 4th Floor, Building 14, Cuiwei Zhongli, Haidian District, Beijing, 100036

Patentee after: Mole Thread Intelligent Technology (Beijing) Co.,Ltd.

Country or region after: China

Address before: 209, 2nd Floor, No. 31 Haidian Street, Haidian District, Beijing

Patentee before: Moore Threads Technology Co., Ltd.

Country or region before: China