CN105335178A - Startup control method and apparatus - Google Patents

Startup control method and apparatus Download PDF

Info

Publication number
CN105335178A
CN105335178A CN201410362766.4A CN201410362766A CN105335178A CN 105335178 A CN105335178 A CN 105335178A CN 201410362766 A CN201410362766 A CN 201410362766A CN 105335178 A CN105335178 A CN 105335178A
Authority
CN
China
Prior art keywords
mode
startup
switching command
image file
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410362766.4A
Other languages
Chinese (zh)
Other versions
CN105335178B (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.)
Keen (Chongqing) Microelectronics Technology Co., Ltd.
Original Assignee
Chongqing Cyit Communication Technologies Co Ltd
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 Chongqing Cyit Communication Technologies Co Ltd filed Critical Chongqing Cyit Communication Technologies Co Ltd
Priority to CN201410362766.4A priority Critical patent/CN105335178B/en
Publication of CN105335178A publication Critical patent/CN105335178A/en
Application granted granted Critical
Publication of CN105335178B publication Critical patent/CN105335178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Embodiments of the invention disclose a startup control method and apparatus. The method is implemented by comprising: after a terminal receives a startup instruction, executing a boot program, and then receiving a mode selection instruction; determining a startup mode specified by the mode selection instruction, and determining resource configuration corresponding to the startup mode, wherein the resource configuration defines services associated with the startup mode and application configuration; and loading the resource configuration and a kernel image file, and then starting the terminal. The mode selection instruction is specified in the startup process, and the startup is performed in the startup mode specified by the mode selection instruction; the startup mode corresponds to the resource configuration, and the resource configuration defines the services associated with the startup mode and the application configuration, so that all applications and services are unnecessarily started during each startup; and startup items can be matched with current demands, so that the startup speed is increased, the startup time is shortened, and the terminal resources are saved.

Description

