CN112015431B - Method, device, computer equipment and storage medium for modifying firmware information by one key - Google Patents

Method, device, computer equipment and storage medium for modifying firmware information by one key Download PDF

Info

Publication number
CN112015431B
CN112015431B CN202010891690.XA CN202010891690A CN112015431B CN 112015431 B CN112015431 B CN 112015431B CN 202010891690 A CN202010891690 A CN 202010891690A CN 112015431 B CN112015431 B CN 112015431B
Authority
CN
China
Prior art keywords
firmware
information
file
package
modification
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
CN202010891690.XA
Other languages
Chinese (zh)
Other versions
CN112015431A (en
Inventor
沈荣娟
杨锦平
罗宗扬
韩道静
邹一凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202010891690.XA priority Critical patent/CN112015431B/en
Publication of CN112015431A publication Critical patent/CN112015431A/en
Application granted granted Critical
Publication of CN112015431B publication Critical patent/CN112015431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/52Binary to binary
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method, a device, computer equipment and a storage medium for modifying firmware information by keys, wherein the method comprises the steps of obtaining batch processing sentences; obtaining a firmware package file under a target object, and decompressing to obtain a plurality of independent binary files; sequentially modifying the binary files based on the target modification information, and calculating a checksum to obtain modified binary files; and recompressing the modified binary file to obtain a modified firmware package, and finishing the modification of the firmware in the firmware package. The scheme can automatically modify the information of a plurality of binary files in the firmware package, can finish the modification operation of the binary files in the firmware package by one key, does not need to modify and recompress the firmware package after manually decompressing the firmware package one by one, and can greatly improve the working efficiency and reduce the maintenance cost.

Description

Method, device, computer equipment and storage medium for modifying firmware information by one key
Technical Field
The application relates to the SSD field, in particular to a method, a device, computer equipment and a storage medium for modifying firmware information by one key.
Background
In recent years, SSD (solid state drive) storage products are developing at a high speed, and performance and capacity of the SSD are continuously improved, and more users select the solid state drive as a system disk. When the SSD is used by a user, if a SSD manufacturer issues new firmware, the SSD needs to be correspondingly updated, wherein the firmware updating refers to updating of embedded firmware of the SSD, and functions of the SSD can be perfected, stability is enhanced, holes are repaired and the like.
In practice, SSD manufacturers may perform multiple debugging, such as increasing from a low version to a high version, and then backing up from the high version to the low version, before releasing new firmware, and performing repeated tests. The firmware package is usually in the form of a compressed package composed of a plurality of firmware, if the firmware version number needs to be modified, the steps of decompression, manual sequential modification, recompression and the like need to be carried out, and the firmware package is very tedious, error-prone and low in working efficiency.
The information disclosed in this background section is only for enhancement of understanding of the general background of the application and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The application aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for modifying firmware information by one key.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, the present application provides a method for modifying firmware information by one key, comprising the steps of,
acquiring a batch processing statement, wherein the batch processing statement carries target modification information for modifying a firmware binary file;
obtaining a firmware package file under a target object, and decompressing to obtain a plurality of independent binary files;
sequentially modifying the binary files based on the target modification information, and calculating a checksum to obtain modified binary files;
and recompressing the modified binary file to obtain a modified firmware package, and finishing the modification of the firmware in the firmware package.
In a second aspect, the present application proposes an apparatus for modifying firmware information by one key, comprising:
the sentence acquisition unit is used for acquiring batch processing sentences which carry target modification information for modifying the binary file of the firmware;
the file acquisition unit is used for acquiring the firmware package files under the target and decompressing to obtain a plurality of independent binary files;
the information modification unit is used for sequentially modifying the binary files based on the target modification information, calculating a checksum and obtaining modified binary files;
and the file compression unit is used for recompressing the modified binary file to obtain a modified firmware package and finishing the modification of the firmware in the firmware package.
In a third aspect, the present application proposes a computer device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing a method of modifying firmware information by one-touch as described above when executing the computer program.
In a fourth aspect, the present application proposes a storage medium storing a computer program which, when executed by a processor, implements a method of modifying firmware information by one-touch as described above.
Compared with the prior art, the application has the beneficial effects that: the method for modifying the firmware information by one key can automatically modify a plurality of binary file information in the firmware package, can finish the binary file modification operation in the firmware package by one key, does not need to modify the firmware package after decompressing the firmware package one by one, and recompresses the firmware package.
The application is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a firmware package according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for modifying firmware information by one key according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a method for modifying firmware information by one key according to an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating a method for modifying firmware information by one key according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for modifying firmware information by one key according to another embodiment of the present application;
FIG. 6 is a schematic block diagram of an apparatus for modifying firmware information with one key according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of a file acquisition unit of an apparatus for modifying firmware information with one key according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of an information modifying unit of an apparatus for modifying firmware information by one key according to an embodiment of the present application;
fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Fig. 2 is a flowchart of a method for modifying firmware information by one key according to an embodiment of the present application. As shown in fig. 2, the method includes the following steps S110 to S150.
S110, acquiring a batch processing statement, wherein the batch processing statement carries target modification information for modifying the binary file of the firmware.
In this embodiment, the running batch language may perform batch modification operations to achieve the technical effect of one-click-to-strange firmware package for all binary file firmware version numbers. Specifically, the batch statement carries target modification information for modifying the binary file of the firmware, and according to the target modification information, the information of the binary file in the firmware package can be correspondingly modified.
S120, obtaining a firmware package file under the target object, and decompressing to obtain a plurality of independent binary files.
In this embodiment, the firmware package is a total firmware package obtained by packaging 4 binary files into a total firmware package by pre-written batch files when compiling the firmware, and the firmware package has the format of rmxlfw. When the Firmware is upgraded, a Firmware package is first generated, and the Firmware package contains 4 binary files, as shown in fig. 1, and is respectively formed by Bootloader1 (Bootloader, abbreviated as BL 1), bootloader2 (Bootloader, abbreviated as BL 2), bootloader3 (Bootloader, abbreviated as BL 3) and Firmware (Firmware, abbreviated as FW) in a compressed mode. When the firmware is upgraded, the firmware upgrading tool downloads four firmware, namely BL1, BL2, BL3 and FW, to the SSD respectively, and sends a firmware activating command, and when the SSD receives one firmware, the SSD performs corresponding operation and stores the firmware in a firmware storage area.
Therefore, when the firmware package is modified, the firmware package file to be modified needs to be found under the catalog storing the firmware package, and the file in the rmxlfw format under the target catalog can be directly traversed through batch processing sentences, so that the firmware package file stored under the target catalog can be found, and the firmware package file is decompressed through a decompression program such as WINRAR, so that 4 independent binary files can be obtained.
Referring to fig. 3, in one embodiment, step S120 includes steps S121 and 122.
S121, traversing files in the rmxlfw format under the target directory through batch processing sentences to obtain firmware package files.
S122, calling a decompression program to decompress the firmware package file into a plurality of independent binary files.
In this embodiment, the number of binary files that can be obtained after the decompression of the firmware package file is up to 4, that is, the four binary files of BL1, BL2, BL3, FW.
S130, modifying the binary files in sequence based on the target modification information, and calculating a checksum to obtain modified binary files.
In this embodiment, the target information, such as the firmware version number, in the binary file is automatically modified by calling the Qt program and running the Qt program, and the corresponding checksum is calculated after modification, so that no manual operation is required in the whole modification process, the possibility of error is reduced, and the modification efficiency is improved. Wherein the Qt program is an application development framework.
Referring to fig. 4, in an embodiment, step S130 includes steps S131 and S132.
S131, transmitting target modification information to the Qt program through command line parameters by a batch statement;
s132, based on the target modification information, sequentially calling the Qt program to modify the binary file and calculating the checksum.
In this implementation, the batch statement includes target modification information, which is passed to the Qt program via the command line parameters, which modifies the corresponding information in the binary file according to the target modification information.
S140, recompressing the modified binary file to obtain a modified firmware package, and finishing the modification of the firmware in the firmware package.
In this embodiment, after modification, the binary files of all corresponding firmware are repackaged to obtain the firmware package file, that is, the information modification operation of all different firmware in the firmware package is completed, and the automatic modification of a plurality of binary file information in the firmware package is realized.
Fig. 5 is a flowchart of a method for modifying firmware information by one key according to another embodiment of the present application. As shown in fig. 5, the method for modifying firmware information by one key of the present embodiment includes steps S210 to S250. Steps S210, S220, S240 and S250 are similar to steps S110 to S140 in the above embodiments, and are not described here again. Step S230 added in the present embodiment is described in detail below.
S230, the file name and the storage position of the firmware package are recorded in tmp text.
In this embodiment, the file name and storage location of the firmware package are recorded in tmp text, and the modification history of the firmware package file is recorded for later call viewing.
Fig. 6 is a schematic block diagram of an apparatus for modifying firmware information by one key according to an embodiment of the present application. As shown in fig. 6, the present application further provides a device for modifying firmware information by one key, corresponding to the above method for modifying firmware information by one key. The device for modifying firmware information by one key comprises a unit for executing the method for modifying firmware information by one key, and the device can be configured in a desktop computer, a tablet computer, a portable computer, and the like. Specifically, referring to fig. 6, the apparatus for modifying firmware information by one key includes a sentence acquisition unit 10, a file acquisition unit 20, a modification recording unit 30, an information modification unit 40, and a file compression unit 50.
The statement obtaining unit 10 is configured to obtain a batch statement, where the batch statement carries target modification information for modifying the firmware binary file.
In this embodiment, the running batch language may perform batch modification operations to achieve the technical effect of one-click-to-strange firmware package for all binary file firmware version numbers. Specifically, the batch statement carries target modification information for modifying the binary file of the firmware, and according to the target modification information, the information of the binary file in the firmware package can be correspondingly modified.
The file obtaining unit 20 is configured to obtain a firmware package file under the target object, and decompress the firmware package file to obtain a plurality of independent binary files.
In this embodiment, the firmware package is a total firmware package obtained by packaging 4 binary files into a total firmware package by pre-written batch files when compiling the firmware, and the firmware package has the format of rmxlfw. When the Firmware is upgraded, a Firmware package is first generated, and the Firmware package contains 4 binary files, namely Bootloader1 (Bootloader, BL1 for short), bootloader2 (Bootloader, BL2 for short), bootloader3 (Bootloader, BL3 for short) and Firmware (Firmware, FW for short). When the firmware is upgraded, the firmware upgrading tool downloads four firmware, namely BL1, BL2, BL3 and FW, to the SSD respectively, and sends a firmware activating command, and when the SSD receives one firmware, the SSD performs corresponding operation and stores the firmware in a firmware storage area.
Therefore, when the firmware package is modified, the firmware package file to be modified needs to be found under the catalog storing the firmware package, and the file in the rmxlfw format under the target catalog can be directly traversed through batch processing sentences, so that the firmware package file stored under the target catalog can be found, and the firmware package file is decompressed through a decompression program such as WINRAR, so that 4 independent binary files can be obtained.
Referring to fig. 7, the file acquisition unit 20 includes a file traversing module 21 and a file decompressing module 22.
The file traversing module 21 is configured to traverse the file in the rmxlfw format under the target directory through a batch statement to obtain a firmware package file.
The file decompression module 22 is configured to invoke a decompression program to decompress the firmware package file into a plurality of independent binary files.
In this embodiment, the number of binary files that can be obtained after the decompression of the firmware package file is up to 4, that is, the four binary files of BL1, BL2, BL3, FW.
The modification recording unit 30 is used for recording the file name and the storage location of the firmware package in tmp text.
In this embodiment, the file name and storage location of the firmware package are recorded in tmp text, and the modification history of the firmware package file is recorded for later call viewing.
The information modification unit 40 is configured to sequentially modify the binary files based on the target modification information, and calculate a checksum to obtain modified binary files.
In this embodiment, the target information, such as the firmware version number, in the binary file is automatically modified by calling the Qt program and running the Qt program, and the corresponding checksum is calculated after modification, so that no manual operation is required in the whole modification process, the possibility of error is reduced, and the modification efficiency is improved.
Referring to fig. 8, the information modification unit 40 includes an information delivery module 41 and an information modification module 42.
The information transfer module 41 is used for transferring the target modification information to the Qt program through the command line parameters by the batch statement.
The information modification module 42 is configured to sequentially call the Qt program to modify the binary file and calculate the checksum based on the target modification information.
In this implementation, the batch statement includes target modification information, which is passed to the Qt program via the command line parameters, which modifies the corresponding information in the binary file according to the target modification information.
The file compression unit 50 is configured to recompress the modified binary file to obtain a modified firmware package, and complete modification of firmware in the firmware package.
In this embodiment, after modification, the binary files of all corresponding firmware are repackaged to obtain the firmware package file, that is, the information modification operation of all different firmware in the firmware package is completed, and the automatic modification of a plurality of binary file information in the firmware package is realized.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the device and each unit for modifying firmware information by one key may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster formed by a plurality of servers.
With reference to FIG. 9, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method of modifying firmware information with one key.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method of modifying firmware information by one-touch.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, as a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in a memory.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer readable storage medium.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A method for modifying firmware information by one key is characterized by comprising the following steps,
acquiring a batch processing statement, wherein the batch processing statement carries target modification information for modifying a firmware binary file;
obtaining a firmware package file under a target object, and decompressing to obtain a plurality of independent binary files;
sequentially modifying the binary files based on the target modification information, and calculating a checksum to obtain modified binary files;
recompression of the modified binary file to obtain a modified firmware package, and modification of firmware in the firmware package is completed;
specifically, the information of the binary file in the firmware package is correspondingly modified according to target modification information, the target modification information is firmware version number modification information, and quick modification of the version number in the binary file is realized based on the target modification information;
specifically, the firmware package is that 4 binary files are packaged into a total firmware package through a pre-written batch file when the firmware is compiled, and the format of the firmware package is rmxlfw; when the firmware is upgraded, a firmware packet is firstly required to be generated, the firmware packet contains 4 binary files in total, and the firmware packet is respectively compressed by BL1, BL2, BL3 and FW; when the firmware is upgraded, the firmware upgrading tool downloads four firmware, namely BL1, BL2, BL3 and FW, to the SSD respectively, and sends a firmware activating command, and when the SSD receives one firmware, the SSD performs corresponding operation and stores the firmware in a firmware storage area.
2. The method for modifying firmware information by one key according to claim 1, wherein the step of obtaining the firmware package file under the target object and decompressing to obtain a plurality of independent binary files comprises the steps of;
traversing files in rmxlfw format under the target directory through batch processing sentences to obtain firmware package files;
and calling a decompression program to decompress the firmware package file into a plurality of independent binary files.
3. The method for modifying firmware information by one key according to claim 1, wherein after the step of obtaining the firmware package file under the target and decompressing to obtain the independent plurality of binary files, the method comprises the steps of;
the file name and storage location of the firmware package are recorded in tmp text.
4. The method for modifying firmware information by one key according to claim 1, wherein the step of sequentially modifying the binary file based on the target modification information and calculating a checksum to obtain the modified binary file comprises,
the target modification information is transmitted to the Qt program through command line parameters by a batch processing statement;
based on the target modification information, the Qt program is sequentially called to modify the binary file and calculate a checksum.
5. An apparatus for modifying firmware information with one key, comprising:
the sentence acquisition unit is used for acquiring batch processing sentences which carry target modification information for modifying the binary file of the firmware;
the file acquisition unit is used for acquiring the firmware package files under the target and decompressing to obtain a plurality of independent binary files;
the information modification unit is used for sequentially modifying the binary files based on the target modification information, calculating a checksum and obtaining modified binary files;
the file compression unit is used for recompressing the modified binary file to obtain a modified firmware package and finishing the modification of the firmware in the firmware package;
specifically, the information of the binary file in the firmware package is correspondingly modified according to target modification information, the target modification information is firmware version number modification information, and quick modification of the version number in the binary file is realized based on the target modification information;
specifically, the firmware package is that 4 binary files are packaged into a total firmware package through a pre-written batch file when the firmware is compiled, and the format of the firmware package is rmxlfw; when the firmware is upgraded, a firmware packet is firstly required to be generated, the firmware packet contains 4 binary files in total, and the firmware packet is respectively compressed by BL1, BL2, BL3 and FW; when the firmware is upgraded, the firmware upgrading tool downloads four firmware, namely BL1, BL2, BL3 and FW, to the SSD respectively, and sends a firmware activating command, and when the SSD receives one firmware, the SSD performs corresponding operation and stores the firmware in a firmware storage area.
6. The apparatus for modifying firmware information by one key according to claim 5, wherein the file obtaining unit includes a file traversing module and a file decompressing module;
the file traversing module is used for traversing files in the rmxlfw format under the target directory through batch processing sentences to obtain firmware package files;
and the file decompression module is used for calling a decompression program to decompress the firmware package file into a plurality of independent binary files.
7. The apparatus for one-touch modification of firmware information according to claim 5, further comprising a modification recording unit for recording a file name and a storage location of the firmware package in tmp text.
8. The apparatus for one-key modification of firmware information according to claim 5, wherein the information modification unit includes an information delivery module and an information modification module;
the information transfer module is used for transferring target modification information to the Qt program through command line parameters by a batch processing statement;
the information modification module is used for sequentially calling the Qt program to modify the binary file and calculating the checksum based on the target modification information.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing a method of modifying firmware information by one key as claimed in any one of claims 1 to 4 when the computer program is executed.
10. A storage medium storing a computer program which, when executed by a processor, implements a method of modifying firmware information by one-touch as claimed in any one of claims 1 to 4.
CN202010891690.XA 2020-08-27 2020-08-27 Method, device, computer equipment and storage medium for modifying firmware information by one key Active CN112015431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010891690.XA CN112015431B (en) 2020-08-27 2020-08-27 Method, device, computer equipment and storage medium for modifying firmware information by one key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010891690.XA CN112015431B (en) 2020-08-27 2020-08-27 Method, device, computer equipment and storage medium for modifying firmware information by one key

Publications (2)

Publication Number Publication Date
CN112015431A CN112015431A (en) 2020-12-01
CN112015431B true CN112015431B (en) 2023-12-05

Family

ID=73503197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010891690.XA Active CN112015431B (en) 2020-08-27 2020-08-27 Method, device, computer equipment and storage medium for modifying firmware information by one key

Country Status (1)

Country Link
CN (1) CN112015431B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306104A (en) * 2011-08-26 2012-01-04 深圳市万兴软件有限公司 Method and device for automatically updating application program
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN104423974A (en) * 2013-08-20 2015-03-18 崴方科技股份有限公司 On-line BIOS automatic modification method
CN104737123A (en) * 2012-10-19 2015-06-24 哈利伯顿能源服务公司 Self-defining configuration apparatus, methods, and systems
CN108062229A (en) * 2018-01-02 2018-05-22 郑州云海信息技术有限公司 A kind of method of batch updating Seagate hard disk firmware under linux system
CN109683973A (en) * 2018-12-26 2019-04-26 郑州云海信息技术有限公司 A kind of Insyde product BIOS method for customizing, device, terminal and storage medium
CN110209520A (en) * 2019-06-05 2019-09-06 深圳忆联信息系统有限公司 A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency
CN110399169A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 Amending method, device, equipment and the readable storage medium storing program for executing of BIOS option
CN110659063A (en) * 2019-08-08 2020-01-07 平安科技(深圳)有限公司 Software project reconstruction method and device, computer device and storage medium
CN111158733A (en) * 2019-12-26 2020-05-15 山东英信计算机技术有限公司 BMC upgrading method, device, equipment and computer readable storage medium
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017215044B4 (en) * 2017-08-29 2023-11-16 Lenze Se Method for changing to a firmware version on an electrical control unit for a drive system, electrical control unit and drive system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306104A (en) * 2011-08-26 2012-01-04 深圳市万兴软件有限公司 Method and device for automatically updating application program
CN104737123A (en) * 2012-10-19 2015-06-24 哈利伯顿能源服务公司 Self-defining configuration apparatus, methods, and systems
CN104423974A (en) * 2013-08-20 2015-03-18 崴方科技股份有限公司 On-line BIOS automatic modification method
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN108062229A (en) * 2018-01-02 2018-05-22 郑州云海信息技术有限公司 A kind of method of batch updating Seagate hard disk firmware under linux system
CN109683973A (en) * 2018-12-26 2019-04-26 郑州云海信息技术有限公司 A kind of Insyde product BIOS method for customizing, device, terminal and storage medium
CN110209520A (en) * 2019-06-05 2019-09-06 深圳忆联信息系统有限公司 A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency
CN110399169A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 Amending method, device, equipment and the readable storage medium storing program for executing of BIOS option
CN110659063A (en) * 2019-08-08 2020-01-07 平安科技(深圳)有限公司 Software project reconstruction method and device, computer device and storage medium
CN111158733A (en) * 2019-12-26 2020-05-15 山东英信计算机技术有限公司 BMC upgrading method, device, equipment and computer readable storage medium
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Dane Brown等.Towards detection of modified firmware on solid state drives via side channel analysis.MEMSYS '18: Proceedings of the International Symposium on Memory Systems.2018,第315–320页. *
轻量级物联网设备固件内存漏洞挖掘研究;朱立鹏;中国优秀硕士学位论文全文数据库信息科技辑(第2期);第I136-996页 *

Also Published As

Publication number Publication date
CN112015431A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
US10114630B2 (en) Management of software and operating system updates required for the process of creating a virtual machine facsimile of an existing physical or virtual machine
US7971199B1 (en) Mobile device with a self-updating update agent in a wireless network
US8789035B2 (en) Method and apparatus for updating firmware
US20170308369A1 (en) Data processing method and device of preset application after upgrading
WO2007117514A1 (en) Mobile device capable of multiple updates
US9547345B2 (en) System and method for safely updating thin client operating system over a network
CN106790247A (en) A kind of method and apparatus of android system upgrading
CN110109628B (en) Data reconstruction method, device, equipment and storage medium of distributed storage system
CN110851165A (en) Method and device for automatically acquiring BIOS drive and upgrading, computer equipment and storage medium
CN113867847A (en) Abnormal plug-in processing method and device and computing equipment
KR101130875B1 (en) Automatic backup store in firmware upgrades
CN114253619A (en) SSD multi-level Boot method and device, computer equipment and storage medium
CN116954685B (en) Gray scale rolling upgrading method, system, equipment and medium for low-code application system
CN111352641B (en) Automatic packing method, apparatus, computer device and storage medium by batch processing
CN112015431B (en) Method, device, computer equipment and storage medium for modifying firmware information by one key
CN112115105A (en) Service processing method, device and equipment
CN110502296B (en) Method, equipment and storage medium for displaying firmware upgrading command
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN106326310B (en) Resource encryption updating method for mobile phone client software
CN111427720A (en) Database repair method and device, computer equipment and storage medium
CN117311853B (en) APK file processing method and device, computer equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
US11144288B1 (en) System and method for compiling rules set into bytecode using switch and class hierarchies
CN113254029B (en) Peripheral interface setting method and device of terminal equipment and electronic equipment
KR102541439B1 (en) Method and apparatus for management control of vehicle ota update

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