CN106569842A - Startup method and device for operating system - Google Patents
Startup method and device for operating system Download PDFInfo
- Publication number
- CN106569842A CN106569842A CN201510648586.7A CN201510648586A CN106569842A CN 106569842 A CN106569842 A CN 106569842A CN 201510648586 A CN201510648586 A CN 201510648586A CN 106569842 A CN106569842 A CN 106569842A
- Authority
- CN
- China
- Prior art keywords
- operating system
- networking platform
- lxc
- component
- upgrading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a startup method and device for an operating system. The method comprises the following steps of: on the basis of a first kernel, compiling a first operating system gateway platform, wherein the first kernel supports to operate the code of a second operating system on the basis of the first operating system; transplanting an LXC (Linux Container) to the first operating system gateway platform, and designing a component used for operating and starting the second operating system, wherein the LXC is used for managing the first operating system gateway platform and the second operating system; and through the LXC, triggering the second operating system to be started in the component. By use of the method, the problem in the prior art that the gateway platform only can simultaneously start one operating system is solved, and an effect that the functions of the operating system of the gateway platform are fused with the intelligent service of other operating systems under a situation that no hardware cost is increased is realized.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of startup method and device of operating system.
Background technology
Telecom operators' past in terms of the operation of broadband, with improve access bandwidth and permeability (bandwidth with monthly payment flow and when
It is long) based on, with the development of the Internet, particularly mobile Internet and internet, applications business (Over The Top,
Referred to as OTT) development, the broadband of operator is managed and turns to the competition of broadband content from the competition of broadband access.
To cope with competition, operator needs this change of profound understanding, examines from business, access, three aspect unifications of terminal
Consider, it is established that the system architecture of " cloud-pipe-end ", wherein " end ", i.e. home gateway, are that operator stretches into its feeler
The natural of each subscriber household is inserted into a little, and three aspects of " cloud ", intelligent gateway, immanent access are combined
Come, expand the border of home network, be that this telecom operators is proposed based on the intelligent gateway phase of Android operation system
Pass demand, that is to say, that gateway should meet the gateway function on basis, the Android that present main flow is supported again is operated
System platform.However, the Networking Platform in correlation technique all can only simultaneously start the operating system of one, such as Android
Operating system or IOS, it is difficult to meet above-mentioned requirements.
For the problems referred to above in correlation technique, not yet there is effective solution at present.
The content of the invention
The invention provides a kind of startup method and device of operating system, at least to solve Networking Platform in correlation technique
The problem of an operating system can simultaneously be started.
According to an aspect of the invention, there is provided a kind of startup method of operating system, including:Compiled based on the first kernel
The first operating system Networking Platform is translated, wherein, first kernel is propped up based on the first operating system Networking Platform
Hold the code of the second operating system of operation;LXC containers are transplanted in the first operating system Networking Platform, and are set
The component for starting second operating system for operation is counted, wherein, the LXC containers are used to manage first behaviour
Make system gateway platform and second operating system;Second operating system is triggered in institute by the LXC containers
State in component and start.
Further, include LXC containers are transplanted to into the first operating system Networking Platform version:Based on institute
State the appointing system point that second operating system is installed to LXC containers first operating system by pre-defined rule
Qu Zhong, wherein, there is no the first operating system Networking Platform in the appointing system subregion.
Further, the component includes:The interaction of the first operating system Networking Platform and second operating system
Passage, the component for being designed for running startup second operating system includes:In the first operating system gateway
First agent's process of second operating system is designed in platform;First behaviour is designed in second operating system
Make second agent's process of system gateway platform;Wherein, first agent's process and second agent's process are by handing over
Mutually passage manages respectively second operating system and the first operating system Networking Platform.
Further, the component also includes:Resource limit strategy and management allocation strategy, it is described to be designed for operation and open
Moving the component of second operating system includes:The resource limit plan is designed in the first operating system Networking Platform
Slightly and the management allocation strategy, wherein, the resource limit strategy and the management allocation strategy are used to shielding described the
Network function of one operating system in the second operating system Networking Platform.
Further, described startup in the component by LXC containers triggering second operating system is included:
The script that the first operating system Networking Platform is triggered after first operating system is started is held with starting the LXC
Device;The LXC containers are called to start first operating system by the exchange channels.
Further, it is started in the component by LXC containers triggering second operating system described
Afterwards, methods described also includes:By specifying order upgrading first operating system and/or the second operating system institute
The facility environment for needing;Configuration upgrading runs first operating system and/or the ginseng of the network needed for second operating system
Number;Perform respectively for the first order of first operating system of upgrading and for the of second operating system of upgrading
Two orders.
Further, it is started in the component by LXC containers triggering second operating system described
Afterwards, methods described also includes:Build by the first operating system described in webmaster remote upgrade and/or the second operation system
Facility environment needed for system;Configuration upgrading runs first operating system and/or the net needed for second operating system
Network parameter;After the 3rd order for first operating system of upgrading is performed, second operating system is carried out
Verification;It is obstructed out-of-date verifying, the 4th order of second operating system in receiving for indicating upgrading buffer area.
Further, carrying out verification to second operating system includes:Second operating system to be upgraded is downloaded
To buffer area;Second operating system is verified in the buffer area.
Further, first operating system is Linux system, and second operating system is Android system.
According to a further aspect in the invention, there is provided a kind of starter of operating system, including:Collector, is used for
First operating system Networking Platform is compiled based on the first kernel, wherein, first kernel is with the first operating system net
Close the code that the second operating system of operation is supported based on platform;Processing module, it is described for LXC containers to be transplanted to
In first operating system Networking Platform, and it is designed for running the component for starting second operating system, wherein, it is described
LXC containers are used to manage the first operating system Networking Platform and second operating system;Starting module, for leading to
Cross the LXC containers triggering second operating system to start in the component.
By the present invention, the first operating system Networking Platform is compiled using based on the first kernel, wherein, first kernel
The code of the second operating system of operation is supported based on the first operating system Networking Platform, then by LXC containers
In being transplanted to the first operating system Networking Platform, and it is designed for running the component for starting second operating system,
Wherein, the LXC containers are used to manage the first operating system Networking Platform and second operating system, finally
Second operating system is triggered by the LXC containers to start in the component, solve gateway in correlation technique
Platform can only simultaneously start the problem of an operating system, realize Networking Platform in the case where hardware cost is not increased
The effect that the function of operating system and the IN service of other operating systems are blended.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention
Schematic description and description be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the startup method of operating system according to embodiments of the present invention;
Fig. 2 is the structured flowchart of the starter of operating system according to embodiments of the present invention;
Fig. 3 is the alternative construction block diagram one of the starter of operating system according to embodiments of the present invention;
Fig. 4 is the alternative construction block diagram two of the starter of operating system according to embodiments of the present invention;
Fig. 5 is the alternative construction block diagram three of the starter of operating system according to embodiments of the present invention;
Fig. 6 is the alternative construction block diagram four of the starter of operating system according to embodiments of the present invention;
Fig. 7 is the structured flowchart of the update device of operating system according to embodiments of the present invention;
Fig. 8 is the alternative construction block diagram one of the update device of operating system according to embodiments of the present invention;
Fig. 9 is the alternative construction block diagram two of the update device of operating system according to embodiments of the present invention;
Figure 10 is the system framework figure merged according to the linux Networking Platform and Android platform of alternative embodiment of the present invention;
Figure 11 is the system version Booting sequence figure according to alternative embodiment of the present invention;
Figure 12 is the Booting sequence figure of the LXC containers of alternative embodiment of the present invention;
Figure 13 is the Android system Booting sequence figure of alternative embodiment of the present invention;
Figure 14 is the flow chart of the boot stage system version program upgrading of alternative embodiment of the present invention;
Figure 15 is the flow chart of system version program upgrading after the version of alternative embodiment of the present invention starts.
Specific embodiment
Below with reference to accompanying drawing and in conjunction with the embodiments describing the present invention in detail.It should be noted that in the feelings not conflicted
Under condition, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that description and claims of this specification and term " first ", " second " in above-mentioned accompanying drawing
Etc. being object for distinguishing similar, without for describing specific order or precedence.
In the present embodiment there is provided a kind of startup method of operating system, Fig. 1 is a kind of behaviour according to embodiments of the present invention
Make the flow chart of the startup method of system, as shown in figure 1, the flow process comprises the steps:
Step S102, based on the first kernel the first operating system Networking Platform is compiled, wherein, the first kernel is with the first behaviour
Make the code that the second operating system of operation is supported based on system gateway platform;
In the present embodiment, the first operating system Networking Platform includes Hardware & software system, and the first kernel can be first
The kernel kernel of the first operating system of operating system Networking Platform, optionally, when the first kernel is compiled, will support
The code migrating of the second operating system is formed in the former kernel of the first operating system Networking Platform and can supported simultaneously
Start and run the first kernel of the first operating system Networking Platform and the second operating system.
Optionally, the major-minor function of the first operating system Networking Platform and the second operating system, or can also be set
One operating system Networking Platform and the second operating system are regardless of major-minor, in the present embodiment, the first operating system Networking Platform
For master operating system, the second operating system is secondary operating system.First operating system Networking Platform similarly hereinafter when operation first grasp
Make system and the second operating system, optionally, the first operating system, the second operating system can be, but not limited to for:linux
System, Android system, windows systems.The present embodiment is operated with the Linux system that home gateway is commonly used as first
System, is to illustrate as a example by the second operating system using abundant Android system.
Step S104, LXC containers are transplanted in the first operating system Networking Platform, and are designed for operation and start the
The component of two operating systems, wherein, LXC containers are used for the first operating system Networking Platform of management and the second operating system;
In the present embodiment, LXC containers are Linux system container, in operating in the first operating system, while can be with
Start the second operating system in the case of the first os starting, and manage in the first operating system Networking Platform
Two operating systems, the component for starting the second operating system for operation can include system plugin.It is software process, virtual logical
Road, system space etc..
Step S106, triggers the second operating system and starts in assembly by LXC containers.
By the present embodiment, using based on the first kernel the first operating system Networking Platform is compiled, wherein, the first kernel with
The code of the second operating system of operation is supported based on first operating system Networking Platform, is then transplanted in LXC containers
In first operating system Networking Platform, and it is designed for running the component for starting the second operating system, wherein, LXC containers
For managing the first operating system Networking Platform and the second operating system, finally by the second operation of LXC containers triggering system
System starts in assembly, solves the problems, such as in correlation technique that Networking Platform can only be realized while start an operating system
In the case where hardware cost is not increased by the function of Networking Platform operating system and the IN service of other operating systems
The effect for blending.
In optional embodiment according to embodiments of the present invention, LXC containers are being transplanted to into the first operating system gateway
After in platform, also include:Second operating system is installed to by the first operation system by pre-defined rule based on LXC containers
In the appointing system subregion of system, wherein, it is intended that there is no the first operating system in system partitioning.
In this optional embodiment, the system space of the first operating system Networking Platform can be isolated and subregion,
During concrete subregion, it is possible to use namespace or cgroup technologies by Linux system and Android system every
From, the first operating system Networking Platform is divided into into the first operating system space and the second operating system space, LXC containers lead to
It will be the second operating system reserved second operating system space, i.e. appointing system subregion to cross pre-defined rule, then by the second behaviour
Make system in appointing system subregion, and the first operating system is then arranged in the first operating system space.
In optional embodiment according to embodiments of the present invention, component includes:First operating system Networking Platform and second
The exchange channels of operating system, being designed for running the component of the second operating system of startup includes:
S11, designs first agent's process of the second operating system in the first operating system Networking Platform;
S12, designs second agent's process of the first operating system Networking Platform in the second operating system;
S13, wherein, first agent's process and second agent's process by exchange channels manage respectively the second operating system and
First operating system Networking Platform.
Optionally, the interaction between the first operating system and the second operating system in the first operating system Networking Platform passes through
First agent's process and second agent's process are provided with exchange channels completing in the first operating system Networking Platform, are used for
The data and letter of first agent's process and second agent's process when the second operating system and the first operating system is managed respectively
Number transmission.
In optional embodiment according to embodiments of the present invention, component also includes:Resource limit strategy and management distribution plan
Slightly, being designed for running the component of the second operating system of startup includes:Resource is designed in the first operating system Networking Platform
Restriction strategy and management allocation strategy, wherein, resource limit strategy and management allocation strategy are used to shield the first operating system
Network function in the second operating system Networking Platform.
In this optional embodiment, by shielding network work(of first operating system in the second operating system Networking Platform
Can, make only to be surfed the Net with the first operating system after the second os starting, i.e. run on Android system
The Networking Platform business process run on android application programs and Linux system is all using the network communication mould of Networking Platform
Block come realize online.
In optional embodiment according to embodiments of the present invention, the second operating system is triggered in component by LXC containers
Middle startup includes:
S21, the script of the first operating system Networking Platform is triggered to start LXC containers after the first operating system is started;
S22, calls LXC containers to start the first operating system by exchange channels.
In this optional embodiment, after the completion of the first os starting, by triggering script, start LXC and hold
Device, script is started come what is triggered by Linux gateways, and in S22, LXC triggers the startup of Android system,
The startup of application layer framework part is referred to, the startup of the related kernel portion of Android system is opened in linux system
It is dynamic.
Optionally, embodiments in accordance with the present invention, in the first operating system and the second operating system in the first operating system net
Close after starting in platform, the first operating system and the second operating system can also be upgraded, and specifically upgrading
During, it is possible to use local command upgrades with the optional mode of two kinds of webmaster remote upgrade to realize.
It is presented herein below to by the explanation of local command upgrading operation system, by LXC containers the second operating system being triggered
After starting in assembly, upgrading includes:
S31, by specifying order the first operating system of upgrading and/or the facility environment needed for the second operating system;
S32, the network parameter needed for configuration upgrading the first operating system of operation and/or the second operating system;
S33, performs respectively for the first order of the first operating system of upgrading and for the second of the second operating system of upgrading
Order.
Optionally, it is intended that order can be the downver orders under boot order lines, for the first operating system of upgrading
The first order can be downver linuxVersion orders, ordering for the second of the second operating system of upgrading can be with
It is downver android orders.Upgrade successfully, restarting equipment, runtime version.
It is presented herein below to by the explanation of webmaster remote upgrade operating system, by LXC containers the second operating system being triggered
After starting in assembly, method also includes:
S41, builds by the facility environment needed for the operating system of webmaster remote upgrade first and/or the second operating system;
S42, the network parameter needed for configuration upgrading the first operating system of operation and/or the second operating system;
S43, after the 3rd order for the first operating system of upgrading is performed, verifies to the second operating system;
S44, when verification passes through, the 4th order of the second operating system in receiving for indicating upgrading buffer area.
It should be noted that the buffer area being related in the present embodiment is cache memory section.
Optionally, configuration upgrading runs the first operating system and/or the network parameter needed for the second operating system except data
Outside parameter, also including optical network device is prepared, the 3rd order for the first operating system of upgrading can be download
LinuxVersion, it is to consider the safety of system backup to carry out verifying before the second operating system is upgraded.Rise
Level success, restarting equipment, runtime version.
In the upgrading mode above by webmaster remote upgrade operating system, carrying out verification to the second operating system includes:
S51, by the second operating system to be upgraded buffer area is downloaded to;
S52, verifies in buffer area to the second operating system.
Optionally, first the second operating system to be upgraded can be downloaded to into buffer area cache, is verified in buffer area logical
Later, a upgrade command can also be again triggered, the root.img in cache areas is read out, write root areas.Then
The system.img in cache areas is read out, system areas are write;And verify it is obstructed it is out-of-date do not perform upgrading, while
Network management platform is notified, needs to upgrade again.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-described embodiment
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
There is the part that technology contributes to embody in the form of software product, the computer software product is stored in one
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can
Being mobile phone, computer, server, or network equipment etc.) method that performs each embodiment of the invention.
Additionally provide a kind of starter of operating system in the present embodiment, the device is used to realizing above-described embodiment and excellent
Embodiment is selected, repeating no more for explanation had been carried out.As used below, term " module " can be realized pre-
Determine the software of function and/or the combination of hardware.Although the device described by following examples is preferably realized with software,
But hardware, or the realization of the combination of software and hardware is also may and to be contemplated.
Fig. 2 is the structured flowchart of the starter of operating system according to embodiments of the present invention, as shown in Fig. 2 the device
Including:Collector 20, processing module 22, starting module 24, wherein
Collector 20, for compiling the first operating system Networking Platform based on the first kernel, wherein, the first kernel is with the
The code of the second operating system of operation is supported based on one operating system Networking Platform;
In the present embodiment, the first operating system Networking Platform includes Hardware & software system, and the first kernel can be first
The kernel kernel of the first operating system of operating system Networking Platform, optionally, when the first kernel is compiled, will support
The code migrating of the second operating system is formed in the former kernel of the first operating system Networking Platform and can supported simultaneously
Start and run the first kernel of the first operating system Networking Platform and the second operating system.
Optionally, the major-minor function of the first operating system Networking Platform and the second operating system, or can also be set
One operating system Networking Platform and the second operating system are regardless of major-minor, in the present embodiment, the first operating system Networking Platform
For master operating system, the second operating system is secondary operating system.First operating system Networking Platform similarly hereinafter when operation first grasp
Make system and the second operating system, optionally, the first operating system, the second operating system can be, but not limited to for:linux
System, Android system, windows systems.The present embodiment is operated with the Linux system that home gateway is commonly used as first
System, is to illustrate as a example by the second operating system using abundant Android system.
Processing module 22, is of coupled connections with collector 20, for LXC containers to be transplanted to into the first operating system gateway
In platform, and it is designed for running the component for starting the second operating system, wherein, LXC containers are used for management first and operate
System gateway platform and the second operating system;
In the present embodiment, LXC containers are Linux system container, in operating in the first operating system, while can be with
Start the second operating system in the case of the first os starting, and manage in the first operating system Networking Platform
Two operating systems, the component for starting the second operating system for operation can include system plugin.It is software process, virtual logical
Road, system space etc..
Starting module 24, is of coupled connections with processing module 22, for triggering the second operating system in group by LXC containers
Start in part.
Fig. 3 is the alternative construction block diagram one of the starter of operating system according to embodiments of the present invention, as shown in figure 3,
The device also includes in addition to including all modules shown in Fig. 2:Module 30 is installed, for inciting somebody to action in processing module 22
After LXC containers are transplanted in the first operating system Networking Platform, based on LXC containers second is grasped by pre-defined rule
It is installed in the appointing system subregion of the first operating system as system, wherein, the appointing system subregion does not install the first operation
System.
Fig. 4 is the alternative construction block diagram two of the starter of operating system according to embodiments of the present invention, as shown in figure 4,
In addition to including all modules shown in Fig. 2, component includes the device:First operating system Networking Platform and the second operation system
The exchange channels of system, processing module 22 includes:First design cell 40, the second design cell 42, wherein,
First design cell 40, for designing first agent's process of the second operating system in the first operating system;
Second design cell 42, the second agent for designing the first operating system Networking Platform in the second operating system enters
Journey;
First agent's process and second agent's process manage respectively the second operating system and the first operation system by exchange channels
System Networking Platform.
Fig. 5 is the alternative construction block diagram three of the starter of operating system according to embodiments of the present invention, as shown in figure 5,
In addition to including all modules shown in Fig. 2, component also includes the device:Resource limit strategy and management allocation strategy, place
Reason module 22 includes:3rd design cell 50, for designing resource limit strategy in the first operating system Networking Platform
With management allocation strategy, wherein, resource limit strategy and management allocation strategy be used for shielding the first operating system second behaviour
Make the network function in system gateway platform.
Fig. 6 is the alternative construction block diagram four of the starter of operating system according to embodiments of the present invention, as shown in fig. 6,
In addition to including all modules shown in Fig. 4, starting module 24 also includes the device:First start unit 60, second are opened
Moving cell 62, wherein,
First start unit 60, for the script of the first operating system Networking Platform is triggered after the first operating system is started with
Start LXC containers;
Second start unit 62, for calling LXC containers to start the second operating system by exchange channels.
Optionally, embodiments in accordance with the present invention, in the first operating system and the second operating system in the first operating system net
Close after starting in platform, the first operating system and the second operating system can also be upgraded, and specifically upgrading
During, it is possible to use local command upgrades with the optional mode of two kinds of webmaster remote upgrade to realize.
It is presented herein below to by the explanation of local command upgrading operation system, Fig. 7 is operating system according to embodiments of the present invention
Update device structured flowchart, as shown in fig. 7, comprises:First builds module 70, the first configuration module 72, holds
Row module 74, wherein,
First builds module 70, for creating by specifying order the first operating system of upgrading and/or the second operating system institute
The facility environment for needing;
First configuration module 72, for configuration upgrading the first operating system of operation and/or the network needed for the second operating system
Parameter;
Performing module 74, operates for performing respectively for the first order of the first operating system of upgrading and for upgrading second
Second order of system.
It is presented herein below to by the explanation of webmaster remote upgrade operating system, Fig. 8 is operating system according to embodiments of the present invention
Update device alternative construction block diagram one, as shown in figure 8, including:Second builds module 80, the second configuration module
82nd, correction verification module 84, upgraded module 86, wherein,
Second builds module 80, for building by the operating system of webmaster remote upgrade first and/or the second operating system institute
The facility environment for needing;
Second configuration module 82, for configuration upgrading the first operating system of operation and/or the network needed for the second operating system
Parameter;
Correction verification module 84, for after the 3rd order for the first operating system of upgrading is performed, to the second operating system
Verified;
Upgraded module 86, for the of the second operating system in when verification passes through, receiving for indicating upgrading buffer area
Four orders.
Fig. 9 is the alternative construction block diagram two of the update device of operating system according to embodiments of the present invention, as shown in figure 9,
In addition to all modules shown in Fig. 8, correction verification module 84 also includes:Download unit 90, verification unit 92, wherein,
Download unit 90, for the second operating system to be upgraded to be downloaded to into buffer area;
Verification unit 92, for verifying to the second operating system in buffer area.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned module distinguishes position
In multiple processors.
With reference to optional embodiment of the invention, the present invention is described in detail, there is provided one kind uses LXC
Container starts the scheme of Android system, comprises the steps:
The kernel of S61, design linux gateways, based on the kernel of general Linux Networking Platform, transplanting
Hold Android system operation code in kernel;
S62, based on new kernel compilings linux Networking Platform versions, the basic gateway function of test, it is ensured that basic gateway
Function is normal;
S63, LXC containers are transplanted in linux Networking Platform versions;
S64, design resource limit and management module
The exchange channels of S64, design Networking Platform and Android system.
S65, compiling Android system version, and be installed in gateway system specified subregion;
S66, startup Linux gateway system versions
S67, startup LXC containers;
S68, the startup that Android system is triggered by LXC containers;
Optionally, in the above-described embodiments, in S67, start LXC containers, be by the startup foot of Linux gateways
Original triggering;In S68, LXC triggers the startup of Android system, refers to the startup of application layer framework part,
The startup of the related kernel portion of Android system is completed.
The upgrade method of system version is described below, the upgrade method of system version there are two kinds:
One kind is upgraded below by downver orders in boot order lines, and upgrade step is as follows:
S71, the facility environment for building boot stage upgrade-system version programs.
S72, electrifying startup ONU equipment, Configuration network parameter.
S73, execution downver linuxVersion orders, upgrade gateway platform program;
S74, execution downver android orders, Android system program of upgrading;
S75, upgrade successfully, restarting equipment, runtime version;
Another optional upgrading mode is by webmaster remote upgrade, and upgrade step is as follows:
S81, the facility environment for building upgrade-system version program under version;
S82, ONU equipment electrifying startup, Configuration network parameter;Optical network unit optical network devices
S83, execution download linuxVersion, upgrade gateway platform program;
S84, execution download androidSys, first download to cache areas android versions;
S85, android versions are verified;
S86, verification pass through, then trigger a upgrade command, and the root.img in cache areas is read out, and write root
Area.Then the system.img in cache areas is read out, writes system areas;
S87, verification, while notifying network management platform, need to upgrade again not by not performing upgrading;
S88, upgrade successfully, restarting equipment, runtime version;
Optionally, androidSys runs the root.img and system.img for needing comprising Android system.
Because Android system version is larger, while considering system backup safety, cache subregions are introduced, be easy to
The verification of version and system recovery.
Figure 10 is the system framework figure merged according to the linux Networking Platform and Android platform of alternative embodiment of the present invention,
As shown in Figure 10,10 and it is embodied as elaborating technical scheme below in conjunction with the accompanying drawings:
A kind of technology and method for upgrading system of use LXC containers startup Android system of the present invention specifically includes following
Step:
The system framework figure that linux Networking Platform and Android platform according to Figure 10 merges,
The flow process is comprised the following steps again:
S91:Prepare linux kernel, the kernel code of transplantation support Android system makes net in gateway kernel code
Close platform and Android system shares portion linux kernel;
S92:Compiling linux Networking Platform basic version;
S93:Compiling Android system version;
S94:Design LXC containers, using namespace and cgroup technologies by linux Networking Platform and android
Two sets of runtime isolation.
S95:Design resource limit and management allocation strategy.
S96:The exchange channels of design linux Networking Platform and Android system;Android is designed in Networking Platform side
The agent process of system, in android sides the agent process of Networking Platform is designed.The interaction of two systems is all by agency
Complete.
S97:The network function of shielding Android system, makes android application programs and Networking Platform business process all make
With the network communication module of Networking Platform.
S98:Linux Networking Platform version and Android system version are downloaded in veneer, starts version.
Figure 11 is the system version Booting sequence figure according to alternative embodiment of the present invention, and as shown in figure 11, the flow process includes:
Step S201:System electrification, bootloader programs start to start, and initialize CPU depositors, initialization system
The equipment initialization such as system peripheral hardware, including internal memory, flash, network interface, serial ports.
Step S202:The startup of linux kernel.
Step S203:The init processes of linux kernel start to start.
Step S204:After the basic function version startup of linux Networking Platform is finished, init processes start to start LXC appearances
Device.
Step S205:After the startup of LXC containers is completed, subprocess calls start, is opened in vessel space by execve
The init processes of dynamic Android system.
Step S206:The init processes of Android system start some services for performing Android system.
Step S207:After the completion of services starts, start entrance process zygote for starting Andorid application frameworks.
Step S208:Start system server.
Step S209:Start server manager.
Step S210:Finally start the app application programs of correlation;
Figure 12 is the Booting sequence figure of the LXC containers of alternative embodiment of the present invention, and as shown in figure 12, step includes:
S301, the management structure lxc_handler structure of initialization container, returns the structure, in lxc_handler except
Name comprising container, attribute, further include char*cgroup member for associating one cgroup of correspondence;
S302, passes ginseng assignment/parsing configuration file;
S303, setting container state is STARTING;
S304, namespace attribute is arranged;
S305, creates the network equipment/tty/console equipment of container;
S306, sets designated root file system path;
S307, according to NameSpace clone_flags, using new namespace process is created, therefore the process of container is
It is isolated from each other;
S308, creates cgroup containers, and task pid is added to cgroup;
S309, parent process responds subprocess and arranges cgroup attributes according to configuration file by lxc_sync_barrier_child;
S310, arranges subprocess network interface attribute setup_network, comprising ip, interface name etc.;
S311, Setup_rootfs root file system and mount are loaded;
S312, arranges subprocess TTY/console;
S313, Changroot arrange root file system (Setup_rootfs_pivot_root);
S314, calls lxc_sync_barrier_parent inquiries parent process synchronously to arrange cgroups;
S315, Lxc-poll (process container order etc.);
S316, subprocess calls start, the application program init of band after execve start-up parameter-d.
Figure 13 is the Android system Booting sequence figure of alternative embodiment of the present invention, as shown in figure 13, Android system
Start init processes, perform start task, including ril-daemon processes, Media multimedias, Bootsound start sound
Pleasure, boot animation, service managerZ-HU etc., then start the entrance process service Zygote of application framework, start virtual machine,
Such as Dalvik VM, Systemserver system services are opened, be to open various application programs to prepare, adjusted according to selection
With Window Manager window managers, Package Manager Package Managers, Power Manager power supplys
Manager AccountManager account managers, Content Manager catalog managers, Handare Service handss
The service of holding, Sensor Service sensing services, Connectivity Service Connection Services, Location Manager positions
Manager, Search Service search services, Battery Service battery services are put, Activity management is finally entered
Device, activation system component Home Activity, starts completely Android system.
Figure 14 is the flow chart of the boot stage system version program upgrading of alternative embodiment of the present invention, as shown in figure 14,
The method of boot stage system version program upgrading specifically includes following steps:
Step S501:ONU equipment is connected PC by netting twine and Serial Port Line, in PC side tftp client is opened
End, is ready to need the version program of upgrading.
Step S502:Electrifying startup ONU equipment, presses enter key, into boot orders during boot starts
OK, setenv orders are input into, configure the IP address of ONU sides and tftp server side in the same network segment.
Step S503:Perform downver linuxVersion orders, upgrade gateway platform program;
Step S504:Downver android orders are performed, Android system program of upgrading;
Step S505:Upgrade successfully, restarting equipment, runtime version;
Figure 15 is the flow chart of system version program upgrading after the version of alternative embodiment of the present invention starts, such as Figure 15 institutes
Show, upgrade-system version method specifically includes following steps after gateway version gets up:
Step S601:ONU equipment is connected PC by netting twine, in PC side WFTP clients are opened, it is accurate
Getting ready needs the version program of upgrading.
Step S602:ONU equipment electrifying startup, version fully up after, by PC telnet to gateway, remotely
The IP address and vlan parameters of configuration ONU;
Step S603:Perform download linuxVersion orders, upgrade gateway platform program;
Step S604:Upgrade successfully, perform download androidSys, download android versions to cache areas,
And version is verified;As the upgrading of step S603 is unsuccessful, network management platform need to be reported, need to re-execute step S603,
Upgrade gateway platform program;
Step S605:Android versions are verified successfully, and upgrading android versions are to root areas and system areas.Such as android
Version verification is unsuccessful, need to report network management platform, re-downloads android versions;
Step S606:Upgrade successfully, restarting equipment.
On the one hand the intelligent home gateway of the present embodiment will support that the IN service of anroid operating systems, such as a sudden peal of thunder are downloaded,
Smart home, key speed-raising etc., these IN services can be realized by installing third party android plug-in units, together
When can also realize the requirement of existing home gateway basic function, such as, and speech business, business of networking, IPTV etc.,
The fusion of gateway basic service and anroid IN services is realized by using LXC container techniques.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
To be arranged to store the program code for performing following steps:
S1, based on the first kernel the first operating system Networking Platform is compiled, wherein, the first kernel is with the first operating system net
Close the code that the second operating system of operation is supported based on platform;
S2, LXC containers are transplanted in the first operating system Networking Platform, and are designed for the operation of operation startup second
The component of system, wherein, LXC containers are used for the first operating system Networking Platform of management and the second operating system;
S3, triggers the second operating system and starts in assembly by LXC containers.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment and optional embodiment
Example, the present embodiment will not be described here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Realizing, they can be concentrated on single computing device computing device, or be distributed in multiple computing devices and constituted
Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to by they
Storage is performed in the storage device by computing device, and in some cases, can be held with the order being different from herein
The shown or described step of row, or they are fabricated to respectively each integrated circuit modules, or will be many in them
Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware
Combine with software.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the technology of this area
For personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made it is any
Modification, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of startup method of operating system, it is characterised in that include:
First operating system Networking Platform is compiled based on the first kernel, wherein, first kernel is with the described first behaviour
Make the code that the second operating system of operation is supported based on system;
LXC containers are transplanted in the first operating system Networking Platform, and are designed for operation and start described the
The component of two operating systems, wherein, the LXC containers are used to manage the first operating system Networking Platform and institute
State the second operating system;
Second operating system is triggered by the LXC containers to start in the component.
2. method according to claim 1, it is characterised in that LXC containers are being transplanted to into first operating system
After in Networking Platform, methods described also includes:
Second operating system is installed to by the first operation system by pre-defined rule based on the LXC containers
In the appointing system subregion of system, wherein, the appointing system subregion does not install first operating system.
3. method according to claim 1, it is characterised in that the component includes:The first operating system gateway
The exchange channels of platform and second operating system, it is described to be designed for running startup second operating system
Component includes:
First agent's process of second operating system is designed in first operating system;
Second agent's process of the first operating system Networking Platform is designed in second operating system;
Wherein, first agent's process and second agent's process manage respectively described second by exchange channels
Operating system and the first operating system Networking Platform.
4. method according to claim 1, it is characterised in that the component also includes:Resource limit strategy and management
Allocation strategy, the component for being designed for running startup second operating system includes:
The resource limit strategy and the management allocation strategy are designed in the first operating system Networking Platform,
Wherein, the resource limit strategy and the management allocation strategy are used to shielding first operating system described the
Network function in two operating system Networking Platform.
5. method according to claim 3, it is characterised in that described that second behaviour is triggered by the LXC containers
Make system and start in the component to include:
After first operating system is started the script of the first operating system Networking Platform is triggered to start
State LXC containers;
The LXC containers are called to start second operating system by the exchange channels.
6. method according to claim 1, it is characterised in that trigger described second by the LXC containers described
After operating system starts in the component, methods described also includes:
By specifying order upgrading first operating system and/or the facility environment needed for second operating system;
Configuration upgrading runs first operating system and/or the network parameter needed for second operating system;
Perform respectively for the first order of first operating system of upgrading and for the second operation system that upgrades
Second order of system.
7. method according to claim 1, it is characterised in that trigger described second by the LXC containers described
After operating system starts in the component, methods described also includes:
Build by the equipment needed for the first operating system described in webmaster remote upgrade and/or second operating system
Environment;
Configuration upgrading runs first operating system and/or the network parameter needed for second operating system;
After the 3rd order for first operating system of upgrading is performed, second operating system is carried out
Verification;
When verification passes through, the 4th order of second operating system in receiving for indicating upgrading buffer area.
8. method according to claim 7, it is characterised in that carrying out verification to second operating system includes:
Second operating system to be upgraded is downloaded to into buffer area;
Second operating system is verified in the buffer area.
9. the method according to any one of claim 1 to 8, it is characterised in that first operating system is linux
System, second operating system is Android system.
10. a kind of starter of operating system, it is characterised in that include:
Collector, for compiling the first operating system Networking Platform based on the first kernel, wherein, in described first
Core supports the code for running the second operating system based on the first operating system Networking Platform;
Processing module, for LXC containers to be transplanted in the first operating system Networking Platform, and is designed for
Operation starts the component of second operating system, wherein, the LXC containers are used to manage the first operation system
System Networking Platform and second operating system;
Starting module, starts for triggering second operating system by the LXC containers in the component.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648586.7A CN106569842A (en) | 2015-10-09 | 2015-10-09 | Startup method and device for operating system |
PCT/CN2016/091046 WO2017059724A1 (en) | 2015-10-09 | 2016-07-22 | Operating system starting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648586.7A CN106569842A (en) | 2015-10-09 | 2015-10-09 | Startup method and device for operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106569842A true CN106569842A (en) | 2017-04-19 |
Family
ID=58487225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510648586.7A Pending CN106569842A (en) | 2015-10-09 | 2015-10-09 | Startup method and device for operating system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106569842A (en) |
WO (1) | WO2017059724A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107621956A (en) * | 2017-10-09 | 2018-01-23 | 江苏航天龙梦信息技术有限公司 | A kind of method of network start-up operation system |
CN111338701A (en) * | 2020-02-25 | 2020-06-26 | 邦彦技术股份有限公司 | Network equipment starting method and network equipment |
WO2021009612A1 (en) * | 2019-07-16 | 2021-01-21 | International Business Machines Corporation | Method for a container-based virtualization system |
CN114090096A (en) * | 2022-01-21 | 2022-02-25 | 成都云祺科技有限公司 | Method, system and storage medium for implementing network virtual file system |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554934B (en) * | 2019-09-06 | 2022-08-19 | 超越科技股份有限公司 | Embedded equipment and system partitioning and upgrading method thereof |
CN113626060B (en) * | 2021-08-06 | 2023-08-01 | 天津津航计算技术研究所 | Online upgrade method based on separate storage under vxworks system |
CN115988129B (en) * | 2022-12-28 | 2024-08-09 | 天翼电信终端有限公司 | Dual-system cloud security mobile phone wifi security use method |
CN116541085B (en) * | 2023-07-05 | 2023-09-12 | 成都阿加犀智能科技有限公司 | Android/Linux fusion method, device, equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6567977B1 (en) * | 1999-11-15 | 2003-05-20 | Intel Corporation | Method and apparatus for software program installation preview directed to system software |
CN103645957B (en) * | 2013-12-25 | 2017-03-08 | 北京搜狐新媒体信息技术有限公司 | A kind of resources of virtual machine management-control method and device |
CN104516782B (en) * | 2014-12-26 | 2020-05-12 | 上海迈微软件科技有限公司 | Method and equipment for switching operating environments of intelligent system |
-
2015
- 2015-10-09 CN CN201510648586.7A patent/CN106569842A/en active Pending
-
2016
- 2016-07-22 WO PCT/CN2016/091046 patent/WO2017059724A1/en active Application Filing
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107621956A (en) * | 2017-10-09 | 2018-01-23 | 江苏航天龙梦信息技术有限公司 | A kind of method of network start-up operation system |
CN107621956B (en) * | 2017-10-09 | 2021-11-30 | 江苏航天龙梦信息技术有限公司 | Method for starting operating system based on network |
WO2021009612A1 (en) * | 2019-07-16 | 2021-01-21 | International Business Machines Corporation | Method for a container-based virtualization system |
CN114072765A (en) * | 2019-07-16 | 2022-02-18 | 国际商业机器公司 | Method for container-based virtualization system |
GB2599335A (en) * | 2019-07-16 | 2022-03-30 | Ibm | Method for a container based virtualization system |
US11385923B2 (en) | 2019-07-16 | 2022-07-12 | International Business Machines Corporation | Container-based virtualization system extending kernel functionality using kernel modules compiled by a compiling container and loaded by an application container |
GB2599335B (en) * | 2019-07-16 | 2023-11-08 | Ibm | Method for a container based virtualization system |
CN111338701A (en) * | 2020-02-25 | 2020-06-26 | 邦彦技术股份有限公司 | Network equipment starting method and network equipment |
CN114090096A (en) * | 2022-01-21 | 2022-02-25 | 成都云祺科技有限公司 | Method, system and storage medium for implementing network virtual file system |
CN114090096B (en) * | 2022-01-21 | 2022-04-15 | 成都云祺科技有限公司 | Method, system and storage medium for implementing network virtual file system |
Also Published As
Publication number | Publication date |
---|---|
WO2017059724A1 (en) | 2017-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569842A (en) | Startup method and device for operating system | |
US10705808B2 (en) | Software defined network controller | |
CN102880498B (en) | The method of virtual SD card on the device of Android system | |
CN110673923B (en) | XWIKI system configuration method, XWIKI system and computer equipment | |
CN109495584B (en) | Internet of things equipment access method, device, equipment and medium | |
CN107733985B (en) | Method and device for deploying functional components of cloud computing system | |
CN110134426A (en) | A kind of embedded system upgrade method, device and terminal device | |
CN105704188B (en) | Using the dispositions method and device with service | |
US20180152392A1 (en) | Hybrid cloud management | |
CN107483243A (en) | A kind of automatic deployment method and equipment of OpenStack platforms | |
EP2614432A1 (en) | System and method for automated deployment of a multi-component computer environment | |
CN110098952A (en) | A kind of management method and device of server | |
CN105487859A (en) | Template based WEB deployment method for big data components | |
CN106502713A (en) | A kind of method for upgrading software and system | |
CN114816676A (en) | System and method for realizing multi-tenant deployment of low code development platform | |
CN109885332A (en) | Image quality chip software upgrade method, device, display equipment and storage medium | |
CN106708573A (en) | System and method used for automatic installation of Hadoop cluster | |
CN113760462A (en) | Method and device for constructing verification environment of dispatching automation system | |
CN109992295B (en) | Version management method and server | |
CN112241373A (en) | Automatic test method, test device, processor and test system | |
CN115268969A (en) | Android system upgrading method and device and terminal equipment | |
CN103475694A (en) | Parallel configuration method of cloud computing system | |
CN109697076A (en) | A kind of dynamic updating method of application software resources, device and equipment | |
CN111143193B (en) | Big data service testing method, system, terminal and storage medium based on RobotFramework | |
CN104836708B (en) | The binding method and device of information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170419 |