Summary of the invention
For this reason, need to provide a kind of firmware partition processing scheme, for solving for a type, because the firmware customized is not quite similar, the problem that cost of labor is high.
For achieving the above object, inventor provide a kind of firmware partition disposal route, comprise step:
Read the size and order for the treatment of each firmware of burning;
Partition table information file is generated according to the size treating each firmware of burning read and order.
As the embodiment of a kind of firmware partition disposal route, described method also comprises step:
By described partition table information burning file to treating the memory location that recording device partition table is corresponding;
According to the order of each firmware, successively by each firmware burning to treating in recording device.
As the embodiment of a kind of firmware partition disposal route, described " partition table information file " specifically comprises zone name, start address and firmware size, described subregion is called the firmware name of the firmware treating burning, and described start address is treat that burning firmware starts the memory address of burning.
As the embodiment of a kind of firmware partition disposal route, described method also comprises step:
Obtain the device id treating recording device;
Transmitting apparatus ID and treat that the information of each firmware of burning is to firmware monitors server.
As the embodiment of a kind of firmware partition disposal route, described method also comprises step:
Recording device reboot operation is treated to performing after recording device at each firmware of burning successively.
Based on a kind of firmware partition treating apparatus of same inventive concept, comprise read module and generation module;
Described read module is for reading size and the order of each firmware treating burning;
Described generation module is used for the read size treating each firmware of burning and order to generate partition table information file;
As the embodiment of a kind of firmware partition treating apparatus, it also comprises burning module, described burning module comprises partition table burning module and firmware burning module, described partition table burning module is used for partition table information burning file to treating the memory location that recording device partition table is corresponding, described firmware burning module is used for according to the order of each firmware in partition table information file, successively by each firmware burning to treating the memory location that recording device firmware is corresponding.
As the embodiment of a kind of firmware partition treating apparatus, described " partition table information file " specifically comprises zone name, start address and firmware size, described subregion is called the firmware name of the firmware treating burning, and described start address is treat that burning firmware starts the address of burning.
As the embodiment of a kind of firmware partition treating apparatus, it also comprises information sending module, described information sending module comprises acquisition ID module and sending module, described acquisition ID module is for obtaining the device id treating recording device, and described sending module is used for transmitting apparatus ID and treats that the information of each firmware of burning is to firmware monitors server.
As the embodiment of a kind of firmware partition treating apparatus, it also comprises restarts module, described in restart module for treating recording device reboot operation at each firmware of burning successively to performing after recording device.
Be different from prior art, technique scheme can read size and the order of each firmware treating burning, and firmware size and order are generated corresponding partition table information file, technician can by the partition table information file direct burning of generation to treating the memory location that recording device partition table is corresponding, thus greatly reduce the artificial error rate calculating partition table information file, not only save cost of labor, and simplify production procedure, burning firmware is become fast, accurately, efficiently, at embedded device production field, there is very high commercial value.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the process flow diagram of the firmware partition disposal route of one embodiment of the present invention; Described method can run on the electronic equipment of calculating and processing capacity, and described electronic equipment can be a host computer, the PC as shown in computer or Fig. 2.Host computer specifically comprises the following steps: when processing firmware partition
First for step S1 reads the size and order treating each firmware of burning.Treat that each firmware of burning can be stored on the hard disk of host computer, so that subsequent operation.Reading treats that the size of each firmware of burning and order can for scanning the size of each firmware successively, and obtain the size of each firmware, order can be distinguished by the name of firmware, as first firmware called after " 1 ", second firmware called after " 2 " etc., or by select order determine firmware order, first select be first firmware, second select be second firmware etc.In some embodiments, treat that the firmware of burning can be Android system, then as shown in Figure 2, treat that each firmware of burning can comprise boot firmware, kernel firmware and Android firmware, now read firmware order for first to read boot firmware, read kernel firmware again, read Android firmware more afterwards.In other embodiments, treat that the firmware of burning can also comprise other firmwares except above three.
Then enter step S2 and be generated as partition table information file according to the read size treating each firmware of burning and order.The rule generating partition table information file can be: the burning start address of specifying first firmware, other treat that the burning start address of burning firmware is upper burning start address and a firmware size sum treating the firmware of burning, and the burning initial address message (IAM) of all firmwares are recorded in partition table file.As shown in Figure 2, in conjunction with the firmware embodiments of Android system, specify the start address of first firmware (boot firmware) to be A, the size of boot firmware is a, is so A+a in the start address of the kernel firmware treating thereafter burning; And for example the burning start address of kernel firmware is A+a, and kernel firmware size is b, is so A+a+b in the start address of the Android firmware treating thereafter burning, then these initial address message (IAM)s is recorded in partition table file, and generates partition table file.Like this, can ensureing that, when recording multiple firmware information in partition table information file, the positional information between each firmware is continual, also namely after the address of a firmware, next firmware can be followed by immediately.
Because above-mentioned S1 and S2 step completes automatically by host computer, thus for a type, if the firmware customized is different, read all different firmware information can be generated as different partition table information files by host computer, this does not just need again by the partition table information file manually calculating each firmware one by one, thus greatly reduce the artificial error rate calculating partition table information file, save cost of labor.In addition, technician burning firmware can be become fast by the partition table information file direct burning of generation to treating the memory location that recording device partition table is corresponding, accurately, efficient.
In order to improve the writing speed of firmware, host computer, after having generated partition table, can enter step S3 burning partition table information file to treating the memory location that recording device partition table is corresponding.Wherein, be after partition table information burning file completes until the memory location that recording device partition table is corresponding and treating the memory location in recording device.Burning process has been come by replication tool, and replication tool can be stored in the hard disk of host computer, also can carry out online burning by the online burning instrument on internet.As shown in Figure 2, in the present embodiment, memory location after partition table information burning file completes is the foremost position treating recording device primary memory, can ensure like this when recording device is restarted, system will read the partition table information file being stored in and treating in recording device at first, and then firmware size in resolving in analytical table message file and order information, so that treat the loading to firmware and the operation of recording device.
After partition table burning, host computer can enter the order of step S4 according to each firmware, and each firmware of burning is to treating the memory location that each firmware of recording device is corresponding successively.Wherein, the order one_to_one corresponding of each firmware recorded in the order of each firmware of burning and partition table information file, host computer according to the order of each firmware recorded in partition table information file, each firmware of burning successively.Be such as in the embodiment of Android system at above-mentioned firmware, the firmware order recorded in partition table information file is followed successively by boot firmware, kernel firmware and Android firmware, then the burning order that each firmware is corresponding is first burning boot firmware, reburn record kernel firmware, record Android of reburning afterwards firmware.After firmware and partition table burning complete, treat that namely recording device can carry out startup test.Automatically completing by host computer, improves efficiency, also reduces the possibility of error.
Much information can be included in partition table information file, in certain embodiments, partition table information file comprises zone name, start address and firmware size, described zone name is corresponding firmware name, and described start address is treat that burning firmware starts the memory address of burning.As shown in Figure 2, such as in the present embodiment, the zone name of boot firmware is " guiding ", and the start address of boot firmware is that boot firmware starts memory address corresponding to the reference position of burning.Like this, technician, by observing the information of partition table information file, just can know firmware name, the burning start address of firmware and the size knowing and treat recording device exists, be convenient to further management.
After each firmware burning, step S5 can also be entered and obtain the device id treating recording device, and send device id and treat that burning firmware information is to firmware monitors server.Wherein, treating that namely recording device ID treats recording device sequence number, for identifying electronic equipment, can be made up of a string character.As shown in Figure 3, firmware monitors server can be a host computer, as computer.Server can be wired connection with the connection of the electronic equipment running this method, as USB connects, or wireless connections, as wireless network connection, mobile communication connection etc.Can store after firmware monitors server receives electronic equipment ID and firmware information, maintainer can treat each firmware corresponding on recording device according to these information and follow the tracks of, can confirm that difference treats size and the order of each firmware on recording device, the different firmware situation treated on recording device is understood in aspect, be convenient to further management, also can know the demand of firmware upgrade, thus assessment can be made to firmware upgrade demand.
After each firmware burning, step S6 can also be entered and treat recording device reboot operation at each firmware of burning successively to performing after recording device.After partition table information file and the whole burning of each firmware, to treating that recording device operating system sends instruction of restarting, operating system completes after receiving instruction of restarting restarts, when operating system is restarted, first from treating that the foremost position of recording device primary storage parses partition table information file, afterwards according to size and the order of each firmware recorded in partition table information file, separate successively and extrude each firmware, and by it carry to corresponding disk partition.By observation, maintainer treats whether recording device completes normal reboot operation, can judge whether firmware burning process occurs exception in time, if reboot operation occurs abnormal, then maintainer abnormal can treat that recording device carries out burning firmware again to occurring, thus ensures the qualification rate of product.
And the device that the present invention also provides a kind of firmware partition to process.Referring to Fig. 3, is the structural representation of an embodiment of the present invention firmware partition treating apparatus.Described device comprises read module 1 and generation module 2;
Described read module 1 is for reading size and the order of each firmware treating burning;
Described generation module 2 is for generating partition table information file 21 according to the size treating each firmware of burning read and order.
In order to make reading quicker, in certain embodiments, read module 1 can also comprise address read module 11 and size read module 12, and for reading, described address read module 11 treats that burning firmware starts the start address of burning, described size read module 12 is for reading the size of firmware.Read module 1 scans and reads each size treating the firmware of burning and order.Wherein, describedly treat that the firmware stores of burning is in the hard disk of host computer, host computer scans each firmware size successively, and obtaining the size of each firmware, order can be distinguished by the name of firmware, as first firmware called after " 1 ", second firmware called after " 2 " etc., or by select order determine firmware order, first select be first firmware, second select be second firmware etc.Treat that the firmware of burning can be Android system.Then in present embodiment, described in treat that each firmware of burning comprises boot firmware, kernel firmware and Android firmware, described reading firmware order for first to read boot firmware, then reads kernel firmware, reads Android firmware more afterwards.In other embodiments, the firmware read also may comprise other firmwares except above three.
According to each reading, generation module 2 treats that the size of the firmware of burning and order are 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 comprises zone name, start address and firmware size, described subregion is called the firmware name of the firmware treating burning, and described start address is treat that burning firmware starts the address of burning.Such as, in present embodiment, the firmware order recorded in partition table information file is followed successively by boot firmware, kernel firmware and Android firmware, and the order of replication tool burning is successively first burning boot firmware 41, reburn record kernel firmware 42, the firmware of burning Android again 43.
After partition table information file generated, can be stored in the hard disk of host computer before burning, also directly can put into replication tool and carry out burning.In certain embodiments, firmware partition treating apparatus also comprises burning module 3, described burning module 3 for by described partition table information file and each firmware burning to treating the memory location that recording device is corresponding.Burning process has been come by replication tool, and described replication tool can be stored in the hard disk of host computer, also can carry out online burning by the online burning instrument on internet.
Further, burning module 3 comprises partition table burning module 31 and firmware burning module 32, partition table burning module 31 is for burning partition table information file 21, and firmware burning module 32 is for according to the size of each firmware in partition table information file and each firmware of order burning.
The request of burning module 3 response technology personnel, by automatic for partition table information file burning 21 to treating the memory location that recording device partition table is corresponding." requests of burning module 3 response technology personnel " are specially technician and click replication tool and start burning operation.In present embodiment, the memory location that described partition table information file is corresponding is the foremost position treating recording device primary memory.
After partition table information burning file completes, burning module 3 according to the order of each firmware recorded in partition information file table, successively by each firmware burning to treating the memory location that each firmware of recording device is corresponding.Like this, the burning of each firmware is all automatically complete with order according to the size of the firmware recorded in partition table information file, just eliminate the artificial trouble calculating each firmware size, also the different firmware of burning is clicked one by one without the need to artificial again, not only simplify production procedure, also greatly reduce cost of labor.After firmware and partition table burning complete, treat that namely recording device can carry out startup test.Automatically completing by host computer, improves efficiency, also reduces the possibility of error.
There is provided manufacturer the equipment of firmware can carry out statistics and analysis to burning to allow firmware, in certain embodiments, enable information sending module 5 is also comprised after burning module 3 is enable, information sending module 5 comprises acquisition ID module 51 and sending module 52, described acquisition ID module is for obtaining the device id treating recording device, and described sending module is used for transmitting apparatus ID and treats that the information of each firmware of burning is to firmware monitors server 7.Describedly treating that namely recording device ID treats recording device sequence number, for identifying electronic equipment, can be made up of a string character.As shown in Figure 3, described firmware monitors server can be a host computer, as computer.Server can be wired connection with the connection of the electronic equipment running this method, as USB connects, or wireless connections, as wireless network connection, mobile communication connection etc.Firmware monitors server 7 receives device id (" 1 " as below the device id in Fig. 3) and firmware information (as the firmware name " guiding " of Fig. 2, firmware start address " A ", firmware size " a "), these information can be stored, so that the analysis of producer.
After each firmware burning completes, now treat that recording device does not start, thus cannot verify whether each firmware is treating that on recording device, correct burning completes, in order to verify the correct burning of firmware, also comprise after burning module 3 is enable and restart module 6, restart module 6 in the enable rear execution reboot operation of burning module 3.Restart module 6 to treating that the operating system of recording device sends instruction of restarting, operating system completes after receiving instruction of restarting restarts, when operating system is restarted, first from treating that the foremost position of recording device primary storage parses partition table information file, afterwards according to size and the order of each firmware recorded in partition table information file, separate successively and extrude each firmware, and by it carry to corresponding disk partition.Certainly, when not having firmware burning to when treating recording device, namely firmware does not have burning, then do not need enablely to restart module 6.
Firmware partition disposal route described in technique scheme or device, corresponding partition table information file can be automatically generated according to different firmware size, technician is without the need to calculating one by one according to different firmwares and writing partition table information file, burning process is also without the need to preparing the partition table information file suitable with treating burning firmware more in advance to carry out burning, not only greatly reduce the artificial error rate calculating partition table information file, save cost of labor, also simplify production procedure simultaneously, burning firmware become fast, accurately, efficient.Meanwhile, can also recording device ID and treat that burning firmware information is sent to firmware monitors server be treated, facilitate producer to product firmware monitor in real time.After firmware burning completes, the system treating recording device is restarted, and facilitates technician to monitor and judges that the whether correct burning of each firmware completes.Thus at embedded device production field, there is very high commercial value.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.