CN111061521B - Method and system for starting equipment - Google Patents

Method and system for starting equipment Download PDF

Info

Publication number
CN111061521B
CN111061521B CN201911282919.3A CN201911282919A CN111061521B CN 111061521 B CN111061521 B CN 111061521B CN 201911282919 A CN201911282919 A CN 201911282919A CN 111061521 B CN111061521 B CN 111061521B
Authority
CN
China
Prior art keywords
starting
loading
function
image file
switch
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.)
Active
Application number
CN201911282919.3A
Other languages
Chinese (zh)
Other versions
CN111061521A (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

Abstract

The invention provides a method and a system for starting equipment, wherein the method comprises the following steps: loading a preset Uoot image file, and starting Uoot; starting a two-layer forwarding function and a three-layer routing function of the switch by using UBoot and a main mirror image file; and loading a preset slave mirror image file, starting other functions of the switch, and enabling the switch to complete loading of all functions. In the scheme, the function modules are respectively stored into a master image file and a slave image file according to the relevance between the function modules and the two-layer forwarding function and the three-layer routing function. When the switch is started, UBoot is started, a main image file is loaded first to start a two-layer forwarding function and a three-layer routing function in advance, and then other functions of the switch are started from the image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.

Description

Method and system for starting equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for starting a device.
Background
Along with the development of the communication industry, the development of the switch is also very rapid, and the switch is the equipment for completing the information exchange function in the communication system.
The switch which is more common at present 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 UBoot, loading an image file, initializing a switching chip, loading an upper layer application and the like are needed, the two-layer forwarding function and the three-layer routing function can be normally used after the steps are finished, the starting process of the switch is complicated, and the two-layer forwarding function and the three-layer routing function can be normally used after waiting for a period of minutes, so that the starting time is long.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and a system for starting a device, so as to solve the problems of complicated starting procedure and long starting time of the current switch.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
an embodiment of the present invention in a first aspect discloses a method for starting a device, where the method includes:
loading a preset Uoot image file, and starting Uoot;
and starting a two-layer forwarding function and a three-layer routing function of the switch by using the Uoot and the main image file, wherein the main image file 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 starting loading information of each functional module in the master image file, so that the switch finishes loading of all 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 with the two-layer forwarding function and the three-layer routing function.
Preferably, the loading the preset UBoot image file, starting UBoot, includes:
loading a preset UBoot image file, and obtaining 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 finish the UBoot starting flow.
Preferably, the starting the two-layer forwarding function and the three-layer routing function of the switch by using the UBoot and the preset main image file includes:
loading and decompressing a preset main image file by using the UBoot to obtain starting information of an operating system, a high-priority function module set and starting loading information of each function module;
and starting an 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 the preset slave image file starts 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 loading all functions, including:
loading a preset slave mirror image file to obtain a low-priority function module set;
and loading each low-priority functional module according to the starting loading information of each functional module in the main image file, and starting other functions of the switch to enable the switch to finish loading of all functions.
Preferably, after the operating system is started based on the operating system start information, the method further includes:
acquiring a starting flow file, wherein the starting flow file comprises the following steps: a loading sequence of a plurality of the high-priority function modules;
correspondingly, the loading of each high-priority functional module according to the starting loading information of each functional module starts the two-layer forwarding function and the three-layer routing function of the switch, and the method comprises the following steps:
and loading each high-priority functional module in turn according to the loading sequence 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 a second aspect, an embodiment of the present invention discloses a system for starting a device, where the system includes:
the loading unit is used for loading a preset Uoot image file and starting Uoot;
the first starting unit is used for starting a two-layer forwarding function and a three-layer routing function of the switch by utilizing the UBoot and a main image file, wherein the main image file 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;
the second starting unit is used for decompressing a preset slave image file, starting other functions of the switch according to starting loading information of each function module in the master image file, enabling the switch to finish loading of all functions, wherein the slave image file comprises a plurality of low-priority function modules, and the low-priority function modules are function modules with low relevance with the two-layer forwarding function and the three-layer routing function.
Preferably, the loading unit is specifically configured to: and loading a preset Uoot image file, acquiring a plurality of driving files, sequentially loading the driving corresponding to the driving files, and completing a Uoot starting flow, wherein the driving 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 utilizing the UBoot and acquiring starting information of an operating system, a high-priority function module set and starting loading information of each function module;
the starting module is used for starting the operating system based on the starting information of the operating system, 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 mirror 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 main image file, starting other functions of the switch and enabling the switch to finish loading of all functions.
Preferably, the first starting unit further includes:
the system comprises an acquisition module, a start-up process file and a control module, wherein the acquisition module is used for acquiring the start-up process file, and the start-up process file comprises: a loading sequence of a plurality of the high-priority function modules;
correspondingly, the starting module is further used for: and loading each high-priority functional module in turn according to the loading sequence 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.
Based on the method and the system for starting the equipment provided by the embodiment of the invention, the method comprises the following steps: powering on to start a preset UBooot image file, and loading a main image file; starting a second-layer forwarding function and a third-layer routing function of the switch by using UBoot and a main mirror image file; and loading a preset slave mirror image file, starting other functions of the switch, and enabling the switch to load a master mirror image file. In the scheme, the function module is respectively stored into a master mirror image file and a slave mirror image file according to the relevance of the function module, a two-layer forwarding function and a three-layer routing function. When the switch is started, UBoot is started, a main image file is loaded first to start a two-layer forwarding function and a three-layer routing function in advance, and then other functions of the switch are started from the image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for starting up a device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for 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 up 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 a system for activating a device according to an embodiment of the present invention;
FIG. 6 is a block diagram of a system for activating a device according to an embodiment of the present invention;
fig. 7 is a block diagram of a system for starting up a device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As known from the background art, when the switch is started, the steps of starting UBoot, loading an image file, initializing a switching chip, loading an upper layer application and the like are needed, and after the steps are completed, the two-layer forwarding function and the three-layer routing function can be normally used. The starting process of the switch is complicated, the two-layer forwarding function and the three-layer routing function can be normally used only after waiting for a few minutes, and the starting time of the switch is long.
Therefore, the embodiment of the invention provides a method and a system for starting equipment, which stores a functional module with high relevance with a two-layer forwarding function and a three-layer routing function in a master image file in advance, and stores other functional modules in a slave image file. When the switch is started, UBoot is started, a main image file is loaded to start a two-layer forwarding function and a three-layer routing function in advance, and then other functions of the switch are started by a slave image file, so that the starting time of the switch is reduced.
Referring to fig. 1, a flowchart of a method for starting up a device according to an embodiment of the present invention is shown, where the method includes the following steps:
step S101: loading a preset Uoot image file and starting Uoot.
Note that UBoot is a program for booting an operating system, and UBoot can move the operating system from a slow storage device to a fast storage device, so as to increase the booting speed of the operating system.
It should be further noted that, the UBoot image file is simplified in advance according to the model of the switch, so that the volume of the UBoot image file is minimized.
The method for simplifying the UBoot image file is as follows: according to the machine type of the switch, determining unused drive of the machine type, determining the function of removing but not influencing the switch work in the operation system mode in the Uoot mode, removing the drive file and the function corresponding to the unused drive from the Uoot image file, namely optimizing the Uoot program into the simplest image file on the premise of not influencing the Uoot function and normal use of the switch.
That is, the reduced UBoot image file does not load unused drivers and functions, so that the speed of starting UBoot is increased, and the starting time of the switch is reduced.
For example: for a certain type of switch, the Uoot mode of the switch does not use the USB device, and then the USB driving file in the Uoot image file is removed.
In the specific implementation process of step S101, a preset UBoot image file is loaded, a plurality of driving files are obtained, and the driving corresponding to the driving files is loaded in sequence, so that a UBoot starting process is completed. And the driving file is determined according to the type of the switch.
Step S102: and starting a two-layer forwarding function and a three-layer routing function of the switch by using the Uoot and the main image file.
It should be noted that the main image file includes: 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 primary mirror file further comprises part of the necessary functional modules for initializing the switch, for example: high-precision time protocol (Precision Time Protocol) clock synchronization function module, data synchronization function module and other function modules.
Further, the operating system startup information is optimized in advance, so that the time required for starting the operating system is reduced. The specific optimization mode is as follows: according to the specific application requirements of the switch, the unnecessary drive in the operating system is removed, namely, the unnecessary drive 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, reducing the redundancy of each upper application module and reducing the loading time of each upper application module on the basis of ensuring the functions of each upper application module.
Optimizing the starting flow 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 some unnecessary application flow in each upper application module, namely, not loading the unnecessary upper application module.
In the specific implementation process of step S102, when the switch is powered on and started, the UBoot that has been started is used to load the main image file, so as to preferentially start the two-layer forwarding function and the three-layer routing function of the switch. And loading a part of necessary functional 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 loading information of each functional module in the master image file so that the switch finishes loading of all functions.
It should be noted that, the slave image file includes a plurality of low-priority function modules, where the low-priority function modules are function modules with low relevance to 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, etc., and the aforementioned plurality of low priority function modules for example are independent of the two-layer forwarding function and the three-layer routing function.
Correspondingly, the slave mirror image file also comprises various protocol files irrelevant to the two-layer forwarding function and the three-layer routing function.
In the specific implementation process of 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 functional module by utilizing the starting loading information corresponding to each low-priority functional module in combination with the starting loading information of each functional module in the master image file, starting other functions of the switch, and configuring relevant information of the switch according to the protocol file in the slave image file so as to enable the switch to finish loading of all functions.
It is understood that the set of low priority functional modules includes 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 a first file system, and the slave image file is stored in a second file system.
In the embodiment of the invention, the functional module is respectively stored into the master image file and the slave image file according to the relevance between the functional module and the two-layer forwarding function and the three-layer routing function in advance. When the switch is started, UBoot is started by utilizing the reduced UBoot image file, the main image file is loaded by using UBoot, the two-layer forwarding function and the three-layer routing function are started in advance, and then other functions of the switch are started by utilizing the slave image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.
The above-mentioned procedure of starting the two-layer forwarding function and the three-layer routing function of the switch in step S102 of the embodiment of the present invention, referring to fig. 2, shows a flowchart for starting the two-layer forwarding function and the three-layer routing function provided by the embodiment of the present invention, including the following steps:
step S201: and loading and decompressing a preset main image file by using the Uoot to acquire starting information of an operating system, a high-priority function module set and starting loading information of each function module.
In the specific implementation process of step S201, the UBoot is used to load and decompress the main image file, so as to obtain the starting information of the operating system, the set of high-priority function modules and the starting loading information of each function module. It is to be appreciated that the set of high priority functional modules includes: a plurality of the high priority function modules.
It is to be noted that, as is clear from the foregoing, the high-priority function module is a function module having high association with the two-layer forwarding function and the three-layer routing function. To better illustrate the specific types of high priority functional modules, the following is presented by way of example.
For the two-layer forwarding function, the functional modules (i.e., high priority functional modules) that must be loaded to initiate the two-layer forwarding function include, but are not limited to: and the functional modules comprise a chip clock module, an interrupt module, a port module, a message analysis module and the like.
For the three-layer routing function, the functional modules that must be loaded to initiate the three-layer routing function (i.e., high priority functional modules) include, but are not limited to: and on the basis of starting the functional modules of which the two-layer forwarding functions are required to be loaded, the functional modules such as a dynamic IP forwarding module and the like are added.
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 above embodiment of the present invention, the operating system start information is optimized in advance, and in the process of implementing step S202, the operating system is started based on the operating system start information, so that the time required for starting the operating system is reduced.
Preferably, after the operating system is started, a start-up procedure file is obtained, where the start-up procedure file includes: and loading the plurality of high-priority functional modules sequentially.
It should be noted that, the loading sequence of the plurality of high priority function modules is preset, and when the high priority function modules are loaded, the two-layer forwarding function and the 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 specific implementation process of step S203, according to the start loading information corresponding to each high priority function module, each high priority function module is loaded in turn according to the loading sequence, 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 flow of starting the operating system is optimized in advance, and the time required for starting the operating system is reduced. When loading the high-priority function modules in the main image file, each high-priority function module is loaded in sequence 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 the switches which are completely started.
For better explaining the contents of fig. 1 and 2 of the above embodiment of the present invention, it should be noted that the contents shown in fig. 3 are only for illustration. Referring to fig. 3, a flowchart of another method for starting up a device according to an embodiment of the present invention is shown, including the following steps:
step S301: the switch is powered up.
Step S302: UBoot is initiated.
In the process of implementing step S302, the process of starting the UBoot refers to the content in step S101 in fig. 1 in the above embodiment of the present invention, and will not be 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, the process of loading and decompressing the main image file and the process of starting the operating system refer to the content in step S102 in the above embodiment of the present invention in fig. 1, and will not be described herein.
Step S304: and loading each high-priority functional module in the main image file, and starting a two-layer forwarding function and a three-layer routing function of the switch.
In the specific implementation process of step S304, the processes of the two-layer forwarding function and the three-layer routing function of the switch are started, which are described in the foregoing description of fig. 2 in the embodiment of the present invention, and are not described herein again.
Step S305: the slave image file is loaded and other functions of the switch are started.
In the process of implementing step S305, the process of starting other functions of the switch is referred to the content in step S103 in fig. 1 in the above embodiment of the present invention, and will not be described herein.
Step S306: and configuring relevant information of the switch according to the protocol file in the slave mirror image file.
Step S307: the switch startup is complete.
In the embodiment of the invention, the functional module is respectively stored into the master image file and the slave image file according to the relevance between the functional module and the two-layer forwarding function and the three-layer routing function in advance. When the switch is started, UBoot is started by utilizing the reduced UBoot image file, the main image file is loaded by using UBoot, the two-layer forwarding function and the three-layer routing function are started in advance, and then other functions of the switch are started by utilizing the slave image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.
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 starting unit 402, and a second starting unit 403;
the loading unit 401 is configured to load a preset UBoot image file, and start UBoot.
In a specific implementation, the loading unit 401 is specifically configured to: and loading a preset Uoot image file, acquiring a plurality of driving files, sequentially loading the driving corresponding to the driving files, and completing a Uoot starting flow, wherein the driving 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 the switch by using the UBoot and a main image file, where the main image file includes: 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, start other functions of the switch according to starting loading information of each function module in the master image file, so that the switch finishes loading all functions, where the slave image file includes a plurality of low-priority function modules, and the low-priority function modules are function modules with low relevance to the two-layer forwarding function and the three-layer routing function.
In the embodiment of the invention, the functional module is respectively stored into the master image file and the slave image file according to the relevance between the functional module and the two-layer forwarding function and the three-layer routing function in advance. When the switch is started, UBoot is started by utilizing the reduced UBoot image file, the main image file is loaded by using UBoot, the two-layer forwarding function and the three-layer routing function are started in advance, and then other functions of the switch are started by utilizing the slave image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.
Preferably, referring to fig. 5 in conjunction with fig. 4, a block diagram of a system of a starting device provided by 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 main image file by using the UBoot, and obtain starting information of an operating system, a set of high-priority functional modules, and starting loading information of each functional module.
The starting module 4022 is configured to start the operating system based on the operating system starting information, and 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 block diagram of a system of a starting device provided by an embodiment of the present invention is shown, where the first starting unit 402 further includes:
the obtaining module 4023 is configured to obtain a start-up procedure file, where the start-up procedure file includes: and loading the plurality of high-priority functional modules sequentially.
Correspondingly, the starting module 4022 is further configured to: and loading each high-priority functional module in turn according to the loading sequence 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 embodiment of the invention, the flow of starting the operating system is optimized in advance, and the time required for starting the operating system is reduced. When loading the high-priority function modules in the main image file, each high-priority function module is loaded in sequence 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 the switches which are completely started.
Preferably, referring to fig. 7 in conjunction with fig. 4, a block diagram of a system of a starting device provided by an embodiment of the present invention is shown, where the second starting unit 403 includes:
the loading module 4031 is configured to load a preset slave image file, and obtain a low-priority function module set.
And the starting module 4032 is configured to load each low-priority functional module according to the starting loading information of each functional module in the main image file, and start other functions of the switch, so that the switch finishes loading all functions.
In summary, the embodiment of the present invention provides a method and a system for starting a device, where the method includes: starting a preset UBooot image file and loading a main image file; starting a second-layer forwarding function and a third-layer routing function of the switch by using UBoot and a main mirror image file; and loading a preset slave mirror image file, and starting other functions of the switch to enable the switch to be completely started. In the scheme, the function module is respectively stored into a master mirror image file and a slave mirror image file according to the relevance of the function module, a two-layer forwarding function and a three-layer routing function. When the switch is started, UBoot is started, a main image file is loaded first to start a two-layer forwarding function and a three-layer routing function in advance, and then other functions of the switch are started from the image file. When the switch is started, the two-layer forwarding function and the three-layer routing function are started preferentially, the starting process of the switch is optimized, and the starting time of the switch is shortened.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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 starting up a device, the method comprising:
loading a preset Uoot image file, and starting Uoot, wherein a drive file and a function corresponding to an unused drive in the Uoot image file are removed;
and starting a two-layer forwarding function and a three-layer routing function of the switch by using the Uoot and the main image file, wherein the main image file 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 starting loading information of each functional module in the master image file, so that the switch finishes loading of all 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 with the two-layer forwarding function and the three-layer routing function.
2. The method of claim 1, wherein loading the preset UBoot image file and starting UBoot comprises:
loading a preset UBoot image file, and obtaining 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 finish the UBoot starting flow.
3. The method of claim 1, wherein the enabling the two-layer forwarding function and the three-layer routing function of the switch by using the UBoot and the preset master mirror file comprises:
loading and decompressing a preset main image file by using the UBoot to obtain starting information of an operating system, a high-priority function module set and starting loading information of each function module;
and starting an 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 the preset slave image file starts other functions of the switch according to the start loading information of each functional module in the master image file, so that the switch finishes loading all functions, including:
loading a preset slave mirror image file to obtain a low-priority function module set;
and loading each low-priority functional module according to the starting loading information of each functional module in the main image file, and starting other functions of the switch to enable the switch to finish loading of all functions.
5. The method of claim 3, wherein after the operating system is booted based on the operating system boot information, further comprising:
acquiring a starting flow file, wherein the starting flow file comprises the following steps: a loading sequence of a plurality of the high-priority function modules;
correspondingly, the loading of each high-priority functional module according to the starting loading information of each functional module starts the two-layer forwarding function and the three-layer routing function of the switch, and the method comprises the following steps:
and loading each high-priority functional module in turn according to the loading sequence 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.
6. A system for starting a device, the system comprising:
the loading unit is used for loading a preset Uoot image file and starting Uoot, wherein a drive file and a function corresponding to an unused drive in the Uoot image file are removed;
the first starting unit is used for starting a two-layer forwarding function and a three-layer routing function of the switch by utilizing the UBoot and a main image file, wherein the main image file 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;
the second starting unit is used for decompressing a preset slave image file, starting other functions of the switch according to starting loading information of each function module in the master image file, enabling the switch to finish loading of all functions, wherein the slave image file comprises a plurality of low-priority function modules, and the low-priority function modules are function modules with low relevance with the two-layer forwarding function and the three-layer routing function.
7. The system according to claim 6, wherein the loading unit is specifically configured to: and loading a preset Uoot image file, acquiring a plurality of driving files, sequentially loading the driving corresponding to the driving files, and completing a Uoot starting flow, wherein the driving files are determined according to the type of the switch.
8. The system of claim 6, wherein the first initiation unit comprises:
the processing module is used for loading and decompressing a preset main image file by utilizing the UBoot and acquiring starting information of an operating system, a high-priority function module set and starting loading information of each function module;
the starting module is used for starting the operating system based on the starting information of the operating system, 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 mirror 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 main image file, starting other functions of the switch and enabling the switch to finish loading of all functions.
10. The system of claim 8, wherein the first initiation unit further comprises:
the system comprises an acquisition module, a start-up process file and a control module, wherein the acquisition module is used for acquiring the start-up process file, and the start-up process file comprises: a loading sequence of a plurality of the high-priority function modules;
correspondingly, the starting module is further used for: and loading each high-priority functional module in turn according to the loading sequence 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.
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 CN111061521A (en) 2020-04-24
CN111061521B true 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)

