CN111459564B - boot stage initialization compatible implementation method, system and computer equipment - Google Patents

boot stage initialization compatible implementation method, system and computer equipment Download PDF

Info

Publication number
CN111459564B
CN111459564B CN202010337980.XA CN202010337980A CN111459564B CN 111459564 B CN111459564 B CN 111459564B CN 202010337980 A CN202010337980 A CN 202010337980A CN 111459564 B CN111459564 B CN 111459564B
Authority
CN
China
Prior art keywords
initialization
interface
layer
logic
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010337980.XA
Other languages
Chinese (zh)
Other versions
CN111459564A (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

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 boot stage initialization compatible implementation method, a system and computer equipment, comprising 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 device interface layer acquires initialization parameters corresponding to the initialization instructions from the device implementation layer; and initializing the boot stage by the system layer according to the initialization parameters. According to the invention, the boot stage initialization is realized through the interface layer and the realization layer, the boot frame compatibility of different chip manufacturers is realized, the chip manufacturers do not need to be headache for diversified peripheral initialization, the butt joint workload of the finished product manufacturers and the chip manufacturers is reduced, the working efficiency is improved, the unification of codes is realized, and the development risk of the finished product is reduced.

Description

boot stage initialization compatible implementation method, system and computer equipment
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method, a system, and a computer device for implementing boot phase initialization compatibility.
Background
At present, when each product manufacturer develops a product, the first method is that the chip manufacturer discloses codes to the product manufacturer, and the product manufacturer performs product design and modification 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, the finished product manufacturer informs the chip manufacturer of the demand of the product design, and the chip manufacturer modifies the code according to the demand and then introduces the modified code 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 modification is based on the flow, driving and code frame of the original chip manufacturer, the method is used, each chip needs to work repeatedly, learn repeatedly and sort repeatedly on each platform, and the code quality has various differences, so that the code cannot be controlled, unified and better debugged. In the second case, since the boot phase involves the initialization of many modules, the initial test of the modules has standard flow and is strongly related to the hardware, if the code is not opened to the product manufacturer, the product development risk of the product manufacturer is completely transmitted to the chip manufacturer, which is not beneficial to the development of the product.
Accordingly, there is a need for further improvements in the art.
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 defects that a boot frame of a chip manufacturer in the prior art is not compatible, and if a finished product manufacturer modifies the boot frame based on the chip manufacturer, each chip needs to be modified, the operation is complicated, the code quality difference is large, and the control is not facilitated; the chip manufacturer modifies the product according to the requirements of the finished product manufacturer, and the risk of developing the finished product is completely transmitted to the chip manufacturer, so that the development of the product is not facilitated.
The technical scheme adopted for solving the technical problems is as follows:
the boot stage initialization compatible implementation method is applied to a boot stage initialization system, and the boot stage initialization system comprises the following steps: the system layer, the logic interface layer, the logic implementation layer, the equipment interface layer and the equipment implementation layer;
the boot stage initialization compatible implementation method 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 a device interface in the device interface layer according to the initialization function;
and the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage.
The boot stage initialization compatible implementation method, wherein the system layer receives an initialization instruction, and the step of calling an initialization interface in the logic interface layer according to the initialization instruction comprises the following steps:
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 through a header file imported into the logic interface layer.
The boot stage initialization compatible implementation method, wherein the system layer receives an initialization instruction, and before the step of calling an initialization interface in the logic interface layer according to the initialization instruction, further comprises:
and setting an initialization interface corresponding to the initialization instruction in the logic interface layer.
The boot stage initialization compatible implementation method is characterized in that an initialization function corresponding to the initialization interface is preset in the logic implementation layer;
the step of the logic implementation layer obtaining 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 or not;
if yes, acquiring the initialization function.
The boot stage initialization compatible implementation method, wherein the step of calling the device interface in the device interface layer by the logic implementation layer according to the initialization function specifically comprises the following steps:
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 stage initialization compatibility, wherein the device implementation layer executes corresponding boot stage initialization operation according to the device interface, so as to perform boot stage initialization, comprises the following steps:
and the device realization layer executes a read operation or a write operation corresponding to the device interface according to the device interface so as to initialize a boot stage.
The method for implementing boot stage 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 stage initialization, includes:
the device realization layer executes a read operation corresponding to the device interface according to the device interface, and acquires initialization parameters corresponding to the initialization instructions;
and performing corresponding write operation on a register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
The boot stage initializing system comprises the following steps: the system layer, the logic interface layer, the logic implementation layer, the equipment interface layer and the 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 a device interface in the device interface layer according to the initialization function;
and the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage.
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 steps 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: according to the invention, the boot stage initialization is realized through the interface layer and the realization layer, the boot frame compatibility of different chip manufacturers is realized, the chip manufacturers do not need to be headache for diversified peripheral initialization, the butt joint workload of the finished product manufacturers and the chip manufacturers is reduced, the working efficiency is improved, the unification of codes is realized, and the development risk of the finished product is reduced.
Drawings
FIG. 1 is a flowchart of a preferred embodiment of a boot stage initialization compatible implementation method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a boot stage initialization system according to an embodiment of the present invention;
fig. 3 is a functional schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The method for realizing boot stage initialization compatibility can be applied to terminals with boot initialization requirements. The terminal may be, but is not limited to, various personal computers, notebook computers, cell phones, tablet computers, car 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 (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a video processing unit (Video Processing Unit, VPU), and the like.
In order to solve the problem that boot frames of chip manufacturers in the prior art are not compatible, if a finished product manufacturer modifies based on the boot frames of the chip manufacturers, each chip needs to be modified, the operation is complicated, the code quality difference is large, and the control is not facilitated; the invention provides a boot stage initialization compatible implementation method, which is used for solving the problem that a chip manufacturer modifies according to the requirements of a finished product manufacturer, and the risk of developing a finished product is completely transmitted to the chip manufacturer and is unfavorable for developing the product.
Referring to fig. 1, fig. 1 is a flowchart of a preferred embodiment of a boot stage initialization compatible implementation method provided by the present invention.
In the 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 200, the logic implementation layer obtains an initialization function corresponding to the initialization instruction according to the initialization interface, and calls a device interface in the device interface layer according to the initialization function;
step S300, the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage.
Because the boot frames of the chip manufacturers in the prior art are not compatible, if the finished product manufacturers modify based on the boot frames of the chip manufacturers, each chip needs to be modified, the operation is complicated, the code quality difference is large, and the control is not facilitated; the chip manufacturer modifies the product according to the requirements of the finished product manufacturer, and the risk of developing the finished product is completely transmitted to the chip manufacturer, so that the development of the product is not facilitated. When a finished product manufacturer needs to design and modify a product, a code containing the 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 realization layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface, and calls the equipment interface in the equipment interface layer according to the initialization function; and then the device realization layer executes corresponding boot stage initialization operation according to the device interface called by the logic reality layer so as to initialize the boot stage. 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 product manufacturer, the product manufacturer needs to initialize the power amplifier when developing the product, according to the prior art, the product manufacturer needs to initialize the boot stage based on the boot frames of the chip manufacturers in sequence, or the chip manufacturer needs to be informed of the requirement to initialize the boot stage, and according to the method in the invention, the product manufacturer only needs to provide codes containing the requirement for the chip manufacturer, the chip manufacturer realizes the boot stage initialization through each interface layer and the realization layer, the boot frames of different chip manufacturers are compatible, the chip manufacturer does not need to make pain for diversified peripheral initialization, the docking workload of the product manufacturer and the chip manufacturer is reduced, the work efficiency is improved, the unification of the codes is realized, and the product development risk is reduced.
In a specific embodiment, the step S100 further includes:
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 an initialization instruction is set in advance in a logical interface layer, where a code of the initialization interface in the logical interface layer is composed of a file with suffix of ". H". For example, when the initialization instruction is to initialize the power amplifier, an initialization interface with the code of "audio.h" is called; when the initialization instruction is to initialize the led lamp, an initialization interface with the code of 'led.h' is called.
In one 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 or not;
s120, if yes, calling an initialization interface in the logic interface layer through a header file imported into the logic interface layer.
When the method is implemented, after the system layer receives the initialization instruction, whether an initialization interface corresponding to the initialization instruction exists in the logic interface layer is judged; if yes, calling an initialization interface corresponding to the initialization instruction in the logic interface layer through a header file imported into the logic interface layer; if not, ending the response to the initialization instruction. For example, when the initialization command is to initialize the power amplifier, the system layer judges that the corresponding code of the logic interface layer is an initialization interface of "audio.h", and calls the initialization interface of which the code is "audio.h" through a header file imported into the logic interface layer.
In a specific embodiment, the step of the logic implementation layer in step S200 of obtaining, according to the initialization interface, an initialization function corresponding to the initialization instruction specifically includes:
s210, the logic implementation layer compares an initialization function in the logic implementation layer with the initialization interface to judge whether the initialization function is matched with the initialization interface;
s220, if yes, acquiring the initialization function.
In specific implementation, the initialization function corresponding to the initialization interface is pre-stored in the logic implementation layer, and the codes in the logic implementation layer are composed of files with suffixes of ". Cpp" and ". C", for example, the codes in the logic interface layer are kk_boot_frame work_amp.h, and then the corresponding codes kk_boot_frame work_amp.c are in the logic implementation layer. 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; if yes, 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:
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 equipment interfaces are arranged in the equipment 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 equipment interface layer is imported according to the initialization function, and the equipment interfaces in the equipment interface layer are called according to the header file corresponding to the equipment interface layer.
In one embodiment, the step S300 specifically includes:
step S310, 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 initialize a boot stage.
In the 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 a read operation or a write operation corresponding to the device interface according to the device interface called by the logic implementation layer so as to initialize a boot stage.
In a specific embodiment, the step S310 specifically includes:
s311, the device realization layer executes a read operation corresponding to the device interface according to the device interface, and acquires initialization parameters corresponding to the initialization instructions;
s312, performing corresponding write operation on a register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
When the method is implemented, after the device interface in the device interface layer is called by the logic implementation 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, acquires initialization parameters corresponding to the initialization instructions, and performs a corresponding write operation on registers corresponding to the initialization instructions according to the initialization parameters so as to perform boot stage initialization. For example, when initializing the power amplifier, the device implementation layer needs to acquire the initialization parameters of the power amplifier, write the fixed flash partition according to the device interface called by the logic implementation layer, acquire the initialization parameters of the power amplifier, and write the power amplifier register according to the initialization parameters of the power amplifier, thereby initializing the power amplifier.
Based on the above embodiment, the present invention further provides a boot phase initialization system, where the boot phase initialization system is applied to the implementation method compatible with boot phase initialization described above, and the structural schematic diagram is shown in fig. 2. The boot stage 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 logical 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 a device interface in the device 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 embodiment, the present invention also provides a computer device, and a schematic block diagram thereof may be shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements 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 preset in the device and is used for detecting the current running temperature of the internal equipment.
It will be appreciated by those skilled in the art that the functional block diagram shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the apparatus to which the present inventive arrangements may be applied, and that a particular computer device may include more or less components than those shown, or may be combined with some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the processor when executing the computer program performing 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 a device interface in the device interface layer according to the initialization function;
and the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage.
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 through a header file imported into 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 or not; if yes, 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 device realization layer executes a read operation or a write operation corresponding to the device interface according to the device interface so as to initialize a boot stage.
In one embodiment, the processor, when executing the computer program, may further implement: the device realization layer executes a read operation corresponding to the device interface according to the device interface, and acquires initialization parameters corresponding to the initialization instructions; and performing corresponding write operation on a register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a method, a system and a computer device for implementing boot stage initialization compatibility, wherein the method 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 the equipment interface layer according to the initialization function; the device interface layer acquires initialization parameters corresponding to the initialization instructions from the device implementation layer; and initializing a boot stage by the system layer according to the initialization parameters. According to the invention, the boot stage initialization is realized through the interface layer and the realization layer, the boot frame compatibility of different chip manufacturers is realized, the chip manufacturers do not need to be headache for diversified peripheral initialization, the butt joint workload of the finished product manufacturers and the chip manufacturers is reduced, the working efficiency is improved, the unification of codes is realized, and the development risk of the finished product is reduced.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (8)

  1. The boot stage initialization compatible implementation method is characterized by being applied to a boot stage initialization system, wherein the boot stage initialization system comprises the following steps: the system layer, the logic interface layer, the logic implementation layer, the equipment interface layer and the equipment implementation layer;
    the boot stage initialization compatible implementation method 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 a device interface in the device interface layer according to the initialization function;
    the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage;
    the system layer receives an initialization instruction, and the step of calling an initialization interface in the logic interface layer according to the initialization instruction comprises the following steps:
    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 through a header file imported into the logic interface layer;
    if not, ending the response to the initialization instruction;
    the system layer receives an initialization instruction, and before the step of calling an initialization interface in the logic interface layer according to the initialization instruction, the method further comprises the following steps:
    setting an initialization interface corresponding to the initialization instruction in the logic interface layer;
    and the logic implementation layer stores an initialization function corresponding to the initialization interface in advance, and codes in the logic implementation layer are in a C language or a C++ language.
  2. 2. The boot stage initialization-compatible implementation method according to claim 1, wherein an initialization function corresponding to the initialization interface is preset in the logic implementation layer;
    the step of the logic implementation layer obtaining 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 or not;
    if yes, acquiring the initialization function.
  3. 3. The boot phase initialization-compatible implementation method according to claim 2, wherein the step of the logic implementation layer calling the device interface in the device interface layer according to the initialization function specifically comprises:
    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.
  4. 4. The boot phase initialization-compatible implementation method according to claim 1, wherein the step of the device implementation layer executing a corresponding boot phase initialization operation according to the device interface to perform boot phase initialization includes:
    and the device realization layer executes a read operation or a write operation corresponding to the device interface according to the device interface so as to initialize a boot stage.
  5. 5. The boot phase initialization-compatible implementation method according to claim 1, wherein the step of the device implementation layer performing a read operation or a write operation corresponding to the device interface according to the device interface to perform the boot phase initialization comprises:
    the device realization layer executes a read operation corresponding to the device interface according to the device interface, and acquires initialization parameters corresponding to the initialization instructions;
    and performing corresponding write operation on a register corresponding to the initialization instruction according to the initialization parameter so as to perform boot stage initialization.
  6. A boot phase initialization system, comprising: the system layer, the logic interface layer, the logic implementation layer, the equipment interface layer and the 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 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 through a header file imported into the logic interface layer;
    if not, ending the response to the initialization instruction;
    the logic implementation layer acquires an initialization function corresponding to the initialization instruction according to the initialization interface, and calls a device interface in the device interface layer according to the initialization function;
    the device realization layer executes corresponding boot stage initialization operation according to the device interface so as to initialize the boot stage;
    the system layer receives an initialization instruction, and before the step of calling an initialization interface in the logic interface layer according to the initialization instruction, the method further comprises the following steps:
    setting an initialization interface corresponding to the initialization instruction in the logic interface layer;
    and the logic implementation layer stores an initialization function corresponding to the initialization interface in advance, and codes in the logic implementation layer are in a C language or a C++ language.
  7. 7. 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-5.
  8. 8. 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 of any of the preceding claims 1-5.
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 CN111459564A (en) 2020-07-28
CN111459564B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788921A (en) * 2010-02-08 2010-07-28 深圳市同洲电子股份有限公司 Analog system of embedded equipment
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

Family Cites Families (5)

* 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
CN104407874A (en) * 2014-12-11 2015-03-11 天津中兴智联科技有限公司 Embedded equipment compatible to a plurality of types of LCD screens
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788921A (en) * 2010-02-08 2010-07-28 深圳市同洲电子股份有限公司 Analog system of embedded equipment
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

Also Published As

Publication number Publication date
CN111459564A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN109491759B (en) Process debugging method and device based on virtual file system and computer equipment
CN113672342A (en) Embedded virtualization system, construction method, test method, terminal and medium
WO2021057596A1 (en) Image quality processing method, smart television and storage medium
CN111459564B (en) boot stage initialization compatible implementation method, system and computer equipment
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
TW202403541A (en) System, method and device for introducing applet into third-party APP and medium
CN113868174B (en) Verification platform building method and device and storage medium
CN113590491B (en) Test platform and product test method
CN110018855A (en) One kind is based on Android system booting optimization method, storage medium and intelligent terminal
CN113934445A (en) Equipment firmware upgrading system, method and device, computer equipment and storage medium
CN109885331A (en) Method for upgrading software, control method, system, storage medium and electronic equipment
CN114564241B (en) Method and device for accessing hardware device, computer device and storage medium
WO2024113680A1 (en) Firmware interaction method and apparatus, and server and storage medium
CN112486807A (en) Pressure testing method and device, electronic equipment and readable storage medium
CN109343886B (en) Method, device and equipment for upgrading BIOS
CN110362526B (en) SPI slave device, storage and adaptation method and computer storage medium
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN106294143B (en) Debugging method and device for chip register
CN112214213B (en) Linux kernel development and management method and device, computer equipment and storage medium
CN115633073A (en) Micro-service calling method, electronic device, system and readable storage medium
CN109640353B (en) Bluetooth equipment testing method, intelligent terminal and storage medium
CN112540817A (en) Method, device and equipment for displaying startup logo picture 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