CN110597523A - Board card firmware burning method, device and system, board card and terminal equipment - Google Patents

Board card firmware burning method, device and system, board card and terminal equipment Download PDF

Info

Publication number
CN110597523A
CN110597523A CN201910728896.8A CN201910728896A CN110597523A CN 110597523 A CN110597523 A CN 110597523A CN 201910728896 A CN201910728896 A CN 201910728896A CN 110597523 A CN110597523 A CN 110597523A
Authority
CN
China
Prior art keywords
board card
bootstrap program
firmware
burning
level
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
CN201910728896.8A
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.)
Uditech Co Ltd
Original Assignee
Uditech 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 Uditech Co Ltd filed Critical Uditech Co Ltd
Priority to CN201910728896.8A priority Critical patent/CN110597523A/en
Publication of CN110597523A publication Critical patent/CN110597523A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • 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/4401Bootstrapping

Abstract

The embodiment of the application is suitable for the technical field of chip burning and discloses a board card firmware burning method, a device, a system, a board card, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: after detecting that a first-stage bootstrap program of the board card to be programmed is started, sending a second-stage bootstrap program to the board card to be programmed through the first-stage bootstrap program; acquiring board card information sent by a second-level bootstrap program, wherein the board card information is obtained by performing board card identification after a board card to be programmed runs the second-level bootstrap program; searching a target firmware matched with the board card information; and sending a programming instruction and the target firmware to the board card to be programmed, wherein the programming instruction is used for indicating the board card to be programmed to perform firmware programming through a second-level bootstrap program. The embodiment of the application realizes automatic burning of the board card firmware, improves burning efficiency, is not easy to make mistakes, and has more remarkable effect especially for scenes with multiple board cards and multiple firmware.

Description