A kind of startup control method, and device
Technical field
The present invention relates to terminal device technical field, particularly one starts control method, and device.
Background technology
From strength to strength, the services and applications of operation system of smart phone start-up loading also gets more and more the peripheral functionality of intelligent hand-held terminal equipment.Load services and applications can have: call or, online, camera, radio, multimedia player, sound-track engraving apparatus, e-book, electric torch, etc.The services and applications of operation system of smart phone start-up loading also gets more and more, and causes starting slowly.Therefore, consider how to accelerate the startup of equipment and the speed of execution, improving intelligent terminal work efficiency and resource utilization, is significantly.
The start of intelligent hand-held terminal is the process of a more complicated, and for the intelligent machine of Android (android) system, starting procedure is as follows:
A, user press key;
B, power module power on after this action being detected, and reset central processing unit (CentralProcessingUnit, CPU) simultaneously;
After the success of C, cpu reset, perform bootloader (boot).The input equipments such as bootloader meeting initialization button, touch-screen, basic hardware interface, and external memory storage etc., and img (the secondary shelves name of archives of image format) image file is loaded into RAM (Random-AccessMemory, random access memory) from flash (flash memory) and runs.Two main img image files are zimage (kernel mirror image file) and Ramdisk (virtual flash disk).Wherein zinmage comprises kernel (core) kernel, Ramdisk is the root file system of android, comprise first process Init (kernel starts voluntarily) that kernel has started rear loading, and important startup configuration file, which control the startup of whole system.
D, kernel kernel loads.This part mainly comprises:
(1) initialization of processor cores, the initialization of internal storage structure, opens MMU (MemoryManagementUnit, memory management unit), create kernel page table, map the physical memory and I/O (Input/Output, I/O) space that have more;
(2) exception vector table and initialization interrupt processing function is created;
(3) initialization system kernel process scheduler and tick interrupt treatment mechanism;
(4) initialization serial ports control desk;
(5) establishment and initialization system cache (cache memory), for various memory mechanism provides buffer memory, comprising: dynamic memory distribution, Virtual File System and caching of page;
(6) initialization memory management, detects memory size and committed memory situation;
(7) inter-process communication mechanisms of initialization system;
(8) initialization apparatus drives;
(9) call rest_Init () function after completing, first the process Init process setting up system starts to terminate kernel.
E, file system and execution Init.The service of Android system and application are included in system (system).Linux (a kind of operating system of increasing income) kernel to be arrived androidInit process after starting, Init process performs file foundation, carry, RC (Resource, resource file) document analysis, setup of attribute, startup service, perform an action, the operation such as socket monitoring, wherein the operation of RC document analysis can resolve Init.rc configuration file, and Init.rc is configured with the service and application that need to start.
Android operating system arithmetic capability and function ratio traditional function cell phone system more powerful, have very strong application scalability, good user interface; But along with the peripheral module of smart mobile phone and the increase of function, the services and applications that operating system loads also gets more and more, also make extend the start-up time of equipment.
But, in some occasion, use when such as emergency condition opens camera, low electricity on torch, aircraft and open mp3 (MovingPictureExpertsGroupAudioLayerIII, Motion Picture Experts Group's audio frequency the IIIth layer), etc.User, when only using these separate functional blocks, needs the start-up course of waiting system long time loading; In addition, start irrelevant application software and service, too much resource can be consumed.
Summary of the invention
Embodiments provide a kind of startup control method, and device, for reducing start-up time, save the resource of terminal.
A kind of startup control method, comprising:
Terminal, after receiving start-up command, performs boot, then receiving mode selection instruction;
Determine the start-up mode that described mode selection command is specified, determine the resource distribution corresponding with described start-up mode; Described resource distribution defines the service that is associated with described start-up mode and applies and configures;
Load described resource distribution and kernel mirror image file, then start described terminal.
A kind of startup control device, comprising:
Instruction reception unit, for after receiving start-up command, performs boot, then receiving mode selection instruction;
Pattern determining unit, for determining the start-up mode that described mode selection command is specified;
Configuration determining unit, for determining the resource distribution corresponding with described start-up mode; Described resource distribution defines the service that is associated with described start-up mode and applies and configures;
Resource loading unit, for loading described resource distribution and kernel mirror image file, then starts described terminal.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: designated mode selection instruction in start-up course, and start according to the start-up mode that mode selection command is specified, start-up mode is then to having resource distribution, then define the service be associated with start-up mode in resource distribution and apply and configure, unnecessary so each startup all starts all application and service, startup item is mated with current demand, thus start quickly speed reduces start-up time, and save the resource of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is embodiment of the present invention method flow schematic diagram;
Fig. 2 is the apparatus structure schematic diagram of embodiment of the present invention smart mobile phone;
Fig. 3 is the invention process Method And Principle schematic diagram;
Fig. 4 is embodiment of the present invention method flow schematic diagram;
Fig. 5 is the invention process Method And Principle schematic diagram;
Fig. 6 is embodiment of the present invention method flow schematic diagram;
Fig. 7 is that the embodiment of the present invention starts control device structural representation;
Fig. 8 is that the embodiment of the present invention starts control device structural representation;
Fig. 9 is that the embodiment of the present invention starts control device structural representation;
Figure 10 is that the embodiment of the present invention starts control device structural representation.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of startup control method, as shown in Figure 1, comprising:
101: terminal, after receiving start-up command, performs boot, then receiving mode selection instruction;
In embodiments of the present invention, boot is the input equipments such as bootloader, bootloader meeting initialization button, touch-screen, basic hardware interface, and external memory storage etc.; The instruction can selected in a receiving mode after executing boot.Mode selection command can specify the start-up mode of selection, and start-up mode is used for representing and starts in which way, such as: start a certain specific standalone feature, or, the startup of repertoire.
102: determine the start-up mode that above-mentioned mode selection command is specified, determine the resource distribution corresponding with above-mentioned start-up mode; Above-mentioned resource distribution defines the service that is associated with above-mentioned start-up mode and applies and configures;
In embodiments of the present invention, start-up mode can one or several independently functions corresponding, and one independently function then can more corresponding servers associated therewith and application configuration, such as:
Use multimedia player function, display screen, audio-frequency module, gravity sensor, outside TF card (Trans-flashCard, trans flash card) etc. need be started;
Use camera or camera function, camera, flashlamp, display screen, TF card etc. need be started;
Use flashlight function, need flashlamp be started;
Use sound-track engraving apparatus function, audio-frequency module, display screen need be started;
Use GPS (GlobalPositionSystem, GPS) navigating instrument function, display screen, GPS module, TF card, audio-frequency module etc. need be started;
Use ebook function, display screen, TF card need be started.
The citing of above standalone feature is not exhaustive, should not be construed as the restriction to the embodiment of the present invention.
In embodiments of the present invention, as long as resource distribution have define the service that is associated with above-mentioned start-up mode and apply the function configured just passable, the embodiment of the present invention gives two kinds of optional implementations, specific as follows: above-mentioned resource distribution comprises: the kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily; Or, the virtual flash disk image file corresponding with start-up mode.In subsequent embodiment, will be illustrated with the example that has particular application as respectively with regard to these two kinds of implementations in Android system.
103: load above-mentioned resource distribution and kernel mirror image file, then start above-mentioned terminal.
The embodiment of the present invention, designated mode selection instruction in start-up course, and start according to the start-up mode that mode selection command is specified, start-up mode is then to having resource distribution, then define the service be associated with start-up mode in resource distribution and apply and configure, unnecessary so each startup all starts all application and service, and startup item is mated with current demand, thus start quickly speed reduces start-up time, and save the resource of terminal.
In embodiments of the present invention, for defining the service that is associated with above-mentioned start-up mode and applying the different implementation configured, additionally provide receive mode and the treatment scheme of mode selection command corresponding with it, specific as follows: alternatively, if described resource distribution is the kernel corresponding with start-up mode configured in virtual flash disk image file start resource file voluntarily, above-mentioned receiving mode selection instruction comprises: the first virtual flash disk image file of load default, then receiving mode selection instruction;
The above-mentioned resource distribution of above-mentioned loading comprises:
After determining that there is the kernel corresponding with above-mentioned start-up mode starts resource file voluntarily, then amendment startup configures and restarts, make in restarting process, to load above-mentioned virtual flash disk image file, and the kernel corresponding with start-up mode in above-mentioned virtual flash disk image file starts resource file voluntarily.
After terminal has started, owing to this startup may only start partial function and service, in follow-up use procedure, may need to use other functions and service, so embodiments provide the scheme of carrying out start-up mode switching, specific as follows: after above-mentioned terminal has started, said method also comprises:
After receiving pattern switching command, start and be configured with the application program of the startup item corresponding with above-mentioned pattern switching command, and by the above-mentioned application program launching startup item corresponding with above-mentioned pattern switching command; Or, after receiving pattern switching command, record the start-up mode corresponding with above-mentioned pattern switching command, then restart; Or, after receiving pattern switching command, record the resource distribution that the start-up mode corresponding with above-mentioned pattern switching command is corresponding, then restart.
In above two schemes, front one does not need to restart, and speed is faster.Rear a kind of scheme, then can make system cloud gray model more reliable and more stable by restarting.In front a kind of mode, the application program starting the configuration startup item not corresponding with above-mentioned pattern switching command can also be closed.
For the handover scheme of different start-up mode, the embodiment of the present invention additionally provides the flow scheme that concrete switching command realizes, specific as follows: resource distribution corresponding to the start-up mode that above-mentioned record is corresponding with above-mentioned pattern switching command comprises:
If described resource distribution is the kernel corresponding with start-up mode configured in virtual flash disk image file start resource file voluntarily, then filename kernel corresponding for the start-up mode corresponding with above-mentioned pattern switching command being started voluntarily resource file is written to parameter chained list;
If above-mentioned resource distribution is the virtual flash disk image file corresponding with start-up mode, then the file address of virtual flash disk image file corresponding for the start-up mode corresponding with above-mentioned pattern switching command is written to parameter chained list.
The embodiment of the present invention can solve certain separate functional blocks of current smart mobile phone, the shortcoming cannot enabled fast under special circumstances, improves the smart mobile phone level of resources utilization, greatly shortens functional module start-up time.Below in conjunction with accompanying drawing and embodiment, the embodiment of the present invention is described in detail.Following examples are all described for Android system.
Fig. 2 is the apparatus structure schematic diagram of smart mobile phone.
Smart mobile phone comprises load module, memory module, base band and application processing module, radio-frequency module, peripheral functionality module and power module.
Load module, comprises button and touch-screen, inputs for user instruction.
Memory module, comprises flash (quick flashing) storer and RAM (Random-AccessMemory, random access memory are called for short random access memory).Flash storer is mainly used in stand-by program and data, and RAM storer is used as the internal memory of loading and working procedure.The code copies of flash storer is needed to perform in RAM storer during start.
Radio-frequency module, realizes radio communication, wireless data is passed back base band and application processing module.
Base band and application processing module, process baseband signal and application program, completion system controls, and has interface to be connected with other submodules outside.
Peripheral functionality module, comprises camera, audio frequency apparatus, display screen, flashlamp, radio, button, various sensor, bluetooth, WIFI (Wireless-Fidelity, Wireless Fidelity), GPS, TF card, etc. other peripheral modules.
Power module, for modules all in device provide power supply, the power supply of each submodule can gauge tap separately, to reach the object of power saving.
The embodiment of the present invention adopts following methods to realize the quick startup of terminal device:
Method 1: multiple Ramdisk mirror image is selected to load.
Fig. 3 describes the principle schematic of the method.
The service that opens or closes and application configuration is needed under Init.rc file in Ramdisk image file defines each start-up mode.Init.rc needs to be compiled in advance in Ramdisk mirror image, and kernel is resolved by system after loading Zimage, cannot operate before loading kernel.Therefore, for each start-up mode, all can a corresponding Ramdisk mirror image.In the bootloader stage, bootloader program can input according to user, selects a kind of Ramdisk mirror image to load.Input mode can be button, also can be touch-screen.Because the parsing of system to Init.rc file is after kernel has loaded, therefore each start-up mode all shares a kernel mirror image, only needs to store multiple Ramdisk image file.The flash storage address space that each Ramdisk mirror image correspondence one is fixing, bootloader can input according to user, loads the Ramdisk image file of assigned address.
In figure 3, the pattern of an independent startup that each Init.rc is corresponding, be followed successively by camera from 1 ~ n and start that configuration, player start configuration fast, radio starts configuration fast fast ... e-book starts configuration fast, def is then defined as acquiescence and starts configuration.
Fig. 4 is the process flow diagram of embodiment of the present invention method 1, and please also refer to Fig. 2 and Fig. 3, setting up procedure is specific as follows:
S401, user presses starting key;
S402, system electrification, cpu reset;
S403, after cpu reset success, performs bootloader program, the peripheral hardwares such as initiating hardware interface, touch-screen, button, memory devices etc.At this moment hardware interface can realize bottom communication, and load module, display screen normally work, and system can receive external key input information, simultaneously can on screen type information (such as pointing out user to select the information of start-up mode);
S404, whether systems axiol-ogy has key-press input.Input information can come from button, also can be touch-screen.If meet quick entry condition (n) to enter S405, if do not meet quick entry condition, enter S407;
S405, if there is key-press input, and key-press input meets the initial conditions (such as have selected a certain fast attack mode) of fast attack mode, then load the image files such as the Ramdisk of zimage and corresponding fast attack mode; This step can load Ramdisk (n) mirror image;
S406, starts separate functional blocks, has started fast.
S407, if key-press input does not satisfy condition, then loads the image files such as the Ramdisk of zimage and acquiescence; This step can load Ramdisk (def) mirror image;
S408, normally starts terminal.
S409, after user uses separate functional blocks, system can open all the other module service and program, is switched to other patterns.The specific implementation of this step is introduced in detail separately in subsequent embodiment.
Method 2: the multiple Init.rc file of single mirror image is selected to load.
Fig. 5 describes the theory diagram of the method.
When system starts, only have loading Ramdisk image file, in Ramdisk, have the Init.rc file of the different start-up mode of multiple correspondence.Kernel has loaded rear operation, first resolves the Init_def.rc configuration file of acquiescence, detects external input state simultaneously, and the rc configuration file loaded when selecting next time to start, then reset automatically, enter fast attack mode.Because after kernel runs, Init.rc file cannot be reloaded again, reload the Init.rc file of specifying after can only restarting.
In Figure 5, the pattern of an independent startup that each Init.rc is corresponding, be followed successively by camera from 1 ~ n and start that configuration, player start configuration fast, radio starts configuration fast fast ... e-book starts configuration fast, def is then defined as acquiescence and starts configuration.
Fig. 6 is the process flow diagram of embodiment of the present invention method 2, and please also refer to Fig. 2 and Fig. 5, setting up procedure is as follows:
S601, user presses starting key;
S602, system electrification, cpu reset;
S603, after cpu reset success, performs bootloader program, the peripheral hardwares such as initiating hardware interface, touch-screen, button, memory devices etc.;
S604, loads Zimage & ramdisk mirror image, copies RAM to run by image file from flash;
S605, starts kernel kernel, the Init_def.rc file of system loads acquiescence; That this step loads is Init.rc (def);
S606, kernel detect whether have key-press input; If had, and meet the initial conditions of fast attack mode, assuming that satisfied quick entry condition (n), enter S607, do not meet quick entry condition, enter S613;
The information inputted in this step can come from button, also can be touch-screen.
S607, if having and meet the initial conditions of fast attack mode, then amendment starts configuration, and system specifies the Init.rc file starting next time and need load; This step meeting assigned I nit.rc (n);
This startup configuration is stored in parameter chained list, and parameter chained list is placed on a fixing physical address, can transmit between bootloader, kernel and android.
S608, system autoboot;
S609, loads Zimage & ramdisk mirror image, copies RAM to run by image file from flash;
S610, kernel start, and load Init.rc (n) file of specifying;
S611, starts separate functional blocks;
S612, switches other patterns: after user uses separate functional blocks, and system can open all the other module service and program, uses terminal repertoire or enters other patterns.The specific implementation of this step is introduced in detail separately in subsequent embodiment.
S613, normally starts terminal, and this step loads the image file such as zimage and Ramdisk, and wherein kernel start-up loading is acquiescence Init.rc file in Ramdisk.
The contrast of above two kinds of methods:
It is few that method 2 takies flash storage resources.Because method 2 only has a Ramdisk file, and method 1 has multiple Ramdisk file.Usually, a Ramdisk file size is 2MB-4MB, is equivalent to much more a kind of start-up mode, and flash the space of multiplex 2-4MB will deposit Ramdisk mirror image.But terminal storage space is mostly at more than 1G at present, so almost negligible on the impact of space hold.Method 2 toggle speed is slightly slow.Because the process of the more than once system reboot of method 2, start-up time can ratio method more than more than 1 second.Above two kinds of methods can be selected according to the needs of speed and hardware condition.
Embodiments provide two kinds of patterns to switch, can be implemented in the switching between each start-up mode.
Scheme 1: after terminal has started, after the load module of system detects user's switching command, carries out mode switching operation.Instruction input can pass through the input such as physical button, touch screen interface button.After activation switching command, system starts the APP application program on a upper strata, and pre-configured startup service and program are opened loading by this program one by one, and unwanted service and application under forbidding this pattern.
May be there is certain risk in the operation of scheme 1, not necessarily all services can be opened by upper layer application.In addition, may because of the relevance of more complicated between partial service and service, a certain item service is not activated or starts failure, other services or application may be caused to start, have the risk causing system instability.Therefore another kind of preferred implementation is embodiments provided as follows:
Scheme 2: after terminal has started, after the load module of system detects user's switching command, carries out mode switching operation.If adopt multiple Ramdisk mirror image to select load mode, then specify the address loading Ramdisk mirror image when next time starting, and by this configuration write parameters chained list, when starting for next time, bootloader calls.If adopt the multiple Init.rc file of single mirror image to select load mode, then specify the Init.rc filename loaded when next time starting, and by this configuration write parameters chained list, when starting for next time, kernel calls.After start-up parameter configuration is complete, system autoboot, enters corresponding start-up mode.
Comparatively scheme 1, scheme 2 has the operation more thoroughly closing and start service and program, and system cloud gray model can be more reliable and more stable.Shortcoming is needs restarting process, and switching time is relatively long.
The separate functional blocks mentioned in the embodiment of the present invention can be the combination of one or several peripheral modules, such as:
Use multimedia player function, display screen, audio-frequency module, gravity sensor, outside TF card etc. need be started;
Use camera or camera function, camera, flashlamp, display screen, TF card etc. need be started;
Use flashlight function, need flashlamp be started;
Use sound-track engraving apparatus function, audio-frequency module, display screen need be started;
Use GPS navigator function, display screen, GPS module, TF card, audio-frequency module etc. need be started;
Use ebook function, display screen, TF card need be started.
Following examples give the example of two kinds of standalone feature application, are illustrated the embodiment of the present invention, specific as follows:
A quick example (employing method 1) starting camera model:
Under off-mode, while user presses key, pin side switch;
System electrification, bootloader runs, and detects that side switch is pressed, screen shows fast attack mode option;
User inputs camera start-up mode;
Bootloader copies Zimage mirror image and Ramdisk (1) (starting configuration file fast containing camera) mirror image to RAM from flash;
Kernel starts, and resolves Init_1.rc configuration file, opens the related function module such as camera, display screen, TF card, and runs camera and to take pictures program; The program of taking pictures according to user's request, can open the modules such as flashlamp further;
After user completes camera use, the switching menu on selectively actuatable interface, is switched to other patterns.
A quick example (employing method 2) starting multimedia playing module:
Under off-mode, while user presses key, pin side switch;
System electrification, bootloader runs, and copies Zimage mirror image and Ramdisk mirror image to RAM from flash;
Kernel resolves Init_def.rc default configuration file and starts, and detects that side switch is pressed simultaneously, screen shows fast attack mode option;
User inputs multimedia pattern;
Kernel specifies when starting next time and loads Init_2.rc (multimedia player configuration), and by new Set up-conservancy in the parameter chained list of fixed address, then system autoboot;
System electrification, bootloader runs, and copies Zimage mirror image and Ramdisk mirror image to RAM from flash, passes to kernel by with the parameter chained list starting configuration information simultaneously;
Kernel resolves Init_2.rc configuration file, opens display screen, audio-frequency module, TF card, sensor related function module, and runs multimedia player program;
After user completes camera use, the switching menu on selectively actuatable interface, is switched to other patterns.
The embodiment of the present invention additionally provides a kind of startup control device, as shown in Figure 7, comprising:
Instruction reception unit 701, for after receiving start-up command, performs boot, then receiving mode selection instruction;
Pattern determining unit 702, for determining the start-up mode that above-mentioned mode selection command is specified;
Configuration determining unit 703, for determining the resource distribution corresponding with above-mentioned start-up mode; Above-mentioned resource distribution defines the service that is associated with above-mentioned start-up mode and applies and configures;
Resource loading unit 704, for loading above-mentioned resource distribution and kernel mirror image file, then starts above-mentioned terminal.
In embodiments of the present invention, boot is the input equipments such as bootloader, bootloader meeting initialization button, touch-screen, basic hardware interface, and external memory storage etc.; The instruction can selected in a receiving mode after executing boot.Mode selection command can specify the start-up mode of selection, and start-up mode is used for representing and starts in which way, such as: start a certain specific standalone feature, or, the startup of repertoire.
In embodiments of the present invention, start-up mode can one or several independently functions corresponding, and one independently function then can more corresponding servers associated therewith and application configuration, such as:
Use multimedia player function, display screen, audio-frequency module, gravity sensor, outside TF card (Trans-flashCard, trans flash card) etc. need be started;
Use camera or camera function, camera, flashlamp, display screen, TF card etc. need be started;
Use flashlight function, need flashlamp be started;
Use sound-track engraving apparatus function, audio-frequency module, display screen need be started;
Use GPS (GlobalPositionSystem, GPS) navigating instrument function, display screen, GPS module, TF card, audio-frequency module etc. need be started;
Use ebook function, display screen, TF card need be started.
The citing of above standalone feature is not exhaustive, should not be construed as the restriction to the embodiment of the present invention.
The embodiment of the present invention, designated mode selection instruction in start-up course, and start according to the start-up mode that mode selection command is specified, start-up mode is then to having resource distribution, then define the service be associated with start-up mode in resource distribution and apply and configure, unnecessary so each startup all starts all application and service, and startup item is mated with current demand, thus start quickly speed reduces start-up time, and save the resource of terminal.
In embodiments of the present invention, as long as resource distribution have define the service that is associated with above-mentioned start-up mode and apply the function configured just passable, the embodiment of the present invention gives two kinds of optional implementations, specific as follows: alternatively, and above-mentioned resource distribution comprises:
The kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily; Or, the virtual flash disk image file corresponding with start-up mode.
In embodiments of the present invention, for defining the service that is associated with above-mentioned start-up mode and applying the different implementation configured, additionally provide receive mode and the treatment scheme of the mode selection command of correspondence with it, specific as follows: further, as shown in Figure 8,
Above-mentioned instruction reception unit 701, if be that the kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily for described resource distribution, first the virtual flash disk image file of load default, then receiving mode selection instruction; Above-mentioned startup control device also comprises:
Resource determining unit 801, starts resource file voluntarily for determining whether there is the kernel corresponding with above-mentioned start-up mode;
Configuration modification unit 802, for after determining that there is the kernel corresponding with above-mentioned start-up mode starts resource file voluntarily, then amendment startup configures and restarts;
Above-mentioned resource loading unit 704, for loading above-mentioned virtual flash disk image file in restarting process, and the kernel corresponding with start-up mode in above-mentioned virtual flash disk image file starts resource file voluntarily.
After terminal has started, owing to this startup may only start partial function and service, in follow-up use procedure, may need to use other functions and service, so embodiments provide the scheme of carrying out start-up mode switching, specific as follows: further, as shown in Figure 9, above-mentioned startup control device also comprises:
Above-mentioned instruction reception unit 701, also for after having started in above-mentioned terminal, receiving mode switching command;
Startup item control module 901, for after above-mentioned instruction reception unit 701 receives pattern switching command, start and be configured with the application program of the startup item corresponding with above-mentioned pattern switching command, and by the above-mentioned application program launching startup item corresponding with above-mentioned pattern switching command;
Or, above-mentioned instruction reception unit 701, also for after having started in above-mentioned terminal, receiving mode switching command; As shown in Figure 10, above-mentioned startup control device also comprises:
Record cell 1001, for after above-mentioned instruction reception unit 701 receives pattern switching command, record the start-up mode corresponding with above-mentioned pattern switching command, or, after described instruction reception unit 701 receives pattern switching command, record the resource distribution that the start-up mode corresponding with above-mentioned pattern switching command is corresponding;
Restart control module 1002, for restarting above-mentioned terminal after above-mentioned record cell 1001 completes record.
In above two schemes, front one does not need to restart, and speed is faster.Rear a kind of scheme, then can make system cloud gray model more reliable and more stable by restarting.
For the handover scheme of different start-up mode, the embodiment of the present invention additionally provides the flow scheme that concrete switching command realizes, specific as follows: alternatively, above-mentioned record cell 1001, if be that the kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily for described resource distribution, then filename kernel corresponding for the start-up mode corresponding with above-mentioned pattern switching command being started voluntarily resource file is written to parameter chained list;
If above-mentioned resource distribution is the virtual flash disk image file corresponding with start-up mode, then the file address of virtual flash disk image file corresponding for the start-up mode corresponding with above-mentioned pattern switching command is written to parameter chained list.
It should be noted that in said apparatus embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
These are only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. start a control method, it is characterized in that, comprising:
Terminal, after receiving start-up command, performs boot, then receiving mode selection instruction;
Determine the start-up mode that described mode selection command is specified, determine the resource distribution corresponding with described start-up mode; Described resource distribution defines the service that is associated with described start-up mode and applies and configures;
Load described resource distribution and kernel mirror image file, then start described terminal.
2. method according to claim 1, it is characterized in that, described resource distribution comprises:
The kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily; Or, the virtual flash disk image file corresponding with start-up mode.
3. method according to claim 2, it is characterized in that, if described resource distribution is the kernel corresponding with start-up mode configured in virtual flash disk image file start resource file voluntarily, described receiving mode selection instruction comprises: the first virtual flash disk image file of load default, then receiving mode selection instruction;
The described resource distribution of described loading comprises:
After determining that there is the kernel corresponding with described start-up mode starts resource file voluntarily, then amendment startup configures and restarts, make in restarting process, to load described virtual flash disk image file, and the kernel corresponding with start-up mode in described virtual flash disk image file starts resource file voluntarily.
4. method according to claims 1 to 3 any one, is characterized in that, after described terminal has started, described method also comprises:
After receiving pattern switching command, start and be configured with the application program of the startup item corresponding with described pattern switching command, and by the described application program launching startup item corresponding with described pattern switching command; Or,
After receiving pattern switching command, record the start-up mode corresponding with described pattern switching command, then restart; Or,
After receiving pattern switching command, record the resource distribution that the start-up mode corresponding with described pattern switching command is corresponding, then restart.
5. method according to claim 4, is characterized in that, resource distribution corresponding to the start-up mode that described record is corresponding with described pattern switching command comprises:
If described resource distribution is the kernel corresponding with start-up mode configured in virtual flash disk image file start resource file voluntarily, then filename kernel corresponding for the start-up mode corresponding with described pattern switching command being started voluntarily resource file is written to parameter chained list;
If described resource distribution is the virtual flash disk image file corresponding with start-up mode, then the file address of virtual flash disk image file corresponding for the start-up mode corresponding with described pattern switching command is written to parameter chained list.
6. a startup control device, is characterized in that, comprising:
Instruction reception unit, for after receiving start-up command, performs boot, then receiving mode selection instruction;
Pattern determining unit, for determining the start-up mode that described mode selection command is specified;
Configuration determining unit, for determining the resource distribution corresponding with described start-up mode; Described resource distribution defines the service that is associated with described start-up mode and applies and configures;
Resource loading unit, for loading described resource distribution and kernel mirror image file, then starts described terminal.
7. start control device according to claim 6, it is characterized in that, described resource distribution comprises:
The kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily; Or, the virtual flash disk image file corresponding with start-up mode.
8. start control device according to claim 7, it is characterized in that,
Described instruction reception unit, if be that the kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily for described resource distribution, the first virtual flash disk image file of load default, then receiving mode selection instruction; Described startup control device also comprises:
Resource determining unit, starts resource file voluntarily for determining whether there is the kernel corresponding with described start-up mode;
Configuration modification unit, for after determining that there is the kernel corresponding with described start-up mode starts resource file voluntarily, then amendment startup configures and restarts;
Described resource loading unit, for loading described virtual flash disk image file in restarting process, and the kernel corresponding with start-up mode in described virtual flash disk image file starts resource file voluntarily.
9. according to claim 6 to 8 any one, start control device, it is characterized in that, described startup control device also comprises:
Described instruction reception unit, also for after having started in described terminal, receiving mode switching command;
Startup item control module, for after described instruction reception unit receives pattern switching command, start and be configured with the application program of the startup item corresponding with described pattern switching command, and by the described application program launching startup item corresponding with described pattern switching command;
Or, described instruction reception unit, also for after having started in described terminal, receiving mode switching command; Described startup control device also comprises:
Record cell, for after described instruction reception unit receives pattern switching command, record the start-up mode corresponding with described pattern switching command, or, after described instruction reception unit receives pattern switching command, record the resource distribution that the start-up mode corresponding with described pattern switching command is corresponding;
Restart control module, for restarting described terminal after described record cell completes record.
10. start control device according to claim 9, it is characterized in that,
Described record cell, if be that the kernel corresponding with start-up mode configured in virtual flash disk image file starts resource file voluntarily for described resource distribution, then filename kernel corresponding for the start-up mode corresponding with described pattern switching command being started voluntarily resource file is written to parameter chained list;
If described resource distribution is the virtual flash disk image file corresponding with start-up mode, then the file address of virtual flash disk image file corresponding for the start-up mode corresponding with described pattern switching command is written to parameter chained list.
CN201410362766.4A 2014-07-28 2014-07-28 Starting control method and device Active CN105335178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410362766.4A CN105335178B (en) 2014-07-28 2014-07-28 Starting control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410362766.4A CN105335178B (en) 2014-07-28 2014-07-28 Starting control method and device

Publications (2)

Publication Number Publication Date
CN105335178A true CN105335178A (en) 2016-02-17
CN105335178B CN105335178B (en) 2020-05-12

Family

ID=55285742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410362766.4A Active CN105335178B (en) 2014-07-28 2014-07-28 Starting control method and device

Country Status (1)

Country Link
CN (1) CN105335178B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201611A (en) * 2016-07-07 2016-12-07 北京小米移动软件有限公司 Run the method and device of application
CN107613386A (en) * 2017-09-30 2018-01-19 烽火通信科技股份有限公司 A kind of the startup method and activation system of IPTV applications
CN107885548A (en) * 2017-11-09 2018-04-06 青岛海信移动通信技术股份有限公司 A kind of system start method and device
WO2018113409A1 (en) * 2016-12-19 2018-06-28 腾讯科技(深圳)有限公司 Method and device for loading startup resource
CN110716660A (en) * 2019-09-02 2020-01-21 Oppo(重庆)智能科技有限公司 Touch screen starting method, terminal and storage medium
CN111522612A (en) * 2020-04-08 2020-08-11 深圳创维-Rgb电子有限公司 Terminal control method, terminal and storage medium
CN114138346A (en) * 2021-11-02 2022-03-04 北京安天网络安全技术有限公司 Terminal evidence obtaining method and device, electronic equipment and storage medium
CN115080149A (en) * 2022-07-20 2022-09-20 荣耀终端有限公司 Terminal device control method and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699402A (en) * 2009-06-12 2010-04-28 苏州国芯科技有限公司 Multi-mode startup embedded system
CN101707664A (en) * 2009-10-30 2010-05-12 深圳创维数字技术股份有限公司 Method for safe operation of set top box
CN101950262A (en) * 2010-10-20 2011-01-19 深圳市开立科技有限公司 Method and device for realizing safe mode in embedded system
US20120216242A1 (en) * 2011-02-22 2012-08-23 PCTEL Secure LLC Systems and Methods for Enhanced Security in Wireless Communication
CN103136023A (en) * 2012-12-27 2013-06-05 天津三星通信技术研究有限公司 Embedded type terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699402A (en) * 2009-06-12 2010-04-28 苏州国芯科技有限公司 Multi-mode startup embedded system
CN101707664A (en) * 2009-10-30 2010-05-12 深圳创维数字技术股份有限公司 Method for safe operation of set top box
CN101950262A (en) * 2010-10-20 2011-01-19 深圳市开立科技有限公司 Method and device for realizing safe mode in embedded system
US20120216242A1 (en) * 2011-02-22 2012-08-23 PCTEL Secure LLC Systems and Methods for Enhanced Security in Wireless Communication
CN103136023A (en) * 2012-12-27 2013-06-05 天津三星通信技术研究有限公司 Embedded type terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "linux init六种模式简介", 《CHINAUNIX网站》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201611A (en) * 2016-07-07 2016-12-07 北京小米移动软件有限公司 Run the method and device of application
CN106201611B (en) * 2016-07-07 2019-07-23 北京小米移动软件有限公司 Run the method and device of application
WO2018113409A1 (en) * 2016-12-19 2018-06-28 腾讯科技(深圳)有限公司 Method and device for loading startup resource
US11169827B2 (en) 2016-12-19 2021-11-09 Tencent Technology (Shenzhen) Company Limited Resource loading at application startup using attributes of historical data groups
CN107613386A (en) * 2017-09-30 2018-01-19 烽火通信科技股份有限公司 A kind of the startup method and activation system of IPTV applications
CN107885548A (en) * 2017-11-09 2018-04-06 青岛海信移动通信技术股份有限公司 A kind of system start method and device
CN107885548B (en) * 2017-11-09 2021-12-07 青岛海信移动通信技术股份有限公司 System starting method and device
CN110716660A (en) * 2019-09-02 2020-01-21 Oppo(重庆)智能科技有限公司 Touch screen starting method, terminal and storage medium
CN111522612A (en) * 2020-04-08 2020-08-11 深圳创维-Rgb电子有限公司 Terminal control method, terminal and storage medium
CN114138346A (en) * 2021-11-02 2022-03-04 北京安天网络安全技术有限公司 Terminal evidence obtaining method and device, electronic equipment and storage medium
CN115080149A (en) * 2022-07-20 2022-09-20 荣耀终端有限公司 Terminal device control method and terminal device
CN115080149B (en) * 2022-07-20 2023-06-27 荣耀终端有限公司 Control method of terminal equipment and terminal equipment

Also Published As

Publication number Publication date
CN105335178B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN105335178A (en) Startup control method and apparatus
CN109101352B (en) Image processing algorithm architecture, algorithm calling method, device, storage medium and mobile terminal
US10592254B2 (en) Technologies for fast low-power startup of a computing device
CN104142859B (en) The fast switch over method of a kind of dual system, device and mobile terminal
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
US20150333971A1 (en) Method and device for managing processes of application program
CN110300328B (en) Video playing control method and device and readable storage medium
CN104281478B (en) The method and device of more new application
CN107291626B (en) Data storage method and device
CN104298558B (en) Information processing method and device
US20160202880A1 (en) Method for starting application program, terminal and non-transitory computer readable storage medium
CN103544033A (en) Method, device and associated equipment for rolling back application program
US11966563B2 (en) Menu display method and apparatus, electronic device, and storage medium
CN109656691A (en) Processing method, device and the electronic equipment of computing resource
US20150261686A1 (en) Systems and methods for supporting demand paging for subsystems in a portable computing environment with restricted memory resources
CN105940375B (en) Dynamic reassignment for multiple operating system devices
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN102023874A (en) Dual Linux core processing device and method for starting core of Linux system
US11588909B1 (en) System and method for subscription based solution data compatibility
CN103019833A (en) Terminal equipment and method for enabling same to support quick switching of operating systems
CN104123056A (en) Switching method, device and terminal of user interfaces
CN108958807B (en) Terminal system starting method and terminal
KR100678023B1 (en) Abbreviation method for booting time of mobile communication terminal device
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
CN108595072B (en) Split screen display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170214

Address after: 401336 Chongqing Nan'an District Tea Garden Road, No. 8, software Incubation Park, building 1

Applicant after: Keen (Chongqing) Microelectronics Technology Co., Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1

Applicant before: Chongqing City Communication & Technology Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant