CN111722880B - Equipment production method and device, terminal equipment and medium - Google Patents

Equipment production method and device, terminal equipment and medium Download PDF

Info

Publication number
CN111722880B
CN111722880B CN202010393088.3A CN202010393088A CN111722880B CN 111722880 B CN111722880 B CN 111722880B CN 202010393088 A CN202010393088 A CN 202010393088A CN 111722880 B CN111722880 B CN 111722880B
Authority
CN
China
Prior art keywords
software
shipment
production
storage area
equipment
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.)
Active
Application number
CN202010393088.3A
Other languages
Chinese (zh)
Other versions
CN111722880A (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN202010393088.3A priority Critical patent/CN111722880B/en
Publication of CN111722880A publication Critical patent/CN111722880A/en
Application granted granted Critical
Publication of CN111722880B publication Critical patent/CN111722880B/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/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/44594Unloading

Abstract

The application is applicable to the technical field of network communication, and provides a device production method, a device, terminal equipment and a medium, wherein the method comprises the following steps: the control device is started from the backup storage area; reading production data stored in the backup storage area and running production software in the production data to perform a test for the device; deleting the production data and restarting the equipment after the test is completed; and reading shipment data stored in the conventional storage area, and running shipment software in the shipment data. By the method, the external access port of the equipment can be safely and efficiently closed when the equipment is shipped.

Description

Equipment production method and device, terminal equipment and medium
Technical Field
The application belongs to the technical field of network communication, and particularly relates to a device production method, a device, terminal equipment and a medium.
Background
Many electronic devices require opening external access ports during production and testing; but for the security of the device, the external access port of the device needs to be closed off at shipment.
In the current production mode, there are two modes of closing the external access interface of the equipment during shipment. The first is to set a flag value, modify the flag value or delete the flag value when leaving the factory, but this solution has the situation that the device still supports the related application, and there is a risk that the device is invaded. The other is that the production software is separated from the shipment software, and the production software is used for being burned or upgraded to the shipment software after being produced, so that the production cost is high and the error risk is high.
Disclosure of Invention
The embodiment of the application provides a device production method, a device, terminal equipment and a medium, which can solve the problem of complex operation of closing an external port of the device during shipment.
In a first aspect, embodiments of the present application provide a device production method, including:
the control device is started from the backup storage area;
reading production data stored in the backup storage area and running production software in the production data to perform a test for the device;
deleting the production data and restarting the equipment after the test is completed;
and reading shipment data stored in the conventional storage area, and running shipment software in the shipment data.
In a second aspect, an embodiment of the present application provides an apparatus for producing a device, including:
the starting module is used for controlling the equipment to start from the backup storage area;
a production software running module for reading the production data stored in the backup storage area and running the production software in the production data to execute the test for the device;
the deleting module is used for deleting the production data and restarting the equipment after the test is completed;
and the shipment software running module is used for reading the shipment data stored in the conventional storage area and running the shipment software in the shipment data.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method according to the first aspect described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as described in the first aspect above.
In a fifth aspect, embodiments of the present application provide a computer program product for, when run on a terminal device, causing the terminal device to perform the method of any one of the first aspects.
Compared with the prior art, the embodiment of the application has the beneficial effects that: in the embodiment of the application, the production software of the equipment is stored in the backup storage area of the equipment, and the production software opens an external access port of the equipment in order to meet the convenience of production and test; the device may be started from the production software, after the production test is completed, the production software of the backup storage area is deleted, the device is restarted, and after the device is restarted from the shipment software, the external access port of the device may be closed. On the one hand, the shipment software is software with any easily-invaded interface removed, so that after the shipment software is run, the external access port of the equipment can be closed, and the safety requirement of the equipment is met; on the other hand, the device production process can open an external access port, so that the production and the test of the device are facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for producing a device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a device production method according to a second embodiment of the present application;
fig. 3 is a schematic structural view of an apparatus for producing a device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Fig. 1 is a schematic flow chart of a device production method according to an embodiment of the present application, as shown in fig. 1, where the method includes:
s101, starting the control equipment from a backup storage area;
in this embodiment, the devices produced are network communication devices, and may include mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented Reality (AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and other devices.
The execution body of the present embodiment is the apparatus produced as described above, and the operations in the present method may be executed by the processor of the apparatus.
Specifically, the backup storage area stores production software and equipment parameters of the production software, and equipment default starting from the backup storage area can be realized by setting a boot loader. boot loader is a piece of applet that runs before the operating system kernel runs. Through the applet, the hardware device can be initialized, and a mapping diagram of the memory space can be established, so that the software and hardware environment of the system is brought into a proper state, and the correct environment is prepared for finally calling the kernel of the operating system. The boot loader can load an operating system from a certain solid-state storage device on the target machine into the main memory for operation, so that the boot loader can be set to load a program from the backup storage area into the main memory for operation in advance. Boot loader may be set from which partition by command/bin/bootenv-g or/bin/bootenv-s, for example.
S102, reading production data stored in the backup storage area, and running production software in the production data to execute a test for the equipment;
specifically, in order to meet the production convenience, the above production software opens interfaces such as Console, SSH, telnet, and the like, and has a part of specially configured software. The Console control interface is a common interface used by the network equipment to connect with the computer or the terminal equipment; SSH is a security protocol that is based on an application layer and a transport layer and is a protocol that provides security for telnet sessions and other network services. Telnet is a standard protocol and main way of internet Telnet services that provides users with the ability to do remote host work on a local computer. These external interfaces, if directly opened at shipment, can make the device vulnerable to intrusion. However, in order to test the networking function of the device during production and testing, external ports need to be opened, so that the external connection ports are opened in production software, thereby facilitating the subsequent testing of the device.
S103, deleting the production data and restarting the equipment after the test is completed;
specifically, after the device has completed production, the functionality of the device needs to be tested. After the test is completed, the production software needs to be deleted in addition to the port being closed, since the risk of the device being hacked is quite high at all times if the production software is still present. Thus, the production software in the backup storage area can be found, deleted, and then the device restarted.
For example, the production software in this embodiment may be directly burned in a Flash memory, which is a non-volatile memory, when the software is burned.
S104, reading shipment data stored in the conventional storage area, and running shipment software in the shipment data.
The shipment software is software such as Console, SSH, telnet, etc. with any interfaces that are easy to be hacked removed. May be stored in a conventional storage area.
Specifically, after the device is restarted, it may be started directly from shipment software in the conventional storage area. The running index of the current software can be switched to the shipment software before the device is restarted, so that the device can be started directly from the shipment software after the restart.
The production software and the shipment software can exist in different storage areas of Flash at the same time, and the backup storage area and the conventional storage area are only used for referring to the storage area of the production software and the storage area of the shipment software, and in practical application, the names of the two storage areas can be set freely.
In this embodiment, the production software is imported into the backup storage area, and the shipment software is imported into the regular storage area, so that the production software and the shipment software are contained in the memory at the same time. When the production test is completed, the production software part in the memory backup storage area is directly deleted, only the shipment software in the conventional storage area is reserved, then the shipment software is operated, and the external connection port of the equipment is closed. The mode is simple and efficient to operate and meets the safety requirement.
Fig. 2 is a schematic flow chart of a device production method according to a second embodiment of the present application, as shown in fig. 2, where the method includes:
s201, storing the production software in a first backup partition of the backup storage area;
in this embodiment, the devices produced are network communication devices, and may include mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented Reality (AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and other devices.
The execution body of the present embodiment is the apparatus produced as described above, and the operations in the present method may be executed by the processor of the apparatus.
In particular, program code of production software may be stored in advance in a first backup partition of the backup storage area. Flash memory belongs to one type of memory device, and is a nonvolatile memory. In this embodiment, the data may be stored in Flash memory. For example, a storage area may be defined as a backup storage area in the Flash memory, and then a first backup partition may be defined in the backup storage area, and a program of the production software may be burned in the first backup partition.
S202, storing the equipment production parameters in a second backup partition of the backup storage area;
the above device production parameters refer to device parameters of production software, and may include configuration information such as physical address (Media Access Control address, MAC address) configuration, machine code (SN) code, wireless configuration, device login password, and open port, and some special configuration information.
Specifically, the device parameters of the production software may be stored in advance in the second backup partition of the backup storage area. For example, a second backup partition may be defined in the backup storage area, and the device parameters of the production software may be burned into the second backup partition.
S203, storing the shipment software in a first conventional partition of the conventional storage area;
in particular, the program code of the shipment software may be stored in advance in the first regular partition of the regular storage area. For example, a storage area may be defined as a regular storage area in the Flash memory, and then a first regular partition may be defined in the regular storage area, and a program of the shipment software may be burned in the first regular partition.
S204, storing the equipment shipment parameters in a second conventional partition of the conventional storage area;
the device shipment parameters refer to device parameters of shipment software, and may include configuration information such as physical address (Media Access Control address, MAC address) configuration, machine code (SN) code, wireless configuration, and device login password.
In particular, the device parameters of the shipment software may be stored in advance in the second regular partition of the regular storage area. For example, a second regular partition may be defined in the regular storage area, and the device parameters of the shipment software may be burned into the first regular partition.
The above backup storage area, regular storage area, first backup partition, second backup partition, first regular partition, and second regular partition are only used to refer to one storage area, and in practical application, the names of these storage areas may be freely set.
S205, the control device is started from a backup storage area;
specifically, the current software index may be set as a backup storage area, and the device is started from the first backup partition by default by setting a boot loader. The current software indexes which partition the corresponding device is currently started from, and the part is stored in the boot loader, so that the software can be started from the backup storage area through setting the boot loader.
S206, reading the production software from the first backup partition and the equipment production parameters from the second backup partition;
specifically, at the time of device startup, the production software and device parameters of the production software may be read from the backup storage area for executing the production software.
S207, running the production software according to the equipment production parameters so as to execute the test for the equipment;
specifically, the production software is run to complete the production and testing of the equipment. After the production software is operated, an external port of the equipment can be opened, so that the networking function of the equipment can be conveniently tested.
S208, acquiring an operation index of the production data;
specifically, the method in the present embodiment may be implemented by a bot Broadcom platform. The current software indexes which partition the corresponding device is currently started from, the part is stored in a boot loader, and the value is acquired by a corresponding command boltenv in a Braodcom scheme; or may be set by command/bin/boltenv-g or/bin/boltenv-s.
S209, searching a storage area corresponding to the production data according to the operation index;
specifically, a specific storage position of the production data in Flash can be searched through the running index, and then information of the position is erased.
The method can be realized under a linux system, and in the linux system, memory technology equipment (Memory Technology Device, MTD) isolates a file system from a bottom FLASH memory. The partitioning of the MTD corresponds to the stored data in Flash. The MTD partition to which the production data corresponds can be found from the MTD partition table by running the index.
The MTD profile may be as follows:
catproc/mtd
dev:size erasesize name
mtd0:00620000 00020000"Flash1.kernel0"
mtd1:00620000 00020000"Flash1.kernel1"
mtd2:01360000 00020000"Flash1.cm0"
mtd3:01360000 00020000"Flash1.cm1"
mtd4:0e680000 00020000"Flash1.rg0"
mtd5:0e680000 00020000"Flash1.rg1"
mtd6:20000000 00020000"Flash1"
mtd7:00130000 00010000"Flash0.bolt"
mtd8:00010000 00010000"Flash0.macadr"
mtd9:00010000 00010000"Flash0.nvram"
mtd10:00010000 00010000"Flash0.nvram1"
mtd11:00020000 00010000"Flash0.devtree0"
mtd12:00020000 00010000"Flash0.devtree1"
mtd13:00060000 00010000"Flash0.cmnonvol0"
mtd14:00060000 00010000"Flash0.cmnonvol1"
mtd15:000d0000 00010000"Flash0.rgnonvol0"
mtd16:000d0000 00010000"Flash0.rgnonvol1"
mtd17:00400000 00010000"Flash0"
mtd18:0d520000 0001f000"rootfs"
mtd19:00899000 0001f000"images"
through the index number found: if index is 1, i.e. corresponding to
mtd1:00620000 00020000"Flash1.kernel1"
mtd3:01360000 00020000"Flash1.cm1"
mtd5:0e680000 00020000"Flash1.rg1"
And so on, if index is 0 corresponds to
mtd0:00620000 00020000"Flash1.kernel0"
mtd2:01360000 00020000"Flash1.cm0"
mtd4:0e680000 00020000"Flash1.rg0"
From the above, the corresponding mtdN partition can be obtained.
S210, erasing the production data stored in the storage area;
specifically, the corresponding MTD partition may be erased, thereby erasing the corresponding production data. For example, the corresponding partition may be erased by a flash instruction.
S211, setting a current operation index as a conventional storage area for storing the shipment data;
specifically, setting the current running index to the regular storage area may cause the device to boot from the regular storage area.
For example, a corresponding command boltenv fetch or set/bin/boltenv-s N in the braodcom scheme may set index to N.
S212, restarting the equipment;
in particular, the device may be restarted to effect the previously performed steps.
S213, the shipment software is read from the first conventional partition, and the equipment shipment parameters are read from the second conventional partition;
specifically, at the time of restarting the apparatus, the shipment software and the apparatus parameters of the shipment software may be read from the regular storage area for executing the shipment software.
And S214, running the shipment software according to the shipment parameters of the equipment.
Specifically, after the data is read, the device is restarted from the shipment software, because in the shipment software, the external port is closed, and thus the device of the shipment software is run, the external port is closed, so that the risk of the device being intruded is reduced.
The method in the embodiment can be used for different operating systems and different platforms, and in practical application, the method can be realized differently in each system or platform according to the characteristics of the system or platform.
The method is described in one embodiment as follows:
when the software is burnt, the shipment software and parameters thereof are directly burnt to the Image1 and nvram1 of the Flash, and the production software and parameters thereof are burnt to the Image2 and nvram2 of the Flash. Image1, nvram1, image2 and nvram2 are all different storage areas of Flash.
And setting boot loader default starting from image2 in the software, and starting and completing the test.
The boltenv command is used to obtain the currently running software index number.
The software index is mapped to the/dev/mtd sequence by matching with output/proc/mtd.
The corresponding/dev/mtd partition is erased using the Flasherase command.
The run index is set to Image1 and nvram1 using the boltenv command, and the device is booted from secure shipment software after reboot.
In this embodiment, the production software is stored in the backup storage area, and the shipment software is stored in the regular storage area. The equipment is started from the backup storage area, after the production test is completed, the production software in the backup storage area is erased, and then the equipment is started from the shipment software of the conventional storage area, so that the external access port of the equipment is closed during shipment. The production software is used in the production process to open an external access port, so that the production and the test of the equipment are facilitated; in the shipment process, the production software is erased, and then the external access port is closed through the shipment software, so that the safety requirement of the equipment is met.
Fig. 3 is a schematic structural diagram of an apparatus for producing a device according to a third embodiment of the present application, as shown in fig. 3, the apparatus 3 includes:
a start module 31 for controlling the device to start from the backup storage area;
a production software running module 32 for reading the production data stored in the backup storage area and running the production software in the production data to perform a test for the device;
a deletion module 33, configured to delete the production data and restart the device after the test is completed;
and the shipment software running module 34 is used for reading the shipment data stored in the conventional storage area and running the shipment software in the shipment data.
The production data also include equipment production parameters, and the apparatus 3 further includes:
a production software storage module for storing the production software in a first backup partition of the backup storage area;
and the equipment production parameter storage module is used for storing the equipment production parameters in a second backup partition of the backup storage area.
The production software running module 32 includes:
the first reading submodule is used for reading the production software from the first backup partition and the equipment production parameters from the second backup partition;
and the first execution sub-module is used for running the production software according to the equipment production parameters so as to execute the test on the equipment.
The deletion module 33 includes:
an acquisition sub-module for acquiring an operation index of the production data;
the searching sub-module is used for searching a storage area corresponding to the production data according to the operation index;
and the erasing sub-module is used for erasing the production data stored in the storage area.
The above device 3 further comprises:
and the running index setting module is used for setting the current running index as a conventional storage area for storing the shipment data.
The shipment data further includes equipment shipment parameters, and the apparatus 3 further includes:
a shipment software storage module for storing the shipment software in a first regular partition of the regular storage area;
and the equipment shipment parameter storage module is used for storing the equipment shipment parameters in a second conventional partition of the conventional storage area.
The shipment software operation module 34 includes:
the second reading submodule is used for reading the shipment software from the first regular partition and reading the equipment shipment parameters from the second regular partition;
and the second execution sub-module is used for running the shipment software according to the equipment shipment parameters.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various method embodiments described above when executing the computer program 42.
The terminal device 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 4 and is not meant to be limiting as to the terminal device 4, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 40 may be a central processing unit (CentralProcessingUnit, CPU), and the processor 40 may also be other general purpose processors, digital signal processors (DigitalSignalProcessor, DSP), application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC), off-the-shelf programmable gate arrays (Field-ProgrammableGateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may in other embodiments also be an external storage device of the terminal device 4, such as a plug-in hard disk provided on the terminal device 4, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard) or the like. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
The present embodiments provide a computer program product which, when run on a terminal device, causes the terminal device to perform steps that enable the respective method embodiments described above to be implemented.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer memory, read-only memory (ROM), random access memory (RAM, randomAccessMemory), electrical carrier signal, telecommunication signal, and software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference may be made to related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method of manufacturing a device, comprising:
the control device is started from the backup storage area;
reading production data stored in the backup storage area, and running production software in the production data to execute a test for the equipment, wherein the production software is software which is provided with an external interface and a part of special configuration for meeting production convenience, and the external interface comprises a Console, SSH and Telnet interface;
deleting the production data and restarting the equipment after the test is completed;
and reading shipment data stored in a conventional storage area, and running shipment software in the shipment data, wherein the shipment software is software with any interfaces easy to be dock removed, and before the equipment is restarted, the running index of the current software is switched to the shipment software.
2. The method of claim 1, wherein the production data further comprises device production parameters, and wherein prior to the control device being started from the backup storage area, further comprising:
storing the production software in a first backup partition of the backup storage area;
and storing the equipment production parameters in a second backup partition of the backup storage area.
3. The method of claim 2, wherein the reading the production data stored in the backup storage area and running production software in the production data to perform the test for the device comprises:
reading the production software from the first backup partition and the equipment production parameters from the second backup partition;
and running the production software according to the production parameters of the equipment to execute the test on the equipment.
4. The method of claim 1, wherein deleting the production data after the testing is completed comprises:
acquiring an operation index of the production data;
searching a storage area corresponding to the production data according to the operation index;
and erasing the production data stored in the storage area.
5. The method of claim 4, further comprising, prior to said reading shipment data stored in the regular storage area and running shipment software in said shipment data:
the current run index is set to a regular storage area storing the shipment data.
6. The method of claim 1, wherein the shipment data further comprises a device shipment parameter, and wherein prior to the control device being started from the backup storage area, further comprising:
storing the shipment software in a first regular partition of the regular storage area;
the device shipment parameters are stored in a second regular partition of the regular storage area.
7. The method of claim 6, wherein the reading shipment data stored in the regular storage area and running shipment software in the shipment data comprises:
reading the shipment software from the first regular partition and the equipment shipment parameters from the second regular partition;
and operating the shipment software according to the shipment parameters of the equipment.
8. An apparatus for producing a device, comprising:
the starting module is used for controlling the equipment to start from the backup storage area;
the production software running module is used for reading the production data stored in the backup storage area and running the production software in the production data to execute the test on the equipment, wherein the production software is software which is provided with an external interface and a part of special configuration for meeting the production convenience, and the external interface comprises a Console, SSH and Telnet interface;
the deleting module is used for deleting the production data and restarting the equipment after the test is completed;
and the shipment software operation module is used for reading shipment data stored in the conventional storage area and operating shipment software in the shipment data, wherein the shipment software is software with any interfaces easy to be dock removed, and before the equipment is restarted, the operation index of the current software is switched to the shipment software.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202010393088.3A 2020-05-11 2020-05-11 Equipment production method and device, terminal equipment and medium Active CN111722880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010393088.3A CN111722880B (en) 2020-05-11 2020-05-11 Equipment production method and device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010393088.3A CN111722880B (en) 2020-05-11 2020-05-11 Equipment production method and device, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN111722880A CN111722880A (en) 2020-09-29
CN111722880B true CN111722880B (en) 2024-02-09

Family

ID=72564433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010393088.3A Active CN111722880B (en) 2020-05-11 2020-05-11 Equipment production method and device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN111722880B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254060B (en) * 2021-05-31 2022-10-21 紫光展讯通信(惠州)有限公司 Control method, device and equipment for terminal shipment software version

Citations (53)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426573A (en) * 2003-05-20 2004-12-01 Inventec Corp Fabrication method of master disk for testing
CN1553320A (en) * 2003-05-30 2004-12-08 英业达股份有限公司 Producing method for testing master disc
TW200608848A (en) * 2004-08-23 2006-03-01 Hwa Chien Electronics Corp Method for tightly combining, assembling, transplanting and resuming substrate
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
US8914329B1 (en) * 2012-12-24 2014-12-16 Emc Corporation Automated time-based testing method for distributed system
US8966318B1 (en) * 2012-04-27 2015-02-24 Symantec Corporation Method to validate availability of applications within a backup image
CN104407932A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Data backup method and device
CN104459515A (en) * 2014-11-14 2015-03-25 深圳市金锐显数码科技有限公司 Mainboard production testing method
CN105067984A (en) * 2015-07-16 2015-11-18 无锡中微腾芯电子有限公司 Method for restoring TSK series probe station MAP by means of test data
CN105260316A (en) * 2015-11-16 2016-01-20 浪潮软件股份有限公司 Dynamic testing method, device and system for software system
CN105279046A (en) * 2015-11-04 2016-01-27 研华科技(中国)有限公司 Method for improving reliability of embedded system
CN105718332A (en) * 2013-05-23 2016-06-29 青岛海信移动通信技术股份有限公司 Intelligent terminal and data backup method thereof
CN105760260A (en) * 2016-02-19 2016-07-13 浙江大华系统工程有限公司 Backup system and backup method
CN105760256A (en) * 2016-02-15 2016-07-13 深圳智锐通科技有限公司 Method and system for automatically switching starting device
CN105975850A (en) * 2016-07-01 2016-09-28 惠州Tcl移动通信有限公司 Software downloading method and system based on mobile terminal
CN106155824A (en) * 2016-06-27 2016-11-23 贵州万臻时代通讯技术有限公司 A kind of mobile phone hardware accelerated ageing test method and system
CN106214165A (en) * 2016-07-18 2016-12-14 北京航空航天大学 The measuring instrument of occupant's synthesizing reflex-time in testing vehicle cab
CN106339203A (en) * 2016-08-10 2017-01-18 钱庆照 Random data generation method
CN106528140A (en) * 2016-10-28 2017-03-22 青岛海信移动通信技术股份有限公司 Specification adaptation method and device
CN106528327A (en) * 2016-09-30 2017-03-22 华为技术有限公司 Data processing method and backup server
CN106775860A (en) * 2016-12-08 2017-05-31 广州杰赛科技股份有限公司 The overloaded method and system of Web configuration files
CN106775433A (en) * 2015-11-20 2017-05-31 北京奇虎科技有限公司 The storage of one kind virtualization hard disc data, read method and device
CN106844125A (en) * 2015-12-03 2017-06-13 昆达电脑科技(昆山)有限公司 The automatic recording device and method of commissioning stage debugging information to be measured
CN107102914A (en) * 2017-05-15 2017-08-29 深圳市奇摩计算机有限公司 Back up and recover the method for data and its realize system and alternate device
CN107122263A (en) * 2017-05-15 2017-09-01 深圳市奇摩计算机有限公司 Recover the method for Backup Data online and its realize system and alternate device
CN107181981A (en) * 2017-05-17 2017-09-19 广州视源电子科技股份有限公司 Method, device, TV and the system of TV upgrading are carried out by external equipment
CN107480008A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of method and device of batch copy function system
CN107766071A (en) * 2017-10-23 2018-03-06 郑州云海信息技术有限公司 A kind of method for refreshing IO firmware automatically under linux
CN107918650A (en) * 2017-11-14 2018-04-17 郑州云海信息技术有限公司 A kind of snapshot creation method, device, system and computer-readable recording medium
CN107992379A (en) * 2017-10-30 2018-05-04 深圳市金立通信设备有限公司 A kind of method, mobile terminal and computer-readable medium for reading data message
CN108021473A (en) * 2017-11-29 2018-05-11 山东航天电子技术研究所 The aerospace computer system and safe starting method that a kind of more backups start
CN108153616A (en) * 2016-12-06 2018-06-12 北京京存技术有限公司 A kind of storage chip startup program detection method and device
CN108229144A (en) * 2018-01-12 2018-06-29 百富计算机技术(深圳)有限公司 A kind of verification method of application program, terminal device and storage medium
CN108268343A (en) * 2016-12-31 2018-07-10 中国移动通信集团四川有限公司 The devices, systems, and methods of data backup
CN108664276A (en) * 2018-05-15 2018-10-16 福建升腾资讯有限公司 A method of hardware information is configured by text
CN109031091A (en) * 2018-07-16 2018-12-18 深圳市广和通无线股份有限公司 Interface test method, test macro and test fixture
CN109032580A (en) * 2018-07-14 2018-12-18 河北工程大学 A kind of production method that general data is reported to a higher authorities for approval and analyzes software
CN109062737A (en) * 2018-08-24 2018-12-21 郑州云海信息技术有限公司 A kind of method of quick backup test data
CN109189628A (en) * 2018-10-11 2019-01-11 郑州云海信息技术有限公司 A kind of BMC log processing method and system applied to server test
CN109376033A (en) * 2018-09-21 2019-02-22 平安科技(深圳)有限公司 Snap backup method, device, computer equipment and storage medium
CN109445717A (en) * 2018-11-15 2019-03-08 北京中电普华信息技术有限公司 Date storage method and device when a kind of dual-host backup
CN109550697A (en) * 2018-09-30 2019-04-02 东莞市迪文数字技术有限公司 A kind of AGV intelligent sorting system and its flow and method
CN109684254A (en) * 2018-11-23 2019-04-26 包头钢铁(集团)有限责任公司 A method of digital control system stability is promoted using exented memory
CN109683899A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of software integrating method and device
CN109783283A (en) * 2018-12-11 2019-05-21 中国长城科技集团股份有限公司 A kind of processing method, device and the terminal device of hardware detection information
CN109815059A (en) * 2019-01-30 2019-05-28 郑州云海信息技术有限公司 A kind of data back up method, system and board and storage medium
US10310949B1 (en) * 2016-12-22 2019-06-04 EMC IP Holding Company LLC Disaster restore of big data application with near zero RTO
CN109918142A (en) * 2019-03-19 2019-06-21 深圳创维-Rgb电子有限公司 A kind of software restarting method, apparatus, terminal and storage medium
CN109992448A (en) * 2017-12-31 2019-07-09 中国移动通信集团山西有限公司 File change incremental backup method, device, equipment and medium
CN110263584A (en) * 2019-06-19 2019-09-20 华中科技大学 A kind of data integrity auditing method and system based on block chain
CN110515671A (en) * 2019-09-03 2019-11-29 Oppo(重庆)智能科技有限公司 Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing
CN110889774A (en) * 2018-09-07 2020-03-17 Oppo(重庆)智能科技有限公司 Multi-region mobile phone production method and device and electronic equipment
CN110992992A (en) * 2019-10-31 2020-04-10 苏州浪潮智能科技有限公司 Hard disk test method, device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139782B2 (en) * 2004-09-21 2006-11-21 Hitachi, Ltd. Method of and system for testing remote storage
JP5085287B2 (en) * 2007-11-21 2012-11-28 株式会社リコー Information processing apparatus, validity verification method, and validity verification program
US8612392B2 (en) * 2011-05-09 2013-12-17 International Business Machines Corporation Identifying modified chunks in a data set for storage
US8949190B2 (en) * 2011-11-07 2015-02-03 Sap Se Point-in-time database recovery using log holes

Patent Citations (54)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426573A (en) * 2003-05-20 2004-12-01 Inventec Corp Fabrication method of master disk for testing
CN1553320A (en) * 2003-05-30 2004-12-08 英业达股份有限公司 Producing method for testing master disc
TW200608848A (en) * 2004-08-23 2006-03-01 Hwa Chien Electronics Corp Method for tightly combining, assembling, transplanting and resuming substrate
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
US8966318B1 (en) * 2012-04-27 2015-02-24 Symantec Corporation Method to validate availability of applications within a backup image
US8914329B1 (en) * 2012-12-24 2014-12-16 Emc Corporation Automated time-based testing method for distributed system
CN105718332A (en) * 2013-05-23 2016-06-29 青岛海信移动通信技术股份有限公司 Intelligent terminal and data backup method thereof
CN104407932A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Data backup method and device
CN104459515A (en) * 2014-11-14 2015-03-25 深圳市金锐显数码科技有限公司 Mainboard production testing method
CN105067984A (en) * 2015-07-16 2015-11-18 无锡中微腾芯电子有限公司 Method for restoring TSK series probe station MAP by means of test data
CN105279046A (en) * 2015-11-04 2016-01-27 研华科技(中国)有限公司 Method for improving reliability of embedded system
CN105260316A (en) * 2015-11-16 2016-01-20 浪潮软件股份有限公司 Dynamic testing method, device and system for software system
CN106775433A (en) * 2015-11-20 2017-05-31 北京奇虎科技有限公司 The storage of one kind virtualization hard disc data, read method and device
CN106844125A (en) * 2015-12-03 2017-06-13 昆达电脑科技(昆山)有限公司 The automatic recording device and method of commissioning stage debugging information to be measured
CN105760256A (en) * 2016-02-15 2016-07-13 深圳智锐通科技有限公司 Method and system for automatically switching starting device
CN105760260A (en) * 2016-02-19 2016-07-13 浙江大华系统工程有限公司 Backup system and backup method
CN106155824A (en) * 2016-06-27 2016-11-23 贵州万臻时代通讯技术有限公司 A kind of mobile phone hardware accelerated ageing test method and system
CN105975850A (en) * 2016-07-01 2016-09-28 惠州Tcl移动通信有限公司 Software downloading method and system based on mobile terminal
CN106214165A (en) * 2016-07-18 2016-12-14 北京航空航天大学 The measuring instrument of occupant's synthesizing reflex-time in testing vehicle cab
CN106339203A (en) * 2016-08-10 2017-01-18 钱庆照 Random data generation method
CN106528327A (en) * 2016-09-30 2017-03-22 华为技术有限公司 Data processing method and backup server
CN106528140A (en) * 2016-10-28 2017-03-22 青岛海信移动通信技术股份有限公司 Specification adaptation method and device
CN108153616A (en) * 2016-12-06 2018-06-12 北京京存技术有限公司 A kind of storage chip startup program detection method and device
CN106775860A (en) * 2016-12-08 2017-05-31 广州杰赛科技股份有限公司 The overloaded method and system of Web configuration files
US10310949B1 (en) * 2016-12-22 2019-06-04 EMC IP Holding Company LLC Disaster restore of big data application with near zero RTO
CN108268343A (en) * 2016-12-31 2018-07-10 中国移动通信集团四川有限公司 The devices, systems, and methods of data backup
CN107102914A (en) * 2017-05-15 2017-08-29 深圳市奇摩计算机有限公司 Back up and recover the method for data and its realize system and alternate device
CN107122263A (en) * 2017-05-15 2017-09-01 深圳市奇摩计算机有限公司 Recover the method for Backup Data online and its realize system and alternate device
CN107181981A (en) * 2017-05-17 2017-09-19 广州视源电子科技股份有限公司 Method, device, TV and the system of TV upgrading are carried out by external equipment
CN110493646A (en) * 2017-05-17 2019-11-22 广州视源电子科技股份有限公司 Method, apparatus, TV and the system of TV upgrading are carried out by external equipment
CN107480008A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of method and device of batch copy function system
CN109683899A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of software integrating method and device
CN107766071A (en) * 2017-10-23 2018-03-06 郑州云海信息技术有限公司 A kind of method for refreshing IO firmware automatically under linux
CN107992379A (en) * 2017-10-30 2018-05-04 深圳市金立通信设备有限公司 A kind of method, mobile terminal and computer-readable medium for reading data message
CN107918650A (en) * 2017-11-14 2018-04-17 郑州云海信息技术有限公司 A kind of snapshot creation method, device, system and computer-readable recording medium
CN108021473A (en) * 2017-11-29 2018-05-11 山东航天电子技术研究所 The aerospace computer system and safe starting method that a kind of more backups start
CN109992448A (en) * 2017-12-31 2019-07-09 中国移动通信集团山西有限公司 File change incremental backup method, device, equipment and medium
CN108229144A (en) * 2018-01-12 2018-06-29 百富计算机技术(深圳)有限公司 A kind of verification method of application program, terminal device and storage medium
CN108664276A (en) * 2018-05-15 2018-10-16 福建升腾资讯有限公司 A method of hardware information is configured by text
CN109032580A (en) * 2018-07-14 2018-12-18 河北工程大学 A kind of production method that general data is reported to a higher authorities for approval and analyzes software
CN109031091A (en) * 2018-07-16 2018-12-18 深圳市广和通无线股份有限公司 Interface test method, test macro and test fixture
CN109062737A (en) * 2018-08-24 2018-12-21 郑州云海信息技术有限公司 A kind of method of quick backup test data
CN110889774A (en) * 2018-09-07 2020-03-17 Oppo(重庆)智能科技有限公司 Multi-region mobile phone production method and device and electronic equipment
CN109376033A (en) * 2018-09-21 2019-02-22 平安科技(深圳)有限公司 Snap backup method, device, computer equipment and storage medium
CN109550697A (en) * 2018-09-30 2019-04-02 东莞市迪文数字技术有限公司 A kind of AGV intelligent sorting system and its flow and method
CN109189628A (en) * 2018-10-11 2019-01-11 郑州云海信息技术有限公司 A kind of BMC log processing method and system applied to server test
CN109445717A (en) * 2018-11-15 2019-03-08 北京中电普华信息技术有限公司 Date storage method and device when a kind of dual-host backup
CN109684254A (en) * 2018-11-23 2019-04-26 包头钢铁(集团)有限责任公司 A method of digital control system stability is promoted using exented memory
CN109783283A (en) * 2018-12-11 2019-05-21 中国长城科技集团股份有限公司 A kind of processing method, device and the terminal device of hardware detection information
CN109815059A (en) * 2019-01-30 2019-05-28 郑州云海信息技术有限公司 A kind of data back up method, system and board and storage medium
CN109918142A (en) * 2019-03-19 2019-06-21 深圳创维-Rgb电子有限公司 A kind of software restarting method, apparatus, terminal and storage medium
CN110263584A (en) * 2019-06-19 2019-09-20 华中科技大学 A kind of data integrity auditing method and system based on block chain
CN110515671A (en) * 2019-09-03 2019-11-29 Oppo(重庆)智能科技有限公司 Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing
CN110992992A (en) * 2019-10-31 2020-04-10 苏州浪潮智能科技有限公司 Hard disk test method, device and storage medium

Also Published As

Publication number Publication date
CN111722880A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US11687645B2 (en) Security control method and computer system
CN110348252B (en) Trust zone based operating system and method
EP3230919B1 (en) Automated classification of exploits based on runtime environmental features
US8504815B2 (en) Method of using an information handling system having a boot file, and an information handling system and machine-executable code for carrying out the method
US9311126B2 (en) System and method for virtual partition monitoring
EP3123311A1 (en) Malicious code protection for computer systems based on process modification
CN110162429B (en) System repair method, server and storage medium
US20150363320A1 (en) Write back caching of boot disk in a uefi environment
CN114721493B (en) Chip starting method, computer equipment and readable storage medium
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
WO2019144621A1 (en) Method, apparatus, and server for acquiring uefi os startup item
CN111722880B (en) Equipment production method and device, terminal equipment and medium
CN111177703A (en) Method and device for determining data integrity of operating system
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN111782474A (en) Log processing method and device, electronic equipment and medium
US7228400B2 (en) Control of multiply mapped memory locations
CN115185745A (en) Data processing method, system, electronic device and computer readable storage medium
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN108804144B (en) Control method/system for starting operating system, storage medium and electronic equipment
CN112654964A (en) Brush machine control method, brush machine control device and terminal equipment
CN116700768B (en) Application processing method and related device
CN111125796B (en) Method, device, equipment and storage medium for protecting mobile storage equipment
US20240037239A1 (en) System and method for efficient secured startup of data processing systems
CN117150583A (en) Access protection method and device applied to PNOR flash
CN111198723B (en) Process injection method, terminal equipment and computer readable storage medium

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