Board card firmware burning method, device and system, board card and terminal equipment
Technical Field
The application belongs to the technical field of chip burning, and particularly relates to a board card firmware burning method, device, system, board card, terminal equipment and computer readable storage medium.
Background
At present, most single chips support ISP (In System programming), that is, after the single chip is installed on a circuit board, a firmware is programmed and written through a specific interface, wherein the firmware refers to a Program run by the single chip on the circuit board, and generally includes codes and data, and the Program is stored on the circuit board, and may be inside the single chip or outside the single chip.
In actual production, the ISP process relies on manual operations, specifically: in the burning process, a burning person is required to manually select a file to be burned, and particularly under the conditions of a plurality of singlechips and a plurality of firmware, the operation is very complicated, and the burning efficiency is low. In addition, the firmware to be programmed also often includes a plurality of files such as application programs and configuration data, and the files of each single chip microcomputer are required to be programmed step by step, so that the operation process is very complicated, and errors are very easy to occur.
That is, the current firmware burning method depends on manual operation, and has low efficiency and is easy to make mistakes. This problem is particularly acute in the case of multiple cards and multiple firmware.
Disclosure of Invention
The embodiment of the application provides a board card firmware burning method, a device, a system, a board card, terminal equipment and a computer readable storage medium, so as to solve the problems that the existing firmware burning method depends on manual operation, the efficiency is low, and errors are easy to occur.
In a first aspect, an embodiment of the present application provides a method for burning a board fastener, including:
after detecting that a first-level bootstrap program of a board card to be programmed is started, a programming host sends a second-level bootstrap program to the board card to be programmed through the first-level bootstrap program;
acquiring board card information sent by the second-level bootstrap program, wherein the board card information is obtained by performing board card identification on the board card to be programmed after the second-level bootstrap program is run;
searching a target firmware matched with the board card information;
and sending a programming instruction and the target firmware to the board to be programmed, wherein the programming instruction is used for indicating the board to be programmed to perform firmware programming through the second-level bootstrap program.
With reference to the first aspect, in a possible implementation manner, before the sending, by the first-stage boot program, the second-stage boot program to the board to be programmed, the method further includes:
the burning host is connected with the board card to be burned through a communication port supported by a first-level bootstrap program, and detects whether the first-level bootstrap program in the board card to be burned is started through the communication port;
if so, the burning host communicates with the first-level bootstrap program, and the step of sending a second-level bootstrap program to the board card to be burned through the first-level bootstrap program is carried out.
With reference to the first aspect, in a possible implementation manner, before the sending, by the first-stage boot program, the second-stage boot program to the board to be programmed, the method further includes:
acquiring burning configuration information configured by a user;
and searching the corresponding firmware to be burned according to the burning configuration information, and establishing an association relation between the board card to be burned and the firmware to be burned.
In a second aspect, an embodiment of the present application provides a method for burning a board card firmware, including:
running a pre-stored first-stage bootstrap program on the board card to be programmed;
receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program;
the second-level bootstrap program is operated, the board card identification is carried out through the second-level bootstrap program, the board card information is obtained, and the board card information is sent to the burning host;
receiving a target firmware and a programming instruction sent by the programming host, wherein the target firmware is found by the programming host through the board card information;
and according to the programming instruction and the target firmware, performing firmware programming through the second-level bootstrap program.
In a third aspect, an embodiment of the present application provides a board fastener burning device, including:
the first sending module is used for sending a second-level bootstrap program to the board card to be programmed after detecting that a first-level bootstrap program of the board card to be programmed is started;
the acquisition module is used for acquiring board card information sent by the second-level bootstrap program, wherein the board card information is obtained by performing board card identification on the board card to be programmed after the second-level bootstrap program is run;
the searching module is used for searching the target firmware matched with the board card information;
and the second sending module is used for sending a programming instruction and the target firmware to the board card to be programmed, wherein the programming instruction is used for indicating the board card to be programmed to perform firmware programming through the second-level bootstrap program.
In a fourth aspect, an embodiment of the present application provides a board fastener burning device, including:
the operation module is used for operating a pre-stored first-level bootstrap program;
the first receiving module is used for receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program;
the board card identification module is used for operating the second-level bootstrap program, identifying the board card through the second-level bootstrap program, obtaining board card information and sending the board card information to the burning host;
the second receiving module is used for receiving the target firmware and the programming instruction sent by the programming host, wherein the target firmware is found by the programming host through the board card information;
and the burning module is used for burning the firmware through the second-level bootstrap program according to the burning instruction and the target firmware.
In a fifth aspect, an embodiment of the present application provides a system for burning a card firmware, including a burning host and at least one card to be burned;
the burning host is used for sending a second-level bootstrap program to the board card to be burned through the first-level bootstrap program after detecting that the first-level bootstrap program of the board card to be burned is started; acquiring board card information sent by the second-level bootstrap program; searching a target firmware matched with the board card information; sending a programming instruction and the target firmware to the board card to be programmed;
the board card to be programmed is used for operating the pre-stored first-stage bootstrap program; receiving the second-level bootstrap program sent by the burning host through the first-level bootstrap program; the second-level bootstrap program is operated, the board card identification is carried out through the second-level bootstrap program, the board card information is obtained, and the board card information is sent to the burning host; receiving the target firmware and the programming instruction sent by the programming host; and according to the programming instruction and the target firmware, performing firmware programming through the second-level bootstrap program.
In a sixth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the method according to any one of the above first aspects.
In a seventh aspect, an embodiment of the present application provides a board, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to the second aspect is implemented.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the method according to the first or second aspect.
According to the embodiment of the application, the board card identification is automatically carried out through the second-level bootstrap program of the board card to be burned, the board card information is obtained, the corresponding target firmware is found out according to the board card information, the target firmware is burned through the second-level bootstrap program, the automatic burning of the board card firmware is realized, the burning efficiency is improved, the error is not easy to occur, and especially for the scenes of multiple board cards and multiple firmware, the effect is more obvious.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic block diagram of a structure of a board card firmware burning system according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a process of a board card firmware burning method according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a structure of a board fastener burning apparatus according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a process of a board card firmware burning method according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a structure of a board fastener burning device according to an embodiment of the present application;
FIG. 6 is a schematic interaction flow diagram provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a board card provided in the embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "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 should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The technical solutions provided in the embodiments of the present application will be described below by specific embodiments.
Example one
Referring to fig. 1, a schematic block diagram of a structure of a board card firmware burning system provided in the embodiment of the present application may include a burning host 11 and at least one board card 12 to be burned.
The burning host is used for sending a second-level bootstrap program to the board card to be burned through the first-level bootstrap program after detecting that the first-level bootstrap program of the board card to be burned is started; acquiring board card information sent by a second-level bootstrap program; searching a target firmware matched with the board card information; sending a programming instruction and target firmware to a board card to be programmed;
the board card to be programmed is used for operating a pre-stored first-level bootstrap program; receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program; running a second-level bootstrap program, carrying out board card identification through the second-level bootstrap program, obtaining board card information, and sending the board card information to the burning host; receiving target firmware and a programming instruction sent by a programming host; and according to the programming instruction and the target firmware, performing firmware programming through a second-level boot program.
It should be noted that the burning host may be, but is not limited to, a computer, and a corresponding burning program may be run on the burning host, and data transmission and information exchange are performed between the burning program and the board card to be burned. The burning host is also stored with corresponding firmware to be burned and a second-level bootstrap program.
The first level boot program may refer to a boot program in a chip on the board to be programmed, and the boot program is a ROM program of a chip manufacturer. Wherein the chip storing the first-level boot program is mounted on the target circuit board. The burning host machine can transmit the second-level bootstrap program to the board card to be burned through communication with the first-level bootstrap program on the board card to be burned, and control the board card to be burned to operate the second-level bootstrap program.
The second-level boot program is a general program, that is, the second-level boot program can run on all boards to be programmed. After the board card to be programmed runs the second-level bootstrap program, the second-level bootstrap program can read the board card information of the board card to be programmed, communicate with the programming program on the programming host, and send the identified board card information to the programming host. In addition, the second-level boot program can also receive the target firmware and the programming instruction sent by the programming host, and guide the target firmware to be programmed and run according to the programming instruction.
It should be noted that there may be more than one board card to be burned, and there may be more than one firmware to be burned for each board card. In the scene of multiple board cards and multiple firmware, after the burning of one board card is finished, the burning of the next board card can be carried out; and a plurality of board cards can be burned at the same time.
Therefore, the automatic burning of the board firmware can be realized through the board firmware burning system in the embodiment of the application, the burning efficiency is improved, and errors are not easy to occur.
Example two
In this embodiment, a description will be given of a recording process performed by a recording host.
Referring to fig. 2, a schematic block diagram of a flow of a method for burning a board card firmware provided in an embodiment of the present application may include the following steps:
step S201, after detecting that the first-level bootstrap program of the board card to be programmed is started, sending the second-level bootstrap program to the board card to be programmed through the first-level bootstrap program.
Specifically, if it is detected that the first-level boot program on the board to be programmed is started, the programming host communicates with the first-level boot program, and sends the second-level boot program pre-stored in the programming host to the board to be programmed.
In some embodiments, before the sending the second-level boot program to the board to be programmed by the first-level boot program, the method may further include: the burning host is connected with the board card to be burned through a communication port supported by a first-level bootstrap program, and detects whether the first-level bootstrap program in the board card to be burned is started through the communication port; if so, the burning host communicates with the first-level bootstrap program, and the step of sending the second-level bootstrap program to the board card to be burned through the first-level bootstrap program is carried out; if not, returning to the step of detecting whether the first-level bootstrap program in the board to be programmed is started through the communication port supported by the first-level bootstrap program.
The interface supported by the first level bootstrap program may be, for example, a USB interface or a UART interface. After the connection, the burning host can detect whether the first-level bootstrap program in the board card to be burned is started, and after the first-level bootstrap program in the board card to be burned is started, the burning host communicates with the first-level bootstrap program to burn the second-level bootstrap program pre-stored in the burning host to the board card to be burned.
It should be noted that the step of connecting the burning host and the board card to be burned can be performed manually by a manufacturer or automatically by a machine.
Before the burning of the board firmware, a manufacturer can configure the burning environment. In some embodiments, before the sending the second-level boot program to the board to be programmed by the first-level boot program, the method may further include: acquiring burning configuration information configured by a user; and searching the corresponding firmware to be burned according to the burning configuration information, and establishing an association relation between the board card to be burned and the firmware to be burned.
Specifically, a programming program is run on the programming host, and then relevant files required to be programmed are set. For example, the written files are classified according to the product models, and the files of each model are stored in the same directory, so that a user can set the related files required to be written by selecting the product models.
It should be noted that the burning configuration information may include product model information, information of a board to be burned, and information of firmware to be burned. After the user configures the relevant information, the burning host can find out the corresponding firmware according to the burning configuration information, and establish the association relationship between the board card and the firmware, so that the needed firmware can be found out through the board card information later.
Step S202, board card information sent by the second-level bootstrap program is obtained, and the board card information is obtained by performing board card identification after the board card to be programmed runs the second-level bootstrap program.
Specifically, after the burning host sends the second-level bootstrap program to the board card to be burned, the board card to be burned is controlled to run the second-level bootstrap program through communication with the first-level bootstrap program on the board card to be burned. And the second-level bootstrap program automatically identifies the board card information and returns the board card information to the burning host.
The board card information may be, but is not limited to, a board card ID. And allocating a unique ID to each board card in advance, and providing a uniform board card ID interface on a board card circuit to be programmed in advance for a second-level bootstrap program to read the ID information of the board card through ID identification.
And step S203, searching the target firmware matched with the board card information.
The target firmware is firmware to be burned. Specifically, when the board card information is the board card ID, the board card type is determined through the board card ID, and then the associated firmware is searched through the board card type, and the searched firmware is used as the target firmware.
And S204, sending a programming instruction and the target firmware to the board to be programmed, wherein the programming instruction is used for indicating the board to be programmed to perform firmware programming through a second-level bootstrap program.
Specifically, after the target firmware is found out, the burning host generates a corresponding burning command, and sends the burning command and the target firmware to the board card to be burned. And after the board card to be programmed receives the target firmware and the programming instruction, programming the target firmware through a second-level bootstrap program according to the programming instruction so as to complete firmware programming.
It is worth pointing out that, when the multi-board-card multi-firmware needs to be burned, after one board card is burned, the connection between the current board card and the burning host can be disconnected, and then the next board card to be burned is connected, and the above steps S201 to S204 are repeated until all the board cards are burned. Of course, a plurality of plate members can be burned at the same time.
Correspondingly, referring to a schematic block diagram of a structure of a board firmware burning device shown in fig. 3, the board firmware burning device may include:
the first sending module 31 is configured to send the second-level bootstrap program to the board to be programmed after detecting that the first-level bootstrap program of the board to be programmed is started.
The obtaining module 32 is configured to obtain board card information sent by the second-level bootstrap program, where the board card information is obtained by performing board card identification after the board card to be programmed runs the second-level bootstrap program.
And the searching module 33 is used for searching the target firmware matched with the board information.
The second sending module 34 is configured to send a programming instruction and a target firmware to the board to be programmed, where the programming instruction is used to instruct the board to be programmed to perform firmware programming through the second-level boot program.
In a possible implementation manner, the apparatus may further include:
the detection module is used for being connected with the board card to be programmed through a communication port supported by the first-level bootstrap program and detecting whether the first-level bootstrap program in the board card to be programmed is started or not through the communication port; if so, the burning host communicates with the first-level bootstrap program, and the step of sending the second-level bootstrap program to the board card to be burned through the first-level bootstrap program is carried out.
In a possible implementation manner, the apparatus may further include:
and the configuration information acquisition module is used for acquiring the burning configuration information configured by the user.
And the establishing module is used for searching the corresponding firmware to be burned according to the burning configuration information and establishing the association relationship between the board card to be burned and the firmware to be burned.
It should be noted that the board firmware burning device and the board firmware burning method correspond to each other one to one, and for related introduction, reference is made to the above corresponding contents, which are not described herein again.
The method for burning the board firmware can realize automatic burning of the board firmware, improves burning efficiency, is not prone to error, and particularly has an obvious effect on a scene of burning multiple boards and multiple firmware.
EXAMPLE III
In this embodiment, a related process of burning the board firmware will be described from the board end.
Referring to fig. 4, a schematic block diagram of a flow of a method for burning a board card firmware provided in an embodiment of the present application may include the following steps:
and step S401, operating a pre-stored first-level bootstrap program.
It should be noted that the first-level boot program may be a ROM program of a chip manufacturer itself, or a corresponding program developed by a client itself, and is not limited herein. And the board card to be programmed is provided with a corresponding chip.
Step S402, receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program.
Specifically, after the burning host detects that the first-level boot program of the board to be burned is started, the burning host communicates with the first-level boot program and sends the second-level boot program to the board to be burned.
And S403, operating a second-level bootstrap program, performing board card identification through the second-level bootstrap program, obtaining board card information, and sending the board card information to the burning host.
And S404, receiving the target firmware and the programming command sent by the programming host, wherein the target firmware is found by the programming host through the board card information.
And S405, according to the programming instruction and the target firmware, firmware programming is carried out through a second-level boot program.
It should be noted that the burning process related to the board card end corresponds to the process related to the burning host end, and related descriptions refer to the corresponding contents above, which are not described herein again.
Correspondingly, referring to a schematic block diagram of a structure of a board firmware burning device shown in fig. 5, the board firmware burning device may include:
the running module 51 is used for running a pre-stored first-level bootstrap program.
The first receiving module 52 is configured to receive the second-level boot program sent by the burning host through the first-level boot program.
And the board card identification module 53 is configured to run a second-level bootstrap program, perform board card identification through the second-level bootstrap program, obtain board card information, and send the board card information to the burning host.
And a second receiving module 54, configured to receive the target firmware and the programming instruction sent by the burning host, where the target firmware is the firmware found by the burning host through the board information.
And the burning module 55 is configured to perform firmware burning through the second-level boot program according to the burning instruction and the target firmware.
It should be noted that the above board firmware burning device corresponds to the above board firmware burning method in fig. 4 one to one, and the related contents refer to the above corresponding contents, which are not described herein again.
The method for burning the board firmware can realize automatic burning of the board firmware, improves burning efficiency, is not prone to error, and particularly has an obvious effect on a scene of burning multiple boards and multiple firmware.
Example four
In the process of burning the card firmware, interaction between the burning host and the card to be burned is needed. The present embodiment explains the interactive process.
Referring to the interaction flow diagram shown in fig. 6, the board firmware burning method may include the following steps:
step S601, the burning host detects whether the first-level boot program of the board card to be burned is started. If yes, the process proceeds to step S602, and if no, the process returns to step S601.
Step S602, the burning host sends the pre-stored second boot program to the board card to be burned.
And step S603, running a second bootstrap program on the board to be programmed, and identifying the board through the second bootstrap program to obtain board information.
And step S604, the board card to be programmed sends the board card information to the programming host.
Step S605, the burning host finds out the corresponding target firmware according to the board card information.
And step S606, the burning host sends the target firmware and the burning command to the board card to be burnt.
Step S607, the board to be programmed carries out the programming of the target firmware according to the programming instruction.
It should be noted that, for the same or similar points in this embodiment as those in the above embodiments, please refer to the corresponding contents above, and the details are not repeated herein.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It should be noted that, for the content of information interaction, execution process, and the like between the above-mentioned devices or modules, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, and details are not described here.
EXAMPLE five
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 7, the terminal device 7 of this embodiment includes: at least one processor 70, a memory 71, and a computer program 72 stored in the memory 71 and operable on the at least one processor 70, wherein the processor 70 executes the computer program 72 to implement the steps in each embodiment of the method for burning the board firmware on the host side as described above.
The terminal device 7 may be, but is not limited to, a desktop computer, a notebook, an embedded computing device, an industrial personal computer, or other type of computer device. The terminal device may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is only an example of the terminal device 7, and does not constitute a limitation to the terminal device 7, and may include more or less components than those shown, or combine some components, or different components, for example, and may further include input/output devices, network access devices, and the like.
The Processor 70 may be a Central Processing Unit (CPU), and the Processor 70 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. In other embodiments, the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
Fig. 8 is a schematic structural diagram of a board card according to an embodiment of the present application. As shown in fig. 8, the board card 8 of this embodiment includes: at least one processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, wherein the processor 80 executes the computer program 82 to implement the steps in each embodiment of the method for burning card firmware at any card end.
The board may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of the board 8, and does not constitute a limitation on the board 8, and may include more or less components than those shown, or combine some components, or different components, such as input/output devices, network access devices, and the like.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the board 8, such as a hard disk or a memory of the board 8. In other embodiments, the memory 81 may also be an external storage device of the board 8, such as a plug-in hard disk provided on the board 8, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 81 may include both an internal storage unit of the board 8 and an external storage device. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the application provides a computer program product, and when the computer program product runs on a terminal device or a board card, the steps in the embodiment of the board card firmware burning method can be realized when the terminal device or the board card is executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. 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, devices 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.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for burning a board card firmware is characterized by comprising the following steps:
after detecting that a first-stage bootstrap program of a board card to be programmed is started, sending a second-stage bootstrap program to the board card to be programmed through the first-stage bootstrap program;
acquiring board card information sent by the second-level bootstrap program, wherein the board card information is obtained by performing board card identification on the board card to be programmed after the second-level bootstrap program is run;
searching a target firmware matched with the board card information;
and sending a programming instruction and the target firmware to the board to be programmed, wherein the programming instruction is used for indicating the board to be programmed to perform firmware programming through the second-level bootstrap program.
2. The method for burning the board firmware of claim 1, wherein before the sending the second-level boot program to the board to be burned by the first-level boot program, the method further comprises:
the burning host is connected with the board card to be burned through a communication port supported by the first-level bootstrap program, and detects whether the first-level bootstrap program in the board card to be burned is started through the communication port;
if so, the burning host communicates with the first-level bootstrap program, and the step of sending a second-level bootstrap program to the board card to be burned through the first-level bootstrap program is carried out.
3. The method for burning card firmware of claim 1, before the sending the second-level boot program to the card to be burned through the first-level boot program, further comprising:
acquiring burning configuration information configured by a user;
and searching the corresponding firmware to be burned according to the burning configuration information, and establishing an association relation between the board card to be burned and the firmware to be burned.
4. A method for burning a board card firmware is characterized by comprising the following steps:
running a pre-stored first-level bootstrap program;
receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program;
the second-level bootstrap program is operated, the board card identification is carried out through the second-level bootstrap program, the board card information is obtained, and the board card information is sent to the burning host;
receiving a target firmware and a programming instruction sent by the programming host, wherein the target firmware is found by the programming host through the board card information;
and according to the programming instruction and the target firmware, performing firmware programming through the second-level bootstrap program.
5. A board card firmware burning device is characterized by comprising:
the first sending module is used for sending a second-level bootstrap program to the board card to be programmed after detecting that a first-level bootstrap program of the board card to be programmed is started;
the acquisition module is used for acquiring board card information sent by the second-level bootstrap program, wherein the board card information is obtained by performing board card identification on the board card to be programmed after the second-level bootstrap program is run;
the searching module is used for searching the target firmware matched with the board card information;
and the second sending module is used for sending a programming instruction and the target firmware to the board card to be programmed, wherein the programming instruction is used for indicating the board card to be programmed to perform firmware programming through the second-level bootstrap program.
6. A board card firmware burning device is characterized by comprising:
the operation module is used for operating a pre-stored first-level bootstrap program;
the first receiving module is used for receiving a second-level bootstrap program sent by the burning host through the first-level bootstrap program;
the board card identification module is used for operating the second-level bootstrap program, identifying the board card through the second-level bootstrap program, obtaining board card information and sending the board card information to the burning host;
the second receiving module is used for receiving the target firmware and the programming instruction sent by the programming host, wherein the target firmware is found by the programming host through the board card information;
and the burning module is used for burning the firmware through the second-level bootstrap program according to the burning instruction and the target firmware.
7. A system for burning a board card firmware is characterized by comprising a burning host and at least one board card to be burned;
the burning host is used for sending a second-level bootstrap program to the board card to be burned through the first-level bootstrap program after detecting that the first-level bootstrap program of the board card to be burned is started; acquiring board card information sent by the second-level bootstrap program; searching a target firmware matched with the board card information; sending a programming instruction and the target firmware to the board card to be programmed;
the board card to be programmed is used for operating the pre-stored first-stage bootstrap program; receiving the second-level bootstrap program sent by the burning host through the first-level bootstrap program; the second-level bootstrap program is operated, the board card identification is carried out through the second-level bootstrap program, the board card information is obtained, and the board card information is sent to the burning host; receiving the target firmware and the programming instruction sent by the programming host; and according to the programming instruction and the target firmware, performing firmware programming through the second-level bootstrap program.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 when executing the computer program.
9. A board comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of claim 4 when executing the computer program.
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 to 3 or 4.
CN201910728896.8A 2019-08-08 2019-08-08 Board card firmware burning method, device and system, board card and terminal equipment Pending CN110597523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910728896.8A CN110597523A (en) 2019-08-08 2019-08-08 Board card firmware burning method, device and system, board card and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910728896.8A CN110597523A (en) 2019-08-08 2019-08-08 Board card firmware burning method, device and system, board card and terminal equipment

Publications (1)

Publication Number Publication Date
CN110597523A true CN110597523A (en) 2019-12-20

Family

ID=68853665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910728896.8A Pending CN110597523A (en) 2019-08-08 2019-08-08 Board card firmware burning method, device and system, board card and terminal equipment

Country Status (1)

Country Link
CN (1) CN110597523A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190621A (en) * 2019-12-23 2020-05-22 深圳优地科技有限公司 Firmware burning method, device, system, terminal equipment and storage medium
CN111414176A (en) * 2020-03-17 2020-07-14 上海辛格林纳新时达电机有限公司 Program burning method, program burning device, electronic equipment and storage medium
CN111596929A (en) * 2020-04-21 2020-08-28 创芯工坊科技(深圳)有限公司 Burning method, device, system, equipment and medium
CN111930417A (en) * 2020-07-27 2020-11-13 长沙景嘉微电子股份有限公司 Method, device, terminal and medium for identifying Flash by GPU firmware
CN112114831A (en) * 2020-09-16 2020-12-22 天津津航计算技术研究所 Firmware programming implementation method based on UART interface
CN113159674A (en) * 2021-04-01 2021-07-23 杭州涂鸦信息技术有限公司 Material information creating method, material management device and storage medium
CN113377389A (en) * 2021-06-30 2021-09-10 西安诺瓦星云科技股份有限公司 Data processing method and device, computer readable storage medium and processor
CN114238062A (en) * 2021-12-24 2022-03-25 湖南云箭智能科技有限公司 Board card burning device performance analysis method, device, equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645920A (en) * 2013-12-19 2014-03-19 深圳市捷顺科技实业股份有限公司 Embedded system program burning method and system
CN106569839A (en) * 2015-10-08 2017-04-19 华为技术有限公司 Circuit board and firmware burning method therefor
CN107885510A (en) * 2017-11-03 2018-04-06 北京思诺信安科技有限公司 It is a kind of can simultaneously burning two CSTR replication tool and method for burn-recording
CN109460239A (en) * 2017-09-06 2019-03-12 深圳市中兴微电子技术有限公司 A kind of method, system and the replication tool of more veneer burnings
CN109656583A (en) * 2018-12-28 2019-04-19 北京深思数盾科技股份有限公司 Method for burning chip, host computer and chip burn-recording system
CN109669705A (en) * 2018-12-19 2019-04-23 四川虹美智能科技有限公司 A kind of method and system of programming firmware

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645920A (en) * 2013-12-19 2014-03-19 深圳市捷顺科技实业股份有限公司 Embedded system program burning method and system
CN106569839A (en) * 2015-10-08 2017-04-19 华为技术有限公司 Circuit board and firmware burning method therefor
CN109460239A (en) * 2017-09-06 2019-03-12 深圳市中兴微电子技术有限公司 A kind of method, system and the replication tool of more veneer burnings
CN107885510A (en) * 2017-11-03 2018-04-06 北京思诺信安科技有限公司 It is a kind of can simultaneously burning two CSTR replication tool and method for burn-recording
CN109669705A (en) * 2018-12-19 2019-04-23 四川虹美智能科技有限公司 A kind of method and system of programming firmware
CN109656583A (en) * 2018-12-28 2019-04-19 北京深思数盾科技股份有限公司 Method for burning chip, host computer and chip burn-recording system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190621A (en) * 2019-12-23 2020-05-22 深圳优地科技有限公司 Firmware burning method, device, system, terminal equipment and storage medium
CN111414176A (en) * 2020-03-17 2020-07-14 上海辛格林纳新时达电机有限公司 Program burning method, program burning device, electronic equipment and storage medium
CN111414176B (en) * 2020-03-17 2024-03-19 上海辛格林纳新时达电机有限公司 Program burning method, device, electronic equipment and storage medium
CN111596929B (en) * 2020-04-21 2023-12-01 创芯工坊科技(深圳)有限公司 Burning method, device, system, equipment and medium
CN111596929A (en) * 2020-04-21 2020-08-28 创芯工坊科技(深圳)有限公司 Burning method, device, system, equipment and medium
CN111930417A (en) * 2020-07-27 2020-11-13 长沙景嘉微电子股份有限公司 Method, device, terminal and medium for identifying Flash by GPU firmware
CN112114831B (en) * 2020-09-16 2023-08-01 天津津航计算技术研究所 Firmware programming realization method based on UART interface
CN112114831A (en) * 2020-09-16 2020-12-22 天津津航计算技术研究所 Firmware programming implementation method based on UART interface
CN113159674A (en) * 2021-04-01 2021-07-23 杭州涂鸦信息技术有限公司 Material information creating method, material management device and storage medium
CN113159674B (en) * 2021-04-01 2024-03-05 杭州涂鸦信息技术有限公司 Material information creation method, material management device and storage medium
CN113377389A (en) * 2021-06-30 2021-09-10 西安诺瓦星云科技股份有限公司 Data processing method and device, computer readable storage medium and processor
CN114238062A (en) * 2021-12-24 2022-03-25 湖南云箭智能科技有限公司 Board card burning device performance analysis method, device, equipment and readable storage medium
CN114238062B (en) * 2021-12-24 2024-03-05 湖南云箭智能科技有限公司 Board card burning device performance analysis method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
US7725613B2 (en) Device installation with host controller consideration
CN103593281B (en) Test macro and method of testing
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
CN103412769A (en) External card parameter configuration method, equipment and system
CN110334144B (en) Message display method, device, computer equipment and storage medium
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN105824678A (en) Method and device for installing operating system
CN114003538A (en) Intelligent network card and identification method thereof
CN103020225B (en) A kind of CPU type identifier method and hardware detection system
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
US8086834B2 (en) System and method for populating a dedicated system service repository for an information handling system
CN112231251B (en) Board card slot identification method and device, communication equipment and readable storage medium
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN111930395B (en) Program downloading method of intelligent terminal and intelligent terminal
CN104484211A (en) Method and device for sharing mirror image document
CN111049717A (en) Variable acquisition method and equipment
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN103034719B (en) CPU type identifier method, equipment and hardware detection system
CN113778482A (en) Dynamic updating method of running program, embedded controller and electronic equipment
CN112003837B (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
WO2021036417A1 (en) Android-based gps module adaptation method and apparatus, device, and storage medium
CN110457187B (en) TPC-E test method and test server capable of conveniently running based on backup test data
CN112417012A (en) Data processing method and system

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: 20191220

RJ01 Rejection of invention patent application after publication