The content of the invention
For this reason, it may be necessary to provide a kind of firmware partition processing scheme, for solving for a type, due to customization
The problem of firmware is not quite similar, and cost of labor is high.
To achieve the above object, a kind of firmware partition processing method, including step are inventor provided:
Read the size and order for each firmware for treating burning;
According to the size of each firmware for treating burning of reading and it is sequentially generated partition table information file.
As a kind of embodiment of firmware partition processing method, methods described also includes step:
By the partition table information burning file to treating storage location corresponding to recording device partition table;
According to the order of each firmware, successively by each firmware burning to treating in recording device.
As a kind of embodiment of firmware partition processing method, " the partition table information file " specifically includes subregion
Name, initial address and firmware size, the firmware name of the entitled firmware for treating burning of the subregion, the initial address are to treat that burning is consolidated
Part starts the storage address of burning.
As a kind of embodiment of firmware partition processing method, methods described also includes step:
Obtain the device id for treating recording device;
Send device id and treat the information of each firmware of burning to firmware monitors server.
As a kind of embodiment of firmware partition processing method, methods described also includes step:
The each firmware of burning successively to after recording device perform treat recording device reboot operation.
A kind of firmware partition processing unit based on same inventive concept, including read module and generation module;
The read module is used for the size and order for reading each firmware for treating burning;
The generation module is used for the size of each firmware for treating burning read and is sequentially generated partition table information
File;
As a kind of embodiment of firmware partition processing unit, it also includes burning module, the burning module bag
Include partition table burning module and firmware burning module, the partition table burning module is used for partition table information burning file to treating
Storage location corresponding to recording device partition table, the firmware burning module are used for according to each firmware in partition table information file
Order, successively by each firmware burning to treating storage location corresponding to recording device firmware.
As a kind of embodiment of firmware partition processing unit, " the partition table information file " specifically includes subregion
Name, initial address and firmware size, the firmware name of the entitled firmware for treating burning of the subregion, the initial address are to treat that burning is consolidated
Part starts the address of burning.
As a kind of embodiment of firmware partition processing unit, it also includes information sending module, described information hair
Module is sent to include obtaining ID modules and sending module, the acquisition ID modules are used to obtain the device id for treating recording device, described
The information for each firmware that sending module is used to send device id and treat burning is to firmware monitors server.
As a kind of embodiment of firmware partition processing unit, it also includes restarting module, described to restart module use
In each firmware of burning successively to after recording device perform treat recording device reboot operation.
Prior art is different from, the size and order for each firmware for treating burning can be read in above-mentioned technical proposal, and will be solid
Part size can directly burn the partition table information file of generation with corresponding partition table information file, technical staff is sequentially generated
Record is to storage location corresponding to recording device partition table is treated, so as to greatly reduce the artificial mistake for calculating partition table information file
Rate, cost of labor is not only saved, and simplified production procedure so that burning firmware becomes quick, accurate, efficient, embedding
Entering formula equipment production field has very high commercial value.
Embodiment
To describe the technology contents of technical scheme, construction feature, the objects and the effects in detail, below in conjunction with specific reality
Apply example and coordinate accompanying drawing to be explained in detail.
Referring to Fig. 1, the flow chart of the firmware partition processing method for one embodiment of the present invention;Methods described can be with
Run on and calculate on the electronic equipment with processing function, the electronic equipment can be a host computer, such as computer or Fig. 2 institutes
The PC shown.Host computer specifically includes the following steps when handling firmware partition:
The size and order for each firmware for treating burning are read for step S1 first.Treating each firmware of burning can store
In on the hard disk of host computer, in order to subsequent operation.It can be to sweep successively to read the size for each firmware for treating burning and order
The size of each firmware is retouched, and obtains the size of each firmware, can sequentially be distinguished by the name of firmware, such as first firmware
Be named as " 1 ", the second firmware is named as " 2 " etc., or by the order of selection come determine firmware order, first selection for
First firmware, second selection for second firmware etc..In some embodiments, the firmware for treating burning can be Android
System, then as shown in Fig. 2 boot firmware, kernel firmware and Android firmware can be included by treating each firmware of burning, now
Firmware order is read first to read boot firmware, then reads kernel firmware, reads Android firmware again afterwards.In other embodiment
In, other firmwares in addition to above three can also be included by treating the firmware of burning.
Then enter step S2 according to the size of each firmware for treating burning read and be sequentially generated as partition table letter
Cease file.Generating the rule of partition table information file can be:The burning initial address of first firmware is specified, other treat that burning is consolidated
The burning initial address of part is the burning initial address and firmware size sum of a upper firmware for treating burning, and by all firmwares
Burning initial address message (IAM) recorded in subregion list file.As shown in Fig. 2 with reference to the firmware embodiments of Android system, specify
The initial address of first firmware (boot firmware) is A, and the size of boot firmware is a, then treats the kernel firmware of burning behind
Initial address be A+a;And for example the burning initial address of kernel firmware is A+a, and kernel firmware size is b, then is treated behind
The initial address of the Android firmware of burning is A+a+b, then recorded these initial address message (IAM)s in subregion list file, and
Generate subregion list file.In this manner it is ensured that when recording multiple firmware informations in partition table information file, between each firmware
Positional information is continual, namely behind the address of a firmware, can be followed by next firmware immediately.
Because above-mentioned S1 and S2 steps are automatically performed by host computer, thus for a type, if customizedization
Firmware it is different, all different firmware informations read can be generated as different partition table information files by host computer, this
Avoid the need for again by manually calculating the partition table information file of each firmware one by one, so as to greatly reduce artificial calculating partition table
The error rate of message file, has saved cost of labor.In addition, technical staff can directly burn the partition table information file of generation
Record is to treating storage location corresponding to recording device partition table so that burning firmware becomes quick, accurate, efficient.
In order to improve the writing speed of firmware, host computer can enter step S3 burning subregions after partition table has been generated
Table message file is to treating storage location corresponding to recording device partition table.Wherein, storage position corresponding to recording device partition table is treated
Put the storage location in recording device is treated after the completion of partition table information burning file.Burning process is to pass through replication tool
Come what is completed, replication tool can be stored in the hard disk of host computer, can also be entered by the online burning instrument on internet
Row online burning.As shown in Fig. 2 in the present embodiment, the storage location after the completion of partition table information burning file is to wait to burn
The foremost position of recording apparatus main storage, it can so ensure that when recording device is restarted, system will read storage at first
Firmware size and order in analytical table message file in treating the partition table information file in recording device, and then parsing are believed
Breath, in order to treat the loading and operation to firmware of recording device.
After partition table burning, host computer can enter orders of the step S4 according to each firmware, successively each firmware of burning
To treating storage location corresponding to each firmware of recording device.Wherein, the order of each firmware of burning with partition table information file
The order of each firmware of record corresponds, host computer according to the order of each firmware recorded in partition table information file,
The each firmware of burning successively.Such as in the embodiment that above-mentioned firmware is Android system, recorded in partition table information file
Firmware order is followed successively by boot firmware, kernel firmware and Android firmware, then burning order is first burning corresponding to each firmware
Boot firmware, reburn record kernel firmware, and reburn record Android firmware afterwards.After the completion of firmware and partition table burning, recording device is treated
Startup test can be carried out.By being automatically performed for host computer, efficiency is improved, also reduces the possibility of error.
Much information can be included in partition table information file, in certain embodiments, partition table information file includes
Zone name, initial address and firmware size, the zone name are corresponding firmware name, and the initial address is to treat that burning is consolidated
Part starts the storage address of burning.As shown in Fig. 2 for example in the present embodiment, the zone name of boot firmware as " guides ",
The initial address of boot firmware is that boot firmware starts memory address corresponding to the original position of burning.So, technical staff is led to
Cross the information of observation partition table information file, it is possible to be clear from treating the burning of firmware name present on recording device, firmware
Initial address and size are recorded, is easy to further manage.
After each firmware burning, can also pass into step S5 and obtain and treat the device id of recording device, and send device id and
Treat burning firmware information to firmware monitors server.Wherein, treat that recording device ID treats recording device sequence number, for identifying electricity
Sub- equipment, can be made up of a string of characters.As shown in figure 3, firmware monitors server can be a host computer, such as computer.
Server and the connection of electronic equipment of operation this method can be wired connections, such as USB connections, or wireless connection, such as nothing
Line network connection, mobile communication connection etc..Firmware monitors server can store after receiving electronic equipment ID and firmware information
Come, attendant can treat corresponding each firmware on recording device according to these information and be tracked, and can confirm that difference
Treat the size and order of each firmware on recording device, aspect understands difference and treats firmware situations on recording device, be easy into
One step management, it will also be appreciated that the demand of firmware upgrade, so as to make assessment to firmware upgrade demand.
After each firmware burning, it can also pass into step S6 and treated in each firmware of burning successively to being performed after recording device
Recording device reboot operation.After partition table information file and each firmware whole burning, it is to treating that recording device operates
System sends instruction of restarting, and operating system is completed to restart after receiving instruction of restarting, when operating system is restarted, first from treating
The foremost position of recording device primary storage parses partition table information file, afterwards according to recorded in partition table information file
Each firmware size and order, successively solution extrude each firmware, and by carry to corresponding disk partition.Attendant
Treat whether recording device completes normal reboot operation by observation, can judge whether firmware burning process exception occurs in time,
If exception occurs in reboot operation, what attendant can be abnormal to appearance treat that recording device carries out burning firmware again, from
And ensure the qualification rate of product.
And the present invention also provides a kind of device of firmware partition processing.Referring to Fig. 3, consolidate for an embodiment of the present invention
The structural representation of part multidomain treat-ment device.Described device includes read module 1 and generation module 2;
The read module 1 is used for the size and order for reading each firmware for treating burning;
The generation module 2 is used for according to the size of each firmware for treating burning of reading and is sequentially generated partition table information
File 21.
In order that reading is quicker, in certain embodiments, read module 1 can also include the He of address read module 11
Size read module 12, the address read module 11, which is used to read, treats that burning firmware starts the initial address of burning, described big
Small read module 12 is used for the size for reading firmware.The size and order of each firmware for treating burning are read in the scanning of read module 1.
Wherein, the firmware for treating burning is stored in the hard disk of host computer, and host computer scans each firmware size successively, and is obtained each
The size of individual firmware, it can sequentially be distinguished by the name of firmware, such as first firmware is named as " 1 ", and the second firmware is named as
" 2 " etc., or firmware order is determined by the order of selection, first selection for first firmware, second selection
For second firmware etc..The firmware for treating burning can be Android system.It is described to treat each solid of burning then in present embodiment
Part includes boot firmware, kernel firmware and Android firmware, and the reading firmware order is first to read boot firmware, then is read interior
Core firmware, read Android firmware again afterwards.In other embodiments, the firmware read is also possible that in addition to above three
Other firmwares.
Generation module 2 is according to the size of each firmware for treating burning of reading and is sequentially generated as partition table information file
21.Much information can be included in partition table information file, in certain embodiments, partition table information file 21 specifically includes
Zone name, initial address and firmware size, the firmware name of the entitled firmware for treating burning of the subregion, the initial address are to wait to burn
Record firmware starts the address of burning.Such as in present embodiment, the firmware that is recorded in partition table information file order, which is followed successively by, draws
Lead firmware, kernel firmware and Android firmware, the order of replication tool burning successively is first burning boot firmware 41, then in burning
Core firmware 42, again burning Android firmware 43.
It after partition table information file generated, can be stored in the hard disk of host computer, can also be directly placed into before burning
Replication tool carries out burning.In certain embodiments, firmware partition processing unit also includes burning module 3, the burning module 3
For by the partition table information file and each firmware burning to treating storage location corresponding to recording device.Burning process is logical
Cross replication tool to complete, the replication tool can be stored in the hard disk of host computer, can also be by internet
Online burning instrument carries out online burning.
Further, burning module 3 includes partition table burning module 31 and firmware burning module 32, partition table burning module
31 are used for burning partition table information file 21, firmware burning module 32 be used for according in partition table information file each firmware it is big
The small and each firmware of order burning.
The request of the response technology personnel of burning module 3, by the automatic burning 21 of partition table information file to treating recording device point
Storage location corresponding to area's table." requests of the response technology personnel of burning module 3 " are specially that technical staff's click replication tool is opened
Beginning burning operation.In present embodiment, storage location corresponding to the partition table information file is to treat recording device main storage
Foremost position.
After the completion of partition table information burning file, burning module 3 is according to each recorded in partition information file table
The order of firmware, successively by each firmware burning to treating storage location corresponding to each firmware of recording device.So, each firmware
Burning be to be automatically performed according to the size of the firmware recorded in partition table information file and order, just eliminate artificial
The trouble of each firmware size is calculated, burning difference firmware is clicked on one by one without artificial again, not only simplify production stream
Journey, cost of labor has been greatly reduced it.After the completion of firmware and partition table burning, treat that recording device can carry out startup test.
By being automatically performed for host computer, efficiency is improved, also reduces the possibility of error.
The equipment of firmware statistics and analysis can be carried out to burning, in order to allow firmware to provide manufacturer in some embodiments
In, enabled information sending module 5 is also included after burning module 3 is enabled, information sending module 5 includes obtaining ID modules 51 and hair
Module 52 is sent, the acquisition ID modules are used to obtain the device id for treating recording device, and the sending module is used to send device id
With the information of each firmware for treating burning to firmware monitors server 7.It is described to treat that recording device ID treats recording device sequence number,
Can be made up of a string of characters for identifying electronic equipment.As shown in figure 3, the firmware monitors server can be one
Host computer, such as computer.Server and the connection of electronic equipment of operation this method can be wired connections, such as USB connections, or
The connection of wireless connection, such as wireless network, mobile communication connection.Firmware monitors server 7 receives device id (in Fig. 3
" 1 " below device id) and firmware information (such as Fig. 2 firmware name " guiding ", firmware initial address " A ", firmware size
" a "), these information can be stored, in order to the analysis of producer.
After the completion of each firmware burning, now treat recording device and not actuated, thus can not verify each firmware whether
Treat that correct burning is completed on recording device, in order to verify that the correct burning of firmware, burning module 3 also include restarting module 6 after enabled,
Restart module 6 to be used to perform reboot operation after burning module 3 is enabled.Restart module 6 to send out to the operating system for treating recording device
Instruction of restarting, operating system is sent to complete to restart after receiving instruction of restarting, when operating system is restarted, first from treating burning
The foremost position of device-hosted storage parses partition table information file, afterwards according to each recorded in partition table information file
The size and order of individual firmware, successively solution extrude each firmware, and by carry to corresponding disk partition.Certainly, do not having
For firmware burning in the case for the treatment of recording device, i.e., firmware does not have burning, then need not enable and restart module 6.
Firmware partition processing method or device described in above-mentioned technical proposal, can be automatically generated pair according to different firmware sizes
The partition table information file answered, technical staff is without literary to calculate and write partition table information one by one further according to different firmwares
Part, burning process without preparing to carry out burning with treating partition table information file that burning firmware is adapted again in advance, not only
The artificial error rate for calculating partition table information file is greatly reduced, has saved cost of labor, while also simplify production procedure,
So that burning firmware becomes quick, accurate, efficient.At the same time it can also treat recording device ID and treat that burning firmware information is sent
To firmware monitors server, producer is facilitated to monitor the firmware of product in real time.After the completion of firmware burning, treat burning and set
Standby system is restarted, and facilitates technical staff's monitoring to judge that the whether correct burning of each firmware is completed.Thus set embedded
Standby production field has very high commercial value.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or it is this process, method, article or end also to include
The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... "
Key element, it is not excluded that other key element in the process including the key element, method, article or terminal device also be present.This
Outside, herein, " being more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand
It is to include this number.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, apparatus or computer program production
Product.These embodiments can use the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.All or part of step in the method that the various embodiments described above are related to can by program come instruct the hardware of correlation come
Complete, described program can be stored in the storage medium that computer equipment can be read, for performing the various embodiments described above side
All or part of step described in method.The computer equipment, include but is not limited to:Personal computer, server, general-purpose computations
It is machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable
Smart machine, vehicle intelligent equipment etc.;Described storage medium, include but is not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle
Deposit, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to method, equipment (system) and the computer program product according to embodiment
Flow chart and/or block diagram describe.It should be understood that can be by every in computer program instructions implementation process figure and/or block diagram
One flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided
Programmed instruction is to the processor of computer equipment to produce a machine so that passes through the finger of the computing device of computer equipment
Order, which produces, to be used to realize what is specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set
In standby readable memory so that the instruction being stored in the computer equipment readable memory produces the manufacture for including command device
Product, the command device is realized to be referred in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
Fixed function.
These computer program instructions can be also loaded on computer equipment so that performed on a computing device a series of
Operating procedure is to produce computer implemented processing, so as to which the instruction performed on a computing device is provided for realizing in flow
The step of function of being specified in one flow of figure or multiple flows and/or one square frame of block diagram or multiple square frames.
Although the various embodiments described above are described, those skilled in the art once know basic wound
The property made concept, then other change and modification can be made to these embodiments, so embodiments of the invention are the foregoing is only,
Not thereby the scope of patent protection of the present invention, every equivalent structure made using description of the invention and accompanying drawing content are limited
Or equivalent flow conversion, or other related technical areas are directly or indirectly used in, similarly it is included in the patent of the present invention
Within protection domain.