CN111061521A - Method and system for starting equipment - Google Patents

Method and system for starting equipment Download PDF

Info

Publication number
CN111061521A
CN111061521A CN201911282919.3A CN201911282919A CN111061521A CN 111061521 A CN111061521 A CN 111061521A CN 201911282919 A CN201911282919 A CN 201911282919A CN 111061521 A CN111061521 A CN 111061521A
Authority
CN
China
Prior art keywords
starting
loading
switch
image file
function
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.)
Granted
Application number
CN201911282919.3A
Other languages
Chinese (zh)
Other versions
CN111061521B (en
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.)
Embedway Technologies Shanghai Corp
Original Assignee
Embedway Technologies Shanghai 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 Embedway Technologies Shanghai Corp filed Critical Embedway Technologies Shanghai Corp
Priority to CN201911282919.3A priority Critical patent/CN111061521B/en
Publication of CN111061521A publication Critical patent/CN111061521A/en
Application granted granted Critical
Publication of CN111061521B publication Critical patent/CN111061521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a system for starting equipment, wherein the method comprises the following steps: loading a preset UBoot image file, and starting the UBoot; starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the main image file; and loading a preset slave image file, and starting other functions of the switch to enable the switch to complete the loading of all the functions. In the scheme, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance between the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started, the main image file is loaded to start a two-layer forwarding function and a three-layer routing function in advance, and then the auxiliary image file is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.

Description

Method and system for starting equipment
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for starting equipment.
Background
With the development of the communication industry, the development of switches, i.e., devices for performing information exchange functions in a communication system, is very rapid.
Currently, a common switch is usually controlled based on a Linux operating system, and supports a two-layer forwarding function and a three-layer routing function. When the switch is started, the steps of starting the UBoot, loading an image file, initializing a switch chip, loading an upper application and the like are required, the two-layer forwarding function and the three-layer routing function can be normally used after the steps are completed, the starting process of the switch is complicated, the two-layer forwarding function and the three-layer routing function can be normally used after the time of waiting for several minutes, and the starting time is long.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a system for starting a device, so as to solve the problems of the current switch that a starting process is complicated and a starting time is long.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiments of the present invention discloses a method for starting a device, where the method includes:
loading a preset UBoot image file, and starting the UBoot;
and starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the primary mirroring file, wherein the primary mirroring file comprises: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function;
and decompressing a preset slave image file, starting other functions of the switch according to the starting and loading information of each functional module in the master image file, so that the switch finishes the loading of all the functions, wherein the slave image file comprises a plurality of low-priority functional modules, and the low-priority functional modules are functional modules with low relevance to the two-layer forwarding function and the three-layer routing function.
Preferably, the loading a preset UBoot image file and starting the UBoot includes:
loading a preset UBoot image file, and acquiring a plurality of driving files, wherein the driving files are determined according to the type of the switch;
and sequentially loading the drivers corresponding to the driver files to complete the UBoot starting process.
Preferably, the starting a second-layer forwarding function and a third-layer routing function of the switch by using the UBoot and a preset primary mirroring file includes:
loading and decompressing a preset main image file by using the UBoot, and acquiring starting information of an operating system, a high-priority function module set and starting and loading information of each function module;
and starting the operating system based on the operating system starting information, loading each high-priority functional module according to the starting loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch.
Preferably, the decompressing a preset slave image file, and starting other functions of the switch according to the start loading information of each function module in the master image file, so that the switch completes loading of all functions, including:
loading a preset slave image file, and acquiring a low-priority function module set;
and loading each low-priority functional module according to the starting and loading information of each functional module in the master mirroring file, and starting other functions of the switch to enable the switch to complete the loading of all the functions.
Preferably, after the operating system is started based on the operating system starting information, the method further includes:
acquiring a starting process file, wherein the starting process file comprises: a loading order of a plurality of said high priority functional modules;
correspondingly, the loading each high-priority functional module according to the start loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch includes:
and according to the starting and loading information of each functional module, sequentially loading each high-priority functional module according to the loading sequence, and starting a two-layer forwarding function and a three-layer routing function of the switch.
A second aspect of the embodiments of the present invention discloses a system for starting a device, including:
the loading unit is used for loading a preset UBoot image file and starting the UBoot;
a first starting unit, configured to start a two-layer forwarding function and a three-layer routing function of a switch by using the UBoot and a primary mirroring file, where the primary mirroring file includes: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function;
and the second starting unit is used for decompressing a preset slave image file, starting other functions of the switch according to the starting loading information of each functional module in the master image file, so that the switch finishes the loading of all the functions, the slave image file comprises a plurality of low-priority functional modules, and the low-priority functional modules are functional modules with low relevance with the two-layer forwarding function and the three-layer routing function.
Preferably, the loading unit is specifically configured to: loading a preset UBoot image file, acquiring a plurality of drive files, sequentially loading the drives corresponding to the drive files, and completing a UBoot starting process, wherein the drive files are determined according to the type of the switch.
Preferably, the first starting unit includes:
the processing module is used for loading and decompressing a preset main image file by using the UBoot, and acquiring starting information of an operating system, a high-priority function module set and starting and loading information of each function module;
and the starting module is used for starting the operating system based on the operating system starting information, loading each high-priority functional module according to the starting loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch.
Preferably, the second starting unit includes:
the loading module is used for loading a preset slave image file and acquiring a low-priority function module set;
and the starting module is used for loading each low-priority functional module according to the starting loading information of each functional module in the master image file, and starting other functions of the switch so that the switch finishes the loading of all the functions.
Preferably, the first starting unit further comprises:
an obtaining module, configured to obtain a starting process file, where the starting process file includes: a loading order of a plurality of said high priority functional modules;
correspondingly, the starting module is further configured to: and according to the starting and loading information of each functional module, sequentially loading each high-priority functional module according to the loading sequence, and starting a two-layer forwarding function and a three-layer routing function of the switch.
Based on the method and the system for starting the equipment provided by the embodiment of the invention, the method comprises the following steps: electrifying and starting a preset UBoot image file, and loading a main image file; starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the main image file; and loading a preset slave image file, starting other functions of the switch, and enabling the switch to load the master image file. In the scheme, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance of the functional modules to the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started, the main image file is loaded to start a two-layer forwarding function and a three-layer routing function in advance, and then the auxiliary image file is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for starting a device according to an embodiment of the present invention;
fig. 2 is a flowchart of starting a two-layer forwarding function and a three-layer routing function according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for starting a device according to an embodiment of the present invention;
fig. 4 is a block diagram of a system for starting a device according to an embodiment of the present invention;
fig. 5 is a block diagram of another system for starting a device according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating a system for starting a device according to another embodiment of the present invention;
fig. 7 is a block diagram of a system for starting a device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
In this application, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As known from the background art, when a switch is started, the steps of starting a UBoot, loading an image file, initializing a switch chip, loading an upper application, and the like are required, and a two-layer forwarding function and a three-layer routing function can be normally used after the foregoing steps are completed. The starting process of the switch is complicated, the two-layer forwarding function and the three-layer routing function can be normally used only by waiting for several minutes, and the starting time of the switch is long.
Therefore, embodiments of the present invention provide a method and a system for starting a device, in which a function module with high relevance to a two-layer forwarding function and a three-layer routing function is stored in a master image file in advance, and other function modules are stored in a slave image file. When the switch is started, the UBoot is started, the main image file is loaded to start the two-layer forwarding function and the three-layer routing function in advance, and then the auxiliary image file is loaded to start other functions of the switch, so that the starting time of the switch is reduced.
Referring to fig. 1, a flowchart of a method for starting a device according to an embodiment of the present invention is shown, where the method includes the following steps:
step S101: and loading a preset UBoot image file and starting the UBoot.
It should be noted that UBoot is a program for booting the operating system, and the UBoot can move the operating system from the slow storage device to the fast storage device, so as to speed up the booting speed of the operating system.
It should be further noted that, the UBoot image file is reduced in advance according to the model of the switch, so that the volume of the UBoot image file is minimized.
The mode for simplifying the UBoot image file is as follows: and according to the model of the switch, determining a drive which is not used by the model, determining a function which is removed in the UBoot mode but does not influence the work of the switch in the operating system mode, and removing a drive file and a function which correspond to the drive which is not used from the UBoot image file, namely optimizing the UBoot program into a simplest image file on the premise of not influencing the UBoot function and the normal use of the switch.
That is to say, the simplified UBoot image file does not load unused drivers and functions, so that the speed of starting the UBoot is increased, and the starting time of the switch is shortened.
For example: for a certain model of switch, if the USB device is not used in the switch UBoot mode, the USB driver file in the UBoot image file is removed.
In the process of specifically implementing step S101, a preset UBoot image file is loaded, a plurality of driver files are obtained, drivers corresponding to the driver files are sequentially loaded, and a UBoot starting process is completed. Wherein the drive file is determined according to the model of the switch.
Step S102: and starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the main image file.
It should be noted that the master image file includes: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function.
Preferably, the master image file further comprises a part of necessary functional modules for initializing the switch, such as: a clock synchronization function module and a data synchronization function module of a high Precision Time Protocol (Precision Time Protocol).
It should be further noted that the start-up information of the operating system is optimized in advance, and the time required for starting up the operating system is reduced. The specific optimization mode is as follows: according to the specific application requirement of the switch, the unnecessary driver in the operating system is removed, namely, the unnecessary driver is not loaded when the operating system is started. For example: and if the switch does not use the rapid and the USB, removing the drive files corresponding to the rapid and the USB in the operating system.
And optimizing the upper application modules loaded by the operating system, and reducing the redundancy of each upper application module and the loading time of each upper application module on the basis of ensuring the functions of each upper application module.
And optimizing the starting process of the operating system, modifying the starting file for loading the upper application module according to the specific requirement of the switch, and deleting the unnecessary application module and the process of unnecessary application of a part of the unnecessary application modules in each upper application module, namely not loading the unnecessary upper application module.
In the process of implementing step S102 specifically, when the switch is powered on and started, the started UBoot is used to load the master mirroring file, and the second-layer forwarding function and the third-layer routing function of the switch are started preferentially. And loading a part of necessary function modules for initializing the switch.
Step S103: and decompressing a preset slave image file, and starting other functions of the switch according to the starting and loading information of each functional module in the master image file, so that the switch finishes the loading of all the functions.
It should be noted that the slave image file includes a plurality of low-priority functional modules, and the low-priority functional modules are functional modules having low relevance with the two-layer forwarding function and the three-layer routing function.
The low priority functional modules include, but are not limited to: a fan control function module, a temperature detection function module, a Web function module, and the like, where the aforementioned low-priority function modules for example are not related to the two-layer forwarding function and the three-layer routing function.
Correspondingly, various protocol files which are irrelevant to the two-layer forwarding function and the three-layer routing function are also included in the slave image file.
In the process of specifically implementing step S103, the slave image file is loaded by using the UBoot, and a low-priority function module set is obtained. And loading each low-priority function module by combining the start loading information of each function module in the master image file and utilizing the start loading information corresponding to each low-priority function module, starting other functions of the switch, and configuring the related information of the switch according to the protocol file in the slave image file to enable the switch to complete the loading of all the functions.
It will be appreciated that the set of low priority functional modules comprises a plurality of the low priority functional modules.
It should be noted that a dual file system is built in the switch in advance, the master image file is stored in the first file system, and the slave image file is stored in the second file system.
In the embodiment of the invention, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance of the functional modules, the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started by using the simplified UBoot image file, the UBoot is used for loading the main image file to start a two-layer forwarding function and a three-layer routing function in advance, and then the UBoot is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.
Fig. 2 shows a flowchart of starting the two-layer forwarding function and the three-layer routing function of the switch according to the embodiment of the present invention, which includes the following steps:
step S201: and loading and decompressing a preset main image file by using the UBoot, and acquiring the starting information of the operating system, the high-priority function module set and the starting and loading information of each function module.
In the process of implementing step S201 specifically, the UBoot is used to load and decompress the master image file, and the operating system startup information, the high-priority function module set, and the startup loading information of each function module are obtained. It is to be understood that the set of high priority functional modules includes: a plurality of said high priority functional modules.
As can be seen from the foregoing, the high-priority functional module is a functional module having a high association with the two-layer forwarding function and the three-layer routing function. To better explain the specific type of the high priority functional module, the following is exemplified.
For the layer two forwarding function, the functional modules (i.e. high priority functional modules) that must be loaded to start the layer two forwarding function include, but are not limited to: the system comprises a switching chip clock module, an interrupt module, a port module, a message analysis module and other functional modules.
For the three-tier routing function, the functional modules (i.e., high priority functional modules) that must be loaded to start the three-tier routing function include, but are not limited to: and adding functional modules such as a dynamic IP forwarding module and the like on the basis of starting the functional module which is necessary to be loaded by the two-layer forwarding function.
Step S202: and starting the operating system based on the operating system starting information.
As can be seen from the content shown in fig. 1 in the embodiment of the present invention, the operating system startup information is optimized in advance, and in the process of implementing step S202 specifically, the operating system is started based on the operating system startup information, so that the time required for starting the operating system is reduced.
Preferably, after the operating system is started, a starting process file is acquired, where the starting process file includes: a loading order of a plurality of said high priority functional modules.
It should be noted that, a loading order of the plurality of high-priority functional modules is preset, and when the high-priority functional modules are loaded, a two-layer forwarding function and a three-layer routing function of the switch are started in advance.
Step S203: and loading each high-priority functional module according to the starting loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch.
In the process of implementing step S203 specifically, according to the start loading information corresponding to each high-priority functional module, each high-priority functional module is sequentially loaded according to the loading order, and the two-layer forwarding function and the three-layer routing function of the switch are started in advance.
In the embodiment of the invention, the process of starting the operating system is optimized in advance, and the time required for starting the operating system is reduced. When the high-priority function modules in the master image file are loaded, each high-priority function module is sequentially loaded according to the loading sequence, and the two-layer forwarding function and the three-layer routing function of the switch are started in advance, so that the two-layer forwarding function and the three-layer routing function can be used between complete starts of the switch.
To better explain the contents of fig. 1 and fig. 2 in the above-mentioned embodiments of the present invention, fig. 3 is used for illustration, and it should be noted that the contents shown in fig. 3 are only used for illustration. Referring to fig. 3, a flowchart of another method for starting a device according to an embodiment of the present invention is shown, which includes the following steps:
step S301: the switch is powered up.
Step S302: and starting UBoot.
In the process of specifically implementing step S302, the content of step S101 in fig. 1 in the embodiment of the present invention is referred to in the process of starting the UBoot, which is not described herein again.
Step S303: and loading and decompressing the main image file by using the UBoot, and starting an operating system.
In the process of implementing step S303 specifically, the contents of step S102 in fig. 1 in the embodiment of the present invention are referred to in the process of loading and decompressing the master image file, and the process of starting the operating system, which are not described herein again.
Step S304: and loading each high-priority functional module in the master image file, and starting a two-layer forwarding function and a three-layer routing function of the switch.
In the process of implementing step S304 specifically, the process of starting the two-layer forwarding function and the three-layer routing function of the switch refers to the content shown in fig. 2 in the foregoing embodiment of the present invention, and is not described again here.
Step S305: and loading the slave image file and starting other functions of the switch.
In the process of specifically implementing step S305, the content of step S103 in step S1 in the above embodiment of the present invention is referred to in the process of starting other functions of the switch, and details are not described herein again.
Step S306: and configuring relevant information of the switch according to the protocol file in the slave image file.
Step S307: the switch startup is complete.
In the embodiment of the invention, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance of the functional modules, the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started by using the simplified UBoot image file, the UBoot is used for loading the main image file to start a two-layer forwarding function and a three-layer routing function in advance, and then the UBoot is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.
Corresponding to the method for starting the device provided by the embodiment of the present invention, referring to fig. 4, the embodiment of the present invention further provides a structural block diagram of a system for starting the device, where the system includes: a loading unit 401, a first boot unit 402, and a second boot unit 403;
and the loading unit 401 is configured to load a preset UBoot image file and start the UBoot.
In a specific implementation, the loading unit 401 is specifically configured to: loading a preset UBoot image file, acquiring a plurality of drive files, sequentially loading the drives corresponding to the drive files, and completing a UBoot starting process, wherein the drive files are determined according to the type of the switch.
A first starting unit 402, configured to start a two-layer forwarding function and a three-layer routing function of a switch by using the UBoot and a primary mirroring file, where the primary mirroring file includes: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function.
A second starting unit 403, configured to decompress a preset slave image file, and start other functions of the switch according to start loading information of each function module in the master image file, so that the switch completes loading of all functions, where the slave image file includes a plurality of low-priority function modules, and the low-priority function module is a function module with low relevance to the second-layer forwarding function and the third-layer routing function.
In the embodiment of the invention, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance of the functional modules, the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started by using the simplified UBoot image file, the UBoot is used for loading the main image file to start a two-layer forwarding function and a three-layer routing function in advance, and then the UBoot is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.
Preferably, referring to fig. 5 in conjunction with fig. 4, a structural block diagram of a system for starting a device according to an embodiment of the present invention is shown, where the first starting unit 402 includes:
the processing module 4021 is configured to load and decompress a preset primary mirror image file by using the UBoot, and acquire operating system startup information, a high-priority function module set, and startup loading information of each function module.
The starting module 4022 is configured to start the operating system based on the operating system starting information, load each high-priority functional module according to the starting loading information of each functional module, and start a two-layer forwarding function and a three-layer routing function of the switch.
Preferably, referring to fig. 6 in conjunction with fig. 5, a structural block diagram of a system for starting a device according to an embodiment of the present invention is shown, where the first starting unit 402 further includes:
an obtaining module 4023, configured to obtain a start flow file, where the start flow file includes: a loading order of a plurality of said high priority functional modules.
Correspondingly, the starting module 4022 is further configured to: and according to the starting and loading information of each functional module, sequentially loading each high-priority functional module according to the loading sequence, and starting a two-layer forwarding function and a three-layer routing function of the switch.
In the embodiment of the invention, the process of starting the operating system is optimized in advance, and the time required for starting the operating system is reduced. When the high-priority function modules in the master image file are loaded, each high-priority function module is sequentially loaded according to the loading sequence, and the two-layer forwarding function and the three-layer routing function of the switch are started in advance, so that the two-layer forwarding function and the three-layer routing function can be used between complete starts of the switch.
Preferably, referring to fig. 7 in conjunction with fig. 4, a structural block diagram of a system for starting a device according to an embodiment of the present invention is shown, where the second starting unit 403 includes:
and the loading module 4031 is used for loading a preset slave image file and acquiring a low-priority function module set.
A start module 4032, configured to load each low-priority function module according to the start loading information of each function module in the master image file, and start other functions of the switch, so that the switch completes loading of all functions.
To sum up, the embodiments of the present invention provide a method and a system for starting a device, where the method includes: starting a preset UBoot image file, and loading a main image file; starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the main image file; and loading a preset slave image file, and starting other functions of the switch to completely start the switch. In the scheme, the functional modules are respectively stored in the master mirror image file and the slave mirror image file according to the relevance of the functional modules to the two-layer forwarding function and the three-layer routing function. When the switch is started, the UBoot is started, the main image file is loaded to start a two-layer forwarding function and a three-layer routing function in advance, and then the auxiliary image file is loaded to start other functions of the switch. The method realizes the prior starting of the two-layer forwarding function and the three-layer routing function when the switch is started, optimizes the starting process of the switch and reduces the starting time of the switch.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present 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. A method of booting a device, the method comprising:
loading a preset UBoot image file, and starting the UBoot;
and starting a two-layer forwarding function and a three-layer routing function of the switch by using the UBoot and the primary mirroring file, wherein the primary mirroring file comprises: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function;
and decompressing a preset slave image file, starting other functions of the switch according to the starting and loading information of each functional module in the master image file, so that the switch finishes the loading of all the functions, wherein the slave image file comprises a plurality of low-priority functional modules, and the low-priority functional modules are functional modules with low relevance to the two-layer forwarding function and the three-layer routing function.
2. The method according to claim 1, wherein the loading a preset UBoot image file and starting the UBoot comprises:
loading a preset UBoot image file, and acquiring a plurality of driving files, wherein the driving files are determined according to the type of the switch;
and sequentially loading the drivers corresponding to the driver files to complete the UBoot starting process.
3. The method according to claim 1, wherein the starting of the second-layer forwarding function and the third-layer routing function of the switch by using the UBoot and the preset primary mirror image file comprises:
loading and decompressing a preset main image file by using the UBoot, and acquiring starting information of an operating system, a high-priority function module set and starting and loading information of each function module;
and starting the operating system based on the operating system starting information, loading each high-priority functional module according to the starting loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch.
4. The method according to claim 1, wherein the decompressing a preset slave image file, and starting other functions of the switch according to the start loading information of each function module in the master image file, so that the switch completes loading of all functions, includes:
loading a preset slave image file, and acquiring a low-priority function module set;
and loading each low-priority functional module according to the starting and loading information of each functional module in the master mirroring file, and starting other functions of the switch to enable the switch to complete the loading of all the functions.
5. The method of claim 3, wherein after the booting the operating system based on the operating system booting information, further comprising:
acquiring a starting process file, wherein the starting process file comprises: a loading order of a plurality of said high priority functional modules;
correspondingly, the loading each high-priority functional module according to the start loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch includes:
and according to the starting and loading information of each functional module, sequentially loading each high-priority functional module according to the loading sequence, and starting a two-layer forwarding function and a three-layer routing function of the switch.
6. A system for starting a device, the system comprising:
the loading unit is used for loading a preset UBoot image file and starting the UBoot;
a first starting unit, configured to start a two-layer forwarding function and a three-layer routing function of a switch by using the UBoot and a primary mirroring file, where the primary mirroring file includes: the system comprises operating system starting information, a plurality of high-priority functional modules and starting loading information of each functional module, wherein the high-priority functional modules are functional modules with high relevance with the two-layer forwarding function and the three-layer routing function;
and the second starting unit is used for decompressing a preset slave image file, starting other functions of the switch according to the starting loading information of each functional module in the master image file, so that the switch finishes the loading of all the functions, the slave image file comprises a plurality of low-priority functional modules, and the low-priority functional modules are functional modules with low relevance with the two-layer forwarding function and the three-layer routing function.
7. The system of claim 6, wherein the loading unit is specifically configured to: loading a preset UBoot image file, acquiring a plurality of drive files, sequentially loading the drives corresponding to the drive files, and completing a UBoot starting process, wherein the drive files are determined according to the type of the switch.
8. The system of claim 6, wherein the first activation unit comprises:
the processing module is used for loading and decompressing a preset main image file by using the UBoot, and acquiring starting information of an operating system, a high-priority function module set and starting and loading information of each function module;
and the starting module is used for starting the operating system based on the operating system starting information, loading each high-priority functional module according to the starting loading information of each functional module, and starting a two-layer forwarding function and a three-layer routing function of the switch.
9. The system of claim 6, wherein the second activation unit comprises:
the loading module is used for loading a preset slave image file and acquiring a low-priority function module set;
and the starting module is used for loading each low-priority functional module according to the starting loading information of each functional module in the master image file, and starting other functions of the switch so that the switch finishes the loading of all the functions.
10. The system of claim 8, wherein the first activation unit further comprises:
an obtaining module, configured to obtain a starting process file, where the starting process file includes: a loading order of a plurality of said high priority functional modules;
correspondingly, the starting module is further configured to: and according to the starting and loading information of each functional module, sequentially loading each high-priority functional module according to the loading sequence, and starting a two-layer forwarding function and a three-layer routing function of the switch.
CN201911282919.3A 2019-12-13 2019-12-13 Method and system for starting equipment Active CN111061521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911282919.3A CN111061521B (en) 2019-12-13 2019-12-13 Method and system for starting equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911282919.3A CN111061521B (en) 2019-12-13 2019-12-13 Method and system for starting equipment

Publications (2)

Publication Number Publication Date
CN111061521A true CN111061521A (en) 2020-04-24
CN111061521B CN111061521B (en) 2023-06-09

Family

ID=70301549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911282919.3A Active CN111061521B (en) 2019-12-13 2019-12-13 Method and system for starting equipment

Country Status (1)

Country Link
CN (1) CN111061521B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174455A (en) * 2022-06-29 2022-10-11 中国航空无线电电子研究所 ARINC664 switch starting time testing method based on asynchronous clock

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110196200A1 (en) * 2007-10-24 2011-08-11 Daniel Glozman Multi-view endoscopic imaging system
CN102289395A (en) * 2011-07-14 2011-12-21 深圳市共进电子有限公司 Method for using double-code mirror image operation on embedded equipment
CN102420767A (en) * 2011-12-15 2012-04-18 北京星网锐捷网络技术有限公司 Method and device for switching forwarding paths, and network equipment
CN102999345A (en) * 2012-12-06 2013-03-27 华为技术有限公司 Operating system loading method, equipment and system
US8489811B1 (en) * 2006-12-29 2013-07-16 Netapp, Inc. System and method for addressing data containers using data set identifiers
CN105765526A (en) * 2013-06-14 2016-07-13 华为技术有限公司 Bootstrapping from a remote disk image via a network
CN109120492A (en) * 2017-06-26 2019-01-01 中兴通讯股份有限公司 A kind of storage unit, source interchanger, message forwarding method and mirror-image system
CN109284137A (en) * 2018-09-21 2019-01-29 武汉光庭信息技术股份有限公司 A kind of QNX os starting method and device based on Hypervisor
CN109284136A (en) * 2018-09-12 2019-01-29 盛科网络(苏州)有限公司 A kind of method and device realizing switch system and quickly restarting
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489811B1 (en) * 2006-12-29 2013-07-16 Netapp, Inc. System and method for addressing data containers using data set identifiers
US20110196200A1 (en) * 2007-10-24 2011-08-11 Daniel Glozman Multi-view endoscopic imaging system
CN102289395A (en) * 2011-07-14 2011-12-21 深圳市共进电子有限公司 Method for using double-code mirror image operation on embedded equipment
CN102420767A (en) * 2011-12-15 2012-04-18 北京星网锐捷网络技术有限公司 Method and device for switching forwarding paths, and network equipment
CN102999345A (en) * 2012-12-06 2013-03-27 华为技术有限公司 Operating system loading method, equipment and system
CN105765526A (en) * 2013-06-14 2016-07-13 华为技术有限公司 Bootstrapping from a remote disk image via a network
CN109120492A (en) * 2017-06-26 2019-01-01 中兴通讯股份有限公司 A kind of storage unit, source interchanger, message forwarding method and mirror-image system
CN109284136A (en) * 2018-09-12 2019-01-29 盛科网络(苏州)有限公司 A kind of method and device realizing switch system and quickly restarting
CN109284137A (en) * 2018-09-21 2019-01-29 武汉光庭信息技术股份有限公司 A kind of QNX os starting method and device based on Hypervisor
CN109683968A (en) * 2018-12-18 2019-04-26 北京东土军悦科技有限公司 Interchanger quick start method, interchanger and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174455A (en) * 2022-06-29 2022-10-11 中国航空无线电电子研究所 ARINC664 switch starting time testing method based on asynchronous clock
CN115174455B (en) * 2022-06-29 2023-09-08 中国航空无线电电子研究所 ARINC664 switch starting time test method based on asynchronous clock

Also Published As

Publication number Publication date
CN111061521B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
EP2128759B1 (en) Operating system startup control method and information processing apparatus
JP2001249907A (en) Activation processing system
CN111813601B (en) Micro-service rollback method and device for stateful distributed cluster
ITTO980869A1 (en) PROCESSOR WITH SYSTEM FOR PREPARING A START-UP RECORD WITH CHANGEABLE PARTITION OF THE MEMORY DEVICE.
US20120266171A1 (en) Apparatus and method for carrying out a migration process of a virtual machine in a device
CN105824678A (en) Method and device for installing operating system
CN111796860A (en) Micro front-end scheme implementation method and device
WO2015085755A1 (en) Operating system recovery method, apparatus and terminal device
CN113282351A (en) Switch starting method and device, electronic equipment and storage medium
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN116737244A (en) Method and device for starting multiple hardware domains of chip
CN111061521B (en) Method and system for starting equipment
JP2011060225A (en) Operating system booting method
CN107391120A (en) One kind starts control method, electronic equipment and computer-readable recording medium
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN112506539A (en) Firmware updating method and device, electronic equipment and storage medium
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN116009899A (en) Mirror image making method and device of operating system, electronic equipment and storage medium
CN112764822A (en) Operating system starting method, device, equipment and medium
CN108121562B (en) Firmware version switching method, electronic device and BIOS chip
JP2005092708A (en) Software update system and method, and computer program
CA2400810A1 (en) Method for ensuring compatibility, and a method for data protection, within a distributed computer system having a number of computer subsystems
CN116243994B (en) Driving loading method of storage device, operating system starting method and system
CN109074275A (en) Hardware controlling method, device, electronic equipment and computer-readable medium

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
GR01 Patent grant
GR01 Patent grant