Operating system and application program deployment method and computer device
By selecting and downloading image files and target files of operating systems and applications from the warehouse, a combination suitable for the hardware platform is generated, which solves the complexity of embedded system deployment and achieves a flexible and cost-reduced deployment method.
Patent Information
- Application Number
- CN202410916343.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
AI Technical Summary
Existing embedded operating system deployment methods are fixed, resulting in complex maintenance on different hardware platforms and complicated application development, making it difficult to adapt to different hardware platforms and application requirements.
Provides deployment methods for operating systems and applications. By selecting and downloading the corresponding system image files and application target files from the warehouse, and programming them on the target board of the hardware platform, the operating system and applications are generated based on user configuration information. combination to achieve flexible deployment and optimization.
It improves the deployment flexibility of operating systems and applications, reduces development and maintenance costs, solves the complex problems of deployment and maintenance of different hardware platforms, and achieves seamless adaptation of operating systems and applications on different hardware platforms.
Smart Images

Figure CN118733060A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of embedded systems, and in particular relates to a method for deploying an operating system and an application program, and a computer device. Background Art
[0002] With the rapid development of science and technology, embedded systems have been widely used in various fields, such as relay protection devices, new energy storage equipment, industrial control equipment, smart home, medical equipment, smart transportation, etc. These systems and applications usually require seamless integration and efficient operation between different hardware platforms and operating systems.
[0003] In addition, with the development of the Internet of Things and intelligence, embedded systems need to support more devices and functions, which puts higher requirements on the heterogeneity and compatibility of operating systems. At the same time, in order to meet the performance requirements of different application scenarios, operating systems and applications need to be able to dynamically adjust and optimize according to different hardware platforms and task requirements. Due to differences in APIs, system calls, and underlying implementations between different operating systems, basic services, and driver frameworks. It is usually necessary to write or modify application code for different operating system platforms, which increases the complexity of development and maintenance. In addition, due to compatibility issues between different platforms, the performance and behavior of applications on different platforms may be different, which affects the user experience and the reliability of the application.
[0004] However, traditional embedded operating system deployment methods are usually relatively fixed and lack flexibility, and the operating system is tightly coupled with the underlying hardware platform. Developers are required to write or modify application code for different operating system platforms, which increases the complexity of development and maintenance. This limits the ability of embedded systems to adapt to different hardware platforms and application requirements, making it difficult to adapt to the ever-changing hardware platforms and application requirements. Summary of the invention
[0005] The purpose of the present invention is to provide an operating system deployment method and a computer device to solve the problem that the embedded operating system deployment method in the prior art is fixed, resulting in complex deployment and maintenance of the operating system on different hardware platforms; the present invention also provides an application deployment method and a computer device to solve the problem of complex application development on different operating systems.
[0006] To solve the above technical problems, the present invention provides a method for deploying an operating system, the method comprising: selecting and downloading a system image file corresponding to a required operating system from an operating system warehouse, and burning the system image file to a target board of a hardware platform to implement deployment of the required operating system on the target board; wherein the operating system warehouse stores system image files corresponding to a plurality of operating systems, and a specific method for generating the system image file comprises: selecting relevant resources of an operating system or at least two operating systems according to user configuration information, configuring the operating system and basic services according to the relevant resources of the operating system, and compiling the configuration results of the operating system and basic services to generate the system image file, wherein the user configuration information comprises hardware platform information and required operating system information.
[0007] Furthermore, the user configuration information also includes resource deployment information and application information.
[0008] Furthermore, the operating system includes an operating system of a symmetric multi-processing architecture, an operating system of an asymmetric multi-processing architecture, and an operating system of a hybrid architecture.
[0009] The beneficial effects of the above technical solution are as follows: the present invention is an improved invention, in which a variety of image files corresponding to the operating system generated according to user configuration information are stored in the operating system warehouse, and the combination of operating systems is selected and adjusted according to actual needs and user needs, and different operating systems are allocated according to their respective characteristics and advantages, so as to realize the deployment of the required operating system on the target board of the hardware platform. The user does not need to readjust and optimize the operating system according to the conditions of the hardware platform, but only needs to directly select the required image system from the operating system warehouse, which improves the flexibility of the deployment of the operating system, reduces the cost of operating system development, and solves the problem of complex deployment and maintenance of the operating system on different hardware platforms.
[0010] To solve the above technical problem, the present invention further provides a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the operating system deployment method.
[0011] To solve the above technical problems, the present invention also provides a method for deploying an application, which method includes: selecting and downloading an application target file corresponding to the required application from a twin application warehouse, and downloading the application target file to the operating system of the target board to realize the deployment of the required application on the operating system of the target board of the hardware platform; wherein, the twin application warehouse stores application target files corresponding to multiple applications, and the method for generating the application target file is: selecting an operating system or relevant resources of at least two operating systems according to user configuration information, configuring the operating system basic services according to the relevant resources of the operating system, compiling the configuration results to generate an application engineering development template, compiling the application according to the system image file parameters contained in the template, and generating application target files under different operating system scenarios, and the user configuration information includes hardware platform information and required operating system information.
[0012] Furthermore, the user configuration information also includes resource deployment information and application information.
[0013] Furthermore, the operating system includes an operating system of a symmetric multi-processing architecture, an operating system of an asymmetric multi-processing architecture, and an operating system of a hybrid architecture.
[0014] The beneficial effects of the above technical scheme are as follows: the present invention is an improved invention, and the present invention stores a variety of application target files generated according to the operating system image files in the twin application warehouse. According to actual needs and user needs, the combination and deployment of the operating system and the deployment of the application target files corresponding to the corresponding application are selected and adjusted, and different operating systems and corresponding application target files are allocated according to their respective characteristics and advantages, so as to realize the deployment of the required application on the operating system of the target board of the hardware platform. Users do not need to adjust and optimize the application according to different operating systems, but only need to directly select the required application target files from the twin application warehouse, which improves the flexibility of application deployment, reduces the cost of application development, and solves the complex deployment and maintenance of application programs in operating systems on different hardware platforms.
[0015] To solve the above technical problem, the present invention further provides a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the application deployment method. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of an operating system warehouse and system deployment according to an embodiment of the present invention;
[0017] Figure 2 is a schematic diagram of an operating system combination according to an embodiment of the present invention;
[0018] Figure 3 is a schematic diagram of an abstract framework of a standard interface according to an embodiment of the present invention;
[0019] Figure 4 It is a schematic diagram of a twin application warehouse and its deployment in an embodiment of the present invention;
[0020] Figure 5 Schematic diagram of a system automatic construction system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The present invention focuses on providing a method for deploying an operating system and an application program. The operating system deployment method includes: selecting and downloading a system image file corresponding to a required operating system from an operating system warehouse, and burning the system image file to a target board of a hardware platform to implement deployment of the required operating system on the target board; wherein the operating system warehouse stores system image files corresponding to a plurality of operating systems, and a specific method for generating the system image file includes: selecting an operating system or relevant resources of at least two operating systems according to user configuration information, configuring the operating system and basic services according to the relevant resources of the operating system, and compiling the configuration results of the operating system and basic services to generate the system image file, wherein the user configuration information includes hardware platform information and required operating system information.
[0022] The application deployment method includes: a method for deploying an application, the method comprising: selecting and downloading an application target file corresponding to a required application from a twin application warehouse, and downloading the application target file to the operating system of a target board, so as to realize the deployment of the required application on the operating system of the target board of a hardware platform; wherein, the twin application warehouse stores application target files corresponding to a plurality of application programs, and the application target file generation method comprises: selecting relevant resources of an operating system or at least two operating systems according to user configuration information, configuring basic services of the operating system according to relevant resources of the operating system, compiling the configuration result to generate an application engineering development template, compiling the application according to the system image file parameters contained in the template, and generating application target files under different operating system scenarios, and the user configuration information includes hardware platform information and required operating system information. The present invention stores a variety of image files corresponding to the operating system generated according to user configuration information in the operating system warehouse, and stores a variety of application target files generated according to the operating system image files in the twin application warehouse, for users to choose to download, so as to achieve the deployment of the required operating system and application on the target board of the hardware platform. The user does not need to readjust and optimize the operating system and application according to the conditions of the hardware platform, but only needs to directly select the required image system and application target files from the operating system warehouse and the twin application warehouse, which improves the flexibility of the deployment of the operating system and application, reduces the cost of operating system and application development, and solves the problem of complex deployment and maintenance of operating systems and applications on different hardware platforms.
[0023] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0024] An example of a method for deploying an application:
[0025] A method for deploying an application in this embodiment aims to provide an automatic construction framework, which automatically builds a customized operating system combination that meets specified application scenarios and application target files in different system scenarios according to different requirements, and can automatically complete the deployment of operating systems and applications on multi-core processors according to system and application deployment strategies.
[0026] The specific implementation is as follows:
[0027] Customize system configuration and complete automatic system construction according to embedded hardware platform information and product requirements. To complete automatic system construction, you need to input hardware platform information (processor architecture, number of cores, coprocessor information, etc.), operating system information (kernel version, operating system information, compilation chain information, software package information, etc.), resource deployment information and application information (directory, path, etc.) and other related configurations in the automatic construction system in advance; according to the needs, you can select the basic service modules that need to be supported and configure the corresponding parameters.
[0028] Automatic deployment of operating system: After starting the automatic build process, the automatic build system automatically selects one or more operating system related resources from the operating system warehouse according to the user's configuration information, and then completes the configuration and compilation of the operating system and basic services and generates the system image and application development project template. After the customization is completed, clean up and optimize to reduce the size of the root file system. This can include deleting unnecessary files, cleaning temporary directories, compressing log files, etc. Submit the completed customized system image file and mass production card file to the operating system warehouse for application developers to download and use. After the system image is burned to the target board, the board can be powered on to complete the deployment of the operating system and the operation of basic services. Among them, the operating system includes the operating system of the symmetric multi-processing (SMP) architecture, the operating system of the asymmetric multi-processing (AMP) architecture, and the operating system of the hybrid architecture (SMP+AMP). Among them, in the process of application module development, in order to support the compilation and operation of the application, many corresponding underlying service modules and various libraries are needed. In general, development requires users to configure and deploy according to their needs before they can compile and compile the application. For some typical situations, the application development project template prepares all the required libraries and configuration files of the underlying services according to the basic information configured by the user during the automatic construction. Users can directly develop application modules on this template. The mass production card is a card used for mass production, usually an SD card. There is no program on the initial embedded board that cannot run independently. The mass production card can be inserted into the SD card slot of the embedded board. After power-on, the system runs from the SD card and deploys and burns various target files, configurations, and boards to the board. After the burning is completed, unplug the mass production card, power it on again, and the embedded board can run autonomously.
[0029] Automatic deployment of applications: Compile the same user program according to the operating system parameters contained in the application development project template information, generate application target files (i.e., application target files) in different operating system scenarios, and submit the application target files in different operating system scenarios to the twin application warehouse. The twin application warehouse is as follows: Figure 4As shown in the figure, import the application development project template into the user program development tool, complete the parameter configuration according to the template information, and then download the application target file to the target board for operation. The automatic deployment of the operating system and application is as follows: Figure 5 shown.
[0030] The core of this automatic deployment method is to fully automate the deployment process, and dynamically adjust and optimize the combination and deployment mode of the operating system and the deployment of the application program according to actual needs and user strategies (optimal resources, optimal performance, etc.). In the complex environment of multi-core processors, different operating systems can be accurately allocated to the most suitable processor core according to their respective characteristics and advantages, thereby maximizing the overall performance. In general, the present invention not only improves the overall performance and flexibility of the system, but also reduces the cost of development and maintenance.
[0031] The present invention not only constructs an operating system warehouse, but also sets an inter-core communication abstract framework in the operating system warehouse to ensure that the operating systems can be seamlessly combined to form a heterogeneous system. In order to achieve flexible deployment and seamless combination of operating systems, a set of inter-core communication abstract frameworks is designed, which hides the implementation details of inter-core communication. This framework provides a unified abstract layer interface for communication between operating systems, ensuring that inter-system communication does not need to care about the specific implementation details of the underlying layer. After the operating system is flexibly deployed, the communication between systems cannot feel the changes in the system. Specifically, Figure 3 shown.
[0032] On this basis, the operating system can be combined according to specific needs to meet different application scenarios, such as Figure 1 Specifically, the operating system warehouse includes configurations of multiple operating system architectures, including operating systems of symmetric multi-processing (SMP) architecture, operating systems of asymmetric multi-processing (AMP) architecture, and operating systems of hybrid architectures (SMP+AMP), as shown in the following figure. Figure 2 As shown in the figure. These architectures are selected to meet the needs of various complex embedded systems and ensure that the system can achieve the best operating effect under different hardware resources and performance requirements. In actual applications, users can choose the appropriate system combination from the operating system warehouse according to the specific needs of the project to achieve the best performance and resource utilization.
[0033] The present invention realizes the automatic construction of the system, generates an operating system combination according to the demand, and can dynamically adjust and optimize the combination and deployment mode of the operating system according to the actual demand. Research and development personnel do not need to pay attention to the technical details such as the compilation, configuration, and packaging of the operating system. The operating system image and application development template automatically built by the system can automatically generate the application target file in a multi-operating system environment. The same set of application source code can be adapted to a variety of different system scenarios. This not only improves the reusability of the code, but also reduces the cost of development and maintenance for different systems. Seamless switching of applications between different operating systems is realized. This switching does not require modification or reconstruction of the application code, which greatly simplifies the deployment and migration process of the application. The deployment method of the operating system and application of the present invention not only improves the flexibility and performance of the system, but also reduces the development and maintenance costs, and provides a strong technical support for the future development of embedded systems. The effect of this invention is remarkable, and it is of great significance to promote the progress and application of embedded systems.
[0034] Operating system deployment method embodiment:
[0035] The present invention also provides a method for deploying an operating system, the method comprising: a user selects to download a system image in an operating system warehouse, the system warehouse is used to store the system image, and a specific method for generating the system image is: selecting operating system related resources according to user configuration information, configuring the operating system and basic services according to the operating system related resources, and compiling and generating the system image according to the configuration results of the operating system and basic services. The specific process, principle and effect have been described in detail in the embodiment of the application deployment method, and will not be repeated here.
[0036] Computer device embodiment:
[0037] The present invention also provides a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method for deploying an operating system. The specific process, principle and effect have been described in detail in the embodiment of the method for deploying an application program, and will not be repeated here. Among them, the processor can select a processing device such as a microprocessor MCU, a programmable logic device FPGA, etc., and the memory can select a storage device such as a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM).
[0038] Computer device embodiment:
[0039] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the application deployment method. The specific process, principle, and effect have been described in detail in the application deployment method embodiment, and will not be repeated here. Among them, the processor can select a processing device such as a microprocessor MCU, a programmable logic device FPGA, etc., and the memory can select a storage device such as a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM).
[0040] Specific implementation methods are given above, but the present invention is not limited to the described implementation methods. The basic idea of the present invention lies in the above basic scheme. For ordinary technicians in this field, it does not take creative work to design various deformed models, formulas, and parameters according to the teachings of the present invention. Changes, modifications, substitutions, and variations of the implementation methods without departing from the principles and spirit of the present invention still fall within the scope of protection of the present invention.
Claims
1. A method for deploying an operating system, It is characterized in that The method comprises: selecting and downloading a system image file corresponding to a required operating system from an operating system warehouse, and burning the system image file to a target board of a hardware platform to implement deployment of the required operating system on the target board; wherein the operating system warehouse stores system image files corresponding to a plurality of operating systems, and a specific method for generating the system image file comprises: selecting relevant resources of an operating system or at least two operating systems according to user configuration information, configuring the operating system and basic services according to the relevant resources of the operating system, and compiling the configuration results of the operating system and basic services to generate the system image file, wherein the user configuration information comprises hardware platform information and required operating system information.
2. The method for deploying an operating system according to claim 1, It is characterized in that The user configuration information also includes resource deployment information and application information.
3. The method for deploying an operating system according to claim 1, It is characterized in that The operating system includes an operating system of a symmetric multi-processing architecture, an operating system of an asymmetric multi-processing architecture, and an operating system of a hybrid architecture.
4. A computer device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the operating system deployment method according to any one of claims 1 to 3.
5. A method for deploying an application program, It is characterized in that The method includes: selecting and downloading application target files corresponding to required applications from a twin application warehouse, and downloading the application target files to the operating system of a target board, so as to implement deployment of the required applications on the operating system of the target board of a hardware platform; wherein the twin application warehouse stores application target files corresponding to a plurality of applications, and the application target file generation method includes: selecting relevant resources of an operating system or at least two operating systems according to user configuration information, configuring basic services of the operating system according to the relevant resources of the operating system, compiling the configuration results to generate an application engineering development template, compiling the application according to the system image file parameters contained in the template, and generating application target files under different operating system scenarios, wherein the user configuration information includes hardware platform information and required operating system information.
6. The method for deploying an application according to claim 5, It is characterized in that The user configuration information also includes resource deployment information and application information.
7. The method for deploying an application according to claim 5, It is characterized in that The operating system includes an operating system of a symmetric multi-processing architecture, an operating system of an asymmetric multi-processing architecture, and an operating system of a hybrid architecture.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the application deployment method according to any one of claims 5 to 7.
