CN112328269A - Software mounting method of ubifs mirror image, intelligent device, electronic device, and storage medium - Google Patents

Software mounting method of ubifs mirror image, intelligent device, electronic device, and storage medium Download PDF

Info

Publication number
CN112328269A
CN112328269A CN202011344232.0A CN202011344232A CN112328269A CN 112328269 A CN112328269 A CN 112328269A CN 202011344232 A CN202011344232 A CN 202011344232A CN 112328269 A CN112328269 A CN 112328269A
Authority
CN
China
Prior art keywords
partition
mirror image
image data
ubifs
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011344232.0A
Other languages
Chinese (zh)
Other versions
CN112328269B (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

Images

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

Abstract

The invention provides a software mounting method of a ubifs mirror image, intelligent equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture; after establishing data connection with the problem equipment, reading back system mirror image data in the ubifs format in the problem equipment; burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up; and after the machine is restarted, mounting the system mirror image data in the cache partition. The method does not depend on the mounting of the PC side tools and the ubifs, and is based on the android platform for mounting, so that the problems that the PC side tools depend on a large number of chains and are difficult to apply are solved.

Description

Software mounting method of ubifs mirror image, 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 market currently adopt a ubifs (unordered Block Image File System) File System architecture, the ubifs File System is small and popular, and the ubifs format Image lacks some necessary Android end analysis tools or PC end tools and is not suitable. For example, if an abnormal watch or the like has a boot card logo or cannot be booted, the capture serial port log may be positioned and related to data of a system partition on software, but the machine has no adb (android Debug Bridge) port, and cannot pull out all data in the system to check which data are abnormal, and even if a system mirror image is obtained by readback, the data can be acquired by mounting on a PC end tool with difficulty.
When the problems are analyzed, the partitions such as the system and the like can only be read back and flushed into a normal machine so as to simply confirm whether the problem that the software mirror image cannot be started is solved, further analysis cannot be carried out, and the read-back ubifs format system partition mirror image data is difficult to be mounted on a PC (personal computer) end through a tool so as to obtain mirror image data in the system partition.
Disclosure of Invention
The invention aims to provide a software mounting method of a ubifs mirror image, intelligent equipment, electronic equipment and a storage medium, which do not depend on a PC side tool to mount ubifs and solve the problems that the PC side tool depends on a large number of chains and is difficult to apply.
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:
establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
after establishing data connection with the problem equipment, reading back system mirror image data in the ubifs format in the problem equipment;
burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up;
and after the machine is restarted, mounting the system mirror image data in the cache partition.
Further, reading back the system image data in the ubifs format in the problem device comprises the following steps:
acquiring the size of each partition and the size of a system partition of the problem equipment;
and adjusting the partition size according to the size of each partition of the cache memory and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition.
Further, burning the system mirror image data obtained by readback into a cache partition, and flashing the flash memory comprises the following steps:
burning the system mirror image data obtained by read-back into a cache partition;
and if the initial data exists in the cache partition, using the system mirror image data to cover the initial data, and performing flash.
Further, after the reboot is completed, the method for mounting the system mirror image data in the cache partition includes the following steps:
after the mounting is successful, the 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 an android platform and comprises:
the data connection module is used for establishing data connection with 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 system mirror image data in the ubifs format in the problem equipment;
the system refreshing module is in communication connection with the data read-back module and is used for burning the system mirror image data obtained by read-back into the cache partition to refresh the system;
and the software mounting module is in communication connection with the flashing module and is used for mounting the system mirror image data in the cache partition after the flashing is completed and restarted.
Further, the method also comprises the following steps:
the partition adjusting module is in communication connection with the data connection module and is used for acquiring the size of each partition of the partition adjusting module and the size of the system partition of the problem equipment; and adjusting the partition size according to the size of each partition of the cache memory and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition.
Further, the method also comprises the following steps:
the system image data processing module is used for reading the system image data obtained by the machine refreshing module; and if the initial data exists in the cache partition, using the system mirror image data to cover the initial data, and performing flash.
Further, the method also 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 the adb pull after the mounting is successful;
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, and the software mounting method of the ubifs format image is realized.
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.
By the software mounting method of the ubifs mirror image, the intelligent device, the electronic device and the storage medium, the ubifs are mounted on the basis of an android platform without depending on a PC side tool, and the problems that the PC side tool depends on a large number of chains and is difficult to apply are solved.
Drawings
The above features, technical features, advantages and implementations of a software installation method of a ubifs image, a smart device, an electronic device and a storage medium will be further described in detail below with reference to the accompanying drawings.
FIG. 1 is a flow diagram of one embodiment of a software mount method for a ubifs image of the present invention;
FIG. 2 is a flow diagram of another embodiment of a software mount method for a ubifs image of the present invention;
FIG. 3 is a flow diagram of another embodiment of a software mount method for a ubifs image of the present invention;
FIG. 4 is a flow diagram of another embodiment of a software mount method for a ubifs image of the present invention;
FIG. 5 is a flow diagram of another embodiment of a software mount method for a ubifs image of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of an intelligent device of the present invention.
Reference numerals:
100 intelligent device
110 data connection module
120 data read-back module
130 brushing machine module
140 software mounting module
150 partition adjusting 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 structures, 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 will 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, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply 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 be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
In an embodiment of the present invention, referring to fig. 1, a software mounting method for a ubifs image 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 the ubifs format in the problem equipment;
s300, burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up;
and S400, after the machine is restarted, mounting the system mirror image data in the cache partition.
Specifically, currently, some Android watches adopt a ubifs file system architecture, the ubifs file system is small and numerous, and like a data mirror image in ext4 format, the ubifs mirror image lacks some necessary Android end analysis tools or tools at a PC end, and because the PC end is different from an equipment operating system of an Android platform, the PC end tools depend on a large number of chains and are difficult to apply. Therefore, the mirror image data of the system partition cannot be mounted and acquired for further analysis.
Therefore, the problem device is directed to a problem device which is an android platform and adopts a ubifs file system architecture, and the problem device includes but is not limited to a smart phone, a smart watch, a tablet and the like. The embodiment provides a software mounting method of a ubifs mirror image, and mounting is performed by using an intelligent device which also adopts an android platform. The device with the problem cannot be started due to the fact that mirror image data in the system partition of the ubifs file are abnormal, but other ubifs format mirror image data can be mounted by the method if needed.
Firstly, data connection is established between the intelligent device used for mounting the software and the problem device, so that the intelligent device can acquire system mirror image data of a system partition in the problem device. After the intelligent equipment is connected with the problem equipment in a data mode, reading back system mirror image data in the ubifs format in the problem equipment, burning the read-back system mirror image data into a cache partition, wherein the cache partition is generally used for storing irrelevant data, useful data in the cache partition are stored in other partitions, and in addition, the intelligent equipment is used for mounting, so that the equipment which completes initialization can be selected, and excessive data left in the cache partition is avoided.
Only the system mirror image data obtained by the read-back is burnt to the cache partition, and only the system mirror image data of the machine with the problem is placed under the cache partition of the intelligent device, the intelligent device cannot read the system mirror image data of the cache partition. Therefore, the intelligent device performs the flash after burning the system mirror image data obtained by the read-back to the cache partition.
After the machine is refreshed, the intelligent device is started, and when the intelligent device is loaded to the cache partition, the system mirror image data of the machine in question 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 carries out mounting based on an android platform, thereby solving the problems that the tool mounting dependence chain of the PC end is very many, the operation is complex and the application is difficult. Through the smart machine that uses tall and erect platform with the problem machine is the same, under same operating system environment, can realize fast more easily.
In another embodiment of the present invention, referring to fig. 2, a software installation method of a ubifs image 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 size of each partition and the size of the system partition of the problem equipment;
s160, adjusting the size of each partition according to the size of each partition and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition;
s200, after establishing data connection with the problem equipment, reading back system mirror image data in the ubifs format in the problem equipment;
s300, burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up;
and S400, after the machine is restarted, mounting the system mirror image data in the cache partition.
Specifically, the problem device is an android platform and adopts a ubifs file system architecture, and the problem device includes but is not limited to a smart phone, a smart watch, a tablet and the like. The embodiment provides a software mounting method of a ubifs mirror image, and mounting is performed by using an intelligent device which also adopts an android platform. The device with the problem cannot be started due to the fact that mirror image data in the system partition of the ubifs file are abnormal, but other ubifs format mirror image data can be mounted by the method if needed.
Firstly, data connection is established between the intelligent device used for mounting the software and the problem device, so that the intelligent device can acquire system mirror image data of a system partition in the problem device. Because the partition size of the intelligent device is different from that of the problem device, in order to ensure that the system mirror image data in the system partition of the problem device can be contained in the cache partition of the intelligent device, the intelligent device establishes data connection with the problem device, thereby obtaining the system partition size of the problem device, and the intelligent device obtains the partition size of the intelligent device, the intelligent device adjusts the size of each partition of the intelligent device according to the partition size of the intelligent device and the system partition size, so that the size of the cache partition after adjustment is larger than or equal to the system partition size, and the system mirror image data in the system partition of the problem device can be contained in the cache partition of the intelligent device.
And after the intelligent equipment is in data connection with the problem equipment, reading back the system mirror image data in the ubifs format in the problem equipment, and burning the read-back system mirror image data into the cache partition. And after the intelligent equipment burns the system mirror image data obtained by the read-back to the cache partition, the flash memory is performed. After the machine is refreshed, the intelligent device is started, and when the intelligent device is loaded to the cache partition, the system mirror image data of the machine in question is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
After the mount is successful, the partition size of the intelligent device still maintains the adjusted partition size after the flush, and the subsequent intelligent device can continue to be used based on the version after the flush, or can choose to continue to be used by the flush.
The invention obtains the special version by adjusting the size of the cache partition through the flash, so as to burn and record the system mirror image data of the problematic equipment without the limitation of the partition size.
In another embodiment of the present invention, referring to fig. 3, a software mounting method of a ubifs image 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 the ubifs format in the problem equipment;
s310, burning the system mirror image data obtained by read-back to a cache partition;
s320, if initial data exists in the cache partition, the system mirror image data is used for covering the initial data, and the flash is carried out;
and S400, after the machine is restarted, mounting the system mirror image data in the cache partition.
Specifically, the problem device is an android platform and adopts a ubifs file system architecture, and the problem device includes but is not limited to a smart phone, a smart watch, a tablet and the like. The embodiment provides a software mounting method of a ubifs mirror image, and mounting is performed by using an intelligent device which also adopts an android platform. The device with the problem cannot be started due to the fact that mirror image data in the system partition of the ubifs file are abnormal, but other ubifs format mirror image data can be mounted by the method if needed.
Firstly, data connection is established between the intelligent device used for mounting the software and the problem device, so that the intelligent device can acquire system mirror image data of a system partition in the problem device. After the intelligent device and the problem device are connected in a data mode, reading back system mirror image data in the ubifs format in the problem device, burning the read-back system mirror image data into the cache partition, and if the cache partition has initial data, covering the initial data with the system mirror image data because the data cached in the cache partition is mostly irrelevant.
And after the intelligent equipment burns the system mirror image data obtained by the read-back to the cache partition, the flash memory is performed. After the machine is refreshed, the intelligent device is started, and when the intelligent device is loaded to the cache partition, the system mirror image data of the machine in question is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
The system mirror image data in the device for burning the problem by using the cache partition is generally used for temporarily caching the data due to the characteristic of the cache partition, so that the system mirror image data is prevented from covering effective data on one hand, and the system mirror image data is prevented from influencing the intelligent device after mounting on the other hand.
In another embodiment of the present invention, referring to fig. 4, a software installation method of a ubifs image 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 the ubifs format in the problem equipment;
s300, burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up;
s400, after the machine is refreshed and restarted, mounting the system mirror image data in the cache partition;
s500, after the mounting is successful, 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.
Specifically, the problem device is an android platform and adopts a ubifs file system architecture, and the problem device includes but is not limited to a smart phone, a smart watch, a tablet and the like. The embodiment provides a software mounting method of a ubifs mirror image, and mounting is performed by using an intelligent device which also adopts an android platform. The device with the problem cannot be started due to the fact that mirror image data in the system partition of the ubifs file are abnormal, but other ubifs format mirror image data can be mounted by the method if needed.
Firstly, data connection is established between the intelligent device used for mounting the software and the problem device, so that the intelligent device can acquire system mirror image data of a system partition in the problem device. And after the intelligent equipment is in data connection with the problem equipment, reading back the system mirror image data in the ubifs format in the problem equipment, and burning the read-back system mirror image data into the cache partition.
And after the intelligent equipment burns the system mirror image data obtained by the read-back to the cache partition, the flash memory is performed. After the machine is refreshed, the intelligent device is started, and when the intelligent device is loaded to the cache partition, the system mirror image data of the machine in question is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted. After the mount is successful, the adb pull can export the system mirror image data in the cache partition, so as to analyze the failure reason of the problem equipment according to the system mirror image data. The analysis method can be self-checking by software or checking and analyzing by engineers.
According to the method, the data in the ubifs format can be mirrored on the Android equipment side, and all data of the required mirror image can be acquired, so that the system mirror image data can be analyzed subsequently.
In another embodiment of the present invention, referring to fig. 5, a software installation method of a ubifs image includes:
s1, making a special version, cutting and adjusting the size of partial partition, as shown in the following, if the size of the cache partition (cache partition) of the special version is adjusted to be large enough, the system mirror image data in the system partition (system partition) of the next problem device can be accommodated;
Figure BDA0002799445970000111
s2, reading back system mirror image partition data (system mirror image data) of the problem equipment;
s3, burning the system mirror image of the problem equipment into the cache partition of the special version;
Figure BDA0002799445970000112
s4, starting a machine (intelligent equipment) of a special version (burning the problem system mirror image into the cache partition), so that the actual system mirror image in the cache partition can be mounted when the machine is normally started, then exporting file data in the problem system mirror image through adb pull, and obtaining all data of the problem system mirror image to further analyze in depth.
The special version mounts the data in the problem system by cache partition:
Figure BDA0002799445970000121
normal machine (smart device) system internal data:
Figure BDA0002799445970000122
Figure BDA0002799445970000131
the invention does not depend on the mounting of the ubifs by the PC end tool, and the dependence chain of the PC end tool is very large and is difficult to apply. If mirror image data in other ubifs formats needs to be mounted, the method can also be used, after the method is mounted, adb operation can also be used, and the analysis and solution efficiency of the problem that boot cannot be performed due to the fact that the ubifs mirror image data are abnormal can be remarkably improved.
In an embodiment of the present invention, referring to fig. 6, an intelligent device 100 that employs an android platform includes:
the data connection module 110 is configured to establish 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 data connection with the problem device and read back system mirror image data in the ubifs format in the problem device;
the system refreshing 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 for refreshing;
and the software mounting module 140 is in communication connection with the flashing module 130, and is used for mounting the system mirror image data in the cache partition after the flashing is completed and restarted.
Further comprising:
the partition adjusting module 150 is in communication connection with the data connection module 110, and is configured to obtain the size of each partition of the partition adjusting module and the size of the system partition of the problem device; and adjusting the partition size according to the size of each partition of the cache memory and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition.
The flash module 130 is configured to burn the system mirror image data obtained by the read-back into a cache partition; and if the initial data exists in the cache partition, using the system mirror image data to cover the initial data, and performing flash.
Further comprising:
the data export module 160 is in communication connection with the software mounting module 140, and is used for exporting the system mirror image data in the cache partition by adb pull after the mounting is successful;
and the data analysis module 170 is in communication connection with the data export module 160 and is used for analyzing the fault reason of the problem equipment according to the system mirror image data.
Specifically, currently, some Android watches adopt a ubifs file system architecture, the ubifs file system is small and popular, and like a data mirror image in ext4 format, the ubifs mirror image lacks some necessary Android end analysis tools or PC end tools, and since the PC end is different from an equipment operating system of an Android platform, the PC end tools depend on a large number of chains and are difficult to apply. Therefore, the mirror image data of the system partition cannot be mounted and acquired for further analysis.
Therefore, the problem device is directed to a problem device which is an android platform and adopts a ubifs file system architecture, and the problem device includes but is not limited to a smart phone, a smart watch, a tablet and the like. The embodiment provides a software mounting method of a ubifs mirror image, and mounting is performed by using an intelligent device which also adopts an android platform. The device with the problem cannot be started due to the fact that mirror image data in the system partition of the ubifs file are abnormal, but other ubifs format mirror image data can be mounted by the method if needed.
Firstly, data connection is established between the intelligent device used for mounting the software and the problem device, so that the intelligent device can acquire system mirror image data of a system partition in the problem device. Because the partition size of the intelligent device is different from that of the problem device, in order to ensure that the system mirror image data in the system partition of the problem device can be contained in the cache partition of the intelligent device, the intelligent device establishes data connection with the problem device, thereby obtaining the system partition size of the problem device, and the intelligent device obtains the partition size of the intelligent device, the intelligent device adjusts the size of each partition of the intelligent device according to the partition size of the intelligent device and the system partition size, so that the size of the cache partition after adjustment is larger than or equal to the system partition size, and the system mirror image data in the system partition of the problem device can be contained in the cache partition of the intelligent device. The size of the cache partition is adjusted through flashing to obtain a special version, so that system mirror image data of the problem equipment can be burned conveniently and is not limited by the size of the partition.
After the intelligent equipment is connected with the problem equipment in a data mode, reading back system mirror image data in the ubifs format in the problem equipment, burning the read-back system mirror image data into a cache partition, wherein the cache partition is generally used for storing irrelevant data, useful data in the cache partition are stored in other partitions, and in addition, the intelligent equipment is used for mounting, so that the equipment which completes initialization can be selected, and excessive data left in the cache partition is avoided. The system mirror image data in the device with the problem of burning 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 effective data on one hand, and the influence of the system mirror image data on the intelligent device after mounting is avoided on the other hand.
Only the system mirror image data obtained by the read-back is burnt to the cache partition, and only the system mirror image data of the machine with the problem is placed under the cache partition of the intelligent device, the intelligent device cannot read the system mirror image data of the cache partition. Therefore, the intelligent device performs the flash after burning the system mirror image data obtained by the read-back to the cache partition.
After the machine is refreshed, the intelligent device is started, and when the intelligent device is loaded to the cache partition, the system mirror image data of the machine in question is burnt in the cache partition, so that the system mirror image data in the cache partition is actually mounted.
After the mount is successful, the partition size of the intelligent device still maintains the adjusted partition size after the flush, and the subsequent intelligent device can continue to be used based on the version after the flush, or can choose to continue to be used by the flush.
In addition, after the mounting is successful, the adb pull can export the system mirror image data in the cache partition, so that the fault reason of the problem equipment can be analyzed according to the system mirror image data. The analysis method can be self-checking by software or checking and analyzing by engineers. Data in the ubifs format can be mirrored on an Android device end, and all data of the needed mirror image can be obtained, so that the system mirror image data can be subjected to subsequent analysis.
The invention does not depend on the tool mounting ubifs of the PC end, but carries out mounting based on an android platform, thereby solving the problems that the tool mounting dependence chain of the PC end is very many, the operation is complex and the application is difficult. Through the smart machine that uses tall and erect platform with the problem machine is the same, under same operating system environment, can realize fast more easily.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which is characterized by comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program stored in the memory, so as to implement the software mount method for the ubifs format image according to the foregoing method embodiment.
Based on the same inventive concept, the embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements all or part of the method steps of the above method.
The present invention can implement all or part of the processes of the above methods, and can also be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the method.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the 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 may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by 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 by 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 cellular phone. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
As will be appreciated by one skilled in the art, 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, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A software mounting method of a ubifs mirror image is applied to intelligent equipment of an android platform, and is characterized by comprising the following steps:
establishing data connection with problem equipment, wherein the problem equipment is an android platform and adopts a ubifs file system architecture;
after establishing data connection with the problem equipment, reading back system mirror image data in the ubifs format in the problem equipment;
burning the system mirror image data obtained by read-back into a cache partition, and performing flash-up;
and after the machine is restarted, mounting the system mirror image data in the cache partition.
2. The method of claim 1, wherein reading back the system image data in the ubifs format in the problem device comprises:
acquiring the size of each partition and the size of a system partition of the problem equipment;
and adjusting the partition size according to the size of each partition of the cache memory and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition.
3. The method of claim 1, wherein the step of burning the system image data obtained by readback into the cache partition and flashing comprises:
burning the system mirror image data obtained by read-back into a cache partition;
and if the initial data exists in the cache partition, using the system mirror image data to cover the initial data, and performing flash.
4. The method of claim 1, wherein after the reboot is completed, the method for mounting the system image data in the cache partition comprises the steps of:
after the mounting is successful, the 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.
5. The utility model provides an intelligent equipment adopts android platform, its characterized in that includes:
the data connection module is used for establishing data connection with 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 system mirror image data in the ubifs format in the problem equipment;
the system refreshing module is in communication connection with the data read-back module and is used for burning the system mirror image data obtained by read-back into the cache partition to refresh the system;
and the software mounting module is in communication connection with the flashing module and is used for mounting the system mirror image data in the cache partition after the flashing is completed and restarted.
6. The smart device of claim 5, further comprising:
the partition adjusting module is in communication connection with the data connection module and is used for acquiring the size of each partition of the partition adjusting module and the size of the system partition of the problem equipment; and adjusting the partition size according to the size of each partition of the cache memory and the size of the system partition, wherein the size of the cache partition after adjustment is larger than or equal to the size of the system partition.
7. The intelligent device according to claim 5, wherein the flash module is configured to burn the system image data obtained by read-back into the cache partition; and if the initial data exists in the cache partition, using the system mirror image data to cover the initial data, and performing flash.
8. The system of analyzing a user subject learning state of claim 5, further comprising:
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 the adb pull after the mounting is successful;
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.
9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the computer program stored in the memory to implement the software installation method of the ubifs format image according to any one of claims 1 to 4.
10. A storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the software mount method of the ubifs format image of any of claims 1-4.
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 true CN112328269A (en) 2021-02-05
CN112328269B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023077610A1 (en) * 2021-11-05 2023-05-11 锐凌无线有限责任公司 Data check method and apparatus, electronic device 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023077610A1 (en) * 2021-11-05 2023-05-11 锐凌无线有限责任公司 Data check method and apparatus, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN112328269B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN103309693A (en) Complex programmable logic device updating method and system
CN112328269A (en) Software mounting method of ubifs mirror image, intelligent device, electronic device, and storage medium
CN112463634A (en) Software testing method and device under micro-service architecture
CN109658501B (en) Image processing method, image processing device and terminal equipment
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN109634826B (en) Controller limit performance analysis method and device, computer equipment and storage medium
CN111782266A (en) Method and device for determining software performance benchmark
US10733071B2 (en) Test program data key generation
CN116501715A (en) Real-time association updating method and device for multi-table full data
CN111310160A (en) WINDOWS automatic login deployment method, device, computer equipment and storage medium
CN116009889A (en) Deep learning model deployment method and device, electronic equipment and storage medium
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN115495297A (en) Server hard disk test method and device, electronic equipment and storage medium
CN115437700A (en) Method, device, system and medium for automatically configuring hardware resources of driver
CN114610341A (en) Production line flashing method and device, electronic equipment, chip and storage medium
CN113254290A (en) Memory particle multidimensional test method, device and system and readable storage medium
WO2020138386A1 (en) Cooperative simulation repeater employing previous trace data
CN110825064B (en) Testing method and device for pure electric vehicle anti-theft system and storage medium
CN106291314B (en) The double board function testing methods of bimodulus interconnection based on Linux
CN115808612B (en) Chip physical IP test system, method and electronic equipment
CN110928788B (en) Service verification method and device
CN113838494B (en) DRAM DLL time sequence temperature self-adaptive calibration method and system
CN116580748B (en) Configuration method, device, equipment and storage medium of memory chip test fixture
CN113900934B (en) Multi-mirror hybrid refresh test method, system, terminal and storage medium
FR2822561A1 (en) Emulation of an embedded microprocessor by connection of an external processor to the integrated circuit containing the embedded processor and deactivation of the embedded processor

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