Summary of the invention
The present invention for solving in the prior art based on the high capacity internal storage of INAND/NAND since traditional cd-rom recorder do not support to disperse to write; Cause speed of production technical matters slowly; The present invention has designed the quick working method of the matching used internal storage based on INAND/NAND of a kind of and electronic equipment; Through external memory storage internal storage is carried out subregion, also disperses to write system file, improved the speed of production of internal storage greatly.
The present invention for realizing the technical scheme that goal of the invention adopts is; The quick working method of the matching used internal storage based on INAND/NAND of a kind of and electronic equipment; Above method is by cd-rom recorder and stores the computer implemented of software kit program, in internal storage, mark off the system file storage space that is used for the storage system bootstrap program module and by cd-rom recorder and computing machine in this system file storage space programming system boot; In electronic equipment, set up SD draw-in groove, and the supporting setting SD card that stores the system upgrade/production file based on same software version and store robotization subregion shell script, on this basis, described method may further comprise the steps:
A, unlocking electronic equipment power on and the operational system boot based on the internal storage of INAND/NAND, system bootstrap routine detect internal storage wait produce sign, if detect internal storage wait to produce sign, then execution in step B;
B, start the SD card, whether the kernel system of SD card reads partition table information in the internal storage, judges internal storage subregion, if do not read partition table information, represent internal storage not subregion, then execution in step C; If read partition table information, the expression internal storage is subregion, then jumps to step D;
The robotization subregion shell script of storing on C, the kernel system call SD card, to internal storage carry out subregion, and the format;
Specified file in system upgrade/production file of storing on D, the copy SD card or catalogue are accomplished the production of internal storage under the specified path of the specified partition of internal storage.
The present invention carries out subregion, also disperses to write system file internal storage through external memory storage, has improved the speed of production of internal storage greatly.
Embodiment
The quick working method of the matching used internal storage based on INAND/NAND of a kind of and electronic equipment; Above method is by cd-rom recorder and stores the computer implemented of software kit program, in internal storage, mark off the system file storage space that is used for the storage system bootstrap program module and by cd-rom recorder and computing machine in this system file storage space programming system boot; In electronic equipment, set up SD draw-in groove, and the supporting setting SD card that stores the system upgrade/production file based on same software version and store robotization subregion shell script, on this basis, described method may further comprise the steps:
A, unlocking electronic equipment power on and the operational system boot based on the internal storage of INAND/NAND, system bootstrap routine detect internal storage wait produce sign, if detect internal storage wait to produce sign, then execution in step B;
B, start the SD card, whether the kernel system of SD card reads partition table information in the internal storage, judges internal storage subregion, if do not read partition table information, represent internal storage not subregion, then execution in step C; If read partition table information, the expression internal storage is subregion, then jumps to step D;
The robotization subregion shell script of storing on C, the kernel system call SD card, to internal storage carry out subregion, and the format;
Specified file in system upgrade/production file of storing on D, the copy SD card or catalogue are accomplished the production of internal storage under the specified path of the specified partition of internal storage.
Among the above-mentioned step D, copy method is: in the SD card, store production burning script and script interpreter in advance, production burning script and script interpreter are under the specified path of the specified partition that on the internal storage that divides good district copies specified file to internal storage.
In the above-mentioned steps A; If system bootstrap routine does not detect treating in the internal storage and produces sign, further judge the sign of upgrading after sale of internal storage, if detect upgrading sign after sale; Then start the ROMPaq in the internal storage; If do not detect upgrading sign after sale, then directly start the operating system on the internal storage, get into normal mode of operation.
The present invention is in the specific implementation:
1) after software design was finished, the wrapper of operational system and digital signature program broke into a unified bag producing with file, production with recovery script file, recovery script explanation program.The interpretive routine of Recovery script is packaged in issue with the recovery script; Consider that from the angle of safety this interpretive routine only supports that limited function such as file copy, partitioned file burning, file delete, file decompress(ion), file packing, file permission modification, directory delete, directory permission modification, catalogue are packed, the catalogue decompress(ion).The recovery script file has defined each subregion and the corresponding source image filename thereof of producing the burning of wanting, has also defined file and the source filename that needs to disperse to be written to each subregion simultaneously in the script;
2) before the INAND/NAND paster is produced, the burned little boot in the system bootstrap position, file size is less than 300KB usually, and this boot judges automatically whether INAND/NAND is in occurrence attitude to be generated, and decision is from outside SD card start-up system;
3) make to start upgrade card, contain on it, and keep to produce at its data partition and use literature kit with the normal system entire run system under the upgrade mode after sale, this start on upgrade card file with upgrade after sale in full accord with file.When just moving, increased a Shell script, judged whether subregion of INAND/NAND automatically in system;
4) after machine assembles; Insert the startup upgrade card and power on then, carry out the program code in the INAND/NAND boot, when finding that INAND/NAND does not have subregion; Boot is loaded file system under LINUX kernel and the upgrade mode on the SD card automatically; Give linux kernel control then, after linux kernel has started, operation Linux-Shell shell script;
5) in the Shell shell script, search partition information,, carry out the subregion of INAND/NAND,, get into normal system upgrading flow process, directly got into for the 6th step if subregion exists if find that partition table does not exist;
6) master routine under the operation upgrade mode, this program is used literature kit with decompress(ion) production, confirms whether upgrade file is legal thereby carry out digital signature identification, if the legal recovery script explanation program that will carry out under the decompressing files bag of file;
7) Recovery script explanation program is resolved the recovery script and is carried out order wherein, just can be written among the INAND/NAND with each file that compresses in the literature kit producing;
8) through above each step, with regard to automatically INAND/NAND having been carried out subregion and burning or write the file that needs on each subregion, from actual property condition; Production efficiency has had the improvement of obviously showing; The INAND production time of 4GB only need 5 minutes less than, key is through this method, this not restriction of station base; Even can produce station to this and test combines, produce the time that time of software accounts in the whole production flow process and just can ignore basically.Owing to introduced the script explanation program, to disperseing write-in functions to play key effect, can realize very flexibly disperseing to write so simultaneously with control.