A kind of production method of home gateway system classification version
Technical field
The invention belongs to the home gateway network-termination device, relate to the customized version customization of user terminal, test department test, plant produced field, particularly a kind of quick method of producing of system customization version and factory that can reduce home gateway.
Background technology
Along with rapid development of network technology, the price of PC constantly reduces, and broadband access quantity is along with the user of PC also rapid growth, and home gateway terminal also is widely applied in the actual life.Under varying environment, terminal software can not be general, causes software version more and more, safeguards more and more difficult.
At present, dispatch from the factory pre-configured and the version software of home gateway are bundled in one, promptly come the customized software version according to client's demand, dispatch from the factory that it is just definite to be pre-configured to be in the software version customization procedure, can not revise later on again.And dispatching from the factory of different regions or different customer requirements is pre-configured different, each dispatches from the factory and pre-configuredly just must make a software version according to requirement of client, cause version quantity a lot, in the production run of each home gateway version, all need research and development and test, increased workload virtually through customized slip-stick artist and Test Engineer.
Because under the top prerequisite of discussing, the production run of home gateway is to produce by the order demand, this a certain section time order will occur many time, produce and do not come, when a certain the period, order was few, do not have production, cause factory's production capacity in T.T. to descend like this.In order to overcome above-mentioned production capacity defective, if consider to produce a kind of semi-manufacture home gateway, simply changed according to customer demand then, then can speed production efficient, improve production capacity.The present invention is exactly the design under this background prerequisite.
Summary of the invention
The objective of the invention is in order to reduce the technical barrier of software customized version to enhance productivity of home gateway, pre-configuredly from version software, separate dispatching from the factory, be made as semi-manufacture, repartition a sector and use to factory-configured in the flash flash memory, factory can directly produce or the upgraded edition of upgrading satisfied requirements of different users originally home gateway.
The present invention for realizing the technical scheme that goal of the invention adopts is, a kind of production method of home gateway system classification version, realize based on production run the flash flash memory of home gateway, the supporting upgraded version additional data memory block of setting up in the structure of flash flash memory, and in system-based configuration store district, increase interface, the address that above interface connects upgraded version additional data memory block forms mapping table, and on this basis, the concrete steps of home gateway system upgraded version comprise:
A, carry out production system software according to the basic system version, the configuration file stores of basic system version is in system-based configuration store district, and keeping configuration upgrading memory block be the storage area of sky;
B, software systems in the flash internal memory and default configuration file are tested, form semi-manufacture, change factory afterwards over to and produce in batches;
C, according to the customer demand customization pre-configured file that dispatches from the factory, and the pre-configured document upgrading that will dispatch from the factory is updated in configuration upgrading memory block, determines the version of system;
D, encapsulation are dispatched from the factory.
Key of the present invention is the structure of flash is improved, and repartitions out a zone and uses to factory, therefore can form unified system software release when customization, has reduced the repetitive operation process of software development and test; Order also can be produced more after a little while in the process of factory production simultaneously, owing to be semi-manufacture, therefore need not to consider the waste problem, has both satisfied client's demand, has reduced the workload of research and development of software and test again, also production efficiency is improved greatly.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is the flash flash memory space synoptic diagram that the present invention designs.
Fig. 2 is the process flow diagram that home gateway reads in system's run time version configuration.
Embodiment
A kind of production method of home gateway system classification version, realize based on production run the flash flash memory of home gateway, the supporting upgraded version additional data memory block of setting up in the structure of flash flash memory, and in system-based configuration store district, increase interface, the address that above interface connects upgraded version additional data memory block forms mapping table, on this basis, the concrete steps of home gateway system upgraded version comprise:
A, carry out production system software according to the basic system version, the configuration file stores of basic system version is in system-based configuration store district, and keeping configuration upgrading memory block be the storage area of sky;
B, software systems in the flash internal memory and default configuration file are tested, form semi-manufacture, change factory afterwards over to and produce in batches;
C, according to the customer demand customization pre-configured file that dispatches from the factory, and the pre-configured document upgrading that will dispatch from the factory is updated in configuration upgrading memory block, determines the version of system;
D, encapsulation are dispatched from the factory.
To dispose the upgrading memory block and be made as high priority, when flash memory moves, at first move the pre-configured file that dispatches from the factory in the configuration upgrading memory block,, then move the configuration file of basic system version if be dummy section in the configuration upgrading memory block.
Above-mentioned configuration upgrading memory block for can wipe, revisable storage area.
Above-mentioned c step, when upgrading was upgraded, the type of at first judging upgrade file was the pre-configured file type of dispatching from the factory, and dispatched from the factory during pre-configured fileversion number the renewal of just upgrading more than or equal to what stored when the version number of upgrade file.
Referring to Fig. 1, in the flash space, Boot is for starting the boot memory block, NVRAM is the non-volatile random memory block, kernel is a system kernel, file System is a file system, / etc/default.cfg is the configuration file stores district of basic system version, Default Cfg Block is the pre-configured file that dispatches from the factory that the present invention increases newly, i.e. configuration upgrading memory block, PSI backup is the configuration backup district, can make the flash of software compatible prior art in escalation process, SP+Syslog is operating status data of system and system journal memory block, and PSI is the configuration file stores district of the current use of terminal.From Boot ~/etc/default.cfg belongs to the part of default system software, cannot revise, and Default Cfg Block is a new zone that increases separately, be used to deposit the pre-configured file that dispatches from the factory, can upgrade, revise and wipe, according to user's demand system version be upgraded, the priority of this part configuring area is high, when if this zone is empty, the configuration file of use/etc/default.cfg system default then.
Key of the present invention is the structure of flash is improved, and repartitions out a zone and uses to factory, therefore can form unified system software release when customization, has reduced the repetitive operation process of software development and test; Order also can be produced more after a little while in the process of factory production simultaneously, owing to be semi-manufacture, therefore need not to consider the waste problem, has both satisfied client's demand, has reduced the workload of research and development of software and test again, also production efficiency is improved greatly.