Operating system mass production method and device, computer equipment, readable storage medium and program product

By determining the matching burning system in the chip burning system to support mirroring and using this mirror to start the chip burning system, the problem of burning that can only support Linux-like systems in the existing technology is solved, and multiple types of different chips are realized The system burns and improves applicability and support capabilities.

CN119415108APending Publication Date: 2025-02-11BEIJING YIHUI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411432414.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The existing technology can only support the burning of Linux-like systems, but cannot support the burning of other systems, and has low applicability.

Method used

Provide a mass production method of operating system, by obtaining the chip to be burned, connecting the storage medium carrying the chip burning system, determining the supporting image of the burning system matching the chip running environment, and using the mirror to start the chip burning system , realize mass production resource burning for different operating systems.

Benefits of technology

It realizes the recording of multiple systems of different chips, improves the applicability of chips to different operating systems, and enhances the support capabilities for real-time operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415108A_ABST
    Figure CN119415108A_ABST
Patent Text Reader

Abstract

The invention relates to an operating system mass production method and device, computer equipment, a computer readable storage medium and a computer program product, relates to the technical field of embedded system mass production, and can improve the burning applicability of a chip to different operating systems. The method comprises the following steps: acquiring a to-be-burnt chip; under the condition that a storage medium carrying the chip burning system is connected with the chip, determining a burning system support mirror image matched with the operating environment of the chip in the chip burning system; the chip burning system comprises operating system mass production resources corresponding to the operating system to be burnt; starting a chip burning system through a burning system support mirror image; and burning the operating system mass production resources corresponding to the operating system to the chip by using the started chip burning system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of embedded system mass production, and in particular to an operating system method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the continuous development of science and technology, the performance of various chips is getting stronger and stronger, and the demand for chips in various industries is increasing. At the same time, it also means that different chips are used for product design, and different chip manufacturers have different mass production and burning system methods, and product mass production methods are complicated and varied.

[0003] Chip system mass production burning is generally done through the mass production method of the chip design manufacturer, which defines the supported external storage media, solidifies a boot program into the chip's read-only memory, and solidifies the program to perform simple boot functions. Through different firmware burning methods, the product's operating system firmware is burned into the product's internal media.

[0004] However, the mass production method provided by chip manufacturers only supports burning Linux-type systems and does not support burning of other systems, so its applicability is low. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for mass production of operating systems that can complete the burning of multiple systems in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for mass production of an operating system, comprising:

[0007] Get the chip to be burned;

[0008] In a case where a storage medium carrying a chip burning system is connected to the chip, a burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0009] Supporting image boot chip burning system through the burning system;

[0010] The started chip burning system is used to burn the operating system mass production resources corresponding to the operating system into the chip.

[0011] In one embodiment, the using the started chip burning system to burn the operating system mass production resources corresponding to the operating system into the chip includes:

[0012] Obtaining the path mapping corresponding to the root file system of the chip burning system;

[0013] Mapping the root file system to the storage medium according to the path mapping;

[0014] The chip burning system after startup calls the root file system in the storage medium, and burns the mass production resources of the operating system carried by the root file system into the chip.

[0015] In one of the embodiments, before the step of mapping the root file system to the storage medium according to the path mapping, the method further includes:

[0016] Mounting the network file system, and obtaining the modified root file system image from the mounted network file system by the started chip burning system;

[0017] Mapping the root file system to the storage medium according to the path mapping includes:

[0018] The modified root file system image is written into the storage medium.

[0019] In one embodiment, burning the mass production resources of the operating system carried by the root file system to the chip includes:

[0020] Obtain the burning content configuration table from the root file system;

[0021] According to the burning content configuration table, the mass production system image file carried by the root file system is burned into the chip.

[0022] In one embodiment, burning the mass production system image file carried by the root file system to the chip according to the burning content configuration table includes:

[0023] Determine the partition information of the operating system to be burned according to the mass production burning configuration file;

[0024] According to the partition information and the burning content configuration table, the chip is formatted and partitioned to obtain a corresponding system burning space;

[0025] The mass production system image file carried by the root file system is burned into the system burning space.

[0026] In one of the embodiments, determining in the chip burning system a burning system support image that matches the operating environment of the chip includes:

[0027] Determine a plurality of candidate burning system support images in the chip burning system; the plurality of candidate burning system support images correspond to different operation logics respectively;

[0028] Determine, from the plurality of candidate burning system supported images, the burning system supported image whose operating logic matches the operating environment of the chip;

[0029] The method of supporting the image startup chip burning system through the burning system includes:

[0030] The burning system supports mirroring through a burning system boot tool to start the chip burning system.

[0031] In a second aspect, the present application also provides an operating system mass production device, including:

[0032] Chip acquisition module, used to obtain the chip to be burned;

[0033] An image matching module is used to determine, in the chip burning system, a burning system support image that matches the operating environment of the chip when a storage medium carrying the chip burning system is connected to the chip; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0034] A mass production startup module, used to support the image startup chip burning system through the burning system;

[0035] The mass production burning module is used to burn the operating system mass production resources corresponding to the operating system into the chip by using the started chip burning system.

[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0037] Get the chip to be burned;

[0038] In a case where a storage medium carrying a chip burning system is connected to the chip, a burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0039] Supporting image boot chip burning system through the burning system;

[0040] The started chip burning system is used to burn the operating system mass production resources corresponding to the operating system into the chip.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0042] Get the chip to be burned;

[0043] In a case where a storage medium carrying a chip burning system is connected to the chip, a burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0044] Supporting image boot chip burning system through the burning system;

[0045] The started chip burning system is used to burn the operating system mass production resources corresponding to the operating system into the chip.

[0046] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0047] Get the chip to be burned;

[0048] In a case where a storage medium carrying a chip burning system is connected to the chip, a burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0049] Supporting image boot chip burning system through the burning system;

[0050] The started chip burning system is used to burn the operating system mass production resources corresponding to the operating system into the chip.

[0051] The above-mentioned operating system mass production method, device, computer equipment, computer-readable storage medium and computer program product obtain the chip to be burned, and when the storage medium carrying the chip burning system is connected to the chip, determine the burning system support image that matches the operating environment of the chip in the chip burning system; the chip burning system includes the operating system mass production resources corresponding to the operating system to be burned; then the chip burning system is started through the burning system support image, and the operating system mass production resources corresponding to the operating system are burned to the chip using the started chip burning system, providing a burning system support image that matches different chip burning systems for different chips, ensuring the compatibility of the chip burning system and the chip to be burned, and based on the matching burning system support, starting the chip burning system to realize the burning of mass production resources of different operating systems, enhancing the support capability for real-time operating systems, and improving the applicability of chips for burning different operating systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0053] FIG1 is a schematic diagram of a flow chart of a method for mass production of an operating system in one embodiment;

[0054] FIG2 is a schematic diagram of a chip to be burned into an operating system in one embodiment;

[0055] FIG3 is a schematic diagram of control software of a chip burning system in one embodiment;

[0056] FIG4 is a block diagram of a chip programming system according to an embodiment;

[0057] FIG5 is a diagram showing the internal structure of a chip in one embodiment;

[0058] FIG6 is a flow chart of mass production of an operating system in one embodiment;

[0059] FIG7 is a structural block diagram of an operating system mass production device in one embodiment;

[0060] FIG. 8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are used to explain the present application and are not used to limit the present application.

[0062] In one embodiment, as shown in FIG1 , a method for mass production of an operating system is provided. This embodiment is illustrated by applying the method to an embedded device. It is understandable that the method can also be applied to an automation device, and can also be applied to a system including an embedded device and an automation device, and is implemented through the interaction between the embedded device and the automation device. In this embodiment, the method includes the following steps:

[0063] Step S102, obtaining the chip to be programmed.

[0064] Among them, the chip to be burned may include an integrated circuit chip that has not yet been processed by software burning, and / or an integrated circuit chip that still has enough storage space for burning after burning, and its structure may be as shown in Figure 2. The chip has not yet been configured with an operating system or other software.

[0065] In some embodiments, when an operating system needs to be prepared for a batch of embedded devices, N unburned chips are first received from the supplier. The models of these chips are confirmed by serial numbers, and then the chip status is checked using an anti-static wristband and an anti-static workbench to ensure that each chip has no physical damage and is ready for the next burning operation.

[0066] Step S104, when the storage medium carrying the chip burning system is connected to the chip, the burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned.

[0067] The chip burning system may be an overall system including software and hardware, which is used to write operating systems and other software into the chip. It may include burning tools, interfaces, firmware, and control software, etc., and provide a control interface as shown in FIG3, so that the burning process can be performed by the control software of the chip burning system.

[0068] Storage media is a device used to store and transmit data, such as SD cards, USB flash drives, etc. It has non-volatile storage characteristics. Its main function is to carry the chip burning system and operating system image files, and provide the required resources for the burning process.

[0069] The burning system support image can provide the image file required for the chip burning system to start and run, which can include the kernel, driver and startup configuration, etc. Its main function is to ensure that the chip can correctly start and run the chip burning system, and provide a compatible operating environment for the chip. The operating system mass production resources are complete software packages that can include the operating system itself and its related configuration files, drivers, applications, etc.

[0070] Specifically, first connect the storage medium carrying the chip burning system to the chip burning system and load the burning system support image; before starting the chip burning system, select a burning system support image that matches the target chip operating environment from the storage medium. After selecting the support image, start the chip burning system to make it recognize the connected storage medium; when the burning system starts, load the mass production resources of the operating system into the burning system. These resources are contained in the storage medium and are ready for the next burning operation.

[0071] Step S106, starting the chip burning system through the burning system support image.

[0072] Optionally, the selected burning system support image is loaded into the chip burning system, and the chip burning system is started by using the loaded burning system support image. After the chip burning system is started, it will be initialized according to the configuration in the support image.

[0073] Exemplarily, a batch of embedded devices are burned with the Linux operating system. First, an SD flash drive containing the SylixOS burning system and the Linux image is connected to the burning system. Before starting the burning system, he selects a SylixOS support image that matches the target chip model from the storage medium. After the selection operation is completed, it is initialized according to the configuration in the image, the kernel and driver are loaded, and the SylixOS burning system is started. The system identifies and configures the operating environment of the target chip. Subsequently, the mass production resources of Linux, including operating system files, drivers, and related configuration files, are loaded, and the next step of the burning operation is prepared.

[0074] Step S108, using the started chip burning system to burn the operating system mass production resources corresponding to the operating system into the chip.

[0075] Specifically, after the chip burning system is started, the mass production resources of the operating system to be burned are loaded into the burning system. According to the mass production resources and configuration parameters of the operating system, the burning process is started through the control software or command line tool to write the mass production resources of the operating system into the target chip.

[0076] In the above operating system mass production method, by obtaining a chip to be burned, when a storage medium carrying a chip burning system is connected to the chip, a burning system support image that matches the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned; then the chip burning system is started through the burning system support image, and the operating system mass production resources corresponding to the operating system are burned to the chip using the started chip burning system, providing burning system support images that match different chip burning systems for different chips, ensuring the compatibility of the chip burning system and the chip to be burned, and based on the matching burning system support image, starting the chip burning system to realize the burning of mass production resources of different operating systems, enhancing the support capability for real-time operating systems, and improving the applicability of the chip for burning different operating systems.

[0077] In an exemplary embodiment, step S108 utilizes the chip burning system after startup to burn the operating system mass production resources corresponding to the operating system into the chip, including: obtaining the path mapping corresponding to the root file system of the chip burning system; mapping the root file system to the storage medium according to the path mapping; and the chip burning system after startup calls the root file system in the storage medium to burn the operating system mass production resources carried by the root file system into the chip.

[0078] The root file system is a file system that contains the basic files and directory structure of the operating system. It is the core part of the normal operation of the operating system and provides the basic files and services required for the operation of the operating system.

[0079] In actual applications, the chip burning system after startup can obtain the path mapping information of the root file system from the configuration file or storage medium. The path mapping information includes the specific location and path of the root file system in the storage medium. According to the acquired path mapping information, the chip burning system maps the root file system to the storage medium. The chip burning system after startup calls the root file system mapped to the storage medium and starts to read the mass production resources of the operating system. The mass production resources of the operating system read are gradually burned into the target chip to ensure that the resources are written correctly.

[0080] In this embodiment, by correctly mapping and calling the root file system, it is ensured that the operating system mass production resources are completely and correctly written into the target chip to avoid data loss or errors. Through standardized path mapping and calling processes, the stability and reliability of the system are ensured, and the reliability of the operating system operation is improved.

[0081] It can be understood that before the step of mapping the root file system to the storage medium according to the path mapping, the root file system image can also be written to the storage medium by mounting the network file system. In one embodiment, before mapping the root file system to the storage medium according to the path mapping, the following steps can also be performed: mounting the network file system, and obtaining the modified root file system image from the mounted network file system by the chip burning system after startup; mapping the root file system to the storage medium according to the path mapping, including: writing the modified root file system image to the storage medium.

[0082] Among them, mounting a network file system means that the file system on the remote server is mounted to the local system through a network connection, the remote file system is connected through a network protocol, and it is mounted to a local directory so that it can be accessed like a local file system. The chip burning system can access files and directories in the network file system and can obtain a modified root file system image.

[0083] The root file system image is a file system image that contains the basic files and directory structures required for the operation of the operating system. It can be an initial image or an image that has been modified as needed. Path mapping is the correspondence between the path in the file system and the location of the storage medium, which ensures that files and directories can be correctly accessed and stored.

[0084] Specifically, the network file system on the remote server can be connected through the network protocol and mounted to the local directory, and the network connection and the mount point can be verified to be correct to ensure that the files and directories in the network file system can be accessed. According to the pre-defined path mapping information, the modified root file system image file is read from the mounted network file system, the file integrity and version are confirmed, and the modified root file system image obtained from the network file system is written to the storage medium.

[0085] In this embodiment, the root file system path of the chip burning system supports dynamic modification of the mapping configuration. After modifying the mass production system file to be burned, there is no need to re-make the mass production image and the mass production boot disk. It is only necessary to modify the root file system path mapping configuration of the chip burning system to mount it to the network file system when the chip burning system is started. After the mass production system file is debugged and stabilized, it is also convenient to write the mass production system file to the corresponding partition of the chip burning system boot disk in the chip burning system. When restarting, the network system does not need to be mounted and the latest mass production system file can be used. The latest root file system image is obtained by mounting the network file system to ensure that the operating system contains the latest modifications and updates. At the same time, it is possible to obtain updated image files from a remote server, providing a flexible update mechanism and reducing dependence on local storage.

[0086] In some embodiments, burning the mass production resources of the operating system carried by the root file system to the chip includes: obtaining a burning content configuration table from the root file system; and burning the mass production system image file carried by the root file system to the chip according to the burning content configuration table.

[0087] The burning content configuration table is a file or data structure that can describe the target file or target data that needs to be burned into the chip, as well as the burning method. The mass production system image file is a complete image file of the operating system and its related resources, which can include: boot tools, system files, system kernel, user files and other necessary files.

[0088] Exemplarily, after the chip burning system is started, the burning content configuration table is read from the mapped root file system. The burning content configuration table lists in detail the objects and numbers of the operating systems that need to be burned into the target chip. According to the instructions in the configuration table, the chip burning system can selectively burn a single operating system in sequence or burn multiple operating systems at the same time, and then read the mass production system image files carried by the root file system in sequence, and gradually burn these files into the storage space of the target chip.

[0089] In this embodiment, by obtaining the burning content configuration table in the root file system, the objects and number of operating systems that need to be burned can be determined, and burning is performed according to the burning content configuration table, thereby realizing the sequential burning of a single operating system and the simultaneous burning of multiple different operating systems, improving the efficiency of operating system burning, and at the same time improving the compatibility of burning different operating systems.

[0090] In one of the embodiments, the mass production system image file carried by the root file system is burned into the chip according to the burning content configuration table, including: determining the partition information of the operating system to be burned according to the mass production burning configuration file; formatting and partitioning the chip according to the partition information and the burning content configuration table to obtain the corresponding system burning space; burning the mass production system image file carried by the root file system into the system burning space.

[0091] Specifically, after the chip burning system is started, it reads the mass production burning configuration file and extracts the partition information of the operating system to be burned, including the type, size and purpose of each partition. According to the partition information and the burning content configuration table, the chip burning system formats and partitions the target storage medium. Subsequently, the chip burning system reads the mass production system image files carried by the root file system in sequence according to the instructions of the burning content configuration table, and burns these files into the corresponding partitions of the target storage medium.

[0092] In this embodiment, according to the instructions of the configuration table, the mass production system image file is burned to the corresponding partition of the target storage medium to ensure resource integrity and system stability. Through formatting and partitioning, the system burning space of the storage medium is prepared to ensure that the operating system and its related resources can be written correctly.

[0093] In some embodiments, step S104 determines a burning system support image that matches the operating environment of the chip in the chip burning system, including: determining multiple candidate burning system support images in the chip burning system; the multiple candidate burning system support images correspond to different operating logics respectively; from the multiple candidate burning system support images, determining a burning system support image whose operating logic matches the operating environment of the chip; starting the chip burning system through the burning system support image, including: the burning system support image starts the chip burning system through the burning system boot tool.

[0094] The candidate burning system support images are multiple pre-configured image files, each of which corresponds to different operating logic and hardware environment. The burning system boot tool is a software tool for booting and starting the chip burning system.

[0095] Optionally, after the storage medium is connected to the chip, the chip detects multiple candidate burning system support images, first screens the candidate burning system support images according to the current running logic and hardware environment, determines the burning system support image, and loads the burning system support image after determination. Then, through the boot tool, loads the selected image file into the memory, and starts the chip burning system. The burning system enters the working state and is ready for the subsequent burning of the operating system and related resources.

[0096] In this embodiment, by determining the burning system support image that matches the chip operating environment, the operating system burning that is adapted to different chip hardware environments is achieved, thereby improving the compatibility of the chip burning system.

[0097] In a specific embodiment, the layout structure of the SylixOS chip burning system that performs the operating system burning operation is as shown in FIG. 4 .

[0098] The SylixOS root file system contains multiple files and configurations. The first is the mass production system burning configuration file, which includes the partition information of the burning target storage medium, the type and size of each partition, and the content configuration that needs to be burned. Next is the boot program, which is a file such as UBOOT, used to boot the operating system. The system kernel image contains the operating system kernel to ensure the startup and operation of the operating system. In addition, there are system files and user files, which respectively contain the basic files and services required for the operation of the operating system and files related to user applications and configurations. Other files may include necessary files such as drivers, library files, and tools to ensure the integrity and availability of the operating system.

[0099] In the specific layout of the SylixOS root file system mapped into memory, multiple partitions can be included. Reserved partitions are used for special purposes, perhaps to store temporary files or as buffers. The parameter configuration partition stores the path mapping and other system configuration parameters of the SylixOS root file system. The boot program partition stores boot program files, such as UBOOT, which are used to boot the chip burning system. The SylixOS BSP system image contains the BSP (board support package) system image of SylixOS, which is used to support the system startup and operation of the hardware platform. Finally, the SylixOS root file system partition stores the SylixOS root file system, including operating system files, user files, etc.

[0100] In this embodiment, through this chip burning system layout structure, it can be ensured that each step in the mass production process of the operating system can be standardized and automated, and the compatibility and stability of the system can be improved. This detailed partition layout and configuration method can effectively improve the efficiency and quality of system mass production, ensure the compatibility and stability of the operating system on different hardware platforms, and provide reliable technical guarantees for practical applications.

[0101] In an exemplary embodiment, an embedded device is provided. The embedded device may be a chip board, and its internal structure diagram is shown in FIG5 .

[0102] On the left side of the figure, the SylixOS system mass production tool boot disk is shown. This boot disk can be an SD card, TF card or USB flash drive. The boot disk contains the necessary files for starting and executing the SylixOS chip burning system. When the boot disk is inserted into the chip board and started, the system will boot and initialize according to the configuration files and images in the boot disk.

[0103] The right side of the figure shows the internal structure layout of the chip board. First is the system boot interface, which is the part of the system startup. The system boot interface is responsible for loading the boot program from the boot disk and starting the entire system. Next is the power interface, which provides power support for the system to ensure that the entire system can be powered normally during startup and operation. The target storage medium module is a storage area for storing operating systems and related files. The target storage medium here can be the built-in storage on the chip or an externally connected storage device. The mass production image file in the system mass production tool boot disk will eventually be burned to this storage medium to ensure the normal operation of the system. The chip board also contains a Log interface and a user interaction module. The Log interface is used to record and display log information during system startup and burning, which is convenient for users to debug and troubleshoot. The user interaction module provides a way to interact with users. Users can use this module to view system status, execute commands, or perform other operations.

[0104] In this embodiment, the chip layout design ensures the smooth progress of the system mass production process and provides necessary debugging and interactive functions, providing reliable technical support for the mass production and deployment of the system.

[0105] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.

[0106] In the process of mass production of operating system based on SylixOS system, as shown in Figure 6, first make SylixOS BSP image according to different chips and different startup methods to ensure compatibility. Next, configure the SylixOS root file system path mapping so that the required files can be correctly loaded when the system starts. Then, make the mass production system burning configuration file and package it with other system files into a complete rootfs.img (SylixOS root file system image). On this basis, according to the requirements of the chip manufacturer, package the SylixOS BSP and root file system into update.img (mass production image file). Finally, use the burning tool to burn the SylixOS mass production image to the boot disk to form the system mass production tool boot disk, which can be: SD card, TF card or U disk.

[0107] After the boot disk is prepared, insert it into the device to be mass-produced and power on the device. After the system starts, the SylixOS root file system path will be mapped to the default location. Then, the system parses the mass-production system burning configuration file and partitions the target storage medium to be burned to ensure that the partition structure meets the predetermined requirements. The system will check whether the partition operation is successful. If the partitioning is completed, it will proceed to the next step; if not, it will return to repartition.

[0108] After the partition is completed, the system will burn various files in the root file system to the specified partition of the target storage medium according to the burning content configuration table. The system will check again whether the file burning operation is successful. If the burning is completed, it will continue to the next step; if it is not completed, it will return to burn again. After the content is successfully burned, the system will prompt the user through log information or LED indicator light that the burning is successful. At this time, the user can unplug the boot disk and restart the system.

[0109] In addition, if you choose to load the root file system from a network file system, the system will mount NFS (network file system) to the SylixOS root file system path to achieve flexible file loading and updating.

[0110] In the present embodiment, by making SylixOS BSP images according to different chips and startup modes, the compatibility of the mass production system with various hardware platforms can be ensured. By configuring the root file system path mapping, it can be ensured that the necessary files can be correctly loaded when the system starts. This not only improves the startup efficiency of the system, but also ensures the stability and reliability of the system during the startup process. Making a detailed mass production system burning configuration file and packaging it into a complete SylixOS root file system image can ensure the standardization and automation of the mass production process. This not only improves the burning efficiency, but also reduces the errors caused by human operation and improves the quality of mass production. Insert the boot disk into the device to be mass produced and start the device, and the system can automatically map the root file system path to the default position. This automated mapping method can improve the system startup efficiency and ensure the compatibility and stability of the system in different environments. According to the configuration table, the system operating system file is burned to the specified partition of the target storage medium, and multiple operating systems can be burned, making the burning operation more convenient and concise. After the burning is completed, the burning situation is fed back through the log information and the LED indicator light, which can improve the transparency of the operation and ensure that the user can understand the burning status in time. At the same time, the flexible file loading and updating method can reduce the frequency of repeated production images and improve the debugging and updating efficiency of the system.

[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0112] Based on the same inventive concept, the embodiment of the present application also provides an operating system mass production device for implementing the operating system mass production method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more operating system mass production device embodiments provided below can refer to the limitations of the operating system mass production method above, and will not be repeated here.

[0113] In an exemplary embodiment, as shown in FIG7 , a mass production device for an operating system is provided, comprising: a chip acquisition module, an image matching module, a mass production startup module and a mass production burning module, wherein:

[0114] The chip acquisition module 710 is used to acquire the chip to be burned;

[0115] An image matching module 720 is used to determine, in the chip burning system, a burning system support image that matches the operating environment of the chip when a storage medium carrying the chip burning system is connected to the chip; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned;

[0116] The mass production startup module 730 is used to support the image startup chip burning system through the burning system;

[0117] The mass production burning module 740 is used to burn the operating system mass production resources corresponding to the operating system into the chip by using the started chip burning system.

[0118] The mass production burning module 740 is used to obtain the path mapping corresponding to the root file system of the chip burning system; map the root file system to the storage medium according to the path mapping; the chip burning system after startup calls the root file system in the storage medium and burns the mass production resources of the operating system carried by the root file system to the chip.

[0119] The mass production burning module 740 is used to, before the step of mapping the root file system to the storage medium according to the path mapping, also include: mounting the network file system, and obtaining the modified root file system image from the mounted network file system by the started chip burning system; mapping the root file system to the storage medium according to the path mapping, including: writing the modified root file system image to the storage medium.

[0120] The mass production burning module 740 is used to burn the mass production resources of the operating system carried by the root file system into the chip, including: obtaining a burning content configuration table from the root file system; and burning the mass production system image file carried by the root file system into the chip according to the burning content configuration table.

[0121] The mass production burning module 740 is used to burn the mass production system image file carried by the root file system into the chip according to the burning content configuration table, including: determining the partition information of the operating system to be burned according to the mass production burning configuration file; formatting and partitioning the chip according to the partition information and the burning content configuration table to obtain the corresponding system burning space; burning the mass production system image file carried by the root file system into the system burning space.

[0122] The image matching module 720 is used to determine multiple candidate burning system support images in the chip burning system; the multiple candidate burning system support images correspond to different operating logics respectively; from the multiple candidate burning system support images, determine the burning system support image whose operating logic matches the operating environment of the chip; start the chip burning system through the burning system support image, including: the burning system support image starts the chip burning system through the burning system boot tool.

[0123] Each module in the above operating system mass production device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0124] Each module in the above operating system mass production device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0125] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for mass production of an operating system is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0126] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0128] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory or other media used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density operation non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The processor involved in each embodiment provided in this application can be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but is not limited thereto.

[0130] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for mass production of an operating system, characterized in that: The method comprises: Get the chip to be burned; In a case where a storage medium carrying a chip burning system is connected to the chip, a burning system support image matching the operating environment of the chip is determined in the chip burning system; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned; Supporting image boot chip burning system through the burning system; The started chip burning system is used to burn the operating system mass production resources corresponding to the operating system into the chip.

2. The method according to claim 1, characterized in that The method of using the started chip burning system to burn the operating system mass production resources corresponding to the operating system into the chip includes: Obtaining the path mapping corresponding to the root file system of the chip burning system; Mapping the root file system to the storage medium according to the path mapping; The chip burning system after startup calls the root file system in the storage medium, and burns the mass production resources of the operating system carried by the root file system into the chip.

3. The method according to claim 2, characterized in that Before the step of mapping the root file system to the storage medium according to the path mapping, the method further includes: Mounting the network file system, and obtaining the modified root file system image from the mounted network file system by the started chip burning system; Mapping the root file system to the storage medium according to the path mapping includes: The modified root file system image is written into the storage medium.

4. The method according to claim 2, characterized in that: The step of burning the mass production resources of the operating system carried by the root file system to the chip includes: Obtaining a burning content configuration table from the root file system; According to the burning content configuration table, the mass production system image file carried by the root file system is burned into the chip.

5. The method according to claim 4, characterized in that The step of burning the mass production system image file carried by the root file system to the chip according to the burning content configuration table includes: Determine the partition information of the operating system to be burned according to the mass production burning configuration file; According to the partition information and the burning content configuration table, the chip is formatted and partitioned to obtain a corresponding system burning space; The mass production system image file carried by the root file system is burned into the system burning space.

6. The method according to any one of claims 1 to 5, characterized in that The step of determining, in the chip burning system, a burning system support image that matches the operating environment of the chip includes: Determine a plurality of candidate burning system support images in the chip burning system; the plurality of candidate burning system support images correspond to different operation logics respectively; Determine, from the plurality of candidate burning system supported images, the burning system supported image whose operating logic matches the operating environment of the chip; The method of supporting the image startup chip burning system through the burning system includes: The burning system supports mirroring through a burning system boot tool to start the chip burning system.

7. An operating system mass production device, characterized in that: The device comprises: Chip acquisition module, used to obtain the chip to be burned; An image matching module is used to determine, in the chip burning system, a burning system support image that matches the operating environment of the chip when a storage medium carrying the chip burning system is connected to the chip; the chip burning system includes operating system mass production resources corresponding to the operating system to be burned; A mass production startup module, used to support the image startup chip burning system through the burning system; The mass production burning module is used to burn the operating system mass production resources corresponding to the operating system into the chip by using the started chip burning system.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.