CN112540800A - Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform - Google Patents

Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform Download PDF

Info

Publication number
CN112540800A
CN112540800A CN202011407849.2A CN202011407849A CN112540800A CN 112540800 A CN112540800 A CN 112540800A CN 202011407849 A CN202011407849 A CN 202011407849A CN 112540800 A CN112540800 A CN 112540800A
Authority
CN
China
Prior art keywords
partition
emmc
starting
newly
user 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.)
Pending
Application number
CN202011407849.2A
Other languages
Chinese (zh)
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.)
Jiangsu Zhilian Tiandi Technology Co ltd
Original Assignee
Jiangsu Zhilian Tiandi 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 Jiangsu Zhilian Tiandi Technology Co ltd filed Critical Jiangsu Zhilian Tiandi Technology Co ltd
Priority to CN202011407849.2A priority Critical patent/CN112540800A/en
Publication of CN112540800A publication Critical patent/CN112540800A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention discloses a method for realizing compatibility of EMMC (embedded media card) with different sizes through a newly added partition based on a high-pass platform, and belongs to the technical field of communication and Internet of things. The method comprises the following steps: step one, creating a partition, adding a flag bit format _ emmc.txt file and packaging; adding the newly-built partition into a system partition table, and adjusting the starting sequence of the partition to be in front of the user data partition; step three, packaging the android system and the newly-built partition, refreshing the equipment, and starting the equipment, wherein in the starting process, whether a format _ emmc.txt file exists or not is judged when an init process mounts a file system, if yes, the step four is skipped, and if not, the step five is skipped; step four init process fs _ mgr to user data partition formatting, user data partition formatting will match EMMC actual size, then mount operation is carried out, format _ emmc.txt file is deleted, after starting up, use can be carried out according to EMMC actual size, thereby completing compatibility; and step five, starting the machine normally, and ending the process. The method has the advantages of strong transportability, no need of additional operation, simplicity and stability.

Description

Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform
Technical Field
The invention belongs to the technical field of communication and Internet of things, and particularly relates to a method for realizing compatibility of EMMC (embedded multi-media card) with different sizes through newly added partitions based on a high-pass platform.
Background
Since the high-pass platform software version has a partition table to fix the sizes of different partitions during compiling, when an EMMC (embedded multimedia controller) with different capacities (such as 16G,32G and 64G) is used, the sizes of other partitions are fixed, and the size of a userdata partition needs to be dynamically adjusted. The size of the partition acquired by the application end and the size of the usable actual capacity are consistent with the capacity of the EMMC. Therefore, the same software can be applied to intelligent terminals with different EMMC capacities. At present, two ideal methods exist, namely, the size of a super block and the size of a block device are judged to be consistent before a user data partition is mounted by utilizing the resize function of a file system, and a resize operation is carried out if the sizes of the super block and the block device are inconsistent. The second method is that the first boot is to format the userdata partition and mount the userdata partition.
The second method is a method using a relatively large number. The key of the method is how to judge the first startup and ensure that the user data partition is not formatted after the equipment is started up later (including factory restoration and system upgrade).
Disclosure of Invention
The invention aims to provide a method for realizing compatibility of EMMC (embedded media card) with different sizes by adding partitions based on a high-pass platform, so as to solve the problem that the prior art is difficult to ensure that the same software can be applied to intelligent terminals with different EMMC capacities.
Specifically, the method for realizing compatibility of EMMC with different sizes through newly added partitions based on a high-pass platform comprises the following steps:
step one, newly building a partition, adding a zone bit and packaging;
adding the newly-built partition into a system partition table, and adjusting the starting sequence of the partition to be in front of the user data partition;
step three, packaging the android system and the newly-built partition, refreshing the equipment, and starting the equipment, wherein in the starting process, whether a format _ emmc.txt file exists or not is judged when an init process mounts a file system, if yes, the step four is skipped, and if not, the step five is skipped;
step four init process fs _ mgr to user data partition formatting, user data partition formatting will match EMMC actual size, then mount operation is carried out, format _ emmc.txt file is deleted, after starting up, use can be carried out according to EMMC actual size, thereby completing compatibility;
and step five, starting the machine normally, and ending the process.
Further, the newly established partition in the first step of the method is named as an unrecoverable partition.
Further, in the first method step, a format _ emmc.txt file flag bit is added and packed into nonrecoverable.img.
Further, in step two of the method, the user data partition is a userdata partition.
The invention has the beneficial effects that: the invention designs a method for being compatible with EMMC (embedded media management controller) with different sizes through a newly added partition based on a high-pass platform, wherein the method comprises the steps of newly adding an unrecoverable partition, putting a format _ emmc.txt file into the unrecoverable partition as a flag bit, and carrying out user data formatting operation only after first-time machine flushing. unreecoverable can not be carried out factory recovery operation, so that the user data partition is formatted again (non-user manual formatting) in the process of restarting after upgrading and equipment factory recovery;
and the fs _ mgr of the native init process of the android system is used for formatting the userdata, no additional operation is needed, and the method is simple and stable.
The method has strong portability, and mainly adds a new partition and adds a judgment on whether the format operation is carried out on userdata or not to fs _ mgr.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided with reference to the accompanying drawings:
based on a high-pass platform, firstly, a partition (named as unrecoverable) is newly added, the condition that the partition cannot be restored to factory restoration or deletion is ensured, the starting sequence of the partition is adjusted, and the partition is ensured to be mounted before a userdata partition. A flag bit is required in the partition, for example, whether an empty text file format _ emmc.txt exists or not is used as the flag bit. When the terminal is started for the first time after the terminal is booted, the android system starts BootLoader, calls a linux kernel, starts an init process and mounts a file system. When the user partition is mounted, judging whether a format _ emmc.txt file exists in the nonrecoverable partition, if so, formatting the user partition to adjust the actual capacity of the current EMMC to mount the partition, and deleting the format _ emmc.txt file. And after factory settings are restored or software is upgraded, the format _ emmc.txt does not exist when the computer is restarted, so that the user data cannot be erased (non-user operation).
As shown in fig. 1, the method for enabling compatibility of EMMC with different sizes by adding partitions based on a high-pass platform provided by the present invention includes the following steps:
1) and (4) newly building an unrecoverable partition, adding a format _ emmc.txt flag bit, and packaging into unrecoverable.
2) Adding an unrecoverable partition to a system partition table, and adjusting the starting sequence of the partition to be before a userdata partition.
3) And (3) after packaging the android system and the unique.
4) The fs _ mgr of the init process formats the userdata partition, the userdata partition can be matched with the EMMC actual size (android native design) after being formatted, then mounting operation is carried out, the format _ emmc.txt file is deleted, the format _ emmc.txt file can be used by the EMMC actual size after being started, and therefore compatibility is completed.
5) And (5) normally starting up the computer, and ending the process.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (4)

