CN112328269B - Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium - Google Patents

Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium Download PDF

Info

Publication number
CN112328269B
CN112328269B CN202011344232.0A CN202011344232A CN112328269B CN 112328269 B CN112328269 B CN 112328269B CN 202011344232 A CN202011344232 A CN 202011344232A CN 112328269 B CN112328269 B CN 112328269B
Authority
CN
China
Prior art keywords
mirror image
image data
partition
data
ubifs
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
CN202011344232.0A
Other languages
Chinese (zh)
Other versions
CN112328269A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202011344232.0A priority Critical patent/CN112328269B/en
Publication of CN112328269A publication Critical patent/CN112328269A/en
Application granted granted Critical
Publication of CN112328269B publication Critical patent/CN112328269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method for mounting a software of a ubifs image, intelligent equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing data connection with a problem device, wherein the problem device is an android platform and adopts a ubifs file system architecture; after establishing data connection with a problem device, reading back system mirror image data in a ubifs format in the problem device; burning the read-back system mirror image data into a cache partition, and refreshing; and after the brushing machine is restarted, mounting the system mirror image data in the cache partition. According to the invention, the PC end tool is not depended on to mount the ubifs, and the mounting is performed based on the android platform, so that the problems that the PC end tool depends on a very large number of chains and is difficult to be applied are solved.

Description

Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium
Technical Field
The invention relates to the technical field of big data analysis, in particular to a software mounting method of a ubifs mirror image, intelligent equipment, electronic equipment and a storage medium.
Background
Some Android watches in the current market adopt a ubifs (Unsorted Block Image File System, unordered block image file system) file system architecture, the ubifs file system is popular, and the ubifs format images lack some necessary Android end analysis tools or PC end tools and are not applicable. For example, an abnormal watch, a starting-up card logo or a phenomenon that the watch cannot be started up occurs, the log of the grabbing serial port may be related to data of a system partition on software, but a machine does not have an adb (Andorid Debug Bridge, android debug bridge) port, all data in the system cannot be pulled out to check which data are abnormal, and even if a system mirror image is read back, the data are difficult to achieve to install and obtain on a PC end tool.
When analyzing such problems at present, the system partition can only be read back and brushed into a normal machine to simply confirm whether software mirroring causes a problem that the system cannot be started, further analysis cannot be performed, and the read-back mirrored data of the ubifs format system partition is difficult to be mounted on a PC end through a tool to acquire mirrored data in the system partition.
Disclosure of Invention
The invention aims to provide a method for mounting a piece of software of a ubifs mirror image, intelligent equipment, electronic equipment and a storage medium, which are independent of a PC end tool to mount ubifs, and solve the problems that the PC end tool has a very large dependent chain and is difficult to be applied.
The technical scheme provided by the invention is as follows:
the invention provides a software mounting method of a ubifs mirror image, which is applied to intelligent equipment of an android platform and comprises the following steps of:
establishing data connection with a problem device, wherein the problem device is an android platform and adopts a ubifs file system architecture;
after establishing data connection with a problem device, reading back system mirror image data in a ubifs format in the problem device;
burning the read-back system mirror image data into a cache partition, and refreshing;
and after the brushing machine is restarted, mounting the system mirror image data in the cache partition.
Further, before reading back the system image data in the ubifs format in the problem device, the method includes the steps of:
acquiring the sizes of all partitions of the device and the sizes of the system partitions of the problem device;
and adjusting the partition size according to the partition sizes of the self partitions and the system partition size, wherein the size of the cache partition after adjustment is larger than or equal to the system partition size.
Further, burning the system mirror image data obtained by read-back to a cache partition, and performing the brushing includes the steps of:
burning the read-back system mirror image data to a cache partition;
and if the initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing.
Further, after the restarting of the brushing machine is completed, the steps are included after the system mirror image data in the cache partition is mounted:
after successful mounting, adb pull exports the system mirror image data in the cache partition;
and analyzing the fault reason of the problem equipment according to the system mirror image data.
The invention also provides an intelligent device, which adopts the android platform and comprises:
the data connection module is used for establishing data connection with the problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
the data read-back module is in communication connection with the data connection module and is used for establishing data connection with the problem equipment and reading back the system mirror image data in the ubifs format in the problem equipment;
the system mirror image data reading module is connected with the data reading module in a communication way and used for reading the system mirror image data obtained by reading;
and the software mounting module is in communication connection with the brushing module and is used for mounting the system mirror image data in the cache partition after the brushing is restarted.
Further, the method further comprises the following steps:
the partition adjusting module is in communication connection with the data connecting module and is used for acquiring the sizes of all partitions of the partition adjusting module and the sizes of the system partitions of the problem equipment; and adjusting the partition size according to the partition sizes of the self partitions and the system partition size, wherein the size of the cache partition after adjustment is larger than or equal to the system partition size.
Further, the method further comprises the following steps:
the system mirror image data obtained by the read-back is burnt to a cache partition by the flashing module; and if the initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing.
Further, the method further comprises the following steps:
the data export module is in communication connection with the software mounting module and is used for exporting the system mirror image data in the cache partition by adb pull after successful mounting;
and the data analysis module is in communication connection with the data export module and is used for analyzing the fault reason of the problem equipment according to the system mirror image data.
The invention also provides an electronic device, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor is used for executing the computer program stored in the memory to realize the software mounting method of the ubifs format mirror image.
The invention also provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to realize the software mounting method of the ubifs format mirror image.
According to the method for mounting the software of the ubifs mirror image, the intelligent device, the electronic device and the storage medium, the ubifs is mounted independently of a PC end tool, and mounting is performed based on an android platform, so that the problems that the PC end tool has a very large dependence chain and is difficult to apply are solved.
Drawings
The above features, technical features, advantages and implementation manners of a method for mounting a ubifs image software, an intelligent device, an electronic device and a storage medium will be further described below in a clear and understandable manner with reference to the accompanying drawings.
FIG. 1 is a flow chart of one embodiment of a method of software mounting of a ubifs image of the present invention;
FIG. 2 is a flow chart of another embodiment of a method of software mounting of a ubifs image of the present invention;
FIG. 3 is a flow chart of another embodiment of a method of software mounting of a ubifs image of the present invention;
FIG. 4 is a flow chart of another embodiment of a method of software mounting of a ubifs image of the present invention;
FIG. 5 is a flow chart of another embodiment of a method of software mounting of a ubifs image of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a smart device of the present invention.
Reference numerals:
100 intelligent equipment
110 data connection module
120 data read-back module
130 brush machine module
140 software mounting module
150 partition adjustment module
160 data export module
170 data analysis module
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.
For the sake of simplicity of the drawing, the parts relevant to the present invention are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to simplify the drawing for ease of understanding, components having the same structure or function in some of the drawings are shown schematically with only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
It should be further 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.
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
Referring to fig. 1, an embodiment of the present invention is a method for mounting a ubifs image software, including:
s100, establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
s200, after establishing data connection with the problem equipment, reading back system mirror image data in a ubifs format in the problem equipment;
s300, burning the read-back system mirror image data to a cache partition for refreshing;
and S400, after the brushing machine is restarted, the system mirror image data in the cache partition are mounted.
Specifically, at present, some Android watches adopt a ubifs file system architecture, the ubifs file system is popular, data mirror images in an analog ext4 format are not applicable because some necessary Android end analysis tools or PC end tools are not applicable because PC end and Android platform equipment operating systems are different, and PC end tools have quite many dependent chains and are difficult to apply. Therefore, the mirror image data of the system partition cannot be acquired by mounting, and further analysis is performed.
Thus, the subject devices are directed to a problem device that is an android platform and employs a ubifs file system architecture, including but not limited to smart phones, smart watches, tablets, and the like. The embodiment provides a method for mounting the software of the ubifs mirror image, which uses intelligent equipment adopting an android platform to mount the software. The problem device cannot be started due to the abnormality of the mirror image data in the system partition of the ubifs file, but other ubifs format mirror image data can be used by the method if the mirror image data needs to be mounted.
Firstly, the intelligent device for mounting software and the problem device are connected in data mode, so that the intelligent device can acquire system image data of a system partition in the problem device. After the intelligent device and the problem device are connected through data, system mirror image data in a ubifs format in the problem device is read back, the read-back obtained system mirror image data is burnt to a cache partition, the cache partition is generally used for storing insignificant data, useful data in the cache partition are stored in other partitions, in addition, the intelligent device is used for mounting, the device which completes initialization can be selected, and therefore excessive data in the cache partition is avoided.
The system mirror image data obtained by the read-back is burnt into the cache partition, and the intelligent device cannot read the system mirror image data of the cache partition only by placing the system mirror image data of the problem machine under the cache partition of the intelligent device. Therefore, after the intelligent device burns the read-back system mirror image data to the cache partition, the intelligent device performs a refreshing operation.
After the machine refreshing is completed, the intelligent device is started, and when the intelligent device is loaded into the cache partition, the system mirror image data of the problem machine is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
The invention does not depend on the tool mounting ubifs of the PC end, but mounts based on the android platform, thereby solving the problems that the tool mounting dependency chains of the applicable PC end are very many, the operation is complex and the application is difficult. By using the intelligent device of the android platform as the problem machine, the intelligent device can be realized more easily and quickly in the same operating system environment.
Referring to fig. 2, in another embodiment of the present invention, a method for mounting a ubifs image software includes:
s100, establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
s150, acquiring the sizes of all partitions of the system and the sizes of the system partitions of the problem equipment;
s160, adjusting the partition sizes according to the partition sizes of the self and the partition sizes of the system, wherein the sizes of the cache partitions after adjustment are larger than or equal to the partition sizes of the system;
s200, after establishing data connection with the problem equipment, reading back system mirror image data in a ubifs format in the problem equipment;
s300, burning the read-back system mirror image data to a cache partition for refreshing;
and S400, after the brushing machine is restarted, the system mirror image data in the cache partition are mounted.
In particular, the present invention is directed to a problem device that is an android platform and employs a ubifs file system architecture, including, but not limited to, smart phones, smart watches, tablets, and the like. The embodiment provides a method for mounting the software of the ubifs mirror image, which uses intelligent equipment adopting an android platform to mount the software. The problem device cannot be started due to the abnormality of the mirror image data in the system partition of the ubifs file, but other ubifs format mirror image data can be used by the method if the mirror image data needs to be mounted.
Firstly, the intelligent device for mounting software and the problem device are connected in data mode, so that the intelligent device can acquire system image data of a system partition in the problem device. Because the partition sizes of the intelligent device and the problem device are different, in order to ensure that the cache partition of the intelligent device can accommodate the system image data in the system partition of the problem device, the intelligent device establishes data connection with the problem device so as to acquire the system partition size of the problem device, and the intelligent device acquires the partition sizes of the intelligent device according to the partition sizes of the intelligent device and the system partition sizes, so that the size of the cache partition after adjustment is larger than or equal to the system partition size, and the cache partition of the intelligent device can accommodate the system image data in the system partition of the problem device.
After the intelligent device and the problem device are connected by data, the system mirror image data in the ubifs format in the problem device is read back, and the read-back system mirror image data is burnt to the cache partition. And after the intelligent equipment burns the read-back system mirror image data to the cache partition, refreshing. After the machine refreshing is completed, the intelligent device is started, and when the intelligent device is loaded into the cache partition, the system mirror image data of the problem machine is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
After the intelligent device is successfully mounted, the partition size of the intelligent device still keeps the partition size after the intelligent device is refreshed, and the subsequent intelligent device can be used continuously based on the version after the intelligent device is refreshed, or can select to be used continuously after the intelligent device is refreshed.
The invention obtains a special version by adjusting the size of the cache partition through the brushing machine so as to burn the system mirror image data of the equipment with the problem, and the invention is not limited by the size of the partition.
Referring to fig. 3, in another embodiment of the present invention, a method for mounting a ubifs image software includes:
s100, establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
s200, after establishing data connection with the problem equipment, reading back system mirror image data in a ubifs format in the problem equipment;
s310, burning the read-back system mirror image data to a cache partition;
s320, if initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing;
and S400, after the brushing machine is restarted, the system mirror image data in the cache partition are mounted.
In particular, the present invention is directed to a problem device that is an android platform and employs a ubifs file system architecture, including, but not limited to, smart phones, smart watches, tablets, and the like. The embodiment provides a method for mounting the software of the ubifs mirror image, which uses intelligent equipment adopting an android platform to mount the software. The problem device cannot be started due to the abnormality of the mirror image data in the system partition of the ubifs file, but other ubifs format mirror image data can be used by the method if the mirror image data needs to be mounted.
Firstly, the intelligent device for mounting software and the problem device are connected in data mode, so that the intelligent device can acquire system image data of a system partition in the problem device. After the intelligent device establishes data connection with the problem device, system mirror image data in a ubifs format in the problem device is read back, the system mirror image data obtained through reading back is burnt into a cache partition, and if initial data exist in the cache partition, the initial data are covered by the system mirror image data because the data cached in the cache partition are mostly inconsequential.
And after the intelligent equipment burns the read-back system mirror image data to the cache partition, refreshing. After the machine refreshing is completed, the intelligent device is started, and when the intelligent device is loaded into the cache partition, the system mirror image data of the problem machine is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
The method and the device use the system mirror image data in the cache partition burning problem equipment, and are generally used for temporarily caching the data due to the characteristics of the cache partition, so that the system mirror image data is prevented from covering effective data on one hand, and the influence of the system mirror image data on the intelligent equipment after mounting is avoided on the other hand.
Referring to fig. 4, in another embodiment of the present invention, a method for mounting a ubifs image software includes:
s100, establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
s200, after establishing data connection with the problem equipment, reading back system mirror image data in a ubifs format in the problem equipment;
s300, burning the read-back system mirror image data to a cache partition for refreshing;
s400, after restarting the brushing machine, mounting the system mirror image data in the cache partition;
s500, after successful mounting, the adb pull exports the system mirror image data in the cache partition;
s600, analyzing the fault reason of the problem equipment according to the system mirror image data.
In particular, the present invention is directed to a problem device that is an android platform and employs a ubifs file system architecture, including, but not limited to, smart phones, smart watches, tablets, and the like. The embodiment provides a method for mounting the software of the ubifs mirror image, which uses intelligent equipment adopting an android platform to mount the software. The problem device cannot be started due to the abnormality of the mirror image data in the system partition of the ubifs file, but other ubifs format mirror image data can be used by the method if the mirror image data needs to be mounted.
Firstly, the intelligent device for mounting software and the problem device are connected in data mode, so that the intelligent device can acquire system image data of a system partition in the problem device. After the intelligent device and the problem device are connected by data, the system mirror image data in the ubifs format in the problem device is read back, and the read-back system mirror image data is burnt to the cache partition.
And after the intelligent equipment burns the read-back system mirror image data to the cache partition, refreshing. After the machine refreshing is completed, the intelligent device is started, and when the intelligent device is loaded into the cache partition, the system mirror image data of the problem machine is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted. After successful mounting, the adb pull can export the system image data in the cache partition so as to analyze the fault cause of the problem equipment according to the system image data. The analysis method can be self-checking through software or checking and analysis by engineers.
According to the invention, the data mirror image in the ubifs format can be mounted on the Android device end, and all data of the mirror image required can be obtained, so that the system mirror image data can be analyzed later.
Referring to fig. 5, in another embodiment of the present invention, a method for mounting a ubifs image software includes:
s1, a special version is manufactured, and the size of a partial partition is cut and adjusted, as shown below, if the size of a cache partition (cache partition) of the special version is adjusted to be large enough to accommodate system image data in a system partition (system partition) of the following problem equipment;
s2, reading back system mirror partition data (system mirror data) of the problem equipment;
s3, burning the system mirror image of the problem equipment into a cache partition of a special version;
s4, starting a machine (intelligent equipment) of a special version (the problem system image is burnt into the cache partition), so that the machine can mount an actual system image in the cache partition when the machine is started normally, and then, the data of the file in the problem system image can be exported through adb pull to acquire all data of the problem system image, and then, the next deep analysis is performed.
The special version mounts the data in the problem system through the cache partition:
normal machine (smart device) system internal data:
the invention does not depend on the PC end tool to mount ubifs, and the PC end tool depends on a very large number of chains and is difficult to be applied. If other ubifs-format mirror image data are required to be mounted, the method can be used, and after the ubifs-format mirror image data are mounted, adb operation can be used, so that analysis and solution efficiency of a problem that the ubifs-format mirror image data cannot be started due to abnormality can be remarkably improved.
Referring to fig. 6, an intelligent device 100 according to an embodiment of the present invention employs an android platform, including:
the data connection module 110 is configured to establish a data connection with a problem device, where the problem device is an android platform and adopts a ubifs file system architecture;
the data read-back module 120 is in communication connection with the data connection module 110, and is configured to establish a data connection with a problem device, and read back system image data in a ubifs format in the problem device;
the brushing module 130 is in communication connection with the data read-back module 120, and is configured to burn the system image data obtained by read-back into a cache partition to perform brushing;
and the software mounting module 140 is in communication connection with the brushing module 130 and is used for mounting the system mirror image data in the cache partition after the brushing is restarted.
Further comprises:
the partition adjusting module 150 is communicatively connected with the data connecting module 110, and is configured to obtain the sizes of each partition of the partition adjusting module and the sizes of the system partitions of the problem device; and adjusting the partition size according to the partition sizes of the self partitions and the system partition size, wherein the size of the cache partition after adjustment is larger than or equal to the system partition size.
The brushing module 130 is configured to burn the system image data obtained by the read-back into a cache partition; and if the initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing.
Further comprises:
the data export module 160 is in communication connection with the software mounting module 140, and is configured to export the system image data in the cache partition by adb pull after successful mounting;
the data analysis module 170 is communicatively connected to the data export module 160, and is configured to analyze a cause of a failure of the problem device according to the system image data.
Specifically, at present, some Android watches adopt a ubifs file system architecture, the ubifs file system is popular, data mirror images in an analog ext4 format are not applicable because the ubifs format mirror images lack some necessary Android end analysis tools or PC end tools, and because the PC end is different from the Android platform device operating system, the PC end tools have a very large number of dependent chains and are difficult to apply. Therefore, the mirror image data of the system partition cannot be acquired by mounting, and further analysis is performed.
Thus, the subject devices are directed to a problem device that is an android platform and employs a ubifs file system architecture, including but not limited to smart phones, smart watches, tablets, and the like. The embodiment provides a method for mounting the software of the ubifs mirror image, which uses intelligent equipment adopting an android platform to mount the software. The problem device cannot be started due to the abnormality of the mirror image data in the system partition of the ubifs file, but other ubifs format mirror image data can be used by the method if the mirror image data needs to be mounted.
Firstly, the intelligent device for mounting software and the problem device are connected in data mode, so that the intelligent device can acquire system image data of a system partition in the problem device. Because the partition sizes of the intelligent device and the problem device are different, in order to ensure that the cache partition of the intelligent device can accommodate the system image data in the system partition of the problem device, the intelligent device establishes data connection with the problem device so as to acquire the system partition size of the problem device, and the intelligent device acquires the partition sizes of the intelligent device according to the partition sizes of the intelligent device and the system partition sizes, so that the size of the cache partition after adjustment is larger than or equal to the system partition size, and the cache partition of the intelligent device can accommodate the system image data in the system partition of the problem device. The size of the cache partition is adjusted through the brushing machine to obtain a special version so as to burn the system mirror image data of the equipment with the problem, and the system mirror image data is not limited by the size of the partition.
After the intelligent device and the problem device are connected through data, system mirror image data in a ubifs format in the problem device is read back, the read-back obtained system mirror image data is burnt to a cache partition, the cache partition is generally used for storing insignificant data, useful data in the cache partition are stored in other partitions, in addition, the intelligent device is used for mounting, the device which completes initialization can be selected, and therefore excessive data in the cache partition is avoided. The system mirror image data in the equipment with the problem of burning by using the cache partition is generally used for temporarily caching the data due to the characteristics of the cache partition, so that the system mirror image data is prevented from covering the effective data on one hand, and the influence of the system mirror image data on the intelligent equipment after mounting is prevented on the other hand.
The system mirror image data obtained by the read-back is burnt into the cache partition, and the intelligent device cannot read the system mirror image data of the cache partition only by placing the system mirror image data of the problem machine under the cache partition of the intelligent device. Therefore, after the intelligent device burns the read-back system mirror image data to the cache partition, the intelligent device performs a refreshing operation.
After the machine refreshing is completed, the intelligent device is started, and when the intelligent device is loaded into the cache partition, the system mirror image data of the problem machine is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
After the intelligent device is successfully mounted, the partition size of the intelligent device still keeps the partition size after the intelligent device is refreshed, and the subsequent intelligent device can be used continuously based on the version after the intelligent device is refreshed, or can select to be used continuously after the intelligent device is refreshed.
In addition, after the mounting is successful, the system image data in the cache partition can be exported by the adb pull so as to analyze the fault cause of the problem equipment according to the system image data. The analysis method can be self-checking through software or checking and analysis by engineers. The method can mount the data mirror image in the ubifs format on the Android device end, and acquire all data of the required mirror image so as to analyze the system mirror image data in a subsequent mode.
The invention does not depend on the tool mounting ubifs of the PC end, but mounts based on the android platform, thereby solving the problems that the tool mounting dependency chains of the applicable PC end are very many, the operation is complex and the application is difficult. By using the intelligent device of the android platform as the problem machine, the intelligent device can be realized more easily and quickly in the same operating system environment.
Based on the same inventive concept, the embodiment of the application also provides an electronic device, which is characterized by comprising a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor is used for executing the computer program stored in the memory to realize the software mounting method of the ubifs format mirror image according to the embodiment of the method.
Based on the same inventive concept, the embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements all or part of the method steps of the above method.
The present invention may be implemented by implementing all or part of the above-described method flow, or by instructing the relevant hardware by a computer program, which may be stored in a computer readable storage medium, and which when executed by a processor, may implement the steps of the above-described method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
Based on the same inventive concept, the embodiments of the present application further provide an electronic device, including a memory and a processor, where the memory stores a computer program running on the processor, and when the processor executes the computer program, the processor implements all or part of the method steps in the above method.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, 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 processor being a control center of the computer device, and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a sound playing function, an image playing function, etc.); the storage data area may store data (e.g., audio data, video data, etc.) created according to the use of the handset. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (8)

1. The method for mounting the software of the ubifs mirror image is applied to intelligent equipment of an android platform and is characterized by comprising the following steps of:
establishing data connection with a problem device, wherein the problem device is an android platform and adopts a ubifs file system architecture;
after establishing data connection with a problem device, reading back system mirror image data in a ubifs format in the problem device;
burning the read-back system mirror image data into a cache partition, and refreshing;
after restarting the brushing machine, mounting the system mirror image data in the cache partition;
after successful mounting, adb pull exports the system mirror image data in the cache partition;
and analyzing the fault reason of the problem equipment according to the system mirror image data.
2. The method for mounting a ubifs image software according to claim 1, wherein before reading back the system image data in ubifs format in the problematic device, the method includes the steps of:
acquiring the sizes of all partitions of the device and the sizes of the system partitions of the problem device;
and adjusting the partition size according to the partition sizes of the self partitions and the system partition size, wherein the size of the cache partition after adjustment is larger than or equal to the system partition size.
3. The method for installing the ubifs image software according to claim 1, wherein the step of burning the system image data obtained by the read-back into a cache partition and performing the brushing includes the steps of:
burning the read-back system mirror image data to a cache partition;
and if the initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing.
4. An intelligent device adopts an android platform, which is characterized by comprising:
the data connection module is used for establishing data connection with the problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
the data read-back module is in communication connection with the data connection module and is used for establishing data connection with the problem equipment and reading back the system mirror image data in the ubifs format in the problem equipment;
the system mirror image data reading module is connected with the data reading module in a communication way and used for reading the system mirror image data obtained by reading;
the software mounting module is in communication connection with the brushing module and is used for mounting the system mirror image data in the cache partition after the brushing is restarted;
the data export module is in communication connection with the software mounting module and is used for exporting the system mirror image data in the cache partition by adb pull after successful mounting;
and the data analysis module is in communication connection with the data export module and is used for analyzing the fault reason of the problem equipment according to the system mirror image data.
5. The smart device of claim 4, further comprising:
the partition adjusting module is in communication connection with the data connecting module and is used for acquiring the sizes of all partitions of the partition adjusting module and the sizes of the system partitions of the problem equipment; and adjusting the partition size according to the partition sizes of the self partitions and the system partition size, wherein the size of the cache partition after adjustment is larger than or equal to the system partition size.
6. The intelligent device of claim 4, wherein the brushing module is configured to burn the system image data obtained by the read-back into a cache partition; and if the initial data exists in the cache partition, covering the initial data by using the system mirror image data, and refreshing.
7. An electronic device comprising a processor, a memory and a computer program stored in the memory and executable on the processor, the processor being configured to execute the computer program stored on the memory to implement the method of software installation of the ubifs format image of any one of claims 1 to 3.
8. A storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the method of software installation of a ubifs format image as claimed in any one of claims 1 to 3.
CN202011344232.0A 2020-11-26 2020-11-26 Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium Active CN112328269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011344232.0A CN112328269B (en) 2020-11-26 2020-11-26 Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011344232.0A CN112328269B (en) 2020-11-26 2020-11-26 Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112328269A CN112328269A (en) 2021-02-05
CN112328269B true CN112328269B (en) 2024-03-15

Family

ID=74309144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011344232.0A Active CN112328269B (en) 2020-11-26 2020-11-26 Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112328269B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113987547A (en) * 2021-11-05 2022-01-28 锐凌无线通讯科技(深圳)有限公司 Data verification method and device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9804855B1 (en) * 2015-10-08 2017-10-31 Veritas Technologies Llc Modification of temporary file system for booting on target hardware
CN107562483A (en) * 2017-07-26 2018-01-09 博为科技有限公司 A kind of method and device of carry guiding file system
CN108646982A (en) * 2018-05-04 2018-10-12 广东电网有限责任公司电力科学研究院 A kind of data self-repairing method and device based on UBIFS
CN111026447A (en) * 2019-11-29 2020-04-17 惠州华阳通用电子有限公司 Automatic mounting method for UBI equipment
WO2020186551A1 (en) * 2019-03-19 2020-09-24 芯讯通无线科技(上海)有限公司 Communication module software upgrading method and system, and communication module
CN111966369A (en) * 2020-10-20 2020-11-20 延锋伟世通电子科技(南京)有限公司 Method for manufacturing and verifying off-line burning mirror image of NAND memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9804855B1 (en) * 2015-10-08 2017-10-31 Veritas Technologies Llc Modification of temporary file system for booting on target hardware
CN107562483A (en) * 2017-07-26 2018-01-09 博为科技有限公司 A kind of method and device of carry guiding file system
CN108646982A (en) * 2018-05-04 2018-10-12 广东电网有限责任公司电力科学研究院 A kind of data self-repairing method and device based on UBIFS
WO2020186551A1 (en) * 2019-03-19 2020-09-24 芯讯通无线科技(上海)有限公司 Communication module software upgrading method and system, and communication module
CN111026447A (en) * 2019-11-29 2020-04-17 惠州华阳通用电子有限公司 Automatic mounting method for UBI equipment
CN111966369A (en) * 2020-10-20 2020-11-20 延锋伟世通电子科技(南京)有限公司 Method for manufacturing and verifying off-line burning mirror image of NAND memory

Also Published As

Publication number Publication date
CN112328269A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN108829593B (en) Code coverage rate calculation and analysis method, device, equipment and storage medium
US20130179865A1 (en) Automated error checking system for a software application and method therefor
CN109271359B (en) Log information processing method and device, electronic equipment and readable storage medium
CN105373404A (en) Software mirror image burning method and equipment
CN111309387B (en) Method and device for loading drive, electronic equipment and storage medium
CN103309693A (en) Complex programmable logic device updating method and system
CN108459850B (en) Method, device and system for generating test script
CN106775869B (en) Loading method and terminal equipment
CN111090915B (en) Automatic driving simulation method, device and storage medium
CN106357670A (en) Simulator-based android application server side Web vulnerability detection method
CN112328269B (en) Method for mounting ubifs mirror image software, intelligent device, electronic device and storage medium
CN114610341A (en) Production line flashing method and device, electronic equipment, chip and storage medium
KR102141287B1 (en) Fault injection test method and system for vehicle software based on autosar
CN110990253A (en) Method and device for realizing application debugging, computer storage medium and terminal
CN111221721B (en) Automatic recording and executing method and device for unit test cases
CN103838651A (en) Mainboard function test management and control system and method
CN111310160A (en) WINDOWS automatic login deployment method, device, computer equipment and storage medium
CN111610965A (en) Standard SDK (software development kit) making method and device of access control platform
CN111078473A (en) Test item copying method and device
CN110910945B (en) Method and device for testing robustness of SSD (solid State disk) signal, computer equipment and storage medium
CN111736893B (en) Software package version verification method and related device
CN114500348A (en) CDN gateway test method and system
CN114138511A (en) Data interaction method, equipment and medium
US10922249B2 (en) Input/output control code filter
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and 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