CN110018859A - Equipment starting method, device, computer equipment and storage medium - Google Patents

Equipment starting method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110018859A
CN110018859A CN201910299071.9A CN201910299071A CN110018859A CN 110018859 A CN110018859 A CN 110018859A CN 201910299071 A CN201910299071 A CN 201910299071A CN 110018859 A CN110018859 A CN 110018859A
Authority
CN
China
Prior art keywords
file
kernel
memory
virtual memory
service logic
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
CN201910299071.9A
Other languages
Chinese (zh)
Other versions
CN110018859B (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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201910299071.9A priority Critical patent/CN110018859B/en
Publication of CN110018859A publication Critical patent/CN110018859A/en
Application granted granted Critical
Publication of CN110018859B publication Critical patent/CN110018859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

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

This application provides a kind of equipment starting method, device, computer equipment and storage mediums, this method comprises: virtual memory file is read into memory by call driver from flash partition;The virtual memory file includes the file unrelated with service logic, kernel is called to obtain the address of virtual memory file in memory, kernel is called to obtain virtual memory file from memory according to address, and then call kernel according to virtual memory file, service logic file and configuration file load resource, with starting device, due to according to the naked reading flash partition of driver to memory, flash partition is read to memory speed faster compared to kernel itself, and the modules such as virtual memory file for only needing to use kernel, without software resources such as newly-increased RTOS, and then it can be realized few in demand resource, it develops under simple scene, it reduces equipment and starts the time.

Description

Equipment starting method, device, computer equipment and storage medium
Technical field
This application involves computer operating system technical fields, more particularly to a kind of equipment starting method, device, calculating Machine equipment and storage medium.
Background technique
As (SuSE) Linux OS is more and more wider in the application of the terminal devices such as movement DV, automobile data recorder, smart phone General, the requirement that speed is executed to it is also higher and higher, how to reduce the equipment cold start-up time and becomes people's the problem of increasingly paying close attention to.
Traditional quick cold start-up scheme adds dual system to realize using double-core, specifically, is run using a core real When operating system, load relevant to minimal service logic module, another core runs (SuSE) Linux OS, realization WIFI, The service such as UI, USB, network correlation App.
However, above-mentioned double-core adds the quick cold start-up scheme of dual system, there are demand resource is more, and then cause exploitation multiple The high problem of miscellaneous degree.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide that a kind of demand resource is less, exploitation simple equipment starting Method, apparatus, computer equipment and storage medium.
In a first aspect, the embodiment of the present application provides a kind of equipment starting method, which comprises
Virtual memory file is read into memory by call driver from flash partition;The virtual memory file includes The file unrelated with service logic;
Kernel is called to obtain the address of the virtual memory file in the memory;
The kernel is called to obtain the virtual memory file from the memory according to the address;
The kernel is called to load resource according to the virtual memory file, service logic file and configuration file, to open Dynamic equipment.
It is described in one of the embodiments, to call the kernel according to the virtual memory file, service logic file Resource is loaded with configuration file, with starting device, comprising: control the kernel and merge the virtual memory file, the business Logical file and the configuration file obtain whole root file;It controls the kernel and resource is loaded according to the whole root file, With starting device.
The control kernel merges the virtual memory file, the service logic in one of the embodiments, File and the configuration file obtain whole root file, comprising: control the kernel and start the virtual memory file, to adjust Spend stacked documents system;It controls the kernel and the virtual memory file, the business is merged according to the stacked documents system Logical file and the configuration file obtain whole root file.
The control kernel loads resource according to the whole root file in one of the embodiments, with starting Before equipment, further includes: control the first template needed for the kernel loads service logic according to the virtual memory file and provide Source.
The control kernel loads resource according to the whole root file in one of the embodiments, with starting Equipment, comprising: control the kernel according to the whole root file, the second template resource needed for loading service logic;Control The kernel is according to the first template resource and the second template resource, with starting device.
First template resource and institute needed for the control kernel loads service logic in one of the embodiments, It states the control kernel and the virtual memory file, the service logic file and described is merged according to the stacked documents system Configuration file is run parallel.
It is described in one of the embodiments, to call the kernel according to the virtual memory file, service logic file Resource is loaded with configuration file, before starting device, further includes: call the kernel by the service logic file, described Configuration file is read into memory from flash partition;Call the kernel obtained from the memory service logic file and The configuration file.
Second aspect, the embodiment of the present application provide a kind of equipment starter, and described device includes:
Virtual memory file is read into memory by the first calling module for call driver from flash partition;Institute Stating virtual memory file includes the file unrelated with service logic;
Second calling module, for calling kernel to obtain the address of the virtual memory file in the memory;
Third calling module, for calling the kernel to obtain the virtual memory from the memory according to the address File;
4th calling module, for calling the kernel according to the virtual memory file, service logic file and configuration File loads resource, with starting device.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory and processor, the memory It is stored with computer program, the processor realizes side described in any embodiment in first aspect when executing the computer program The step of method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer program, The step of method described in any embodiment in first aspect is realized when the computer program is executed by processor.
Equipment starting method, device, computer equipment and the storage medium provided in the embodiment of the present application is driven by calling Virtual memory file is read into memory by dynamic program from flash partition, and kernel is called to obtain virtual memory file in memory It calls kernel to obtain virtual memory file from memory according to address, and then calls kernel according to virtual memory file, industry in address Business logical file and configuration file load resource, with starting device, due to according to the naked reading flash partition of driver to memory, phase Flash partition is read to memory speed faster than kernel itself, and the modules such as virtual memory file for only needing to use kernel, nothing The software resources such as RTOS need to be increased newly, and then can be realized few in demand resource, developed under simple scene, when reducing equipment starting Between.
Detailed description of the invention
Fig. 1 is the internal structure chart of computer equipment in one embodiment;
Fig. 2 is the flow diagram of the equipment starting method provided in one embodiment;
Fig. 3 is the flow diagram of the implementation of S204 in Fig. 2 embodiment;
Fig. 4 is the flow diagram of another implementation of S301 in Fig. 3 embodiment;
Fig. 5 is the flow diagram of the implementation of S302 in Fig. 3 embodiment;
Fig. 6 is the flow diagram of the equipment starting method provided in another embodiment;
Fig. 7 is the flow diagram of the equipment starting method provided in another embodiment;
Fig. 8 is the structural block diagram of equipment starter in one embodiment;
Fig. 9 is the structural block diagram of equipment starter in another embodiment;
Figure 10 is the structural block diagram of equipment starter in another embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and do not have to In restriction the application.
Equipment starting method provided by the embodiments of the present application can be applied to terminal device, which can be movement DV, automobile data recorder etc., in the present embodiment for moving DV, movement DV internal structure chart can be as shown in Figure 1.Movement DV Including embeded processor, display screen, lens module, the communication module connected by system bus.Wherein, the mirror of movement DV Head module includes lens combination, photosensory assembly, the coffret etc. of photography;Embeded processor is calculated and is controlled for providing Ability, memory can be integrated in inside embeded processor, and memory includes non-volatile memory medium, built-in storage.This is non- Volatile storage medium is stored with operating system and computer program.The built-in storage is the operation in non-volatile memory medium The operation of system and computer program provides environment.To realize a kind of equipment starting side when the computer program is executed by processor Method;Communication module is the communication interface that can transmit signal by wireless or cable, and the transmission mode of wireless communication can be WI- The mode of FI, bluetooth, infrared ray etc., wire transmission can be USB, HDMI etc.;The display screen of movement DV can be liquid crystal display The types such as screen or touch screen.
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in certain embodiments.
Fig. 2 is the flow chart of equipment starting method in one embodiment, and the executing subject of this method is movement shown in FIG. 1 DV, what is involved is the detailed processes that equipment starts for this method, as described in Figure 2, this method specifically includes the following steps:
Virtual memory file is read into memory by S201, call driver from flash partition;The virtual memory text Part includes the file unrelated with service logic.
Wherein, virtual memory file Ramdisk can be the form of compressed file packet comprising all with Busybox phase The configuration of pass, executable file, dependence library, wherein BusyBox is one and is integrated with multiple the most frequently used Linux commands and work The software of tool, Ramdisk puts the whole file that will not be written into, this is because Ramdisk is present in memory, after power-off It can not save, service logic storage if necessary wherein, will cause information power-off and lose, and Ramdisk itself File system format is squashfs, is read-only;Flash partition refers to flash storage medium, and driver can be bootloader。
Specifically, it is run on memory due to kernel, in device power-up starting, call driver is literary by virtual memory Part is read into memory from flash partition, to call kernel follow-up operation to work.It should be noted that in general, Ramdisk relevant resource after root file system starts finish completely can be released, and make Ramdisk in the application For the indispensable a part of final whole root file system, all there must be simultaneously quilt in the life cycle of entire service logic It uses, until equipment shutdown is that service logic is destroyed.
S202 calls kernel to obtain the address of the virtual memory file in the memory.
Wherein, management maincenter of the kernel as equipment, for managing, distributing and coordinating resource as a whole.Specifically, journey is driven Sequence can generate a command information, wherein in command information after being read into memory virtual memory file from flash partition Then address including virtual memory file in memory utilizes the initrd=Addr_start in the cmdline of kernel, The address of Size init=/dev/ram0 acquisition Ramdisk;The address of initrd can also be transmitted by using device tree, in turn Kernel obtains the address of virtual memory file in memory.
S203 calls the kernel to obtain the virtual memory file from the memory according to the address.
Illustratively, address of the kernel according to Ramdisk in memory, adapter tube Ramdisk, since Ramdisk is compression The form of file packet obtains process of the process of Ramdisk i.e. to Ramdisk decompression.
S204 calls the kernel to load resource according to the virtual memory file, service logic file and configuration file, With starting device.
Wherein, service logic file refers to main using relevant executable file, the library of dependence, configuration text to service logic Part etc.;Configuration file refers to the file that can be written and read;Virtual memory file, service logic file and configuration file are to match in advance It sets and is stored in equipment flash.Specifically, can control kernel by service logic file and configuration file correspondingly from Flash subarea reads memory, and then calls kernel to be loaded according to virtual memory file, service logic file and configuration file and provide The starting of equipment is realized in source.
In above-described embodiment, virtual memory file is read into memory by call driver from flash partition, is adjusted The address of virtual memory file in memory is obtained with kernel, kernel is called to obtain virtual memory text from memory according to address Part, and then kernel is called to load resource according to virtual memory file, service logic file and configuration file, with starting device, by According to the naked reading flash partition of driver to memory, flash partition is read to memory speed faster compared to kernel itself, and only It needs to use the modules such as the virtual memory file of kernel, without software resources such as newly-increased RTOS, and then can be realized and provided in demand Source is few, develops under simple scene, reduces equipment and starts the time.
As an optional implementation manner, as shown in figure 3, S204 is " described to call the kernel according to described virtual interior File, service logic file and configuration file load resource are deposited, with starting device ", comprising:
S301 controls the kernel and merges the virtual memory file, the service logic file and the configuration file, Obtain whole root file.
Wherein, virtual memory file, service logic file and configuration file can be realized by specifically merging file system Merging.Optionally, S301 " controls the kernel to merge the virtual memory file, the service logic file and described match File is set, whole root file is obtained ", comprising:
S401 controls the kernel and starts the virtual memory file, to dispatch stacked documents system.
Wherein, stacked documents system refers to Overlay file system, indicates that a file system is covered on another file Above system, for realizing the merging of multifile system.Since can be understood as will be empty for control kernel starting virtual memory file The process of quasi- memory file compressed package decompression specifically decompresses virtual memory file by control kernel, obtains Busybox work Have the operational order of case, and then control kernel according to Busybox operational order, dispatches Overlay file system.
S402 controls the kernel and is patrolled according to the stacked documents system merging virtual memory file, the business File and the configuration file are collected, whole root file is obtained.
Wherein, it is to allow virtual memory file, service logic file and configuration that Overlay file system, which merges the purpose of file, File possesses a unified operation interface, and during startup, user can be switched to whole root document environment with unaware Under.In above-described embodiment, by combining Ramdisk and really storage service logic correlation function using Overlay file system Service logic file, be finally combined into the root file system of an entirety, realize the target of equipment quick start.
S302 controls the kernel according to the whole root file load resource, with starting device.
Wherein, load service logic needed for resource a part be it is relevant with whole root file, another part be with it is whole Body root file is unrelated, and needed for service logic after resource whole loaded, the starting of equipment just can be achieved.Specifically, It controls kernel and resource relevant to whole root file is loaded according to whole root file, with starting device.
In above-described embodiment, since control kernel merges virtual memory file, service logic file and configuration file, obtain Whole root file, control kernel loads resource according to whole root file, with starting device, due to only needing to use the virtual of kernel The modules such as memory file, stacked documents system, without software resources such as newly-increased RTOS, and then can be realized it is few in demand resource, It develops under simple scene, reduces equipment and start the time.
The control kernel loads resource according to the whole root file in one of the embodiments, with starting Before equipment, further includes: control the first template needed for the kernel loads service logic according to the virtual memory file and provide Source.
Wherein, the resource unrelated with whole root file is stored in virtual memory file, wherein opens in virtual memory file Dynamic, i.e. after Ramdisk is decompressed, the resource unrelated with whole root file can be loaded.Optionally, kernel loads business is controlled First template resource needed for logic merges virtual memory file, service logic file according to stacked documents system with control kernel It is run parallel with configuration file.
Specifically, the first template resource needed for controlling kernel loads service logic, control kernel are according to stacked documents system Simultaneously virtual memory file, service logic file and configuration file, acquisition service logic file and configuration file can be parallel for integration Processing.
In above-described embodiment, by control kernel loads service logic needed for the first template resource and control kernel according to Stacked documents system merges virtual memory file, service logic file and configuration file and runs parallel, and then answers in multi-core environment In, reduces equipment and start the time.
S302 " controls the kernel according to the whole root file load resource, with starting in one of the embodiments, Equipment ", comprising:
S501, controls the kernel according to the whole root file, the second template resource needed for loading service logic.
Specifically, as load service logic needed for resource some be it is relevant to whole root file, control Kernel loads the second template resource relevant to root file system.
S502 controls the kernel according to the first template resource and the second template resource, with starting device.
Wherein, it is related as the second template resource with whole root file in resource needed for loading service logic, with whole root File is unrelated for the first template resource, and needed for service logic after resource whole loaded, opening for equipment just can be achieved It is dynamic.
It is described in one of the embodiments, to call the kernel according to the virtual memory file, service logic file Resource is loaded with configuration file, before starting device, further includes:
S601 calls the kernel that the service logic file, the configuration file are read memory from flash partition In.
Wherein, virtual memory file, service logic file and configuration file are located at the different subregions of Flash, for example, virtually Memory file is located at the first subregion of Flash, and service logic file is located at the second subregion of Flash, and configuration file is located at Flash Third subregion, illustratively, call driver bootloader by the virtual memory file of the first subregion from Flash read Get memory, and after starting virtual memory file, call kernel by service logic file, configuration file respectively from the second subregion, Third subregion is read into memory.
S602 calls the kernel to obtain the service logic file and the configuration file from the memory.
Wherein, service logic file and configuration file are also possible to the form of compressed file packet, call kernel from memory The process for obtaining service logic file and configuration file is the process decompressed to service logic file and configuration file.
A kind of whole implementation process of equipment starting is provided in one of the embodiments, as shown in fig. 7, in equipment When starting, S701: virtual memory file is read memory from Flash by call driver, while can also be by kernel file Memory is read from Flash;S702: it calls kernel to obtain virtual memory file address in memory and starts adapter tube;S703: It calls kernel to start the first template resource and can concurrently call kernel parsing service logic and configuration file, concurrently call The merging of kernel execution multifile system;S704: parsing service logic file and configuration file simultaneously merge multifile system; S705: the second template of kernel loads resource is called;S706: all template resources (the first template resource needed for service logic With the second template resource) all after loaded, starts service logic, that is, realize the starting of equipment.
It should be understood that although each step in Fig. 2-7 flow chart is successively shown according to the instruction of arrow, this A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least one in Fig. 2-7 It step by step may include that perhaps these sub-steps of multiple stages or stage are held in synchronization to multiple sub-steps Row is completed, but can be executed at different times, the execution sequence in these sub-steps or stage be also not necessarily successively into Row, but can be held in turn or alternately at least part of the sub-step or stage of other steps or other steps Row.
In one embodiment, as shown in figure 8, providing a kind of equipment starter, comprising: the first calling module 11, Second calling module 12, third calling module 13 and the 4th calling module 14, in which:
Virtual memory file is read into memory by the first calling module 11 for call driver from flash partition; The virtual memory file includes the file unrelated with service logic;
Second calling module 12, for calling kernel to obtain the address of the virtual memory file in the memory;
Third calling module 13, for call the kernel obtained from the memory according to the address it is described it is virtual in Deposit file;
4th calling module 14, for calling the kernel according to the virtual memory file, service logic file and matching File load resource is set, with starting device.
In one of the embodiments, as shown in figure 9, on the basis of shown in Fig. 8, the 4th calling module 14 includes:
First control unit 140 merges the virtual memory file, the service logic file for controlling the kernel With the configuration file, whole root file is obtained;
Second control unit 141 is set for controlling the kernel according to the whole root file load resource with starting It is standby.
It is described virtual interior to be specifically used for the control kernel starting for first control unit 140 in one of the embodiments, File is deposited, to dispatch stacked documents system;It controls the kernel and the virtual memory text is merged according to the stacked documents system Part, the service logic file and the configuration file, obtain whole root file.
4th calling module in one of the embodiments, further include: third control unit, for controlling the kernel root First template resource needed for loading service logic according to the virtual memory file.
The second control unit 141 is specifically used for controlling the kernel according to the whole root in one of the embodiments, File, the second template resource needed for loading service logic;The kernel is controlled according to the first template resource and described Two template resources, with starting device.
First template resource and institute needed for the control kernel loads service logic in one of the embodiments, It states the control kernel and the virtual memory file, the service logic file and described is merged according to the stacked documents system Configuration file is run parallel.
In one of the embodiments, as shown in Figure 10, on the basis of shown in Fig. 9, described device further includes the 5th tune With module 15, the 6th calling module 16, in which:
5th calling module 15, for calling the kernel by the service logic file, the configuration file from flash memory Subregion is read into memory;
6th calling module 16, for calling the kernel to obtain the service logic file and described from the memory Configuration file.
Specific about equipment starter limits the restriction that may refer to above for equipment starting method, herein not It repeats again.Modules in above equipment starter can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Virtual memory file is read into memory by call driver from flash partition;The virtual memory file includes The file unrelated with service logic;
Kernel is called to obtain the address of the virtual memory file in the memory;
The kernel is called to obtain the virtual memory file from the memory according to the address;
The kernel is called to load resource according to the virtual memory file, service logic file and configuration file, to open Dynamic equipment.
In one embodiment, the control kernel is also performed the steps of when processor executes computer program to merge The virtual memory file, the service logic file and the configuration file, obtain whole root file;Control the kernel root Resource is loaded according to the whole root file, with starting device.
In one embodiment, the control kernel starting is also performed the steps of when processor executes computer program The virtual memory file, to dispatch stacked documents system;The kernel is controlled according to stacked documents system merging Virtual memory file, the service logic file and the configuration file, obtain whole root file.
In one embodiment, also performed the steps of when processor executes computer program the control kernel according to First template resource needed for the virtual memory file load service logic.
In one embodiment, also performed the steps of when processor executes computer program the control kernel according to The entirety root file, the second template resource needed for loading service logic;The kernel is controlled to be provided according to first template Source and the second template resource, with starting device.
In one embodiment, the control kernel is also performed the steps of when processor executes computer program Described in first template resource needed for load service logic merges with the control kernel according to the stacked documents system Virtual memory file, the service logic file and the configuration file are run parallel.
In one embodiment, it is also performed the steps of when processor executes computer program and calls the kernel by institute State service logic file, the configuration file is read into memory from flash partition;The kernel is called to obtain from the memory Take the service logic file and the configuration file.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Virtual memory file is read into memory by call driver from flash partition;The virtual memory file includes The file unrelated with service logic;
Kernel is called to obtain the address of the virtual memory file in the memory;
The kernel is called to obtain the virtual memory file from the memory according to the address;
The kernel is called to load resource according to the virtual memory file, service logic file and configuration file, to open Dynamic equipment.
In one embodiment, the control kernel is also performed the steps of when computer program is executed by processor to close And the virtual memory file, the service logic file and the configuration file, obtain whole root file;Control the kernel Resource is loaded according to the whole root file, with starting device.
In one embodiment, the control kernel is also performed the steps of when computer program is executed by processor to open The virtual memory file is moved, to dispatch stacked documents system;It controls the kernel and institute is merged according to the stacked documents system Virtual memory file, the service logic file and the configuration file are stated, whole root file is obtained.
In one embodiment, the control kernel root is also performed the steps of when computer program is executed by processor First template resource needed for loading service logic according to the virtual memory file.
In one embodiment, the control kernel root is also performed the steps of when computer program is executed by processor According to the whole root file, the second template resource needed for loading service logic;The kernel is controlled according to first template Resource and the second template resource, with starting device.
In one embodiment, it is described interior that the control is also performed the steps of when computer program is executed by processor First template resource needed for core load service logic merges institute according to the stacked documents system with the control kernel Virtual memory file, the service logic file and the configuration file is stated to run parallel.
In one embodiment, also performing the steps of when computer program is executed by processor calls the kernel will The service logic file, the configuration file are read into memory from flash partition;Call the kernel from the memory Obtain the service logic file and the configuration file.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of equipment starting method, which is characterized in that the described method includes:
Virtual memory file is read into memory by call driver from flash partition;The virtual memory file includes and industry The unrelated file of logic of being engaged in;
Kernel is called to obtain the address of the virtual memory file in the memory;
The kernel is called to obtain the virtual memory file from the memory according to the address;
It calls the kernel to load resource according to the virtual memory file, service logic file and configuration file, is set with starting It is standby.
2. the method according to claim 1, wherein described call the kernel according to the virtual memory text Part, service logic file and configuration file load resource, with starting device, comprising:
It controls the kernel and merges the virtual memory file, the service logic file and the configuration file, obtain entirety Root file;
The kernel is controlled according to the whole root file load resource, with starting device.
3. according to the method described in claim 2, it is characterized in that, the control kernel merges the virtual memory text Part, the service logic file and the configuration file, obtain whole root file, comprising:
It controls the kernel and starts the virtual memory file, to dispatch stacked documents system;
It controls the kernel and the virtual memory file, the service logic file and institute is merged according to the stacked documents system Configuration file is stated, whole root file is obtained.
4. 2 or 3 method according to claim, which is characterized in that the control kernel is according to the whole root text Part loads resource, before starting device, further includes:
Control the first template resource needed for the kernel loads service logic according to the virtual memory file.
5. 4 method according to claim, which is characterized in that the control kernel adds according to the whole root file Resource is carried, with starting device, comprising:
The kernel is controlled according to the whole root file, the second template resource needed for loading service logic;
The kernel is controlled according to the first template resource and the second template resource, with starting device.
6. according to the method described in claim 4, it is characterized in that, the needed for the control kernel loads service logic One template resource merges the virtual memory file, the business according to the stacked documents system with the control kernel Logical file and the configuration file are run parallel.
7. method according to claim 1-3, which is characterized in that described to call the kernel according to described virtual Memory file, service logic file and configuration file load resource, before starting device, further includes:
The kernel is called to be read into memory the service logic file, the configuration file from flash partition;
The kernel is called to obtain the service logic file and the configuration file from the memory.
8. a kind of equipment starter, which is characterized in that described device includes:
Virtual memory file is read into memory by the first calling module for call driver from flash partition;The void Quasi- memory file includes the file unrelated with service logic;
Second calling module, for calling kernel to obtain the address of the virtual memory file in the memory;
Third calling module, for calling the kernel to obtain the virtual memory text from the memory according to the address Part;
4th calling module, for calling the kernel according to the virtual memory file, service logic file and configuration file Resource is loaded, with starting device.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910299071.9A 2019-04-15 2019-04-15 Equipment starting method and device, computer equipment and storage medium Active CN110018859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910299071.9A CN110018859B (en) 2019-04-15 2019-04-15 Equipment starting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910299071.9A CN110018859B (en) 2019-04-15 2019-04-15 Equipment starting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110018859A true CN110018859A (en) 2019-07-16
CN110018859B CN110018859B (en) 2022-04-22

Family

ID=67191347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910299071.9A Active CN110018859B (en) 2019-04-15 2019-04-15 Equipment starting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110018859B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221940A (en) * 2019-06-12 2019-09-10 湖南麒麟信安科技有限公司 Power loss recovery method, system and medium based on stacked documents system
CN110471734A (en) * 2019-08-19 2019-11-19 东软集团股份有限公司 A kind of display control method and device
CN111125007A (en) * 2019-12-18 2020-05-08 鹏城实验室 Application packaging method, device and readable storage medium
CN113918228A (en) * 2021-09-15 2022-01-11 成都安恒信息技术有限公司 Memory file system starting method based on multi-CPU architecture
CN115878204A (en) * 2023-01-20 2023-03-31 北京国科环宇科技股份有限公司 Processing method and device of operating system, computer equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625647A (en) * 2009-08-06 2010-01-13 青岛海信电器股份有限公司 Method for accelerating starting speed of embedded software system
CN102141923A (en) * 2010-09-28 2011-08-03 华为终端有限公司 Memory file system loading method and device
CN102591681A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Computer equipment and starting method thereof
CN108287733A (en) * 2017-12-19 2018-07-17 广东睿江云计算股份有限公司 A kind of virtual machine load startup method
CN108614718A (en) * 2018-04-25 2018-10-02 紫光华山信息技术有限公司 The method, apparatus and realization device of start-up operation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625647A (en) * 2009-08-06 2010-01-13 青岛海信电器股份有限公司 Method for accelerating starting speed of embedded software system
CN102141923A (en) * 2010-09-28 2011-08-03 华为终端有限公司 Memory file system loading method and device
CN102591681A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Computer equipment and starting method thereof
CN108287733A (en) * 2017-12-19 2018-07-17 广东睿江云计算股份有限公司 A kind of virtual machine load startup method
CN108614718A (en) * 2018-04-25 2018-10-02 紫光华山信息技术有限公司 The method, apparatus and realization device of start-up operation system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221940A (en) * 2019-06-12 2019-09-10 湖南麒麟信安科技有限公司 Power loss recovery method, system and medium based on stacked documents system
CN110471734A (en) * 2019-08-19 2019-11-19 东软集团股份有限公司 A kind of display control method and device
CN110471734B (en) * 2019-08-19 2023-01-13 东软集团股份有限公司 Display control method and device
CN111125007A (en) * 2019-12-18 2020-05-08 鹏城实验室 Application packaging method, device and readable storage medium
CN113918228A (en) * 2021-09-15 2022-01-11 成都安恒信息技术有限公司 Memory file system starting method based on multi-CPU architecture
CN113918228B (en) * 2021-09-15 2023-10-13 成都安恒信息技术有限公司 Memory file system starting method based on multi-CPU architecture
CN115878204A (en) * 2023-01-20 2023-03-31 北京国科环宇科技股份有限公司 Processing method and device of operating system, computer equipment and medium

Also Published As

Publication number Publication date
CN110018859B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110018859A (en) Equipment starting method, device, computer equipment and storage medium
CN108614718B (en) The method, apparatus and realization device of start-up operation system
CN106445951B (en) File transmission method and device
CN111459541B (en) Application program packaging method and device, computer equipment and storage medium
CN104899039A (en) Method and device for providing screen shooting service in terminal device
KR20200090010A (en) Method for updating firmware, electronic device and storage medium therefor
CN105487869A (en) Vehicular double-system device and starting method thereof
CN105335178B (en) Starting control method and device
CN104750492B (en) The start-up control method and device of mobile device based on embedded OS
CN105739961A (en) Starting method and device of embedded system
CN110968331B (en) Method and device for running application program
CN102238265A (en) Mobile phone and method for realizing double-system mobile phone
CN110945475A (en) System and method for providing patchable ROM firmware
CN102075710B (en) Starting operation method for television and television
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN106528217B (en) on-site programmable gate array program loading system and method
CN111381892B (en) Data processing method, device, equipment and machine-readable medium
CN109298891B (en) System starting method and device, system compiling method and device
CN117591163A (en) Kernel upgrading method, device, medium, chip and electronic equipment
US8041852B1 (en) System and method for using a shared buffer construct in performance of concurrent data-driven tasks
CN113296841A (en) Application program processing method, device, equipment and medium
CN116400938B (en) Operating system upgrading method, device and storage medium
JP2012068797A (en) Start-up acceleration method, information processing apparatus and program
CN116028267A (en) Dual-system secure mobile phone resetting method and device, server and storage medium
CN113986451A (en) Virtual machine migration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant