CN111782282B - Start program loading method and device, electronic equipment and storage medium - Google Patents

Start program loading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111782282B
CN111782282B CN202010589072.XA CN202010589072A CN111782282B CN 111782282 B CN111782282 B CN 111782282B CN 202010589072 A CN202010589072 A CN 202010589072A CN 111782282 B CN111782282 B CN 111782282B
Authority
CN
China
Prior art keywords
executable file
program
loading
configuration information
output result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010589072.XA
Other languages
Chinese (zh)
Other versions
CN111782282A (en
Inventor
王兴辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhicheauto Technology Beijing Co ltd
Original Assignee
Zhicheauto Technology Beijing 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 Zhicheauto Technology Beijing Co ltd filed Critical Zhicheauto Technology Beijing Co ltd
Priority to CN202010589072.XA priority Critical patent/CN111782282B/en
Publication of CN111782282A publication Critical patent/CN111782282A/en
Application granted granted Critical
Publication of CN111782282B publication Critical patent/CN111782282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

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

Abstract

The embodiment of the disclosure discloses a method and a device for loading a starting program, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring configuration information of at least one device; establishing at least one sub-process based on configuration information of at least one device; based on the at least one subprocess, obtaining an output result of an executable file of at least one device; loading a startup procedure of the at least one device based on an output result of the executable file of the at least one device. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the equipment in a mode of acquiring the configuration information, and can separate the executable file from the code of the downloading tool in the system, thereby simplifying the development process of the system. In addition, if the chip manufacturer of the device updates the code downloaded by the starting program, only the executable file is required to be updated independently, and a downloading tool in the system is not required to be recompiled.

Description

Start program loading method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technology, and in particular, to a method and apparatus for loading a startup program, an electronic device, and a storage medium.
Background
A Boot program Boot is a piece of applet that runs before the operating system kernel runs. Through this applet, we can initialize the hardware device, bringing the system's hardware and software environment to a proper state to prepare the correct environment for the final call to the operating system kernel. For example, the boot program boot obtained by downloading is loaded to the embedded electronic equipment such as a central control, an instrument, a ring-looking device and the like of the new energy automobile to initialize the boot program boot.
In carrying out the present disclosure, the inventors found that: in general, the Boot program Boot is seriously dependent on the hardware implementation of the device, and a developer needs to load the reference codes downloaded by the Boot program Boot of different devices into the program of the developer to modify and debug, so that time and labor are wasted, and if the development language of the reference codes is different from that of the developer, the debugging process is more complicated.
Disclosure of Invention
The present disclosure has been made in order to solve the above technical problems. The embodiment of the disclosure provides a method and a device for loading a starting program, electronic equipment and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided a method for loading a boot program, including:
acquiring configuration information of at least one device;
establishing at least one sub-process based on configuration information of the at least one device;
based on the at least one subprocess, obtaining an output result of an executable file of the at least one device;
loading a startup procedure of the at least one device based on an output result of the executable file of the at least one device.
Optionally, in the above embodiments of the present disclosure, before obtaining the configuration information of at least one device, the method further includes:
determining an interface function corresponding to an application program of the at least one device;
and determining configuration information of at least one device based on the interface function corresponding to the application program of the at least one device.
Optionally, in the above embodiments of the present disclosure, the obtaining, based on an interface function corresponding to an application program of the at least one device, configuration information of the at least one device includes:
determining whether the at least one device is in communication with a computer based on an interface function corresponding to an application of the at least one device;
configuration information of the at least one device is obtained in response to the at least one device communicating with the computer.
Optionally, in the above method embodiments of the present disclosure, the establishing at least one sub-process based on the configuration information of the at least one device includes:
acquiring an executable file of the at least one device based on configuration information of the at least one device;
the at least one sub-process is established based on the executable file of the at least one device.
Optionally, in the above embodiments of the present disclosure, the obtaining, based on the at least one sub-process, an output result of an executable file of the at least one device includes:
starting an executable file of the at least one device based on the at least one sub-process;
establishing sub-interprocess communication of the at least one device;
based on the sub-process communication of the at least one device, an output result of the executable file of the at least one device is obtained.
Optionally, in the above embodiments of the present disclosure, the loading the startup procedure of the at least one device based on the output result of the executable file of the at least one device includes:
if the output result of the executable file of the at least one device accords with a preset result, calling the executable file of the at least one device, and loading a starting program of the at least one device;
and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
Optionally, in the above method embodiments of the present disclosure, the method further includes: and displaying the output result of the executable file of the at least one device and the loading progress and loading state of the starting program of the at least one device.
According to another aspect of the embodiments of the present disclosure, there is provided a startup procedure loading device, including:
the acquisition module is used for acquiring configuration information of at least one device;
the establishing module is used for establishing at least one subprocess based on the configuration information of the at least one device;
the output module is used for obtaining an output result of the executable file of the at least one device based on the at least one subprocess;
and the loading module is used for loading the starting program of the at least one device based on the output result of the executable file of the at least one device.
Optionally, in the above embodiments of the present disclosure, before the obtaining module, the method further includes:
a first determining module, configured to determine an interface function corresponding to an application program of the at least one device;
and the second determining module is used for determining the configuration information of the at least one device based on the interface function corresponding to the application program of the at least one device.
Optionally, in the above embodiments of the present disclosure, the acquiring module includes:
a determining unit, configured to determine whether the at least one device communicates with the computer based on an interface function corresponding to an application program of the at least one device;
a first obtaining unit, configured to obtain configuration information of the at least one device in response to the at least one device communicating with the computer.
Optionally, in the above embodiments of the present disclosure, the establishing module includes:
a second obtaining unit, configured to obtain an executable file of the at least one device based on configuration information of the at least one device;
and the first establishing unit is used for establishing the at least one subprocess based on the executable file of the at least one device.
Optionally, in the above device embodiments of the disclosure, the output module includes:
a starting unit, configured to start an executable file of the at least one device based on the at least one sub-process;
a second establishing unit, configured to establish sub-process-to-process communication of the at least one device;
and the obtaining unit is used for obtaining the output result of the executable file of the at least one device based on the sub-process communication of the at least one device.
Optionally, in the above embodiments of the present disclosure, the loading module is specifically configured to:
if the output result of the executable file of the at least one device accords with a preset result, calling the executable file of the at least one device, and loading a starting program of the at least one device;
and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
Optionally, in the above device embodiments of the disclosure, the method further includes: and the display module is used for displaying the output result of the executable file of the at least one device and the loading progress and loading state of the starting program of the at least one device.
According to yet another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the startup procedure loading method according to any one of the embodiments of the present disclosure.
According to still another aspect of the embodiments of the present disclosure, there is provided an electronic device including: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instruction from the memory and execute the instruction to implement the startup procedure loading method according to any one of the foregoing embodiments.
Based on the method and the device for loading the startup procedure, the electronic equipment and the storage medium provided by the embodiments of the present disclosure, configuration information of at least one device is obtained; establishing at least one sub-process based on configuration information of at least one device; based on the at least one subprocess, obtaining an output result of an executable file of at least one device; loading a startup procedure of the at least one device based on an output result of the executable file of the at least one device. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the equipment in a mode of acquiring the configuration information, and can separate the executable file from the code of the downloading tool in the system, thereby simplifying the development process of the system. In addition, if the chip manufacturer of the device updates the code downloaded by the starting program, only the executable file is required to be updated independently, and a downloading tool in the system is not required to be recompiled.
The technical scheme of the present disclosure is described in further detail below through the accompanying drawings and examples.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing embodiments thereof in more detail with reference to the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the disclosure, and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure, without limitation to the disclosure. In the drawings, like reference numerals generally refer to like parts or steps.
Fig. 1 is a flowchart of a method for loading a boot program according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flow chart illustrating a method for loading a boot program according to another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart of a method for loading a boot program according to another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart of a method for loading a boot program according to still another exemplary embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a boot loader according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of an electronic device provided in an exemplary embodiment of the present disclosure.
Detailed Description
Hereinafter, example embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present disclosure and not all of the embodiments of the present disclosure, and that the present disclosure is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in embodiments of the present disclosure are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present disclosure, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in the presently disclosed embodiments may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in this disclosure is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the front and rear association objects are an or relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the present disclosure may be applicable to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with the terminal device, computer system, server, or other electronic device include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the foregoing, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
FIG. 1 is a flowchart of a method for loading a boot program provided by an exemplary embodiment of the present disclosure. The embodiment can be applied to an electronic device, as shown in fig. 1, and the method for loading the startup procedure includes the following steps:
s102, acquiring configuration information of at least one device.
Wherein the configuration information is used to represent an application startup path of the device.
S104, establishing at least one sub-process based on the configuration information of at least one device.
The subprocess is used for representing the process of downloading programs by the boot program of the execution device.
S106, based on the at least one subprocess, obtaining an output result of the executable file of the at least one device.
Wherein the executable file is used to represent a program file executed in a sub-process.
S108, loading a starting program of at least one device based on the output result of the executable file of the at least one device.
In the embodiment of the disclosure, if the output result of the executable file of at least one device meets the preset result, invoking the executable file of at least one device, and loading the starting program of at least one device; and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
In a specific example, configuration information of the device a provided by a chip manufacturer is obtained, an executable file of the device a may be obtained from the configuration information, for example, an executable program downloaded by a boot loader, an output result 0 of the executable file operated by the device a is obtained by establishing a subprocess X, and since the output result 0 does not conform to a preset result 1 specified by a downloading tool in a computer, it is explained that the executable program downloaded by the boot loader fails to be operated, and the output result is fed back to a worker for modification, for example: if the result is only the reason of the preset result identification, the output result 0 of the executable file can be directly modified to be 1, so that the downloading tool can correctly identify the output result of the loader. If the output result accords with the preset result specified by the downloading tool in the computer, the boot starting program is indicated to successfully download the executable program, and the system can directly call the executable file to load codes in the executable file.
Based on the method for loading the startup procedure provided by the above embodiment of the present disclosure, configuration information of at least one device is obtained; establishing at least one sub-process based on configuration information of at least one device; based on the at least one subprocess, obtaining an output result of an executable file of at least one device; loading a startup procedure of the at least one device based on an output result of the executable file of the at least one device. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the equipment in a mode of acquiring the configuration information, and can separate the executable file from the code of the downloading tool in the system, thereby simplifying the development process of the system. In addition, if the chip manufacturer of the device updates the code downloaded by the starting program, only the executable file is required to be updated independently, and a downloading tool in the system is not required to be recompiled.
As shown in fig. 2, in some optional implementations, based on the embodiment shown in fig. 1, before step S102, the method may specifically further include:
s100, determining an interface function corresponding to an application program of at least one device.
The interface function corresponding to the application program of the device is used for automatically capturing access and reading configuration information of the corresponding USB device, for example, a registered USB interface device change notification message processing function called during application program initialization.
S101, determining configuration information of at least one device based on an interface function corresponding to an application program of the at least one device.
In an embodiment of the present disclosure, determining whether at least one device is in communication with a computer based on an interface function corresponding to an application of the at least one device; configuration information for at least one device is obtained in response to the at least one device communicating with a computer.
For example, the downloading tool in the system can determine whether the device USB interface is connected to the computer by registering the USB interface device to change the message processing function, if so, the executable file configured by the manufacturer for the device can be obtained through the configuration information of the device.
As shown in fig. 3, in some optional implementations, based on the embodiment shown in fig. 1, step S104 may specifically include:
s301, acquiring an executable file of at least one device based on configuration information of the at least one device.
S302, at least one subprocess is established based on the executable file of at least one device.
As shown in fig. 4, in some optional implementations, based on the embodiment shown in fig. 1, step S106 may specifically include:
s401, starting an executable file of at least one device based on at least one subprocess.
S402, establishing sub-process-to-process communication of at least one device.
S403, obtaining an output result of the executable file of the at least one device based on the sub-process communication of the at least one device.
In a specific example, after the computer starts the downloading tool, the executable file information configured by the manufacturer for the device is obtained through the configuration file, a sub-process of the device is established for starting the executable file of the device, and sub-process communication of the device, that is, a pipeline is established, and an output result of the executable program configured by the manufacturer is obtained through the pipeline. Therefore, the embodiment of the disclosure can directly compile the reference code of the boot program boot provided by the manufacturer into the executable file, and acquire the output result of the executable file (boot program boot) by establishing communication (pipeline) between the sub-processes.
In addition, the embodiment of the disclosure may further include: and displaying the output result of the executable file of at least one device and the loading progress and loading state of the starting program of at least one device so that a worker can know the loading progress and loading state of the starting program of the current device. Any of the boot program loading methods provided by the embodiments of the present disclosure may be performed by any suitable device having data processing capabilities, including, but not limited to: terminal equipment, servers, etc. Alternatively, any of the startup procedure loading methods provided by the embodiments of the present disclosure may be executed by a processor, such as the processor executing any of the startup procedure loading methods mentioned by the embodiments of the present disclosure by calling corresponding instructions stored in a memory. And will not be described in detail below.
Fig. 5 is a schematic structural diagram of a boot loader according to an exemplary embodiment of the present disclosure. The testing device can be arranged in electronic equipment such as terminal equipment and a server, and the like, and the starting program loading method of any embodiment of the disclosure is executed. As shown in fig. 5, the startup procedure loading device includes:
an obtaining module 51, configured to obtain configuration information of at least one device;
a building module 52, configured to build at least one sub-process based on the configuration information of the at least one device;
an output module 53, configured to obtain an output result of the executable file of the at least one device based on the at least one sub-process;
and a loading module 54, configured to load a startup procedure of the at least one device based on an output result of the executable file of the at least one device.
Based on the starting program loading device provided by the embodiment of the disclosure, configuration information of at least one device is obtained; establishing at least one sub-process based on configuration information of at least one device; based on the at least one subprocess, obtaining an output result of an executable file of at least one device; loading a startup procedure of the at least one device based on an output result of the executable file of the at least one device. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the equipment in a mode of acquiring the configuration information, and can separate the executable file from the code of the downloading tool in the system, thereby simplifying the development process of the system. In addition, if the chip manufacturer of the device updates the code downloaded by the starting program, only the executable file is required to be updated independently, and a downloading tool in the system is not required to be recompiled.
In some embodiments, before the obtaining module 51, the method further includes:
a first determining module, configured to determine an interface function corresponding to an application program of the at least one device;
and the second determining module is used for determining the configuration information of the at least one device based on the interface function corresponding to the application program of the at least one device.
In some embodiments, the acquiring module includes:
a determining unit, configured to determine whether the at least one device communicates with the computer based on an interface function corresponding to an application program of the at least one device;
a first obtaining unit, configured to obtain configuration information of the at least one device in response to the at least one device communicating with the computer.
In some embodiments, the establishing module includes:
a second obtaining unit, configured to obtain an executable file of the at least one device based on configuration information of the at least one device;
and the first establishing unit is used for establishing the at least one subprocess based on the executable file of the at least one device.
In some of these embodiments, the output module comprises:
a starting unit, configured to start an executable file of the at least one device based on the at least one sub-process;
a second establishing unit, configured to establish sub-process-to-process communication of the at least one device;
and the obtaining unit is used for obtaining the output result of the executable file of the at least one device based on the sub-process communication of the at least one device.
In some embodiments, the loading module is specifically configured to:
if the output result of the executable file of the at least one device accords with a preset result, calling the executable file of the at least one device, and loading a starting program of the at least one device;
and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
In some of these implementations, the disclosed embodiments further include: and the display module is used for displaying the output result of the executable file of the at least one device and the loading progress and loading state of the starting program of the at least one device.
In addition, the embodiment of the disclosure also provides an electronic device, which comprises: a processor; a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the startup procedure loading method according to any one of the embodiments of the present disclosure.
Next, an electronic device according to an embodiment of the present disclosure is described with reference to fig. 6. The electronic device may be either or both of the first device and the second device, or a stand-alone device independent thereof, which may communicate with the first device and the second device to receive the acquired input signals therefrom. Fig. 6 illustrates a block diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 6, the electronic device includes one or more processors 61 and memory 62.
The processor 61 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities and may control other components in the electronic device to perform the desired functions.
Memory 62 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that may be executed by the processor 61 to implement the method of loading a start-up program and/or other desired functions of the software program of the various embodiments of the present disclosure as described above. In one example, the electronic device may further include: an input device 63 and an output device 64, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 63 may also include, for example, a keyboard, a mouse, and the like.
The output device 64 can output various information to the outside. The output device 64 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 6, with components such as buses, input/output interfaces, etc. omitted for simplicity. In addition, the electronic device may include any other suitable components depending on the particular application.
In addition to the methods and apparatus described above, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method of loading a boot program of a software program of the various embodiments described herein.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium, on which computer program instructions are stored, which, when being executed by a processor, cause the processor to perform steps in a method for loading a boot program of a software program of the above-described various embodiments of the present disclosure.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present disclosure have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present disclosure. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, since the disclosure is not necessarily limited to practice with the specific details described.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, apparatuses, devices, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices and methods of the present disclosure, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered equivalent to the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the disclosure to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. A method for loading a boot program, comprising:
acquiring configuration information of at least one device;
acquiring an executable file of the at least one device based on configuration information of the at least one device;
establishing at least one subprocess based on an executable file of the at least one device, wherein the subprocess is used for representing a process of executing a starting program downloading program of the device;
starting an executable file of the at least one device based on the at least one sub-process;
establishing sub-interprocess communication of the at least one device;
obtaining an output result of an executable file of the at least one device based on the sub-inter-process communication of the at least one device;
if the output result of the executable file of the at least one device accords with a preset result, calling the executable file of the at least one device, and loading a starting program of the at least one device;
and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
2. The method of claim 1, wherein prior to obtaining configuration information for at least one device, further comprising:
determining an interface function corresponding to an application program of the at least one device;
and determining configuration information of at least one device based on the interface function corresponding to the application program of the at least one device.
3. The method of claim 2, wherein the obtaining the configuration information of the at least one device based on the interface function corresponding to the application of the at least one device comprises:
determining whether the at least one device is in communication with a computer based on an interface function corresponding to an application of the at least one device;
configuration information of the at least one device is obtained in response to the at least one device communicating with the computer.
4. A method according to any one of claims 1-3, further comprising: and displaying the output result of the executable file of the at least one device and the loading progress and loading state of the starting program of the at least one device.
5. A boot program loading apparatus, comprising:
the acquisition module is used for acquiring configuration information of at least one device;
the establishing module is used for establishing at least one subprocess based on the configuration information of the at least one device;
the output module is used for obtaining an output result of the executable file of the at least one device based on the at least one subprocess;
the loading module is used for loading a starting program of the at least one device based on the output result of the executable file of the at least one device;
the establishing module comprises: a second obtaining unit, configured to obtain an executable file of the at least one device based on configuration information of the at least one device; a first establishing unit, configured to establish the at least one sub-process based on an executable file of the at least one device, where the sub-process is used to represent a process of executing a boot program downloading program of the device;
the output module includes: a starting unit, configured to start an executable file of the at least one device based on the at least one sub-process; a second establishing unit, configured to establish sub-process-to-process communication of the at least one device; an obtaining unit, configured to obtain an output result of an executable file of the at least one device based on sub-inter-process communication of the at least one device;
the loading module is specifically configured to: if the output result of the executable file of the at least one device accords with a preset result, calling the executable file of the at least one device, and loading a starting program of the at least one device; and if the output result of the executable file of the at least one device does not accord with the preset result, modifying the executable file of the at least one device to ensure that the output result of the executable file of the at least one device accords with the preset result.
6. The apparatus of claim 5, wherein prior to the obtaining module, further comprising:
a first determining module, configured to determine an interface function corresponding to an application program of the at least one device;
and the second determining module is used for determining the configuration information of the at least one device based on the interface function corresponding to the application program of the at least one device.
7. The apparatus of claim 6, wherein the acquisition module comprises:
a determining unit, configured to determine whether the at least one device communicates with the computer based on an interface function corresponding to an application program of the at least one device;
a first obtaining unit, configured to obtain configuration information of the at least one device in response to the at least one device communicating with the computer.
8. The apparatus according to any one of claims 5-7, further comprising: and the display module is used for displaying the output result of the executable file of the at least one device and the loading progress and loading state of the starting program of the at least one device.
9. A computer readable storage medium, characterized in that the storage medium stores a computer program for executing the start-up program loading method according to any of the preceding claims 1-4.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for loading a boot program according to any of the preceding claims 1-4.
CN202010589072.XA 2020-06-24 2020-06-24 Start program loading method and device, electronic equipment and storage medium Active CN111782282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010589072.XA CN111782282B (en) 2020-06-24 2020-06-24 Start program loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010589072.XA CN111782282B (en) 2020-06-24 2020-06-24 Start program loading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111782282A CN111782282A (en) 2020-10-16
CN111782282B true CN111782282B (en) 2023-12-08

Family

ID=72760102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010589072.XA Active CN111782282B (en) 2020-06-24 2020-06-24 Start program loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111782282B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880487A (en) * 2012-09-10 2013-01-16 曙光信息产业(北京)有限公司 Method for programming NIC (network interface card) firmware with one click
CN104392152A (en) * 2014-12-10 2015-03-04 深圳市捷顺科技实业股份有限公司 Start-up method of embedded equipment, embedded equipment, server and system
CN104516805A (en) * 2013-09-29 2015-04-15 无敌科技(西安)有限公司 Method for monitoring computer executable program by client
CN107430650A (en) * 2015-03-02 2017-12-01 因温特奥股份公司 Computer program is protected to resist reverse-engineering
CN107466455A (en) * 2017-03-15 2017-12-12 深圳大趋智能科技有限公司 POS safe verification method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5796952A (en) * 1997-03-21 1998-08-18 Dot Com Development, Inc. Method and apparatus for tracking client interaction with a network resource and creating client profiles and resource database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880487A (en) * 2012-09-10 2013-01-16 曙光信息产业(北京)有限公司 Method for programming NIC (network interface card) firmware with one click
CN104516805A (en) * 2013-09-29 2015-04-15 无敌科技(西安)有限公司 Method for monitoring computer executable program by client
CN104392152A (en) * 2014-12-10 2015-03-04 深圳市捷顺科技实业股份有限公司 Start-up method of embedded equipment, embedded equipment, server and system
CN107430650A (en) * 2015-03-02 2017-12-01 因温特奥股份公司 Computer program is protected to resist reverse-engineering
CN107466455A (en) * 2017-03-15 2017-12-12 深圳大趋智能科技有限公司 POS safe verification method and device

Also Published As

Publication number Publication date
CN111782282A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN110908738B (en) Method and device for running small program
US7269464B2 (en) System, method and computer program product for providing an interface for instantiating additional programmable logic controller functionality
WO2016177341A1 (en) Interface calling method and device, and terminal
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN110955409B (en) Method and device for creating resources on cloud platform
CN113050984A (en) Resource calling method and device, electronic equipment and storage medium
CN111008017A (en) Oclint-based file to be submitted prequalification method and related components
CN110704025A (en) Method and device for generating coding specification tool, storage medium and electronic equipment
CN107491316B (en) Expansion method and device of baseboard management controller and electronic equipment
CN111475148A (en) Third-party dependent library isolation method and device, electronic equipment and storage medium
CN111782282B (en) Start program loading method and device, electronic equipment and storage medium
CN106775608B (en) Method and device for realizing independent system process
CN111367745A (en) Memory pressure testing method and system without support of operating system and related components
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
CN113434213B (en) Program running method and device of terminal
CN112596751A (en) Compiling method, terminal, server and storage medium of application program installation package
CN113342553A (en) Data acquisition method and device, electronic equipment and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN112463262A (en) Android system GPS module self-adaption method and terminal
CN112052051A (en) Plug-in processing method, device, equipment and storage medium
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN115469943B (en) Detection method and device for command execution of JAVA virtual terminal
CN113032169B (en) Resource calling method, equipment and storage medium of cross-language software system
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN113344549B (en) Project engineering document updating 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
GR01 Patent grant
GR01 Patent grant