CN111459564A - Method and system for realizing boot phase initialization compatibility and computer equipment - Google Patents

Method and system for realizing boot phase initialization compatibility and computer equipment Download PDF

Info

Publication number
CN111459564A
CN111459564A CN202010337980.XA CN202010337980A CN111459564A CN 111459564 A CN111459564 A CN 111459564A CN 202010337980 A CN202010337980 A CN 202010337980A CN 111459564 A CN111459564 A CN 111459564A
Authority
CN
China
Prior art keywords
initialization
interface
layer
equipment
logic
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
CN202010337980.XA
Other languages
Chinese (zh)
Other versions
CN111459564B (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.)
Shenzhen Konka Electronic Technology Co Ltd
Original Assignee
Shenzhen Konka Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Konka Electronic Technology Co Ltd filed Critical Shenzhen Konka Electronic Technology Co Ltd
Priority to CN202010337980.XA priority Critical patent/CN111459564B/en
Publication of CN111459564A publication Critical patent/CN111459564A/en
Application granted granted Critical
Publication of CN111459564B publication Critical patent/CN111459564B/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/4403Processor initialisation

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 invention discloses a method, a system and computer equipment for realizing boot stage initialization compatibility, wherein the method comprises the following steps: the system layer receives the initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction; the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls the equipment interface layer according to the initialization function; the equipment interface layer acquires an initialization parameter corresponding to the initialization instruction from the equipment implementation layer; and the system layer initializes the boot stage according to the initialization parameters. The invention realizes boot stage initialization through the interface layer and the realization layer, realizes the compatibility of boot frames of different chip manufacturers, and the chip manufacturers do not need to initialize diversified peripherals, thereby reducing the butt joint workload of finished product manufacturers and the chip manufacturers, improving the working efficiency, realizing the code unification and reducing the risk of finished product development.

Description

Method and system for realizing boot phase initialization compatibility and computer equipment
Technical Field
The invention relates to the technical field of terminals, in particular to a boot phase initialization compatible implementation method, a boot phase initialization compatible implementation system and computer equipment.
Background
Currently, when each finished product manufacturer develops a product, two methods are used, the first method is that a chip manufacturer discloses a code to the finished product manufacturer, and the finished product manufacturer designs and modifies the product based on a boot frame of the chip manufacturer. The second is that the code of the chip manufacturer is not disclosed to the finished product manufacturer, and the finished product manufacturer informs the chip manufacturer of the product design requirement, and the chip manufacturer modifies the requirement and then leads the modified requirement into the product.
The existing scheme has great problems in development process, efficiency, problem verification, code consistency and maintenance. In the first method, since a finished product manufacturer may use different chips, if the modification is based on the flow, driver, code frame and method of the original chip manufacturer, each platform and each chip need to work repeatedly, learn repeatedly and arrange repeatedly, and the code quality has various differences, so that the control, uniformity and better debugging cannot be realized. In the second case, since the boot stage involves initialization of many modules, the initial test of the modules has a standard flow and is strongly related to hardware, and if the code is not opened to the finished product manufacturer, the product development risk of the finished product manufacturer is completely handed over to the chip manufacturer, which is not beneficial to the development of the product.
Therefore, the prior art is subject to further improvement.
Disclosure of Invention
In view of the defects in the prior art, the invention provides a boot stage initialization compatible implementation method, a system and computer equipment, which overcome the incompatibility of boot frames of chip manufacturers in the prior art, and if a finished product manufacturer modifies the boot frames of the chip manufacturers, each chip needs to be modified, so that the operation is complicated, the code quality difference is large, and the handling control is not facilitated; the chip manufacturer modifies the product according to the requirements of the finished product manufacturer, and the risk of the finished product development is completely handed over to the chip manufacturer, so that the development of the product is not facilitated.
The technical scheme adopted by the invention for solving the technical problem is as follows:
the method for realizing the compatibility of boot phase initialization is applied to a boot phase initialization system, and the boot phase initialization system comprises the following steps: a system layer, a logic interface layer, a logic implementation layer, an equipment interface layer and an equipment implementation layer;
the method for realizing the boot phase initialization compatibility comprises the following steps:
the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function;
and the equipment implementation layer executes corresponding boot phase initialization operation according to the equipment interface so as to carry out boot phase initialization.
The method for implementing boot phase initialization compatibility includes the following steps that the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction:
the system layer receives an initialization instruction and judges whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer or not;
if yes, calling an initialization interface in the logic interface layer by importing a header file of the logic interface layer.
The method for implementing boot phase initialization compatibility includes, before the step of receiving an initialization instruction by the system layer and calling an initialization interface in the logic interface layer according to the initialization instruction:
and setting an initialization interface corresponding to the initialization instruction in the logic interface layer.
The method for realizing boot phase initialization compatibility is characterized in that an initialization function corresponding to the initialization interface is preset in the logic realization layer;
the step of the logic implementation layer acquiring the initialization function corresponding to the initialization instruction according to the initialization interface specifically includes:
the logic implementation layer compares an initialization function in the logic implementation layer with the initialization interface and judges whether the initialization function is matched with the initialization interface;
and if so, acquiring the initialization function.
The implementation method compatible with boot phase initialization, wherein the step of the logic implementation layer calling the device interface in the device interface layer according to the initialization function specifically includes:
and the logic implementation layer imports the header file corresponding to the equipment interface layer according to the initialization function and calls the equipment interface in the equipment interface layer according to the header file corresponding to the equipment interface layer.
The method for implementing boot phase initialization compatibility, wherein the device implementation layer executes a corresponding boot phase initialization operation according to the device interface, so as to perform the boot phase initialization, and the method comprises the following steps:
and the equipment implementation layer executes read operation or write operation corresponding to the equipment interface according to the equipment interface so as to carry out boot stage initialization.
The method for implementing boot phase initialization compatibility, wherein the device implementation layer executes a read operation or a write operation corresponding to the device interface according to the device interface, so as to perform boot phase initialization, and the method includes:
the equipment implementation layer executes a read operation corresponding to the equipment interface according to the equipment interface and acquires an initialization parameter corresponding to the initialization instruction;
and performing corresponding write operation on the register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
The boot phase initialization system comprises the following steps: a system layer, a logic interface layer, a logic implementation layer, an equipment interface layer and an equipment implementation layer;
the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function;
and the equipment implementation layer executes corresponding boot phase initialization operation according to the equipment interface so as to carry out boot phase initialization.
A computer device, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to call instructions in the storage medium to perform the steps of implementing the boot phase initialization compatible implementation method.
A storage medium having stored thereon a plurality of instructions adapted to be loaded and executed by a processor to perform the steps of implementing the boot phase initialization compatible implementation method.
The invention has the beneficial effects that: the invention realizes boot stage initialization through the interface layer and the realization layer, realizes the compatibility of boot frames of different chip manufacturers, and the chip manufacturers do not need to initialize diversified peripherals, thereby reducing the butt joint workload of finished product manufacturers and the chip manufacturers, improving the working efficiency, realizing the code unification and reducing the risk of finished product development.
Drawings
Fig. 1 is a flowchart of a preferred embodiment of a boot phase initialization compatible implementation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a boot phase initialization system according to an embodiment of the present invention;
fig. 3 is a functional schematic diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for realizing the compatibility of the boot stage initialization can be applied to terminals with boot initialization requirements. The terminal may be, but is not limited to, various personal computers, notebook computers, mobile phones, tablet computers, vehicle-mounted computers, and portable wearable devices. The terminal of the invention adopts a multi-core processor. The processor of the terminal may be at least one of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Video Processing Unit (VPU), and the like.
In order to solve the problem that boot frames of chip manufacturers in the prior art are incompatible, if a finished product manufacturer modifies the boot frames based on the chip manufacturers, each chip needs to be modified, the operation is complicated, the code quality difference is large, and the handling control is not facilitated; the invention provides a method for realizing boot stage initialization compatibility, which solves the problems that a chip manufacturer modifies according to the requirements of a finished product manufacturer, the risk of finished product development is completely handed over to the chip manufacturer, and the product development is not facilitated.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for implementing boot phase initialization compatibility according to a preferred embodiment of the present invention.
In a preferred embodiment of the present invention, the method for implementing boot phase initialization compatibility is applied to a boot phase initialization system, and the method for implementing boot phase initialization compatibility includes four steps:
step S100, the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
step S200, the logic implementation layer obtains an initialization function corresponding to the initialization instruction according to the initialization interface, and calls an equipment interface in the equipment interface layer according to the initialization function;
step S300, the device implementation layer executes a corresponding boot phase initialization operation according to the device interface to perform boot phase initialization.
Because the boot frames of chip manufacturers in the prior art are incompatible, if a finished product manufacturer modifies the boot frames based on the chip manufacturers, each chip needs to be modified, the operation is complicated, and the code quality difference is large, which is not beneficial to control; the chip manufacturer modifies the product according to the requirements of the finished product manufacturer, and the risk of the finished product development is completely handed over to the chip manufacturer, so that the development of the product is not facilitated. In this embodiment, when a finished product manufacturer needs to design and modify a product, a code including a requirement of the finished product manufacturer is sent to a chip manufacturer, the chip manufacturer initiates an initialization instruction, and after receiving the initialization instruction of the chip manufacturer, a system layer calls an initialization interface in a logic interface layer according to the initialization instruction; then, the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function; and then the device implementation layer executes corresponding boot phase initialization operation according to the device interface called by the logic reality layer so as to perform boot phase initialization. For example, the external module used by the scheme of the chip manufacturer is single, if the power amplifier model is different from the product model used by the finished product manufacturer, the finished product manufacturer needs to initialize the power amplifier when developing the product, according to the prior art, the finished product manufacturer needs to sequentially initialize the boot stage based on the boot frames of each chip manufacturer, or the requirement is told to the chip manufacturer to initialize the boot stage by the chip manufacturer, when initializing the boot stage according to the method of the present invention, the finished product manufacturer only needs to provide the code containing the requirement to the chip manufacturer, the chip manufacturer realizes the boot stage initialization through each interface layer and the realization layer, the compatibility of the boot frames of different chip manufacturers is realized, the chip manufacturer does not need to initialize the headache for diversified peripheral equipment, the butt joint workload between the finished product manufacturer and the chip manufacturer is reduced, the work efficiency is improved, and the unification of the code is realized, and the risk of developing finished products is reduced.
In a specific embodiment, the step S100 further includes, before the step S:
and S001, setting an initialization interface corresponding to the initialization instruction in the logic interface layer.
In specific implementation, in this embodiment, an initialization interface corresponding to the initialization instruction is set in advance in the logical interface layer, and a code of the initialization interface in the logical interface layer is composed of a file with a suffix of ". h". For example, when the initialization instruction is to initialize the power amplifier, an initialization interface with a code of "audio.h" is called; and when the initialization instruction is to initialize the led lamp, calling an initialization interface with a code of led.h.
In a specific embodiment, the step S100 specifically includes:
s110, the system layer receives an initialization instruction and judges whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer;
and S120, if so, calling an initialization interface in the logic interface layer by importing a header file of the logic interface layer.
In specific implementation, after receiving the initialization instruction, the system layer judges whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer; if so, calling an initialization interface corresponding to the initialization instruction in the logic interface layer by importing a header file of the logic interface layer; if not, the response to the initialization command is finished. For example, when the initialization instruction is to initialize the power amplifier, the system layer determines that the logical interface layer corresponds to the initialization interface with the code "audio.h", and calls the initialization interface with the code "audio.h" by importing the header file of the logical interface layer.
In a specific embodiment, the step of the logic implementation layer obtaining, according to the initialization interface, the initialization function corresponding to the initialization instruction in step S200 specifically includes:
s210, the logic implementation layer compares an initialization function in the logic implementation layer with the initialization interface, and judges whether the initialization function is matched with the initialization interface;
and S220, if so, acquiring the initialization function.
In specific implementation, the initialization function corresponding to the initialization interface is stored in advance in the logic implementation layer, and the code in the logic implementation layer is composed of files with suffixes of ". cpp" and ". c", for example, if the code in the logic interface layer is kk _ boot _ frame _ amp.h, the logic implementation layer has a corresponding code kk _ boot _ frame _ amp.c. After the system layer calls an initialization interface in the logic interface layer according to the initialization instruction, the logic implementation layer compares an initialization function in the logic layer with the initialization interface and judges whether the initialization function is matched with the initialization interface; and if so, taking the initialization function matched with the initialization interface as the initialization function corresponding to the initialization instruction, and acquiring the initialization interface.
In a specific embodiment, the step of the logic implementation layer calling the device interface layer according to the initialization function in step S200 specifically includes:
and S230, the logic implementation layer imports the header file corresponding to the equipment interface layer according to the initialization function, and calls the equipment interface in the equipment interface layer according to the header file corresponding to the equipment interface layer.
In specific implementation, various device interfaces are arranged in the device interface layer, after the logic implementation layer obtains an initialization function corresponding to an initialization instruction according to the initialization interface, a header file corresponding to the device interface layer is imported according to the initialization function, and the device interface in the device interface layer is called according to the header file corresponding to the device interface layer.
In a specific embodiment, the step S300 specifically includes:
and step S310, the device implementation layer executes the read operation or the write operation corresponding to the device interface according to the device interface so as to initialize the boot stage.
In specific implementation, after the logic implementation layer calls the device interface in the device interface layer according to the initialization function, the device implementation layer executes read operation or write operation corresponding to the device interface according to the device interface called by the logic implementation layer, so as to perform boot stage initialization.
In a specific embodiment, the step S310 specifically includes:
s311, the device implementation layer executes a read operation corresponding to the device interface according to the device interface, and obtains an initialization parameter corresponding to the initialization instruction;
and S312, performing corresponding write operation on the register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
In specific implementation, after the logic implementation layer calls the device interface in the device interface layer, the device implementation layer executes a read operation corresponding to the device interface according to the device interface called by the logic implementation layer, obtains an initialization parameter corresponding to the initialization instruction, and performs a corresponding write operation on a register corresponding to the initialization instruction according to the initialization parameter, so as to perform boot stage initialization. For example, when the power amplifier is initialized, the initialization parameter of the power amplifier needs to be acquired, the device implementation layer performs write operation on the fixed flash partition according to the device interface called by the logic implementation layer, acquires the initialization parameter of the power amplifier, and performs write operation on the power amplifier register according to the initialization parameter of the power amplifier, thereby initializing the power amplifier.
Based on the above embodiment, the present invention further provides a boot phase initialization system, which is applied to the above boot phase initialization compatible implementation method, and a schematic structural diagram of the boot phase initialization system is shown in fig. 2. The boot phase initialization system comprises a system layer 110, a logic interface layer 120, a logic implementation layer 130, a device interface layer 140 and a device implementation layer 150;
the system layer 110 receives an initialization instruction, and calls an initialization interface in the logic interface layer 120 according to the initialization instruction;
the logic implementation layer 130 obtains an initialization function corresponding to the initialization instruction according to the initialization interface, and calls an equipment interface in the equipment interface layer 140 according to the initialization function;
the device implementation layer 150 executes a corresponding boot phase initialization operation according to the device interface to perform boot phase initialization.
Based on the above embodiments, the present invention further provides a computer device, whose functional block diagram may be as shown in fig. 3. The computer device comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a boot phase initialization compatible implementation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the computer equipment is arranged in the device in advance and used for detecting the current operating temperature of the internal equipment.
It will be appreciated by those skilled in the art that the schematic block diagram shown in fig. 3 is only a block diagram of a portion of the structure associated with the inventive arrangements and does not constitute a limitation of the apparatus to which the inventive arrangements may be applied, and that a particular computer device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor when executing the computer program implementing at least the following steps:
the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function;
and the equipment implementation layer executes corresponding boot phase initialization operation according to the equipment interface so as to carry out boot phase initialization.
In one embodiment, the processor, when executing the computer program, may further implement: the system layer receives an initialization instruction and judges whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer or not; if yes, calling an initialization interface in the logic interface layer by importing a header file of the logic interface layer.
In one embodiment, the processor, when executing the computer program, may further implement: the logic implementation layer compares an initialization function in the logic implementation layer with the initialization interface and judges whether the initialization function is matched with the initialization interface; and if so, acquiring the initialization function.
In one embodiment, the processor, when executing the computer program, may further implement: and the logic implementation layer imports the header file corresponding to the equipment interface layer according to the initialization function and calls the equipment interface in the equipment interface layer according to the header file corresponding to the equipment interface layer.
In one embodiment, the processor, when executing the computer program, may further implement: and the equipment implementation layer executes read operation or write operation corresponding to the equipment interface according to the equipment interface so as to carry out boot stage initialization.
In one embodiment, the processor, when executing the computer program, may further implement: the equipment implementation layer executes a read operation corresponding to the equipment interface according to the equipment interface and acquires an initialization parameter corresponding to the initialization instruction; and performing corresponding write operation on the register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored on a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
In summary, the present invention discloses a method, a system and a computer device for implementing boot phase initialization compatibility, wherein the method comprises: the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction; the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls the equipment interface layer according to the initialization function; the equipment interface layer acquires initialization parameters corresponding to the initialization instruction from the equipment implementation layer; and the system layer initializes the boot stage according to the initialization parameter. The invention realizes boot stage initialization through the interface layer and the realization layer, realizes the compatibility of boot frames of different chip manufacturers, and the chip manufacturers do not need to initialize diversified peripherals, thereby reducing the butt joint workload of finished product manufacturers and the chip manufacturers, improving the working efficiency, realizing the code unification and reducing the risk of finished product development.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

  1. A method for realizing boot phase initialization compatibility is characterized in that the method is applied to a boot phase initialization system, and the boot phase initialization system comprises the following steps: a system layer, a logic interface layer, a logic implementation layer, an equipment interface layer and an equipment implementation layer;
    the method for realizing the boot phase initialization compatibility comprises the following steps:
    the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
    the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function;
    and the equipment implementation layer executes corresponding boot phase initialization operation according to the equipment interface so as to carry out boot phase initialization.
  2. 2. The boot phase initialization compatible implementation method of claim 1, wherein the step of the system layer receiving an initialization instruction and calling an initialization interface in the logical interface layer according to the initialization instruction comprises:
    the system layer receives an initialization instruction and judges whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer or not;
    if yes, calling an initialization interface in the logic interface layer by importing a header file of the logic interface layer.
  3. 3. The boot phase initialization compatible implementation method of claim 2, wherein the step of the system layer receiving an initialization instruction and calling an initialization interface in the logical interface layer according to the initialization instruction further comprises:
    and setting an initialization interface corresponding to the initialization instruction in the logic interface layer.
  4. 4. The boot phase initialization compatible implementation method according to claim 3, wherein an initialization function corresponding to the initialization interface is preset in the logic implementation layer;
    the step of the logic implementation layer acquiring the initialization function corresponding to the initialization instruction according to the initialization interface specifically includes:
    the logic implementation layer compares an initialization function in the logic implementation layer with the initialization interface and judges whether the initialization function is matched with the initialization interface;
    and if so, acquiring the initialization function.
  5. 5. The method for implementing boot phase initialization compatibility according to claim 4, wherein the step of the logic implementation layer calling the device interface in the device interface layer according to the initialization function specifically includes:
    and the logic implementation layer imports the header file corresponding to the equipment interface layer according to the initialization function and calls the equipment interface in the equipment interface layer according to the header file corresponding to the equipment interface layer.
  6. 6. The method of claim 1, wherein the device implementation layer performs a corresponding boot phase initialization operation according to the device interface, so as to perform the boot phase initialization, and the step of performing the boot phase initialization includes:
    and the equipment implementation layer executes read operation or write operation corresponding to the equipment interface according to the equipment interface so as to carry out boot stage initialization.
  7. 7. The method of claim 1, wherein the step of performing, by the device implementation layer according to the device interface, a read operation or a write operation corresponding to the device interface to perform boot phase initialization includes:
    the equipment implementation layer executes a read operation corresponding to the equipment interface according to the equipment interface and acquires an initialization parameter corresponding to the initialization instruction;
    and performing corresponding write operation on the register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
  8. A boot phase initialization system, comprising: a system layer, a logic interface layer, a logic implementation layer, an equipment interface layer and an equipment implementation layer;
    the system layer receives an initialization instruction and calls an initialization interface in the logic interface layer according to the initialization instruction;
    the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface and calls an equipment interface in the equipment interface layer according to the initialization function;
    and the equipment implementation layer executes corresponding boot phase initialization operation according to the equipment interface so as to carry out boot phase initialization.
  9. 9. A computer device, comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to invoke instructions in the storage medium to perform the steps of implementing the boot phase initialization compatible implementation method of any of the preceding claims 1-7.
  10. 10. A storage medium having stored thereon a plurality of instructions adapted to be loaded and executed by a processor for performing the steps of implementing the boot phase initialization compatible implementation method of any of the preceding claims 1-7.
CN202010337980.XA 2020-04-26 2020-04-26 boot stage initialization compatible implementation method, system and computer equipment Active CN111459564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337980.XA CN111459564B (en) 2020-04-26 2020-04-26 boot stage initialization compatible implementation method, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337980.XA CN111459564B (en) 2020-04-26 2020-04-26 boot stage initialization compatible implementation method, system and computer equipment

Publications (2)

Publication Number Publication Date
CN111459564A true CN111459564A (en) 2020-07-28
CN111459564B CN111459564B (en) 2023-12-05

Family

ID=71683791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337980.XA Active CN111459564B (en) 2020-04-26 2020-04-26 boot stage initialization compatible implementation method, system and computer equipment

Country Status (1)

Country Link
CN (1) CN111459564B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254075A (en) * 2021-06-09 2021-08-13 上海移远通信技术股份有限公司 Instruction execution method, instruction execution device, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182653A1 (en) * 2002-03-22 2003-09-25 Giuseppe Desoli Systems and methods for verifying correct execution of emulated code via dynamic state verification
US20070169022A1 (en) * 2003-06-18 2007-07-19 Jones Anthony M Processor having multiple instruction sources and execution modes
CN101788921A (en) * 2010-02-08 2010-07-28 深圳市同洲电子股份有限公司 Analog system of embedded equipment
CN104407874A (en) * 2014-12-11 2015-03-11 天津中兴智联科技有限公司 Embedded equipment compatible to a plurality of types of LCD screens
CN104714804A (en) * 2015-03-20 2015-06-17 东南大学 Track traffic automatic fare collection system reader-writer middleware
CN104866357A (en) * 2015-05-29 2015-08-26 中国电子科技集团公司第五十八研究所 Boot starting method of digital signal processor and starting apparatus thereof
US20190334778A1 (en) * 2016-11-30 2019-10-31 Nutanix, Inc. Generic access to heterogeneous virtualized entities
CN110780858A (en) * 2019-10-28 2020-02-11 天津津航计算技术研究所 Software layering architecture based on embedded operating system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182653A1 (en) * 2002-03-22 2003-09-25 Giuseppe Desoli Systems and methods for verifying correct execution of emulated code via dynamic state verification
US20070169022A1 (en) * 2003-06-18 2007-07-19 Jones Anthony M Processor having multiple instruction sources and execution modes
CN101788921A (en) * 2010-02-08 2010-07-28 深圳市同洲电子股份有限公司 Analog system of embedded equipment
CN104407874A (en) * 2014-12-11 2015-03-11 天津中兴智联科技有限公司 Embedded equipment compatible to a plurality of types of LCD screens
CN104714804A (en) * 2015-03-20 2015-06-17 东南大学 Track traffic automatic fare collection system reader-writer middleware
CN104866357A (en) * 2015-05-29 2015-08-26 中国电子科技集团公司第五十八研究所 Boot starting method of digital signal processor and starting apparatus thereof
US20190334778A1 (en) * 2016-11-30 2019-10-31 Nutanix, Inc. Generic access to heterogeneous virtualized entities
CN110780858A (en) * 2019-10-28 2020-02-11 天津津航计算技术研究所 Software layering architecture based on embedded operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
欧文军 等: "一种高速数据采集终端的设计与实现", no. 18, pages 73 - 79 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254075A (en) * 2021-06-09 2021-08-13 上海移远通信技术股份有限公司 Instruction execution method, instruction execution device, electronic device, and storage medium
CN113254075B (en) * 2021-06-09 2024-02-13 上海移远通信技术股份有限公司 Instruction execution method, instruction execution device, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111459564B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
US10019298B2 (en) Middleware interface and middleware interface generator
US9678767B2 (en) Unified extensible firmware interface (UEFI) driver and protocol
WO2017166447A1 (en) Method and device for loading kernel module
JPH04213715A (en) Electronic apparatus
CN108632533A (en) A kind of control method of camera, mobile terminal and computer readable storage medium
WO2022161059A1 (en) Model running method and related apparatus
WO2012138046A1 (en) Terminal device and method for executing an android application on a general-purpose operating system, and computer-readable recording medium for same
WO2024011825A1 (en) System, method and apparatus for introducing applet into third-party app, and medium
WO2023016553A1 (en) Multi-screen display method and device, computer readable storage medium and terminal
CN111459564A (en) Method and system for realizing boot phase initialization compatibility and computer equipment
CN110515671A (en) Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing
CN110806932A (en) Algorithm scheduling method and device
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN106294143B (en) Debugging method and device for chip register
CN114564241A (en) Hardware device access method and device, computer device and storage medium
CN114416148A (en) Hot upgrading method, device and storage medium for virtual machine management program
CN107678718A (en) Compatibility processing method, mobile terminal and the storage medium of different resolution display screen
CN109408407B (en) Display memory allocation method and device
CN115237458A (en) Method for calling inference hardware to execute AI application and related product
CN109982136B (en) Volume adjusting method and device
WO2020221161A1 (en) Computing job processing method and system, mobile device and acceleration device
CN210166772U (en) Computing system
CN112328472A (en) Hardware simulation method and device, electronic equipment and storage medium
WO2019119438A1 (en) Method and apparatus for screen locking of operating system, and electronic device
CN113986387A (en) Project configuration information loading method and device, electronic 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