CN111782282A - Method and device for loading boot program, electronic equipment and storage medium - Google Patents

Method and device for loading boot program, electronic equipment and storage medium Download PDF

Info

Publication number
CN111782282A
CN111782282A CN202010589072.XA CN202010589072A CN111782282A CN 111782282 A CN111782282 A CN 111782282A CN 202010589072 A CN202010589072 A CN 202010589072A CN 111782282 A CN111782282 A CN 111782282A
Authority
CN
China
Prior art keywords
configuration information
executable file
program
loading
sub
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.)
Granted
Application number
CN202010589072.XA
Other languages
Chinese (zh)
Other versions
CN111782282B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/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 start program, an electronic device 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; obtaining an output result of the executable file of the at least one device based on the at least one sub-process; and 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. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the device by 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 equipment updates the codes downloaded by the starting program, only the executable file needs to be updated, and the downloading tool in the system does not need to be recompiled.

Description

Method and device for loading boot program, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method and an apparatus for loading a boot program, an electronic device, and a storage medium.
Background
The Boot program Boot is a small piece of program that runs before the operating system kernel runs. By means of the applet, the hardware device can be initialized, so that the software and hardware environment of the system is brought to a suitable state, so that the correct environment is prepared for the final call of the operating system kernel. For example, the downloaded boot program is loaded to embedded electronic devices such as a central control device, a meter, and a surround view of the new energy automobile to initialize the boot program.
In carrying out the present disclosure, the inventors found that: generally, Boot program Boot depends heavily on device hardware implementation, and developers need to load reference codes downloaded by Boot programs of different devices into their own programs for modification and debugging, which not only wastes time and labor, but also makes debugging process more complicated if the development language used by the reference codes is different from the development language of their own.
Disclosure of Invention
The present disclosure is proposed to solve the above technical problems. The embodiment of the disclosure provides a boot program loading method and device, electronic equipment and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided a boot program loading method, 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;
obtaining an output result of the executable file of the at least one device based on the at least one sub-process;
and 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 method embodiments of the present disclosure, before the obtaining 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 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 each of the method embodiments of the present disclosure, the obtaining configuration information of the at least one device based on an interface function corresponding to an application program of the at least one device includes:
determining whether the at least one device is in communication with the computer based on an interface function corresponding to an application program of the at least one device;
in response to the at least one device communicating with the computer, obtaining configuration information for the at least one device.
Optionally, in each of 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 the configuration information of the at least one device;
establishing the at least one sub-process based on an executable file of the at least one device.
Optionally, in each of the above method embodiments of the present disclosure, the obtaining an output result of the executable file of the at least one device based on the at least one sub-process includes:
based on the at least one sub-process, launching an executable file of the at least one device;
establishing inter-sub-process communication for the at least one device;
obtaining an output result of the executable file of the at least one device based on the inter-sub-process communication of the at least one device.
Optionally, in each of the above method embodiments of the present disclosure, the loading a boot program of the at least one device based on an 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 enable the output result of the executable file of the at least one device to accord with the preset result.
Optionally, in each of the method embodiments of the present disclosure, the method further includes: and displaying an output result of the executable file of the at least one device and the loading progress and the 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 boot program loading apparatus 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;
an output module, 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 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 apparatus embodiments of the present disclosure, before the obtaining module, the method further includes:
the first determining module is used for determining 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 each of the apparatus embodiments of the present disclosure, the obtaining module includes:
a determining unit, configured to determine whether the at least one device is in communication with a 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 each of the apparatus 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;
a first establishing unit, configured to establish the at least one sub-process based on an executable file of the at least one device.
Optionally, in each of the above device embodiments of the present 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 inter-sub-process communication of the at least one device;
an obtaining unit, configured to obtain an output result of the executable file of the at least one device based on inter-sub-process communication of the at least one device.
Optionally, in each of the apparatus 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 enable the output result of the executable file of the at least one device to accord with the preset result.
Optionally, in each of the above apparatus embodiments of the present 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 the loading state of the starting program of the at least one device.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the boot program loading method according to any of the above-mentioned embodiments of the present disclosure.
According to still another aspect of an embodiment of the present disclosure, there is provided an electronic apparatus 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 boot program loading method according to any of the above embodiments.
Based on the boot program loading method and apparatus, the electronic device, and the storage medium provided by the above embodiments of the present disclosure, configuration information of at least one device is acquired; establishing at least one sub-process based on configuration information of at least one device; obtaining an output result of the executable file of the at least one device based on the at least one sub-process; and 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. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the device by 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 equipment updates the codes downloaded by the starting program, only the executable file needs to be updated, and the downloading tool in the system does not need to be recompiled.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in more detail embodiments of the present disclosure with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the 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 principles of the disclosure and not to limit the disclosure. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 is a flowchart illustrating a boot program loading method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a boot program loading method according to another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a boot program loading method according to yet another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a boot program loading method 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 is to be understood that the described embodiments are merely a subset of the embodiments of the present disclosure and not all embodiments of the present disclosure, with the understanding that the present disclosure is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one element from another, and are not intended to imply any particular technical meaning, nor is the necessary logical order between them.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in 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 the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the 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 those 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 numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational 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 electronic devices, such as terminal devices, computer systems, servers, and the like, 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, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, 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 practiced in distributed cloud computing environments where 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 computer system storage media including memory storage devices.
Fig. 1 is a flowchart of a boot loader loading method according to an exemplary embodiment of the present disclosure. The present embodiment can be applied to an electronic device, and as shown in fig. 1, the method for loading a boot program includes the following steps:
s102, obtaining configuration information of at least one device.
The configuration information is used for representing an application program starting path of the equipment.
S104, establishing at least one subprocess based on the configuration information of at least one device.
The subprocess is used for expressing the process of executing the startup program downloading program of the device.
S106, obtaining an output result of the executable file of the at least one device based on the at least one sub-process.
The executable file is used for representing a program file executed in the sub-process.
S108, 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.
In the embodiment of the disclosure, if the output result of the executable file of at least one device meets the preset result, the executable file of at least one device is called to load 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 enable the output result of the executable file of the at least one device to accord with the preset result.
In a specific example, the configuration information of the device a provided by the chip manufacturer is obtained, the configuration information may be obtained into an executable file of the device a, for example, an executable program downloaded through a boot startup program, the sub-process X is established to obtain an output result 0 of the executable file run by the device a, since the output result 0 does not conform to a preset result 1 specified by a download tool in the computer, it indicates that the executable program downloaded by the boot startup program fails to run, and the output result is fed back to the worker for modification, for example: if the reason is only the reason of the preset result identification, the output result 0 of the executable file can be directly modified into 1, so that the downloading tool can correctly recognize the output result of the loader. If the output result meets the preset result specified by the downloading tool in the computer, which indicates that the boot startup program successfully downloads the executable program, the system can directly call the executable file to load the codes in the executable file.
Based on the boot program loading method provided by the above embodiment of the present disclosure, the configuration information of at least one device is obtained; establishing at least one sub-process based on configuration information of at least one device; obtaining an output result of the executable file of the at least one device based on the at least one sub-process; and 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. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the device by 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 equipment updates the codes downloaded by the starting program, only the executable file needs to be updated, and the downloading tool in the system does not need to be recompiled.
As shown in fig. 2, on the basis of the embodiment shown in fig. 1, in some optional implementations, before the step S102, the method may further include:
s100, determining an interface function corresponding to the 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 when the application program is initialized.
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 disclosure, determining whether at least one device is in communication with a computer based on an interface function corresponding to an application program 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 the computer.
For example, a download tool in the system may determine whether the USB interface of the device is connected to the computer by registering the USB interface device change message handling function, and if so, may obtain an executable file configured for the device by the vendor through the configuration information of the device.
As shown in fig. 3, based on the embodiment shown in fig. 1, in some optional implementations, step S104 may specifically include:
s301, acquiring an executable file of at least one device based on the configuration information of the at least one device.
S302, at least one sub-process is established based on the executable file of at least one device.
As shown in fig. 4, based on the embodiment shown in fig. 1, in some optional implementations, step S106 may specifically include:
s401, starting the executable file of at least one device based on at least one sub-process.
S402, establishing communication among the subprocesses of at least one device.
S403, obtaining an output result of the executable file of the at least one device based on the inter-sub-process communication of the at least one device.
In a specific example, after the computer starts the downloading tool, the computer acquires the information of the executable file configured by the manufacturer for the device through the configuration file, establishes a sub-process of the device for starting the executable file of the device, and establishes communication between the sub-processes of the device, that is, a pipeline, and acquires an output result of the executable program configured by the manufacturer 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) by establishing the communication (pipeline) between the sub-processes.
In addition, the embodiments of the present disclosure may further include: and displaying the output result of the executable file of the at least one device and the loading progress and the loading state of the starting program of the at least one device so that a worker can know the loading progress and the loading state of the starting program of the current device. Any of the methods for loading a boot program provided by the embodiments of the present disclosure may be performed by any suitable device having data processing capability, including but not limited to: terminal equipment, a server and the like. Alternatively, any of the methods for loading a boot program provided by the embodiments of the present disclosure may be executed by a processor, for example, the processor may execute any of the methods for loading a boot program mentioned in the embodiments of the present disclosure by calling a corresponding instruction 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 test device may be disposed in an electronic device such as a terminal device or a server, and executes the boot program loading method according to any of the embodiments of the disclosure. As shown in fig. 5, the boot program loading apparatus includes:
an obtaining module 51, configured to obtain configuration information of at least one device;
an establishing module 52, configured to establish 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;
a loading module 54, configured to load a boot program of the at least one device based on an output result of the executable file of the at least one device.
Based on the boot program loading device provided by the above embodiment of the present disclosure, the configuration information of at least one device is acquired; establishing at least one sub-process based on configuration information of at least one device; obtaining an output result of the executable file of the at least one device based on the at least one sub-process; and 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. Therefore, the embodiment of the disclosure directly executes the executable program downloaded from the manufacturer of the device by 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 equipment updates the codes downloaded by the starting program, only the executable file needs to be updated, and the downloading tool in the system does not need to be recompiled.
In some embodiments, before the obtaining module 51, the method further includes:
the first determining module is used for determining 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 obtaining module includes:
a determining unit, configured to determine whether the at least one device is in communication with a 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;
a first establishing unit, configured to establish the at least one sub-process based on an executable file of the at least one device.
In some embodiments, 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 inter-sub-process communication of the at least one device;
an obtaining unit, configured to obtain an output result of the executable file of the at least one device based on inter-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 enable the output result of the executable file of the at least one device to accord with the preset result.
In some of these implementations, embodiments of the present disclosure 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 the loading state of the starting program of the at least one device.
In addition, an embodiment of the present disclosure also provides an electronic device, which includes: 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 boot program loading method according to any of the above embodiments of the present disclosure.
Next, an electronic apparatus 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 separate from them, which stand-alone device 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 in accordance with an embodiment of the disclosure. As shown in fig. 6, the electronic device includes one or more processors 61 and a memory 62.
The processor 61 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform 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), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 61 to implement the startup procedure loading method of the software program of the various embodiments of the present disclosure described above and/or other desired functions. 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 form of connection mechanism (not shown).
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 devices 64 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
In addition to the above-described methods and apparatus, 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 the steps in the methods of startup program loading of software programs of the various embodiments described above in this specification.
The computer program product may write program code for carrying out operations for 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 and 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 having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the boot program loading method of the software program of the various embodiments described above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but 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 include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, 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, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied 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 devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be considered equivalents of 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 embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A boot program loading method is characterized by comprising the following steps:
acquiring configuration information of at least one device;
establishing at least one sub-process based on configuration information of the at least one device;
obtaining an output result of the executable file of the at least one device based on the at least one sub-process;
and 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.
2. The method of claim 1, wherein before obtaining the configuration information of the at least one device, further comprising:
determining an interface function corresponding to an application program of the at least one device;
and 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.
3. The method according to claim 2, wherein the obtaining 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 comprises:
determining whether the at least one device is in communication with the computer based on an interface function corresponding to an application program of the at least one device;
in response to the at least one device communicating with the computer, obtaining configuration information for the at least one device.
4. The method according to any of claims 1-3, wherein the establishing at least one sub-process based on the configuration information of the at least one device comprises:
acquiring an executable file of the at least one device based on the configuration information of the at least one device;
establishing the at least one sub-process based on an executable file of the at least one device.
5. A boot loader 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;
an output module, 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 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.
6. The apparatus of claim 5, wherein the obtaining module further comprises, before:
the first determining module is used for determining 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 obtaining module comprises:
a determining unit, configured to determine whether the at least one device is in communication with a 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, wherein 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.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the boot program loading method of any one of claims 1 to 4.
10. An electronic device, characterized in that the electronic device 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 boot program loading method of any one of claims 1 to 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 true CN111782282A (en) 2020-10-16
CN111782282B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065770A1 (en) * 1997-03-21 2003-04-03 Owen Davis Method of monitoring cleint interaction with a file downloaded from a server
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030065770A1 (en) * 1997-03-21 2003-04-03 Owen Davis Method of monitoring cleint interaction with a file downloaded from a server
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
CN111782282B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
EP0498130A2 (en) Apparatus and method for verifying compatibility of system components
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN110908738A (en) Method and device for running small program
CN113918232B (en) Algorithm service calling method, device, server and storage medium
CN113050984A (en) Resource calling method and device, electronic equipment and storage medium
CN106796521B (en) API version control independent of product release
CN107273226B (en) Method and device for integrating components in android system and calling integrated components
CN114448823B (en) NFS service testing method and system and electronic equipment
CN110113391B (en) Client online method and device and client operation method and device
CN110704025A (en) Method and device for generating coding specification tool, storage medium and electronic equipment
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN111008017A (en) Oclint-based file to be submitted prequalification method and related components
CN113094085A (en) Component integration method and device, computer-readable storage medium and electronic equipment
CN111782282A (en) Method and device for loading boot program, electronic equipment and storage medium
CN109032641B (en) Application version updating method and device
CN112395194B (en) Method and device for accessing test platform
CN114020513A (en) Method and device for processing log information
CN115469934A (en) Configuration file loading method, device and equipment
CN110502251B (en) Application installation method and device
US11030087B2 (en) Systems and methods for automated invocation of accessibility validations in accessibility scripts
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN112596751A (en) Compiling method, terminal, server and storage medium of application program installation package
CN112148318A (en) Application package issuing method, application method, device, medium, server and equipment
CN110825417A (en) Application program updating method and system
CN111309551A (en) Method and device for determining correct integration of event monitoring SDK

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