BIOS (Basic Input / Output System) logo modification method and device, equipment and medium

Through the pre-created logo modification script and configuration file, the BIOS logo modification tool is automatically executed, which solves the problems in the existing technology of long time-consuming, unfriendly operation and low efficiency in modifying the server BIOS logo, and achieves efficient and accurate BIOS logo modification. Reduced costs.

CN118708248APending Publication Date: 2024-09-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410813471.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When modifying the server BIOS logo in the existing technology, there are problems such as code modification requiring the release of a new version, long functional testing, unfriendly tool operation, low efficiency, multiple logo modifications requiring multiple operations, and prone to artificial low-level quality problems.

Method used

By pre-creating logo modification scripts and configuration files, encapsulating the BIOS logo modification tool, and automatically executing modification commands, encryption and format conversion, BIOS logo modification without repeated code testing is achieved, with a high degree of automation and reduced human error.

Benefits of technology

It improves the accuracy and efficiency of BIOS logo modification, reduces manpower and development costs, and simplifies the operation process so that even inexperienced personnel can get started quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708248A
    Figure CN118708248A
Patent Text Reader

Abstract

The invention discloses a BIOS (Basic Input / Output System) logo modification method and device, equipment and a medium, and relates to the technical field of computers, the BIOS logo modification method comprises the following steps: executing a logo modification command through a BIOS logo modification tool in a logo modification script so as to modify a BIOS logo in an original BIOS file in a bin format into a target BIOS logo; encrypting the modified BIOS file by using an encryption tool in the modified BIOS file and a key in the configuration file; generating a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file; renaming the file name of the encrypted BIOS file in the hpm format; and sending the named BIOS file to the target client. According to the method, the accuracy of logo modification can be improved, the success rate of logo modification and the modification efficiency are improved, and the labor cost and the development cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a BIOS logo modification method, device, equipment and medium. Background Art

[0002] At present, server manufacturers usually purchase source code from BIOS (Basic Output and Input) manufacturers, and design and implement server functions based on the source code to form the BIOS code of their own servers. At the same time, major server manufacturers will design their own BIOS logo (trademark, logotype) to distinguish themselves from BIOS manufacturers and other server manufacturers. However, with the needs of business development, more and more customers will require server manufacturers to modify the BIOS logo to their own logo. Currently, there are two ways to modify the BIOS logo: directly replace the default BIOS logo in the original BIOS code, and then compile the code to generate an image of the new BIOS logo, thereby modifying the logo of the BIOS image; the other is to use a logo modification tool, such as the ChangeLogoWin64.exe tool, and decrypt the compiled original BIOS image through the corresponding command, and then modify the BIOS logo in the decrypted image, and then generate a new BIOS image and encrypt the generated new BIOS image, thereby modifying the BIOS logo of the compiled BIOS image.

[0003] However, although the above method of directly switching the logo by modifying the code can realize the modification of the BIOS logo and ensure the quality of the BIOS image, a new version of the BIOS needs to be released with the modification of the code, and the new version of the BIOS needs to be re-tested for functions, such as DC / AC / reboot tests, to ensure the stability of the version, but this will consume a lot of time, thereby reducing the production efficiency of the server. Another way of modifying the logo through a logo modification tool can achieve the modification of the logo without recompiling the BIOS, but it is not friendly to technicians with less BIOS experience, especially when using it for the first time, it usually takes a lot of time to study the use of the tool, which greatly reduces the work efficiency of BIOS developers and the efficiency of logo modification. Moreover, the tool can only modify one BIOS logo at a time, and it is impossible to modify the BIOS logo to multiple customers' logos at the same time. Multiple modification operations are required for the modification of multiple BIOS logos, and after the BIOS image switches the logo, it is also necessary to perform key encryption on the new BIOS image to achieve the matching of the motherboard and BIOS. The whole process of multiple operations requires a lot of time. In addition, the manual modification method with the help of the tool is prone to the situation that the logo modification does not take effect due to operational problems, and even introduces some artificial low-level quality problems, which greatly reduces the efficiency of the tool. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a BIOS logo modification method, device, equipment and medium, which can avoid human operation errors, minimize the interference of external factors, greatly improve the accuracy of logo modification, and thus improve the success rate of BIOS logo modification and the efficiency of the entire BIOS logo modification, while reducing labor costs and BIOS development costs. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a BIOS logo modification method, comprising:

[0006] When it is detected that the pre-created logo modification script is called, a logo modification command is executed through a BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to a target BIOS logo, thereby obtaining a modified BIOS file in bin format;

