CN114115923A - Operating system building method and system - Google Patents

Operating system building method and system Download PDF

Info

Publication number
CN114115923A
CN114115923A CN202111500893.2A CN202111500893A CN114115923A CN 114115923 A CN114115923 A CN 114115923A CN 202111500893 A CN202111500893 A CN 202111500893A CN 114115923 A CN114115923 A CN 114115923A
Authority
CN
China
Prior art keywords
operating system
optimizing
demand information
system architecture
architecture
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.)
Withdrawn
Application number
CN202111500893.2A
Other languages
Chinese (zh)
Inventor
肖赟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202111500893.2A priority Critical patent/CN114115923A/en
Publication of CN114115923A publication Critical patent/CN114115923A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an operating system building method and system, and relates to the technical field of operating systems. The operating system building method determines a system architecture; acquiring demand information; then, cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file; and finally, optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. Therefore, common application and function requirements can be met, higher speed and smaller disk and memory occupation can be realized, higher starting speed and running speed and smaller disk and memory occupation are realized, and a lightweight operating system with strong function integrity, more compact system structure and more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop.

Description

Operating system building method and system
Technical Field
The invention relates to the technical field of operating systems, in particular to an operating system building method and system.
Background
At present, several types of operating systems which are mainstream in the Chinese market are developed for the second time on the basis of a Linux system.
However, a standard, unclipped Linux operating system has many unnecessary drivers, redundant kernel modules, and functions and software packages that are not available in everyday use. The redundancy of the kernel module and the software library causes the real-time performance of the operating system to be poor, the occupied memory to be large and the running speed to be slow.
Disclosure of Invention
The invention aims to provide an operating system building method and an operating system building system, which are used for solving the problems of poor real-time performance, large occupied memory and low running speed of an operating system caused by redundancy of a kernel module and a software library in the prior art.
In a first aspect, an embodiment of the present application provides an operating system building method, which includes the following steps:
determining a system architecture;
acquiring demand information;
cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file;
and optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system.
In the implementation process, the system architecture is determined, and then the demand information is acquired; then, cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file; and finally, optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. The new operating system contains common supporting libraries and software packages, including: general purpose libraries, graphic and font libraries, general purpose tools and system utilities, compression and decompression related libraries and software packages, file system and disk management related software packages, file operator related software packages, network related tools and libraries, graphic and window display related libraries, GCC, Glibc and Python, etc. commonly used in software development. Therefore, the method can meet the requirements of common application and functions, and can realize higher speed and smaller disk and memory occupation. The method has the advantages that the common application and function requirements are met, meanwhile, the starting speed and the running speed are higher, and the occupation of a disk and a memory is smaller, so that a lightweight operating system with strong function integrity, a more compact system structure and a more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop. Including high response, smaller disk and memory usage to meet smooth running on low performance computers, smooth and novel UI interaction design, etc.
Based on the first aspect, in some embodiments of the present invention, the step of performing cutting optimization on a preset Linux operating system according to the requirement information, and generating the kernel file includes the following steps:
and cutting and optimizing the preset Linux operating system by adopting a configuration tool built in the Linux operating system according to the demand information to generate a kernel file.
Based on the first aspect, in some embodiments of the present invention, the step of performing cutting optimization on a preset Linux operating system according to the requirement information, and generating the kernel file includes the following steps:
respectively optimizing a hardware driver, an operation platform and a kernel starting process in a preset Linux operating system according to the requirement information to generate an optimized operating system;
and cutting the functions in the optimized operating system according to the requirement information to generate a kernel file.
Based on the first aspect, in some embodiments of the present invention, the cutting optimization is performed on a preset Linux operating system according to the requirement information, and the step of generating the kernel file further includes the following steps before:
establishing a new hard disk as a working space for establishing an operating system, and establishing a standard partition in the working space;
formatting the standard partition to generate a working partition;
taking the Linux operating system with the selected kernel version as a preset Linux operating system;
and placing a preset Linux operating system in the work partition.
Based on the first aspect, in some embodiments of the present invention, the step of optimizing the configuration file in the system architecture according to the requirement information and the system architecture to build a new operating system includes the following steps:
according to the demand information, a configuration file in a system architecture is built, and an initial operating system is generated;
and optimizing the initial operating system according to the system architecture to generate a new operating system.
Based on the first aspect, in some embodiments of the present invention, building a configuration file in a system architecture according to the requirement information, and the step of generating an initial operating system includes the following steps:
and screening the configuration files in the system architecture according to the demand information, and configuring a support library and a software package to generate an initial operating system.
Based on the first aspect, in some embodiments of the invention, configuring the support library and the software package comprises the steps of:
building a compiling tool chain, a cross tool chain and a temporary tool chain to form a support library;
the compiling kernel and the bootstrap rely on the software package and the basic system using the software package to form the software package.
Based on the first aspect, in some embodiments of the present invention, the step of optimizing the initial operating system according to the system architecture and generating the new operating system includes the steps of:
and establishing an Xfce desktop for the initial operating system according to the system architecture, and generating the system desktop to obtain a new operating system.
Based on the first aspect, in some embodiments of the present invention, the step of building an Xfce desktop for an initial operating system according to a system architecture, and generating a system desktop to obtain a new operating system includes the following steps:
and downloading a plurality of program packages to build an Xfce desktop, and generating a system desktop to obtain a new operating system.
In a second aspect, an embodiment of the present application provides an operating system building system, including:
a system architecture module to determine a system architecture;
the demand information acquisition module is used for acquiring demand information;
the cutting optimization module is used for cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file;
and the system building module is used for optimizing the configuration file in the system architecture according to the demand information and the system architecture so as to build a new operating system.
In the implementation process, the system architecture requirement information is determined through a system architecture module; the acquisition module acquires the demand information; then, the cutting optimization module performs cutting optimization on a preset Linux operating system according to the requirement information to generate a kernel file; and finally, optimizing the configuration file in the system architecture by the system building module according to the demand information and the system architecture so as to build a new operating system. The new operating system contains common supporting libraries and software packages, including: general purpose libraries, graphic and font libraries, general purpose tools and system utilities, compression and decompression related libraries and software packages, file system and disk management related software packages, file operator related software packages, network related tools and libraries, graphic and window display related libraries, GCC, Glibc and Python, etc. commonly used in software development. Therefore, the method can meet the requirements of common application and functions, and can realize higher speed and smaller disk and memory occupation. The method has the advantages that the common application and function requirements are met, meanwhile, the starting speed and the running speed are higher, and the occupation of a disk and a memory is smaller, so that a lightweight operating system with strong function integrity, a more compact system structure and a more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop. Including high response, smaller disk and memory usage to meet smooth running on low performance computers, smooth and novel UI interaction design, etc.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides an operating system building method and system, wherein a system framework is determined, and then demand information is acquired; then, cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file; and finally, optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. The new operating system contains common supporting libraries and software packages, including: general purpose libraries, graphic and font libraries, general purpose tools and system utilities, compression and decompression related libraries and software packages, file system and disk management related software packages, file operator related software packages, network related tools and libraries, graphic and window display related libraries, GCC, Glibc and Python, etc. commonly used in software development. Therefore, the method can meet the requirements of common application and functions, and can realize higher speed and smaller disk and memory occupation. The method has the advantages that the common application and function requirements are met, meanwhile, the starting speed and the running speed are higher, and the occupation of a disk and a memory is smaller, so that a lightweight operating system with strong function integrity, a more compact system structure and a more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop. Including high response, smaller disk and memory usage to meet smooth running on low performance computers, smooth and novel UI interaction design, etc.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of an operating system building method provided by an embodiment of the present invention;
fig. 2 is a main structure diagram of an Xfce desktop according to an embodiment of the present invention;
fig. 3 is a structural block diagram of an operating system building system provided in the embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
FIG. 5 is a diagram of an operating system architecture according to an embodiment of the present invention.
Icon: 110-system architecture module; 120-a demand information acquisition module; 130-a clipping optimization module; 140-a system building module; 101-a memory; 102-a processor; 103-communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Examples
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Referring to fig. 1, fig. 1 is a flowchart of an operating system building method according to an embodiment of the present invention. The operating system building method comprises the following steps:
step S110: determining a system architecture; the above-mentioned system architecture determination means a definite system architecture, which is simplified from top to bottom as follows: a driver (integrated hardware driver), a Linux kernel (different kernel support for different devices), libraries (Linux universal library and cloudnedeleos JS library), a library structure and a framework structure; the system architecture includes configuration files, which refer to software packages of various extensions in the system architecture. Referring to fig. 5, fig. 5 is a diagram illustrating an operating system according to an embodiment of the present invention.
Step S120: acquiring demand information; the requirement information comprises information of a part needing to be cut and optimized for the Linux operating system.
Step S130: cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file; the cutting optimization is to perform all-around cutting and compiling on the Linux kernel through a configuration tool on the basis of not modifying the preset Linux operating system kernel source code to generate a kernel file which supports functions of wifi, bluetooth, touch screen and the like, and has few system initialization processes and low memory occupancy rate.
The cutting optimization can be performed by cutting and optimizing a preset Linux operating system by using a configuration tool built in the Linux operating system to generate a kernel file. The Linux kernel is compiled and customized through a configuration tool provided by the Linux, so that the Linux operating system kernel can be cut in all directions. And executing a make menuconfig command according to the requirement information, and cutting and optimizing the preset Linux operating system by using a configuration tool built in the Linux operating system to generate a kernel file.
The process of cutting optimization comprises the following steps:
firstly, respectively optimizing a hardware driver, an operating platform and a kernel starting process in a preset Linux operating system according to demand information to generate an optimized operating system; the optimization refers to the omnibearing optimization of a hardware driver, the optimization aiming at an operating platform and the optimization of a kernel starting process, and the optimization is carried out according to partial information needing to be optimized in the required information.
And then, cutting the functions in the optimized operating system according to the requirement information to generate a kernel file. The cutting refers to cutting the unusual functions in the kernel of the optimized operating system, and cutting out the unused functional modules.
The method comprises the following steps of cutting and optimizing a preset Linux operating system according to the requirement information, and generating a kernel file, wherein the steps comprise the following steps:
firstly, a new hard disk is used as a working space for constructing an operating system, and a standard partition is established in the working space; creating the standard partition may be creating the standard partition using a fdisk command.
Then, formatting the standard partition to generate a working partition; the formatting may be to format the file using mkfs, in the format ext 4.
Then, the Linux operating system with the selected kernel version is used as a preset Linux operating system; the selected kernel version is a Linux operating system of which the corresponding version is selected according to requirements, for example: the Linux operating system with the kernel version of Linux-5.10.17 can be selected as the preset Linux operating system.
And finally, placing the preset Linux operating system in the work partition. The preset Linux operating system is placed in the work partition so as to facilitate subsequent cutting optimization in the work partition.
Step S140: and optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. The optimization process comprises the following steps:
firstly, setting up a configuration file in a system architecture according to demand information to generate an initial operating system; the building mainly comprises building a frame of the system, and the building process comprises the following steps: and screening the configuration files in the system architecture according to the demand information, and configuring a support library and a software package to generate an initial operating system. The configuration support library and the software package comprise the following steps:
firstly, building a compiling tool chain, a cross tool chain and a temporary tool chain to form a support library; the built compiling tool chain comprises a GUN compiler set GCC, a main C language library Glibc, a standard C + + k library Libstdc + +, a linking and assembling tool Binutils and the like. The cross tool chain building method comprises an executable program generation tool Make, a command interpreter tool Bash, a macro processor M4, a decompression tool Tar/Gzip/xz, a file tool file and the like. The built temporary tool chain comprises a parser generator Bison, an international language support library Gettext, an extraction and report language tool Perl, a Python development environment, a page information tool Texinfo and the like.
In a second step, the compilation kernel and the bootstrap rely on the software package and the basic system usage software package to form the software package. The compiling kernel and bootstrap dependent software package comprises a digital processing tool Bc with any precision, a basic system feature displaying and setting tool Coreutils, a directory tree query creation tool Finnutils, a text mode identifying tool Flex, a file content searching tool Grep, a kernel module loading tool Kmod, an ELF processing tool Libelf, a terminal independent processing character screen program Ncurses, a stream editor Sed and the like. The basic compiling system uses software packages including a power on/off program Sysvini, a user login management program Shadow, network protocol tools Iana-Etc, a basic networking program Inetutils and the like.
And then, optimizing the initial operating system according to the system architecture to generate a new operating system. The optimization comprises the following steps: the optimizing of the initial operating system includes creating a desktop for the initial operating system for the convenience of the user. The mainstream operating system mainly uses the desktop such as Xfce, LXDE, KDE and the like.
We can select Xfce as the target desktop, and the optimization process includes the following steps: and establishing an Xfce desktop for the initial operating system according to the system architecture, and generating the system desktop to obtain a new operating system. Different from the way that other developers take notes and receive all Xfce desktops, in order to enable the desktops to run efficiently and keep the desktops as simple as possible, all software packages are known and selected, the necessary software packages are reserved, optimized software packages are selected, functional redundancy is removed, and the system desktops are obtained through cutting and optimization.
The selected Xfce library comprises: the libXfce4util, the libXfce4util package is a basic utility library for the Xfce desktop environment. The libXfce4ui, libXfce4ui package contains GTK +2 widgets used by other Xfce applications. Xfconf, which is a configuration storage system for Xfce. Exo, a supporting library used by Xfce desktops. It also has some auxiliary applications that are used throughout Xfce. Garcon, Garcon package contains a freedesk top org compatible menu implementation based on GLib and GIO. Xfwm4, Xfwm4 is the window manager for Xfce.
The screened Xfce main application components comprise: xfdesktop, which is a desktop manager for an Xfce desktop environment. Xfdesktop sets the background image/color, creates a right-click menu and window list, and displays the file icons on the desktop using Thunar library. Xfce4Session, Xfce4Session is the Session manager for Xfce. Its task is to save the state of the desktop (the open application and its location) and restore it on the next launch. You can create several different sessions and select one at start-up. The Xfce4Settings, Xfce4Settings package contains a set of programs that are useful for adjusting Xfce preferences. The Xfce4Panel, Xfce4Panel package contains Xfce4 panels. Thunar, which is an Xfce document manager, is a GTK +3GUI for organizing documents on a computer. Xfce4Appfinder, Xfce4Appfinder is a tool that finds and starts an installed application by searching for desktop files installed on the system.
The method comprises the following steps of establishing an Xfce desktop for an initial operating system according to a system architecture, generating the system desktop, and obtaining a new operating system, wherein the steps comprise the following steps: and downloading a plurality of program packages to build an Xfce desktop, and generating a system desktop to obtain a new operating system. The optimized Xfce desktop is simplified as much as possible while the efficient and reliable operation of the system is ensured. The method specifically comprises the following substeps:
1. the libXfce library is downloaded.
2. And downloading the xfconf package and configuring a storage system for the Xfce desktop.
3. Downloading the libXfce4util package configures a basic v utility library for the Xfce desktop.
4. And downloading the Exo package to provide a corresponding auxiliary application program for the Xfce desktop.
5. Downloading the garcon package provides menu implementation for the Xfce desktop.
6. Downloading the thunar package as a file manager of the Xfce desktop.
7. The download Xfce4 appliance implements the functionality to find and launch installed applications.
8. Downloading the Xfce4Panel package provides the Panel for the Xfce desktop.
9. Downloading the Xfce4Settings package provides assistance in adjusting Xfce desktop preferences.
10. And downloading the Xfdesktop packet as a desktop manager of the Xfce desktop.
11. Xfwm4 is downloaded as a window manager for the Xfce desktop.
12. The Xfce4Session package is downloaded as the Session manager for the Xfce desktop.
13. And downloading the libwnck package to provide a Window Navigator construction toolkit for the Xfce desktop. The libwnck package contains a Window Navigator construction toolkit.
Referring to fig. 2, fig. 2 is a main structure diagram of an Xfce desktop according to an embodiment of the present invention. The Xfce desktop includes Glib 2, which contains some underlying libraries that help provide interfaces for C to data structure handling, portability wrappers, and runtime functions (such as event loops, threads, dynamic loads, and object systems), and GTK + 3. GTK +3 contains a library used to create a graphical user interface for an application.
In the implementation process, the system architecture is determined, and then the demand information is acquired; then, cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file; and finally, optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. The new operating system contains common supporting libraries and software packages, including: general purpose libraries, graphic and font libraries, general purpose tools and system utilities, compression and decompression related libraries and software packages, file system and disk management related software packages, file operator related software packages, network related tools and libraries, graphic and window display related libraries, GCC, Glibc and Python, etc. commonly used in software development. Therefore, the method can meet the requirements of common application and functions, and can realize higher speed and smaller disk and memory occupation. The method has the advantages that the common application and function requirements are met, meanwhile, the starting speed and the running speed are higher, and the occupation of a disk and a memory is smaller, so that a lightweight operating system with strong function integrity, a more compact system structure and a more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop. Including high response, smaller disk and memory usage to meet smooth running on low performance computers, smooth and novel UI interaction design, etc.
Wherein:
the Rust programming language is designed to be a secure, concurrent, and practical language. The system needs Rust for constructing JS.
The LLVM package contains a set of modular, reusable compilers and toolchain techniques. A low-level virtual machine (LLVM) core library provides modern source code and target-independent optimizers, as well as code generation support for many popular cpus (and some less common cpus). These libraries are built around a well-specified code representation called LLVM intermediate representation ("LLVMIR").
Clang provides a new C, c + +, objecticc, and objecticc + + front-end for LLVM, which is required for some table breads (e.g., firefox) and rusts built using system LLVM.
JS is a JavaScript engine written by Mozilla in the C language. JS78 was taken from Firefox.
Polkit is a toolkit for defining and handling authorizations. It is used to allow non-privileged processes to communicate with privileged processes. The library of Xorg provides the library functions used in all XWindow applications. D-Bus is a message Bus system and is a simple way for applications to communicate with each other. D-Bus provides a system daemon (for events such as "add new hardware device" or "change printer queue") and a per user login session daemon (for general IPC requirements between user applications). In addition, the message bus is built on top of a common one-to-one messaging framework that any two applications can use to communicate directly (without going through a message bus daemon).
The GdkPixbuf package is a toolkit for image loading and pixel buffer operations. It is used by GTK +2 and GTK +3 to load and manipulate the image. In the past, it was distributed as part of GTK +2, but in preparation for a change to GTK +3, it was split into a single package.
Based on the same inventive concept, the invention further provides an operating system building system, please refer to fig. 3, and fig. 3 is a structural block diagram of the operating system building system provided by the embodiment of the invention. The operating system building system includes:
a system architecture module 110 for determining a system architecture;
a requirement information obtaining module 120, configured to obtain requirement information;
the cutting optimization module 130 is configured to perform cutting optimization on a preset Linux operating system according to the demand information, and generate a kernel file;
and the system building module 140 is configured to optimize the configuration file in the system architecture according to the demand information and the system architecture, so as to build a new operating system.
In the implementation process, the system architecture module 110 determines the system architecture requirement information; the demand information obtaining module 120 obtains demand information; then, the cutting optimization module 130 performs cutting optimization on the preset Linux operating system according to the requirement information to generate a kernel file; finally, the system building module 140 optimizes the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system. The new operating system contains common supporting libraries and software packages, including: general purpose libraries, graphic and font libraries, general purpose tools and system utilities, compression and decompression related libraries and software packages, file system and disk management related software packages, file operator related software packages, network related tools and libraries, graphic and window display related libraries, GCC, Glibc and Python, etc. commonly used in software development. Therefore, the method can meet the requirements of common application and functions, and can realize higher speed and smaller disk and memory occupation. The method has the advantages that the common application and function requirements are met, meanwhile, the starting speed and the running speed are higher, and the occupation of a disk and a memory is smaller, so that a lightweight operating system with strong function integrity, a more compact system structure and a more compact scale is provided for a user. And a perfect experience is provided for a user by customizing the optimized Xface desktop. Including high response, smaller disk and memory usage to meet smooth running on low performance computers, smooth and novel UI interaction design, etc.
Referring to fig. 4, fig. 4 is a schematic structural block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the operating system building system provided in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 101, so as to execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 4 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 4 or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above-described functions, if implemented in the form of software functional modules and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. An operating system building method is characterized by comprising the following steps:
determining a system architecture;
acquiring demand information;
cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file;
and optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system.
2. The operating system building method according to claim 1, wherein the step of cutting and optimizing the preset Linux operating system according to the demand information and generating the kernel file comprises the following steps:
and cutting and optimizing the preset Linux operating system by adopting a configuration tool built in the Linux operating system according to the demand information to generate a kernel file.
3. The operating system building method according to claim 1, wherein the step of cutting and optimizing the preset Linux operating system according to the demand information and generating the kernel file comprises the following steps:
respectively optimizing a hardware driver, an operation platform and a kernel starting process in a preset Linux operating system according to the requirement information to generate an optimized operating system;
and cutting the functions in the optimized operating system according to the requirement information to generate a kernel file.
4. The operating system building method according to claim 1, wherein the step of cutting and optimizing the preset Linux operating system according to the demand information and generating the kernel file further comprises the following steps before:
establishing a new hard disk as a working space for establishing an operating system, and establishing a standard partition in the working space;
formatting the standard partition to generate a working partition;
taking the Linux operating system with the selected kernel version as a preset Linux operating system;
and placing a preset Linux operating system in the work partition.
5. The operating system building method according to claim 1, wherein the step of optimizing the configuration file in the system architecture according to the demand information and the system architecture to build a new operating system comprises the steps of:
according to the demand information, a configuration file in a system architecture is built, and an initial operating system is generated;
and optimizing the initial operating system according to the system architecture to generate a new operating system.
6. The operating system building method according to claim 5, wherein the building of the configuration file in the system architecture according to the demand information and the step of generating the initial operating system comprise the following steps:
and screening the configuration files in the system architecture according to the demand information, and configuring a support library and a software package to generate an initial operating system.
7. The operating system building method according to claim 6, wherein the configuration support library and the software package include the steps of:
building a compiling tool chain, a cross tool chain and a temporary tool chain to form a support library;
the compiling kernel and the bootstrap rely on the software package and the basic system using the software package to form the software package.
8. The operating system building method according to claim 5, wherein the step of optimizing the initial operating system according to the system architecture and generating a new operating system comprises the steps of:
and establishing an Xfce desktop for the initial operating system according to the system architecture, and generating the system desktop to obtain a new operating system.
9. The operating system building method according to claim 8, wherein the step of building an Xfce desktop for an initial operating system according to a system architecture, and generating a system desktop to obtain a new operating system comprises the following steps:
and downloading a plurality of program packages to build an Xfce desktop, and generating a system desktop to obtain a new operating system.
10. An operating system building system, comprising:
a system architecture module to determine a system architecture;
the demand information acquisition module is used for acquiring demand information;
the cutting optimization module is used for cutting and optimizing a preset Linux operating system according to the requirement information to generate a kernel file;
and the system building module is used for optimizing the configuration file in the system architecture according to the demand information and the system architecture so as to build a new operating system.
CN202111500893.2A 2021-12-09 2021-12-09 Operating system building method and system Withdrawn CN114115923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111500893.2A CN114115923A (en) 2021-12-09 2021-12-09 Operating system building method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111500893.2A CN114115923A (en) 2021-12-09 2021-12-09 Operating system building method and system

Publications (1)

Publication Number Publication Date
CN114115923A true CN114115923A (en) 2022-03-01

Family

ID=80363817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111500893.2A Withdrawn CN114115923A (en) 2021-12-09 2021-12-09 Operating system building method and system

Country Status (1)

Country Link
CN (1) CN114115923A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489605A (en) * 2022-03-15 2022-05-13 浙江云针信息科技有限公司 Window view display method of cloud operating system
CN115190084A (en) * 2022-09-08 2022-10-14 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module
CN116541066A (en) * 2023-06-14 2023-08-04 飞腾信息技术有限公司 Software system construction method, device, equipment and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489605A (en) * 2022-03-15 2022-05-13 浙江云针信息科技有限公司 Window view display method of cloud operating system
CN115190084A (en) * 2022-09-08 2022-10-14 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module
CN115190084B (en) * 2022-09-08 2022-12-13 中国电子科技集团公司第十五研究所 Method and system for starting Ethernet switching module
CN116541066A (en) * 2023-06-14 2023-08-04 飞腾信息技术有限公司 Software system construction method, device, equipment and computer readable storage medium
CN116541066B (en) * 2023-06-14 2023-10-13 飞腾信息技术有限公司 Software system construction method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10254848B2 (en) Cross-platform data visualizations using common descriptions
US9934005B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
CN114115923A (en) Operating system building method and system
US7721254B2 (en) Programming interface for a computer platform
US7992128B2 (en) Computer software adaptation method and system
US8935623B1 (en) Automatic API generation to functional PSoC blocks
US11677807B2 (en) System and method to standardize and improve implementation efficiency of user interface content
US6826758B1 (en) Method and system for accessing operating system resources
CN114706616A (en) Applet construction method and device
CN110764864A (en) Terraform-based visual resource arrangement method
US9141352B2 (en) Dynamically building locale objects at run-time
US10394529B2 (en) Development platform of mobile native applications
CN113535175A (en) Application program front-end code generation method and device, electronic equipment and medium
CN111158684B (en) System creation method, device, electronic equipment and readable storage medium
US20070124686A1 (en) Locating graphical elements for an object
KR20200022254A (en) Apparatus and method for configuration of os based on self-defined definition
CN114296694A (en) Generation method and loading method of small program
CN115981721A (en) Software function configuration method and device, electronic equipment, storage medium and vehicle
CN118484180A (en) System development method, device, equipment and storage medium
US9778917B2 (en) Dynamically building subsections of locale objects at run-time
CN118605872A (en) Terminal interface automatic generation method, device, computer equipment and medium
CN114691131A (en) Frame code file generation method and device for user interface UI file
CN118377559A (en) Page display method, wearable electronic device and readable storage medium
CN117290036A (en) Window view switching method and device of quantum EDA online tool 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220301

WW01 Invention patent application withdrawn after publication