CN113076157A - Startup sign customizing method, system, terminal and storage medium - Google Patents

Startup sign customizing method, system, terminal and storage medium Download PDF

Info

Publication number
CN113076157A
CN113076157A CN202110322726.7A CN202110322726A CN113076157A CN 113076157 A CN113076157 A CN 113076157A CN 202110322726 A CN202110322726 A CN 202110322726A CN 113076157 A CN113076157 A CN 113076157A
Authority
CN
China
Prior art keywords
subfile
new
file
binary file
target
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.)
Pending
Application number
CN202110322726.7A
Other languages
Chinese (zh)
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110322726.7A priority Critical patent/CN113076157A/en
Publication of CN113076157A publication Critical patent/CN113076157A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, a system, a terminal and a storage medium for customizing a starting-up mark, comprising the following steps: specifying a storage path of a target binary file and a target picture; utilizing an automatic script to call a file splitting tool to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture; calling a picture replacing tool to replace the original mark picture in the first subfile with a target picture to obtain a new first subfile; compiling the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by a customized starting mark. The invention greatly saves manpower, improves efficiency and reduces the occurrence of a new version to aggravate maintenance tasks.

Description

Startup sign customizing method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a method, a system, a terminal and a storage medium for customizing a startup sign.
Background
In recent years, with the development of services such as big data and cloud computing, servers are becoming popular in various industries, and customer demands are increasing year by year. Different logos are selected and used by different type servers and clients according to different application scenes, the core firmware BIOS needs to change the logos according to the client requirements to adapt to different client requirements, the conventional method for modifying the logos through codes wastes time and cannot ensure quality.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for customizing a boot flag, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for customizing a boot flag, including:
specifying a storage path of a target binary file and a target picture;
utilizing an automatic script to call a file splitting tool to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture;
calling a picture replacing tool to replace the original mark picture in the first subfile with a target picture to obtain a new first subfile;
compiling the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by a customized starting mark.
Further, the method further comprises:
and saving the automatic script tool kit, the target binary file and the target picture to the same path.
Further, the method further comprises:
adding a checksum to the new first subfile before compiling the new first subfile and the second subfile into a new binary file.
Further, the method further comprises:
the new binary file is encrypted with the custom key.
In a second aspect, the present invention provides a system for customizing a boot flag, including:
a target specifying unit configured to specify a storage path of a target binary file and a target picture;
the file splitting unit is configured to use an automatic script to call a file splitting tool to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture;
the image replacing unit is configured to call an image replacing tool to replace an original mark image in the first subfile with a target image to obtain a new first subfile;
and the file compiling unit is configured to compile the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by the customized starting mark.
Further, the system further comprises:
and the file storage unit is configured for storing the automation script toolkit, the target binary file and the target picture to the same path.
Further, the system further comprises:
and the verification adding unit is used for adding a verification code to the new first subfile before compiling the new first subfile and the second subfile into a new binary file.
Further, the system further comprises:
and the file encryption unit is configured to encrypt the new binary file by using the customized key.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the method, the system, the terminal and the storage medium for customizing the startup sign realize automatic customization of the startup sign through the automatic script without manually modifying codes, greatly save manpower, improve efficiency and reduce aggravated maintenance tasks of new versions. And customized check and encryption can be carried out on the startup mark customized file, so that the modified bin file can be checked and used on a special server machine type, and the customized degree and the service quality are improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution body in fig. 1 may be a system for customizing a boot flag.
As shown in fig. 1, the method includes:
step 110, appointing a storage path of a target binary file and a target picture;
step 120, calling a file splitting tool by using an automatic script to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture;
step 130, calling a picture replacing tool to replace an original mark picture in the first subfile with a target picture to obtain a new first subfile;
step 140, compiling the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by the customized start-up mark.
In order to facilitate understanding of the present invention, the principle of the method for customizing the boot flag according to the present invention will be further described with reference to the following embodiments.
Specifically, the method for customizing the boot flag includes:
and S1, specifying a storage path of the target binary file and the target picture.
The automation script toolkit, the target binary file (bin file to be replaced) and the target picture (logo picture) are placed under the same path. And designating the storage paths of the target binary file and the target picture as homologous files in the automation script.
And S2, calling a file splitting tool by using an automatic script to split the target binary file into a first subfile and a second subfile, wherein the first subfile stores the original mark picture.
And executing an automatic script, wherein the automatic script calls a file splitting tool (SPS Fitc tool) to split the target binary file into a BIOS ROM (first subfile) and an ME (second subfile), and the modified logo picture (original mark picture) is in the BIOS ROM part.
And S3, calling a picture replacing tool to replace the original mark picture in the first subfile with the target picture to obtain a new first subfile.
And the automatic script calls a file replacement tool (changelogwin tool) to replace the original logo picture with a target picture logo customized by a customer and generate a new ROM file. The ChangeLogoWin tool mainly has the function of replacing a logo picture in a BIOS ROM with a user customized logo picture, has a GUI interface and is convenient to operate.
And calling a BiosSign tool to add a key (check code) to the modified ROM file, and ensuring that the check is successful when the AFU tool is used for refreshing.
S4, compiling the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by the customized start-up mark.
The key-added ROM file is recompiled into a new bin file by calling a file compilation tool (SPS Fitc tool). The encrypt tool is then invoked to encrypt the newly compiled bin file. The encryption algorithm adopted by the encryption tool can be customized by a customer, and the key adopted by encryption is also provided by the customer, so that the customized logo picture encryption service is realized. And issuing the encrypted bin file as a file used by the boot identifier.
As shown in fig. 2, the system 200 includes:
a target specifying unit 210 configured to specify a storage path of a target binary file and a target picture;
a file splitting unit 220, configured to call a file splitting tool by using an automation script to split a target binary file into a first subfile and a second subfile, where the first subfile stores an original tag picture;
a picture replacing unit 230 configured to invoke a picture replacing tool to replace an original flag picture in the first subfile with a target picture, so as to obtain a new first subfile;
a file compiling unit 240 configured to compile the new first subfile and the second subfile into a new binary file by using a file compiling tool, where the new binary file is a binary file used by the customized boot flag.
Optionally, as an embodiment of the present invention, the system further includes:
and the file storage unit is configured for storing the automation script toolkit, the target binary file and the target picture to the same path.
Optionally, as an embodiment of the present invention, the system further includes:
and the verification adding unit is used for adding a verification code to the new first subfile before compiling the new first subfile and the second subfile into a new binary file.
Optionally, as an embodiment of the present invention, the system further includes:
and the file encryption unit is configured to encrypt the new binary file by using the customized key.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a method for customizing a boot flag according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention realizes automatic customization of the startup sign through the automatic script without manually modifying the code, greatly saves manpower, improves efficiency and reduces the occurrence of a new version to aggravate maintenance tasks. The customized file of the startup marker can be subjected to customized verification and encryption, the bin file after modification can be verified and used on a special server type, the customized degree and the service quality are improved, the technical effect achieved by the embodiment can be referred to the description above, and the description is omitted here.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for customizing a boot flag, comprising:
specifying a storage path of a target binary file and a target picture;
utilizing an automatic script to call a file splitting tool to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture;
calling a picture replacing tool to replace the original mark picture in the first subfile with a target picture to obtain a new first subfile;
compiling the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by a customized starting mark.
2. The method of claim 1, further comprising:
and saving the automatic script tool kit, the target binary file and the target picture to the same path.
3. The method of claim 1, further comprising:
adding a checksum to the new first subfile before compiling the new first subfile and the second subfile into a new binary file.
4. The method of claim 1, further comprising:
the new binary file is encrypted with the custom key.
5. A system for customizing a boot flag, comprising:
a target specifying unit configured to specify a storage path of a target binary file and a target picture;
the file splitting unit is configured to use an automatic script to call a file splitting tool to split a target binary file into a first subfile and a second subfile, wherein the first subfile stores an original mark picture;
the image replacing unit is configured to call an image replacing tool to replace an original mark image in the first subfile with a target image to obtain a new first subfile;
and the file compiling unit is configured to compile the new first subfile and the second subfile into a new binary file by using a file compiling tool, wherein the new binary file is a binary file used by the customized starting mark.
6. The system of claim 5, further comprising:
and the file storage unit is configured for storing the automation script toolkit, the target binary file and the target picture to the same path.
7. The system of claim 5, further comprising:
and the verification adding unit is used for adding a verification code to the new first subfile before compiling the new first subfile and the second subfile into a new binary file.
8. The system of claim 5, further comprising:
and the file encryption unit is configured to encrypt the new binary file by using the customized key.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202110322726.7A 2021-03-26 2021-03-26 Startup sign customizing method, system, terminal and storage medium Pending CN113076157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110322726.7A CN113076157A (en) 2021-03-26 2021-03-26 Startup sign customizing method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110322726.7A CN113076157A (en) 2021-03-26 2021-03-26 Startup sign customizing method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113076157A true CN113076157A (en) 2021-07-06

Family

ID=76610286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110322726.7A Pending CN113076157A (en) 2021-03-26 2021-03-26 Startup sign customizing method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113076157A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436142A (en) * 2008-12-05 2009-05-20 四川长虹电器股份有限公司 Set-top box starting-up picture changing method
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
US20110129237A1 (en) * 2009-12-01 2011-06-02 Canon Kabushiki Kaisha System, image processing apparatus, image forming apparatus, and method thereof
CN105451060A (en) * 2014-08-26 2016-03-30 深圳市海思半导体有限公司 Boot screen replacing method, boot screen replacing system, mobile terminal and playing terminal
CN105653283A (en) * 2015-12-30 2016-06-08 深圳市金溢科技股份有限公司 Embedded system terminal and boot LOGO picture displaying and changing method thereof
CN108776608A (en) * 2018-06-19 2018-11-09 郑州云海信息技术有限公司 A kind of switching method, device, equipment and the storage medium of LOGO pictures
CN109104623A (en) * 2018-08-03 2018-12-28 珠海经济特区金品电器有限公司 A method of exempt to compile and unravels silk quick replacement boot LOGO
CN109298900A (en) * 2018-10-23 2019-02-01 中国农业银行股份有限公司 A kind of application fractionation and on-demand loading method, apparatus
CN109918136A (en) * 2019-02-27 2019-06-21 努比亚技术有限公司 Boot LOGO processing method, mobile terminal and the storage medium of mobile terminal
CN111399921A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Switching method, device and equipment for server boot logo

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436142A (en) * 2008-12-05 2009-05-20 四川长虹电器股份有限公司 Set-top box starting-up picture changing method
US20110129237A1 (en) * 2009-12-01 2011-06-02 Canon Kabushiki Kaisha System, image processing apparatus, image forming apparatus, and method thereof
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN105451060A (en) * 2014-08-26 2016-03-30 深圳市海思半导体有限公司 Boot screen replacing method, boot screen replacing system, mobile terminal and playing terminal
CN105653283A (en) * 2015-12-30 2016-06-08 深圳市金溢科技股份有限公司 Embedded system terminal and boot LOGO picture displaying and changing method thereof
CN108776608A (en) * 2018-06-19 2018-11-09 郑州云海信息技术有限公司 A kind of switching method, device, equipment and the storage medium of LOGO pictures
CN109104623A (en) * 2018-08-03 2018-12-28 珠海经济特区金品电器有限公司 A method of exempt to compile and unravels silk quick replacement boot LOGO
CN109298900A (en) * 2018-10-23 2019-02-01 中国农业银行股份有限公司 A kind of application fractionation and on-demand loading method, apparatus
CN109918136A (en) * 2019-02-27 2019-06-21 努比亚技术有限公司 Boot LOGO processing method, mobile terminal and the storage medium of mobile terminal
CN111399921A (en) * 2020-03-13 2020-07-10 苏州浪潮智能科技有限公司 Switching method, device and equipment for server boot logo

Similar Documents

Publication Publication Date Title
CN110543328B (en) Cross-platform component management method, system, terminal and storage medium based on Ambari
CN107632827B (en) Method and device for generating installation package of application
CN111897520A (en) Front-end project framework construction method and device, computer equipment and storage medium
CN104750528A (en) Management method and device for components in Android program
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
CN107506284B (en) Log processing method and device
CN108874437B (en) Online cloud updating method for android application program
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN115062307A (en) Open POWER-based program integrity verification method, system, terminal and storage medium
CN113961226A (en) Software development kit repairing method, terminal, server and equipment
CN114327484A (en) Multi-architecture supporting K8S integration and deployment method, system and storage medium
CN113031957A (en) Application program installation method, client, terminal, server and storage medium
CN113076157A (en) Startup sign customizing method, system, terminal and storage medium
CN111984293A (en) Information processing method, device and storage medium
CN113791809B (en) Application exception handling method and device and computer readable storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN110688320A (en) Global variable detection method and device and terminal equipment
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN114721709A (en) Program package generation method, device, storage medium and computer equipment
CN111666596B (en) Data processing method, device and medium
CN111984275A (en) System deployment method, system, terminal and storage medium based on CPU architecture type
CN112394933A (en) Method, device and equipment for replacing theme resources and readable storage medium
CN112199100A (en) Microcode upgrading method and device
CN113268267B (en) Data packet generation method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706

RJ01 Rejection of invention patent application after publication