CN116594640A - RISC-V oriented extensible segmentation automatic mirror image construction technology - Google Patents
RISC-V oriented extensible segmentation automatic mirror image construction technology Download PDFInfo
- Publication number
- CN116594640A CN116594640A CN202310406709.0A CN202310406709A CN116594640A CN 116594640 A CN116594640 A CN 116594640A CN 202310406709 A CN202310406709 A CN 202310406709A CN 116594640 A CN116594640 A CN 116594640A
- Authority
- CN
- China
- Prior art keywords
- image
- mirror image
- mirror
- risc
- partition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to an expandable segmentation automatic mirror image construction technology facing RISC-V, which comprises the following steps: constructing an empty img image in a computer, dividing the image into four partitions of p1, p2, p3 and p4, and formatting the four partitions; entering a mirror image through a color, setting a software source in the mirror image according to the type of a system and applicable hardware, installing a corresponding kernel in the mirror image, and performing corresponding starting configuration; setting default languages, fonts, networks and users of the mirror images according to the system types, and installing needed desktop, display and common application software packages; after the color is exited, deleting the history of the command in the image, and copying boot loader files related to the starting in the image to the p1 partition and the p2 partition of the image respectively. The invention can construct the Linux system mirror image suitable for different RISC-V hardware, and has better applicability. And the image construction of the segmentation automation can be realized, and the image construction efficiency can be effectively improved.
Description
Technical Field
The invention relates to the technical field of image construction, in particular to an expandable segmentation automatic image construction technology oriented to RISC-V.
Background
CPU and operating system are the most basic and core technologies in the credit industry, and China has been limited in these two technological directions in the past. With the development of the credit and trauma industry, excellent domestic operating systems such as kylin systems and the like have been independently developed in China at present, and the problem that the operating system direction is limited by people is solved to a certain extent. In the direction of CPU, the current main CPU architecture is x86 and arm, which are both closed sources and are monopolized by foreign companies, and the longarch architecture independently developed in China also has the problems of weaker performance, slower development and imperfect ecology, so that a CPU architecture with unlimited technology and strong performance is needed in China.
RISC-V is an open-source, modularized, safe and reliable instruction set architecture, which is developed rapidly under the cooperation of open-source developers worldwide, and is now the third mainstream CPU architecture after x86 and arm. The domestic credit industry selects RISC-V as the powerful development direction of domestic CPU, and at present, there are multiple companies developing RISC-V architecture CPU and computer, such as five, alzhanggo, sai technology, etc. It is an important task to build a Linux system image suitable for RISC-V hardware.
The RISC-V architecture has just started and attracts many developers, and the hardware interfaces of the RISC-V development board computers on the market are not uniform, so that a Linux system image cannot be adapted to all RISC-V hardware devices, and the configuration of Linux kernels, starting and other parts in the image needs to be modified for normal use.
The current image of the RISC-V architecture cannot be installed by using a common optical disk iso mode, and can only be installed by using an img image mode, so that the image of the RISC-V architecture cannot be directly built through an iso image building platform, and the img image of the RISC-V architecture can only be built by a manual building mode. The method for manually constructing the mirror image has the problems of low construction speed, high technical capability requirement on constructors and suitability of the constructed mirror image for a certain RISC-V hardware device.
There is a need for a technique that can expand the mirror image accordingly and automatically construct the mirror image to solve the above-mentioned problems. The technology can quickly construct images applicable to different RISC-V hardware devices and different system types.
The invention relates to a method, a device, equipment and a medium for constructing a disk mirror image of a virtual machine (application number 201911121547.6), which constructs the mirror image of the virtual machine through a dock container.
The invention relates to a method for automatically generating a mirror image environment (application number CN 115408102A), which downloads a linux system mirror image or a windows system mirror image, makes a new mirror image environment on the basis of the original mirror image after downloading, and automatically uploads the mirror image to a docker warehouse or an open source warehouse after finishing making.
The invention relates to a method and a system for constructing a Linux system mirror image and a Linux system mirror image (application number CN 109614117A), wherein a Linux system starting part is manually constructed in the mirror image, a root file system is stored in the Linux system starting part, a Linux system running part is constructed in the mirror image, and then the Linux system starting part and the running part are packaged to generate a system mirror image file.
The invention relates to a system mirror image construction method, a system, a computing device and a storage medium (application number CN 112114834A), which are manually executed in a control end, wherein the control end is connected with a plurality of execution ends, receives mirror image customization instructions of users and creates a mirror image customization interface; receiving mirror image customization information of a user through the mirror image customization interface; generating a mirror image customizing task according to the mirror image customizing information; inserting the mirror image customization task into a customization task list so that the execution end obtains the corresponding mirror image customization task and constructs a target mirror image; and receiving the state attribute of the mirror image customization task returned by the execution end, and updating the state attribute into the customization task list.
Korean patent No. A SECURED LINUX OPERATIONG SYSTEM USING MULTI-LEVEL SECURITY (application No. KR101414580B 1) differently performs access restriction according to the user LEVEL among kernel LEVELs of the Linux operating system. There is provided an arrangement comprising: the access control unit, the reference monitoring unit, the kernel mode encryption unit and the real-time monitoring unit can overcome the limitation of application program level security measures provided on an open Linux operating system.
Japanese patent application No. LINUX PROGRAM START-UP SYSTEM (application No. JP 2010282645A) provides a Linux program starting SYSTEM for reliably determining a user area corresponding to a kernel in an embedded device having a redundant configuration.
Korean patent No. APPARATUS AND METHOD FOR CONFIGURING LINUX KERNEL AND APPLICATION PROGRAM (application No. KR20060063270 a) provides an apparatus and method for integrally configuring Linux kernel and application program, which can manually configure Linux kernel configuration files, system configuration files, and converted application program configuration files in a Linux system image for an embedded device.
However, none of the above techniques relate to RISC-V oriented scalable segmentation automation image construction techniques.
Disclosure of Invention
In order to solve the defects existing in the prior art, the invention provides an expandable segmentation automation mirror image construction technology facing RISC-V, which comprises the following steps:
step S1: constructing an empty img image in a computer, dividing the image into four partitions of p1, p2, p3 and p4, and formatting the four partitions;
step S2: entering a mirror image through a color, setting a software source in the mirror image according to the type of a system and applicable hardware, installing a corresponding kernel in the mirror image, and performing corresponding starting configuration;
step S3: setting default languages, fonts, networks and users of the mirror images according to the system types, and installing needed desktop, display and common application software packages;
step S4: after the color is exited, deleting the history of the command in the image, and copying boot loader files related to the starting in the image to the p1 partition and the p2 partition of the image respectively.
In the step S1, p1 is used for storing a bin binary file of the boot loader, and p2 is used for storing a itb equipment tree file of the boot loader; p3 is a boot partition for storing boot configuration files of the kernel and boot loader; p4 is a rootfs partition to store various software packages and configuration files in the system.
In the step S1, the mirror image is set as the circulation device, and in the step S4, the mirror image is off-load and the circulation device is canceled.
The expandable segmentation automatic mirror image construction technology facing RISC-V can construct a Linux system mirror image suitable for different RISC-V hardware, and has better applicability. And the image construction of the segmentation automation can be realized, and the image construction efficiency can be effectively improved.
Drawings
Fig. 1: the invention discloses an implementation logic diagram of an expandable segmentation automation mirror image construction technology facing RISC-V.
Detailed Description
In order to further understand the technical scheme and beneficial effects of the present invention, the technical scheme and beneficial effects thereof will be described in detail with reference to the accompanying drawings.
In order to solve the technical problems, the invention provides an expandable segmentation automatic mirror image construction technology for RISC-V, a script for constructing a mirror image is compiled, and the script is operated when a Linux mirror image is constructed so as to automatically construct the mirror image. And configuring the kernel, the starting and other parts in the mirror image according to the types of the hardware devices in the script to construct the mirror image applicable to different hardware devices. Therefore, the problem that the existing Linux mirror image cannot be adapted to all hardware devices and cannot be automatically constructed is solved.
FIG. 1 is a logic diagram for implementing the scalable segmentation automation image construction technique for RISC-V of the present invention, namely, a logic diagram for executing a written construction image script: according to the method, three scripts are written, in the process of constructing the mirror image by running the scripts, the versions of five deb packets of the Linux kernel in the mirror image are selected according to hardware to be adapted to the mirror image, and the versions are installed in the mirror image. Boot loaders of different hardware, such as grub and u-boot, are then configured. The present invention has now supported the mirror image construction of two RISC-V development board computers, namely the five-unmatched computer of five corporation and the vision five development board of science and technology corporation. Constructing a mirror image applicable to a hive-unmatched computer, and installing a 5.11.0 version of kernel deb packet in a source in the mirror image; the 5.18.0 version of kernel deb package provided by the company is installed in the mirror image when constructing the mirror image suitable for the vision five development board. Further, according to the type of the system to be constructed, the software source, the software package version and the software package list in the mirror image are configured correspondingly. The invention supports the construction of the image of the kylin system and the image of the openKylin system at present.
Therefore, because the process of image construction needs to enter an image by the color and the software package and the configuration file in the image are set, and the complete automation of the construction process can not be realized, the invention provides a segmentation automatic image construction technology, and particularly, the three scripts written by the invention have the following specific realization logic in the process of realizing the image construction:
1. running a script in a computer, automatically constructing an empty img image, dividing the image into four partitions of p1, p2, p3 and p4, formatting the four partitions, and setting the formats and names of the four partitions. p1 is used for storing the bin binary file of the boot loader, and p2 is used for storing the itb equipment tree file of the boot loader; p3 is a boot partition for storing boot configuration files of the kernel and boot loader; p4 is a rootfs partition to store various software packages and configuration files in the system. Setting the mirror image as circulation equipment, mounting two partitions of p3 and p4 in the mirror image in a system, and constructing a root file system of a Linux foundation in the mirror image through a debranching.
2. Entering into the image through the color, running a script in the image, automatically setting a software source in the image according to the type of the system and applicable hardware (such as an official software source for an openKylin system, and the same applies for an excellent kylin system), installing a corresponding kernel (such as a kernel of an applicable high-non-matched computer or a visible) in the image, and performing corresponding starting configuration (such as configuration for starting related u-boot and extrinux. Conf for the high-five-non-matched computer; and starting related grub. Cfg for the visible computer). And setting default languages, fonts, networks, users and the like of the mirror images according to the system types, and installing needed software packages such as desktops, displays, common applications and the like.
3. After the color is exited, running a script, automatically deleting the history of the command in the image, and copying the files of boot loader related to the starting in the image to the p1 partition and the p2 partition of the image respectively. The mirror image is off-load and the recycling device is removed. This completes the piecewise automated construction of the mirror image.
In the present invention, the term "RISC-V" refers to the RISC-V instruction set architecture.
The invention has the following technical effects:
1. the invention can automatically construct the Linux system mirror image applicable to various RISC-V hardware;
2. the invention can automatically construct the Linux system mirror image applicable to various system types;
3. the invention improves the construction efficiency of the Linux system mirror image suitable for RISC-V hardware;
4. the invention has low technical level requirements on personnel and is more widely applicable.
Although the present invention has been described with reference to the above preferred embodiments, it should be understood that the present invention is not limited to the above embodiments, and that various changes and modifications can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (3)
1. The expandable segmentation automatic mirror image construction technology oriented to RISC-V is characterized by comprising the following steps:
step S1: constructing an empty img image in a computer, dividing the image into four partitions of p1, p2, p3 and p4, and formatting the four partitions;
step S2: entering a mirror image through a color, setting a software source in the mirror image according to the type of a system and applicable hardware, installing a corresponding kernel in the mirror image, and performing corresponding starting configuration;
step S3: setting default languages, fonts, networks and users of the mirror images according to the system types, and installing needed desktop, display and common application software packages;
step S4: after the color is exited, deleting the history of the command in the image, and copying boot loader files related to the starting in the image to the p1 partition and the p2 partition of the image respectively.
2. The scalable segmentation automation mirror construction technique for RISC-V according to claim 1, wherein in the step S1, p1 is used for storing a bin binary file of a boot loader, and p2 is used for storing a itb device tree file of the boot loader; p3 is a boot partition for storing boot configuration files of the kernel and boot loader; p4 is a rootfs partition to store various software packages and configuration files in the system.
3. The scalable segmentation automation mirror construction technique for RISC-V according to claim 1, wherein in the step S1, the mirror is set as a loop device, and in the step S4, the mirror is off-load and the loop device is off-set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310406709.0A CN116594640A (en) | 2023-04-17 | 2023-04-17 | RISC-V oriented extensible segmentation automatic mirror image construction technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310406709.0A CN116594640A (en) | 2023-04-17 | 2023-04-17 | RISC-V oriented extensible segmentation automatic mirror image construction technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116594640A true CN116594640A (en) | 2023-08-15 |
Family
ID=87599812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310406709.0A Pending CN116594640A (en) | 2023-04-17 | 2023-04-17 | RISC-V oriented extensible segmentation automatic mirror image construction technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116594640A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117075957A (en) * | 2023-10-16 | 2023-11-17 | 先进计算与关键软件(信创)海河实验室 | Multi-RISC-V platform-oriented general Linux operating system mirror image design method |
CN118245073A (en) * | 2024-05-21 | 2024-06-25 | 先进计算与关键软件(信创)海河实验室 | Unified Linux operating system mirror image design method and device for multi-RISC-V platform |
-
2023
- 2023-04-17 CN CN202310406709.0A patent/CN116594640A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117075957A (en) * | 2023-10-16 | 2023-11-17 | 先进计算与关键软件(信创)海河实验室 | Multi-RISC-V platform-oriented general Linux operating system mirror image design method |
CN118245073A (en) * | 2024-05-21 | 2024-06-25 | 先进计算与关键软件(信创)海河实验室 | Unified Linux operating system mirror image design method and device for multi-RISC-V platform |
CN118245073B (en) * | 2024-05-21 | 2025-04-08 | 先进计算与关键软件(信创)海河实验室 | Unified Linux operating system mirror image design method and device for multi-RISC-V platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107577475B (en) | Software package management method and system of data center cluster system | |
US7631301B2 (en) | Customizing binary content files | |
US8286154B2 (en) | Apparatus and method for live loading of version upgrades in a process control environment | |
CN104603750B (en) | Software application is laid out and performs using BPRAM | |
US20100205604A1 (en) | Systems and methods for efficiently running multiple instances of multiple applications | |
CN102402427B (en) | A kind of update method of java application and device | |
CN110532098B (en) | Method and system for providing GPU (graphics processing Unit) service | |
CN104583948B (en) | Operating system is laid out and performs using BPRAM | |
CN108089888B (en) | It is a kind of that operation method and system are applied based on file system | |
CN116594640A (en) | RISC-V oriented extensible segmentation automatic mirror image construction technology | |
CN113986395B (en) | Packaging method for application-dependent self-contained technology under linux system | |
US11068243B2 (en) | Application stack builder based on node features | |
CN111209087B (en) | Docker-based big data learning platform building method | |
CN111459606A (en) | Method for quickly creating virtual machine under virtualization and server | |
CN115421740A (en) | Deployment method and device for cloud-native applications | |
CN114588638A (en) | Method for developing game based on Lua language and program development device | |
CN102023857A (en) | ServiceOS-based multi-platform application program service management method and system | |
CN114416031A (en) | Operating system for supporting RISC-V processor facing AIoT scene | |
US20240152779A1 (en) | Apparatus and method for sharing augmented intelligence model of containerized artificial intelligence module | |
US20230168996A1 (en) | Testing continuous integration and continuous deployment (ci/cd) pipeline | |
CN116594644A (en) | Android system-based application program hot update method and device | |
CN113590221A (en) | Method and device for detecting number of shader variants, electronic equipment and storage medium | |
GB2379292A (en) | Data processing in a system that has plural processes with dependencies | |
US20240427585A1 (en) | Building an operating system with an automation system | |
CN113703920B (en) | Hardware simulation method and platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |