CN117389578A - Cloud terminal system upgrading method and device, cloud terminal and storage medium - Google Patents

Cloud terminal system upgrading method and device, cloud terminal and storage medium Download PDF

Info

Publication number
CN117389578A
CN117389578A CN202210794121.2A CN202210794121A CN117389578A CN 117389578 A CN117389578 A CN 117389578A CN 202210794121 A CN202210794121 A CN 202210794121A CN 117389578 A CN117389578 A CN 117389578A
Authority
CN
China
Prior art keywords
target
operating system
upgrade
guide
preset
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
Application number
CN202210794121.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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202210794121.2A priority Critical patent/CN117389578A/en
Priority to PCT/CN2023/098570 priority patent/WO2024007800A1/en
Publication of CN117389578A publication Critical patent/CN117389578A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The application relates to a cloud terminal system upgrading method, a cloud terminal system upgrading device, a cloud terminal and a storage medium, wherein the method comprises the following steps: receiving an upgrade instruction sent by a preset management system, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of the operating system running currently and the preset target system; after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters; starting system upgrade based on configured upgrade guide configuration parameters in a preset guide system which is entered after restarting, decompressing a system image to a target partition which is formatted, and determining a corresponding system guide file; and running the system boot file, and upgrading the currently running operating system to the target operating system based on the decompressed system image. By the method and the device, the problem that the cloud terminal cannot realize remote cross-system upgrading is solved.

Description

Cloud terminal system upgrading method and device, cloud terminal and storage medium
Technical Field
The present disclosure relates to the field of cloud terminal systems, and in particular, to a method and apparatus for upgrading a cloud terminal system, a cloud terminal, and a storage medium.
Background
In the related art, the cloud terminal is preloaded with a corresponding operating system after production is completed, but in a subsequent application process, the operating system of the cloud terminal is upgraded as required, for example: upgrading the current operating system, and switching the current operating system, for example: switching the Linux operating system to a wes operating system; in the related art, in the use process of the cloud terminal, the system upgrade of the operating system can only upgrade the current operating system, and when other operating systems need to be switched, operation and maintenance personnel can only use the USB flash disk brush machine or use the PXE brush machine to finish operation and maintenance personnel, so that the cross-system upgrade can not be realized remotely, the workload of the operation and maintenance personnel is increased, and the user experience is poor.
Aiming at the problem that the cloud terminal in the related technology cannot realize remote cross-system upgrade, no effective solution exists yet.
Disclosure of Invention
The application provides a cloud terminal system upgrading method, a cloud terminal system upgrading device, a cloud terminal and a storage medium, and aims to at least solve the problem that a cloud terminal in related technologies cannot realize remote cross-system upgrading.
In a first aspect, the present application provides a cloud terminal system upgrade method, including: receiving an upgrade instruction sent by a preset management system, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of an operating system running currently and a preset target system; after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters; starting system upgrade in a preset guide system which is entered after restarting based on the configured upgrade guide configuration parameters so as to decompress the system image to a target partition which is formatted, and determining a corresponding system guide file; and operating the system guide file, and upgrading the currently operated operating system to the target operating system based on the decompressed system image.
In a second aspect, the present application provides a cloud terminal system upgrade apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an upgrade instruction sent by a preset management system, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of an operating system running at present and a preset target system;
the configuration module is used for carrying out configuration of upgrading guide configuration parameters based on the system parameters after downloading the system image corresponding to the target operating system in a preset downloading mode;
the upgrade module is used for starting system upgrade based on the configured upgrade guide configuration parameters in a preset guide system which is restarted, decompressing the system image to a target partition which is formatted, and determining a corresponding system guide file;
and the processing module is used for running the system guide file and upgrading the currently running operating system to the target operating system based on the decompressed system image.
In a third aspect, a cloud terminal is provided, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the cloud terminal system upgrading method according to any one of the embodiments of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored, which when being executed by a processor, implements the steps of the cloud terminal system upgrade method according to any one of the embodiments of the first aspect.
Compared with the related art, the embodiment of the application provides a cloud terminal system upgrading method, a cloud terminal system upgrading device, a cloud terminal and a storage medium, wherein an upgrading instruction sent by a preset management system is received, the upgrading instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of the operating system running currently and the preset target system; after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters; starting system upgrade in a preset guide system which is entered after restarting based on the configured upgrade guide configuration parameters so as to decompress the system image to a target partition which is formatted, and determining a corresponding system guide file; the system guide file is operated, the currently operated operating system is updated to the target operating system based on the decompressed system image, the problem that the cloud terminal cannot realize remote cross-system updating is solved, the purposes that the cloud terminal can be switched to the operating system while the current operating system can be updated and maintained normally and the cross-system updating can be realized remotely are achieved, the workload of operation and maintenance personnel is reduced, the user perception of system updating is avoided, and the user experience is improved are achieved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a cloud terminal system upgrading method provided in an embodiment of the present application;
FIG. 2 is a timing diagram of a cloud end system upgrade in a preferred embodiment of the present application;
FIG. 3 is a flow chart of a system upgrade in a preferred embodiment of the present application;
FIG. 4 is a schematic diagram of disk partitioning in an embodiment of the present application;
fig. 5 is a block diagram of a cloud terminal system upgrade apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud terminal according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The techniques of multiple operating system boot program grub, file (initram file system, initrimfs) system, disk management, etc. related in the embodiments of the present application may be used for conventional Legcay boot and extensible hardware interface (Unified Extensible Firmware Interface, UEFI) boot in input and output systems (Basic Input Output System, BISO).
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a flow chart of a cloud terminal system upgrading method provided in an embodiment of the present application. As shown in fig. 1, an embodiment of the present application provides a cloud terminal system upgrade method, which includes the following steps:
step S101, an upgrade instruction sent by a preset management system is received, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of an operating system running currently and a preset target system.
In the embodiment of the application, the upgrade instruction issued by the preset management system is issued to the cloud terminal capable of presetting the management system (for example, the server), and the upgrade instruction is used for indicating the corresponding cloud terminal to upgrade the operating system expected to upgrade.
In the embodiment of the present application, the target operating system may be an operating system currently operated by the cloud terminal, for example: the Linux system may also be an operating system that is expected to be upgraded, that is, a preset target system, for example: wes system; when the target operating system to be upgraded is the operating system currently running, the corresponding upgrade is to update the operating system, for example: upgrading from the first generation to the second generation; when the target operating system to be upgraded is a preset target system, the corresponding upgrade is to switch the operating system of the cloud terminal, for example: switching the Linux system to a Wes system; it should be noted that, whether the operating system is updated or replaced, only one operating system is running on the cloud terminal after the system is updated, and no dual system exists.
Step S102, after downloading the system image corresponding to the target operating system according to the preset downloading mode, the configuration of upgrading the boot configuration parameters is carried out based on the system parameters.
In the embodiment of the application, the issued upgrade instruction carries parameters such as a download address and a system type corresponding to the target operating system image, and after the cloud terminal receives the upgrade instruction, the download of the operating system image is performed according to the download address carried by the upgrade instruction; in the embodiment of the application, when the cloud terminal downloads the system image corresponding to the target operating system, a corresponding downloading mode, namely one of preset downloading modes, is determined according to the disk capacity of storable data of a current disk of the cloud terminal; in this embodiment of the present application, the preset downloading manner may be silent downloading or network file system (Network File System, abbreviated as NFS) mounting.
In this embodiment of the present application, after the cloud terminal downloads the system image corresponding to the target operating system, corresponding upgrade guiding configuration parameters are configured according to the system type corresponding to the target operating system carried in the upgrade instruction, for example: a grub bootstrap menu is configured, and at the same time, matched bootstrap configuration parameters are configured according to different system types, for example: when the target operating system is a Linux system, the corresponding grub bootstrap menu is a bootstrap menu corresponding to the Linux system; user configuration parameters are backed up in configuring upgrade boot configuration parameters, for example: configuring a network; it should be noted that, in the embodiment of the present application, the user configuration parameter is a parameter related to external interaction performed by the target operating system, and is a parameter unrelated to system upgrade, and when the system boot file generated after the upgrade is performed, the user configuration parameter is correspondingly started, so that the operating system can normally perform and interact with the outside after the upgrade is performed, for example: the cloud terminal performs wireless network connection based on the backed-up user configuration parameters; in the embodiment of the application, after the upgrade guidance configuration parameters are configured, the system of the cloud terminal is restarted to start the upgrade process of the operating system.
Step S103, in the preset guiding system entered after restarting, based on the configured upgrade guiding configuration parameters, starting the system upgrade to decompress the system image to the target partition which is formatted, and determining the corresponding system guiding file.
In the embodiment of the application, after the cloud terminal is restarted, a guiding system for system upgrading is entered, which can also be called as a small system, and then an upgrading flow is started under the small system according to upgrading guiding configuration parameters; after the upgrade process is entered, the network configuration determined according to the backed-up user configuration parameters is restored, and the content of the formatted partition and the system file and data corresponding to the decompressed system image are transferred to the target partition, that is, the partition of the formatted partition content.
In the embodiment of the present application, the formatted target partition corresponds to a partition in which a corresponding target operating system is installed, for example: the target operating system to be upgraded is a system of type A, the corresponding target partition is a corresponding main partition which is preset to be allocated, and after the system image is decompressed, the decompressed file is stored or stored in the partition; in this embodiment of the present application, at least the same number of partitions as the expected target operating system types are configured on the disk of the cloud terminal, and meanwhile, a system Boot file Boot partition is also set, where a menu list file of an operating system corresponding to the system type is stored in the partition, for example: the MENU_LNX.LST and MENU_WIN.LST, and the disk is also configured to Reserve a Reserve partition; in the embodiment of the present application, the partition of the disk of the cloud terminal may be shown with reference to fig. 4, but is not represented as a limitation on the partition of the disk of the cloud terminal in the embodiment of the present application.
In this embodiment of the present application, after decompressing the system image to the corresponding target partition, the relevant system boot file configured in the configuration process of the upgrade boot configuration parameter is used as the system boot file for booting the upgrade of the operating system, that is, the corresponding system boot file is determined and configured from the upgrade boot configuration parameter, and of course, the system boot file is determined and configured based on the corresponding system parameter carried in the received upgrade instruction, that is, the operating system of what system type the corresponding target operating system to be upgraded is, and the corresponding matched system boot file is configured.
And step S104, running the system boot file, and upgrading the currently running operating system to the target operating system based on the decompressed system image.
In the embodiment of the application, after completing the system image reduction, recovering the corresponding user configuration parameters and determining the corresponding system guide file, the cloud terminal can perform the operation system upgrade according to the content corresponding to the normal guide system image after the system image decompression of the determined system guide file until the target operation system upgrade is completed, and after completing the target operation system upgrade, restarting the system, and then running the target operation system to perform related services.
Through the steps S101 to S104, an upgrade instruction sent by a preset management system is received, where the upgrade instruction carries a system parameter representing a target operating system to be upgraded, and the target operating system is one of an operating system currently running and a preset target system; after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters; starting system upgrade based on configured upgrade guide configuration parameters in a preset guide system which is entered after restarting, decompressing a system image to a target partition which is formatted, and determining a corresponding system guide file; the system guide file is operated, the currently operated operating system is upgraded to the target operating system based on the decompressed system image, the problem that the cloud terminal cannot realize remote cross-system upgrade is solved, the cloud terminal can be switched to operate the system while the current operating system can be normally updated and maintained, the cross-system upgrade is realized remotely, the workload of operation and maintenance personnel is reduced, the user is prevented from perceiving the system upgrade, and the user experience is improved.
In some embodiments, the preset downloading mode at least includes silent downloading, and the downloading of the system image corresponding to the target operating system according to the preset downloading mode is implemented by the following steps:
step 21, determining the capacity of the free storage space of the current disk capable of storing data, and judging whether the capacity of the free storage space is larger than a preset threshold, wherein the storage space with the capacity being the preset threshold at least can store the system mirror image.
In the embodiment of the present application, before receiving an upgrade instruction for upgrading an expected operating system issued by a preset management platform and downloading a system image of a corresponding operating system, the cloud terminal needs to determine a disk capacity available for a current disk of the cloud terminal, that is, a disk space corresponding to an idle storage space capable of storing data, and if the disk space corresponding to the idle storage space is enough, the cloud terminal correspondingly downloads the data in a silent downloading manner.
And step 22, downloading the system image corresponding to the target operating system in a silent downloading mode under the condition that the capacity of the idle storage space is larger than a preset threshold value.
Determining the capacity of an idle storage space capable of storing data of the current magnetic disk and judging whether the capacity of the idle storage space is larger than a preset threshold, wherein the storage space with the capacity being the preset threshold at least can store the system mirror image; and under the condition that the capacity of the free storage space is larger than the preset threshold value, downloading the system image corresponding to the target operating system in a silent downloading mode, so that the downloading of the corresponding system image when the disk space of the cloud terminal is sufficient is realized, and the effective upgrading of the cloud terminal operating system is ensured.
In some embodiments, the preset downloading mode includes silent downloading and network file system NFS mounting, and the downloading of the system image corresponding to the target operating system according to the preset downloading mode is implemented by the following steps:
step 31, determining the capacity of the free storage space of the current disk capable of storing data, and judging whether the capacity of the free storage space is larger than a preset threshold, wherein the storage space with the capacity being the preset threshold at least can store the system mirror image.
In the embodiment of the present application, before receiving an upgrade instruction for upgrading an expected operating system issued by a preset management platform and downloading a system image of a corresponding operating system, the cloud terminal needs to determine a disk capacity available for a current disk of the cloud terminal, that is, a disk space corresponding to an idle storage space capable of storing data, and if the disk space corresponding to the idle storage space is enough, the cloud terminal correspondingly downloads the data in a silent downloading manner.
And step 32, downloading the system image corresponding to the target operating system in a silent downloading mode under the condition that the capacity of the idle storage space is larger than a preset threshold value.
And step 33, downloading a system image corresponding to the target operating system in an NFS mounting mode under the condition that the capacity of the free storage space is not larger than a preset threshold value.
In the embodiment of the application, if the disk space corresponding to the free storage space is insufficient, downloading is correspondingly performed by adopting the NFS mounting mode, so that the cloud terminal with insufficient disk space is ensured to realize the upgrading of the operating system.
Determining the capacity of an idle storage space capable of storing data of the current magnetic disk and judging whether the capacity of the idle storage space is larger than a preset threshold, wherein the storage space with the capacity being the preset threshold at least can store the system mirror image; under the condition that the capacity of the free storage space is larger than a preset threshold value, downloading a system image corresponding to the target operating system in a silent downloading mode; and under the condition that the capacity of the free storage space is not larger than a preset threshold value, downloading a system image corresponding to the target operating system in an NFS mounting mode, selecting different downloading modes based on the size of the disk space of the cloud terminal, ensuring that different cloud terminals can realize upgrading of the cross-system operating system, and improving user experience.
In some of these embodiments, the configuration of the upgrade boot configuration parameters is performed based on system parameters by:
and step 41, detecting the system type corresponding to the target operating system from the system parameters.
In the present embodiment, the system types include, but are not limited to, linux system types and Wes system types.
And 42, screening a target guide program corresponding to the system type in a preset guide program, and configuring a target guide file corresponding to the target guide program, wherein the upgrade guide configuration parameters comprise the target guide program and the target guide file.
In some optional embodiments, the preset bootstrap program is a multi-operating system startup program grub menu matched with a corresponding system type, and the corresponding grub menu is used for guiding the cloud terminal to perform content formatting of a corresponding partition and decompressing the content corresponding to the system image to the target partition.
In the embodiment of the application, after the system type of the pair is determined, the corresponding target bootstrap program is correspondingly determined; in the embodiment of the present application, the target operating system that is expected to be upgraded in the partition corresponding to the cloud terminal is configured with a corresponding bootstrap program, for example: when the target operating system is Wes, the boot program configured for the target operating system is a boot program for a system upgrade that matches Wes.
Detecting the system type corresponding to the target operating system from the system parameters in the steps; screening a target guide program corresponding to the system type in a preset guide program, and configuring a target guide file corresponding to the target guide program, wherein the upgrade guide configuration parameters comprise the target guide program and the target guide file, so that the accurate configuration of the upgrade guide configuration parameters is realized, the effectiveness in a corresponding operating system is improved, the occurrence of failure of upgrading the cloud terminal across systems is avoided, and the efficiency of upgrading the cloud terminal across systems is improved.
In some embodiments, after the configuration of the target boot file corresponding to the target boot program in step 42, the following steps are further implemented:
and 51, acquiring user configuration parameters corresponding to the current operating system, wherein the user configuration parameters are used for parameters required by external interaction of the cloud terminal.
And 52, backing up the user configuration parameters, and taking the user configuration parameters as parameters required by external interaction when the target operating system runs.
Acquiring user configuration parameters corresponding to the current operating system through the steps, wherein the user configuration parameters are used for parameters required by external interaction of the cloud terminal; and backing up the user configuration parameters, taking the user configuration parameters as parameters required by external interaction when the target operating system runs, and backing up the user configuration parameters, so that the user configuration parameters can be quickly recovered after the system image of the corresponding operating system is decompressed, and the cloud terminal can perform related service running.
In some embodiments, based on the configured upgrade boot configuration parameters, a system upgrade is started to decompress the system image to a target partition that is formatted, and a corresponding system boot file is determined, by:
and step 61, formatting a preset target partition by utilizing a target bootstrap program, and guiding the system image to be decompressed to the target partition so as to at least obtain a server configuration KS file corresponding to the target operating system.
Step 62, starting user configuration parameters, and updating the target guide file corresponding to the target guide program into the system guide file.
In the embodiment of the application, after the KS file is decompressed, the user configuration parameter is restored and the user configuration parameter is switched to the corresponding system boot file, and then the system boot file is used for booting, and the operating system is updated based on the KS file.
Fig. 2 is a timing diagram of a cloud terminal system upgrade in a preferred embodiment of the present application, and referring to fig. 2, a method for upgrading a cloud terminal system provided in a preferred embodiment of the present application includes the following steps:
step 201, a preset management system issues an upgrade instruction.
In the embodiment of the application, the management system is based on a target operating system which can be issued by a cloud terminal of a nano tube and is expected to be upgraded at will, and parameters such as a system image address, a system type and the like are carried in an upgrade instruction.
Step 202, downloading an operating system image.
In the embodiment of the application, the cloud terminal downloads according to whether the current disk storage space of the cloud terminal is enough or not in a silent downloading or NFS mounting mode, wherein the NFS mounting system carries out catalogue.
And 203, configuring a guide partition grub menu and backup user configuration according to the system type of the operating system in the issued upgrading instruction, and restarting the cloud terminal.
And 204, after restarting the system, carrying out small system and formatting partition, and entering a corresponding system upgrading mirror image flow according to the type of the system.
Step 205, switching to the corresponding system boot configuration, and booting the system normally according to the current system boot file.
And 206, recovering configuration after the system upgrading is completed, and normally starting the cloud terminal.
FIG. 3 is a flow chart of a system upgrade in a preferred embodiment of the present application, in some alternative implementations, referring to FIG. 3, entering a corresponding system upgrade image flow according to system type in step 204, includes the steps of:
step S301, entering a preset guidance system, and then executing step S302.
Step S302, temporary root file system initrd is loaded, and then step S303 is executed.
Step S303, judging the system type of the read configuration parameters, and then executing step S304 and step S305 respectively.
Step S304, determining that the read configuration parameters are of Linux type, and then executing step S306.
Step S305, determining that the read configuration parameter is wes type, and then executing step S307.
Step S306, formatting the partition, decompressing the Linux mirror file, and then executing step S308
Step S307, the partition is formatted, the image file is decompressed wes, and then step S308 is executed.
Step S308, restoring the user configuration parameters, and then, executing step S309.
Step S309, the corresponding system boot file is switched, and then step S310 is executed.
Step S310, restarting and entering the main system.
The embodiment of the application also provides a cloud terminal system upgrading device, which is used for realizing the embodiment and the preferred embodiment, and the description is omitted. The terms "module," "unit," "sub-unit," and the like as used below may refer to a combination of software and/or hardware that performs a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 5 is a block diagram of a cloud terminal system upgrade apparatus provided in an embodiment of the present application, and as shown in fig. 5, the apparatus includes:
the receiving module 51 is configured to receive an upgrade instruction sent by a preset management system, where the upgrade instruction carries a system parameter that characterizes a target operating system to be upgraded, and the target operating system is one of an operating system currently running and a preset target system;
the configuration module 52 is coupled to the receiving module 51, and is configured to perform configuration of the upgrade boot configuration parameters based on the system parameters after downloading the system image corresponding to the target operating system in a preset downloading manner;
the upgrade module 53 is coupled to the configuration module 52, and is configured to start a system upgrade based on the configured upgrade boot configuration parameters in the preset boot system that is restarted, so as to decompress the system image to the target partition that is formatted, and determine a corresponding system boot file;
and the processing module 54 is coupled with the upgrading module 53 and is used for running the system boot file and upgrading the currently running operating system to the target operating system based on the decompressed system image.
According to the cloud terminal system upgrading device, an upgrading instruction sent by a preset management system is received, the upgrading instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of a currently running operating system and a preset target system; after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters; starting system upgrade based on configured upgrade guide configuration parameters in a preset guide system which is entered after restarting, decompressing a system image to a target partition which is formatted, and determining a corresponding system guide file; the system guide file is operated, the currently operated operating system is upgraded to the target operating system based on the decompressed system image, the problem that the cloud terminal cannot realize remote cross-system upgrade is solved, the cloud terminal can be switched to operate the system while the current operating system can be normally updated and maintained, the cross-system upgrade is realized remotely, the workload of operation and maintenance personnel is reduced, the user is prevented from perceiving the system upgrade, and the user experience is improved.
In some embodiments, the preset downloading manner at least includes silent downloading, and the configuration module 52 is further configured to determine a capacity of an idle storage space where the current disk may store data, and determine whether the capacity of the idle storage space is greater than a preset threshold, where the storage space with the capacity being the preset threshold is at least capable of storing a system image; and under the condition that the capacity of the free storage space is larger than a preset threshold value, downloading the system image corresponding to the target operating system in a silent downloading mode.
In some embodiments, the preset downloading manner further includes network file system NFS mounting, and the configuration module 52 is further configured to, after determining whether the capacity of the free storage space is greater than the preset threshold, download, by using the NFS mounting manner, a system image corresponding to the target operating system if it is determined that the capacity of the free storage space is not greater than the preset threshold.
In some embodiments, the configuration module 52 is further configured to detect a system type corresponding to the target operating system from the system parameters; screening a target guide program corresponding to the system type in a preset guide program, and configuring a target guide file corresponding to the target guide program, wherein the upgrade guide configuration parameters comprise the target guide program and the target guide file.
In some embodiments, after configuring the target boot file corresponding to the target boot program, the device is further configured to obtain a user configuration parameter corresponding to the current operating system, where the user configuration parameter is a parameter required by the cloud terminal for external interaction; and backing up the user configuration parameters, and taking the user configuration parameters as parameters required by external interaction when the target operating system runs.
In some embodiments, the upgrade module 53 is further configured to format a preset target partition by using a target boot program, and guide the system image to decompress to the target partition, so as to at least obtain a server configuration KS file corresponding to the target operating system; and starting the user configuration parameters, and updating the target guide file corresponding to the target guide program into the system guide file.
Fig. 6 is a schematic structural diagram of a cloud terminal according to an embodiment of the present application, as shown in fig. 6, the embodiment of the present application provides a cloud terminal, which includes a processor 61, a communication interface 62, a memory 63, and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 complete communication with each other through the communication bus 64,
a memory 63 for storing a computer program;
processor 61 is configured to implement the method steps of fig. 1 when executing programs stored on memory 63.
The technical effects brought by the implementation of the method steps in fig. 1 by the processing in the cloud terminal are consistent with those brought by the implementation of the cloud terminal system upgrading method in fig. 1 in the above embodiment, and are not described herein again.
The communication bus mentioned by the cloud terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, the computer program implementing the steps of the cloud terminal system upgrading method provided in any one of the foregoing method embodiments when being executed by a processor.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps of the cloud terminal system upgrade method of any of the above embodiments.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The cloud terminal system upgrading method is characterized by comprising the following steps of:
receiving an upgrade instruction sent by a preset management system, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of an operating system running currently and a preset target system;
after downloading the system image corresponding to the target operating system according to a preset downloading mode, carrying out configuration of upgrading guide configuration parameters based on the system parameters;
starting system upgrade in a preset guide system which is entered after restarting based on the configured upgrade guide configuration parameters so as to decompress the system image to a target partition which is formatted, and determining a corresponding system guide file;
and operating the system guide file, and upgrading the currently operated operating system to the target operating system based on the decompressed system image.
2. The method of claim 1, wherein the preset downloading mode at least includes silent downloading, and downloading the system image corresponding to the target operating system according to the preset downloading mode includes:
determining the capacity of an idle storage space capable of storing data of a current magnetic disk, and judging whether the capacity of the idle storage space is larger than a preset threshold, wherein the storage space with the capacity being the preset threshold at least can store the system mirror image;
and downloading the system image corresponding to the target operating system in the silent downloading mode under the condition that the capacity of the free storage space is larger than the preset threshold value.
3. The method according to claim 2, wherein the preset download manner further comprises network file system NFS mount, and after determining whether the capacity of the free storage space is greater than a preset threshold, the method comprises:
and downloading the system image corresponding to the target operating system in the NFS mounting mode under the condition that the capacity of the free storage space is not larger than the preset threshold value.
4. The method of claim 1, wherein configuring upgrade boot configuration parameters based on the system parameters comprises:
detecting a system type corresponding to the target operating system from the system parameters;
screening a target guide program corresponding to the system type in a preset guide program, and configuring a target guide file corresponding to the target guide program, wherein the upgrade guide configuration parameters comprise the target guide program and the target guide file.
5. The method of claim 4, wherein the boot program comprises a multi-operating system boot program grub menu.
6. The method of claim 5, wherein after configuring the target boot file corresponding to the target boot program, the method further comprises:
acquiring user configuration parameters corresponding to a current operating system, wherein the user configuration parameters are used for parameters required by external interaction of the cloud terminal;
and backing up the user configuration parameters, and taking the user configuration parameters as parameters required by external interaction when the target operating system runs.
7. The method of claim 6, wherein initiating a system upgrade to decompress the system image to a target partition that completes formatting and to determine a corresponding system boot file based on the upgrade boot configuration parameters of the configuration, comprises:
formatting the preset target partition by using the target bootstrap program, and guiding the system image to be decompressed to the target partition so as to at least obtain a server configuration KS file corresponding to the target operating system;
and starting the user configuration parameters, and updating the target guide file corresponding to the target guide program into the system guide file.
8. The cloud terminal system upgrading device is characterized by comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an upgrade instruction sent by a preset management system, wherein the upgrade instruction carries system parameters representing a target operating system to be upgraded, and the target operating system is one of an operating system running at present and a preset target system;
the configuration module is used for carrying out configuration of upgrading guide configuration parameters based on the system parameters after downloading the system image corresponding to the target operating system in a preset downloading mode;
the upgrade module is used for starting system upgrade based on the configured upgrade guide configuration parameters in the preset guide system after restarting, decompressing the system image to a target partition which is formatted, and generating a system guide file;
and the processing module is used for running the system guide file so as to upgrade the currently running operating system to the target operating system.
9. The cloud terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
the processor is configured to implement the steps of the cloud terminal system upgrade method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the cloud terminal system upgrade method according to any one of claims 1-7.
CN202210794121.2A 2022-07-05 2022-07-05 Cloud terminal system upgrading method and device, cloud terminal and storage medium Pending CN117389578A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210794121.2A CN117389578A (en) 2022-07-05 2022-07-05 Cloud terminal system upgrading method and device, cloud terminal and storage medium
PCT/CN2023/098570 WO2024007800A1 (en) 2022-07-05 2023-06-06 Cloud terminal system upgrade method and apparatus, and cloud terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210794121.2A CN117389578A (en) 2022-07-05 2022-07-05 Cloud terminal system upgrading method and device, cloud terminal and storage medium

Publications (1)

Publication Number Publication Date
CN117389578A true CN117389578A (en) 2024-01-12

Family

ID=89454139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210794121.2A Pending CN117389578A (en) 2022-07-05 2022-07-05 Cloud terminal system upgrading method and device, cloud terminal and storage medium

Country Status (2)

Country Link
CN (1) CN117389578A (en)
WO (1) WO2024007800A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117687703A (en) * 2024-01-31 2024-03-12 苏州元脑智能科技有限公司 Method, device and system for starting server, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577563A (en) * 2017-09-26 2018-01-12 晶晨半导体(上海)股份有限公司 A kind of guard method of system upgrade abnormal power-down and terminal device
US11526808B2 (en) * 2019-05-29 2022-12-13 The Board Of Trustees Of The Leland Stanford Junior University Machine learning based generation of ontology for structural and functional mapping
CN112416411B (en) * 2019-08-23 2023-08-18 百度在线网络技术(北京)有限公司 Upgrading method and device, equipment end, server and computer readable medium
CN114124698B (en) * 2021-08-24 2024-07-16 国电南瑞南京控制***有限公司 Upgrading method, device and system of power distribution automation terminal operating system based on cloud master station
CN113934445A (en) * 2021-11-04 2022-01-14 中科可控信息产业有限公司 Equipment firmware upgrading system, method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117687703A (en) * 2024-01-31 2024-03-12 苏州元脑智能科技有限公司 Method, device and system for starting server, storage medium and electronic equipment
CN117687703B (en) * 2024-01-31 2024-04-12 苏州元脑智能科技有限公司 Method, device and system for starting server, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2024007800A1 (en) 2024-01-11

Similar Documents

Publication Publication Date Title
US10002054B2 (en) Method and system for performing automatic system recovery
CN106020875B (en) Firmware update management method and device of embedded terminal
CN109840096B (en) Installation method and device of operating system
EP2076834A1 (en) Program upgrade system and method for ota-capable mobile terminal
CN107291481B (en) Component updating method, device and system
CN103781057A (en) Method and device for silently downloading upgrade package
CN112631625B (en) System upgrading method and device for embedded equipment and embedded equipment
CN103106083B (en) A kind of loading method of firmware and device
US5987625A (en) Method and apparatus for testing network bootable devices
CN109413497B (en) Intelligent television and system starting method thereof
WO2022188690A1 (en) Method and apparatus for upgrading electronic device
CN106775873B (en) Method and equipment for updating mobile phone software and acquiring patch file
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN117389578A (en) Cloud terminal system upgrading method and device, cloud terminal and storage medium
CN111752577B (en) Upgrading method and equipment for system version
US5321830A (en) Reset method when adaptor module is faulty and computer system executing same
CN104580360A (en) System and method for updating firmware through heterogeneous network
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN115344289A (en) Client upgrading method and device, terminal equipment and storage medium
CN114237722B (en) System starting method, device, equipment and engineering vehicle
CN114546455A (en) MCU software upgrading method and device for double partitions
CN113721959A (en) Information processing method and device and electronic equipment
CN114064097B (en) Software upgrading method, terminal equipment and storage medium
CN110018852B (en) System secondary boot method, device and storage medium
CN114879995B (en) Firmware updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication