A kind of pre-installation method, system, electronic equipment and the storage medium of operating system
Technical field
This application involves operating system mounting technique field, in particular to the pre-installation method of a kind of operating system, system,
Electronic equipment and computer readable storage medium.
Background technique
Matched operating system when leaving the factory, is pre-installed on the storage core built in it by current various intelligent mobile terminal
In piece, so that user is when powering on booting, can directly from built-in storage chip load operating system, be able in the operation system
The various operational that user issues is completed under the running environment of system.
It is current to generally use following two for the method for intelligent mobile terminal pre-mounting operation system: the first, in advance will
The storage chip is welded on mainboard into the storage chip that will be built in intelligent mobile terminal by the burning of operating system mirror image
On, to complete the pre-installation of operating system;Second, the storage chip of blank is welded on mainboard, in intelligent mobile terminal
After the completion of hardware composing, then data connection established by USB data line and intelligent mobile terminal by PC machine, that is, passes through line brush
Mode by the operating system mirror image being pre-stored in PC machine under the control of operator burning into storage chip.
But it is above two that high temperature when welding would potentially result in the loss of data with existing in storage chip in the prior art,
Therefore to ensure user experience, the availability of intelligent mobile terminal need to also be verified after the completion of welding, additional increasing
The verification step added inherently impacts pre-installation efficiency;Although the mode of line brush avoids the data that high temperature may cause
It loses, but because line brush mode complex steps itself, the unstability of operator would potentially result in the appearance of various other problems,
And the USB data line for needing frequent plug large number of, also result in the reduction of pre-installation efficiency.
Therefore, how to overcome existing is that items technology present in intelligent mobile terminal pre-mounting operation systems approach lacks
It falls into, is those skilled in the art's urgent problem to be solved.
Summary of the invention
The main purpose of the application is that the pre-installation method, system, device and the computer that provide a kind of operating system can
Read storage medium, it is intended to solve it is existing for intelligent mobile terminal pre-mounting operation system when because of data loss problem or complex steps
Problem influences pre-installation efficiency bring, can not only avoid data loss problem, and step is simple and convenient, can effectively mention
The pre-installation efficiency of lift operations system.
To achieve the above object, this application provides a kind of pre-installation method of operating system, which includes:
It detects whether to be connected with available mobile memory medium;
If detecting available mobile memory medium, judge whether be stored with operating system in the mobile memory medium
Mirror image and installation bootstrap;
If being stored with operating system mirror image and installation bootstrap in the mobile memory medium, drawn by the installation
The operating system mirror image is burned onto storage chip by lead sequence.
Optionally, it detects whether to be connected with available mobile memory medium, comprising:
Detect whether the SD card being inserted by SD card slot.
Optionally, it detects whether to be connected with available mobile memory medium, comprising:
Detect whether the SD card being connected by OTG connecting line.
Optionally, judge operating system mirror image and installation bootstrap, packet whether are stored in the mobile memory medium
It includes:
Judge whether the mobile memory medium is attached with preset mark;Wherein, the preset mark is attached to storage
Have on the operating system mirror image and the mobile memory medium of the installation bootstrap.
Optionally, the pre-installation method further include:
Judge whether the operating system mirror image is abnormal during being burned onto the storage chip;
It is pre- by first if exception has occurred in the operating system mirror image during being burned onto the storage chip
If path returns to the prompt information of burning exception, and stops burning operation.
Optionally, the pre-installation method further include:
Judge whether the operating system mirror image has been burned onto the storage chip completely;
If the operating system mirror image is burned onto the storage chip completely, is returned and burnt by the second preset path
Record the prompt information completed.
To achieve the above object, present invention also provides a kind of pre-installed system of operating system, the pre-installed system packets
It includes:
Mobile memory medium detection unit, for detecting whether being connected with available mobile memory medium;
System image and bootstrap detection unit, for when detecting available mobile memory medium, described in judgement
Whether operating system mirror image and installation bootstrap are stored in mobile memory medium;
Operating system Premounted unit, for being stored with operating system mirror image in the mobile memory medium and installation is drawn
When lead sequence, the operating system mirror image is burned onto storage chip by the installation bootstrap.
Optionally, the mobile memory medium detection unit includes:
SD card is inserted into detection sub-unit, for detecting whether there is the SD card being inserted by SD card slot.
Optionally, the mobile memory medium detection unit includes:
OTG is connected into detection sub-unit, for detecting whether there is the SD card being connected by OTG connecting line.
Optionally, the system image and bootstrap detection unit include:
Preset mark detection unit, for judging whether the mobile memory medium is attached with preset mark;Wherein, described
Preset mark, which is attached to, to be stored on the operating system mirror image and the mobile memory medium of the installation bootstrap.
Optionally, the pre-installed system further include:
Burning abnormality detecting unit, for judging the operating system mirror image during being burned onto the storage chip
Whether it is abnormal;
Burning abnormal prompt information returning unit, for being burned onto the storage chip when the operating system mirror image
When having occurred abnormal in the process, the prompt information of burning exception is returned by the first preset path, and stops burning operation.
Optionally, the pre-installed system further include:
The complete detection unit of burning, for judging whether the operating system mirror image is burned onto the storage chip completely
In;
Prompt information return unit is completed in burning, for being burned onto the storage core completely when the operating system mirror image
When in piece, the prompt information that burning is completed is returned to by the second preset path.
To achieve the above object, the application still further provides a kind of electronic equipment, and the electronic equipment includes storage
Device, processor and bus are stored with the operating system pre-installation program that can be run on the processor on the memory,
The operating system pre-installation program is realized such as by the bus transfer to the processor, and when being executed by the processor
The pre-installation method of operating system described in above content.
To achieve the above object, the application still further provides a kind of computer readable storage medium, the computer
Operating system pre-installation program is stored on readable storage medium storing program for executing, the operating system pre-installation program can be by one or more
Processor executes, to realize the pre-installation method of the operating system as described in above content.
Obviously, the pre-installation method of operating system provided by the present application, using mobile memory medium come storage program area
Mirror image and installation bootstrap, and the data between electronic devices by establishing the mobile memory medium and operating system to be installed connect
Operating system mirror image is burned onto the blank storage chip being welded on mainboard, is finally completed operating system by the mode connect
Pre-installation.It, also would not be because of weldering since storage chip does not need just to be previously stored with operating system mirror image before welding
High temperature when connecing causes data loss problem, also with regard to being not necessarily to carry out the availability verification in later period, while mirror as the prior art
As burning process will carry out automatically under the guidance of installation bootstrap, it is not necessarily to manual control, it is unreliable because of people to also prevent
Property cause occur variety of problems.
The application additionally provides pre-installed system, electronic equipment and the computer-readable storage medium of a kind of operating system simultaneously
Matter has above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the pre-installation method of operating system provided by the embodiments of the present application;
Fig. 2 is the flow chart of the pre-installation method of another operating system provided by the embodiments of the present application;
Fig. 3 is a kind of structural block diagram of the pre-installed system of operating system provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
Embodiment one
Referring to Figure 1, Fig. 1 is a kind of flow chart of the pre-installation method of operating system provided by the embodiments of the present application, is needed
It is noted that the executing subject of the present embodiment is hardware composing completion, the electronic equipment of operating system to be installed, it is intended to from this
The angle of electronic equipment illustrates how to complete the pre-installation process of operating system comprising following steps:
S101: it detects whether to be connected with available mobile memory medium;
This step is intended to detect whether to establish the mobile memory medium for having data connection with the electronic equipment, by this
Operating system mirror image is burned onto the storage chip of the electronic equipment by mobile memory medium.Wherein, mobile memory medium is area
It not in the storage medium being fixed in the electronic equipment, is moveable, generally includes SD card, USB flash disk, mobile hard disk, is inserted with SD
Card reader of card etc.;Electronic equipment includes the terminal devices such as smart phone, Intelligent flat computer, intelligent wearable device.
Correspondingly, various forms of mobile memory mediums and the mode that the electronic equipment establishes data connection are different, such as
SD card, which can be inserted directly into preset SD card slot, establishes data connection with the electronic equipment, and USB flash disk, mobile hard disk and card reader
Deng the mobile memory medium using USB interface data connection can also be established by OTG technology and the electronic equipment.Certainly, with
The development of technology, interface or function on electronic equipment can also expand therewith, it should be appreciated that occur after the application
The new technology that can be used for establishing data connection with electronic equipment or mode also should belong to the protection scope of the application.
OTG (On-The-Go) is that one kind does not need Host (such as PC machine) data transmission between distinct device also may be implemented
New technology.Such as digital camera can will take image transmitting by USB interface and be sent to printer by OTG technology,
Image can be printed at once in the case where not needing PC machine transfer;It can also be by the picture number in digital camera
According to being sent on the mobile hard disk of USB interface by OTG technology, so that it may save small using capacity and expensive deposit
Card storage bring overhead.
It should be noted that in order to which operating system mirror image is finally burned onto storage core from mobile memory medium
Piece, it is also necessary to operating system mirror image and installation bootstrap be stored in advance in the mobile memory medium, wherein operating system mirror
As by the full-automatic or automanual completion burning operation under the guidance of installation guidance.
S102: judge operating system mirror image and installation bootstrap whether are stored in mobile memory medium;
This step is established on the basis of the judging result of S101 is to have detected available mobile memory medium, it is intended to be sentenced
Whether operating system mirror image and installation bootstrap are stored in disconnected mobile memory medium, because only that being stored with operating system mirror
The mobile memory medium of picture and installation bootstrap, can be used for the burning of operating system mirror image.
Specifically, operating system mirror image can be used and install the characteristic information of bootstrap to make a decision, such as operate
The file type (such as .ISO and .EXE) of system image and installation bootstrap, operating system mirror image title and installation guidance journey
The title of sequence (such as includes version number's keyword of Android x.x in mirror image title, includes in bootstrap title
Setup or Install) etc., it can also directly search whether that there are preset paths.It is special, can also for it is such be exclusively used in into
The mobile memory medium of row operating system pre-installation adds special label, which represents its pre- peace for being used for operating system
Dress further relates to wherein centainly be stored with operating system mirror image and installation bootstrap, meanwhile, the judgment mode based on label is also
When can detect in the electronic equipment while store multiple available mobile memory mediums, quickly which positioning will use move
Storage medium carrys out the pre-installation for operating system.
S103: operating system mirror image is burned onto storage chip by installation bootstrap.
The foundation of this step is to be stored with operating system mirror image and installation in the mobile memory medium in the judging result of S102
On the basis of bootstrap, it is intended to which the operating system mirror image being stored in the mobile memory medium is burned onto the storage core of itself
In piece (i.e. burning is completed under normal temperature environment), to complete the pre-installation of electronic equipment itself operating system.Wherein, which draws
The effect of lead sequence is to ensure the availability for the operating system for being burned onto storage chip, because the burning of operating system mirror image is often
There are step of many complexity, such as decompression, decryption etc., and the burning between different data file can also have dependence sometimes,
To reduce the lower existing unstability of manpower control, the installation bootstrap by as can automated execution script come it is accurate
The burning operation that each step should carry out is carried out, to realize the purpose for increasing pre-installation efficiency and saving labour turnover.
Further, in the implementation procedure of burning operation, it is also possible to due to various unexpected problems, cause to burn
Record occurs abnormal, can also return to corresponding miscue information by preset path at this time, and stop subsequent burning operation with
Reduce idle work.Corresponding processing step can also be executed according to the control instruction of return or preset abnormal solution later
Suddenly, such as in formatted storage chip burning into content, and the burning operation is re-executed, to attempt whether abnormal to occur
Identical exception, if still there is identical exception, problem can go out in mirror image or bootstrap itself, determine very
It facilitates and performs corresponding processing after positive problem.
Further, after burning operation smoothly completes, the prompt information of burning completion can also be sent, to remind behaviour
The data connection of the mobile memory medium and current electronic device is disconnected as personnel, and with another needs to carry out operating system pre-
The equipment of installation establishes data connection.
In the pre-installation method of operating system provided in this embodiment, using mobile memory medium come storage program area
Mirror image and installation bootstrap, and the data between electronic devices by establishing the mobile memory medium and operating system to be installed connect
Operating system mirror image is burned onto the blank storage chip being welded on mainboard, is finally completed operating system by the mode connect
Pre-installation.It, also would not be because of weldering since storage chip does not need just to be previously stored with operating system mirror image before welding
High temperature when connecing causes data loss problem, also with regard to being not necessarily to carry out the availability verification in later period, while mirror as the prior art
As burning process will carry out automatically under the guidance of installation bootstrap, it is not necessarily to manual control, it is unreliable because of people to also prevent
Property cause occur variety of problems.
Embodiment two
Fig. 2 is referred to, Fig. 2 is the flow chart of the pre-installation method of another operating system provided by the embodiments of the present application,
Include the following steps:
S201: the SD card being inserted by SD card slot is detected whether;
S202: judge whether SD card is attached with preset mark;
S203: operating system mirror image is burned onto storage chip by the installation bootstrap in SD card.
Compared to embodiment one, specific example of the present embodiment using SD card as mobile memory medium, the SD card is specifically led to
It crosses and is inserted into the mode of the preset SD card slot of the electronic equipment and establishes data connection with it, so as to which the electronic equipment is allowed successfully to examine
It measures, and judge wherein whether be stored with installation bootstrap by way of judge whether the SD card is attached with preset mark
With operating system mirror image, a kind of preferred, the concrete implementation scheme finally provided.
Wherein, the mode based on SD card slot and the electronic equipment establish data connection, the connecting line additional without other, SD
Card is compared to other storage mediums, and cost is lower, volume is smaller, more easy to store and saving space;Mode based on preset mark
To determine whether being stored with installation bootstrap and operating system mirror image, then without going deep into inside storage medium doing file inspection
Rope, speed is faster.
In another embodiment of the application, for the electronic equipment of not default SD card slot, additionally provides another kind and be based on
The implementation of OTG technology, each step correspondence show themselves in that
Detect whether the SD card being connected by OTG connecting line;It, should since one end of OTG connecting line is USB interface
SD card also usually requires to be connected by card reader with the USB interface to establish the data connection with the electronic equipment, similarly, the SD
Card also could alternatively be USB flash disk, mobile hard disk;
If detecting the SD card being connected by OTG connecting line, judge whether be attached with preset mark in the SD card;
If being attached with the preset mark in the SD card, operating system mirror image is burnt by the installation bootstrap in SD card
Record is into storage chip.
Principle is same as the previously described embodiments, is adaptively adjusted only for different connection types.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application
The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works,
It should within the scope of protection of this application.
Embodiment three
Fig. 3 is referred to, Fig. 3 is a kind of structural block diagram of the pre-installed system of operating system provided by the embodiments of the present application,
The pre-installed system of the operating system may include:
Mobile memory medium detection unit 100, for detecting whether being connected with available mobile memory medium;
System image and bootstrap detection unit 200, are moved for judging when detecting available mobile memory medium
Whether operating system mirror image and installation bootstrap are stored in dynamic storage medium;
Operating system Premounted unit 300, for being stored with operating system mirror image in the mobile memory medium and installation is drawn
When lead sequence, operating system mirror image is burned onto storage chip by installation bootstrap.
Wherein, which may include:
SD card is inserted into detection sub-unit, for detecting whether there is the SD card being inserted by SD card slot.
Wherein, which may include:
OTG is connected into detection sub-unit, for detecting whether there is the SD card being connected by OTG connecting line.
Wherein, the system image and bootstrap detection unit 200 may include:
Preset mark detection unit, for judging whether mobile memory medium is attached with preset mark;Wherein, preset mark
It is attached to and is stored on operating system mirror image and the mobile memory medium of installation bootstrap.
Further, which can also include:
Burning abnormality detecting unit, for judging whether operating system mirror image occurs during being burned onto storage chip
It is abnormal;
Burning abnormal prompt information returning unit, for being sent out during being burned onto storage chip when operating system mirror image
When having given birth to abnormal, the prompt information of burning exception is returned by the first preset path, and stops burning operation.
Further, which can also include:
The complete detection unit of burning, for judging whether operating system mirror image has been burned onto storage chip completely;
Prompt information return unit is completed in burning, for when operating system mirror image is burned onto storage chip completely,
The prompt information that burning is completed is returned by the second preset path.
The pre-installed system of the operating system is corresponding with the pre-installation method of operating system, the present embodiment as one with
The corresponding product embodiments of embodiment of the method exist, and have beneficial effect identical with embodiment of the method, details are not described herein.
Example IV
Hereinbefore by multiple embodiments to how by mobile memory medium come for electronic equipment pre-mounting operation
The scheme of system is described in detail, and the application also provides a kind of electronic equipment for applying above scheme, in this part
Appearance principle is corresponding with scheme section, and details are not described herein again for the part of realization principle, below by the hardware group to the electronic equipment
At being described, Fig. 4 is referred to, Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application:
The electronic equipment 400 includes memory 410, processor 420 and bus 430, and being stored on memory 410 can be
The operating system pre-installation program run on processor 420, operating system pre-installation program are transferred to processing by bus 430
Device 420, and each step as described in above-described embodiment is realized when being executed in processor 420.
Wherein, memory 410 includes at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard
Disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 410
It can be the internal storage unit of pre-installation device 400, such as the hard disk of electronic equipment 400 in some embodiments.Memory
410 are also possible to be equipped on the External memory equipment of electronic equipment 400, such as electronic equipment 400 in further embodiments
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, memory 410 can also be same by internal storage unit and External memory equipment simultaneously
Shi Zucheng.Further, memory 410 can be not only used for the various application software that are installed in electronic equipment 400 of storage and
Various types of data can be also used for temporarily storing the data that has exported or will export.
Processor 420 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips, the program code for being stored in run memory 410
Or processing data, such as execute the pre-installation program etc. of operating system.
Bus 430 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one pair in Fig. 4
It is indicated to hollow index line, it is not intended that an only bus or a type of bus.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.In several embodiments provided herein, it should be understood that disclosed system, device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
Each functional unit in each embodiment of the application can integrate in one processing unit, can also integrate respectively
In different separate units.Above-mentioned integrated unit both can take the form of hardware realization, can also use software function
The form of unit is realized.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the method gone out given in each embodiment of the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And
The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet
Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed
Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more
In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element
Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.