Customization system for root file system and customization method for root file system
By providing a customized system for the root file system, including multiple custom modules, to customize the original root file system, the problem that the existing technology cannot meet the needs of autonomous driving products is solved, and efficient and low-cost automatic driving functional equipment development and configuration are achieved.
Patent Information
- Application Number
- CN202510007991.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-06
AI Technical Summary
The root file system provided by the existing high computing power module cannot meet the specific application scenario requirements of autonomous driving products, resulting in inefficient and costly automatic driving functional equipment during development and configuration.
It provides a customized system for the root file system, including basic functional modules, application integration modules, system service modules and system cutting modules. Through these modules, the original root file system is customized to generate a customized root file system that meets the needs of autonomous driving.
It realizes the system development of autonomous driving functional equipment in batches, without the need for manual configuration of each device one by one, improves customized development efficiency, reduces development costs, and facilitates post-transplantation and function maintenance and upgrades.
Smart Images

Figure CN119938125A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of system development of autonomous driving functional equipment, and in particular to a customization system for a root file system and a customization method for a root file system. Background Art
[0002] In today's rapidly developing field of autonomous driving technology, high-performance computing platforms are the key to promoting the innovation and application deployment of autonomous driving technology. Existing high-computing modules provide a root file system image based on Ubuntu, but its root file system cannot meet the specific application scenario requirements of autonomous driving products.
[0003] Therefore, the autonomous driving functional equipment such as domain controllers (Advanced Domain Controller Unit, ADCU) and intelligent edge computers (MEC) actually used by some companies need to undergo in-depth secondary development to meet the needs of autonomous driving vehicles and roadside equipment for high computing power, high reliability and flexible configuration.
[0004] However, traditional equipment system development methods mostly involve development and configuration after the equipment is turned on. This development solution is difficult to meet the actual configuration requirements of autonomous driving scenarios and has problems such as low efficiency and high cost. Summary of the invention
[0005] The embodiments of the present application provide a customization system for a root file system and a customization method for a root file system to improve the customization and development efficiency of autonomous driving functional equipment and reduce development costs.
[0006] The present application embodiment adopts the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a customization system for a root file system, wherein the customization system for a root file system includes a plurality of customization modules, and the plurality of customization modules are used to customize an original root file system according to autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of an autonomous driving function device, and the plurality of customization modules include a basic function module, an application integration module, a system service module, and a system tailoring module;
[0008] The basic function module is used to customize the basic configuration information in the original root file system;
[0009] The application integration module is used to customize the application software information in the original root file system;
[0010] The system service module is used to customize the system service information of the autonomous driving function device in the original root file system;
[0011] The system cutting module is used to cut the system applications and services of the autonomous driving function device in the original root file system.
[0012] Optionally, the basic function module is also used to:
[0013] Acquire a plurality of preset configuration items, where the plurality of preset configuration items include at least one configuration item type of adding, modifying, and deleting;
[0014] The basic configuration information in the original root file system is updated according to the configuration policy corresponding to each preset configuration item.
[0015] Optionally, the preset configuration item includes a system user, and the basic function module is further used to:
[0016] Determining whether a system user of the autonomous driving function device exists in the original root file system;
[0017] If a system user for the autonomous driving function device does not exist, create a system user for the autonomous driving function device and configure the system user's login information.
[0018] Optionally, the application integration module includes an application integration module for system basic functions, and the application integration module for system basic functions is used to add an application installation package of the system basic functions of a non-official system to a designated directory of the original root file system.
[0019] Optionally, the application integration module also includes an application integration module for an autonomous driving algorithm, and the application integration module for the autonomous driving algorithm is used to add autonomous driving algorithm components and container components to a designated directory of the original root file system.
[0020] Optionally, the autonomous driving algorithm component includes an accelerated computing tool, and the application integration module of the autonomous driving algorithm is further used to:
[0021] Based on the source code of the corresponding version of the software library, recompile according to the compilation rules corresponding to the accelerated computing tool to obtain a software installation package with the accelerated computing tool function;
[0022] The software installation package in the original root file system is replaced with the software installation package having the accelerated computing tool function.
[0023] Optionally, the system service module is further used to:
[0024] Use the System Service Manager to add multiple system services and manage and control the execution order of multiple system services;
[0025] The system service includes at least one of a system initialization service, a Web runtime configuration service, a temperature control service, a power management service, an OTA upgrade service, a performance monitoring service and an MCU communication service.
[0026] Optionally, the system tailoring module includes an application tailoring module, and the application tailoring module is used to:
[0027] Traverse and read the application names in the application tailoring configuration file of the original root file system;
[0028] For each application name read, use the specified command to trim the application.
[0029] Optionally, the system tailoring module further includes a startup optimization module, and the startup optimization module is used to perform interface tailoring and / or system service tailoring on the original root file system.
[0030] In a second aspect, an embodiment of the present application further provides a method for customizing a root file system, wherein the method for customizing a root file system is executed by a customization system for a root file system, and the method for customizing a root file system includes:
[0031] Customizing the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of the autonomous driving function device;
[0032] The customized processing includes:
[0033] Customize the basic configuration information in the original root file system;
[0034] Customize the application software information in the original root file system;
[0035] Customize the system service information of the autonomous driving function device in the original root file system;
[0036] Cut out system applications and services of the autonomous driving function device from the original root file system.
[0037] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0038] A processor; and a memory arranged to store computer executable instructions, which, when executed, cause the processor to perform any of the aforementioned customization methods for a root file system.
[0039] In a fourth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements any of the aforementioned customization methods for a root file system.
[0040] At least one of the above technical solutions adopted in the embodiment of the present application can achieve the following beneficial effects: the customization system for the root file system in the embodiment of the present application includes multiple customization modules, and the multiple customization modules are used to customize the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into the system image of the autonomous driving function device, and the multiple customization modules include a basic function module, an application integration module, a system service module and a system tailoring module; the basic function module is used to customize the basic configuration information in the original root file system; the application integration module is used to customize the application software information in the original root file system; the system service module is used to customize the system service information of the autonomous driving function device in the original root file system; the system tailoring module is used to tailor the system applications and services of the autonomous driving function device in the original root file system. The customization system for the root file system in the embodiment of the present application can achieve the effect of "out of the box" by performing multiple customization development of the root file system before the autonomous driving function device is turned on and used, and realizes the system batch development of the autonomous driving function device, without the need to manually configure each device one by one, thereby improving the efficiency of customization development, reducing the development cost, and facilitating the later transplantation and function maintenance and upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1 A schematic diagram of the structure of a customized system for a root file system in an embodiment of the present application;
[0043] Figure 2 A flowchart of a method for customizing a root file system in an embodiment of the present application;
[0044] Figure 3 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0046] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0047] The present application embodiment provides a customized system for a root file system, such as Figure 1 As shown, a structural schematic diagram of a customization system for a root file system in an embodiment of the present application is provided, the customization system for the root file system includes multiple customization modules, and the multiple customization modules are used to customize the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into the system image of the autonomous driving functional device, and the multiple customization modules include a basic function module, an application integration module, a system service module and a system tailoring module; the basic function module is used to customize the basic configuration information in the original root file system; the application integration module is used to customize the application software information in the original root file system; the system service module is used to customize the system service information of the autonomous driving functional device in the original root file system; the system tailoring module is used to tailor the system applications and services of the autonomous driving functional device in the original root file system.
[0048] The root file system customization system of the embodiment of the present application is particularly suitable for the root file system customization of the autonomous driving function device, where the autonomous driving function device can be a domain control device on the vehicle side or an edge computing device on the road side. Figure 1 As shown, the customized system of the embodiment of the present application is mainly composed of multiple customized modules, including a basic function module, an application integration module, a system service module and a system tailoring module. These modules customize the original root file system according to the usage requirements of the autonomous driving function equipment, so that the customized root file system can fully and comprehensively meet the usage requirements of the autonomous driving function equipment.
[0049] After the existing solution uses the image generated by the official root file system to flash the machine, it is necessary to manually configure the time zone and manually set the system username and password after booting, which greatly increases the labor cost of the equipment during mass production and use. Therefore, the embodiment of the present application designs a basic function module, which is responsible for customizing the basic configuration information in the original root file system, such as but not limited to system user configuration, startup configuration, network configuration, security configuration, etc. By adjusting these configurations, it can be ensured that the customized root file system can meet the basic function configuration requirements of the autonomous driving function equipment without the need for manual configuration one by one after booting.
[0050] After the existing solution uses the image generated by the official root file system to flash the system, there are no basic applications for development and debugging, as well as algorithm component packages such as JetPack, and it is necessary to enrich the built-in applications. Therefore, the embodiment of the present application designs an application integration module, which is mainly responsible for customizing the application software information in the original root file system, mainly integrating the application software and algorithms required for the autonomous driving function equipment into the root file system. For example, it may be necessary to integrate map applications, sensor data processing applications, path planning applications, etc. Through the application integration module, it can be ensured that these application software can run seamlessly on the autonomous driving function equipment.
[0051] The root file system in the autonomous driving function device needs to add customized system services before use. The embodiment of the present application has designed a system service module accordingly. The system service module is mainly responsible for customizing the system service information of the autonomous driving function device in the original root file system, for example, it may include updating the system service configuration, adding or deleting system services, etc. By adjusting the system service, it can be ensured that the customized root file system can provide all the system-level support required by the autonomous driving function device.
[0052] Currently, there are a large number of redundant applications in the system, and the equipment startup time is relatively long, generally 2 minutes. System application tailoring is required to optimize the system startup time and achieve startup acceleration. Therefore, the embodiment of the present application has designed a system tailoring module accordingly. The system tailoring module is mainly responsible for tailoring the system applications and services of the autonomous driving function equipment in the original root file system. Since the autonomous driving function equipment usually has specific hardware and software requirements, it may be necessary to delete some unnecessary system applications and services to save storage space and improve system performance. The system tailoring module intelligently cuts out unnecessary parts by carefully analyzing the needs of the autonomous driving function equipment.
[0053] The root file system customized based on the above-mentioned customized modules can be directly packaged into the system image of the autonomous driving function device. When the autonomous driving device is turned on, it has the functions customized and developed by the above-mentioned customized modules without manual configuration. Especially in the system batch deployment scenario of autonomous driving function devices, it can realize the batch customized development of autonomous driving function devices.
[0054] The customized system for the root file system in the embodiment of the present application can achieve an "out-of-the-box" effect by performing multiple customized developments of the root file system before the autonomous driving functional equipment is turned on and used, thereby realizing systematic batch development of autonomous driving functional equipment without the need for manual configuration of each device one by one, thereby improving customized development efficiency, reducing development costs, and facilitating later transplantation and functional maintenance and upgrades.
[0055] In some embodiments of the present application, the basic function module is also used to: obtain multiple preset configuration items, the multiple preset configuration items include at least one configuration item type of addition, modification, and deletion; update the basic configuration information in the original root file system according to the configuration policy corresponding to each preset configuration item.
[0056] The basic function module is mainly responsible for customizing the basic configuration information in the original root file system. Specifically, it can include using the configuration strategies corresponding to each basic configuration item to add, modify, and delete the information of the basic configuration items in the original root file system. The specific configuration strategy can be pre-set according to the specific needs of the autonomous driving function equipment to ensure that the customized root file system can meet the configuration requirements of the autonomous driving function equipment.
[0057] Specifically, the basic function modules of the embodiment of the present application can complete the configuration update through shell scripts. By modifying the configuration files in the system and other related file operations, the functional customization of basic functions is realized, which includes but is not limited to: system user creation, domestic source replacement (to speed up software updates and downloads), system time zone settings, changing desktop wallpapers and boot logos, removing irregular hotspot login pop-ups, and setting default working modes. The main basic configuration items and corresponding configuration strategies are shown in Table 1 below:
[0058] Table 1
[0059]
[0060]
[0061] It should be noted that what is listed in Table 1 above are only some examples of basic configuration information in the embodiments of the present application. As for which basic configuration information to customize, those skilled in the art can flexibly set it according to the actual scenario requirements, and no specific limitation is made here.
[0062] In some embodiments of the present application, the preset configuration items include a system user, and the basic function module is also used to: determine whether there is a system user of the autonomous driving function device in the original root file system; if there is no system user of the autonomous driving function device, create a system user of the autonomous driving function device and configure the login information of the system user.
[0063] The autonomous driving function device needs to have system user information before use, but there is no system user in the official root file system. Therefore, the basic function module of the embodiment of the present application can create a system user and perform corresponding configuration to meet the use requirements of the autonomous driving function device.
[0064] Specifically, the basic function module can first determine whether there is a user directory in the root file system. The determination step is set because although there is no system user information in the official original root file system, the customization process is executed by a script, and the script may be executed more than once during the customization process. If the system user has been created during the previous execution, it does not need to be created again during the next execution to avoid user information conflicts. Therefore, the correctness of the system user creation can be guaranteed by the above determination method.
[0065] If the user directory does not exist in the root file system, you can create a system user. You can use the QEMU emulator and apply the useradd command to complete it. By modifying the corresponding configuration files, you can set the login password and host name for the system user and configure the automatic login function.
[0066] In some embodiments of the present application, after the user completes the creation, a new pip configuration file can be added to the .pip file in the user directory, and the pip domestic source can be written to speed up the software download speed of the pip command.
[0067] In some embodiments of the present application, the system time zone can be modified by using a soft link, linking the system localtime file to a specified time zone file, such as Asia / shanghai, to achieve the modification of the system time zone.
[0068] In some embodiments of the present application, the application integration module includes an application integration module of system basic functions, and the application integration module of system basic functions is used to add application installation packages of system basic functions of unofficial systems to a designated directory of the original root file system.
[0069] The application integration module mainly uses the QEMU simulator to complete the installation of application software packages such as pip and deb, and realizes the function of installing application software in the original root file system rootfs. The pip application can use the pip install command to install the corresponding tar package and whl package, the deb application can be installed using the dpkg command, and the bin program application is directly copied to the system specified directory.
[0070] Specifically, the application integration module of the embodiment of the present application may include an application integration module of the system basic functions, which is mainly used to integrate applications not included in the official system, such as CMake, Curl, GPSD, Tcpdump, etc., into the original root file system.
[0071] CMake is a cross-platform automated build system, mainly used to manage the software build process. CMake is not limited to simple compilation tasks, but is a powerful tool for overall build management and maintenance of projects. It allows developers to specify build parameters in a simple, portable text file format, which is particularly suitable for cross-platform projects.
[0072] Curl is a widely used command line tool that supports working with various Internet protocols on the command line using URL syntax. Curl plays an important role in the development and testing process, especially when processing network requests and testing API interfaces. It can be used for file downloads and uploads, website status checks, and automated script writing.
[0073] GPSD is an open source project that is a middle-layer service created for various GNSS modules. GPSD supports a variety of GPS hardware devices and NMEA data protocols, and can provide standardized data to multiple client applications through TCP / IP sockets. It is widely used in automotive navigation systems, geographic information systems (GIS), high-precision time synchronization, and mobile applications.
[0074] Tcpdump is one of the powerful network data collection and analysis tools in Linux. It can completely intercept the data packets transmitted in the network and provide analysis to locate network failures or conduct security audits. Tcpdump provides source code and interfaces, so it has strong scalability and is very useful for network maintenance and intrusion detection.
[0075] Of course, technical personnel in this field can flexibly choose which basic functional applications to integrate according to actual needs, and no specific limitation is made here.
[0076] In some embodiments of the present application, the application integration module also includes an application integration module for an autonomous driving algorithm, and the application integration module for the autonomous driving algorithm is used to add autonomous driving algorithm components and container components to a designated directory of the original root file system.
[0077] The application integration module of the embodiment of the present application also includes an application integration module for the autonomous driving algorithm, which is mainly used to integrate the docker container and the JetPack algorithm components into the specified directory of the original root file system. The docker container is used to carry the algorithm deployment program, and the JetPack algorithm components include CUDA, TensorRT, cuDNN, VPI, and OpenCV.
[0078] In some embodiments of the present application, the autonomous driving algorithm component includes an accelerated computing tool, and the application integration module of the autonomous driving algorithm is also used to: recompile the source code of the corresponding version of the software library according to the compilation rules corresponding to the accelerated computing tool to obtain a software installation package with the function of the accelerated computing tool; and use the software installation package with the accelerated computing tool function to replace the software installation package in the original root file system.
[0079] The autonomous driving algorithm component of the embodiment of the present application includes an accelerated computing tool, which may be, for example, CUDA (Compute Unified Device Architecture). CUDA is a parallel computing platform and programming model developed by NVIDIA specifically for general computing on graphics processing units (GPUs). It is a set of tools specifically built for GPUs. With CUDA, developers can leverage the powerful performance of GPUs to significantly accelerate computing applications. In GPU-accelerated applications, the serial portion of the workload runs on the CPU, while the compute-intensive portion runs in parallel on thousands of GPU cores. In autonomous driving scenarios, CUDA technology can accelerate the processing of sensor data, improve data processing speed and real-time performance, and ensure that autonomous driving functional equipment can respond quickly to environmental changes.
[0080] Since the original software libraries such as OpenCV do not have the function of accelerated computing, the application integration module of the autonomous driving algorithm in the embodiment of the present application uses the source code of the corresponding version of the original software library to recompile according to the corresponding compilation rules to generate a software installation package with the accelerated computing function, and finally replaces the software installation package with the official installation package, and solves the dependency conflict problems caused by the replacement process. For example, if the dependency package is missing, the corresponding dependency package is added; if it is a version conflict problem, the version of the installation package is adjusted.
[0081] Of course, in addition to CUDA, those skilled in the art may also adopt other tools capable of realizing parallel computing and GPU acceleration functions, such as OpenCL, etc., according to actual needs, which are not specifically limited here.
[0082] In some embodiments of the present application, the system service module is also used to: use the system service manager to add multiple system services, and manage and control the execution order between multiple system services; wherein the system services include at least one of system initialization service, Web runtime configuration service, temperature control service, power management service, OTA upgrade service, performance monitoring service and MCU communication service.
[0083] The system service module of the embodiment of the present application can use a system service manager such as the Systemd manager to add multiple system services, manage and control the parallel execution order and dependencies between multiple system services. The system services here can include, for example, system initialization services, Web runtime configuration services, temperature control services, power management services, OTA upgrade services, performance monitoring services, and MCU communication services.
[0084] System initialization services mainly include hard disk formatting, Docker initialization, system user initialization, network initialization and system configuration.
[0085] The Web runtime configuration service includes the Web front-end GUI part and the back-end part. It mainly implements access to the Web configuration interface by accessing the device IP and port number in the local area network, and can perform visual configuration operations on the device network configuration and other parameters.
[0086] The temperature control service obtains the temperature of the temperature sensor in the device, sets the corresponding temperature threshold and hysteresis value, thereby controlling the operation of the cooling device (fan, water cooling, etc.) in the device to achieve dynamic temperature control adjustment.
[0087] The OTA upgrade service is developed based on HTTP and has interfaces such as version query, version comparison, receiving OTA upgrade packages, and OTA upgrade execution. It cooperates with the cloud to send OTA upgrade packages and execute upgrade actions.
[0088] The performance monitoring service is used to monitor the performance of the system and upload it to the cloud. It obtains performance data such as CPU usage, GPU usage, CPU temperature, etc. in the system and composes them into JSON fields, and finally uploads them to the cloud via http.
[0089] The MCU communication service is used to communicate data with the MCU control unit in the device. The device communicates with the MCU through serial port communication. The serial port messages are encapsulated according to the corresponding protocol. The MCU communication service can more conveniently interact with the MCU control unit.
[0090] In some embodiments of the present application, the system tailoring module includes an application tailoring module, which is used to: traverse and read the application names in the application tailoring configuration file of the original root file system; and use a specified command to tailor the application corresponding to each application name read.
[0091] The system tailoring module of the embodiment of the present application specifically includes an application tailoring module, which is mainly used to tailor applications in the original root file system. Specifically, the application tailoring module will first traverse and read the application tailoring configuration file in the original root file system. The configuration file is stored in text form, and each line contains an application name that needs to be tailored. In order to simulate the operating environment of the autonomous driving function device, the application tailoring module uses the QEMU simulator to perform the tailoring operation. The QEMU simulator can simulate a variety of hardware platforms and operating systems to ensure that the tailoring operation is performed in an environment similar to the actual device. The application tailoring module then traverses the read application names line by line. For each application name read, use the aptpurge command for tailoring. The apt purge command is a software package management tool in Debian and its derivative systems (such as Ubuntu) that is used to completely delete software packages and their configuration files.
[0092] By applying the tailoring module, the system disk usage can be significantly reduced, which is especially important for autonomous driving function devices with limited resources.
[0093] In some embodiments of the present application, the system tailoring module further includes a boot optimization module, and the boot optimization module is used to perform interface tailoring and / or system service tailoring on the original root file system.
[0094] The system tailoring module of the embodiment of the present application also includes a boot optimization module, which is mainly used to perform interface tailoring and system service tailoring to reduce the boot time from 2 minutes to 1 minute.
[0095] Interface trimming mainly trims the network initialization part of the interface startup process and deletes the serial port print log during the interface startup process, thereby accelerating the interface startup process. System service trimming mainly trims some serial ports, USB mode settings, and software update services, such as serial-getty@ttyGS0.service and nv-l4t-usb-device-mode.service services, and deletes the waiting for drm interaction field in the gdm desktop service, thereby accelerating the boot process.
[0096] The above-mentioned tailored interface type may include, for example, UEFI (Unified Extensible Firmware Interface). UEFI is a standard firmware interface for computer startup. By tailoring the UEFI interface, the speed of interface startup can be further improved and the computer startup time can be shortened.
[0097] Of course, those skilled in the art can flexibly choose which interfaces and services to cut according to actual needs, and no specific limitation is made here.
[0098] The present application also provides a method for customizing a root file system. Figure 2 As shown, a flow chart of a method for customizing a root file system in an embodiment of the present application is provided. The method for customizing a root file system is executed by a customization system for a root file system. The method for customizing a root file system includes:
[0099] Customizing the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of the autonomous driving function device;
[0100] The customized processing includes:
[0101] Customize the basic configuration information in the original root file system;
[0102] Customize the application software information in the original root file system;
[0103] Customize the system service information of the autonomous driving function device in the original root file system;
[0104] Cut out system applications and services of the autonomous driving function device from the original root file system.
[0105] It can be understood that the above-mentioned customization method for the root file system can be implemented based on any customization system for the root file system provided in the aforementioned embodiments. The relevant explanations about the customization system for the root file system are applicable to the customization method for the root file system and will not be repeated here.
[0106] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0107] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0108] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0109] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a customized system for the root file system at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0110] Customizing the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of the autonomous driving function device;
[0111] The customized processing includes:
[0112] Customize the basic configuration information in the original root file system;
[0113] Customize the application software information in the original root file system;
[0114] Customize the system service information of the autonomous driving function device in the original root file system;
[0115] Cut out system applications and services of the autonomous driving function device from the original root file system.
[0116] The above application Figure 1The method for customized system execution of the root file system disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0117] The present application also provides a computer program product, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 1 The method for executing a customized system for a root file system in the illustrated embodiment is specifically used to execute:
[0118] Customizing the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of the autonomous driving function device;
[0119] The customized processing includes:
[0120] Customize the basic configuration information in the original root file system;
[0121] Customize the application software information in the original root file system;
[0122] Customize the system service information of the autonomous driving function device in the original root file system;
[0123] Cut out system applications and services of the autonomous driving function device from the original root file system.
[0124] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0129] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0130] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0133] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A customized system for a root file system, wherein: The customization system for the root file system includes a plurality of customization modules, and the plurality of customization modules are used to customize the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into the system image of the autonomous driving function device, and the plurality of customization modules include a basic function module, an application integration module, a system service module and a system tailoring module; The basic function module is used to customize the basic configuration information in the original root file system; The application integration module is used to customize the application software information in the original root file system; The system service module is used to customize the system service information of the autonomous driving function device in the original root file system; The system cutting module is used to cut the system applications and services of the autonomous driving function device in the original root file system.
2. The customized system for a root file system as claimed in claim 1, wherein: The basic function module is also used for: Acquire a plurality of preset configuration items, where the plurality of preset configuration items include at least one configuration item type of adding, modifying, and deleting; The basic configuration information in the original root file system is updated according to the configuration policy corresponding to each preset configuration item.
3. The customized system for a root file system as claimed in claim 2, wherein: The preset configuration items include system users, and the basic function module is also used for: Determining whether a system user of the autonomous driving function device exists in the original root file system; If a system user for the autonomous driving function device does not exist, create a system user for the autonomous driving function device and configure the system user's login information.
4. The customized system for a root file system as claimed in claim 1, wherein: The application integration module includes an application integration module of system basic functions, and the application integration module of system basic functions is used to add an application installation package of the system basic functions of the non-official system to a designated directory of the original root file system.
5. The customized system for a root file system as claimed in claim 1, wherein: The application integration module also includes an application integration module for the autonomous driving algorithm, and the application integration module for the autonomous driving algorithm is used to add the autonomous driving algorithm components and container components to the specified directory of the original root file system.
6. The customized system for a root file system as claimed in claim 5, wherein: The autonomous driving algorithm component includes an accelerated computing tool, and the application integration module of the autonomous driving algorithm is also used for: Based on the source code of the corresponding version of the software library, recompile according to the compilation rules corresponding to the accelerated computing tool to obtain a software installation package with the accelerated computing tool function; The software installation package in the original root file system is replaced with the software installation package having the accelerated computing tool function.
7. The customized system for a root file system as claimed in claim 1, wherein: The system service module is also used for: Use the System Service Manager to add multiple system services and manage and control the execution order of multiple system services; The system service includes at least one of a system initialization service, a Web runtime configuration service, a temperature control service, a power management service, an OTA upgrade service, a performance monitoring service and an MCU communication service.
8. The customized system for a root file system as claimed in claim 1, wherein: The system tailoring module includes an application tailoring module, and the application tailoring module is used to: Traverse and read the application names in the application tailoring configuration file of the original root file system; For each application name read, use the specified command to trim the application.
9. The customized system for a root file system as claimed in claim 1, wherein: The system tailoring module also includes a startup optimization module, and the startup optimization module is used to perform interface tailoring and / or system service tailoring on the original root file system.
10. A method for customizing a root file system, wherein: The customization method for the root file system is performed by a customization system for the root file system, and the customization method for the root file system includes: Customizing the original root file system according to the autonomous driving requirement information to obtain a customized root file system, so as to package the customized root file system into a system image of the autonomous driving function device; The customized processing includes: Customize the basic configuration information in the original root file system; Customize the application software information in the original root file system; Customize the system service information of the autonomous driving function device in the original root file system; Cut out system applications and services of the autonomous driving function device from the original root file system.