CN110993016B - Chip pre-copying detection method and device and computer readable storage medium - Google Patents

Chip pre-copying detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN110993016B
CN110993016B CN201911352578.2A CN201911352578A CN110993016B CN 110993016 B CN110993016 B CN 110993016B CN 201911352578 A CN201911352578 A CN 201911352578A CN 110993016 B CN110993016 B CN 110993016B
Authority
CN
China
Prior art keywords
chip
software
transcription
copy
size
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
CN201911352578.2A
Other languages
Chinese (zh)
Other versions
CN110993016A (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 TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology 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 TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201911352578.2A priority Critical patent/CN110993016B/en
Publication of CN110993016A publication Critical patent/CN110993016A/en
Application granted granted Critical
Publication of CN110993016B publication Critical patent/CN110993016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for detecting chip pre-copying, which comprises the following steps: acquiring the capacity of the chip and the sizes of all the partitions of the pre-copying software; calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software; judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not; and determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information. The invention also discloses a detection device for the chip pre-copying and a computer readable storage medium. The invention realizes the automatic detection of the pre-transcription result, is convenient for finding problems in time and avoids the occurrence of mass pre-transcription errors.

Description

Chip pre-copying detection method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of electronic equipment production, in particular to a method and a device for detecting chip pre-copying and a computer readable storage medium.
Background
Nowadays, electronic devices are changing day by day, the types of memory chips are becoming more and more complex, old 24 and 25 chips are gradually eliminated, and are replaced by NAND or eMMC types, and since the chips provide standard interfaces and manage flash memories, manufacturers can concentrate on other parts of product development and shorten the time for releasing products to the market, so that the memory chips are widely applied to novel products such as smart televisions, mobile phones, automotive electronics and set top boxes.
Currently, commonly used chips include 8G, 16G, 32G, 64G and the like, and pre-transcription software with corresponding sizes is generally required to be provided for chips with different sizes, but due to the fact that a plurality of pre-transcription software with different sizes exist under one version of whole machine software in an actual project, the pre-transcription software is easy to be mistaken in the pre-transcription process, and quality accidents that the sizes of the pre-transcription software and the sizes of the chip capacities are inconsistent occur. Therefore, in order to avoid quality accidents, the realization of automatic detection of pre-transcription becomes an urgent technical problem to be solved.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting chip pre-transcription and a computer readable storage medium, aiming at solving the technical problem that quality accidents of inconsistent sizes of pre-transcription software and chip capacity occur because the pre-transcription software is easy to be mistaken in the pre-transcription process.
In order to achieve the above object, the present invention provides a method for detecting pre-copy of a chip, wherein the method for detecting pre-copy of a chip comprises:
acquiring the capacity of the chip and the sizes of all the partitions of the pre-copying software;
calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software;
judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not;
and determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information.
Preferably, the step of obtaining the capacity of the chip and the sizes of the partitions of the pre-copy software includes:
burning the pre-copying software into the chip;
acquiring the capacity of the chip by calling a command of a console;
and acquiring the sizes of all the partitions of the pre-copying software by calling the df command in the system.
Preferably, the step of calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software includes:
and summing all the partitions of the pre-transcription software, and calculating the size of the whole pre-transcription software.
Preferably, the step of determining whether the pre-transcription is correct according to the judgment result and generating corresponding prompt information includes:
if the capacity of the chip is inconsistent with the size of the whole pre-transcription software, judging that the pre-transcription is wrong, and generating pre-transcription error prompt information;
and if the capacity of the chip is consistent with the size of the whole pre-copying software, judging that the pre-copying is correct, and generating prompt information of the correct pre-copying.
Preferably, after the step of determining a pre-copy error and generating pre-copy error prompt information, the method includes:
matching a pre-transcription software version consistent with the capacity of the chip from preset pre-transcription software directory information according to the acquired capacity of the chip, and prompting a user, wherein the directory information comprises names and version information of pre-transcription software of different versions.
Preferably, the prompt message includes a text prompt, a voice prompt and/or a light prompt.
In addition, in order to achieve the above object, the present invention further provides a device for detecting a chip pre-copy, wherein the device for detecting a chip pre-copy comprises: the chip pre-copy detection method comprises a memory, a processor and a chip pre-copy detection program which is stored on the memory and can run on the processor, wherein when the chip pre-copy detection program is executed by the processor, the steps of any one of the chip pre-copy detection methods are realized.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, on which a chip pre-copy detection program is stored, wherein the chip pre-copy detection program, when executed by a processor, implements the steps of any one of the above chip pre-copy detection methods.
The capacity of the chip and the sizes of all the partitions of the pre-copying software are obtained; calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software; judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not; and determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information. Through the implementation mode, the capacity of the chip and the size of the pre-copying software are respectively obtained, and whether the capacity of the chip is consistent with the size of the whole pre-copying software is judged, so that whether the pre-copying software is correct is judged, automatic detection of a pre-copying result is realized, problems can be found in time, and the situation of large-scale error pre-copying is avoided.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for detecting pre-copy of a chip according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating the detailed steps of determining whether the pre-transcription is correct according to the determination result and generating the corresponding prompt message according to the embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for detecting a pre-copy of a chip according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be an intelligent television, and can also be terminal equipment such as an intelligent mobile phone, a tablet personal computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compression standard Audio Layer 4) player, a PC, a portable computer and the like.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a chip pre-copy detection program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a detection program of the chip pre-copy stored in the memory 1005, and perform the following operations:
acquiring the capacity of the chip and the sizes of all the partitions of the pre-copying software;
calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software;
judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not;
and determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information.
Further, the processor 1001 may call a detection program of the chip pre-copy stored in the memory 1005, and further perform the following operations:
burning the pre-copying software into the chip;
acquiring the capacity of the chip by calling a command of a console;
and acquiring the sizes of all the partitions of the pre-copying software by calling the df command in the system.
Further, the processor 1001 may call a detection program of the chip pre-copy stored in the memory 1005, and further perform the following operations:
and summing all the partitions of the pre-transcription software, and calculating the size of the whole pre-transcription software.
Further, the processor 1001 may call a detection program of the chip pre-copy stored in the memory 1005, and further perform the following operations:
if the capacity of the chip is inconsistent with the size of the whole pre-transcription software, judging that the pre-transcription is wrong, and generating pre-transcription error prompt information;
and if the capacity of the chip is consistent with the size of the whole pre-transcription software, judging that the pre-transcription is correct, and generating prompt information of the pre-transcription correct.
Further, the processor 1001 may call a detection program of the chip pre-copy stored in the memory 1005, and further perform the following operations:
matching a pre-transcription software version consistent with the capacity of the chip from preset pre-transcription software directory information according to the acquired capacity of the chip, and prompting a user, wherein the directory information comprises names and version information of pre-transcription software of different versions.
Further, the processor 1001 may call a detection program of the chip pre-copy stored in the memory 1005, and further perform the following operations:
the prompt message comprises a text prompt, a voice prompt and/or a light prompt.
The specific embodiment of the detection device for chip pre-copy of the present invention is basically the same as the following embodiments of the detection method for chip pre-copy, and is not described herein again.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a method for detecting a chip pre-copy according to the present invention, where the method for detecting a chip pre-copy includes:
and step S10, acquiring the capacity of the chip and the sizes of the partitions of the pre-copy software.
The device provided by the embodiment of the invention can be an electronic device such as an intelligent television, an intelligent mobile phone and a tablet personal computer. Since chips are integrated on the main board of these electronic devices, the chips may be emmc (embedded Multi Media card) chips, ufs (universal Flash storage) chips, and the like. The chip needs to be burned in with the pre-copying software before the chip is attached, so that the pre-copying result in the chip needs to be verified after the main board is attached, and therefore the smart television, the smart phone, the tablet computer and the like in a factory mode are used as implementation devices in the embodiment of the invention. For convenience of explanation, the following embodiments all use the smart tv (i.e. the tv to be detected) in the factory mode as an example. After the television to be detected is powered on, the code loaded and run initially is BootLoader, the BootLoader provides an initialization code which needs to be executed at first after the processor is powered on and reset, after the BootLoader completes the initialization of a CPU and related hardware, an operating system image or a solidified embedded application program is installed in a memory and then jumps to the space where the operating system is located, the operating system is started to run, meanwhile, the television to be detected enters an operating console, and the capacity of a chip is obtained by calling a command in the console. And after the television system to be detected is started, acquiring the sizes of all the partitions of the pre-copying software in the chip.
It should be noted that if the size of the pre-transcription software is larger than or smaller than the size of the chip capacity, the system may not be started after the television to be detected is powered on, and at this time, the pre-transcription error can be directly judged, and the subsequent steps can be omitted; if the system can be started normally, the pre-copying is further verified through subsequent steps, and the fact that the television to be detected fails due to the pre-copying during subsequent use is guaranteed.
And step S20, calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software.
After the sizes of all the partitions of the pre-transcription software in the chip are obtained, summing the sizes of all the partitions of the obtained pre-transcription software, and calculating to obtain the size of the whole pre-transcription software. If the pre-transcription software has 4 partitions of A, B, C and D respectively, the pre-transcription software can be stored in the 4 partitions of the chip after being burned, so that the capacity of different partitions can be obtained according to the called df command, and then the capacities of A, B, C and D in all the partitions are summed, so that the size of the whole pre-transcription software can be obtained.
And step S30, judging whether the capacity of the chip is consistent with the size of the whole pre-copy software.
After the capacity of the chip and the size of the whole pre-copying software are obtained, comparing the two, judging whether the capacity of the chip is consistent with the size of the whole pre-copying software, if so, indicating that the pre-copying of the chip is correct, and carrying out batch chip burning based on the chip and the pre-copying software; if the two are not consistent, the chip pre-copying error is indicated, batch chip burning needs to be stopped, and the problem reason needs to be searched.
And step S40, determining whether the pre-transcription is correct according to the judgment result, and generating corresponding prompt information.
Determining whether the pre-transcription is correct or not according to the judgment result, if the capacity of the chip is inconsistent with the size of the whole pre-transcription software, indicating that the pre-transcription of the chip is wrong, and generating a pre-transcription wrong prompt message to prompt a user to re-burn the chip; and if the capacity of the chip is consistent with the size of the whole pre-copying software, judging that the pre-copying is correct, and generating correct pre-copying prompt information to prompt a user to perform batch chip burning.
In the embodiment, whether the pre-transcription software is matched with the capacity of the chip is judged by comparing the capacity of the chip with the size of the pre-transcription software, so that whether the pre-transcription is correct is judged, automatic detection of a pre-transcription result is realized, problems can be found conveniently in time, and the condition that a large quantity of error pre-transcription occurs is avoided.
Further, based on the embodiment shown in fig. 2, the step of obtaining the capacity size of the chip and the sizes of the partitions of the pre-copy software includes:
and S101, burning the pre-copying software into the chip.
And step S102, acquiring the capacity of the chip by calling a command of the console.
And step S103, acquiring the sizes of all the partitions of the pre-transcription software by calling the df command in the system.
After the television to be detected is electrified and enters the console, the television to be detected can automatically call the mmc size command in the console to acquire the capacity of the chip, and a user can also manually input the mmc size command on the interface of the console to call the capacity of the mmc size command to acquire the chip. And storing the acquired capacity of the chip into any one custom variable, such as the custom variable MSize. And after the television system to be detected is started, acquiring the sizes of all the partitions of the pre-copying software in the chip by calling the df command in the system. Whether the mmc size command in the television automatic calling console to be detected or the df command in the automatic calling system can be realized through a preset script code. The df command is used for checking the disk space occupation of the file system, and can be used for acquiring the occupied space of the hard disk, the remaining space and other information. The meaning of the parameters of the df command is as follows:
the necessary parameters are as follows:
-a list of all file systems;
-h display in a manner convenient for reading;
-H equals "-H", but the calculation formula, 1K 1000 instead of 1K 1024;
-i displays inode information;
-k blocks are 1024 bytes;
-l only displays the local file system;
-m blocks are 1048576 bytes;
-no-sync ignores sync commands;
-P output format POSIX;
-the sync command is executed before the disc information is retrieved;
-a T file system type;
selecting parameters:
-block-size ═ block size > specifies the block size;
-t < file system type > shows only disk information of the selected file system;
-x < file system type > does not show disk information of the selected file system;
-help displays help information;
-version shows version information.
Therefore, the television to be detected can obtain the sizes of all the partitions of the pre-copying software in the chip by calling the df command in the system.
In the embodiment, the capacity of the chip and the sizes of the partitions of the pre-copying software are obtained, so that the capacity of the chip and the sizes of the pre-copying software can be conveniently judged, and whether the burnt pre-copying software is correct or not can be accurately judged.
Further, referring to fig. 3, fig. 3 is a detailed flowchart of the step of determining whether the pre-transcription is correct according to the determination result and generating the corresponding prompt information according to the embodiment of the present invention, and based on the embodiment shown in fig. 2, the step of determining whether the pre-transcription is correct according to the determination result and generating the corresponding prompt information includes:
step S401, if the capacity of the chip is not consistent with the size of the whole pre-transcription software, judging a pre-transcription error, and generating pre-transcription error prompt information.
And S402, if the capacity of the chip is consistent with the size of the whole pre-transcription software, judging that the pre-transcription is correct, and generating prompt information of the correct pre-transcription.
Determining whether the pre-transcription is correct or not according to the judgment result, if the capacity of the chip is inconsistent with the size of the whole pre-transcription software, indicating that the pre-transcription of the chip is wrong, and generating pre-transcription wrong prompt information to prompt a user to re-burn the chip; and if the capacity of the chip is consistent with the size of the whole pre-copying software, judging that the pre-copying is correct, and generating a prompt message for prompting the user to perform batch chip burning.
It should be noted that the prompt information includes a text prompt, a voice prompt and/or a light prompt, and may be one or more of a text prompt, a voice prompt and a light prompt, which is not limited in the present invention. If for the text suggestion, then can show corresponding prompt information at user interface with the text form, if for voice prompt, then can report corresponding prompt information with the speech form through the speaker, if for light prompt, then can control the pilot lamp of different colours and light according to different prompt information, for example the trouble is that the red light is bright, normally is that the street lamp is bright. The user can select to carry out subsequent batch chip burning or stop chip burning according to the prompt information to check the problems.
Different prompt messages are generated for different judgment results in the embodiment, so that a user can conveniently know and recognize the pre-transcription result in time, and mass quality accidents are effectively avoided.
Further, referring to fig. 4, fig. 4 is a second embodiment of the method for detecting a pre-copy error of a chip according to the present invention, and based on the embodiment described in fig. 3, after the steps of pre-copy error and generating a pre-copy error prompt message, the method further includes:
step S403, matching a pre-transcription software version consistent with the capacity of the chip from preset directory information of the pre-transcription software according to the acquired capacity of the chip, and prompting a user, wherein the directory information comprises names and version information of the pre-transcription software of different versions.
The method comprises the steps that directory information of pre-copying software is pre-stored in a television to be detected, and the directory information comprises information of names, sizes, versions and the like of the pre-copying software with different versions. After the television to be detected judges that the capacity size of the chip is not consistent with the size of the pre-transcription software, the version of the pre-transcription software which is consistent with the capacity size of the chip is matched in the directory information according to the capacity size of the chip, and the matching result is displayed on a user interface to prompt a user.
In the embodiment, by automatically matching the version of the pre-transcription software, the user can quickly locate the reason of the pre-transcription error, and the user can conveniently re-burn the chip.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a chip pre-copy detection program is stored on the computer-readable storage medium, and when executed by a processor, the chip pre-copy detection program implements the following operations:
acquiring the capacity of the eMMC chip and the size of the pre-copying software in each partition;
calculating the size of the whole pre-copying software according to the size of the pre-copying software in each partition;
judging whether the capacity of the eMMC chip is consistent with the size of the whole pre-copying software or not;
and determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information.
Further, when executed by the processor, the chip pre-copy detection program further implements the following operations:
burning the pre-copying software into the eMMC chip;
acquiring the capacity of the eMMC chip by calling a command of a console;
and acquiring the size of the pre-copy software in each partition by calling the df command in the system.
Further, when executed by the processor, the chip pre-copy detection program further implements the following operations:
and summing the sizes of the pre-transcription software in each partition to calculate the size of the whole pre-transcription software.
Further, when executed by the processor, the chip pre-copy detection program further implements the following operations:
if the capacity of the eMMC chip is inconsistent with the size of the whole pre-transcription software, judging that the pre-transcription is wrong, and generating pre-transcription error prompt information to prompt a user to re-transcribe the pre-transcription;
and if the capacity of the eMMC chip is consistent with the size of the whole pre-transcription software, judging that the pre-transcription is correct, and generating a prompt message for correct pre-transcription so as to prompt a user to perform batch pre-transcription.
Further, when executed by the processor, the chip pre-copy detection program further implements the following operations:
the prompt message comprises a text prompt, a voice prompt and/or a light prompt.
The specific embodiment of the computer-readable storage medium of the present invention is basically the same as the embodiments of the detection method for pre-copying the chip, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A detection method for chip pre-copy is characterized in that the detection method for chip pre-copy comprises the following steps:
acquiring the capacity of the chip and the size of each partition of the pre-copying software, wherein the step of acquiring the capacity of the chip and the size of each partition of the pre-copying software comprises the following steps: burning the pre-copying software into the chip; acquiring the capacity of the chip by calling a command of a console; acquiring the sizes of all the partitions of the pre-copying software by calling a df command in a system;
calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software;
judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not;
determining whether the pre-transcription is correct according to the judgment result, and generating corresponding prompt information, wherein the step of generating the corresponding prompt information comprises the following steps: if the pre-copy error prompt information is generated, prompting a user to perform chip burning on the chip again; and if the correct pre-copy prompt information is generated, prompting the user to perform batch chip burning.
2. The method for detecting the chip pre-copy according to claim 1, wherein the step of calculating the size of the whole pre-copy software according to the size of each partition of the pre-copy software comprises:
and summing all the partitions of the pre-transcription software, and calculating the size of the whole pre-transcription software.
3. The method for detecting the chip pre-transcription according to claim 1, wherein the step of determining whether the pre-transcription is correct according to the judgment result and generating the corresponding prompt message comprises:
if the capacity of the chip is inconsistent with the size of the whole pre-transcription software, judging that the pre-transcription is wrong, and generating pre-transcription error prompt information;
and if the capacity of the chip is consistent with the size of the whole pre-transcription software, judging that the pre-transcription is correct, and generating prompt information of the pre-transcription correct.
4. The method for detecting a pre-copy of a chip according to claim 3, wherein after the step of determining the pre-copy error and generating the pre-copy error prompt message, the method comprises:
matching a pre-transcription software version consistent with the capacity of the chip from preset pre-transcription software directory information according to the acquired capacity of the chip, and prompting a user, wherein the directory information comprises names and version information of pre-transcription software of different versions.
5. The method for detecting chip pre-transcription as claimed in claim 1 or 3, wherein the prompt message includes a text prompt, a voice prompt and/or a light prompt.
6. A detection device for chip pre-copying is characterized in that the detection device for chip pre-copying comprises: the chip pre-copy detection program comprises a memory, a processor and a chip pre-copy detection program which is stored on the memory and can run on the processor, wherein the chip pre-copy detection program realizes the following steps when being executed by the processor:
acquiring the capacity of the chip and the size of each partition of the pre-copying software, wherein the step of acquiring the capacity of the chip and the size of each partition of the pre-copying software comprises the following steps: burning the pre-copying software into the chip; acquiring the capacity of the chip by calling a command of a console; acquiring the sizes of all the partitions of the pre-copying software by calling a df command in a system;
calculating the size of the whole pre-transcription software according to the size of each partition of the pre-transcription software;
judging whether the capacity of the chip is consistent with the size of the whole pre-copying software or not;
determining whether the pre-transcription is correct or not according to the judgment result, and generating corresponding prompt information, wherein after the step of generating the corresponding prompt information, the method comprises the following steps: if the pre-copy error prompt information is generated, prompting a user to perform chip burning on the chip again; and if the correct pre-copy prompt information is generated, prompting the user to perform batch chip burning.
7. The apparatus for detecting pre-copy of a chip as claimed in claim 6, wherein the detection program for pre-copy of a chip further implements the steps of, when executed by the processor:
burning the pre-copying software into the chip;
acquiring the capacity of the chip by calling a command of a console;
and obtaining the size of each partition of the pre-copy software by calling a df command in a system.
8. The apparatus for detecting chip pre-copy as claimed in claim 7, wherein the detecting program for chip pre-copy further implements the steps of:
and summing all the partitions of the pre-copying software, and calculating the size of the whole pre-copying software.
9. A computer-readable storage medium, on which a detection program of a chip pre-copy is stored, characterized in that the detection program of the chip pre-copy realizes the steps of the detection method of the chip pre-copy according to any one of claims 1 to 5 when executed by a processor.
CN201911352578.2A 2019-12-24 2019-12-24 Chip pre-copying detection method and device and computer readable storage medium Active CN110993016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352578.2A CN110993016B (en) 2019-12-24 2019-12-24 Chip pre-copying detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352578.2A CN110993016B (en) 2019-12-24 2019-12-24 Chip pre-copying detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110993016A CN110993016A (en) 2020-04-10
CN110993016B true CN110993016B (en) 2022-09-02

Family

ID=70075207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352578.2A Active CN110993016B (en) 2019-12-24 2019-12-24 Chip pre-copying detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110993016B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device
CN106873913A (en) * 2017-02-17 2017-06-20 山东浪潮商用系统有限公司 A kind of method that embedded system self adaptation difference flash carries out subregion
CN108121556A (en) * 2017-12-26 2018-06-05 深圳Tcl新技术有限公司 EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing
CN109656629A (en) * 2018-12-26 2019-04-19 深圳创维-Rgb电子有限公司 A kind of EMMC adaptive regulation method, storage medium and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744694A (en) * 2013-12-24 2014-04-23 武汉烽火众智数字技术有限责任公司 Dynamic partition searching device based on Nand flash memory and method thereof
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device
CN106873913A (en) * 2017-02-17 2017-06-20 山东浪潮商用系统有限公司 A kind of method that embedded system self adaptation difference flash carries out subregion
CN108121556A (en) * 2017-12-26 2018-06-05 深圳Tcl新技术有限公司 EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing
CN109656629A (en) * 2018-12-26 2019-04-19 深圳创维-Rgb电子有限公司 A kind of EMMC adaptive regulation method, storage medium and terminal device

Also Published As

Publication number Publication date
CN110993016A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN107888978B (en) KEY code burning method and device and computer readable storage medium
EP3007062A1 (en) Firmware upgrade method and apparatus, and communication device
CN107577472B (en) Software installation method and device and computer readable storage medium
CN106933593B (en) System switching method and device based on mobile terminal
US11055107B2 (en) Electronic apparatus and method of executing application program
CN108121556B (en) eMMC compatible upgrading method, intelligent terminal and readable storage medium
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN109117153B (en) Application processing method, device, terminal and storage medium
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN110990339A (en) Distributed storage file reading and writing method, device and platform and readable storage medium
CN111290773B (en) System upgrade method, device and readable storage medium
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN108958831B (en) Viewgroup dynamic layout method and device and electronic equipment
CN110993016B (en) Chip pre-copying detection method and device and computer readable storage medium
CN103365672A (en) Method and system for processing description information of application program
CN110955449B (en) Gray scale release method and device for client
CN110018918B (en) Method and device for repairing terminal abnormity, mobile terminal and storage medium
CN116360979A (en) Memory allocation method and device, electronic equipment and readable storage medium
KR20190098516A (en) Method for managing data related to application and electronic device thereof
CN110647433A (en) Function self-checking method and device and computer readable storage medium
CN111309613A (en) Application testing method, device, equipment and computer readable storage medium
CN111522564A (en) Method and device for identifying system upgrading state and computer readable storage medium
WO2017063194A1 (en) Method and apparatus for setting vehicle infotainment system
CN115827080B (en) Embedded equipment adaptation method and device based on serial port communication and computer equipment
CN105278980B (en) System updating method, device and server

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