System installation method and related apparatus, device and storage medium

By detecting the storage formatting status during the preset boot phase of Zynq platform devices and directly copying or transferring system files, the complex system installation problem in the prior art is solved, and an efficient system installation process is achieved.

CN114816451BActive Publication Date: 2026-02-06HEBI TIANHAI ELECTRONICS INFORMATION SYST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210389741.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2026-02-06
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

Existing Zynq platform device system installation methods are complex and inefficient, requiring the pre-installation of small systems or kernels on the device for complete system installation.

Method used

During the preset startup phase, the system checks whether the target storage is formatted. If it is formatted, the system files are directly copied from the temporary storage to the target storage, simplifying the operation steps; or the system files are transferred to the temporary storage via the data interface, improving installation efficiency.

Benefits of technology

The system installation process has been simplified, installation efficiency has been improved, and operational complexity has been reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816451B_ABST
    Figure CN114816451B_ABST
Patent Text Reader

Abstract

The application discloses a system installation method and related devices, equipment and storage media, the method is applied to the Zynq platform device, and the method comprises the steps that whether the target memory has been formatted is detected in a preset starting stage;In response to the target memory having been formatted, the system file stored in the system file temporary storage is copied to the target memory, so that the Zynq platform device can start the system running by the Zynq platform by using the system file stored in the target memory.The above scheme can improve the installation efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic equipment technology, and in particular to a system installation method and related apparatus, devices and storage media. Background Technology

[0002] The Zynq platform is a scalable processing platform that includes a central processing unit and a field-programmable gate array (FPGA). The superior performance of the Zynq platform has led to the widespread application of Zynq platform devices across various industries.

[0003] For Zynq platform devices, existing system installation methods, whether through the Joint Test Action Group (JTAG) interface or via USB boot, require pre-installing a small system or kernel capable of performing a full system installation on the Zynq platform device. This process is complex and inefficient.

[0004] Therefore, improving the efficiency of system installation methods is of great significance. Summary of the Invention

[0005] This application provides a system installation method and related devices, equipment and storage media.

[0006] The first aspect of this application provides a system installation method based on the Zynq platform. The method is applied to a Zynq platform device and includes: during a preset boot phase, detecting whether the target storage has been formatted; in response to the target storage being formatted, copying system files stored in a temporary system file storage to the target storage, so that the Zynq platform device can use the system files stored in the target storage to boot a system running on the Zynq platform.

[0007] Therefore, during the preset startup phase, after detecting that the target storage has been formatted, the system files stored in the temporary system file storage are directly copied to the target storage. This enables the Zynq platform device to subsequently use the system files stored in the target storage to start the system running on the Zynq platform, thus realizing system installation, simplifying the operation steps, and improving system installation efficiency.

[0008] The second aspect of this application provides a system installation method based on the Zynq platform. The method is applied to a host device and includes: setting the boot mode of the Zynq platform device to an interface boot mode; transmitting a preset boot file to the boot file storage of the Zynq platform device through a data interface; and transmitting system files to the system file temporary storage of the Zynq platform device after the Zynq platform device boots based on the preset boot file.

[0009] Therefore, by directly using the Zynq platform device data interface to transfer system files to the Zynq platform device's temporary system file storage, the Zynq platform device can subsequently use the system files to install the system.

[0010] A third aspect of this application provides an apparatus based on the Zynq platform, the apparatus comprising: a detection module and a copying module, wherein the detection module is used to detect whether a target memory has been formatted during a preset startup phase; and when the detection module detects that the target memory has been formatted, the copying module is used to copy system files stored in a system file temporary storage to the target memory, so that the Zynq platform device can start the system using the system files stored in the target memory.

[0011] A fourth aspect of this application provides an electronic device including a processor and a memory coupled to each other, wherein the processor is configured to execute a computer program stored in the memory to perform the method described in the first aspect above, or the method described in the second aspect above.

[0012] A fourth aspect of this application provides a computer-readable storage medium storing a computer program executable by a processor, the computer program being used to implement the method described in the first aspect above, or the method described in the second aspect above.

[0013] The above solution, during the preset startup phase, after detecting that the target storage has been formatted, directly copies the system files stored in the system file temporary storage to the target storage. This enables the Zynq platform device to subsequently use the system files stored in the target storage to boot the system running on the Zynq platform, thus realizing system installation, simplifying the operation steps, and improving system installation efficiency. Attached Figure Description

[0014] Figure 1 This is a schematic flowchart of an embodiment of the system installation method based on the Zynq platform of this application;

[0015] Figure 2 This is a schematic flowchart of another embodiment of the system installation method based on the Zynq platform in this application;

[0016] Figure 3 This is a flowchart illustrating yet another embodiment of the system installation method based on the Zynq platform in this application;

[0017] Figure 4 This is a schematic diagram of the framework of a device embodiment based on the Zynq platform in this application;

[0018] Figure 5 This is a schematic diagram of the framework of an embodiment of the host device of this application;

[0019] Figure 6 This is a schematic diagram of the framework of an embodiment of the electronic device of this application;

[0020] Figure 7 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0021] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0022] In this application, the device that performs the system installation method based on the Zynq platform is referred to as a Zynq platform device. A Zynq platform device can be considered as an electronic device that utilizes the Zynq platform. Specifically, a Zynq platform device can be a communication device, such as a walkie-talkie or a communication base station, or it can be a vehicle-mounted computer, etc.

[0023] The following describes the system installation method based on the Zynq platform of this application with reference to specific embodiments.

[0024] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the system installation method based on the Zynq platform according to this application. The system installation method based on the Zynq platform includes the following steps:

[0025] Step S11: In the preset startup phase, detect whether the target memory has been formatted.

[0026] In one implementation, the preset boot phase can be any boot phase that a Zynq platform device needs to go through during startup, such as the first-stage boot loader phase and the second-stage boot loader phase, or the phase in which the Linux kernel and file system are booted by U-Boot (Universal Boot Loader). The first-stage boot loader phase can be considered the phase in which the Zynq platform device runs the first-stage boot loader (FSBL), and the second-stage boot loader phase can be considered the phase in which the Zynq platform device runs the second-stage boot loader (SSBL). In a specific implementation, the preset boot phase can be the first-stage boot loader phase.

[0027] In one embodiment, the target memory can be an eMMC (Embedded Multi Media Card) memory, a Secure Digital Memory Card (SD card), or other memory commonly used in the art. In a specific embodiment, the target memory is an eMMC.

[0028] Detecting whether the target memory has been formatted can be achieved using methods commonly used in the field, which will not be elaborated here.

[0029] In response to the fact that the target memory has been formatted, step S12 can be executed.

[0030] Step S12: Copy the system file stored in the system file temporary storage to the target storage, so that the Zynq platform device can use the system file stored in the target storage to start the system running on the Zynq platform.

[0031] Because the target memory has been formatted, system files can be stored within it. This allows Zynq platform devices to boot a system running on the Zynq platform using the system files stored in the target memory. The system running on the Zynq platform is, for example, an embedded operating system, such as embedded Linux.

[0032] Specifically, system files can be transferred by copying them from a temporary system file storage device to the target storage device. This temporary system file storage device can be, for example, the memory of a Zynq platform device, such as Double Data Rate (DDR).

[0033] In one specific implementation, system files may include image files (boot.bin), image files (Image), FPGA-related files (fpga.bin), application configuration files (APP.set), and other related files. This application does not limit the specific content of system files.

[0034] In one specific implementation, when the preset startup phase is the first stage boot loading phase, the above steps can be achieved by executing the FSBL program. For example, relevant content can be added to the FSBL program to achieve the above steps.

[0035] Therefore, during the preset startup phase, after detecting that the target storage has been formatted, the system files stored in the temporary system file storage are directly copied to the target storage. This enables the Zynq platform device to subsequently use the system files stored in the target storage to start the system running on the Zynq platform, thus realizing system installation, simplifying the operation steps, and improving system installation efficiency.

[0036] Please continue reading. Figure 1 In this application, in response to the target memory not being formatted, step S13 can be performed: formatting the target memory. Since the target memory is not formatted, system files cannot be stored in it. Therefore, the target memory can be formatted to enable it to store system files. The method for formatting the target memory can be a method commonly used in the art, such as formatting the target memory using formatting software, which will not be elaborated here.

[0037] The method of formatting the target memory can continue to execute the above step S12 to achieve system installation on the Zynq platform.

[0038] In one embodiment, before performing the step "detecting whether the target memory has been formatted during the preset startup phase" described above, the step of entering the preset startup phase based on the preset startup file stored in the startup file storage can also be performed. In this embodiment, the preset startup file is transferred to the startup file storage of the Zynq platform device via a host device.

[0039] The host device can be a device connected to the Zynq platform, such as a computer. Specifically, the host device can be connected via the Zynq platform's data interface to transfer system files. The data interface can be, for example, a Universal Serial Bus (USB), and the specific interface type can be USB Type-A, USB Micro B, USB Type-C, etc., without limitation. Preset boot files can be, for example, FSBL or SSBL programs.

[0040] In one implementation, the host device may use a Device Firmware Update (DFU) tool to transfer a preset boot file to the boot file storage of the Zynq platform device. In a specific implementation, the boot file storage is, for example, on-chip RAM (OCM). Specifically, after the Zynq platform device powers on, the host device can transfer the preset boot file to the boot file storage of the Zynq platform device, thereby transferring the preset boot file. This allows the Zynq platform device to subsequently enter the preset boot stage based on the preset boot file stored in the boot file storage, and then perform subsequent system installation.

[0041] In one embodiment, after performing the above step "entering the preset startup stage based on the preset startup file stored in the startup file storage", the following step can be further performed: starting the data interface of the Zynq platform device, so that the host device can transfer the system file to the system file temporary storage through the data interface.

[0042] In this application, the processor that runs the preset startup file is, for example, the configuration security unit (CSU). That is, after the CSU runs the preset startup file, the Zynq platform device can be considered to be in the preset startup phase.

[0043] In this application, after entering the preset startup stage based on the preset startup file stored in the startup file storage, the data interface of the Zynq platform device can be further activated, enabling the host device to transfer system files to the system file temporary storage via the data interface. Activating the Zynq platform device's data interface can be considered as configuring the data interface to enable data transfer, thereby allowing the host device to transfer system files to the system file temporary storage. Specifically, the host device can use a DFU tool to transfer system files to the system file temporary storage. In one embodiment, the data interface is USB, which leverages the high transfer rate of USB to improve the system file transfer speed, thus helping to accelerate the installation speed of the Zynq platform device.

[0044] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the system installation method based on the Zynq platform according to this application. In this embodiment, the step "formatting the target memory" includes:

[0045] Step S21: Perform a partitioning operation on the target memory.

[0046] The specific methods for operating the target memory can be those commonly used in the art, and will not be elaborated here. For example, it could be a partitioning operation on the eMMC, dividing the eMMC into several partitions.

[0047] Step S22: Format the target storage and configure the first partition of the target storage as a file configuration table file system.

[0048] After partitioning the target storage, it can be formatted, and the first partition can be configured as a File Allocation Table (FAT) file system, so that the target storage can be used to store system files.

[0049] Therefore, by partitioning and formatting the target storage, the first partition of the target storage is configured as a file configuration table, so that the target storage can be used to store system files, thereby enabling subsequent system installation.

[0050] Please see Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the system installation method based on the Zynq platform according to this application. The system installation method based on the Zynq platform in this embodiment is applied to a host device. In this embodiment, the system installation method based on the Zynq platform includes steps S31 and S32.

[0051] Step S31: Transfer the preset boot file to the boot file storage of the Zynq platform device through the data interface of the Zynq platform device.

[0052] Before executing step S31, the boot mode of the Zynq platform device can be set to interface boot mode, such as USB boot mode. The specific setting method can be a method commonly used in the art and will not be elaborated here. Furthermore, the host device can be connected to the Zynq platform device via the Zynq platform device's data interface, such as through the Zynq platform device's USB interface.

[0053] In this embodiment, a preset startup file can be transmitted to the startup file storage of the Zynq platform device through the data interface of the Zynq platform device, so that the Zynq platform can use the preset startup file to enter the preset startup stage.

[0054] Step S32: After the Zynq platform device starts based on the preset startup file, the system file is transferred to the Zynq platform device's system file temporary storage via the data interface.

[0055] In this embodiment, after the Zynq platform device starts based on the preset startup file, it will further configure the data interface to start the data interface, so that the data interface can transfer larger file data than the preset startup file, such as system files.

[0056] After the host device detects that the data interface has started, it can transfer system files to the system file temporary storage of the Zynq platform device through the data interface. This allows for the complete transfer of system files to the Zynq platform device in one go, improving the system installation efficiency of the Zynq platform device. In one implementation, after the Zynq platform device starts based on a preset boot file, it will also configure the system file temporary storage to store system files. For example, the Zynq platform device may configure the DDR memory so that the DDR memory can store system files.

[0057] In one implementation, the data interface is, for example, USB. In this case, the system files are transferred to the system file temporary storage of the Zynq platform device via USB. This utilizes the high transfer rate of USB to speed up the transfer of system files and helps to improve the efficiency of system installation.

[0058] Please see Figure 4 , Figure 4This is a schematic diagram of the framework of an embodiment of the device based on the Zynq platform according to this application. In this embodiment, the Zynq platform-based device 40 includes a detection module 41 and a copy module 42. The detection module 41 is used to detect whether the target memory has been formatted during a preset startup phase; when the detection module 41 detects that the target memory has been formatted, the copy module 42 is used to copy the system files stored in the system file temporary storage to the target memory, so that the Zynq platform device can start the system using the system files stored in the target memory.

[0059] In this embodiment, the Zynq platform-based device 40 further includes a first startup module. Before the detection module 41 detects whether the target memory has been formatted during the preset startup phase, the first startup module is used to enter the preset startup phase based on the preset startup file stored in the startup file storage. The preset startup file is transmitted to the startup file storage of the Zynq platform device through the host device.

[0060] In this embodiment, the Zynq platform-based device 40 further includes a second startup module. After the first startup module is used to enter the preset startup stage based on the preset startup file stored in the startup file storage, the second startup module is used to start the data interface of the Zynq platform device, so that the host device can transfer the system file to the system file temporary storage through the data interface.

[0061] Among them, the aforementioned preset startup stage is the first stage boot loading stage, the aforementioned target memory is eMMC memory, the aforementioned system file temporary memory is RAM, the aforementioned boot file memory is on-chip RAM, the aforementioned preset boot file is the first stage boot loader, and the aforementioned data interface is Universal Serial Bus.

[0062] In this embodiment, the Zynq-based device 40 further includes a formatting module. When the detection module 41 detects that the target memory has not been formatted, the formatting module is used to format the target memory so that the copying module 42 can copy the system files stored in the system file temporary storage to the target memory, enabling the Zynq platform device to start the system using the system files stored in the target memory.

[0063] The formatting module is used to format the target storage, including: partitioning the target storage; formatting the target storage, and configuring the first partition of the target storage as a file configuration table file system.

[0064] Please see Figure 5 , Figure 5This is a schematic diagram of the framework of an embodiment of the host device of this application. In this embodiment, the host device 50 includes a first transmission module 51 and a second transmission module 52, wherein the first transmission module 51 is used to transmit a preset startup file to the startup file storage of the Zynq platform device through a data interface; the second transmission module 52 is used to transmit system files to the temporary system file storage of the Zynq platform device through a data interface after the Zynq platform device starts based on the preset startup file.

[0065] Please see Figure 6 , Figure 6 This is a schematic diagram of the framework of an embodiment of the electronic device of this application. The electronic device 60 includes a memory 61 and a processor 62 coupled to each other. The processor 62 is used to execute program instructions stored in the memory 61 to implement the steps of any of the above-described embodiments of the system installation method based on the Zynq platform. In a specific implementation scenario, the electronic device 60 may include, but is not limited to, a microcomputer or a server. Furthermore, the electronic device 60 may also include mobile devices such as laptops and tablets, without limitation. In this embodiment, the memory 61 may be the target memory chip or a memory other than the target memory chip.

[0066] Specifically, processor 62 controls itself and memory 61 to implement the steps of any of the above-described embodiments of the system installation method based on the Zynq platform. Processor 62 may also be referred to as a CPU (Central Processing Unit). Processor 62 may be an integrated circuit chip with signal processing capabilities. Processor 62 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 62 may be implemented using integrated circuit chips.

[0067] Please see Figure 7 , Figure 7 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 70 stores program instructions 71 that can be executed by a processor. The program instructions 71 are used to implement the steps of any of the above-described embodiments of the system installation method based on the Zynq platform.

[0068] The above solution, during the preset startup phase, after detecting that the target storage has been formatted, directly copies the system files stored in the system file temporary storage to the target storage. This enables the Zynq platform device to subsequently use the system files stored in the target storage to boot the system running on the Zynq platform, thus realizing system installation, simplifying the operation steps, and improving system installation efficiency.

[0069] In the several embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection of apparatuses or units, and may be electrical, mechanical, or other forms.

[0070] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0071] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0072] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0073] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A system installation method based on Zynq platform, characterized in that, The method is applied to a Zynq platform device, and the method comprises: entering a preset startup stage based on a preset startup file stored in a startup file storage, wherein the preset startup file is transmitted to the startup file storage of the Zynq platform device by an upper device, the preset startup stage is a first-stage boot loader stage, and the preset startup file is a first-stage boot loader; the first-stage boot loader is configured to perform the following steps in the preset startup stage: detecting whether a target storage has been formatted, wherein the target storage is an eMMC storage; in response to the target storage not being formatted, formatting the target storage; in response to the target storage having been formatted, copying system files stored in a system file temporary storage to the target storage, so that the Zynq platform device can start an embedded operating system running with the Zynq platform by using the system files stored in the target storage, wherein the system files comprise image files, image files, fpga-related files and application configuration files; the method for formatting the target storage comprises: partitioning the target storage; formatting the target storage and configuring a first partition obtained by partitioning as a file configuration table file system.

2. The method of claim 1, wherein, After the entering of the preset startup stage based on the preset startup file stored in the startup file storage, the method further comprises: starting a data interface of the Zynq platform device, so that the upper device can transmit the system files to the system file temporary storage through the data interface.

3. The method of claim 2, wherein, The system file temporary storage is a memory, the startup file storage is an on-chip memory, and the data interface is a universal serial bus.

4. A method for installing a system based on a Zynq platform, characterized in that, The method is applied to an upper device, and the method comprises: transmitting a preset startup file to a startup file storage of a Zynq platform device through a data interface of the Zynq platform device, wherein the Zynq platform device enters a preset startup stage based on the preset startup file, the preset startup stage is a first-stage boot loader stage, and the preset startup file is a first-stage boot loader; after the Zynq platform device is started based on the preset startup file, transmitting system files to a system file temporary storage of the Zynq platform device through the data interface. The first-stage bootloader is configured to perform the following steps in the preset booting stage: detecting whether the target memory has been formatted, the target memory being an eMMC memory; in response to the target memory not being formatted, formatting the target memory, wherein the formatting of the target memory includes partitioning the target memory, formatting the target memory, and configuring a first partition obtained by the partitioning as a file configuration table file system; and in response to the target memory having been formatted, copying system files stored in a system file temporary memory to the target memory, so that the Zynq platform device can start an embedded operating system running with the Zynq platform by using the system files stored in the target memory, wherein the system files include an image file, an image file, an fpga-related file, and an application configuration file.

5. A Zynq platform based device, characterized in that, Comprise: A first booting module is configured to enter a preset booting stage based on a preset booting file stored in a booting file memory, wherein the preset booting file is a booting file transmitted to the booting file memory of the Zynq platform device by an upper device, the preset booting stage is a first-stage booting stage, and the preset booting file is a first-stage bootloader; the first-stage bootloader is configured to realize a system installation function in the preset booting stage; A detection module is configured to detect whether a target memory has been formatted in the preset booting stage, the target memory being an eMMC memory; A formatting module is configured to format the target memory; the formatting of the target memory includes partitioning the target memory, formatting the target memory, and configuring a first partition of the target memory as a file configuration table file system; A copying module is configured to copy system files stored in a system file temporary memory to the target memory in response to the detection module detecting that the target memory has been formatted, so that the Zynq platform device can start an embedded operating system running with the Zynq platform by using the system files stored in the target memory, wherein the system files include an image file, an image file, an fpga-related file, and an application configuration file.

6. An electronic device, comprising: Comprise a processor and a memory coupled to each other, wherein The processor is configured to execute a computer program stored in the memory to perform the method of any one of claims 1 to 3, or the method of claim 4.

7. A computer readable storage medium characterized in that, The memory stores a computer program capable of being executed by the processor, and the computer program is configured to implement the method of any one of claims 1 to 3, or the method of claim 4.

Citation Information

Patent Citations

  • ZYNQ program solidification method based on USB

    CN111273936A

  • Zynq safe starting system and method based on external storage

    CN114064131A