CN107526547A - EMMC compatible design methods based on Android system - Google Patents

EMMC compatible design methods based on Android system Download PDF

Info

Publication number
CN107526547A
CN107526547A CN201710764683.1A CN201710764683A CN107526547A CN 107526547 A CN107526547 A CN 107526547A CN 201710764683 A CN201710764683 A CN 201710764683A CN 107526547 A CN107526547 A CN 107526547A
Authority
CN
China
Prior art keywords
emmc
data subregions
subregions
data
actual
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
CN201710764683.1A
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.)
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 CN201710764683.1A priority Critical patent/CN107526547A/en
Publication of CN107526547A publication Critical patent/CN107526547A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Abstract

The present invention relates to software technology field, discloses a kind of EMMC compatible design methods based on Android system, when equipment uses different EMMC, accomplishes that software is adaptive to various different EMMC.The solution of the present invention includes:Set the default partition size of DATA subregions;EMMC actual capacity is obtained, and the original position of DATA subregions is calculated according to the EMMC sizes of reality, the default partition size of DATA subregions;The actual size of DATA subregions is calculated by the actual size writing system of DATA subregions according to EMMC actual capacity, the original position of DATA subregions, headspace.The present invention is applied to intelligent television.

Description

EMMC compatible design methods based on Android system
Technical field
The present invention relates to software technology field, the EMMC compatible design methods more particularly to based on Android system.
Background technology
As this several years Android intelligent television markets integrally grow steadily, major intelligent television manufacturer is also being carried out Various Sales Channels have carried out respective product function and the differentiation design of configuration.Therefore, for same chip solution, Collocation is needed to be adapted to the EMMC of the channel more and more common.
The EMMC that the EMMC that we face in intelligent television product development is possible to and purchased when producing is inconsistent, may It is different brands, it is also possible to different size of EMMC.How we accomplish that these different EMMC of compatibility just show in software Obtain important.
The content of the invention
The technical problem to be solved in the present invention is:A kind of EMMC compatible design methods based on Android system are provided, when When equipment uses different EMMC, accomplish that software is adaptive to various different EMMC.
To solve the above problems, the technical solution adopted by the present invention is:EMMC compatible design sides based on Android system Method, including step:
A. the default partition size of DATA subregions is set;
B. EMMC actual capacity is obtained, and is calculated according to the EMMC sizes of reality, the default partition size of DATA subregions The original position of DATA subregions;
C. the actual big of DATA subregions is calculated according to EMMC actual capacity, the original position of DATA subregions, headspace Small, calculation formula is:Original position-headspace of actual size=EMMC of DATA subregions actual capacity-DATA subregions;
D. by the actual size writing system of DATA subregions.
Further, step A implementation is:By changing the partition definition in BoardConfig.mk files.
The beneficial effects of the invention are as follows:The present invention space distribution of the Data subregions of Android system is made into it is variable, Can be according to the EMMC of actual use size come allocation space, therefore the compatibility of software can be improved, it is not necessary to because cutting Different EMMC is changed to go to change software.The program greatly reduces compiling cost and code maintenance cost, improves production efficiency
Brief description of the drawings
Fig. 1 is the flow chart of embodiment.
Embodiment
EMMC Physical Extents are divided into:
1.BOOT Area Partition 1
2.BOOT Area Partition 2
3.RPMB
4.User Data Area
Wherein BOOT1, BOOT2 and RPMB subregion cannot be changed, and what we were done is by User Data Area Be divided into different subregions, such as system, cache, hwcfg etc., these subregions all referring to " in logic ", that is, pass through For software come what is realized, file system level is other.What following DATA subregions referred to is exactly the logical partition in User Data Area.
As shown in figure 1, embodiment provides a kind of EMMC compatible design methods based on Android system, including following step Suddenly:
A. the default partition size of DATA subregions is set.
In this step, by changing the partition definition in BoardConfig.mk this file
BOARD_USERDATAIMAGE_PARTITION_SIZE:=0x32000000
Here the value filled out is the real bytes number conversed, for the flash of compatible different capabilities, what this default value was filled out It is smaller, it can only divide 1G size.
B. EMMC actual capacity is obtained, and is calculated according to the EMMC sizes of reality, the default partition size of DATA subregions The original position of DATA subregions.
C. the actual big of DATA subregions is calculated according to EMMC actual capacity, the original position of DATA subregions, headspace Small, calculation formula is:Original position-headspace of actual size=EMMC of DATA subregions actual capacity-DATA subregions.
Because the EMMC of different manufacturers actual capacity is variant, such as:
Toshiba EMMC Totalsize:3959418880bytes=3776MB
Samsung EMMC Totalsize:3909091328bytes=3728MB
The EMMC of Samsung actual capacity is generally less than normal, 4G EMMC, Samsung 48M smaller than Toshiba, therefore for compatibility The EMMC of the two producers, we have subtracted 48M in total capacity, it is contemplated that and the EMMC of same producer also has Light Difference, We have subtracted 4M again.If the EMMC for also having other producers will be big to adjust the space subtracted according to the capacity volume variance of reality It is small.
D. by the actual size writing system of DATA subregions.This ensures that either 4G or 8G EMMC, PKG System can change the size of DATA subregions according to EMMC actual size after upgrading.
The general principle of the present invention and main feature are the foregoing described, the description of specification simply illustrates the original of the present invention Reason, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes and improvements It all fall within the protetion scope of the claimed invention.

Claims (2)

1. the EMMC compatible design methods based on Android system, it is characterised in that including step:
A. the default partition size of DATA subregions is set;
B. EMMC actual capacity is obtained, and DATA is calculated according to the EMMC sizes of reality, the default partition size of DATA subregions The original position of subregion;
C. the actual size of DATA subregions, meter are calculated according to EMMC actual capacity, the original position of DATA subregions, headspace Calculating formula is:Original position-headspace of actual size=EMMC of DATA subregions actual capacity-DATA subregions;
D. by the actual size writing system of DATA subregions.
2. the EMMC compatible design methods based on Android system as claimed in claim 1, it is characterised in that step A reality Now mode is:By changing the partition definition in BoardConfig.mk files.
CN201710764683.1A 2017-08-30 2017-08-30 EMMC compatible design methods based on Android system Pending CN107526547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710764683.1A CN107526547A (en) 2017-08-30 2017-08-30 EMMC compatible design methods based on Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710764683.1A CN107526547A (en) 2017-08-30 2017-08-30 EMMC compatible design methods based on Android system

Publications (1)

Publication Number Publication Date
CN107526547A true CN107526547A (en) 2017-12-29

Family

ID=60682843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710764683.1A Pending CN107526547A (en) 2017-08-30 2017-08-30 EMMC compatible design methods based on Android system

Country Status (1)

Country Link
CN (1) CN107526547A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023818A (en) * 2010-12-06 2011-04-20 成都市华为赛门铁克科技有限公司 Method and device for regulating capacity of storage equipment, and storage equipment
CN105009091A (en) * 2012-12-26 2015-10-28 西部数据技术公司 Dynamic overprovisioning for data storage systems
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023818A (en) * 2010-12-06 2011-04-20 成都市华为赛门铁克科技有限公司 Method and device for regulating capacity of storage equipment, and storage equipment
CN105009091A (en) * 2012-12-26 2015-10-28 西部数据技术公司 Dynamic overprovisioning for data storage systems
CN106406768A (en) * 2016-09-28 2017-02-15 努比亚技术有限公司 Android system user data partitioning adjustment method and device

Similar Documents

Publication Publication Date Title
US20220171740A1 (en) Heuristic interface for enabling a computer device to utilize data property-based data placement inside a nonvolatile memory device
US9170885B2 (en) Independent management of data and parity logical block addresses
JP2022111153A (en) Management system for operating storage medium in multi-mode, storage system including the same, and method for managing storage medium using the same
US11249664B2 (en) File system metadata decoding for optimizing flash translation layer operations
KR20170056414A (en) Apparatus, method, and multimode storage device for performing selective underlying exposure mapping on user data
CN103995855A (en) Method and device for storing data
CN103384877A (en) Storage system comprising flash memory, and storage control method
CN110837479B (en) Data processing method, related equipment and computer storage medium
KR102077149B1 (en) Method for managing memory and apparatus thereof
TW201351143A (en) Storage system with load balancing mechanism and method of operation thereof
JP5781867B2 (en) Data compression and decompression using relative and absolute delta values
WO2020248493A1 (en) Compression method and device based on storage engine bluestore, and storage medium
US10795597B2 (en) Thinly provisioned disk drives with zone provisioning and compression in relation to zone granularity
CN103970578A (en) Method for upgrading master and slave MCUs (micro control units)
US10055356B2 (en) Memory device and method for controlling memory device
CN107704200A (en) A kind of data deposit method
US10324664B2 (en) Memory controller which effectively averages the numbers of erase times between physical blocks with high accuracy
CN107526547A (en) EMMC compatible design methods based on Android system
US9959060B1 (en) Data separation during host write with storage allocated based on traffic profiles
US9524236B1 (en) Systems and methods for performing memory management based on data access properties
CN107912063A (en) A kind of method for recovering internal storage and device
CN110019187B (en) Data distribution method, device and equipment
TWI499972B (en) Portable apparatus using multi-core storage mechanism and data access method therefor
CN103593297A (en) Virtual USB (universal serial bus) flash disk designing system and virtual USB flash disk designing method
CN107077420B (en) Overlay Erase Block mapping

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171229

RJ01 Rejection of invention patent application after publication