CN116700833A - Method and device for downloading after application, system on chip, terminal and storage medium - Google Patents

Method and device for downloading after application, system on chip, terminal and storage medium Download PDF

Info

Publication number
CN116700833A
CN116700833A CN202310930975.3A CN202310930975A CN116700833A CN 116700833 A CN116700833 A CN 116700833A CN 202310930975 A CN202310930975 A CN 202310930975A CN 116700833 A CN116700833 A CN 116700833A
Authority
CN
China
Prior art keywords
file
information
storage space
application
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310930975.3A
Other languages
Chinese (zh)
Other versions
CN116700833B (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.)
State Grid Corp of China SGCC
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing Smartchip Microelectronics 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 State Grid Corp of China SGCC, Beijing Smartchip Microelectronics Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202310930975.3A priority Critical patent/CN116700833B/en
Priority to CN202311490017.5A priority patent/CN117591193A/en
Publication of CN116700833A publication Critical patent/CN116700833A/en
Application granted granted Critical
Publication of CN116700833B publication Critical patent/CN116700833B/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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, a system on chip, a terminal and a storage medium for downloading after application, wherein the method comprises the following steps: compiling a source program of an application to be downloaded by a terminal to obtain a loadable file, and compiling the loadable file to obtain file header information, wherein the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; the system-on-chip dynamically allocates the storage space of the system-on-chip based on the first storage space information to obtain second storage space information; downloading the loadable file to the system on chip to form an executable file according to the second storage space information; dynamically distributing the operation resources of the system on chip according to the first operation resource information to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, the storage space of the system on chip can be saved, and flexible application management can be realized, so that the use experience of a user is improved.

Description

Method and device for downloading after application, system on chip, terminal and storage medium
Technical Field
The present invention relates to the field of system-on-chip technologies, and in particular, to a method and apparatus for post-application downloading, a system-on-chip, a terminal, and a storage medium.
Background
With the continuous development of system-on-chip technology, a system-on-chip integrated with a plurality of different applications is increasingly favored by users, wherein the applications include data structures, data elements and program modules required for meeting specific functions, such as application programs including payment functions in the financial industry, metering, event recording functions in the power industry, communication functions and the like, and operating system part codes capable of becoming user states, such as user state drivers, user state file systems, user state components and the like. At present, operations such as downloading, updating, installing and deleting of applications in a system on chip can be performed in a mode of downloading after the applications after the embedded operating system is released. For example, two spaces can be fixed in the system on chip, wherein one space is used as a downloading area of the application, the other space is used as a using code area of the application, and the downloading area and the using area are alternately switched; alternatively, the application may be downloaded into a fixed space of the system-on-chip. However, these post-application download methods are relatively single and easily result in waste of storage space, which is not conducive to flexible management of applications.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, a first object of the present invention is to provide a method for downloading after application, which can dynamically allocate a storage space corresponding to first storage space information and an operation resource corresponding to first operation resource information on a system on chip for a loadable file according to first operation resource information and first storage space information of the loadable file in a terminal obtained in advance after an embedded operating system of the system on chip is released, and download the loadable file to the system on chip according to a dynamic allocation result to form an executable file, and execute the executable file, so that not only can the storage space of the system on chip be saved, but also different management can be performed for different applications, thereby realizing flexible application management, and further improving the user experience.
A second object of the present invention is to propose another post-application download method.
A third object of the present invention is to propose an apparatus for post-application downloading.
A fourth object of the present invention is to propose another post-application downloading device.
A fifth object of the invention is to propose a system on a chip.
A sixth object of the present invention is to propose a terminal.
A seventh object of the present invention is to propose a post-application download system.
An eighth object of the present invention is to propose a computer readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a post-application download method, applied to a system on a chip, the method including: the method comprises the steps of obtaining a loadable file corresponding to an application to be downloaded and file header information corresponding to the loadable file, wherein the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, and the file header information is obtained by compiling the loadable file by the terminal, and comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
According to the method for downloading the application, the method is applied to a system on chip, and the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained through the compiling of the source program of the application to be downloaded by the terminal, wherein the file header information is obtained through the post-compiling of the loadable file by the terminal, and comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
According to one embodiment of the present invention, the first storage space information includes storage space information of each storage segment of the loadable file in the terminal, wherein, based on the first storage space information, a storage space of the system on chip is dynamically allocated for the loadable file, and the obtaining the second storage space information includes: determining the storage space information of each storage section corresponding to the loadable file in the system-on-chip according to the storage space information of each storage section of the loadable file in the terminal; and taking the storage space information of each storage section corresponding to the loadable file in the system on chip as second storage space information.
According to one embodiment of the present invention, a storage section of a loadable file in a terminal includes a first heap space, a first stack space, a first data section and a first code section, wherein determining storage space information of each storage section of the loadable file corresponding to each storage section in a system on chip according to storage space information of each storage section of the loadable file in the terminal includes: the size of the second heap space, the size of the second stack space, the size of the second data segment, the size of the second code segment, and the start address of the second heap space, the start address of the second stack space, the start address of the second data segment, and the start address of the second code segment corresponding to the loadable file in the system on chip are determined according to the size of the first heap space, the size of the first stack space, the size and start address of the first data segment, and the size and start address of the first code segment.
According to one embodiment of the present invention, the file header information further includes identification information of the application to be downloaded, and the method further includes: and storing the second storage space information and the identification information into an application registry of the system on chip so as to operate the application to be downloaded according to the application registry.
According to one embodiment of the present invention, before dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information, to obtain the second storage space information, the method further comprises: and carrying out integrity check on the loadable file by presetting an integrity check algorithm.
According to one embodiment of the invention, the preset integrity check algorithm comprises at least one of: CRC16 algorithm, CRC32 algorithm, SHA1 algorithm, SHA256 algorithm, SM3 algorithm, SM1-MAC algorithm.
According to one embodiment of the invention, the loadable file comprises one of the following: bin files, hex files.
According to one embodiment of the present invention, the file header information further includes file type information of the loadable file, and before dynamically allocating a storage space of the system on chip for the loadable file based on the first storage space information, the method further includes: and verifying the type of the loadable file according to the file type information of the loadable file.
According to one embodiment of the present invention, the first operation resource information includes a start code section, and dynamically allocates operation resources of the system on chip for the executable file according to the first operation resource information to obtain second operation resource information, including: and running the starting code segment, setting a pointer of a second heap space for the executable file, initializing the content of the second data segment and repositioning the second code segment, and taking the pointer of the second heap space, the content of the initialized second data segment and the address information after repositioning as second running resource information.
According to one embodiment of the present invention, the file header information further includes an application instance name, where the application instance name is obtained by configuring the terminal to the application instance in the post-compiling step, and after the executable file is formed, the method further includes: the executable file is installed as an application instance and the application instance name is stored in an application registry.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides another post-application download method, applied to a terminal, including: compiling a source program of the application to be downloaded to obtain a loadable file corresponding to the application to be downloaded; compiling the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal; the loadable file and the file header information are sent to the system on chip, so that the system on chip dynamically allocates the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
According to the method for downloading the loadable files after the application, which is disclosed by the embodiment of the invention, the method is applied to the terminal, after the embedded operating system of the system on chip is issued, according to the first operation resource information and the first storage space information of the loadable files in the terminal, the storage space corresponding to the first storage space information and the operation resource corresponding to the first operation resource information on the system on chip are dynamically allocated for the loadable files, and the loadable files are downloaded to the system on chip according to a dynamic allocation result to form executable files, and the executable files are executed, so that the storage space of the system on chip can be saved, different management can be carried out according to different applications, flexible application management is realized, and the use experience of a user is further improved.
To achieve the above object, an embodiment of a third aspect of the present invention provides a post-application downloading device, applied to a system on a chip, the post-application downloading device includes: the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring loadable files corresponding to an application to be downloaded and file header information corresponding to the loadable files, the loadable files are obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable files by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable files in the terminal; the first allocation module is used for dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; the downloading module is used for downloading the loadable file into the system on chip according to the second storage space information to form an executable file; the second allocation module is used for dynamically allocating the running resources of the system on chip for the executable file according to the first running resource information to obtain second running resource information; and the operation module is used for operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
The device for downloading the application after the application is applied to a system on chip, and the loadable file corresponding to the application to be downloaded and file header information corresponding to the loadable file are obtained through an obtaining module, wherein the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal after compiling the loadable file, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically distributing the storage space of the system on chip for the loadable file based on the first storage space information through a first distribution module to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information through a downloading module to form an executable file; the second allocation module dynamically allocates the running resources of the system on chip for the executable file according to the first running resource information to obtain second running resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information through the operation module. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In order to achieve the above object, a fourth aspect of the present invention provides another post-application downloading device, applied to a terminal, the post-application downloading device comprising: the compiling module is used for compiling a source program of the application to be downloaded to obtain a loadable file corresponding to the application to be downloaded; the post-compiling module is used for carrying out post-compiling on the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal; the sending module is used for sending the loadable file and the file header information to the system on chip so that the system on chip dynamically allocates the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
The device for downloading the application after the application is applied to the terminal, and the source program of the application to be downloaded is compiled through the compiling module to obtain a loadable file corresponding to the application to be downloaded; post-compiling the loadable file through a post-compiling module to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal; the method comprises the steps that a sending module sends loadable files and file header information to a system on chip, so that the system on chip dynamically allocates storage space of the system on chip for the loadable files based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
To achieve the above object, a fifth aspect of the present invention provides a system on a chip, including: the system comprises a first memory, a first processor and a program stored in the first memory and capable of running on the first processor, wherein the first processor realizes the post-application downloading method of the embodiment of the first aspect when executing the program.
In the on-chip system, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, wherein the file header information is obtained by compiling the loadable file by the terminal, and comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
To achieve the above object, a sixth aspect of the present invention provides a terminal, including: the second processor executes the program to realize the post-application downloading method of the second aspect embodiment.
In the terminal, after the embedded operating system of the system on chip is issued, according to the first operation resource information and the first storage space information of the loadable file in the terminal, the storage space corresponding to the first storage space information and the operation resource corresponding to the first operation resource information on the system on chip are dynamically allocated for the loadable file, and the loadable file is downloaded to the system on chip according to the dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be performed according to different applications, thereby realizing flexible application management and further improving the use experience of a user.
To achieve the above object, an embodiment of a seventh aspect of the present invention proposes a post-application download system, including the system on chip of the embodiment of the fifth aspect and the terminal of the embodiment of the sixth aspect.
In the system for downloading after application, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, wherein the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
To achieve the above object, an eighth aspect of the present invention provides a computer-readable storage medium having a program stored thereon, the program being executable by a processor to implement the post-application download method of the embodiments of the first and second aspects.
In the computer readable storage medium, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flow chart of a post-application downloading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a post-application download system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for compiling and post-compiling an application to be downloaded according to an embodiment of the present invention;
fig. 4 is a flow chart of an installation method of an application to be downloaded according to an embodiment of the present invention;
fig. 5 is a flow chart of an execution method of an application to be downloaded according to an embodiment of the present invention;
FIG. 6 is a flowchart of another method for compiling and post-compiling an application to be downloaded according to an embodiment of the present invention;
fig. 7 is a flowchart of another method for installing an application to be downloaded according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating another method for executing an application to be downloaded according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a post-application downloading device according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of another post-application downloading device according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a system-on-chip according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
First, some terms involved in the present invention will be briefly described:
EOS (Embedded Operating System ): an operating system for an embedded system. An embedded operating system is a widely used system software, and generally includes a bottom layer driver software related to hardware, a system kernel, a device driver interface, a communication protocol, a graphic interface, a standardized browser, and the like. The embedded operating system is responsible for the allocation of all software and hardware resources, task scheduling, control and coordination of concurrent activities of the embedded system. It must embody the characteristics of the system in which it is located and be able to achieve the functions required by the system by loading and unloading certain modules.
COS (Chip Operating System, on-chip operating system): an operating System running on a SOC (System on Chip ), such as a secure Chip of a card and identification security device. Integrating an embedded system with a specific function onto one chip becomes a system-on-chip SOC, so a system-on-chip is a special case of an embedded system. The on-chip operating system COS generally refers to an operating system on a product form of a system on chip SOC such as a smart card, a USB key (hardware device of a USB interface), an ESAM (Embedded Secure Access Module, embedded security control module), a SE (Secure Element), and the like.
Application: the data structures, data elements and program modules required for meeting specific functions comprise application programs such as payment functions in the financial industry, metering functions in the power industry, event recording functions, communication functions and the like, and also comprise operating system part codes capable of becoming user mode, such as user mode drivers, user mode file systems, user mode components and the like.
Downloading after application: after the embedded operating system is released, an application management mode of operations such as downloading, updating, installing and deleting of the application can be performed.
The following describes a post-application downloading method, a device, a system on a chip, a terminal and a storage medium according to an embodiment of the present invention with reference to the accompanying drawings.
In the present application, referring to fig. 1, fig. 1 is a flow chart of an post-application downloading method provided by an embodiment of the present application, where the post-application downloading method provided by the embodiment may include the following steps:
s101, compiling a source program of an application to be downloaded by the terminal to obtain a loadable file corresponding to the application to be downloaded.
Specifically, a source program of the application to be downloaded can be developed for a function required to be realized by the application to be downloaded, and the source program of the application to be downloaded is compiled by an application compiler in the terminal to obtain a loadable file corresponding to the application to be downloaded. In particular, the application compiler may preset a file format of the loadable file, and compile a source program of the application to be downloaded into the loadable file in the file format.
Specifically, the loadable files may include, but are not limited to, bin files, hex files, or other custom type files. The loadable files in the prior art are typically ELF (Executable and Linkable Format ) files, and for the same piece of source program, the compiled ELF files typically include data on the order of hundred kilobytes, whereas the compiled bin files may include data on the order of only a few kilobytes. In this embodiment, by using a bin file, a hex file or other files of a custom type in the post-compiling method, only effective information is extracted into the file header, which can save storage space and improve execution efficiency.
S102, the terminal compiles the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal.
Specifically, an application compiler in the terminal can perform post-compiling on the loadable file in a post-compiling mode to obtain file header information comprising first running resource information and first storage space information of the loadable file in the terminal. In specific implementation, the post-compiling mode may be a post-compiling tool, a program code or an SDK (Software Development Kit ) library package mode, etc.
The first operation resource information may represent specific operation information of the loadable file in the terminal. And, because the memory in the terminal allocates a storage space for the loadable file when storing the loadable file corresponding to the application to be downloaded, the first storage space information can characterize specific storage information of the loadable file in the terminal memory.
S103, the terminal sends loadable files and file header information to the system on chip.
Specifically, an embedded operating system may be integrated in the on-chip system, and the embedded operating system may include, but is not limited to, a real-time operating system, an internet of things operating system, an on-chip operating system, and the like. In specific implementation, the system on chip may be a smart card including a security chip, a usb key, an SE, an intelligent module using a main control chip, and the like.
Specifically, the terminal may send the loadable file and the file header information to the system on chip through a communication manner such as a network. In particular, the terminal may directly send the loadable file and the header information to the system on chip, or the terminal may send the loadable file and the header information to the system on chip through other devices (e.g., a server).
S104, the system on chip acquires loadable files and file header information.
S105, the system-on-chip dynamically allocates the storage space of the system-on-chip for the loadable file based on the first storage space information to obtain second storage space information.
Specifically, based on the first storage space information of the loadable file in the terminal, the storage space of the system on chip can be dynamically allocated for the loadable file on the system on chip, and the dynamic allocation result information is used as the second storage space information. For example, the storage space of the system on a chip may be a space such as Flash (Flash Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), or other data organization modes such as a file system.
And S106, downloading the loadable file into the system on chip according to the second storage space information to form an executable file.
Specifically, the loadable file may be downloaded to the system on chip according to the dynamic allocation result information to form the executable file.
Alternatively, an executable file containing executable modules may be installed as an application instance. Executable files and application instances downloaded into the system-on-chip may also be deleted.
S107, according to the first operation resource information, dynamically distributing the operation resource of the system on chip for the executable file to obtain second operation resource information.
Specifically, the running resources of the system on chip can be dynamically allocated to the executable file according to the specific running information of the loadable file in the terminal, so as to obtain the second running resource information of the executable file in the system on chip.
S108, running the executable file in the system on chip according to the second storage space information and the second running resource information.
Specifically, after receiving a trigger instruction for running the application, an executable file can be run in the system on chip according to the second storage space information and the second running resource information, so as to start the service application and execute the application.
According to the method for downloading the application, provided by the embodiment of the invention, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In some embodiments, the system on a chip may download the complete loadable file for application upgrades to achieve a full upgrade; the system on chip can also carry out application upgrading by downloading a differential package of a target file of the application locally and a source file on the terminal so as to realize differential upgrading.
In some embodiments, the first storage space information may include storage space information of each storage segment of the loadable file in the terminal, where dynamically allocating a storage space of the system on chip for the loadable file based on the first storage space information to obtain the second storage space information may include: determining the storage space information of each storage section corresponding to the loadable file in the system-on-chip according to the storage space information of each storage section of the loadable file in the terminal; and taking the storage space information of each storage section corresponding to the loadable file in the system on chip as second storage space information.
Specifically, when the memory in the terminal stores the loadable file corresponding to the application to be downloaded, a storage space is allocated for the loadable file, and the storage space allocated by the memory in the terminal can include a plurality of different storage segments, so that the loadable file can be stored in the terminal memory in the form of the storage segments. The first storage space information may include storage space information of each storage segment of the loadable file in the terminal.
Specifically, according to the storage space information of each storage segment of the loadable file in the terminal, the storage space information of each storage segment corresponding to the loadable file in the system on chip can be determined. That is, the loadable file may be stored in the memory within the terminal in the form of a memory segment, or may be stored in the system on a chip in the form of a memory segment. And, the storage space information of each storage segment corresponding to the loadable file in the system on chip can be used as second storage space information, wherein the second storage space information can represent specific storage space information of the loadable file in the system on chip.
For example, the loadable file is stored in the terminal memory in the form of a memory segment a1, a memory segment b1 … …, and a memory segment n 1. The storage space information of the storage section a2 of the system on chip, which corresponds to the loadable file storage section a1, can be determined according to the storage space information of the storage section a 1; the storage space information … … of the storage segment b2, which determines that the portion of the content corresponding to the loadable file storage segment b1 is stored in the system-on-chip, may determine the storage space information of the storage segment n2, which determines that the portion of the content corresponding to the loadable file storage segment n1 is stored in the system-on-chip, based on the storage space information of the storage segment n 1.
In the embodiment of the invention, the first storage space information comprises storage space information of each storage section of the loadable file in the terminal, and the storage space information of each storage section of the loadable file in the system on chip is determined according to the storage space information of each storage section of the loadable file in the terminal; and taking the storage space information of each storage section corresponding to the loadable file in the system on chip as second storage space information. Therefore, the storage space corresponding to each storage section on the system on chip can be dynamically allocated for the loadable file according to the storage space information of each storage section of the loadable file in the terminal, so that the storage space of the system on chip can be saved, different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In some embodiments, the storage section of the loadable file in the terminal may include a first heap space, a first stack space, a first data section and a first code section, where determining, according to the storage space information of each storage section of the loadable file in the terminal, the storage space information of each corresponding storage section of the loadable file in the system on chip may include: the size of the second heap space, the size of the second stack space, the size of the second data segment, the size of the second code segment, and the start address of the second heap space, the start address of the second stack space, the start address of the second data segment, and the start address of the second code segment corresponding to the loadable file in the system on chip are determined according to the size of the first heap space, the size of the first stack space, the size and start address of the first data segment, and the size and start address of the first code segment.
Specifically, the storage section of the loadable file in the terminal may include a first heap space, a first stack space, a first data section and a first code section, where the first heap space may store dynamically allocated data and the like, the first stack space may store data related to function calls such as local variables, function parameters, return addresses and the like, the first data section may store initialized global variables in the program, and the first code section may store program execution codes and the like.
Specifically, the size of the second stack space corresponding to the loadable file in the system on chip may be determined according to the size of the first stack space of the loadable file in the terminal, and the size of the second stack space corresponding to the loadable file in the system on chip may be determined according to the size of the first stack space of the loadable file in the terminal; and allocates a start address for the second stack space and the second stack space, respectively. The size and the starting address of a second data segment corresponding to the loadable file in the system-on-chip can be determined according to the size and the starting address of the first data segment of the loadable file in the terminal; the size and start address of the corresponding second code segment of the loadable file in the system on chip may be determined based on the size and start address of the first code segment of the loadable file in the terminal.
In the embodiment of the invention, the storage section of the loadable file in the terminal comprises a first heap space, a first stack space, a first data section and a first code section, and the size of a second heap space, the size of the second stack space, the size of the second data section and the size of the second code section and the starting address of the second stack space, the starting address of the second data section and the starting address of the second code section corresponding to the loadable file in the system on chip are determined according to the size of the first heap space, the size of the first stack space, the size and starting address of the first data section and the size and starting address of the first code section. Therefore, the second stack space, the second data segment and the second code segment with the same size on the system on chip can be respectively and dynamically allocated for the loadable file according to the size of the first stack space, the first data segment and the first code segment of the loadable file in the terminal, so that the storage space of the system on chip can be saved, different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In some embodiments, the file header information may further include identification information of an application to be downloaded, and the post-application downloading method may further include: and storing the second storage space information and the identification information into an application registry of the system on chip so as to operate the application to be downloaded according to the application registry.
Specifically, since a plurality of applications capable of realizing different functions can be installed in the system on chip, the application registry in the system on chip can store the application information of each application, so that the terminal can configure the identification information (for example, application name) for the application to be downloaded and add the identification information to the file header information, so that the system on chip can store the second storage space information of the application to be downloaded and the identification information together in the application registry of the system on chip, and the system on chip can run the application to be downloaded by searching the application registry.
Specifically, according to the requirements of different operating systems, according to the application name of the application to be downloaded, the identification information such as an application installation package ID (Identity) and an application ID is configured for the application to be downloaded, and the configured identification information is stored in an application registry together.
Specifically, when application information of a plurality of applications is stored in the application registry, if running instructions of the plurality of applications are obtained simultaneously, the plurality of applications can be run simultaneously by searching the application registry and according to the application information of each application, so that the running efficiency is improved.
In particular, to prevent effects on running loadable files, or to download loadable files erroneously, the embedded operating system may use mechanisms of backup, conditional execution and rollback protection.
In the embodiment of the invention, the file header information further comprises identification information of the application to be downloaded, and the second storage space information and the identification information are stored in an application registry of the system on chip so as to operate the application to be downloaded according to the application registry. Therefore, the application to be downloaded can be operated by searching the application registry, so that the operation efficiency is improved.
In some embodiments, before the dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain the second storage space information, the post-application downloading method may further include: and carrying out integrity check on the loadable file by presetting an integrity check algorithm.
Specifically, the terminal can increase a first integrity check field for the loadable file obtained by compiling through a preset integrity check algorithm; after receiving the loadable file, the system on chip can calculate the second integrity check field through a corresponding preset integrity check algorithm, and the integrity check of the loadable file is completed by comparing the first integrity check field with the second integrity check field. After the verification is passed, the storage space of the system on chip can be dynamically allocated for the loadable file based on the first storage space information, so as to obtain second storage space information.
Specifically, the preset integrity check algorithm may include a CRC (Cyclical Redundancy Check, cyclic redundancy check) 16 algorithm, a CRC32 algorithm, a SHA (Security Hash Algorithm, secure hash) 1 algorithm, a SHA256 algorithm, an SM3 algorithm (a cryptographic hash algorithm), an SM1-MAC algorithm (a block cryptographic algorithm), and the like.
In the embodiment of the invention, the loadable file is subjected to integrity check by presetting an integrity check algorithm. Therefore, the integrity of the loadable file can be ensured, and the security of the loadable file is improved.
In some embodiments, the file header information may further include file type information of the loadable file, and before the dynamically allocating a storage space of the system on chip for the loadable file based on the first storage space information to obtain the second storage space information, the post-application downloading method may further include: and verifying the type of the loadable file according to the file type information of the loadable file.
Specifically, when the file type information of the loadable file is included in the file header information, the system on chip may verify the type of the loadable file according to the file type information of the loadable file currently downloaded, thereby ensuring that the file type of the loadable file currently downloaded is correct.
Specifically, the file header information may further include a magic number. When the file header information includes the magic number, the system on chip can also verify the magic number, thereby ensuring that the data in the currently downloaded loadable file is correct.
In the embodiment of the invention, the file header information also comprises file type information of the loadable file, and the type of the loadable file is verified according to the file type information of the loadable file. Therefore, the correct file type of the loadable file can be ensured, and the use experience of a user is improved.
In some embodiments, the first operation resource information includes a start code section, and at this time, dynamically allocating operation resources of the system on chip for the executable file according to the first operation resource information to obtain second operation resource information may include: and running the starting code segment, setting a pointer of a second heap space for the executable file, initializing the content of the second data segment and repositioning the second code segment, and taking the pointer of the second heap space, the content of the initialized second data segment and the address information after repositioning as second running resource information.
Specifically, the code may be executed according to the address information of the code segment of the application in the registry, and the start code segment is executed first, and a pointer of the second heap space is set for the application, the content of the second data segment is initialized, and the second code segment is relocated, so that an executable file may be executed in the system on chip according to the pointer of the second heap space, the content of the initialized second data segment, the relocated address information, and the like.
In the embodiment of the invention, the first operation resource information comprises a starting code segment, a pointer of a second heap space is set for the executable file, the content of a second data segment is initialized and the second code segment is relocated by operating the starting code segment, and the pointer of the second heap space, the content of the initialized second data segment and the relocated address information are used as second operation resource information. Therefore, the executable file can be run in the system on chip according to the pointer of the second pile space, the initialized second data segment content, the relocated address information and the like, so that the business application is started, and the application execution is carried out.
In some embodiments, after the executable file is formed, the file header information may further include an application instance name, where the application instance name is configured by the terminal for the application instance in the post-compiling step, and after the executable file is formed, the post-application downloading method may further include: the executable file is installed as an application instance and the application instance name is stored in an application registry.
Specifically, the terminal may configure an application instance name for an application instance in a post-compiling process, and add the application instance name obtained by configuration to header information, and after the system-on-chip obtains the header information sent by the terminal, may install executable files including a plurality of executable modules into different application instances, and store the application instance name in an application registry, so as to run a corresponding application instance according to the application registry.
In the embodiment of the invention, the file header information further comprises an application instance name, wherein the application instance name is obtained by configuring the terminal corresponding to the application instance in the post-compiling step, and the application instance name is stored in the application registry by installing the executable file into the application instance. Therefore, the corresponding application instance can be operated according to the application registry, so that the operation efficiency is improved.
Fig. 2 is a schematic structural diagram of an post-application download system according to an embodiment of the present invention, and referring to fig. 2, the post-application download system 1 according to this embodiment may include a system on a chip 10 and a terminal 20. Among other things, the system on chip 10 may include an application installer 110 and an application executor 120, and the terminal 20 may include an application compiler 210.
Specifically, the compiling and post-compiling methods of the application to be downloaded shown in fig. 3 and 6 described below may be implemented by the application compiler 210 shown in fig. 2; the following installation method of the application to be downloaded shown in fig. 4 and 7 may also be implemented by the application installer 110 shown in fig. 2; the method for executing the application to be downloaded shown in fig. 5 and 8 described below may also be implemented by the application executor 120 shown in fig. 2.
For example, the functions that the application compiler 210 may implement are as follows in fig. 3, and the application compiler 210 may be configured to: acquiring a source program file of an application to be downloaded; performing general compiling on the source program file to obtain a loadable file; and compiling the loadable file to obtain file header information, wherein the file header information can comprise starting code segment information and application information. Thus, loadable files and header information may be obtained by the application compiler 210 described above.
As another example, the functions that the application installer 110 may implement are as follows, as shown in fig. 4, and the application installer 110 may be configured to: acquiring loadable files and file header information corresponding to an application to be downloaded; analyzing the file header information; dynamically allocating a storage space of the system on chip for the application to be downloaded (assuming that executable files of a plurality of applications, such as executable file of application 1 and executable file … … of application 2, are stored in advance in the storage space of the system on chip, and at this time, allocating the storage space of the system on chip for the application to be downloaded (application ID can be configured for the application 7 to be downloaded)), and storing the executable file of the application to be downloaded (application 7) in the storage space of the system on chip to obtain application information of the application to be downloaded (application 7); the application information of the application to be downloaded (application 7) is reversely written into an application registry of the system on chip; an application registry including application information of 7 applications is obtained. The application information of the application to be downloaded (application 7) may include: information such as an application installation package ID, an application name, a second code segment start address, a second code segment size, a second data segment start address, a second data segment size, a stack space start address, a stack space size, and the like.
Also, as shown in fig. 5, the functions that the application executor 120 may implement are as follows, and the application executor 120 may be configured to: receiving an execution control instruction of an application m (m is less than or equal to n); searching an application registry (comprising application information of n applications) to obtain application information of an application m; and searching data (such as an instruction execution unit, a stack space and a heap space) corresponding to the executable file of the application m in the storage space according to the application information of the application m, and executing the application m.
In order to describe the functions that can be implemented by the application compiler 210 in detail, fig. 6 is a schematic flow chart of another method for compiling and post-compiling an application to be downloaded according to an embodiment of the present invention, as shown in fig. 6, an execution body of the method for compiling and post-compiling an application to be downloaded according to the present embodiment is the application compiler 210, and the method for compiling and post-compiling an application to be downloaded according to the present embodiment may include the following steps:
s601, acquiring a source program file of an application to be downloaded.
S602, compiling the source program file to obtain a loadable file corresponding to the application to be downloaded.
S603, performing post-compiling on the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal.
In particular, the file header information may include information required by the application installer and the executor. When the method is concretely implemented, a section of header file starting code section can be loaded according to the requirements of different on-chip operating systems, and the initialization process of an application to be downloaded can be completed when the code section is executed, wherein the initialization process comprises the steps of setting a stack pointer, initializing data section content, repositioning the code section (first running resource information) and the like; and different application information such as magic number, application name, memory size used by the application, first stack space starting address, first stack space size, first data segment starting address (first storage space information) and the like are configured.
Specifically, the application compiler may add an integrity check field to the loadable file through algorithms such as CRC16, CRC32, SHA1, SHA256, SM3, SM1-MAC, and the like.
S604, the loadable file and the file header information are sent to the system on chip.
In the embodiment of the invention, the application compiler in the terminal can acquire the first running resource information and the first storage space information of the loadable file in the terminal in advance.
In order to describe the functions that can be implemented by the application installer 110 in detail, fig. 7 is a flowchart of another method for installing an application to be downloaded according to an embodiment of the present invention, as shown in fig. 7, an execution body of the method for installing an application to be downloaded according to the embodiment is the application installer 110, and the method for installing an application to be downloaded according to the embodiment may include the following steps:
S701, obtaining loadable files and file header information.
S702, carrying out integrity check on the loadable file.
S703, checking file header information.
For example, the correctness of the magic number and the file type can be checked to ensure that the file type and the data of the currently acquired loadable file are correct.
S704, dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information.
For example, the second storage space information may include: information such as a second code segment start address, a second code segment size, a second data segment start address, a second data segment size, a second stack space start address, a second stack space size, and the like of the application.
And S705, downloading the loadable file to the system on chip according to the second storage space information to form an executable file.
S706, configuring identification information for the application, and storing the second storage space information and the identification information into an application registry of the system-on-chip.
For example, the identification information configured for the application may include: information such as application installation package ID, application name, etc.
Specifically, the application installer may install the executable file containing the executable module as an application instance, and may delete the executable file and the application instance in the embedded operating system.
In the embodiment of the invention, the application installer in the system-on-chip can dynamically allocate the storage space corresponding to the first storage space information on the system-on-chip for the loadable file according to the first storage space information of the loadable file in the terminal, and download the loadable file into the system-on-chip according to the dynamic allocation result, thereby saving the storage space of the system-on-chip, and carrying out different management for different applications, thereby realizing flexible application management and further improving the use experience of users.
In order to describe the functions that the application executor 120 can implement in detail, fig. 8 is a flowchart of an execution method of an application to be downloaded according to an embodiment of the present invention, as shown in fig. 8, an execution body of the execution method of the application to be downloaded according to the embodiment is the application executor 120, and the execution method of the application to be downloaded according to the embodiment may include the following steps:
s801, an application execution control instruction is received, wherein the application execution control instruction comprises identification information of an application to be executed.
S802, a lightweight process of the application is created, and a storage space of a data structure contained in the process is allocated.
The data structure may include MPU _info (if an MPU (Micro Processor Unit, microprocessor) protects the process, parameters to be set when the MPU protects the process), a code segment entry address and length corresponding to the process, a data segment entry address and length, a process ID, a thread currently running by the process, and the like.
Specifically, each application may correspond to a lightweight process, and each lightweight process may include multiple threads.
S803, according to the identification information of the application to be executed, the application information of the application to be executed is searched in an application registry.
For example, the application information may include an instruction execution unit, second stack space information, second heap space information, second code segment information, second data segment information, and the like.
S804, executing the application according to the application information.
Specifically, according to the application information, the second code segment and the second data segment information of the executable file can be read; setting a second code segment according to the entry address and the length of the second code segment and initializing the second code segment; dynamically distributing and initializing a second data segment according to the address and the length (if MPU protection exists, updating corresponding information into MPU _info); opening up an application main thread stack space according to the second stack space information, and starting a business application to execute the application.
In the embodiment of the invention, the application installed on the embedded operating system can be connected and executed by an application executor in the system on chip.
Fig. 9 is a schematic structural diagram of a post-application downloading device according to an embodiment of the present invention. As shown in fig. 9, the post-application downloading device 90 is applied to a system on chip, and the post-application downloading device 90 may include: an acquisition module 910, a first allocation module 920, a download module 930, a second allocation module 940, and an execution module 950.
The obtaining module 910 may be configured to obtain a loadable file corresponding to an application to be downloaded and header information corresponding to the loadable file, where the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, and the header information is obtained by post-compiling the loadable file by the terminal, and the header information includes first running resource information and first storage space information of the loadable file in the terminal; the first allocation module 920 may be configured to dynamically allocate a storage space of the system-on-chip for the loadable file based on the first storage space information, to obtain second storage space information; the downloading module 930 may be configured to download the loadable file to the system-on-chip according to the second storage space information to form an executable file; the second allocation module 940 may be configured to dynamically allocate, according to the first operation resource information, an operation resource of the system on chip to the executable file, to obtain second operation resource information; the running module 950 may be configured to run the executable file in the system on chip according to the second storage space information and the second running resource information.
The device for downloading after application provided by the embodiment of the invention is applied to a system on chip, and the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained through an obtaining module, wherein the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically distributing the storage space of the system on chip for the loadable file based on the first storage space information through a first distribution module to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information through a downloading module to form an executable file; the second allocation module dynamically allocates the running resources of the system on chip for the executable file according to the first running resource information to obtain second running resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information through the operation module. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
Fig. 10 is a schematic structural diagram of another post-application downloading device according to an embodiment of the present invention. As shown in fig. 10, the post-application download device 100 is applied to a terminal, and the post-application download device 100 may include: a compilation module 1010, a post-compilation module 1020, and a transmission module 1030.
The compiling module 1010 may be configured to compile a source program of an application to be downloaded to obtain a loadable file corresponding to the application to be downloaded; the post-compiling module 1020 may be configured to post-compile the loadable file to obtain header information, where the header information includes first running resource information and first storage space information of the loadable file in the terminal; the sending module 1030 may be configured to send the loadable file and the file header information to the system on chip, so that the system on chip dynamically allocates a storage space of the system on chip for the loadable file based on the first storage space information, to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
The device for downloading the application provided by the embodiment of the invention is applied to a terminal, and the source program of the application to be downloaded is compiled through a compiling module to obtain a loadable file corresponding to the application to be downloaded; post-compiling the loadable file through a post-compiling module to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal; the method comprises the steps that a sending module sends loadable files and file header information to a system on chip, so that the system on chip dynamically allocates storage space of the system on chip for the loadable files based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In addition, corresponding to the post-application downloading method provided in the above embodiment, the embodiment of the present invention further provides a system on a chip, as shown in fig. 11, where the system on a chip 10 may include: the system-on-chip download method comprises a first memory 1110, a first processor 1120 and a program stored in the first memory 1110 and capable of running on the first processor 1120, wherein when the first processor 1120 executes the program, all steps of the method for downloading after application using the system-on-chip as an execution subject are realized.
In the system on chip, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, wherein the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
In addition, corresponding to the post-application downloading method provided in the above embodiment, the embodiment of the present invention further provides a terminal, as shown in fig. 12, where the terminal 20 may include: the second memory 1210, the second processor 1220, and the program stored in the second memory 1210 and capable of running on the second processor 1220, when the second processor 1220 executes the program, all the steps of the post-application downloading method using the terminal as the execution body provided by the embodiment of the present invention are implemented.
In the terminal, after the embedded operation system of the system on chip is issued, according to the first operation resource information and the first storage space information of the loadable file in the terminal, the storage space corresponding to the first storage space information and the operation resource corresponding to the first operation resource information on the system on chip are dynamically allocated for the loadable file, and the loadable file is downloaded to the system on chip according to the dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be performed according to different applications, thereby realizing flexible application management and further improving the use experience of a user.
In addition, corresponding to the post-application download method provided in the above embodiment, the embodiment of the present invention further provides a computer readable storage medium having a program stored thereon, which when executed by a processor, implements all the steps of the post-application download method of the embodiment of the present invention.
In the computer readable storage medium, the loadable file corresponding to the application to be downloaded and the file header information corresponding to the loadable file are obtained by compiling a source program of the application to be downloaded by a terminal, wherein the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal; dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file into the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing operation resources of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information. Therefore, after the embedded operating system of the system on chip is issued, the storage space corresponding to the first storage space information and the operation resources corresponding to the first operation resource information on the system on chip can be dynamically allocated for the loadable file according to the first operation resource information and the first storage space information of the loadable file in the terminal, the loadable file is downloaded to the system on chip according to a dynamic allocation result to form an executable file, and the executable file is executed, so that the storage space of the system on chip can be saved, and different management can be carried out for different applications, flexible application management is realized, and the use experience of a user is further improved.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered as a ordered listing of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (26)

1. A method of post-application download, for use with a system-on-chip, the method comprising:
acquiring a loadable file corresponding to an application to be downloaded and file header information corresponding to the loadable file, wherein the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal;
dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information;
downloading the loadable file to the system on chip according to the second storage space information to form an executable file;
according to the first operation resource information, dynamically distributing the operation resource of the system on chip for the executable file to obtain second operation resource information;
and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
2. The post-application download method as in claim 1, wherein the first storage space information comprises storage space information of each storage segment of the loadable file in the terminal, wherein,
the dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information includes:
determining storage space information of each storage section corresponding to the loadable file in the system-on-chip according to the storage space information of each storage section of the loadable file in the terminal;
and taking the storage space information of each storage section corresponding to the loadable file in the system-on-chip as second storage space information.
3. The post-application download method as in claim 2, wherein the memory segment of the loadable file in the terminal comprises a first heap space, a first stack space, a first data segment, and a first code segment, wherein,
according to the storage space information of each storage segment of the loadable file in the terminal, determining the storage space information of each storage segment corresponding to the loadable file in the system-on-chip comprises the following steps:
And determining the size of a second heap space, the size of a second stack space, the size of a second data segment, the size of a second code segment, the starting address of the second heap space, the starting address of the second stack space, the starting address of the second data segment and the starting address of the second code segment corresponding to the loadable file in the system on chip according to the size of the first heap space, the size of the first stack space, the size and the starting address of the first data segment, the size and the starting address of the first code segment.
4. A post-application download method according to any of claims 1-3, wherein the file header information further comprises identification information of the application to be downloaded, the method further comprising:
and storing the second storage space information and the identification information into an application registry of the system-on-chip so as to operate the application to be downloaded according to the application registry.
5. A method of post-application download according to any of claims 1-3, wherein before said dynamically allocating storage space of the system-on-chip for said loadable file based on said first storage space information, obtaining second storage space information, said method further comprises:
And carrying out integrity check on the loadable file by a preset integrity check algorithm.
6. The post-application download method according to claim 5, wherein the preset integrity check algorithm comprises at least one of: CRC16 algorithm, CRC32 algorithm, SHA1 algorithm, SHA256 algorithm, SM3 algorithm, SM1-MAC algorithm.
7. A method of post-application download according to any one of claims 1-3, wherein the loadable file comprises one of: bin files, hex files.
8. A method of post-application download according to any of claims 1-3, wherein the file header information further comprises file type information of the loadable file, and before dynamically allocating storage space of the system-on-chip for the loadable file based on the first storage space information to obtain second storage space information, the method further comprises:
and verifying the type of the loadable file according to the file type information of the loadable file.
9. The post-application download method as in claim 3, wherein the first execution resource information comprises a boot code segment,
the dynamically allocating the running resources of the system on chip for the executable file according to the first running resource information to obtain second running resource information, including:
And running the starting code segment, setting a pointer of the second heap space for the executable file, initializing the content of the second data segment and repositioning the second code segment, and taking the pointer of the second heap space, the initialized content of the second data segment and the repositioned address information as the second running resource information.
10. The post-application download method according to claim 4, wherein the file header information further includes an application instance name, the application instance name being obtained by the terminal configuring the application instance in the post-compiling step, and the method further comprises, after the forming the executable file:
installing the executable file into an application instance, and storing the application instance name into the application registry.
11. An post-application download method, applied to a terminal, comprising:
compiling a source program of the application to be downloaded to obtain a loadable file corresponding to the application to be downloaded;
compiling the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal;
The loadable file and the file header information are sent to a system on chip, so that the system on chip dynamically allocates the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file to the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing the operation resource of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
12. An post-application download device for use with a system-on-chip, the post-application download device comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a loadable file corresponding to an application to be downloaded and file header information corresponding to the loadable file, the loadable file is obtained by compiling a source program of the application to be downloaded by a terminal, the file header information is obtained by compiling the loadable file by the terminal, and the file header information comprises first running resource information and first storage space information of the loadable file in the terminal;
The first allocation module is used for dynamically allocating the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information;
the downloading module is used for downloading the loadable file into the system on chip according to the second storage space information to form an executable file;
the second allocation module is used for dynamically allocating the running resources of the system on chip for the executable file according to the first running resource information to obtain second running resource information;
and the operation module is used for operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
13. The post-application downloading device according to claim 12, wherein the first storage space information includes storage space information of each storage segment of the loadable file in the terminal, and wherein the first allocation module is specifically configured to determine, according to the storage space information of each storage segment of the loadable file in the terminal, the storage space information of each corresponding storage segment of the loadable file in the system on chip; and taking the storage space information of each storage section corresponding to the loadable file in the system-on-chip as second storage space information.
14. The post-application downloading device according to claim 13, wherein the storage section of the loadable file in the terminal comprises a first heap space, a first stack space, a first data section and a first code section, and wherein the first allocation module is specifically configured to determine, according to the size of the first heap space, the size of the first stack space, the size and start address of the first data section, and the size and start address of the first code section, the size of a second heap space, the size and size of a second data section, and the start address of the second heap space, the start address of the second stack space, the start address of the second data section, and the start address of the second code section, which correspond to the loadable file in the system on chip.
15. The post-application download device according to any one of claims 12-14, wherein the file header information further comprises identification information of the application to be downloaded, the device further comprising:
and the storage module is used for storing the second storage space information and the identification information into an application registry of the system-on-chip so as to operate the application to be downloaded according to the application registry.
16. The post-application download device according to any one of claims 12-14, wherein the device further comprises:
and the first checking module is used for checking the integrity of the loadable file through a preset integrity checking algorithm.
17. The post-application download device according to claim 16, wherein the pre-set integrity check algorithm comprises at least one of: CRC16 algorithm, CRC32 algorithm, SHA1 algorithm, SHA256 algorithm, SM3 algorithm, SM1-MAC algorithm.
18. The post-application download device according to any one of claims 12-14, wherein the loadable file comprises one of: bin files, hex files.
19. The post-application download device according to any one of claims 12-14, wherein the file header information further comprises file type information of the loadable file, the device further comprising:
and the second checking module is used for checking the type of the loadable file according to the file type information of the loadable file.
20. The post-application downloading device according to claim 14, wherein the first running resource information comprises a start code segment, and the second allocation module is specifically configured to run the start code segment, set a pointer of the second heap space for the executable file, initialize the second data segment content, and relocate the second code segment, and use the pointer of the second heap space, the initialized second data segment content, and relocated address information as the second running resource information.
21. The post-application download device according to claim 15, wherein the file header information further includes an application instance name, the application instance name being obtained by the terminal configuring the application instance in the post-compiling step, and the storage module is further configured to install the executable file into an application instance, and store the application instance name in the application registry.
22. An apparatus for post-application download, applied to a terminal, comprising:
the compiling module is used for compiling a source program of the application to be downloaded to obtain a loadable file corresponding to the application to be downloaded;
the post-compiling module is used for carrying out post-compiling on the loadable file to obtain file header information, wherein the file header information comprises first operation resource information and first storage space information of the loadable file in the terminal;
the sending module is used for sending the loadable file and the file header information to the system on chip so that the system on chip dynamically allocates the storage space of the system on chip for the loadable file based on the first storage space information to obtain second storage space information; downloading the loadable file to the system on chip according to the second storage space information to form an executable file; according to the first operation resource information, dynamically distributing the operation resource of the system on chip for the executable file to obtain second operation resource information; and operating the executable file in the system on chip according to the second storage space information and the second operation resource information.
23. A system on a chip, comprising: a first memory, a first processor and a program stored on the first memory and executable on the first processor, the first processor implementing the post-application download method according to any one of claims 1-10 when executing the program.
24. A terminal, comprising: a second memory, a second processor, and a program stored on the second memory and executable on the second processor, the second processor implementing the post-application download method according to claim 11 when executing the program.
25. A post-application download system comprising a system on chip according to claim 23 and a terminal according to claim 24.
26. A computer readable storage medium, characterized in that a program is stored thereon, which program, when being executed by a processor, implements the post-application download method according to any of claims 1-11.
CN202310930975.3A 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium Active CN116700833B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310930975.3A CN116700833B (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium
CN202311490017.5A CN117591193A (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310930975.3A CN116700833B (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311490017.5A Division CN117591193A (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN116700833A true CN116700833A (en) 2023-09-05
CN116700833B CN116700833B (en) 2023-11-28

Family

ID=87825988

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202311490017.5A Pending CN117591193A (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium
CN202310930975.3A Active CN116700833B (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202311490017.5A Pending CN117591193A (en) 2023-07-27 2023-07-27 Method and device for downloading after application, system on chip, terminal and storage medium

Country Status (1)

Country Link
CN (2) CN117591193A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904853A (en) * 2006-08-21 2007-01-31 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN110032446A (en) * 2019-03-27 2019-07-19 中国科学院微电子研究所 A kind of method and device applied to storage allocation space in embedded system
US20210117258A1 (en) * 2019-10-21 2021-04-22 EMC IP Holding Company LLC Method, device and computer program product for processing data
US20220343209A1 (en) * 2021-04-23 2022-10-27 EMC IP Holding Company LLC Method, device, and computer program product for managing machine learning model
CN115510423A (en) * 2022-09-01 2022-12-23 北京智芯微电子科技有限公司 Memory protection method, control device and storage medium based on RISC-V processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904853A (en) * 2006-08-21 2007-01-31 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN110032446A (en) * 2019-03-27 2019-07-19 中国科学院微电子研究所 A kind of method and device applied to storage allocation space in embedded system
US20210117258A1 (en) * 2019-10-21 2021-04-22 EMC IP Holding Company LLC Method, device and computer program product for processing data
US20220343209A1 (en) * 2021-04-23 2022-10-27 EMC IP Holding Company LLC Method, device, and computer program product for managing machine learning model
CN115510423A (en) * 2022-09-01 2022-12-23 北京智芯微电子科技有限公司 Memory protection method, control device and storage medium based on RISC-V processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QILIN SI等: "Building Complete Heterogeneous Systems-on-Chip in C: From Hardware Accelerators to CPUs", 《ELECTRONICS》, pages 1 - 17 *

Also Published As

Publication number Publication date
CN117591193A (en) 2024-02-23
CN116700833B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN110231952B (en) ECU program backup and cyclic upgrade control method and device
US7506175B2 (en) File language verification
KR101143112B1 (en) Applying custom software image updates to non-volatile storage in a failsafe manner
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
US8375382B2 (en) Enabling parallel websphere runtime versions
US20080066063A1 (en) System and method for preparing runtime checks
EP2453352A1 (en) Software updating process for an embedded device
WO2000046667A2 (en) Token-based linking
CN101510161A (en) Bootstrap implementing method, apparatus and portable electronic apparatus
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN108182078B (en) Optimized missile-borne device non-dismantling software online upgrading method
CN105739961A (en) Starting method and device of embedded system
KR20040079166A (en) Smart-card and the management method for optional applet
CN116700833B (en) Method and device for downloading after application, system on chip, terminal and storage medium
CN115437675A (en) Method, device, equipment and medium for online upgrading application program
CN100363893C (en) Loading system and method
KR100640389B1 (en) Method for executing application in an apparatus having nand flash memory and the apparatus
EP1524597A1 (en) Method for managing threads in a memory-constrained system
CN113238790B (en) Firmware program updating method and system based on SD card and EEPROM
KR20000062382A (en) Method for loading an application programme in a chip card
CN115102855A (en) Intelligent water meter embedded software online upgrading method and system
CN116107673A (en) Screen adaptation method, vehicle-mounted terminal and computer storage medium
KR100624723B1 (en) Mobile communication terminal managing hardware version and its operating method
KR100762618B1 (en) The method and system of upgrading firmware upgrade engine of mobile terminal
CN117785248B (en) Registration method and device of key variables in program upgrading, storage medium and chip

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