1. A method for being compatible with EMMC (embedded media card) with different sizes through newly added partitions based on a high-pass platform is characterized by comprising the following steps:
step one, newly building a partition, adding a zone bit and packaging;
adding the newly-built partition into a system partition table, and adjusting the starting sequence of the partition to be in front of the user data partition;
step three, packaging the android system and the newly-built partition, refreshing the equipment, and starting the equipment, wherein in the starting process, whether a format _ emmc.txt file exists or not is judged when an init process mounts a file system, if yes, the step four is skipped, and if not, the step five is skipped;
step four init process fs _ mgr to user data partition formatting, user data partition formatting will match EMMC actual size, then mount operation is carried out, format _ emmc.txt file is deleted, after starting up, use can be carried out according to EMMC actual size, thereby completing compatibility;
and step five, starting the machine normally, and ending the process.
2. The high-pass platform based method for compatibility of EMMC of different sizes by adding partitions as claimed in claim 1, wherein the newly created partition in the first method step is named as nonrecoverable partition.
3. The method of claim 2, wherein in the first method step, a format _ emmc.txt file is added as a flag bit and packed as nonrecoverable.
4. The high-pass platform based method for compatibility of EMMC of different sizes by adding partitions as claimed in claim 1, wherein in step two of the method, the user data partition is a userdata partition.
CN202011407849.2A 2020-12-03 2020-12-03 Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform Pending CN112540800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011407849.2A CN112540800A (en) 2020-12-03 2020-12-03 Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011407849.2A CN112540800A (en) 2020-12-03 2020-12-03 Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform

Publications (1)

Publication Number Publication Date
CN112540800A true CN112540800A (en) 2021-03-23

Family

ID=75015972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011407849.2A Pending CN112540800A (en) 2020-12-03 2020-12-03 Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform

Country Status (1)

Country Link
CN (1) CN112540800A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594990A (en) * 2022-05-10 2022-06-07 深圳佰维存储科技股份有限公司 eMMC operation method, eMMC operation device, readable storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BURT_YU: "高通EMMC兼容不同SIZE", HTTPS://BLOG.CSDN.NET/BURT_YU/ARTICLE/DETAILS/101702663, pages 1 - 5 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594990A (en) * 2022-05-10 2022-06-07 深圳佰维存储科技股份有限公司 eMMC operation method, eMMC operation device, readable storage medium and electronic equipment
CN114594990B (en) * 2022-05-10 2022-08-05 深圳佰维存储科技股份有限公司 eMMC operation method, eMMC operation device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
US7853944B2 (en) Apparatus and method for managing firmware of removable media device
RU2419839C2 (en) Software update system and method for portable ota supporting mobile terminal
KR101143112B1 (en) Applying custom software image updates to non-volatile storage in a failsafe manner
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN100458699C (en) Method and system for updating fastener
US20140372799A1 (en) System Differential Upgrade Method, Apparatus, and Mobile Terminal
JP2002196945A (en) Upgrading system and method of device driver
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
CN105867947A (en) Data processing method and device after upgrades of preset applications
US8930424B2 (en) Data storage system and method for protecting the system in case of power-failure
WO2017193885A1 (en) Application starting method and apparatus
JP2003316595A (en) Installation method, file updating method, its program and computer system
CN104918114A (en) Method and device for upgrading operation system
CN104636159B (en) The method and apparatus that software in virtual machine is upgraded
US20170052779A1 (en) Method and Device for Running Version File
CN102346673A (en) Method and device for upgrading mobile phone system
WO2020029967A1 (en) Method and apparatus for repairing fault in operating system
CN110209525B (en) Operating system restoration method and device
CN115202686A (en) Virtualization system upgrading method and device, electronic equipment and storage medium
CN112540800A (en) Method for realizing compatibility of EMMCs with different sizes through newly added partitions based on high-pass platform
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
WO2019041891A1 (en) Method and device for generating upgrade package

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