CN114489826A - Chip operation method and device, storage medium and electronic equipment - Google Patents

Chip operation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114489826A
CN114489826A CN202011241510.XA CN202011241510A CN114489826A CN 114489826 A CN114489826 A CN 114489826A CN 202011241510 A CN202011241510 A CN 202011241510A CN 114489826 A CN114489826 A CN 114489826A
Authority
CN
China
Prior art keywords
chip
application program
information
picture data
running
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011241510.XA
Other languages
Chinese (zh)
Inventor
马亚辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zeku Technology Shanghai Corp Ltd
Original Assignee
Zeku Technology Shanghai Corp 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 Zeku Technology Shanghai Corp Ltd filed Critical Zeku Technology Shanghai Corp Ltd
Priority to CN202011241510.XA priority Critical patent/CN114489826A/en
Publication of CN114489826A publication Critical patent/CN114489826A/en
Pending legal-status Critical Current

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The application discloses a chip operation method, which is applied to electronic equipment, wherein the electronic equipment comprises a first chip and a second chip, and the method comprises the following steps: the second chip receives the system information sent by the first chip and runs an operating system according to the system information; based on an operating system, the second chip sends first request information to the first chip, wherein the first request information is used for requesting to acquire running information of the first application program; the second chip receives the running information of the first application program returned by the first chip; and the second chip runs the corresponding first application program according to the running information of the first application program. The application can improve the operating efficiency of the second chip.

Description

Chip operation method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for operating a chip, a storage medium, and an electronic device.
Background
With the development of the technology, the requirements of electronic devices on processors are higher and higher, and a dual-chip architecture is also applied to various electronic devices, in the dual-chip architecture, a task with a high requirement on the running performance of a large chip and a task with a low requirement on the running performance of a small chip are performed. However, in the related art, the chiplet needs to transfer a large amount of data each time an application is loaded, and thus the chiplet operates inefficiently.
Disclosure of Invention
The embodiment of the application provides a chip operation method and device, a storage medium and electronic equipment, and the operation efficiency of a second chip can be improved.
In a first aspect, an embodiment of the present application provides a chip operation method, which is applied to an electronic device, where the electronic device includes a first chip and a second chip, and the method includes:
the second chip receives the system information sent by the first chip and runs an operating system according to the system information;
based on the operating system, the second chip sends first request information to the first chip, wherein the first request information is used for requesting to acquire running information of a first application program;
the second chip receives the running information of the first application program returned by the first chip;
and the second chip runs the corresponding first application program according to the running information of the first application program.
In a second aspect, an embodiment of the present application provides a chip operating apparatus, which is applied to an electronic device, where the electronic device includes a first chip and a second chip, and the apparatus includes:
the first receiving module is used for the second chip to receive the system information sent by the first chip and run an operating system according to the system information;
the first sending module is used for sending first request information to the first chip by the second chip based on the operating system, wherein the first request information is used for requesting to acquire running information of a first application program;
the second receiving module is used for receiving the running information of the first application program returned by the first chip by the second chip;
and the running module is used for running the corresponding first application program by the second chip according to the running information of the first application program.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer program is enabled to execute the method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a first chip, and a second chip, where the first chip and the second chip are used to execute the method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, the chip comprises a first chip and a second chip, the second chip receives system information sent by the first chip, and the second chip runs an operating system according to the system information; the second chip sends first application program request information to the first chip; the second chip receives first application program information returned by the first chip; and the second chip runs the corresponding first application program according to the first application program information. According to the method and the device, the system information related to the operating system is distinguished from the running information of the application program related to the application program, the second chip only needs to load the system information once to normally run the operating system, and the second chip does not need to reload the system information when the application program is required to be loaded in the running process, and only needs to load the running information of the application program as required, so that the second chip does not need to be reset, the data transmission of redundant system information is reduced, and the running efficiency of the second chip is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a schematic flowchart of a chip operation method provided in an embodiment of the present application.
Fig. 2 is another schematic flow chart of a chip operation method provided in an embodiment of the present application.
Fig. 3 to fig. 4 are schematic scene diagrams of a chip operation method provided in an embodiment of the present application.
Fig. 5 to fig. 6 are schematic structural diagrams of a device for operating a chip according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
With the development of the technology, the electronic device has higher and higher requirements on the processor, and a dual-chip architecture is also applied to various electronic devices, in the dual-chip architecture, a task with a high requirement on the running performance of a large chip and a task with a low requirement on the running performance of a small chip have high requirements. However, in the related art, the chiplet needs to transfer a large amount of data each time an application is loaded, and thus the chiplet operates inefficiently.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a chip operation method according to an embodiment of the present disclosure. The chip operation method can be applied to electronic equipment. The flow of the chip operation method can comprise the following steps:
in 101, the second chip receives the system information sent by the first chip, and runs an operating system according to the system information.
In the embodiment of the application, the electronic device comprises a first chip and a second chip, the operating performance of the second chip is smaller than that of the first chip, and the electronic device can run more refined tasks by using double chips, for example, the first chip can run tasks with high performance requirements and run compute-intensive tasks; the second chip may be used to run a real-time operating system, such as to perform some display tasks.
In the embodiment of the application, the system information related to the operating system is distinguished from the running information of the application program related to the application program, the second chip firstly receives the system information sent by the first chip, and loads the system information to normally run the operating system, the system information at this time does not contain a specific application program and only contains an operating system code and an application program management code, wherein the application program management code is mainly used for requesting and switching the application program.
In 102, based on the operating system, the second chip sends first request information to the first chip, where the first request information is used to request to obtain operation information of the first application.
In the running process, when the required application program needs to be loaded, for example, when the first application program needs to be loaded, the second chip may send first request information to the first chip, where the first request information is used to request to acquire the running information of the first application program.
The second chip may encapsulate the specific first application name and the code of the requesting application as the first request information, and send the first request information to the first chip to wait for the response from the first chip.
It can be understood that when the second chip needs to load different application programs, different request information of the first chip is correspondingly sent.
In 103, the second chip receives the running information of the first application program returned by the first chip.
After receiving the first request information of the second chip, the first chip unpacks and identifies the code of the request application program, and identifies that the request application program is the first application program, finds the corresponding running information of the first program and sends the running information to the second chip, wherein the running information of the first application program can be a compiled ELF file.
It should be noted that the ELF file may be an object file generated after compiling different application program codes and an executable file generated after linking, the ELF file may be compiled and generated by a third-party device, different application programs are compiled and generated correspondingly, the third-party device may be a computer, a server, or other device, and the first chip stores the compiled ELF files corresponding to different application programs. In the operation process of the second chip, when a specific application program needs to be loaded, the second chip communicates with the first chip to send request information, so that the operation information of the required application program is acquired.
At 104, the second chip runs the corresponding first application according to the running information of the first application.
After receiving the operation information of the first application program sent by the first chip, the second chip may operate the corresponding first application program according to the operation information of the first application program. Specifically, after receiving the ELF file corresponding to the first application program sent by the first chip, the second chip parses the ELF file, removes the header, retains the code segment information of the first application program, and can run the first application program by parsing and relocating the address information of the code segment information (ELF format) of the first application program.
According to the embodiment of the application, the system information related to the operating system is distinguished from the running information of the application program related to the application program, the second chip only needs to load the system information once to normally run the operating system, and the second chip does not need to reload the system information when the application program is required to be loaded in the running process, and only needs to load the running information of the application program as required, so that the second chip does not need to be reset, the data transmission of redundant system information is reduced, and the running efficiency of the second chip is improved.
Referring to fig. 2, fig. 2 is another schematic flow chart of a chip operating method according to an embodiment of the present disclosure, where the chip operating method may be applied to an electronic device, and the flow chart may include:
in 201, the second chip receives the system information sent by the first chip, and runs an operating system according to the system information;
in the embodiment of the application, the electronic device comprises a first chip and a second chip, the operating performance of the second chip is smaller than that of the first chip, and the electronic device can run more refined tasks by using double chips, for example, the first chip can run tasks with high performance requirements and run compute-intensive tasks; the second chip may be used to run a real-time operating system, such as to perform some display tasks.
In the embodiment of the application, the system information related to the operating system is distinguished from the running information of the application program related to the application program, the second chip firstly receives the system information sent by the first chip, and loads the system information to normally run the operating system, the system information at this time does not contain a specific application program and only contains an operating system code and an application program management code, wherein the application program management code is mainly used for requesting and switching the application program.
The system information can be compiled, generated and stored in the first chip by the third-party device, and sent to the second chip by the first chip.
In 202, based on the operating system, the second chip sends first request information to the first chip, where the first request information is used to request to obtain operation information of a first application program;
in the running process, when the required application program needs to be loaded, for example, when the first application program needs to be loaded, the second chip may send first request information to the first chip, where the first request information is used to request to acquire the running information of the first application program.
The second chip may encapsulate the specific first application name and the code of the requesting application as the first request information, and send the first request information to the first chip to wait for the response from the first chip.
It can be understood that when the second chip needs to load different application programs, different request information of the first chip is correspondingly sent.
In one embodiment, the second chip sends the first request message to the first chip through a mailbox interface. The mailbox interface is a hardware mechanism for data transmission among multiple processors, and can be used for transmitting address or instruction data with small data volume, but the transmission efficiency is higher.
In 203, the second chip receives the running information of the first application program returned by the first chip.
After receiving the first request information of the second chip, the first chip unpacks and identifies the code of the request application program, and identifies that the request application program is the first application program, finds the corresponding running information of the first program and sends the running information to the second chip, wherein the running information of the first application program can be a compiled ELF file.
It should be noted that the ELF file may be an object file generated after compiling different application program codes and an executable file generated after linking, the ELF file may be compiled and generated by a third-party device, different application programs are compiled and generated correspondingly, the third-party device may be a computer, a server, or other device, and the first chip stores the compiled ELF files corresponding to different application programs. Specifically, the third-party device derives the symbols required to be used by the running information of the on-demand application program, where the running information of the on-demand application program may also be referred to as a dynamic module, and the symbols required to be used include: code segments, function names, common addresses, etc., export symbols to designated sections that require space to be allocated in the linking script for subsequent dynamic modules to relocate to these symbols. The header file of the derived symbols needs to be generated in the system information so that the dynamic module can find the symbol declaration when compiling, but the symbols belong to undefined symbols, and the dynamic module calls the API interface in the system information when compiling, so that the system information needs to derive the API interface exposed to the dynamic module to a certain position of the symbol table so that the dynamic module can find the symbols at the position when actually loading the dynamic module, and the header file is derived so that the dynamic module can be compiled normally to generate the ELF file.
In the operation process of the second chip, when a specific application program needs to be loaded, the second chip communicates with the first chip to send request information, so that the operation information of the required application program is acquired.
In one embodiment, the second chip receives the running information of the first application program returned by the first chip through a serial peripheral interface. The serial peripheral interface is a high-speed full-duplex synchronous communication bus, and can be used for transmitting data with larger data volume.
In 204, the second chip runs the corresponding first application program according to the running information of the first application program.
After receiving the operation information of the first application program sent by the first chip, the second chip may operate the corresponding first application program according to the operation information of the first application program. After receiving the ELF file corresponding to the first application program sent by the first chip, the second chip analyzes the ELF file, after removing the information header, the code segment information of the first application program is reserved, and the second chip analyzes and relocates the address information of the code segment information (ELF format) of the first application program, so that the first application program can be operated.
Specifically, after receiving the ELF file corresponding to the first application program sent by the first chip, the second chip checks whether the file is in the ELF format, including checking an ELF header and an ELF field, where the ELF file is divided into a plurality of segments, such as PT _ LAOD, PT _ NULL, PT _ dyanic, and so on. The PT _ LAOD includes information that is really loaded to the memory for operation, and may only focus on the segment of the PT _ LAOD, record the entry point of the corresponding dynamic module, and find the segment that needs to be relocated and its corresponding symbol table according to the segment table (segment header table) of the ELF file. The dynamic module uses the symbol to link to the position of the characteristic, adds variable in the link script to record the initial address and the end address of the position, searches the symbol in the symbol table in the two addresses, if found, relocates the symbol in the symbol table; if the symbol is not found, the dynamic module uses the symbol which is not derived by the system, and then error reporting processing is carried out. If the search is completed, a thread is newly created, and the execution is started from the entry point of the dynamic module.
In the operation process of the second chip, when a new application program needs to be switched to operate, for example, when the second application program needs to be operated, the second chip sends second request information to the first chip, wherein the second request information is used for requesting to acquire operation information of the second application program; the second chip receives the running information of the second application program returned by the first chip; and the second chip switches and operates the corresponding second application program according to the operation information of the second application program.
Specifically, when the second chip needs to switch to operate the second application program in the operation process, the second chip may encapsulate a specific second application program name and a code of the request application program as second request information and send the second request information to the first chip, the first chip receives the first request information of the first chip, unpacks and identifies the code of the request application program, identifies the request application program as the second application program, finds out the corresponding operation information of the second application program and sends the operation information of the second application program to the second chip, and the operation information of the second application program may be a compiled ELF file. And after receiving the ELF file corresponding to the second application program sent by the first chip, the second chip analyzes the ELF file to run the second application program in a switching way.
In the embodiment of the application, the second chip only needs to load the system information once to normally operate the operating system, and when a new application program needs to be switched to operate in the operating process of the second chip, the system information does not need to be reloaded, and only the operating information of the new application program needs to be loaded as required to operate the new application program, so that the second chip does not need to be reset, redundant data transmission is reduced, and the operating efficiency of the second chip is improved.
In 205, when the first application program calls the picture data in the operation, the second chip sends the picture request information corresponding to the picture data to the first chip.
In the embodiment of the application, the running information of the application and the data resource of the application are separately transmitted, and the data resource is, for example, a picture data resource. In the embodiment of the application, the running information of the application program and the picture data resource are separately transmitted, on one hand, the second chip can quickly receive the running information of the application program to quickly run the application program, and does not need to occupy a large memory of the second chip; on the other hand, the second chip may request the required picture data according to the actual operation requirement of the application program in the operation process of the application program, and does not need to receive all the picture data corresponding to the application program at the same time, so the second chip may also quickly receive the required picture data, and the memory space of the memory of the second chip is limited, if all the picture data are received, a large amount of memory space of the second chip is occupied, which may cause insufficient memory space of the second chip, which may affect the normal operation of the application program. For example, when the resolution of the display screen of the electronic device is high, the bit information of the picture to be displayed is large, but the normal display of the picture is affected due to the insufficient storage space of the memory of the second chip.
In this embodiment of the application, when the second chip needs to run the first application program, the running information of the first application program is received, so that the first application program can be normally run, wherein the picture data resource in the running information of the first application program is empty. Specifically, a variable of the picture data in the application program may be directly assigned with a null value, for example, the variable example is necessary information of the picture data that needs to be displayed on the second chip, and example. Since the application program contains many such picture data, if the second chip receives all the picture data, the application program occupies a large amount of memory, and here, example. data is directly assigned to be null, and when the second chip needs to operate, the picture data is transmitted, for example, by the following software codes:
Struct img_info example={
.type=xxx,
.w=255,
.h=255
.data=NULL}
when the second chip needs to call the picture data in the running process, the second chip sends the picture request information corresponding to the picture data to the first chip. The picture request information includes a specific application program and a required unique code of picture data.
It should be noted that the second chip may request one piece of picture data at a time, or may request multiple pieces of picture data at a time, and when multiple pieces of picture data need to be requested, the picture request information may include unique codes of multiple pieces of picture data.
In 206, the second chip receives the picture data returned by the first chip.
After receiving the picture request information of the second chip, the first chip unpacks the picture request information and identifies the picture data of which application program is specifically requested and which picture data is specifically requested, finds the corresponding picture data and sends the corresponding picture data to the second chip, so that the second chip receives the picture data returned by the first chip.
In an embodiment, the second chip receives the picture data returned by the first chip through a serial peripheral interface, and as can be understood, the data volume of the picture data is relatively large, so that a smooth transmission of the picture data can be ensured by using a transmission mode of the serial peripheral interface.
It should be noted that, when the application program of the second chip needs to load new picture data during the running process, the above steps 205 to 206 are repeated.
In 207, the second chip stores the picture data in a memory, and manages the picture data by using a linked list.
The second chip may store the received picture data in the memory, and manage the received picture data using the linked list.
After the picture data received by the second chip is stored in the memory, the address information can be given to a resource variable, such as example. When the application program needs to call the existing picture data in the memory, the application program can be directly called without requesting the picture data from the first chip.
In 208, when the storage space of the memory is insufficient, the picture data corresponding to the linked list is managed by using a page replacement algorithm, so as to delete the picture data stored in the memory for the longest time and not used.
When the storage space is smaller than or equal to a preset threshold value, the page replacement algorithm can be utilized to manage the picture data corresponding to the linked list so as to delete the longest unused picture data stored in the memory and release the storage space of the memory of the second chip, so that more picture data required by the application program at present can be received, normal operation of the application program at present and normal display of the picture data of the application program at present are ensured, and the problem of insufficient storage space of the memory of the second chip is solved.
It should be noted that other algorithms for managing the memory may also be used to manage the picture data, and the application is not limited herein.
According to the embodiment of the application, the system information related to the operating system is distinguished from the running information of the application program related to the application program, the second chip only needs to load the system information once to normally run the operating system, and when a new application program needs to be loaded or switched in the running process, the second chip does not need to load the system information again, only needs to load the running information of the required application program as required, and therefore the currently required application program can be normally run. Therefore, the second chip does not need to be reset, and the transmission of redundant system information is reduced, so that the operating efficiency of the second chip is improved.
Furthermore, the operation information of the application program and the data resources of the application program are transmitted in a classified manner, and the data resources are image data resources, on one hand, the second chip can quickly receive the operation information of the application program to quickly operate the application program, and does not need to occupy a large memory of the second chip; on the other hand, the second chip can request the required picture data according to the actual operation requirement of the application program in the operation process of the application program, and does not need to receive all the picture data corresponding to the application program at the same time, so that the second chip can also quickly receive the required picture data and does not occupy a large amount of storage space of the second chip. In addition, in the embodiment of the application, when the second chip performs chain table management on the received picture data, and when the storage space of the memory is smaller than a preset threshold value, the picture data corresponding to the chain table is managed by using a page replacement algorithm to delete the picture data which is stored in the memory for the longest time and is not used, and the storage space of the memory of the second chip is released, so that the picture data which is currently required by more application programs can be received, the normal operation of the current application program is ensured, and the normal display of the picture data of the current application program is ensured, thereby effectively solving the problem that the storage space of the memory of the second chip is insufficient.
Referring to fig. 3-4, fig. 3-4 are schematic views of a chip operation method according to an embodiment of the present disclosure.
The electronic device comprises a first chip and a second chip, system information related to an operating system is separated from running information of an application program related to the application program in the embodiment of the application, the second chip firstly receives the system information sent by the first chip, and the system information is loaded so that the operating system can run normally.
In the running process, when the required application program needs to be loaded, for example, when the first application program needs to be loaded, the second chip may send first request information to the first chip, where the first request information is used to request to acquire the running information of the first application program.
The second chip may encapsulate the specific first application name and the code of the requesting application as the first request information, and send the first request information to the first chip to wait for the response from the first chip.
In one embodiment, the second chip sends the first request message to the first chip through a mailbox interface.
After receiving the first request information of the second chip, the first chip unpacks and identifies the code of the request application program, and identifies that the request application program is the first application program, finds the corresponding running information of the first program and sends the running information to the second chip, wherein the running information of the first application program can be a compiled ELF file.
In one embodiment, the second chip receives the running information of the first application program returned by the first chip through a serial peripheral interface.
After receiving the operation information of the first application program sent by the first chip, the second chip may operate the corresponding first application program according to the operation information of the first application program. And after receiving the ELF file corresponding to the first application program sent by the first chip, the second chip analyzes the ELF file and runs the first application program.
In the operation process of the second chip, when a new application program needs to be switched to operate, for example, when the second application program needs to be operated, the second chip sends second request information to the first chip, wherein the second request information is used for requesting to acquire operation information of the second application program; the second chip receives the running information of the second application program returned by the first chip; and the second chip switches and operates the corresponding second application program according to the operation information of the second application program.
Therefore, the second chip only needs to load the system information once to normally operate the operating system, and when the second chip needs to switch to operate a new application program in the operating process, the second chip does not need to load the system information again, and only needs to load the operating information of the new application program as required to operate the new application program, so that the second chip does not need to be reset, redundant data transmission is reduced, and the operating efficiency of the second chip is improved.
In the embodiment of the application, the running information of the application and the data resource of the application are separately transmitted, and the data resource is, for example, a picture data resource.
In this embodiment of the application, when the second chip needs to run the first application program, the running information of the first application program is received, so that the first application program can be normally run, wherein the picture data resource in the running information of the first application program is empty.
When the second chip needs to call the picture data in the running process, the second chip sends the picture request information corresponding to the picture data to the first chip. The picture request information includes a specific application program and a required unique code of picture data.
It should be noted that the second chip may request one piece of picture data at a time, or may request multiple pieces of picture data at a time, and when multiple pieces of picture data need to be requested, the picture request information may include unique codes of multiple pieces of picture data.
After receiving the picture request information of the second chip, the first chip unpacks the picture request information and identifies the picture data of which application program is specifically requested and which picture data is specifically requested, finds the corresponding picture data and sends the corresponding picture data to the second chip, so that the second chip receives the picture data returned by the first chip. The second chip can receive the picture data returned by the first chip through a serial peripheral interface.
Therefore, the operation information of the application program and the data resources of the application program are transmitted in a classified manner, and the data resources are image data resources, on one hand, the second chip can quickly receive the operation information of the application program to quickly operate the application program, and does not need to occupy a large memory of the second chip; on the other hand, the second chip can request the required picture data according to the actual operation requirement of the application program in the operation process of the application program, and does not need to receive all the picture data corresponding to the application program at the same time, so that the second chip can also quickly receive the required picture data and does not occupy a large amount of storage space of the second chip.
The second chip may store the received picture data in the memory, and manage the received picture data using the linked list. When the storage space is smaller than or equal to a preset threshold value, the page replacement algorithm can be utilized to manage the picture data corresponding to the linked list so as to delete the longest unused picture data stored in the memory and release the storage space of the memory of the second chip, so that more picture data currently required by the application program can be received, the normal operation of the current application program is ensured, and the normal display of the picture data of the current application program is ensured, thereby effectively solving the problem of insufficient storage space of the memory of the second chip.
Referring to fig. 5-6, fig. 5-6 are schematic structural diagrams of a device for operating a chip according to an embodiment of the present disclosure. The device for operating the chip is applied to electronic equipment, and the electronic equipment comprises a first chip and a second chip. The apparatus 400 for chip operation may include a first receiving module 401, a first sending module 402, a second receiving module 403, and an operation module 404:
a first receiving module 401, configured to receive, by the second chip, the system information sent by the first chip, and operate an operating system according to the system information.
A first sending module 402, configured to send, based on the operating system, first request information to the first chip by the second chip, where the first request information is used to request to obtain operation information of a first application.
A second receiving module 403, configured to receive, by the second chip, the running information of the first application returned by the first chip.
An operation module 404, configured to operate, by the second chip, the corresponding first application according to the operation information of the first application.
In some embodiments, the picture data resource in the running information of the first application is empty, where the apparatus for running the chip further includes a second sending module 405, and the second sending module 405 may be configured to: when the first application program calls the picture data in the running process, the second chip sends the picture request information corresponding to the picture data to the first chip;
and the second chip receives the picture data returned by the first chip.
In some embodiments, the apparatus on which the chip operates further comprises a picture management module 406, and the picture management module 406 may be configured to: the second chip stores the picture data in a memory and manages the picture data by using a linked list;
and when the storage space of the memory is insufficient, managing the picture data corresponding to the linked list by using a page replacement algorithm so as to delete the picture data which is stored in the memory for the longest time and is not used.
In some embodiments, the first sending module 402 may be further configured to: the second chip sends second request information to the first chip, wherein the second request information is used for requesting to acquire the running information of a second application program; the second receiving module 403 may further be configured to: the second chip receives the running information of the second application program returned by the first chip; the execution module 404 may be further configured to: and the second chip switches and operates the corresponding second application program according to the operation information of the second application program.
In some embodiments, the first sending module 402 may also be configured to: the second chip sends first request information to the first chip through a mailbox interface; the second receiving module 403 may also be configured to: and the second chip receives the running information of the first application program returned by the first chip through a serial peripheral interface.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the method for operating a chip provided in this embodiment.
The embodiment of the application further provides an electronic device, which comprises a memory, a first chip and a second chip, wherein the first chip and the second chip execute the flow in the chip operation method provided by the embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 500 may include a first chip 501, a second chip 502, a memory 503, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The memory 503 may be used to store applications and data. The memory 503 stores applications containing executable code. The application programs may constitute various functional modules. The first chip 501 and the second chip 502 execute various functional applications and data processing by running an application program stored in the memory 503.
The first chip 501 and the second chip 502 are control centers of the electronic device, connect various parts of the whole electronic device by using various interfaces and lines, and perform various functions of the electronic device and process data by running or executing an application program stored in the memory 503 and calling data stored in the memory 503, thereby performing overall monitoring of the electronic device.
In this embodiment, the first chip 501 and the second chip 502 in the electronic device load the executable code corresponding to the process of one or more application programs into the memory 503 according to the following instructions, and the first chip 501 and the second chip 502 run the application programs stored in the memory 503, so as to execute:
the second chip receives the system information sent by the first chip and runs an operating system according to the system information;
based on the operating system, the second chip sends first request information to the first chip, wherein the first request information is used for requesting to acquire running information of a first application program;
the second chip receives the running information of the first application program returned by the first chip;
and the second chip runs the corresponding first application program according to the running information of the first application program.
Referring to fig. 8, the electronic device 500 may include a first chip 501, a second chip 502, a memory 503, an input unit 504, a display 505, a power source 506, an audio circuit 507, a sensor 508, and other components.
The input unit 504 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 504 may include a fingerprint recognition module.
The display screen 505 may be used to display information entered by or provided to a user as well as various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof.
The power supply 506 is used to power the various components of the electronic device 500. In some embodiments, the power source 409 may implement functions to manage charging, discharging, and power consumption management via a power management system.
Audio circuitry 507 may provide an audio interface between a user and an electronic device through a speaker, microphone. Where audio circuitry 507 includes a microphone. The microphone is used for receiving voice information input by a user.
The sensor 508 is used to collect external environmental information. The sensors 508 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, and the like.
Although not shown in the drawings, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the first chip 501 and the second chip 502 in the electronic device 500 load instructions corresponding to one or more computer program processes into the memory 503 according to the following steps, and the first chip 501 and the second chip 502 run the computer program stored in the memory 503, so as to execute:
the second chip receives the system information sent by the first chip and runs an operating system according to the system information;
based on the operating system, the second chip sends first request information to the first chip, wherein the first request information is used for requesting to acquire running information of a first application program;
the second chip receives the running information of the first application program returned by the first chip;
the second chip runs the corresponding first application program according to the running information of the first application program
In an embodiment, a picture data resource in the running information of the first application is empty, and after the second chip runs the corresponding first application according to the running information of the first application, the first chip 501 and the second chip 502 execute that when the first application calls picture data in the running process, the second chip sends picture request information corresponding to the picture data to the first chip;
and the second chip receives the picture data returned by the first chip.
In an embodiment, after the second chip receives the picture data returned by the first chip, the first chip 501 and the second chip 502 execute the second chip to store the picture data in a memory, and manage the picture data by using a linked list;
and when the storage space of the memory is insufficient, managing the picture data corresponding to the linked list by using a page replacement algorithm so as to delete the picture data which is stored in the memory for the longest time and is not used.
In one embodiment, after the second chip runs the corresponding first application according to the running information of the first application, the first chip 501 and the second chip 502 execute the second chip to send second request information to the first chip, where the second request information is used to request to obtain the running information of the second application;
the second chip receives the running information of the second application program returned by the first chip;
and the second chip switches and operates the corresponding second application program according to the operation information of the second application program.
In one embodiment, in the sending of the first request message to the first chip by the second chip, the first chip 501 and the second chip 502 execute the second chip to send the first request message to the first chip through a mailbox interface; in the case that the second chip receives the running information of the first application program returned by the first chip, the first chip 501 and the second chip 502 execute that the second chip receives the running information of the first application program returned by the first chip through a serial peripheral interface.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the device control method, and are not described herein again.
The chip running device provided in the embodiment of the present application and the chip running method in the above embodiments belong to the same concept, and any method provided in the embodiment of the chip running method can be run on the chip running device, and the specific implementation process thereof is described in detail in the embodiment of the device control method, and is not described herein again.
It should be noted that, for the method for chip operation in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the apparatus control method in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the apparatus control method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the chip-operating device according to the embodiment of the present application, each functional module may be a single module, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the storage medium, and the electronic device for chip operation provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A chip operation method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a first chip and a second chip, and the method comprises the following steps:
the second chip receives the system information sent by the first chip and runs an operating system according to the system information;
based on the operating system, the second chip sends first request information to the first chip, wherein the first request information is used for requesting to acquire running information of a first application program;
the second chip receives the running information of the first application program returned by the first chip;
and the second chip runs the corresponding first application program according to the running information of the first application program.
2. The chip operating method according to claim 1, wherein the picture data resource in the operating information of the first application is empty, and after the second chip operates the corresponding first application according to the operating information of the first application, the method further comprises:
when the first application program calls picture data in the operation process, the second chip sends picture request information corresponding to the picture data to the first chip;
and the second chip receives the picture data returned by the first chip.
3. The method for chip operation according to claim 2, wherein after the second chip receives the picture data returned by the first chip, the method further comprises:
the second chip stores the picture data in a memory and manages the picture data by using a linked list;
and when the storage space of the memory is insufficient, managing the picture data corresponding to the linked list by using a page replacement algorithm so as to delete the picture data which is stored in the memory for the longest time and is not used.
4. The chip operating method according to claim 1, wherein after the second chip operates the corresponding first application according to the operation information of the first application, the method further comprises:
the second chip sends second request information to the first chip, wherein the second request information is used for requesting to acquire the running information of a second application program;
the second chip receives the running information of the second application program returned by the first chip;
and the second chip switches and operates the corresponding second application program according to the operation information of the second application program.
5. The chip operation method according to claim 1, wherein the sending, by the second chip, the first request message to the first chip comprises:
the second chip sends first request information to the first chip through a mailbox interface;
the second chip receiving the running information of the first application program returned by the first chip comprises the following steps:
and the second chip receives the running information of the first application program returned by the first chip through a serial peripheral interface.
6. An apparatus for chip operation, applied to an electronic device, wherein the electronic device includes a first chip and a second chip, the apparatus comprising:
the first receiving module is used for the second chip to receive the system information sent by the first chip and run an operating system according to the system information;
the sending module is used for sending first request information to the first chip by the second chip based on the operating system, wherein the first request information is used for requesting to acquire running information of a first application program;
the second receiving module is used for receiving the running information of the first application program returned by the first chip by the second chip;
and the running module is used for running the corresponding first application program by the second chip according to the running information of the first application program.
7. The apparatus for chip running according to claim 6, wherein the picture data resource in the running information of the first application is empty, the apparatus for chip running further comprising:
the second sending module is used for sending the picture request information corresponding to the picture data to the first chip by the second chip when the first application program calls the picture data in the running process;
and the second chip receives the picture data returned by the first chip.
8. The chip-operating apparatus according to claim 6, further comprising:
the picture management module is used for storing the picture data in an internal memory by the second chip and managing the picture data by utilizing a linked list;
and when the storage space of the memory is insufficient, managing the picture data corresponding to the linked list by using a page replacement algorithm so as to delete the picture data which is stored in the memory for the longest time and is not used.
9. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any of claims 1 to 5.
10. An electronic device comprising a memory, a first chip, a second chip, wherein the first chip and the second chip are configured to perform the method of any of claims 1 to 5 by calling a computer program stored in the memory.
CN202011241510.XA 2020-11-09 2020-11-09 Chip operation method and device, storage medium and electronic equipment Pending CN114489826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011241510.XA CN114489826A (en) 2020-11-09 2020-11-09 Chip operation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011241510.XA CN114489826A (en) 2020-11-09 2020-11-09 Chip operation method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114489826A true CN114489826A (en) 2022-05-13

Family

ID=81491005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011241510.XA Pending CN114489826A (en) 2020-11-09 2020-11-09 Chip operation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114489826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453548A (en) * 2023-10-26 2024-01-26 上海合芯数字科技有限公司 Code module information determining method, apparatus, computer device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0817096A2 (en) * 1996-04-02 1998-01-07 Texas Instruments Incorporated Integrated circuit
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system
CN101901159A (en) * 2010-08-03 2010-12-01 中兴通讯股份有限公司 Method and system for loading Linux operating system on multi-core CPU
US20110067013A1 (en) * 2009-09-15 2011-03-17 Advanced Micro Devices, Inc. Systems and methods for deferring software implementation decisions until load time
CN105528225A (en) * 2015-11-30 2016-04-27 用友优普信息技术有限公司 Application loading method and loading apparatus
CN106528217A (en) * 2016-10-26 2017-03-22 武汉船舶通信研究所 FPGA (Field Programmable Gate Array) program loading system and method
CN109117205A (en) * 2018-07-23 2019-01-01 北京大恒图像视觉有限公司 A kind of dual chip loading method based on MCU and FPGA
CN109960520A (en) * 2017-12-25 2019-07-02 浙江宇视科技有限公司 Program loading method, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0817096A2 (en) * 1996-04-02 1998-01-07 Texas Instruments Incorporated Integrated circuit
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system
US20110067013A1 (en) * 2009-09-15 2011-03-17 Advanced Micro Devices, Inc. Systems and methods for deferring software implementation decisions until load time
CN101901159A (en) * 2010-08-03 2010-12-01 中兴通讯股份有限公司 Method and system for loading Linux operating system on multi-core CPU
CN105528225A (en) * 2015-11-30 2016-04-27 用友优普信息技术有限公司 Application loading method and loading apparatus
CN106528217A (en) * 2016-10-26 2017-03-22 武汉船舶通信研究所 FPGA (Field Programmable Gate Array) program loading system and method
CN109960520A (en) * 2017-12-25 2019-07-02 浙江宇视科技有限公司 Program loading method, device and electronic equipment
CN109117205A (en) * 2018-07-23 2019-01-01 北京大恒图像视觉有限公司 A kind of dual chip loading method based on MCU and FPGA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李毅伦;宋虹;王大成;王建新;: "基于应用程序分层技术的镜像管理机制研究", 计算机应用与软件, no. 02, 15 February 2018 (2018-02-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453548A (en) * 2023-10-26 2024-01-26 上海合芯数字科技有限公司 Code module information determining method, apparatus, computer device and storage medium

Similar Documents

Publication Publication Date Title
US11868785B2 (en) Application program page processing method and device
KR102552419B1 (en) Method, device, electronic equipment and readable storage medium for sharing gpu
CN107832100B (en) APK plug-in loading method and terminal thereof
CN112257135B (en) Model loading method and device based on multithreading, storage medium and terminal
CN108595218B (en) Method and device for loading dynamic library of system
CN110471701B (en) Image rendering method and device, storage medium and electronic equipment
CN101025698A (en) Apparatus for forcibly terminating thread blocked on input/output operation and method for the same
JP2021518955A (en) Processor core scheduling method, equipment, terminals and storage media
EP3816821A2 (en) Search method and apparatus, electronic device and storage medium
CN115421787A (en) Instruction execution method, apparatus, device, system, program product, and medium
CN111831411A (en) Task processing method and device, storage medium and electronic equipment
CN114489826A (en) Chip operation method and device, storage medium and electronic equipment
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN115469937A (en) Plug-in operation method and device, electronic equipment and storage medium
CN114595080A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN114070892A (en) Data transmission method and device
CN116599917B (en) Network port determining method, device, equipment and storage medium
CN111767093B (en) Data processing method, apparatus and storage medium
CN112333787B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN112925654B (en) Picture decoding method, device, computer equipment and storage medium
CN114764354B (en) PAAS-based dependency management method, PAAS-based dependency management device, electronic equipment and medium
CN115801785A (en) Multi-user management method and device for cloud mobile phone, server and storage medium
CN116737404A (en) Method and terminal device for application connection
CN115629881A (en) Host, data processing system, method, electronic device, and storage medium
CN115048596A (en) Page loading method, device, equipment, medium and program product

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