CN106569854A - Method and system for setting device firmware and realizing factory testing - Google Patents

Method and system for setting device firmware and realizing factory testing Download PDF

Info

Publication number
CN106569854A
CN106569854A CN201610950294.3A CN201610950294A CN106569854A CN 106569854 A CN106569854 A CN 106569854A CN 201610950294 A CN201610950294 A CN 201610950294A CN 106569854 A CN106569854 A CN 106569854A
Authority
CN
China
Prior art keywords
firmware
factory
directed
components
actuating section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610950294.3A
Other languages
Chinese (zh)
Other versions
CN106569854B (en
Inventor
邓铁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Jiupin Sesame Information Technology Co ltd
Original Assignee
JRD Communication Shenzhen Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Priority to CN201610950294.3A priority Critical patent/CN106569854B/en
Publication of CN106569854A publication Critical patent/CN106569854A/en
Application granted granted Critical
Publication of CN106569854B publication Critical patent/CN106569854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44552Conflict resolution, i.e. enabling coexistence of conflicting executables

Abstract

The invention discloses a method for setting device firmware. The method comprises the steps of generating fusion firmware, wherein the fusion firmware comprises a data part, a boot part and a system part of factory testing firmware, and a boot part and a system part of formal firmware; embedding the fusion firmware into a device; and modifying a boot loader in the device to enable a GPT partition table to point towards the booth part and the system part of the factory testing firmware in the fusion firmware during the factory testing and to enable the GPT partition table to point towards the boot part and the system part of the formal firmware in the fusion firmware after the factory testing is finished. Through the abovementioned way, operation for downloading the formal firmware can be reduced after the factory testing is ended, and the work efficiency is increased.

Description

It is a kind of that equipment firmware is set and the method and system that factory surveys are realized
Technical field
The present invention relates to technical field of electronic products, more particularly to a kind of to arrange equipment firmware and realize the method that factory surveys And system.
Background technology
With the day by day ripe and popularization of smart machine, smart machine is widely used.Equipment before shipment, developer Generally need to prepare two kinds of different equipment firmwares, a kind of is the factory's survey firmware for factory testing, and another kind is for issuing To the formal firmware of end user.
Due to a kind of firmware file can only be installed on equipment, when factory testing is completed, it is necessary to delete factory and survey firmware, again Formal firmware is downloaded, the workload of factory is increased.
The content of the invention
The invention mainly solves the technical problem of a kind of method and system for arranging equipment firmware and realizing factory's survey are provided, After factory's survey terminates, the operation for downloading formal firmware can be reduced, improve work efficiency.
To solve above-mentioned technical problem, one aspect of the present invention is:A kind of setting equipment firmware is provided Method, method includes:Fusion firmware is generated, fusion firmware includes data division, also survey the actuating section of firmware including factory and be System part, and the actuating section and components of system as directed of formal firmware;To merge in firmware insertion apparatus, and opening in modification equipment Dynamic loader, so that pointing to actuating section and system that the factory merged in firmware surveys firmware GPT partition tables when factory surveys are carried out Part, and GPT partition tables point to the actuating section and components of system as directed for merging the formal firmware in firmware after the completion of factory surveys.
Wherein, the actuating section and components of system as directed for merging formal firmware in firmware is located at the actuating section of factory's survey firmware and is Before system part, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware and The entitled temporary name of components of system as directed, factory surveys the actuating section of firmware and the entitled system default title of components of system as directed, just The actuating section of formula firmware and the title of components of system as directed complete to be revised as system default title after factory surveys.
Wherein, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with the startup that factory surveys firmware Part and components of system as directed;After factory's survey is completed, the beginning part that factory surveys firmware is at least deleted, to format number when restarting next time According to part.
Wherein, after factory's survey is completed, factory is deleted completely and surveys firmware, with the format data part when restarting next time.
To solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of side for realizing factory's survey is provided Method, including:Starting device is loading start-up loading device;Start-up loading device obtains factory in fusion firmware by reading GPT partition tables The actuating section of firmware is surveyed, and then guides linux kernel to carry out factory's survey, wherein fusion firmware includes data division, also including factory Survey the actuating section and components of system as directed of firmware, and the actuating section and components of system as directed of formal firmware;After completing factory's survey, open again Dynamic equipment is loading start-up loading device;Start-up loading device changes GPT partition tables, and GPT partition tables are pointed in fusion firmware The actuating section and components of system as directed of formal firmware.
Wherein, the actuating section and components of system as directed for merging formal firmware in firmware is located at the actuating section of factory's survey firmware and is Before system part, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware and The entitled temporary name of components of system as directed, factory surveys the actuating section of firmware and the entitled system default title of components of system as directed, just The actuating section of formula firmware and the title of components of system as directed complete to be revised as system default title after factory surveys, so that GPT subregions Table points to the actuating section and components of system as directed of the formal firmware in fusion firmware.
Wherein, complete factory survey after, restarting equipment to load start-up loading device before include:Setting is converted to formal solid The flag data of part;Before start-up loading device modification GPT partition tables, including:Judge whether include flag data in equipment, if bag Flag data is included, then the step of execution start-up loading device modification GPT partition tables, otherwise do not perform.
Wherein, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with the startup that factory surveys firmware Part and components of system as directed;After factory's survey is completed, factory is deleted completely and surveys firmware, with the format data part when restarting next time.
To solve above-mentioned technical problem, another technical solution used in the present invention is:A kind of setting equipment firmware is provided System, including:Generation module, for generating fusion firmware, fusion firmware includes data division, also surveys opening for firmware including factory Dynamic part and components of system as directed, and the actuating section and components of system as directed of formal firmware;Setup module, for fusion firmware to be inserted In equipment, and the start-up loading device in modification equipment, so that carrying out factory when factory surveys in GPT partition tables sensing fusion firmware The actuating section and components of system as directed of firmware are surveyed, and GPT partition tables point to the formal firmware merged in firmware after the completion of factory surveys Actuating section and components of system as directed.
To solve above-mentioned technical problem, another technical solution used in the present invention is:There is provided it is a kind of realize factory survey be System, including:First starting module, for starting device loading start-up loading device;Acquisition module, for according to start-up loading device By reading GPT partition tables, obtain factory in fusion firmware and survey the actuating section of firmware, and then guide linux kernel to carry out factory's survey, Wherein merging firmware includes data division, also survey the actuating section and components of system as directed of firmware including factory, and formal firmware is opened Dynamic part and components of system as directed;Second starting module, for completing after factory surveys, restarting equipment is loading start-up loading device;Repair Change module, for start-up loading device GPT partition tables are changed, GPT partition tables are pointed to into opening for the formal firmware in fusion firmware Dynamic part and components of system as directed.
The invention has the beneficial effects as follows:Factory's survey firmware is merged with formal firmware, in factory testing so that GPT subregions Table point to fusion firmware in factory survey firmware actuating section and components of system as directed, when factory survey after the completion of, by modification equipment in open Dynamic loader so that GPT partition tables point to the actuating section and components of system as directed of formal firmware in fusion firmware, while meet using Factory's survey and the demand of official release, can reduce the operation for downloading formal firmware, improve work efficiency.
Description of the drawings
Fig. 1 is the schematic flow sheet that the present invention arranges the embodiment of equipment firmware method one;
Fig. 2 is that the present invention realizes that factory surveys the schematic flow sheet of the embodiment of method one;
Fig. 3 is that the present invention realizes that factory surveys the schematic flow sheet of another embodiment of method;
Fig. 4 is the structural representation that the present invention arranges the embodiment of equipment firmware system one;
Fig. 5 is the structural representation that the present invention realizes the embodiment of factory's examining system one;
Fig. 6 is that the present invention arranges another example structure figure of equipment firmware system;
Fig. 7 is that the present invention realizes another example structure figure of factory's examining system.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet that the present invention arranges the embodiment of equipment firmware method one.If it is noted that having substantially Identical result, the method for the present invention is not limited with the flow process order shown in Fig. 1.As shown in figure 1, the method includes following step Suddenly:
S11:Fusion firmware is generated, fusion firmware includes data division, and the actuating section and system of firmware are also surveyed including factory Part, and the actuating section and components of system as directed of formal firmware.
Equipment firmware is that terminal is most basic, the software of lowermost layer work.For separately operable end product, if Standby firmware is often referred to operating system, such as:Smart mobile phone, router or MP4 etc.;For dependent end product, equipment firmware For lowermost layer, for the program code of holding equipment operation, such as:Hard disk, CD-ROM drive or USB flash disk etc..Therefore, produce in user's using terminal Before product, equipment firmware is write in the corresponding hardware system of end product via other instruments or software, when electricity in terminal, By equipment firmware direct drive and calling system hardware, so that terminal normal work.
Wherein, equipment firmware generally comprises actuating section, components of system as directed and data division.By taking android system as an example, if Standby firmware mainly includes boot subregions, system subregions and data subregions, wherein, boot subregions comprising linux kernel and The startup script of android system;System subregions are mainly comprising android system core component, configuration file and preset APP programs;And data subregions are the memory spaces of device interior, for storing user data, for example, the photo of shooting, video Deng.In the present embodiment, factory surveys firmware includes partial test software, and before equipment shipment, factory first can survey solid to equipment installation plant Part, for the basic function and parameter etc. of test product hardware, after the completion of test, deletes factory and surveys version and then install for shipment Formal firmware.Formal firmware is finally to be distributed to the official release that terminal use uses.Fusion firmware is integrated with for testing Factory survey firmware and the formal formal firmware published.
Optionally, merge formal firmware in firmware actuating section and components of system as directed be located at factory survey firmware actuating section and Before components of system as directed, data division is located at after the actuating section and components of system as directed that factory surveys firmware.Due to the data division of firmware Capacity is larger, in being embodied as, actuating section and components of system as directed that factory surveys firmware is stored in into the data partition of formal firmware. Therefore, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with factory and surveys the actuating section of firmware and be System part, after factory's survey is completed, at least deletes the beginning part that factory surveys firmware, with the format data part when restarting next time.
S12:To merge in firmware insertion apparatus, and the start-up loading device in modification equipment, so that when factory's survey is carried out GPT partition tables point to fusion firmware in factory survey firmware actuating section and components of system as directed, and factory survey after the completion of GPT partition tables Point to the actuating section and components of system as directed for merging the formal firmware in firmware.
Wherein, start-up loading device is used to initialize memory devices, and then guides system kernel.By taking Android as an example, at present Android system adopts GPT partition tables, for arranging the title of each subregion, is read in GPT partition tables by start-up loading device The title of each subregion, and then the particular location of boot subregions is obtained, so as to guide linux kernel, linux kernel is by reading GPT partition tables, obtain the position of system subregions, final each component of loading android system.
In the present embodiment, will merge in firmware insertion apparatus, before factory's survey is carried out, by changing GPT partition tables, by factory The actuating section and the title of components of system as directed for surveying firmware be set to system default title, and formal firmware in GPT partition tables is opened The title of dynamic part and components of system as directed is set to temporary name so that during system operation, and GPT partition tables point to factory in fusion firmware The actuating section of firmware is surveyed, so as to guide system kernel, system kernel finally to obtain components of system as directed by reading GPT partition tables, And then each component of loading system, complete factory testing.After the completion of factory surveys, GPT partition tables are changed by start-up loading device, The title of the actuating section of formal firmware and components of system as directed is set to into system default title so that during system operation, GPT subregions Table points to the actuating section and components of system as directed of formal firmware in fusion firmware so that when finally dispatching from the factory, run on equipment for just Formula firmware.Meanwhile, after factory's survey is completed, factory is deleted completely and surveys firmware, with the format data part when restarting next time.With As a example by android system, in android system start-up course, if detecting the head of data subregions not comprising effect EXT4 file datas, system is automatically data subregions to be reformatted as into EXT4 file system.
By the way, it is possible to reduce factory is surveyed after terminating, and downloads the operation of formal firmware, improves work efficiency.
With reference to Fig. 2, Fig. 2 is that the present invention realizes that factory surveys the schematic flow sheet of the embodiment of method one, in the present embodiment, is realized The method that factory surveys is comprised the following steps:
S21:Starting device is loading start-up loading device.
S22:Start-up loading device obtains the actuating section that factory in fusion firmware surveys firmware by reading GPT partition tables, and then Guiding linux kernel carries out factory's survey, wherein fusion firmware includes data division, the actuating section and system of firmware is also surveyed including factory Part, and the actuating section and components of system as directed of formal firmware.
Wherein, the actuating section and components of system as directed for merging formal firmware in firmware is located at the actuating section of factory's survey firmware and is Before system part, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware and The entitled temporary name of components of system as directed, factory surveys the actuating section of firmware and the entitled system default title of components of system as directed, just The actuating section of formula firmware and the title of components of system as directed complete to be revised as system default title after factory surveys, so that GPT subregions Table points to the actuating section and components of system as directed of the formal firmware in fusion firmware.
S23:Complete after factory surveys, restarting equipment is loading start-up loading device.
Optionally, after factory's survey is completed, before restarting equipment is to load start-up loading device, can be in fusion firmware fortune On capable graphical interfaces or in the program of system operation, increase " being converted to a formal firmware " flag bit, work as factory testing After personnel restart equipment, when system detectio to " being converted to formal firmware " indicates, automatically into step S24, fusion is completed solid Part is not otherwise performed to the conversion of formal firmware.In other embodiments, it is also possible on the graphical interfaces of fusion firmware operation Firmware conversion start button is provided, after tester completes test, click keys, equipment is restarted and automatically into firmware conversion Process.
S24:Start-up loading device changes GPT partition tables, and GPT partition tables are pointed to into opening for the formal firmware in fusion firmware Dynamic part and components of system as directed.
Wherein, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with the startup that factory surveys firmware Part and components of system as directed, after factory's survey is completed, delete completely factory and survey firmware, with the format data part when restarting next time.
By said method, actuating section and components of system as directed that factory surveys firmware are stored in into the data partition of formal firmware In, by the file designation for changing GPT partition tables, the particular location that factory surveys the actuating section of firmware is obtained, and then complete factory's survey Process, reduces the process for re-downloading firmware, improves work efficiency.
Fig. 3 is that the present invention realizes that factory surveys the schematic flow sheet of another embodiment of method.With reference to Fig. 2, Fig. 3, with It is described in detail as a example by android system.
Wherein, formal firmware 31 includes:Boot subregions, system subregions and data subregions;Factory surveys firmware 32 to be included:boot Subregion, system subregions and data subregions.Before factory testing, factory is surveyed into firmware and formal firmware is fused to GPT partition tables In, in the present embodiment, factory surveys the actuating section and components of system as directed of firmware and is stored in the data partition of formal firmware, and will fusion Firmware is downloaded on equipment.In order to distinguish actuating section and components of system as directed that factory surveys firmware and formal firmware, by changing GPT point Area's table, by the boot subregions of formal firmware bootX subregions are renamed as, and the system subregions of formal firmware are renamed as into systemX Subregion, merges the boot subregions of factory's survey firmware and the title of system subregions in firmware constant.As illustrated, fusion firmware 33 is wrapped Include:BootX subregions, systemX subregions, boot subregions, system subregions and data subregions.When Linux starts, GPT subregions Table acquiescence points to the boot subregions that factory surveys firmware, and then guides linux kernel to complete factory's survey operation.
After factory's survey is completed, the beginning part that factory surveys firmware is at least deleted, in other embodiments, factory can be surveyed part Boot subregions and system subregions all delete, it is also possible to only delete the sub-fraction of beginning, as the system reboots, detect Data subregions head does not include effective EXT4 file datas, and it is literary that data subregions can be reformatted as EXT4 by system automatically Part system.Meanwhile, start-up loading device reads GPT partition tables by the bootX subregions and systemX of formal firmware by loader The title of subregion changes back boot subregions and system subregions, finally gives new fusion firmware 34, including:Boot subregions, System subregions and data subregions, by fusion firmware formal firmware is converted into, and is distributed to end user.
By the way, after factory's survey part is completed, data division is formatted, it is final to obtain and the mould of formal firmware one The same firmware file, reduces the process for re-downloading, and improves work efficiency.
With reference to Fig. 4, Fig. 4 is the structural representation that the present invention arranges the embodiment of equipment firmware system one, and the setting equipment is consolidated Part includes:Generation module 41 and setup module 42.
Generation module 41, for generating fusion firmware, fusion firmware includes data division, the startup of firmware is also surveyed including factory Part and components of system as directed, and the actuating section and components of system as directed of formal firmware.
Optionally, merge formal firmware in firmware actuating section and components of system as directed be located at factory survey firmware actuating section and Before components of system as directed, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware With the entitled temporary name of components of system as directed, factory survey firmware actuating section and components of system as directed entitled system default title, The formal actuating section of firmware and the title of components of system as directed complete to be revised as system default title after factory surveys.
Setup module 42, for merging in firmware insertion apparatus, and the start-up loading device in modification equipment, so that Carry out the factory that GPT partition tables are pointed in fusion firmware when factory surveys and survey the actuating section and components of system as directed of firmware, and survey in factory and complete Afterwards GPT partition tables point to the actuating section and components of system as directed of the formal firmware in fusion firmware.
Optionally, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with factory and surveys opening for firmware Dynamic part and components of system as directed;After factory's survey is completed, the beginning part that factory surveys firmware is at least deleted, to format when restarting next time Data division.
Optionally, after factory's survey is completed, factory is deleted completely and surveys firmware, with the format data part when restarting next time.
Fig. 5 is the structural representation that the present invention realizes the embodiment of factory's examining system one, and the setting equipment firmware includes:First opens Dynamic model block 51, acquisition module 52, the second starting module 53 and modified module 54.
First starting module 51, for starting device loading start-up loading device.
Acquisition module 52, by reading GPT partition tables, obtains factory in fusion firmware and surveys firmware for according to start-up loading device Actuating section, and then guide linux kernel carry out factory's survey, wherein fusion firmware include data division, also including factory survey firmware Actuating section and components of system as directed, and the actuating section and components of system as directed of formal firmware.
Optionally, merge formal firmware in firmware actuating section and components of system as directed be located at factory survey firmware actuating section and Before components of system as directed, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware With the entitled temporary name of components of system as directed, factory survey firmware actuating section and components of system as directed entitled system default title, The formal actuating section of firmware and the title of components of system as directed complete to be revised as system default title after factory surveys, so that GPT point Area's table points to the actuating section and components of system as directed of the formal firmware in fusion firmware.
Second starting module 53, for completing after factory surveys, restarting equipment is loading start-up loading device.
Optionally, complete factory survey after, restarting equipment to load start-up loading device before include:Setting is converted to formally The flag data of firmware;Before start-up loading device modification GPT partition tables, including:Judge whether include flag data in equipment, if Including flag data, then the step of execution start-up loading device modification GPT partition tables, otherwise do not perform.
Modified module 54, for start-up loading device GPT partition tables are changed, and GPT partition tables are pointed in fusion firmware The actuating section and components of system as directed of formal firmware.
Optionally, the beginning part for merging the data division of firmware sets up two subregions, is respectively provided with factory and surveys opening for firmware Dynamic part and components of system as directed;After factory's survey is completed, factory is deleted completely and surveys firmware, with the format data part when restarting next time.
Modules and unit in above-described embodiment can respectively perform in said method embodiment the step of correspondence, therefore This is not repeated each module, and the explanation of above correspondence step is referred in detail.
Fig. 6 is that the present invention arranges another example structure figure of equipment firmware system, and the system includes:Processor 61 and place The memorizer 62 of the reason coupling of device 61.
Memorizer 62 is used for instruction and the fusion firmware file that storage program area, processor 61 are performed.
Processor 61 is used to generate fusion firmware, and fusion firmware includes data division, the boot portion of firmware is also surveyed including factory Divide and components of system as directed, and the actuating section and components of system as directed of formal firmware;To merge in firmware insertion apparatus, and change equipment In start-up loading device so that carrying out the factory that GPT partition tables are pointed in fusion firmware when factory surveys and surveying the actuating section of firmware And components of system as directed, and GPT partition tables point to actuating section and the Account Dept for merging the formal firmware in firmware after the completion of factory surveys Point.
Wherein, the actuating section and components of system as directed for merging formal firmware in firmware is located at the actuating section of factory's survey firmware and is Before system part, data division is located at after the actuating section and components of system as directed that factory surveys firmware;Processor 61 is used to formally to consolidate The actuating section of part and the entitled temporary name of components of system as directed, factory surveys the actuating section of firmware and the entitled system of components of system as directed System default name, the actuating section of formal firmware and the title of components of system as directed complete to be revised as system default title after factory surveys.
Optionally, processor 61 is used to set up two subregions in the beginning part of the data division of fusion firmware, sets respectively Put actuating section and components of system as directed that factory surveys firmware;After factory's survey is completed, the beginning part that factory surveys firmware is at least deleted, with Secondary format data part when restarting.
Optionally, processor 61 is used for after factory's survey is completed, and factory is deleted completely and surveys firmware, to format when restarting next time Data division.
With reference to Fig. 7, Fig. 7 is that the present invention realizes another example structure figure of factory's examining system, and the system includes:Processor 71, The memorizer 72 coupled with processor 71.
Memorizer 72 is used for instruction and the fusion firmware file that storage program area, processor 71 are performed.
Processor 71 is used to starting device load start-up loading device;Start-up loading device is obtained by reading GPT partition tables Factory surveys the actuating section of firmware in fusion firmware, and then guides linux kernel to carry out factory's survey, wherein fusion firmware includes data portion Point, the actuating section and components of system as directed of firmware, and the actuating section and components of system as directed of formal firmware are also surveyed including factory;Complete factory After survey, restarting equipment is loading start-up loading device;Start-up loading device changes GPT partition tables, GPT partition tables is pointed to and is melted The actuating section and components of system as directed of the formal firmware in conjunction firmware.
Wherein, the actuating section and components of system as directed for merging formal firmware in firmware is located at the actuating section of factory's survey firmware and is Before system part, data division is located at after the actuating section and components of system as directed that factory surveys firmware;The actuating section of formal firmware and The entitled temporary name of components of system as directed, factory surveys the actuating section of firmware and the entitled system default title of components of system as directed, just The actuating section of formula firmware and the title of components of system as directed complete to be revised as system default title after factory surveys, so that GPT subregions Table points to the actuating section and components of system as directed of the formal firmware in fusion firmware.
Optionally, processor 71 be used for complete factory survey after, restarting equipment to load start-up loading device before include:If Put the flag data for being converted to formal firmware;Before start-up loading device modification GPT partition tables, including:Judge whether wrapped in equipment Flag data is included, if including flag data, the step of perform start-up loading device modification GPT partition tables, otherwise not performing.
Optionally, processor 71 is used to set up two subregions in the beginning part of the data division of fusion firmware, sets respectively Put actuating section and components of system as directed that factory surveys firmware;After factory's survey is completed, factory is deleted completely and surveys firmware, with the lattice when restarting next time Formula data division.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can To realize by another way.For example, device embodiments described above are only schematic, for example, the mould The division of block or unit, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple Unit or component can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another Point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, device or The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.
Embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, is included within the scope of the present invention.

Claims (10)

1. it is a kind of arrange equipment firmware method, it is characterised in that comprise the following steps:
Fusion firmware is generated, the fusion firmware includes data division, the actuating section and components of system as directed of firmware is also surveyed including factory, And the actuating section and components of system as directed of formal firmware;
Merge described in firmware insertion apparatus, and change the start-up loading device in the equipment, so that when factory's survey is carried out GPT partition tables point to the actuating section and components of system as directed that the factory in the fusion firmware surveys firmware, and GPT point after the completion of factory surveys Area's table points to the actuating section and components of system as directed of the formal firmware in the fusion firmware.
2. method according to claim 1, it is characterised in that
The actuating section and components of system as directed of formal firmware is located at the factory and surveys the actuating section of firmware and be in the fusion firmware Before system part, the data division is located at after the actuating section and components of system as directed that the factory surveys firmware;
The actuating section of the formal firmware and the entitled temporary name of components of system as directed, the factory survey the actuating section of firmware and The entitled system default title of components of system as directed, the actuating section of formal firmware and the title of components of system as directed complete factory's survey After be revised as the system default title.
3. method according to claim 1, it is characterised in that
The beginning part of the data division of the fusion firmware sets up two subregions, is respectively provided with the boot portion that the factory surveys firmware Divide and components of system as directed;
After factory's survey is completed, the beginning part that the factory surveys firmware is at least deleted, to format the data when restarting next time Part.
4. method according to claim 3, it is characterised in that completing after factory surveys, the factory to be deleted completely and surveys firmware, with The data division is formatted when restarting next time.
5. it is a kind of to realize the method that factory surveys, it is characterised in that to include:
Starting device is loading start-up loading device;
The start-up loading device obtains factory in fusion firmware and surveys the actuating section of firmware by reading GPT partition tables, and then guides Linux kernel carries out factory's survey, wherein the fusion firmware includes data division, the actuating section and system of firmware is also surveyed including factory Part, and the actuating section and components of system as directed of formal firmware;
After completing factory's survey, restart the equipment to load start-up loading device;
The start-up loading device changes the GPT partition tables, the GPT partition tables is pointed to formal in the fusion firmware The actuating section and components of system as directed of firmware.
6. method according to claim 5, it is characterised in that
The actuating section and components of system as directed of formal firmware is located at the factory and surveys the actuating section of firmware and be in the fusion firmware Before system part, the data division is located at after the actuating section and components of system as directed that the factory surveys firmware;
The actuating section of the formal firmware and the entitled temporary name of components of system as directed, the factory survey the actuating section of firmware and The entitled system default title of components of system as directed, the actuating section of formal firmware and the title of components of system as directed complete factory's survey After be revised as the system default title so that the formal firmware that the GPT partition tables are pointed in the fusion firmware is opened Dynamic part and components of system as directed.
7. method according to claim 6, it is characterised in that
It is described to complete after factory's survey, to include before restarting the equipment to load start-up loading device:
Setting is converted to the flag data of formal firmware;
The start-up loading device is changed before the GPT partition tables, including:
Judge whether include the flag data in the equipment, if including the flag data, performing the start-up loading The step of device changes the GPT partition tables, does not otherwise perform.
8. method according to claim 5, it is characterised in that
The beginning part of the data division of the fusion firmware sets up two subregions, is respectively provided with the boot portion that the factory surveys firmware Divide and components of system as directed;
After factory's survey is completed, the factory is deleted completely and surveys firmware, to format the data division when restarting next time.
9. it is a kind of arrange equipment firmware system, it is characterised in that include:
Generation module, for generating fusion firmware, the fusion firmware includes data division, and the boot portion of firmware is also surveyed including factory Divide and components of system as directed, and the actuating section and components of system as directed of formal firmware;
Setup module, for merging described in firmware insertion apparatus, and changes the start-up loading device in the equipment, so that Actuating section and components of system as directed that the factory merged in firmware surveys firmware are pointed to GPT partition tables when factory surveys are carried out, and in factory GPT partition tables point to the actuating section and components of system as directed of the formal firmware in the fusion firmware after the completion of survey.
10. it is a kind of to realize the method that factory surveys, it is characterised in that to include:
First starting module, for starting device loading start-up loading device;
Acquisition module, by reading GPT partition tables, obtains factory in fusion firmware and surveys firmware for according to the start-up loading device Actuating section, and then guide linux kernel to carry out factory's survey, wherein the fusion firmware includes data division, also survey solid including factory The actuating section and components of system as directed of part, and the actuating section and components of system as directed of formal firmware;
Second starting module, for completing after the factory surveys, to restart the equipment to load start-up loading device;
Modified module, for the start-up loading device GPT partition tables are changed, and will be melted described in GPT partition tables sensing The actuating section and components of system as directed of the formal firmware in conjunction firmware.
CN201610950294.3A 2016-11-02 2016-11-02 Method and system for setting equipment firmware and realizing factory test Active CN106569854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610950294.3A CN106569854B (en) 2016-11-02 2016-11-02 Method and system for setting equipment firmware and realizing factory test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610950294.3A CN106569854B (en) 2016-11-02 2016-11-02 Method and system for setting equipment firmware and realizing factory test

Publications (2)

Publication Number Publication Date
CN106569854A true CN106569854A (en) 2017-04-19
CN106569854B CN106569854B (en) 2020-05-19

Family

ID=58534973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610950294.3A Active CN106569854B (en) 2016-11-02 2016-11-02 Method and system for setting equipment firmware and realizing factory test

Country Status (1)

Country Link
CN (1) CN106569854B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235095A (en) * 2018-01-17 2018-06-29 深圳创维数字技术有限公司 Based on magnetic disk media set-top box startup/adjustment method, set-top box and storage medium
CN109274807A (en) * 2018-11-21 2019-01-25 Oppo(重庆)智能科技有限公司 Test method, apparatus and system
CN109710192A (en) * 2018-12-27 2019-05-03 公安部物证鉴定中心 A kind of western number hard disk has used the data method for deleting in firmware area
WO2021129056A1 (en) * 2019-12-26 2021-07-01 晶晨半导体(深圳)有限公司 High-capacity emmc mirror image manufacturing method and apparatus
CN113821434A (en) * 2021-09-09 2021-12-21 摩拜(北京)信息技术有限公司 Firmware upgrade test method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288109A1 (en) * 2006-06-09 2007-12-13 Zahornacky Jon F Sound system and method for electric model trains
CN103777981A (en) * 2014-01-13 2014-05-07 中南大学 Multi-operation-system remote loading implementation method suitable for X86 framework
CN104133706A (en) * 2014-08-01 2014-11-05 珠海全志科技股份有限公司 Firmware modifying method and device
CN105204876A (en) * 2014-06-12 2015-12-30 联想(北京)有限公司 System starting method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288109A1 (en) * 2006-06-09 2007-12-13 Zahornacky Jon F Sound system and method for electric model trains
CN103777981A (en) * 2014-01-13 2014-05-07 中南大学 Multi-operation-system remote loading implementation method suitable for X86 framework
CN105204876A (en) * 2014-06-12 2015-12-30 联想(北京)有限公司 System starting method and electronic equipment
CN104133706A (en) * 2014-08-01 2014-11-05 珠海全志科技股份有限公司 Firmware modifying method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张保伟: "基于ARM和Android的智能电视系统研发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235095A (en) * 2018-01-17 2018-06-29 深圳创维数字技术有限公司 Based on magnetic disk media set-top box startup/adjustment method, set-top box and storage medium
CN109274807A (en) * 2018-11-21 2019-01-25 Oppo(重庆)智能科技有限公司 Test method, apparatus and system
CN109710192A (en) * 2018-12-27 2019-05-03 公安部物证鉴定中心 A kind of western number hard disk has used the data method for deleting in firmware area
CN109710192B (en) * 2018-12-27 2022-04-05 公安部物证鉴定中心 Data erasing method for firmware area used by Western digital hard disk
WO2021129056A1 (en) * 2019-12-26 2021-07-01 晶晨半导体(深圳)有限公司 High-capacity emmc mirror image manufacturing method and apparatus
CN113821434A (en) * 2021-09-09 2021-12-21 摩拜(北京)信息技术有限公司 Firmware upgrade test method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN106569854B (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN106569854A (en) Method and system for setting device firmware and realizing factory testing
CN102650947B (en) Continuous increment over-the-air upgrade method of Android handheld equipment
CN103914315B (en) Configuration method of drivers
CN101383871B (en) Network element configuration implementing method and apparatus
CN104199691B (en) A kind of method and terminal of the start self-starting APK based on Android platform
CN106707848A (en) Control program organization structure of control system and download method
CN102541599A (en) Method and system for upgrading electronic equipment on line, and television
CN102880498A (en) Method of virtual SD (Security Digital) card on device with android system
CN103064781A (en) Mobile software automated testing method
CN104102506A (en) ARM (Advanced RISC Machine) platform based Android startup acceleration method
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN103365688A (en) Method for automatic installation and synchronization of software between Android intelligent devices
CN107122219A (en) The acquisition methods and device of installation file
CN101706725A (en) Method and system for loading and debugging relocatable program
CN101169729A (en) Embedded type system and method for renewing application program
CN105760191A (en) Embedded system equipment programming mass production method
CN103677885A (en) ARM FLASH simple program programming method
CN103559126A (en) Method, device and computer terminal for testing software versions
CN109710320A (en) A kind of starting guidance BootLoader method of two-stage drive
CN102646048B (en) The method of mobile terminal touch screen firmware upgrade and device
CN101976197A (en) Method for automatically installing a plurality of mobile phone software
CN107071570A (en) A kind of set top box upgrading method and device
CN100570560C (en) Start chip software version information method to set up and device
CN105760194A (en) DSP control system software update method and device
CN101634965B (en) Method for testing Linux kernel-grade unit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230721

Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province

Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd.

Address before: 518063 16 floor, block B, North TCL building, Nanshan District science and technology south ten road, Shenzhen, Guangdong.

Patentee before: JRD COMMUNICATION (SHENZHEN) Ltd.

TR01 Transfer of patent right