[0007] Encrypt the modified BIOS file using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain an encrypted BIOS file in a bin format;

[0008] Generate a BIOS file in hpm format corresponding to the encrypted BIOS file in bin format based on the configuration file, and obtain the encrypted BIOS file in hpm format;

[0009] Calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format;

[0010] The named BIOS file in the hpm format is sent to the target client to complete the modification of the target BIOS logo.

[0011] Optionally, executing a logo modification command through a BIOS logo modification tool encapsulated in the logo modification script to modify a BIOS logo in an original BIOS file in a bin format to a target BIOS logo to obtain a modified BIOS file in a bin format includes:

[0012] Determine the size of the original BIOS file in bin format and get the file size;

[0013] Determining a logo modification command for modifying a BIOS logo in the original BIOS file according to the file size;

[0014] The logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, thereby obtaining a modified BIOS file in bin format.

[0015] Optionally, the step of encrypting the modified BIOS file by using an encryption tool in the modified BIOS file and a key in a pre-created configuration file to obtain an encrypted BIOS file in a bin format includes:

[0016] Determining whether the key in the pre-created configuration file matches the modified BIOS file;

[0017] If the key in the configuration file matches the modified BIOS file, the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the configuration file to obtain an encrypted BIOS file in a bin format.

[0018] Optionally, the BIOS logo modification method further includes:

[0019] Call a file creation script to integrate relevant information for generating an hpm format BIOS file into a target script using file operation commands, and generate a configuration file for generating an hpm format BIOS file based on the target script; wherein the relevant information includes a key, attribute and format for generating an hpm format BIOS file.

[0020] Optionally, the BIOS logo modification method further includes:

[0021] Convert the commands in the logo modification script into mak commands to obtain a mak file, and add a logo modification identifier to the mak file;

[0022] Correspondingly, after renaming the file name of the encrypted BIOS file in the hpm format to obtain the named BIOS file in the hpm format, the method further includes:

[0023] Determine whether there is a logo modification mark in the pre-created mak file;

[0024] If there is a logo modification mark in the mak file, execute the mak command in the mak file to modify the BIOS logo in the original BIOS file in bin format to the new BIOS logo, and obtain a first BIOS file in bin format;

[0025] Encrypting the first BIOS file using the encryption tool in the first BIOS file and the key in the configuration file to obtain a second BIOS file in bin format;

[0026] Generate a BIOS file in the hpm format corresponding to the second BIOS file based on the configuration file, and obtain a third BIOS file in the hpm format;

[0027] Calling the renaming script to rename the file name of the third BIOS file in the hpm format to obtain a new BIOS file in the hpm format;

[0028] The new BIOS file in the hpm format is sent to the corresponding client to complete the modification of the new BIOS logo.

[0029] Optionally, the BIOS logo modification method further includes:

[0030] Determine whether there is a BIOS logo to be modified;

[0031] If there is no BIOS logo to be modified, the logo modification mark in the mak file is deleted.

[0032] Optionally, the generating, based on the configuration file, a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format, after obtaining the encrypted BIOS file in the hpm format, further includes:

[0033] The delete command is called through the logo modification script to delete the modified BIOS file in the bin format.

[0034] In a second aspect, the present application discloses a BIOS logo modification device, comprising:

[0035] A logo modification module, for, when detecting that a pre-created logo modification script is called, executing a logo modification command through a BIOS logo modification tool encapsulated in the logo modification script, so as to modify the BIOS logo in the original BIOS file in bin format to a target BIOS logo, and obtaining a modified BIOS file in bin format;

[0036] An encryption module, used to encrypt the modified BIOS file using an encryption tool in the modified BIOS file and a key in a pre-created configuration file to obtain an encrypted BIOS file in a bin format;

[0037] A format conversion module, used to generate a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, to obtain the encrypted BIOS file in the hpm format;

[0038] A renaming module, used for calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format;

[0039] The file sending module is used to send the named BIOS file in the hpm format to the target client to complete the modification of the target BIOS logo.

[0040] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the processor implements the aforementioned BIOS logo modification method when executing a computer program stored in the memory.

[0041] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned BIOS logo modification method is implemented.

[0042] It can be seen that when the present application detects that the pre-created logo modification script is called, the logo modification command is executed through the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format; the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain the encrypted BIOS file in bin format; the BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file to obtain the encrypted BIOS file in hpm format; the pre-created renaming script is called to rename the file name of the encrypted BIOS file in hpm format to obtain the named BIOS file in hpm format; the named BIOS file in hpm format is sent to the target client to complete the modification of the target BIOS logo. The present application pre-creates a logo modification script and a configuration file containing a key, and encapsulates a BIOS logo modification tool in the script. In this way, when it is detected that the logo modification script is called, the BIOS logo in the original BIOS file in bin format can be modified by the BIOS logo modification tool encapsulated in the logo modification script, and the modified BIOS file can be encrypted by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file, and then an encrypted BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file, and finally the file name of the encrypted BIOS file in hpm format is renamed, and the named BIOS file is sent to the target client. It can be seen that the present application realizes the modification of the BIOS logo in the original BIOS file by the BIOS logo modification tool directly by calling the script, and there is no need to repeatedly test the code, thus saving a lot of time. In addition, the problem that the BIOS logo modification tool is not easy to operate is solved, so that inexperienced operators can also quickly get started, with a high degree of automation, thereby avoiding human operation errors, minimizing the interference of external factors, greatly improving the accuracy of the modification, and thus improving the success rate of the BIOS logo modification, as well as the entire BIOS It improves the efficiency of logo modification and reduces labor costs and BIOS development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0044] Figure 1 A flow chart of a BIOS logo modification method disclosed in this application;

[0045] Figure 2 A flowchart of a specific BIOS logo modification method disclosed in this application;

[0046] Figure 3 A schematic diagram of the structure of a BIOS logo modification device disclosed in this application;

[0047] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] The present application embodiment discloses a BIOS logo modification method, see Figure 1 As shown, the method includes:

[0050] Step S11: when it is detected that the pre-created logo modification script is called, the logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, thereby obtaining a modified BIOS file in bin format.

[0051] It should be pointed out that this application has pre-created a logo modification script (such as the script one_transfer_four.bat), and encapsulated the BIOS logo modification tool in the script, while integrating the logo modification command and the BIOS file encryption and decryption operation code.

[0052] In this embodiment, when the BIOS logo needs to be modified, the relevant technicians only need to call the logo modification script, and the subsequent BIOS logo modification process can be automatically implemented through the logo modification script, thereby saving labor costs and time costs. Specifically, when it is monitored that the above logo modification script is called, the corresponding logo modification command can be executed through the BIOS logo modification tool (such as ChangeLogoWin64.exe tool) encapsulated in the logo modification script, so as to modify the BIOS logo in the original BIOS file (i.e., the default BIOS file) in the bin format (i.e., the binary file format) to the target BIOS logo required by the target customer, and obtain the corresponding bin format modified BIOS file (Changelogo_BIOS).

[0053] Specifically, executing the logo modification command through the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo to obtain the modified BIOS file in bin format may include: determining the size of the original BIOS file in bin format to obtain the file size; determining the logo modification command for modifying the BIOS logo in the original BIOS file according to the file size; executing the logo modification command through the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo to obtain the modified BIOS file in bin format. It is understandable that the logo modification commands corresponding to BIOS files of different file sizes are different. Therefore, it is necessary to first determine the size of the original BIOS file in bin format, and then further determine the logo modification command used to modify the BIOS logo in the original BIOS file based on the determined file size, that is, determine the corresponding logo modification command based on the file size, and then execute the above logo modification command through the BIOS logo modification tool encapsulated in the logo modification script (such as ChangeLogoWin64.exe tool), so as to modify the BIOS logo in the original BIOS file in bin format and modify it to the target BIOS logo required by the target customer.

[0054] In addition, it should be pointed out that before the pre-created logo modification script is called, it can also include: judging whether the logo modification command in the BIOS logo modification tool encapsulated in the logo modification script matches the size of the original BIOS file in bin format, and if so, executing the logo modification script. By adding this judgment mechanism, it can be ensured that the logo modification command of the corresponding file size is executed by the BIOS logo modification tool encapsulated in the logo modification script in the future, thereby ensuring the smooth execution of the BIOS logo modification and avoiding the failure of the logo modification caused by the mismatch between the logo modification command and the size of the original BIOS file.

[0055] Step S12: Encrypt the modified BIOS file using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain an encrypted BIOS file in a bin format.

[0056] It should be pointed out that the present application has created a configuration file in advance, and the specific creation process is: calling the file creation script to integrate the relevant information for generating the hpm (High Performance Computing) format BIOS file into the target script using the file operation command, and generating the configuration file for generating the hpm format BIOS file based on the target script; wherein the relevant information includes the key, attribute and format for generating the hpm format BIOS file. In this embodiment, the file creation script, such as the python_create_file.py script, can be called first, so as to integrate the relevant information for generating the hpm format BIOS file into a target script using the file operation command (such as the file.write command), and then generate the configuration file for the HPM version Changelogo_resign_BIOS based on the target script and through the one-click execution of the python script. wherein the relevant information specifically includes the key, attribute and format for generating the hpm format BIOS file.

[0057] In a specific embodiment, the format of the hpm format BIOS file can be: xx project_BIOS_"+FwVersionMajor+"."+FwVersionMinor+".."+FwVersionAux+"_logo_"+VersionTime+".hpm; the attributes of the hpm format BIOS file can include: DeviceID, ManufacturerID, ProductID, FwVersionMajor, FwVersionMinor, FwVersionAux, FwDescription, etc., wherein DeviceID is the device identification number, ManufacturerID is the device name identification number, ProductID is the product identification number, FwVersionMajor is the firmware major version number, FwVersionMinor is the firmware iteration version number, FwVersionAux is the firmware emergency version number, and FwDescription is the firmware description; the key of the hpm format BIOS file can specifically include: SignTool (signature tool) and SignKey (signature key). In addition, the relevant information can also include BoardID (motherboard identification number) and PlatfomrID (platform identification number).

[0058] In this embodiment, after the BIOS logo in the original BIOS file in the bin format is modified to the target BIOS logo, the encryption tool in the modified BIOS file (Changelogo_BIOS) (such as CryptoCon.exe, Crypto encryption tool, a tool for matching public keys and private keys based on the Crypto encryption algorithm) and the key in the pre-created configuration file are further used to perform encryption operations on the modified BIOS file (Changelogo_BIOS), thereby obtaining the encrypted BIOS file in the bin format.

[0059] Step S13: generating a BIOS file in the hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, and obtaining the encrypted BIOS file in the hpm format.

[0060] In this embodiment, after the modified BIOS file is encrypted to obtain the encrypted BIOS file in bin format, a pre-created encryption tool XCradleHpmTool.exe can be called to generate a BIOS file in hpm format corresponding to the encrypted BIOS file in bin format (Changelogo_resign_BIOS) according to the key, attributes and format for generating the hpm format BIOS file recorded in the above configuration file, thereby obtaining the encrypted BIOS file in hpm format.

[0061] In this embodiment, in the process of executing the commands in the logo modification script, the following may also be included: converting the commands in the logo modification script into mak commands, obtaining a mak file, and adding a logo modification mark in the mak file. That is, converting the commands in the logo modification script into mak commands, and adding a logo modification mark (such as ChangeLogo) in the mak file obtained after the conversion. By converting the commands in the logo modification script into mak commands, the commands in the logo modification script can be compiled into veb (VisualeBios, a compilation tool for BIOS), thereby improving the efficiency of command execution. It should be pointed out that when using scripts to modify the logo, although the workload of logo modification can be reduced, this method still requires copying the compiled initial BIOS file to the script directory and executing the command each time to modify the logo. It is impossible to generate multiple logo versions after the code compilation is completed. In order to solve this problem, the present application converts the commands in the logo modification script into mak commands to obtain a mak file. In this way, the intelligent modification of the logo can be achieved based on the initial BIOS code and the generation and compilation principles of the mak file. Moreover, by converting the script commands into mak commands and using the compilation of the mak file, the compilation and execution of the initial BIOS code can be achieved, thereby directly generating BIOS files with multiple logos, that is, realizing batch logo modification.

[0062] It should be noted that, after the encrypted BIOS file in the hpm format corresponding to the bin format encrypted BIOS file is obtained based on the configuration file, the method may further include: calling a delete command through the logo modification script to delete the modified BIOS file in the bin format. In this embodiment, after the HPM version of the encrypted BIOS file (Changelogo_resign_BIOS) is generated, a delete command (DEL command) may be called through the logo modification script to delete the modified BIOS file in the bin format. In this way, preparations can be made for the subsequent generation of the BIOS file with the new logo, and the subsequent steps will be executed in sequence according to the requirements of the new logo until all the HPM version of the BIOS files with the new logo are generated.

[0063] Step S14: calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format.

[0064] In this embodiment, after obtaining the encrypted BIOS file in the hpm format, a pre-created renaming script (such as rename_bin.bat) can be called to use the move command to rename the file name of the encrypted BIOS file in the hpm format, thereby obtaining a BIOS file in the hpm format that meets the needs of the target customer, that is, the named BIOS file in the hpm format.

[0065] Furthermore, after renaming the file name of the encrypted BIOS file in the hpm format to obtain the named BIOS file in the hpm format, it can also include: determining whether there is a logo modification mark in the pre-created mak file; if there is a logo modification mark in the mak file, executing the mak command in the mak file to modify the BIOS logo in the original BIOS file in the bin format to a new BIOS logo, to obtain a first BIOS file in the bin format; encrypting the first BIOS file using the encryption tool in the first BIOS file and the key in the configuration file to obtain a second BIOS file in the bin format; generating a BIOS file in the hpm format corresponding to the second BIOS file based on the configuration file to obtain a third BIOS file in the hpm format; calling the renaming script to rename the file name of the third BIOS file in the hpm format to obtain a new BIOS file in the hpm format; sending the new BIOS file in the hpm format to the corresponding client to complete the modification of the new BIOS logo. In this embodiment, after the file name of the encrypted BIOS file in the hpm format is renamed to obtain the named BIOS file in the hpm format, other BIOS logos can be modified. Specifically, it can be determined whether there is a logo modification mark (such as ChangeLogo) in the pre-created mak file. If there is a logo modification mark in the mak file, it indicates that there are other BIOS logos that need to be modified. At this time, the mak command in the mak file can be executed to modify the BIOS logo in the original BIOS file in the bin format to a new BIOS logo, and obtain the corresponding first BIOS file in the bin format. Then, the encryption tool in the first BIOS file and the key in the configuration file can be used to encrypt the first BIOS file to obtain a second BIOS file in the bin format. In this way, the problem that only one customer's BIOS logo can be generated at a time and the BIOS logo cannot be switched to multiple customers' logos at the same time is solved, thereby improving the work efficiency of BIOS developers, that is, improving the work efficiency of BIOS development.

[0066] In addition, after obtaining the second BIOS file in bin format, it may also include: judging whether there is a BIOS logo to be modified; if there is no BIOS logo to be modified, deleting the logo modification mark in the mak file. In this embodiment, after obtaining a new BIOS file in bin format, it is judged whether there are other BIOS logos to be modified. If not, the logo modification mark (i.e., ChangeLogo) in the mak file may be deleted, indicating that no other logos need to be modified. By setting the logo modification mark, the modification of other BIOS logos can be automatically executed, that is, batch BIOS logo modification is realized, thereby overcoming the deficiency that the logo modification tool can only modify one logo at a time, and improving the modification efficiency of the BIOS logo.

[0067] Step S15: Send the named BIOS file in the hpm format to the target client to complete the modification of the target BIOS logo.

[0068] In this embodiment, after obtaining the named BIOS file in the hpm format, the named BIOS file in the hpm format is directly sent to the target client, so that the target client obtains the modified BIOS file, that is, the modification of the target BIOS logo is completed. It should be pointed out that since the BIOS file in the hpm format is more convenient to flash on the machine, the flashing efficiency of this application is higher than that of the traditional BIOS file in the bin format.

[0069] It can be seen that when the embodiment of the present application monitors that the pre-created logo modification script is called, the logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format; the modified BIOS file is encrypted by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain the encrypted BIOS file in bin format; the BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file to obtain the encrypted BIOS file in hpm format; the pre-created renaming script is called to rename the file name of the encrypted BIOS file in hpm format to obtain the named BIOS file in hpm format; the named BIOS file in hpm format is sent to the target client to complete the modification of the target BIOS logo. The embodiment of the present application pre-creates a logo modification script and a configuration file containing a key, and encapsulates a BIOS logo modification tool in the script. In this way, when it is detected that the logo modification script is called, the BIOS logo in the original BIOS file in bin format can be modified by the BIOS logo modification tool encapsulated in the logo modification script, and the modified BIOS file is encrypted by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file, and then an encrypted BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file, and finally the file name of the encrypted BIOS file in hpm format is renamed, and the named BIOS file is sent to the target client. It can be seen that the embodiment of the present application realizes the modification of the BIOS logo in the original BIOS file by the BIOS logo modification tool directly by calling the script, and there is no need to perform repeated code testing, thereby saving a lot of time. In addition, the problem that the BIOS logo modification tool is not easy to operate is solved, so that inexperienced operators can also quickly get started, with a high degree of automation, thereby avoiding human operation errors, minimizing the interference of external factors, greatly improving the accuracy of the modification, and thus improving the success rate of the BIOS logo modification, as well as the entire BIOS It improves the efficiency of logo modification and reduces labor costs and BIOS development costs.

[0070] The present application embodiment discloses a specific BIOS logo modification method, see Figure 2 As shown, the method includes:

[0071] Step S21: when it is detected that the pre-created logo modification script is called, the logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format.

[0072] Step S22: Determine whether the key in the pre-created configuration file matches the modified BIOS file.

[0073] In this embodiment, after the BIOS logo in the original BIOS file in bin format is modified to the target BIOS logo to obtain the modified BIOS file in bin format, it is further determined whether the key in the pre-created configuration file matches the modified BIOS file.

[0074] Step S23: If the key in the configuration file matches the modified BIOS file, the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the configuration file to obtain an encrypted BIOS file in a bin format.

[0075] In this embodiment, if the key in the above configuration file matches the above modified BIOS file, the encryption tool (XCradleHpmTool.exe) in the modified BIOS file and the key in the above configuration file are used to encrypt the modified BIOS file, thereby obtaining an encrypted BIOS file in bin format.

[0076] In addition, if the key in the configuration file does not match the modified BIOS file, a corresponding error message is generated, thereby prompting that the key currently being used for the encryption operation is incorrect and subsequent encryption operations cannot be performed.

[0077] Step S24: generating a BIOS file in the hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, and obtaining the encrypted BIOS file in the hpm format.

[0078] Step S25: calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format.

[0079] Step S26: Send the named BIOS file in the hpm format to the target client to complete the modification of the target BIOS logo.

[0080] Among them, for more specific processing procedures of the above steps S21, S24, S25, and S26, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0081] It can be seen that, in the embodiment of the present application, when it is monitored that the pre-created logo modification script is called, the logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format, and then determine whether the key in the pre-created configuration file matches the modified BIOS file. If they match, the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the configuration file to obtain the encrypted BIOS file in bin format, and a BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file to obtain the encrypted BIOS file in hpm format, and then the pre-created renaming script is called to rename the file name of the encrypted BIOS file in hpm format to obtain the named BIOS file in hpm format, and finally the named BIOS file in hpm format is sent to the target client to complete the modification of the target BIOS logo. After obtaining the modified BIOS file in the bin format, the embodiment of the present application first determines whether the key in the configuration file matches the modified BIOS file. If they match, an encryption operation is performed. By adding this judgment mechanism, the smooth encryption operation of the BIOS file can be ensured, thereby ensuring the smooth execution of the BIOS logo modification, and avoiding the failure of the logo modification caused by key mismatch. In addition, the present application can solve the problem of multiple compilations and repeated tests caused by directly modifying the logo in the code, saving a lot of time, and solving the problem of the BIOS logo modification tool being difficult to operate, so that operators with no BIOS experience can also get started directly and quickly, and quickly generate BIOS files with multiple logos in just a few minutes. At the same time, by directly compiling and generating BIOS files with multiple logos in the code, human operation errors are avoided, the interference of external factors is minimized, and the accuracy of the operation is greatly improved. The entire set of operation procedures can be implemented without excessive manpower investment, greatly reducing the waste of BIOS manpower and reducing the cost of BIOS development.

[0082] Correspondingly, the embodiment of the present application also discloses a BIOS logo modification device, see Figure 3 As shown, the device comprises:

[0083] The logo modification module 11 is used to, when monitoring that a pre-created logo modification script is called, execute a logo modification command through a BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to a target BIOS logo, thereby obtaining a modified BIOS file in bin format;

[0084] The encryption module 12 is used to encrypt the modified BIOS file by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain the encrypted BIOS file in bin format;

[0085] A format conversion module 13, configured to generate a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, to obtain an encrypted BIOS file in the hpm format;

[0086] A renaming module, used for calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format;

[0087] The file sending module 14 is used to send the named BIOS file in the hpm format to the target client to complete the modification of the target BIOS logo.

[0088] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0089] It can be seen that in the embodiment of the present application, when it is monitored that the pre-created logo modification script is called, the logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format; the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain the encrypted BIOS file in bin format; the BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file to obtain the encrypted BIOS file in hpm format; the pre-created renaming script is called to rename the file name of the encrypted BIOS file in hpm format to obtain the named BIOS file in hpm format; the named BIOS file in hpm format is sent to the target client to complete the modification of the target BIOS logo. The embodiment of the present application pre-creates a logo modification script and a configuration file containing a key, and encapsulates a BIOS logo modification tool in the script. In this way, when it is detected that the logo modification script is called, the BIOS logo in the original BIOS file in bin format can be modified by the BIOS logo modification tool encapsulated in the logo modification script, and the modified BIOS file is encrypted by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file, and then an encrypted BIOS file in hpm format corresponding to the encrypted BIOS file in bin format is generated based on the configuration file, and finally the file name of the encrypted BIOS file in hpm format is renamed, and the named BIOS file is sent to the target client. It can be seen that the embodiment of the present application realizes the modification of the BIOS logo in the original BIOS file by the BIOS logo modification tool directly by calling the script, and there is no need to perform repeated code testing, thereby saving a lot of time. In addition, the problem that the BIOS logo modification tool is not easy to operate is solved, so that inexperienced operators can also quickly get started, with a high degree of automation, thereby avoiding human operation errors, minimizing the interference of external factors, greatly improving the accuracy of the modification, and thus improving the success rate of the BIOS logo modification, as well as the entire BIOS It improves the efficiency of logo modification and reduces labor costs and BIOS development costs.

[0090] In some specific embodiments, the logo modification module 11 may specifically include:

[0091] A file size determination unit, used to determine the size of the original BIOS file in bin format to obtain the file size;

[0092] A command determining unit, configured to determine a logo modification command for modifying a BIOS logo in the original BIOS file according to the file size;

[0093] The logo modification unit is used to execute the logo modification command through the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtain the modified BIOS file in bin format.

[0094] In some specific embodiments, the encryption module 12 may specifically include:

[0095] A first judging unit, configured to judge whether a key in a pre-created configuration file matches the modified BIOS file;

[0096] The first file encryption unit is used to encrypt the modified BIOS file by using the encryption tool in the modified BIOS file and the key in the configuration file if the key in the configuration file matches the modified BIOS file, so as to obtain the encrypted BIOS file in bin format.

[0097] In some specific embodiments, the BIOS logo modification device may further include:

[0098] The first file generation unit is used to call a file creation script to integrate relevant information for generating an hpm format BIOS file into a target script using a file operation command, and generate a configuration file for generating an hpm format BIOS file based on the target script; wherein the relevant information includes a key, attribute and format for generating an hpm format BIOS file.

[0099] In some specific embodiments, the BIOS logo modification device may further include:

[0100] A command conversion unit, used for converting the command in the logo modification script into a mak command, obtaining a mak file, and adding a logo modification mark in the mak file;

[0101] Correspondingly, after the renaming module, the following may also be included:

[0102] The second judging unit is used to judge whether there is a logo modification mark in the pre-created mak file;

[0103] a command execution unit, configured to execute a mak command in the mak file if a logo modification identifier exists in the mak file, so as to modify the BIOS logo in the original BIOS file in the bin format to a new BIOS logo, and obtain a first BIOS file in the bin format;

[0104] A second file encryption unit, used to encrypt the first BIOS file by using the encryption tool in the first BIOS file and the key in the configuration file to obtain a second BIOS file in a bin format;

[0105] A second file generating unit, configured to generate a BIOS file in an hpm format corresponding to the second BIOS file based on the configuration file, to obtain a third BIOS file in an hpm format;

[0106] a renaming unit, configured to call the renaming script to rename the file name of the third BIOS file in the hpm format to obtain a new BIOS file in the hpm format;

[0107] The file sending unit is used to send the new BIOS file in the hpm format to the corresponding client to complete the modification of the new BIOS logo.

[0108] In some specific embodiments, the BIOS logo modification device may further include:

[0109] A third judgment unit, used to judge whether there is a BIOS logo to be modified;

[0110] The first deleting unit is used to delete the logo modification mark in the mak file if the BIOS logo to be modified does not exist.

[0111] In some specific embodiments, the format conversion module 13 may further include:

[0112] The second deleting unit is used to call a deletion command through the logo modification script to delete the modified BIOS file in the bin format.

[0113] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0114] Figure 4A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the BIOS logo modification method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0115] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0116] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0117] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the BIOS logo modification method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0118] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed BIOS logo modification method. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, and no further description will be given here.

[0119] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which implements the steps of the BIOS logo modification method disclosed above when executed by a processor.

[0120] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0121] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0122] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0123] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0124] The above is a detailed introduction to a BIOS logo modification method, device, equipment and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for modifying the BIOS logo. It is characterized in that include: When it is detected that the pre-created logo modification script is called, a logo modification command is executed through a BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to a target BIOS logo, thereby obtaining a modified BIOS file in bin format; Encrypt the modified BIOS file using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain an encrypted BIOS file in a bin format; Generate a BIOS file in hpm format corresponding to the encrypted BIOS file in bin format based on the configuration file, and obtain the encrypted BIOS file in hpm format; Calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format; The named BIOS file in the hpm format is sent to the target client to complete the modification of the target BIOS logo.

2. The BIOS logo modification method according to claim 1, It is characterized in that The BIOS logo modification tool encapsulated in the logo modification script executes the logo modification command to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, and obtains the modified BIOS file in bin format, including: Determine the size of the original BIOS file in bin format and get the file size; Determining a logo modification command for modifying a BIOS logo in the original BIOS file according to the file size; The logo modification command is executed by the BIOS logo modification tool encapsulated in the logo modification script to modify the BIOS logo in the original BIOS file in bin format to the target BIOS logo, thereby obtaining a modified BIOS file in bin format.

3. The BIOS logo modification method according to claim 1, It is characterized in that The method of encrypting the modified BIOS file by using the encryption tool in the modified BIOS file and the key in the pre-created configuration file to obtain the encrypted BIOS file in bin format includes: Determining whether the key in the pre-created configuration file matches the modified BIOS file; If the key in the configuration file matches the modified BIOS file, the modified BIOS file is encrypted using the encryption tool in the modified BIOS file and the key in the configuration file to obtain an encrypted BIOS file in a bin format.

4. The BIOS logo modification method according to claim 1, It is characterized in that Also includes: Call a file creation script to integrate relevant information for generating an hpm format BIOS file into a target script using file operation commands, and generate a configuration file for generating an hpm format BIOS file based on the target script; wherein the relevant information includes a key, attribute and format for generating an hpm format BIOS file.

5. The BIOS logo modification method according to claim 1, It is characterized in that Also includes: Convert the commands in the logo modification script into mak commands to obtain a mak file, and add a logo modification identifier to the mak file; Correspondingly, after renaming the file name of the encrypted BIOS file in the hpm format to obtain the named BIOS file in the hpm format, the method further includes: Determine whether there is a logo modification mark in the pre-created mak file; If the logo modification mark exists in the mak file, execute the mak command in the mak file to modify the BIOS logo in the original BIOS file in bin format to the new BIOS logo, and obtain the first BIOS file in bin format; Encrypting the first BIOS file using the encryption tool in the first BIOS file and the key in the configuration file to obtain a second BIOS file in bin format; Generate a BIOS file in the hpm format corresponding to the second BIOS file based on the configuration file, and obtain a third BIOS file in the hpm format; Calling the renaming script to rename the file name of the third BIOS file in the hpm format to obtain a new BIOS file in the hpm format; The new BIOS file in the hpm format is sent to the corresponding client to complete the modification of the new BIOS logo.

6. The BIOS logo modification method according to claim 5, It is characterized in that Also includes: Determine whether there is a BIOS logo to be modified; If there is no BIOS logo to be modified, the logo modification mark in the mak file is deleted.

7. The BIOS logo modification method according to any one of claims 1 to 6, It is characterized in that The method further comprises: generating a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, and obtaining the encrypted BIOS file in the hpm format; The delete command is called through the logo modification script to delete the modified BIOS file in the bin format.

8. A BIOS logo modification device, It is characterized in that include: A logo modification module, for, when detecting that a pre-created logo modification script is called, executing a logo modification command through a BIOS logo modification tool encapsulated in the logo modification script, so as to modify the BIOS logo in the original BIOS file in bin format to a target BIOS logo, and obtain a modified BIOS file in bin format; An encryption module, used to encrypt the modified BIOS file using an encryption tool in the modified BIOS file and a key in a pre-created configuration file to obtain an encrypted BIOS file in a bin format; A format conversion module, used to generate a BIOS file in an hpm format corresponding to the encrypted BIOS file in the bin format based on the configuration file, to obtain the encrypted BIOS file in the hpm format; A renaming module, used for calling a pre-created renaming script to rename the file name of the encrypted BIOS file in the hpm format to obtain a named BIOS file in the hpm format; The file sending module is used to send the named BIOS file in the hpm format to the target client to complete the modification of the target BIOS logo.

9. An electronic device, It is characterized in that The method comprises a processor and a memory; wherein the processor implements the BIOS logo modification method according to any one of claims 1 to 7 when executing the computer program stored in the memory.

10. A computer-readable storage medium, It is characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the BIOS logo modification method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Basic input and output system updating method and device, equipment and medium

    CN119598472A