Families Citing this family (1)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009053989A2 (en) * 2007-10-24 2009-04-30 Technion Research & Development Foundation Ltd. Multi-view endoscopic imaging system

Patent Citations (9)

* 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
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

Also Published As

Publication number Publication date
CN111061521A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
KR102356316B1 (en) Vehicle system, vehicle and method for operating such a vehicle system
EP2128759B1 (en) Operating system startup control method and information processing apparatus
JP2023075222A (en) vehicle
JP2001249907A (en) Activation processing system
CN107329792B (en) Docker container starting method and device
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
CN113094111B (en) Device and method for starting device
CN111061521B (en) Method and system for starting equipment
CN109002346A (en) A kind of conversion method of Windows virtual machine boot program
CN106161086A (en) Control method that master control borad is restarted and device
CN113448643A (en) Configuration data management system and method
CN109284137B (en) Hypervisor-based QNX operating system starting method and device
KR20160071260A (en) Method for managing state of ECU in vehicle based on automotive open system architecture
CN112764822A (en) Operating system starting method, device, equipment and medium
CN101452405A (en) Method for time-sharing using fixed t peripheral device for multiple operating systems
CN115150457A (en) Micro-service management method, vehicle-mounted system and vehicle-mounted equipment
CN108121577A (en) A kind of method, equipment and mobile terminal for being optimized to system operation
US20120278509A1 (en) Updating device and method through a baseboard management controller thereof
CN110737533B (en) Task scheduling method and device, electronic equipment and storage medium
JPH1153176A (en) Environment selecting method for electronic computer
CN114064097B (en) Software upgrading method, terminal equipment and storage medium
WO2021166588A1 (en) Electronic device
JP2642082B2 (en) Starting the communication program
CN113656085A (en) Instrument starting method, device, equipment, storage medium and program product
CN105740067A (en) Cloud computing based virtual machine batch starting method and control system

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