CN117908903A - Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium - Google Patents

Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium Download PDF

Info

Publication number
CN117908903A
CN117908903A CN202410115992.6A CN202410115992A CN117908903A CN 117908903 A CN117908903 A CN 117908903A CN 202410115992 A CN202410115992 A CN 202410115992A CN 117908903 A CN117908903 A CN 117908903A
Authority
CN
China
Prior art keywords
file
mirror image
volume
vehicle
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410115992.6A
Other languages
Chinese (zh)
Inventor
文洋
韩三楚
王晓伟
杨明灯
李长青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Chang'an Technology Co ltd
Original Assignee
Chongqing Chang'an 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 Chongqing Chang'an Technology Co ltd filed Critical Chongqing Chang'an Technology Co ltd
Priority to CN202410115992.6A priority Critical patent/CN117908903A/en
Publication of CN117908903A publication Critical patent/CN117908903A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the technical field of intelligent driving, and discloses a vehicle-mounted application mirror image generation and deployment method, device, equipment and medium, wherein the mirror image generation method comprises the following steps: obtaining mirror configuration information, wherein the mirror configuration information comprises a mirror file volume, a partition volume and an application compiling file; when the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file, creating a target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file; when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file, outputting error information that the target vehicle-mounted mirror image cannot be generated. According to the invention, the configured vehicle-mounted mirror image size not only contains necessary application compiling files, but also does not create a large-volume file system to fully occupy all target storage partitions, so that a light-weight target vehicle-mounted mirror image is generated, and the burning time of the mirror image is remarkably saved.

Description

Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium
Technical Field
The invention relates to the technical field of intelligent driving, in particular to a vehicle-mounted application mirror image generation and deployment method, device, equipment and medium.
Background
With the development of intelligent driving technology of vehicles, more and more vehicle-mounted applications are iteratively updated through a remote upgrading technology. In general, vehicle applications include some general entertainment application software and advanced driving assistance systems (ADVANCED DRIVING ASSISTANCE SYSTEM, ADAS), which are a generic name of various systems that monitor a driver, a vehicle, and its driving environment in real time by using sensing, communication, decision-making, and execution devices installed on the vehicle, and assist the driver in performing driving tasks or actively avoiding/alleviating collision hazards by means of information and/or motion control, etc. The mirror image package of the ADAS is huge (usually more than a plurality of G), so that the time required for programming the mirror image package of the ADAS to the vehicle is long (uboot programming is often more than half an hour), and the efficiency of research, development, test and deployment in different places is seriously affected by frequent updating of the vehicle-mounted application with the large body of the ADAS.
Disclosure of Invention
In view of the above, the invention provides a method, a device, equipment and a medium for generating and deploying a vehicle-mounted application mirror image, so as to solve the problem that the burning time of a large amount of vehicle-mounted application mirror images is too long.
In a first aspect, the present invention provides a vehicle-mounted application image generating method, applied to a server, the method including: the method comprises the steps that mirror image configuration information is obtained, wherein the mirror image configuration information comprises a mirror image file volume, a partition volume and an application compiling file, and the partition volume is used for representing the volume of a target storage partition for burning a vehicle-mounted mirror image in a vehicle to be burned; when the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file, creating a target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file; when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file, outputting error information that the target vehicle-mounted mirror image cannot be generated.
According to the technical means, the image configuration information is provided for the user to configure the size of the vehicle-mounted image in advance, the configured image is limited to be larger than or equal to the volume of the application compiling file required by the vehicle-mounted application and smaller than the volume of the target storage partition used for programming the vehicle-mounted image in the vehicle to be programmed, the configured vehicle-mounted image size not only contains the necessary application compiling file, but also does not create a large-volume file system to fully occupy the target storage partition, and therefore the light-weight target vehicle-mounted image can be generated according to the user definition information, and further the programming time of the image is remarkably saved.
In an optional implementation manner, the building server deploys a linux operating system, the image configuration information further includes a file system type, and the creating, according to the image file volume, a target vehicle-mounted image including the application compiled file includes: creating an empty file according to the mirror image file volume, and formatting the empty file into an empty vehicle mirror image according to the file system type; starting a user mode linux, and transmitting the path of the empty vehicle mirror image and the path of the application compiling file into the user mode linux through a virtual file system; mounting the empty vehicle mirror image to a custom directory through the user mode linux; copying the application compiling file to the custom directory through the user mode linux; unloading the custom catalogue through the user mode linux to obtain the target vehicle-mounted mirror image.
According to the technical means, when the server for creating the mirror image is the linux server, the mirror image blank file is imported into the user mode linux, and the vehicle-mounted mirror image is created under the user mode linux, so that the problem that root rights are required to be used when the created mirror image is mounted on a custom directory and the mirror image can be operated in a common user mode is avoided, the problem that the server collapses due to misoperation caused by the root rights is avoided, and the reliability of the mirror image creation process is improved.
In an optional implementation manner, the image configuration information further includes user ID information and group ID information, and ID types in the user ID information and the group ID information include a root user ID type and/or a normal user ID type, and after the application compiled file is copied to the custom directory by the user mode linux, the method further includes: and configuring the application compiling file according to the user ID information and the group ID information.
According to the technical means, the user ID information and the group ID information are added in the mirror configuration information, so that the situation that the application compiling file is endowed with the common user ID is avoided, and for certain core functions requiring root rights, the ID of the root rights can be set for the application compiling file according to the configured user ID information and group ID information. In addition, the safety problem that after the application is installed on the vehicle end, the compiled file of the application can be deleted at will by adopting the common user ID can be avoided.
In an optional implementation manner, the image configuration information further includes a custom script, where the custom script is configured to determine a target compiled file that needs to be burned and a redundant compiled file that does not need to be burned in the application compiled file, and the copying, by the user mode linux, the application compiled file to the custom directory includes: acquiring a target compiling file from the application compiling file according to the custom script; copying the target compiling file to the custom directory.
According to the technical means, under the user mode linux, the specific files in the application compiled file can be flexibly selected according to the custom script and are not required to be added, so that the light-weight capability of the mirror image is further improved.
In an optional implementation manner, the server deploys a linux operating system, the image configuration information further includes a file system type, and when the file system type is EXT4, creating a target vehicle-mounted image including an application compiled file according to an image file volume, and further includes: and creating a target vehicle-mounted mirror image comprising the application compiled file according to the mirror image file volume through a make_ext4fs instruction.
According to the technical means, when the type of the file system adopted by the user is EXT4, the target vehicle-mounted mirror image comprising the application compiling file can be created according to the mirror image file volume through the make_ext4fs instruction, the make_ext4fs instruction can operate naturally without root permission, and the efficiency of creating the mirror image is further improved.
In an alternative embodiment, the image configuration information further includes user ID information and group ID information, the ID types in the user ID information and the group ID information include a root user ID type and/or a normal user ID type, and the parameters in the make_ext4fs instruction for compiling the file configuration ID for the application are parameters updated with the user ID information and the group ID information.
In an alternative embodiment, the method further comprises: starting a user mode linux, and transmitting the path of the target vehicle-mounted mirror image into the user mode linux through a virtual file system; mounting the target vehicle-mounted mirror image to a target custom directory through the user mode linux; and enumerating application compiling files included in the target custom directory through the user mode linux.
According to the technical means, the embodiment of the invention also provides a scheme for checking the mirror image under the user mode linux, so that root permission is not needed, and the problem of server breakdown caused by misoperation is avoided.
In a second aspect, the present invention provides a vehicle-mounted application deployment method, applied to a vehicle, the method comprising: receiving a target vehicle-mounted image sent by a server and generated by any optional implementation manner of the first aspect; and installing a file system and an application compiling file of the target vehicle-mounted mirror image to the target storage partition.
In an alternative embodiment, the method further comprises: when the file system is installed, expanding the file system to the size of the file system represented by the preset initial expansion threshold according to the preset initial expansion threshold, wherein the preset initial expansion threshold is larger than the volume of the target vehicle-mounted mirror image and smaller than the volume of the target storage partition.
In an alternative embodiment, the method further comprises: when the file system reaches a full state, judging whether a current program which is required to run through the file system currently exists in a preset emergency dilatation list or not; when the current program exists in a preset emergency capacity expansion list, the file system is expanded to the size of the file system represented by the preset emergency capacity expansion threshold according to the preset emergency capacity expansion threshold, wherein the preset emergency capacity expansion threshold is larger than the preset initial capacity expansion threshold and smaller than the capacity of the target storage partition.
According to the technical means, after the mirror image is installed on the vehicle, the file system in the mirror image covers the disk, and the embodiment of the invention also expands the capacity of the file system installed on the disk at the vehicle end, so that the problem that the space of the file system of the lightweight mirror image is not enough to be used is solved through the capacity expansion.
In a third aspect, the present invention provides a vehicle-mounted application image generating device, applied to a server, where the device includes: the configuration information acquisition module is used for acquiring mirror image configuration information, wherein the mirror image configuration information comprises a mirror image file volume, a partition volume and an application compiling file, and the partition volume is used for representing the volume of a target storage partition for burning the vehicle-mounted mirror image in the vehicle to be burnt; the mirror image generation module is used for creating a target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file when the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file; and the error reporting module is used for outputting error information which cannot generate the target vehicle-mounted mirror image when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file.
In a fourth aspect, the present invention provides an in-vehicle application deployment apparatus, for use in a vehicle, the apparatus comprising: the image receiving module is used for receiving the target vehicle-mounted image which is sent by the server and generated by any optional implementation manner of the first aspect; and the mirror image installation module is used for installing a file system and an application compiling file of the target vehicle-mounted mirror image to the target storage partition.
In a fifth aspect, the present invention provides a computer device comprising: the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions to perform the method of the first aspect, the second aspect or any implementation manner corresponding to the first aspect.
In a sixth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the first aspect, the second aspect or any of its corresponding embodiments.
The technical scheme provided by the invention has the following advantages:
(1) According to the technical means, the image configuration information is provided for the user to configure the size of the vehicle-mounted image in advance, the configured image is limited to be larger than or equal to the volume of the application compiling file required by the vehicle-mounted application and smaller than the volume of the target storage partition used for programming the vehicle-mounted image in the vehicle to be programmed, the configured vehicle-mounted image size not only contains the necessary application compiling file, but also does not create a large-volume file system to fully occupy the target storage partition, and therefore the light-weight target vehicle-mounted image can be generated according to the user definition information, and further the programming time of the image is remarkably saved.
(2) According to the technical means, when the server for creating the mirror image is the linux server, the mirror image blank file is imported into the user mode linux, and the vehicle-mounted mirror image is created under the user mode linux, so that the problem that root rights are required to be used when the created mirror image is mounted on a custom directory and the mirror image can be operated in a common user mode is avoided, the problem that the server collapses due to misoperation caused by the root rights is avoided, and the reliability of the mirror image creation process is improved.
(3) According to the technical means, the user ID information and the group ID information are added in the mirror configuration information, so that the situation that the application compiling file is endowed with the common user ID is avoided, and for certain core functions requiring root rights, the ID of the root rights can be set for the application compiling file according to the configured user ID information and group ID information. In addition, the safety problem that after the application is installed on the vehicle end, the compiled file of the application can be deleted at will by adopting the common user ID can be avoided.
(4) According to the technical means, under the user mode linux, specific files in the application compiled file can be flexibly selected to be added to the mirror image according to the user-defined script, and the specific files are not required to be added, so that the light-weight capability of the mirror image is further improved.
(5) According to the technical means, when the type of the file system adopted by the user is EXT4, the target vehicle-mounted image comprising the application compiling file can be created according to the image file volume through the make_ext4fs instruction, the make_ext4fs instruction can operate naturally without root authority, the image creation efficiency is further improved, the make_ext4fs is improved, and the make_ext4fs instruction supports configuration user ID information and group ID information.
(6) According to the technical means, the embodiment of the invention also provides a scheme for checking the mirror image under the user mode linux, so that root permission is not needed, and the problem of server crash caused by misoperation is avoided.
(7) According to the technical means, after the mirror image is installed on the vehicle, the file system in the mirror image covers the disk, so that the capacity of the file system installed on the disk is expanded at the vehicle end, and the problem that the space of the file system of the lightweight mirror image is not enough to use is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating an onboard application image according to an embodiment of the present invention;
FIG. 2 is another flow diagram of a method for generating an onboard application image in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a vehicle-mounted application deployment method according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for generating and deploying an onboard application image according to an embodiment of the invention;
FIG. 5 is another flow diagram of a method for generating an onboard application image in accordance with an embodiment of the present invention;
FIG. 6 is another flow diagram of a method of generating an onboard application image in accordance with an embodiment of the present invention;
FIG. 7 is another flow diagram of an in-vehicle application deployment method according to an embodiment of the present invention;
fig. 8 is a schematic structural view of an in-vehicle application image generating apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an in-vehicle application deployment apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
According to an embodiment of the present invention, there is provided an in-vehicle application image generation method embodiment, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a vehicle-mounted application image generating method is provided and applied to a construction server, and fig. 1 is a flowchart of a vehicle-mounted application image generating method according to an embodiment of the present invention, where the flowchart includes the following steps:
Step S101, mirror image configuration information is obtained, wherein the mirror image configuration information comprises a mirror image file volume, a partition volume and an application compiling file, and the partition volume is used for representing the volume of a target storage partition for programming a vehicle-mounted mirror image in a vehicle to be programmed.
Step S102, when the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiled file, creating a target vehicle-mounted mirror image comprising the application compiled file according to the volume of the mirror image file.
Specifically, an image file is a file that includes a complete, independently operable file system, the contents of which may include an operating system, pre-installed software, system settings, and other necessary files. In the related art, mirror image creation for vehicle-mounted application is often strictly generated according to the size of a storage area, and if the size of a storage partition of a vehicle is 1Gb, then the created mirror image file is also 1Gb, and the mirror image file is installed in the storage partition and is converted into a file system, and the file system occupies the space of the storage partition 1Gb, so that the mirror image file is larger, and the burning and writing process is very time-consuming. When the vehicle-mounted application mirror image is created, the vehicle-mounted application mirror image is not directly generated according to the space size of the partition, but mirror image configuration information input by a user is acquired, and a light-weight vehicle-mounted application mirror image is generated according to the mirror image configuration information.
The image configuration information in the embodiment of the invention can be described in various formats, including but not limited to xml, json, yaml, environment variables and the like, and the volume of the image file, the partition volume and the application compiling file are recorded in the image configuration information.
The volume of the mirror image file is the space occupied by the vehicle-mounted application mirror image to be created, namely the space size occupied by the created file system, the partition volume is the storage space size distributed for the vehicle-mounted application mirror image by the vehicle for installing the vehicle-mounted application mirror image, and the application compiling file is the program file which is actually used for generating tasks and actually running by the vehicle-mounted application.
In this embodiment, only when the volume of the image file is smaller than the partition volume and the volume of the image file is greater than or equal to the volume of the application compiled file, the corresponding vehicle-mounted image is created. The created vehicle-mounted image can contain all application compiled files, namely the created file system has enough space and has the capability of managing the application compiled files, and the created file system does not comprise more useless space, so that the volume of the corresponding image file is smaller than the volume of the partition. While the file system created by the related art is as large as the partition volume, resulting in an image file volume equal to the partition volume, the application compiled files managed in the file system occupy only a small portion, e.g., 300Mb of 1Gb size.
Therefore, the technical scheme provided by the embodiment of the invention needs to read the mirror image configuration information set by the user in advance, check whether the volume of the mirror image file in the mirror image configuration information meets the condition that the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file, and only when the condition is met, create the target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file to obtain the light target vehicle-mounted mirror image. The target vehicle-mounted mirror image can be reliably installed in a target storage partition of the vehicle, the volume of the programmed target vehicle-mounted mirror image is small, the programming speed is high, the time consumption is short, and the deployment efficiency of vehicle-mounted application is remarkably improved.
Step S103, outputting error information that the target vehicle-mounted mirror image cannot be generated when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file.
In addition, in the embodiment of the invention, when the volume of the mirror image file is larger than or equal to the partition volume or the volume of the mirror image file is smaller than the volume of the application compiling file, the target vehicle-mounted mirror image is indicated not to be light, or the target vehicle-mounted mirror image does not contain necessary application program files, so that the embodiment refuses to create the target vehicle-mounted mirror image and outputs error information so as to remind a user to reset the mirror image configuration information, thereby ensuring the creation of the light-weight mirror image and ensuring the mirror image programming efficiency.
In some optional embodiments, the server deploys the linux operating system, and the image configuration information further includes a file system type, where step S102 includes:
Step a1, creating an empty file according to the volume of the mirror image file, and formatting the empty file into an empty vehicle mirror image according to the type of a file system;
step a2, starting a user mode linux, and transmitting a path of an empty vehicle mirror image and a path of an application compiling file into the user mode linux through a virtual file system;
step a3, mounting an empty vehicle mirror image to a custom directory through a user mode linux;
step a4, copying the application compiling file to the custom directory through a user mode linux;
and a step a5, unloading the custom catalogue through a user mode linux to obtain the target vehicle-mounted mirror image.
Specifically, when the image creation server is a linux operating system, an image creation flow commonly used in the related art includes: firstly formatting a file system for an empty vehicle-mounted mirror image, then taking the empty mirror image file as virtual equipment to be mounted in a custom directory through a mount-o loop command, copying required application data into the custom directory, and then unloading the custom directory through a umount command to obtain the established vehicle-mounted application mirror image. When the mount command of the flow is executed, the root authority is required to execute, the operation authority for creating the mirror image is very high, and once a user performs other misoperation under the root authority, unrecoverable modification can be brought to the server, so that the server is damaged.
Firstly, creating a file with empty content according to the volume of an image file in a building server linux, wherein the size of the file is equal to the volume of the image file, and formatting a file system for the empty file according to the file system type recorded in image configuration information to obtain an empty vehicle image. The file system type refers to the type of a specific file system required by a user and is used for managing files in the target vehicle-mounted image, and the file system type includes, but is not limited to, file systems of EXT2, EXT3 and EXT4 types. And then, starting a User Mode Linux (UML) in the server, wherein the User Mode Linux is an open-source, lightweight and high-performance virtualization solution, and using the User Mode Linux, a User can operate an independent Linux system as a User process in a Linux system environment for constructing the server, and the virtualized Linux is the User Mode Linux. The user mode linux is a migration of the linux kernel itself, allowing the complete linux kernel to run as a normal user space process, allowing potentially untrusted code to run without affecting the host. Therefore, the embodiment of the invention creates the mirror image under the user mode linux, and can execute the mount (mount) command requiring root permission under the common user without influence.
In the environment of a linux operating system, a Virtual File System (VFS) (Virtual FILE SYSTEM) is a layer of model abstraction inherent to linux, the linux environment allows a plurality of different file systems to coexist, and supports file operation across the file systems through the Virtual file system, so that files in a built server linux can be transferred across the file systems to the file systems of a UML through the Virtual file system, and in a specific embodiment, the invention adopts a hostfs file system under the Virtual file system for file cross-system transfer.
With the above arrangement, as shown in fig. 2, in the embodiment of the present invention, the path where the empty vehicle-mounted mirror image and the application compiled file are located is transferred into the user mode linux through the hostfs file system; then executing a mount-o loop back mounting command in a user mode linux with the authority of a common user, thereby taking the empty vehicle mirror image as virtual equipment and mounting the empty vehicle mirror image to a custom directory; and in the same way, recursively copying the application compiled file to the custom directory of the loopback mount in the user mode linux, unloading the custom directory through the user mode linux, and fully writing the cached data back to the custom directory to obtain the target vehicle-mounted mirror image. And finally, exiting the user mode linux, and programming the target vehicle-mounted mirror image to the vehicle by constructing a server linux operating system. In general, since the build server is generally placed in a remote machine room, the mirror image cannot be directly burned onto the vehicle, and in some alternative embodiments, the build server may transmit the mirror image to the industrial personal computer first, and then burn the mirror image onto the vehicle through the industrial personal computer.
According to the technical scheme provided by the embodiment of the invention, the vehicle-mounted mirror image is created under the user mode linux, so that the problem that the mirror image must be used when being mounted to the custom directory, and the mirror image can be operated under the common user mode is avoided, the safety problem of server crash caused by misoperation due to the use of the root authority is further avoided, and the reliability of the mirror image creation process is improved.
In some optional embodiments, the image configuration information further includes user ID information and group ID information, and ID types in the user ID information and the group ID information include a root user ID type and/or a normal user ID type, and after the step a4, the method further includes:
And a step a41, configuring the application compiling file according to the user ID information and the group ID information.
Specifically, when the vehicle-mounted application creates the image, the user ID and the group ID thereof need to be given to the application compiled file, which is a part of the linux for user management, and if the image is created by the UML, the application compiled file is given by default to the user ID currently executing the UML, and because the current user adopts the ordinary user authority in the embodiment of the present invention, the ID given by default to the ordinary user authority is given to the application compiled file. In actual application, certain core functions in the vehicle-mounted mirror image application need the ID of the root authority to normally run, so that in the embodiment of the invention, the mirror image configuration information also comprises preconfigured user ID information and group ID information, the ID types in the user ID information and the group ID information comprise the root user ID type and/or the common user ID type, and the root user ID type and the common user ID type are used for indicating which subfiles in the application compiling file need the root authority and which only need the common user authority. When the application compiled file is copied to the custom directory in hostfs manner, the corresponding ID is configured for the application compiled file according to the preconfigured root user ID type and/or the common user ID type, specifically by modifying the inode_operations option in hostfs and by setting the function hostfs _ setattr of the inode attribute (different kernel versions may be slightly different).
By the scheme provided by the embodiment of the invention, the reliability of the target vehicle-mounted mirror image is also improved. In addition, in some practical application scenarios, the ID information of the common user authority is information which can be changed at will, and certain core function IDs in the target vehicle-mounted mirror image are configured as root authority ID information through mirror image configuration information, so that an intruder can be prevented from modifying the ID of the application core function, and the safety of the target vehicle-mounted mirror image is improved.
In some optional embodiments, the image configuration information further includes a custom script, where the custom script is used to determine a target compiled file that needs to be burned and a redundant compiled file that does not need to be burned in the application compiled file, and step a4 includes:
step b1, acquiring a target compiling file from an application compiling file according to a custom script;
and b2, copying the target compiled file to the custom directory.
Specifically, in the embodiment of the invention, a custom script is configured in the mirror configuration information, so that the custom script is read when the application compiling file is copied to the custom catalog in a hostfs mode, the target compiling file needing to be burnt and the redundant compiling file not needing to be burnt in the application compiling file are determined according to the indication content in the custom script, and the configured target compiling file is copied to the custom catalog, so that the compiling file with a more important function is preferentially copied to the mirror, the mirror volume is reduced while the basic function of the mirror is ensured, and the light-weight realization of the mirror is further promoted. In some alternative embodiments, if the custom script is empty, all application compiled files are copied to the custom directory by default.
In some optional embodiments, in the linux operating system environment, when the file system type is EXT4, the step S102 further includes:
And c1, creating a target vehicle-mounted mirror image comprising the application compiling file according to the mirror image file volume through a make_ext4fs instruction.
Specifically, the make_ext4fs is an image generation command for the file system EXT4 provided by the linux kernel, so that when the type of the file system adopted by a user is EXT4, a target vehicle-mounted image comprising an application compiled file can be created according to the volume of the image file through a make_ext4fs instruction, and the make_ext4fs instruction can operate naturally without root authority, and the image creation efficiency is further improved.
In some optional embodiments, the image configuration information further includes user ID information and group ID information, the ID types in the user ID information and the group ID information include a root user ID type and/or a normal user ID type, and the parameters in the make_ext4fs instruction for compiling the file configuration ID for the application are parameters updated with the user ID information and the group ID information.
Specifically, the make_ext4fs command defaults to a fixed number 0 as an application compiling file configuration ID, so that an ID of root authority is configured, in this embodiment, the make_ext4fs command is further modified, and the modified command is configured not to set the user ID and the group ID of the file with actual user ID information and group ID information of the current user, or to set the user ID and the group ID with a fixed number 0, but to set the user ID information and the group ID information specified in mirror configuration information, for example, in an operating system of the ubuntu version, a modification of parameters in functions for setting the user ID and the group ID such as build_direction_ structure, build _default_direction_structure may be slightly different (the embodiment is not limited to this, and the version of different make_ext4 may be slightly different). According to the technical means, the fact that all the application compiling files are endowed with fixed 0 values as IDs is avoided, the IDs of the root authorities can be set for the application compiling files according to the configured user ID information and group ID information for certain core functions needing the root authorities, and other IDs are set as the IDs of the common user authorities, so that the flexibility of setting the file IDs according to the user demands is improved.
In some optional implementations, the method for generating the vehicle-mounted application image provided by the embodiment of the present invention further includes:
Step d1, starting a user mode linux, and transmitting a path of a target vehicle-mounted mirror image into the user mode linux through a virtual file system;
step d2, mounting a target vehicle-mounted mirror image to a target custom directory through a user mode linux;
and d3, enumerating application compiling files contained in the target custom directory through a user mode linux.
Specifically, the embodiment of the invention also provides a scheme for viewing the mirror image under the user mode linux, which is similar to the step of creating the mirror image, except that the custom script command executed in the viewing process can only be ls, cat and other viewing commands, so that the application compiled file included in the target custom directory is enumerated and the content in the mirror image cannot be changed. By the technical scheme provided by the embodiment, the specific content in the mirror image can be checked without adopting the root authority, and the problem that the server is crashed due to misoperation under the root authority is avoided.
The invention also provides a vehicle-mounted application deployment method, which is applied to a vehicle, as shown in fig. 3, and comprises the following steps:
Step S301, receiving a target vehicle-mounted mirror image sent by a server;
In step S302, a file system and an application compilation file of the target vehicle-mounted image are installed to the target storage partition.
Specifically, the light-weight target vehicle-mounted mirror image created by the server in the embodiment can remarkably reduce the programming time, improve the mirror image installation efficiency, improve the efficiency of research, development and test of vehicle-mounted application in different places, and is also beneficial to shortening the time of vehicle type delivery.
In an optional implementation manner, the invention further provides a vehicle-mounted application deployment method, which further comprises the following steps:
and e1, when the file system is installed, expanding the file system to the size of the file system represented by the preset initial expansion threshold according to the preset initial expansion threshold, wherein the preset initial expansion threshold is larger than the volume of the target vehicle-mounted mirror image and smaller than the volume of the target storage partition.
In an alternative embodiment, the method further comprises:
Step e2, when the file system reaches a full state, judging whether a current program which is required to run through the file system currently exists in a preset emergency dilatation list or not;
And e3, when the current program exists in the preset emergency capacity expansion list, expanding the file system to the size of the file system represented by the preset emergency capacity expansion threshold according to the preset emergency capacity expansion threshold, wherein the preset emergency capacity expansion threshold is larger than the preset initial capacity expansion threshold and smaller than the capacity of the target storage partition.
In particular, in embodiments of the present invention, the process of installing a lightweight in-vehicle application to a vehicle is faster and more efficient, though faster. However, in the use process of the vehicle-mounted application such as the ADAS system, use data such as task logs are continuously generated, the generated use data also needs to be stored in the target storage partition, and as the vehicle-mounted application is used, the capacity of the file system of the target storage partition is gradually full, and if the size of the file system is too small, the vehicle-mounted application cannot be normally used. Based on this, in the embodiment of the present invention, when the installation of the file system is completed and started, it is determined whether the vehicle-mounted application is started for the first time (in engineering practice, it may be realized by reading an EEPROM or the like), and if so, the first start may start the file system capacity expansion device (for example, start the lightweight ADAS capacity expansion device), so that the capacity of the file system is expanded according to the preset initial capacity expansion threshold, and before the capacity expansion, validity check needs to be performed according to the preset initial capacity expansion threshold, and specifically, it is checked whether the preset initial capacity expansion threshold is greater than the volume of the target vehicle-mounted mirror image and less than the volume of the target storage partition.
In addition, if the in-vehicle application is not started for the first time, it is necessary to check in real time whether the file system is already in a full state (for example, the occupancy rate is 95% or more in a full state), and if the file system is full, the present embodiment also performs emergency capacity expansion.
The emergency capacity expansion step is as follows: judging whether the current process of the vehicle-mounted application is in an emergency dilatation list or not, if not, directly returning an error, and avoiding wasting the dilatation space by some unimportant programs; and if the file system is in the list, expanding the file system to the size set by a preset emergency expansion threshold, wherein the preset emergency expansion threshold is larger than a preset initial expansion threshold and smaller than the volume of the target storage partition. In some alternative embodiments, the expansion is performed using expansion tools such as resize2 fs.
According to the technical means, after the mirror image is installed on the vehicle, the file system in the mirror image covers the disk, so that the capacity of the file system installed on the disk is expanded at the vehicle end, the advantages of high mirror image programming efficiency and the advantages of light-weight mirror image file system space self-adaptive capacity expansion are simultaneously considered, and the file system is prevented from being used inadequately.
In a specific application embodiment, a technical scheme provided in connection with a specific application scenario is as follows.
As shown in fig. 4, the vehicle-mounted application deployment architecture is formed by a building server, an industrial personal computer and a vehicle of the linux system, and when a user needs to deploy an ADAS to the vehicle, an overall flow includes: on a construction server, constructing a lightweight ADAS mirror image through the common user authority; then downloading a lightweight ADAS mirror image from a construction server through an industrial personal computer, and programming the lightweight ADAS mirror image to a vehicle through programming strategies such as uboot and the like; when the vehicle is started for the first time, the ADAS file system is subjected to initial capacity expansion, and emergency capacity expansion can be further carried out in the running process of the vehicle.
As shown in fig. 5, the above detailed steps of the ADAS mirror image construction flow include:
1. and obtaining mirror image configuration information, wherein the mirror image configuration information is shown in the following table.
TABLE 1 mirror configuration information Table
The above-described mirror configuration information may be described in a variety of formats including, but not limited to xml, json, yaml, environment variables, and the like.
2. Checking the mirror configuration information, wherein the checking content comprises the following steps:
checking whether the volume of the mirror image file is larger than the total size of the application compiling file under the appointed SYS_ROOT directory;
Checking whether the volume of the mirror image file is smaller than or equal to the partition volume;
Checking whether the set file system type is legal or not, and whether the set file system type is a file system supported by a linux system or not;
Checking whether all commands used by the custom script exist;
It is checked whether the sys_root directory is not empty.
And if the verification is passed, the mirror configuration information is legal, otherwise, the verification is illegal, and the step of creating the mirror cannot be performed.
3. After verification passes, an empty vehicle mirror image is created and formatted according to the configuration items a, b and c.
4. The construction server starts the transformed UML and transmits empty vehicle images and paths of application compiling files to the UML in a hostfs mode.
5. And (3) mounting the empty vehicle mirror image in the UML in a loop-back mode, then executing a custom script by using the user ID information and the group ID information specified by the configuration items 5 and 6, copying the corresponding application compiling file into the empty vehicle mirror image and endowing the corresponding ID (if the custom script is empty, recursively copying the content in the SYSROOT directory into the loop-back mounted empty vehicle mirror image by default).
6. And finally triggering data synchronous disc falling (for example, adopting a sync mode and the like to prevent data from falling in time), unloading the empty vehicle-mounted mirror image, obtaining a target vehicle-mounted mirror image, and exiting the UML.
As shown in fig. 6, the detailed flow of viewing the ADAS image includes:
1. and checking whether the target vehicle-mounted mirror image exists or not according to the name of the target vehicle-mounted mirror image.
2. It is checked whether the command in the custom script is legal (whether it is a viewing command such as ls, cat, etc. that does not alter the mirrored content).
3. After verification is passed, the modified UML is still started, a path of the target vehicle-mounted image is transmitted into the UML from a construction server linux system in a hostfs mode, and the target vehicle-mounted image is mounted in the UML in a loop-back mode; and executing a custom viewing command, and if the custom script is empty, recursively enumerating all files in the target vehicle-mounted mirror image by default.
As shown in fig. 7, the steps of expanding the volume of the file system of the light-weight ADAS mirror image after writing by the vehicle include:
1. Checking a preset initial capacity expansion threshold value, a preset emergency capacity expansion threshold value and a preset emergency capacity expansion list, judging whether the preset initial capacity expansion threshold value is larger than the volume of the target vehicle-mounted mirror image and smaller than the volume of the target storage partition, judging whether the preset emergency capacity expansion threshold value is larger than the preset initial capacity expansion threshold value and smaller than the volume of the target storage partition, and judging whether the program name in the preset emergency capacity expansion list is legal.
2. After the verification is passed, whether the vehicle-mounted application is started for the first time is detected, if so, an initial capacity expansion file system flow is entered, and the file system is expanded to a size set by a preset initial capacity expansion threshold.
3. If the file system is not started for the first time, whether the file system is in a full state is detected, and if the file system is full, emergency capacity expansion is executed. The emergency capacity expansion needs to judge whether the currently running program in the vehicle-mounted application is in a preset emergency capacity expansion list or not, and if not, the program is directly returned to the error; and if the file system is in the list, the file system is expanded to a size set by a preset emergency expansion threshold.
The technical scheme provided by the embodiment of the invention mainly comprises the following advantages:
1) The method can make the programming mirror image in the common user mode, avoids switching to a root user, thereby preventing the construction server from being damaged and protecting the research and development infrastructure.
2) By reducing the size of the mirror image and the custom capacity expansion mechanism, the downloading time and the deployment time of the mirror image are reduced, the efficiency of research, development and testing of an ADAS system in different places is improved, and the time of vehicle type delivery is shortened.
3) By supporting the emergency capacity expansion, the failure of key business due to insufficient space of a file system can be prevented, and the stability of an ADAS system is improved.
The embodiment also provides a vehicle-mounted application image generating device, which is used for realizing the above embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a vehicle-mounted application image generating device, which is applied to a construction server, as shown in fig. 8, and includes:
The configuration information obtaining module 801 is configured to obtain mirror image configuration information, where the mirror image configuration information includes a mirror image file volume, a partition volume, and an application compiling file, and the partition volume is used to represent a volume of a target storage partition for burning a vehicle-mounted mirror image in a vehicle to be burned;
The mirror image generating module 802 is configured to create a target vehicle-mounted mirror image including the application compiled file according to the mirror image file volume when the mirror image file volume is smaller than the partition volume and the mirror image file volume is greater than or equal to the volume of the application compiled file;
The error reporting module 803 is configured to output error information that the target vehicle-mounted mirror image cannot be generated when the mirror image file volume is greater than or equal to the partition volume or the mirror image file volume is smaller than the volume of the application compiled file.
In some alternative embodiments, the server deploys the linux operating system, the image configuration information further includes a file system type, and the image generation module 802 includes:
The file creating unit is used for creating an empty file according to the volume of the mirror image file and formatting the empty file into an empty vehicle mirror image according to the type of the file system;
The UML starting unit is used for starting a user mode linux and transmitting the path of the empty vehicle mirror image and the path of the application compiling file into the user mode linux through the virtual file system;
the mounting unit is used for mounting the empty vehicle mirror image to the custom catalog through a user mode linux;
The copying unit is used for copying the application compiling file to the custom directory through a user mode linux;
And the image generation unit is used for unloading the custom catalogue through the user mode linux to obtain the target vehicle-mounted image.
In some alternative embodiments, the image configuration information further includes user ID information and group ID information, the ID types in the user ID information and the group ID information including a root user ID type and/or a normal user ID type, and after copying the unit, further includes:
and the ID configuration unit is used for configuring the application compiling file according to the user ID information and the group ID information.
In some optional embodiments, the image configuration information further includes a custom script, where the custom script is used to determine a target compiled file that needs to be burned and a redundant compiled file that does not need to be burned in the application compiled file, and the copying unit includes:
the file extraction unit is used for acquiring a target compiling file from the application compiling file according to the custom script;
And the post-extraction copy unit is used for copying the target compiled file to the custom directory.
In some alternative embodiments, the server deploys the linux operating system, the image configuration information further includes a file system type, and when the file system type is EXT4, the image generating module 802 further includes:
And the EXT4 mirror image creation unit is used for creating a target vehicle-mounted mirror image comprising the application compiled file according to the mirror image file volume through a make_ext4fs instruction.
In some optional embodiments, the in-vehicle application image generating apparatus further includes:
The second UML starting module is used for starting a user mode linux and transmitting a path of the target vehicle-mounted mirror image into the user mode linux through the virtual file system;
the mirror image checking and importing module is used for mounting a target vehicle-mounted mirror image to a target custom directory through a user mode linux;
And the viewing module is used for listing the application compiling files included in the target custom catalogue through the user mode linux.
The present embodiment also provides a vehicle-mounted application deployment device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a vehicle-mounted application deployment apparatus, applied to a vehicle, as shown in fig. 9, including:
The image receiving module 901 is used for receiving a target vehicle-mounted image sent by the server;
the image installation module 902 is configured to install the file system and application compilation file of the target vehicle-mounted image into the target storage partition.
In some optional implementations, the present embodiment provides an in-vehicle application deployment apparatus further including:
and the initial capacity expansion module is used for expanding the file system to the size of the file system represented by the preset initial capacity expansion threshold according to the preset initial capacity expansion threshold when the file system is installed, wherein the preset initial capacity expansion threshold is larger than the volume of the target vehicle-mounted mirror image and smaller than the volume of the target storage partition.
In some optional implementations, the present embodiment provides an in-vehicle application deployment apparatus further including:
The list checking module is used for judging whether a current program which is required to run through the file system currently exists in a preset emergency dilatation list or not when the file system reaches a full state;
And the emergency capacity expansion module is used for expanding the file system to the file system size indicated by the preset emergency capacity expansion threshold according to the preset emergency capacity expansion threshold when the current program exists in the preset emergency capacity expansion list, wherein the preset emergency capacity expansion threshold is larger than the preset initial capacity expansion threshold and smaller than the capacity of the target storage partition.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The apparatus of this embodiment is presented in terms of functional units, where the units are ASIC (Application SPECIFIC INTEGRATED Circuit) circuits, processors and memories that execute one or more software or firmware programs, and/or other devices that can provide the above-described functionality.
The embodiment of the invention also provides computer equipment, which is provided with the devices shown in the figures 8 and 9.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 10, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 10.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (14)

1. A vehicle-mounted application image generation method, which is applied to a construction server, the method comprising:
Obtaining mirror image configuration information, wherein the mirror image configuration information comprises a mirror image file volume, a partition volume and an application compiling file, and the partition volume is used for representing the volume of a target storage partition for programming a vehicle-mounted mirror image in a vehicle to be programmed;
When the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file, creating a target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file;
And outputting error information which cannot generate the target vehicle-mounted mirror image when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file.
2. The method of claim 1, wherein the build server deploys a linux operating system, the image configuration information further includes a file system type, and the creating a target vehicle-mounted image including the application compiled file according to the image file volume includes:
creating an empty file according to the mirror image file volume, and formatting the empty file into an empty vehicle mirror image according to the file system type;
starting a user mode linux, and transmitting the path of the empty vehicle mirror image and the path of the application compiling file into the user mode linux through a virtual file system;
Mounting the empty vehicle mirror image to a custom directory through the user mode linux;
copying the application compiling file to the custom directory through the user mode linux;
Unloading the custom catalogue through the user mode linux to obtain the target vehicle-mounted mirror image.
3. The method according to claim 2, wherein the image configuration information further includes user ID information and group ID information, the ID types in the user ID information and the group ID information including a root user ID type and/or a normal user ID type, and further comprising, after the copying of the application compiled file to the custom directory by the user mode linux:
and configuring the application compiling file according to the user ID information and the group ID information.
4. The method of claim 3, wherein the mirror configuration information further includes a custom script for determining a target compiled file to be burned and a redundant compiled file not to be burned in the application compiled files, and wherein copying the application compiled file to the custom directory through the user mode linux includes:
Acquiring a target compiling file from the application compiling file according to the custom script;
Copying the target compiling file to the custom directory.
5. The method of claim 1, wherein the build server deploys a linux operating system, the image configuration information further includes a file system type, and when the file system type is EXT4, creating, according to the image file volume, a target vehicle-mounted image including the application compiled file, further includes:
and creating a target vehicle-mounted image comprising the application compiling file according to the image file volume through a make_ext4fs instruction.
6. The method according to claim 5, wherein the image configuration information further includes user ID information and group ID information, the ID types in the user ID information and the group ID information include a root user ID type and/or a normal user ID type, and the parameters in the make_ext4fs instruction for compiling a file configuration ID for the application are parameters updated with the user ID information and the group ID information.
7. The method according to claim 4 or 6, characterized in that the method further comprises:
Starting a user mode linux, and transmitting the path of the target vehicle-mounted mirror image into the user mode linux through a virtual file system;
mounting the target vehicle-mounted mirror image to a target custom directory through the user mode linux;
and enumerating application compiling files included in the target custom directory through the user mode linux.
8. A vehicle-mounted application deployment method, characterized by being applied to a vehicle, the method comprising:
Receiving a target vehicle-mounted image sent by a server and generated by the method of any one of claims 1-7;
and installing the file system and the application compiling file of the target vehicle-mounted mirror image to the target storage partition.
9. The method of claim 8, wherein the method further comprises:
And when the file system is installed, expanding the file system to the size of the file system represented by the preset initial expansion threshold according to the preset initial expansion threshold, wherein the preset initial expansion threshold is larger than the volume of the target vehicle-mounted mirror image and smaller than the volume of the target storage partition.
10. The method according to claim 9, wherein the method further comprises:
When the file system reaches a full state, judging whether a current program which is required to be run through the file system currently exists in a preset emergency dilatation list or not;
and when the current program exists in the preset emergency capacity expansion list, expanding the file system to the file system size represented by the preset emergency capacity expansion threshold according to the preset emergency capacity expansion threshold, wherein the preset emergency capacity expansion threshold is larger than the preset initial capacity expansion threshold and smaller than the capacity of the target storage partition.
11. An in-vehicle application image generation apparatus, applied to a build server, comprising:
The configuration information acquisition module is used for acquiring mirror image configuration information, wherein the mirror image configuration information comprises a mirror image file volume, a partition volume and an application compiling file, and the partition volume is used for representing the volume of a target storage partition for programming the vehicle-mounted mirror image in the vehicle to be programmed;
The mirror image generation module is used for creating a target vehicle-mounted mirror image comprising the application compiling file according to the volume of the mirror image file when the volume of the mirror image file is smaller than the partition volume and the volume of the mirror image file is larger than or equal to the volume of the application compiling file;
and the error reporting module is used for outputting error information which cannot generate the target vehicle-mounted mirror image when the volume of the mirror image file is larger than or equal to the partition volume or smaller than the volume of the application compiling file.
12. An in-vehicle application deployment apparatus for application to a vehicle, the apparatus comprising:
The image receiving module is used for receiving the target vehicle-mounted image which is sent by the server and generated by the method of any one of claims 1-7;
And the mirror image installation module is used for installing the file system and the application compiling file of the target vehicle-mounted mirror image to the target storage partition.
13. A computer device, comprising:
a memory and a processor in communication with each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-7 and 8-10.
14. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7 and 8-10.
CN202410115992.6A 2024-01-26 2024-01-26 Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium Pending CN117908903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410115992.6A CN117908903A (en) 2024-01-26 2024-01-26 Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410115992.6A CN117908903A (en) 2024-01-26 2024-01-26 Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117908903A true CN117908903A (en) 2024-04-19

Family

ID=90685815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410115992.6A Pending CN117908903A (en) 2024-01-26 2024-01-26 Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117908903A (en)

Similar Documents

Publication Publication Date Title
JP6390644B2 (en) Program update system, program update method, and computer program
US6138179A (en) System for automatically partitioning and formatting a primary hard disk for installing software in which selection of extended partition size is not related to size of hard disk
JP4810172B2 (en) Control device, version upgrade method, and program
US20070226400A1 (en) Information processing apparatus and method of using otp memory
CN111596930B (en) Root file system mirror image manufacturing method and device, storage medium and embedded device
JP7419557B2 (en) Software version rollback methods, devices, and systems
CN111176739A (en) System starting method, device, equipment and storage medium
US8910145B2 (en) Method and device for installing/uninstalling software modules, with centralized resolution of constraints, in aircraft equipment items
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN110083380A (en) Firmware update and the electronic device for using the method
JP2007052519A (en) Information processor, method, and program
KR20170040734A (en) Electronic system with update control mechanism and method of operation thereof
CN103365696A (en) BIOS (Basic Input Output System) image file obtaining method and device
CN110716845B (en) Log information reading method of Android system
CN101872306B (en) Embedded system for realizing software updating and software backup and implementation method thereof
CN112433767A (en) BIOS configuration item setting method, system, equipment and medium
WO2020158377A1 (en) Electronic control device and security verification method for electronic control device
CN108920171A (en) Firmware update and device, electronic equipment
CN110083378B (en) Automatic software upgrading method and device based on file system
CN114756290A (en) Operating system installation method, device and readable storage medium
CN117908903A (en) Vehicle-mounted application mirror image generation and deployment method, device, equipment and medium
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN115454403A (en) Page construction method and device and storage medium
CN114003250A (en) Software deployment method and device

Legal Events

Date Code Title Description
PB01 Publication