[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107491333B - Method for generating and burning software mirror image on intelligent device - Google Patents

Method for generating and burning software mirror image on intelligent device Download PDF

Info

Publication number
CN107491333B
CN107491333B CN201710744457.7A CN201710744457A CN107491333B CN 107491333 B CN107491333 B CN 107491333B CN 201710744457 A CN201710744457 A CN 201710744457A CN 107491333 B CN107491333 B CN 107491333B
Authority
CN
China
Prior art keywords
data
mirror image
software
burning
block 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.)
Active
Application number
CN201710744457.7A
Other languages
Chinese (zh)
Other versions
CN107491333A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710744457.7A priority Critical patent/CN107491333B/en
Publication of CN107491333A publication Critical patent/CN107491333A/en
Application granted granted Critical
Publication of CN107491333B publication Critical patent/CN107491333B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for generating and burning a software mirror image on intelligent equipment, which comprises the following steps: and finishing the preparation work, the software mirror image realization and the software mirror image burning. The invention completes the realization and burning of software mirror image in the Recovery mode of the intelligent device, solves the android process interference when reading copy data, solves the problem that the U disk with the FAT32 format of the external memory can only access files with 32 bits of an addressing range, and realizes the copying of high-capacity memory files. The method can be used for realizing and burning the software mirror image of most electronic equipment and has the characteristics of high reliability, strong practicability, simplicity and high efficiency.

Description

Method for generating and burning software mirror image on intelligent device
Technical Field
The invention relates to a method for generating and burning a software mirror image, in particular to a method for generating and burning a software mirror image on intelligent equipment.
Background
With the continuous development of intelligent equipment, the EMMC large-capacity storage equipment is adopted in consumer electronics products with higher requirements on storage capacity. EMMC is an embedded memory standard specification established by the MMC association, mainly for smart devices. The EMMC integrates a controller in a package, provides standard interfaces and manages flash memory with fast, scalable performance. Under the condition of large application of various industries, EMMC memories larger than 4G, such as 8G, 16G, 32G and the like, are gradually introduced.
For the embedded portable device of the android system, a general flow of software image generation is to acquire EMMC memory data by using a command and store the EMMC memory data in a software image of an external memory under the android system. However, in the burning verification process, it is found that there is data damage or failure with a certain probability when the software image file is realized under the android system, and further the burning verification fails because the system and the application process are running and are not in an interrupted or stopped state.
In addition, the prior art also has the problem that large-capacity memory files are difficult to copy. In the software mirroring implementation process, if the U disk with the FAT32 format with the address range of 32 bits (4G) is used for copying the data of the EMMC memory, the situation that the EMMC memory is larger than 4G is encountered, and at this time, the data of the EMMC memory cannot be directly copied to the U disk, so that the existing mirroring technology cannot be implemented.
Disclosure of Invention
The invention aims to provide a method for generating and burning a software mirror image on intelligent equipment capable of realizing large-capacity memory file copying.
The invention is realized by the following steps:
a method for generating and burning a software image on an intelligent device comprises the following steps:
and finishing the preparation work, the software mirror image realization and the software mirror image burning.
The further scheme is as follows:
finishing the preparation work, specifically:
and starting the intelligent equipment, entering a Recovery mode, and mounting the USB flash disk, thereby completing the preparation work.
The further scheme is as follows:
and the U disk is mounted by using a mount command.
The further scheme is as follows:
the USB flash disk is in FAT32 format.
The further scheme is as follows:
the software mirror image implementation specifically comprises:
after the preparation work is finished, reading the first Block data of the EMMC memory, compressing the Block data of the EMMC memory of the intelligent equipment by using a gzip compression command, writing the Block data into a mirror image file in the USB flash disk, checking whether the next Block data exists in the EMMC memory, if the Block data which is not copied exists, continuously reading and copying the next Block data, continuously executing the compression command, circularly writing the compression command into the USB flash disk mirror image file until all the Block files of the EMMC memory are written, and finishing the software mirror image implementation step.
The further scheme is as follows:
software mirror image burning specifically comprises the following steps:
completing preparation work, wherein the mounted U disk is a U disk with a mirror image file;
and decompressing an image file of the USB flash disk by using a gunzip, reading the data of the burned image file into a first Block of an EMMC (embedded multi-media card) memory, checking whether the next Block data of the EMMC memory is not burned, and if the Block data which is not burned exists, continuously burning the Block data until all the Block data of the EMMC memory are burned. After the Block data is burned, comparing the original whole package of data with the MD5 code written in the EMMC memory data, and verifying the consistency of the software image file and the intelligent equipment data. If the data comparison is inconsistent, the software image implementation step needs to be executed again, and if the data comparison is consistent, the generated software image file can be used for burning the equipment.
The further scheme is as follows:
the Block data comprises system data, memory data and configuration data.
The further scheme is as follows:
the Block data, wherein the size of Block is a partition size of the memory.
The further scheme is as follows:
the intelligent device is an intelligent device adopting an EMMC memory.
The further scheme is as follows:
the smart device includes: cell-phone, TV, STB, panel computer.
The software mirror image realization and the software mirror image burning have no influence on the size of the intelligent device memory.
In addition, the invention selects the USB flash disk with the FAT32 format of the external memory, and solves the problem of large-capacity data copying of the USB flash disk with the FAT32 format of 32 bits (4G) in the addressing range.
The invention completes the realization and burning of software mirror image in the Recovery mode of the intelligent device, solves the android process interference when reading copy data, solves the problem that the U disk with the FAT32 format of the external memory can only access files with the addressing range of 32 bits (4G), and simultaneously realizes the copying of high-capacity memory files. The method can be used for realizing and burning the software mirror image of most electronic equipment and has the characteristics of high reliability, strong practicability, simplicity and high efficiency.
Drawings
Fig. 1 is a schematic diagram of a Recovery mode of an intelligent device according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a software mirroring implementation process.
FIG. 3 is a schematic diagram of a software image burning process.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments.
Fig. 1 is a schematic diagram of an interface for entering a Recovery mode of a smart television according to the present invention.
For those skilled in the art, the means for controlling the smart device to enter the Recovery mode is a conventional means, and the Recovery mode can be generally started through specific key operation or command input, which is not described herein again.
As shown in fig. 2, the flow of implementing software mirror image of the present invention is disclosed, which specifically includes:
after the preparation work is finished, reading the first Block data of the EMMC memory, compressing the Block data of the EMMC memory of the intelligent equipment by using a gzip compression command, writing the Block data into a mirror image file in the USB flash disk, checking whether the next Block data exists in the EMMC memory, if the Block data which is not copied exists, continuously reading and copying the next Block data, continuously executing the compression command, circularly writing the compression command into the USB flash disk mirror image file until all the Block files of the EMMC memory are written, and finishing the software mirror image implementation step.
As shown in fig. 3, the software image burning process of the present invention is disclosed, which specifically comprises:
completing preparation work, wherein the mounted U disk is a U disk with a mirror image file;
and decompressing an image file of the USB flash disk by using a gunzip, reading the data of the burned image file into a first Block of an EMMC (embedded multi-media card) memory, checking whether the next Block data of the EMMC memory is not burned, and if the Block data which is not burned exists, continuously burning the Block data until all the Block data of the EMMC memory are burned. After the Block data is burned, comparing the original whole package of data with the MD5 code written in the EMMC memory data, and verifying the consistency of the software image file and the intelligent equipment data. If the data comparison is inconsistent, the software image implementation step needs to be executed again, and if the data comparison is consistent, the generated software image file can be used for burning the equipment.
A more specific example will be described in detail below.
The platform of this embodiment is a television set adopting an Android 5.1 system, the collocated EMMC memory is a samsung model KLM8G1gem, a custodon usb disk is accessed to the television set, and the format of the usb disk is FAT 32. And the specific operation enters a Recovery mode of the television, the U disk device on the mount reads and copies the Block data of the EMMC memory one by one under the linux system, compresses the data by using a gzip command, writes the data into a U disk image file, and completes the software image realization. And restarting the television, remount the U disk again, entering an image file storage path of the U disk under the linux system, decompressing the Block data of the image files one by using a gunzip command, reading the burning Block data into a Block corresponding to the EMMC memory, and finishing burning the image files. And finally, obtaining the original whole package of data and the MD5 code written in the EMMC data for comparison and verification, and after confirming that the MD5 codes are consistent, the software image file can be used for burning an EMMC burner in a production plant.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.

Claims (4)

1. A method for generating and burning a software image on an intelligent device is characterized by comprising the following steps:
completing preparation work, software mirror image realization and software mirror image burning;
finishing the preparation work, specifically:
starting the intelligent equipment, entering a Recovery mode, and mounting a U disk with a FAT32 format, thereby completing preparation work;
the software mirror image implementation specifically comprises:
after the preparation work is finished, reading the first Block data of the EMMC memory, compressing the Block data of the EMMC memory of the intelligent equipment by using a gzip compression command, writing the compressed Block data into a mirror image file in the USB flash disk, checking whether the next Block data exists in the EMMC memory, if the Block data which is not copied exists, continuously reading and copying the next Block data, continuously executing the compression command, circularly writing the compression command into the USB flash disk mirror image file until all the Block files of the EMMC memory are written, and finishing the software mirror image implementation step;
software mirror image burning specifically comprises the following steps:
completing preparation work, wherein the mounted U disk is a U disk with a mirror image file;
decompressing an image file of the USB flash disk by using gunzip, reading the data of a burned image file into a first Block of an EMMC (embedded multi-media card) memory, checking whether the next Block data of the EMMC memory is not burned, and if the Block data which is not burned exists, continuing to burn the Block data until all the Block data of the EMMC memory is burned; after Block data is burned, comparing the original whole packet of data with the MD5 code written in the EMMC memory data, and verifying the consistency of the software image file and the intelligent equipment data; if the data comparison is inconsistent, the software image implementation step needs to be executed again, and if the data comparison is consistent, the generated software image file can be used for burning the equipment;
the Block data, wherein the size of Block is a partition size of a memory;
the intelligent device is an intelligent device adopting an EMMC memory.
2. The method of generating and burning a software image on a smart device as recited in claim 1, wherein:
and the U disk is mounted by using a mount command.
3. The method of generating and burning a software image on a smart device as recited in claim 1, wherein:
the Block data comprises system data, memory data and configuration data.
4. The method of generating and burning a software image on a smart device as recited in claim 1, wherein:
the smart device includes: cell-phone, TV, STB, panel computer.
CN201710744457.7A 2017-08-25 2017-08-25 Method for generating and burning software mirror image on intelligent device Active CN107491333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710744457.7A CN107491333B (en) 2017-08-25 2017-08-25 Method for generating and burning software mirror image on intelligent device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710744457.7A CN107491333B (en) 2017-08-25 2017-08-25 Method for generating and burning software mirror image on intelligent device

Publications (2)

Publication Number Publication Date
CN107491333A CN107491333A (en) 2017-12-19
CN107491333B true CN107491333B (en) 2020-06-30

Family

ID=60651022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710744457.7A Active CN107491333B (en) 2017-08-25 2017-08-25 Method for generating and burning software mirror image on intelligent device

Country Status (1)

Country Link
CN (1) CN107491333B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683985B (en) * 2018-12-19 2021-10-22 中国电子科技集团公司第五十四研究所 DSP multi-image starting method based on AIS command

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226477B (en) * 2007-01-16 2012-09-26 北京共创开源软件有限公司 Method for implementing Linux operating system being suitable for mobile application
US8918822B2 (en) * 2012-09-26 2014-12-23 Apple Inc. Displaying a synchronized instance of content on a portable electronic device
CN104731602A (en) * 2015-03-31 2015-06-24 上海盈方微电子有限公司 Method for separating Android mirror image burning process
CN105373404A (en) * 2015-11-25 2016-03-02 青岛海信宽带多媒体技术有限公司 Software mirror image burning method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
适用于WSN测试平台的自动烧录方法;王延政;《计算机工程》;20120331;全文 *

Also Published As

Publication number Publication date
CN107491333A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US8510279B1 (en) Using read signature command in file system to backup data
US9880762B1 (en) Compressing metadata blocks prior to writing the metadata blocks out to secondary storage
TWI548990B (en) Memory storage apparatus and method for restoring thereof, memory controller
US10552044B2 (en) Storage apparatus, data processing method and storage system wherein compressed data is read in parallel, said data stored in buffer by size and read from said buffer, in order of when said data is stored in said buffer
CN102141923B (en) Memory file system loading method and device
EP3750052A1 (en) Firmware update in a storage backed memory package
CN104778060A (en) Rapid and safe starting method for embedded Linux system
CN109086078B (en) Android system upgrading method and device, server and mobile terminal
US20160085445A1 (en) Method operating raid system and data storage systems using write command log
CN111258666A (en) Reading method and device of computer file, computer system and storage medium
EP2291748A2 (en) Maintenance of exo-file system metadata on removable storage device
US20210382660A1 (en) Apparatus and method for performing recovery operation of memory system
US20160132387A1 (en) Data access method, memory control circuit unit and memory storage apparatus
CN107577549A (en) It is a kind of to store the method for testing for deleting function again
US9652416B2 (en) Storage device for performing in-storage computing operations, method of operation the same, and system including the same
CN107491333B (en) Method for generating and burning software mirror image on intelligent device
CN102043634A (en) Embedded system and embedded software upgrading method
CN114579055B (en) Disk storage method, device, equipment and medium
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
CN103578566A (en) Memory storage apparatus and restoration method thereof
TWI493341B (en) Memory storage device and repairing method thereof
CN102591737B (en) Data writing and reading method, memory controller and memory storage device
US10387054B2 (en) Secure element including a non-volatile memory and methods for saving and restoring data including defragmenting and compressing data stored in occupied and free regions
CN113157282A (en) Method for generating burn image file
US9009430B2 (en) Restoration of data from a backup storage volume

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