WO2016155282A1 - 一种存储分区的方法及终端 - Google Patents
一种存储分区的方法及终端 Download PDFInfo
- Publication number
- WO2016155282A1 WO2016155282A1 PCT/CN2015/091977 CN2015091977W WO2016155282A1 WO 2016155282 A1 WO2016155282 A1 WO 2016155282A1 CN 2015091977 W CN2015091977 W CN 2015091977W WO 2016155282 A1 WO2016155282 A1 WO 2016155282A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- partition
- system operation
- terminal
- operating
- partitions
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/575—Secure boot
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/74—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0605—Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0611—Improving I/O performance in relation to response time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0637—Permissions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B25/00—Apparatus characterised by the shape of record carrier employed but not specific to the method of recording or reproducing, e.g. dictating apparatus; Combinations of such apparatus
- G11B25/04—Apparatus characterised by the shape of record carrier employed but not specific to the method of recording or reproducing, e.g. dictating apparatus; Combinations of such apparatus using flat record carriers, e.g. disc, card
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/22—Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management
Definitions
- the present invention relates to the field of embedded multimedia media (EMMC) storage technologies, and in particular, to a method and a terminal for storing a partition.
- EMMC embedded multimedia media
- EMMC is currently the most widely used storage device in terminals such as smartphones and tablets. It is used to store software and data in mobile phones and tablets, such as operating system software, application software, pictures, documents, etc. EMMC has the same status. A hard disk in a computer.
- the function and performance of EMMC follow the international standard specification JESD84.
- the specification specifies many storage characteristics, including response speed, data security, storage reliability, etc., but the response speed, security, and reliability are sometimes conflicting with each other. For example, enabling the cache function can improve the read/write speed, but it will bring data inconsistency.
- many measures such as redundancy and verification are required, which is at the expense of response speed. Therefore, in a single system, it is usually impossible to achieve the highest response speed, and the most reliable and safest protection.
- the current common solutions are compromises, and the response speed, reliability, and security are all certain. concession.
- the EMMC internally includes controllers and storage media.
- the controller is responsible for internal and external control and communication.
- the internal controller mainly controls the reading, writing, erasing operation and address space management of the storage medium.
- the external controller mainly communicates with the host, receives and responds to the command of the host.
- the data to be stored by the host is stored on the corresponding storage medium, and the data to be read by the host is taken out from the corresponding storage medium and sent to the host.
- the storage medium generally refers to Nand Flash.
- the storage medium has a plurality of pieces, and the plurality of storage mediums form a storage array.
- a system operation partition refers to a storage area including a boot partition, an encrypted partition, a general purpose storage area, and a user data storage area, and the storage area can be Start or transport equipment containing EMMC In the process of the line, all system data and user data are accessed independently.
- a system operation partition is composed of a Boot Area, an RPMB area, a GP area, and a User data area.
- Boot area 1 and Boot area 2 in Figure 1 are the boot partitions in the operating partition of the system, which are used to store the system startup code; RPMB area is the encrypted partition in the operating partition of the system, which is used for storage with high security requirements.
- System data; GP area 1 ⁇ 4 is a general purpose storage area in the operating partition of the system, used to store some factory data, key system data, etc. of the mobile phone, tablet manufacturer;
- User data area is the user in the operating partition of the system
- the User data area is a storage space visible to users of mobile phones and tablet computers, and can also be specified within the User data area.
- the special protection measures are enabled in the area, that is, the Enhanced user data area in Figure 1 and the Enhanced user data area function as the User data area, but the storage medium is more reliable and the data storage is more reliable.
- This method of only one system operation partition by superimposing the partition inside the User data area of the operating partition of the system to form different storage partitions, alleviates the contradiction of response speed, reliability and security to some extent.
- this method of superimposing partitions in the User data area may cause mutual infection of viruses and mutual leakage of data of different partitions, and the application scenarios of mobile phones and tablet computers become more and more complicated. The application difference is also getting larger and larger.
- the existing partitioning method makes the terminal with one EMMC unable to combine the high-speed and high-reliability and high-security performance requirements. It is necessary to set two or more independent memory chips in the terminal (for example, two EMMC can meet the different needs of users, which will make the board design more complicated and costly.
- the present invention provides a method and a terminal for storing a partition, so that a terminal having an EMMC can meet different needs of users, save cost, and be simple and flexible in design.
- an embodiment of the present invention provides a method for storing a partition, where the method for storing a partition is applied to a terminal including an EMMC, where the EMMC includes a controller and a storage medium, and the controller has a partition register.
- the storage medium includes at least two mutually independent system operation partitions, and the at least two mutually independent system operation partitions are obtained by the controller dividing the storage medium of the EMMC according to a predetermined setting of the partition register.
- the method includes:
- the terminal accesses data on the first system operating partition.
- the at least two mutually independent system operation partition types include at least one of the following: a high speed system operation partition, a high reliability high security system operation partition;
- rate of accessing data in the high speed system operating partition is higher than the rate of accessing data in the high reliability high security system operating partition
- the reliability and security of operating the partition access data in the high reliability and high security system is higher than the reliability and security of accessing data in the high speed system operating partition.
- the controller further includes a configuration register, where the method further includes:
- the storage attributes are configured for each system operation partition according to a predetermined setting of a configuration register corresponding to each system operation partition.
- the storage attribute of the high-speed system operation partition includes any one or more of the following: an open cache feature, a trim feature, a drop feature, The packaging command feature and the context management feature;
- the storage attribute of the high-reliability and high-security system operating partition includes any one or more of the following: the storage medium is an enhanced storage medium, a closed cache characteristic, a reliable write characteristic, a reliable erase characteristic, and a reliable Trimming characteristics, data label characteristics, write protection characteristics, and device locking characteristics.
- the controller further includes a configuration register, where the method further includes:
- An access password is set for the high reliability high security system operating partition according to a predetermined setting of a configuration register corresponding to the high reliability high security system operating partition.
- the controller further includes a configuration register, where the method further includes:
- An access password is set for the high speed system operation partition according to a predetermined setting of a configuration register corresponding to the high speed system operation partition.
- each system operating partition has an operating system.
- the method also includes:
- the terminal is restarted to perform work switching on different system operation partitions.
- an embodiment of the present invention provides a terminal, where the terminal includes an embedded multimedia card EMMC, and the terminal includes:
- a dividing unit configured to divide the storage medium of the EMMC into at least two mutually independent system operating partitions
- a booting unit configured to: when the terminal is in a power-on state, start only a first system operating partition of the at least two mutually independent system operating partitions divided by the dividing unit, the first system operating partition No data interaction with other unopened system operating partitions;
- a processing unit configured to access data on the first system operation partition initiated by the startup unit.
- the type of the at least two mutually independent system operation partitions includes at least one of the following: a high speed system operation partition, a high reliability high security system operation partition;
- rate of accessing data in the high speed system operating partition is higher than the rate of accessing data in the high reliability high security system operating partition
- the reliability and security of operating the partition access data in the high reliability and high security system is higher than the reliability and security of accessing data in the high speed system operating partition.
- the dividing unit is further configured to configure a storage attribute for each system operation partition.
- the storage attribute of the high-speed system operation partition includes any one or more of the following: an open cache feature, a trim feature, a drop feature, The packaging command feature and the context management feature;
- the storage attribute of the high-reliability and high-security system operating partition includes any one or more of the following: the storage medium is an enhanced storage medium, a closed cache characteristic, a reliable write characteristic, a reliable erase characteristic, and a reliable Trimming characteristics, data label characteristics, write protection characteristics, and device locking characteristics.
- the terminal further includes:
- a password setting unit configured to set an access password for the high reliability and high security system operation partition divided by the dividing unit.
- the terminal further includes:
- a password setting unit configured to set an access password for the high speed system operation partition divided by the dividing unit.
- each The system operating partitions each have an operating system.
- the EMMC is included in the terminal, and the storage medium of the EMMC is divided into at least two mutually independent system operation partitions.
- the terminal When the terminal is in the power-on state, only one of the system operation partitions is started, and only the startup is started.
- the system operates on the partition to access data, and there is no data interaction between the started system operation partition and other unopened system operation partitions, which avoids data interference caused by superimposing other partitions only in the user data storage area of one system operation partition. Leakage and other issues. Since the storage medium of an EMMC in the terminal is divided into at least two independent system operation partitions according to the predetermined setting of the partition register, the EMMC in the terminal can meet the different needs of the user, thereby saving cost and design. Simple and flexible.
- FIG. 1 is a schematic diagram of a EMMC partition structure in the prior art
- FIG. 2 is a schematic flow chart of a method for storing a partition of the present invention
- FIG. 3 is a schematic diagram of a EMMC partition structure of the present invention.
- FIG. 4 is a schematic flow chart of an operation section of a terminal startup system of the present invention.
- FIG. 5 is a schematic diagram of another process of operating a partitioning system of the terminal of the present invention.
- FIG. 6 is a schematic diagram of another process of operating a partitioning system of the terminal of the present invention.
- Figure 7 is a schematic diagram of an embodiment of a terminal of the present invention.
- Figure 8 is a schematic illustration of another embodiment of a terminal of the present invention.
- the invention provides a method and a terminal for storing a partition.
- the EMMC in the terminal can take into account different needs of users, save cost, and design is simple and flexible.
- an embodiment of a method for storing a partition of the present invention includes:
- Step 201 When the terminal containing the EMMC is in the power-on state, only the first system operation partition in at least two mutually independent system operation partitions is started, and there is no between the first system operation partition and other unopened system operation partitions. Data interaction;
- the first system operation partition may be a system operation partition selected by the user in at least two independent system operation partitions according to his own needs and wishes, or the user does not have
- the system operation partition can be a high-speed system operation partition, or a high-reliability high-security system operation partition.
- the EMMC may be only one EMMC in the terminal, and the EMMC serves as the memory of the terminal.
- the EMMC contains controllers and storage media.
- the controller is equivalent to the EMMC processor, and the corresponding software program is installed in the controller.
- the storage medium may be one or more pieces. When the storage medium is a plurality of pieces, the plurality of pieces of storage medium may form a storage array. Therefore, the storage medium mentioned below may refer to a piece of storage medium, or A storage array formed from a plurality of storage media.
- the controller has a partition register, the storage medium includes at least two mutually independent system operation partitions, and at least two independent system operation partitions are obtained by the controller dividing the storage medium of the EMMC according to a predetermined setting of the partition register.
- the user ie, the terminal manufacturer
- the partition register can be implemented, for example, for example, for example, : When partitioning is required, the user sets the value of the partition register to 1.
- the controller can
- the physical address of the storage medium divides the storage medium into at least two mutually independent system operation partitions. For example, the storage medium whose physical address is 0 to 10000 is divided into system operation partition 1, and the storage medium whose physical address is 10001 to 50000 is divided into The system operates partition 2, and after the partitioning is completed, the controller performs mapping of logical addresses to physical addresses.
- At least two types of mutually independent system operation partitions include at least one of the following: a high speed system operation partition, and a high reliability high security system operation partition. That is, the at least two mutually independent system operating partitions may be at least two high speed system operating partitions, or at least two high reliability high security system operating partitions, or at least one high speed system operating partition and at least one highly reliable high security system operating partition .
- the so-called independent that is, the data of each system operation partition is isolated from each other and does not interfere with each other.
- a high-speed system operating partition can guarantee data access rates, and the rate of accessing data in a high-speed system operating partition is higher than the rate of accessing data in a high-reliability, high-security system operating partition.
- High-speed system operating partitions can be used to meet the operational requirements of applications that require high-speed, efficient storage performance, such as Internet, gaming, video, etc., which can be stored in high-speed system operating partitions.
- High reliability and high security system operation partitions ensure the reliability and security of data access. Reliability It can mean that the data storage is accurate and non-redundant. Security can mean that the data is not easily leaked or stolen.
- the reliability and security of accessing data in a high-reliability and high-security system operating partition is higher than the reliability and security of accessing data in a high-speed system operating partition.
- Highly reliable, high-security system operating partitions can be used to meet the operational requirements of applications that require highly reliable, highly secure storage features, such as financial, payment, and other applications that can be stored in high-reliability, high-security system operating partitions.
- the controller divides the storage medium of the EMMC into two system operation partitions according to the setting of the partition register by the user, for example, the system operation partition 1 and the system operation partition 2 shown in FIG. 3, wherein the system The configuration register corresponding to the operation partition 1 is the configuration register A, and the configuration register corresponding to the system operation partition 2 is the configuration register B, and the user can realize the storage attribute of each system operation partition by setting the configuration register corresponding to each system operation partition. Configuration.
- the controller also has a Micro Controller Unit (MCU), and the MCU has corresponding storage ( For example, static random access memory, read-only memory, integrated random access memory, dynamic random access memory), the software program in the controller is installed in the storage of the MCU; the controller also has a storage medium control interface, the MCU according to the partition The setting of the register partitions the storage medium through the storage medium control interface, and the MCU receives the data access instruction sent by the processor of the terminal (the data access instruction needs to be parsed and processed by the EMMC protocol), according to the data access instruction and configuration The setting of the register accesses the data in the current system operating partition through the storage medium control interface.
- MCU Micro Controller Unit
- the controller also has a register for setting a boot partition, an encrypted partition, and a general purpose storage area, and the MCU divides the boot partition in each system operation partition according to the configuration of the registers through the storage medium control interface (such as Boot in FIG. 3).
- the area outside the area is the user data storage area.
- the controller also has a peripheral control interface, and a module for managing and maintaining the storage medium is connected to the storage medium control interface, and is not described in detail herein.
- the storage attributes of the high-speed system operation partition include one or more of the following: Cache On, Trim, Discard, Packed Commands, Context Management.
- the storage attributes of the high-reliability and high-security system operating partition include one or more of the following: the storage medium is an enhanced storage medium. (Enhanced Storage Media), Cache Off, Reliable Write, Secure Erase, Secure Trim, Data Tag, Write Protection (Write Protect), device lock feature (Device Lock), etc.
- both the configuration register A and the configuration register B may include a register group, and the user may set the register group included in the configuration register A to store and configure the system operation partition 1 through the register group included in the configuration register B. Make settings to store the system operation partition 2 for storage.
- the configuration register B includes a register group having a register for controlling the write characteristic. If the user wants to configure a reliable write characteristic for the system operation partition 2, the value of the register that controls the reliable write can be set to 1, and the register for controlling the reliable write can be controlled. Set to 1 to indicate that all data written to the system operating partition 2 must be written in accordance with the rules of reliable writing.
- the high reliability and high security system operating partition may have an access password, and the access password of the high reliability and high security system operating partition may be obtained by predetermined setting of a configuration register corresponding to the high reliability and high security system operating partition.
- the high speed system operation partition may also have an access password, and the access password of the high speed system operation partition may also be obtained by predetermined setting of a configuration register corresponding to the high speed system operation partition.
- Each system operating partition has its own operating system.
- partition configuration process can be as follows:
- Step one set the partition register. For example, setting the value of the partition register to 1 is regarded as a partition, and the partition is entered into step 2; setting the value of the partition register to 0 means that the partition is not partitioned, and the partition is not entered into step 3;
- Step 2 Set the configuration register corresponding to each system operation partition. If it is necessary to set one of the multiple operating partitions into a high-speed system operating partition, the configuration register corresponding to the operating partition of the system may be set, for example, the configuration register corresponding to the operating partition of the system is used to control the cache characteristic.
- the value of the register is set to 1 (that is, the cache feature is turned on for the system operation partition), and the value of the register for controlling the pruning property in the configuration register corresponding to the system operation partition is set to 1 (that is, the system operation partition has the trimming characteristic) If you need to set a system operation partition of multiple partitions to a highly reliable high security system operation partition, you can set the configuration register corresponding to the system operation partition, for example, the configuration register corresponding to the system operation partition.
- the value of the register used to control the write characteristics is set to 1 (ie all data needs to be reliably written to the operating partition of the system)
- the value of the register for controlling the erase characteristic in the configuration register corresponding to the operation partition is set to 1 (that is, the data of the system operation partition needs to be reliably erased).
- partitioning it is also possible to set one of the multiple operating partitions into a normal system operating partition, that is, to set the configuration register of the operating partition of the system to make it respond speed, reliability and security. Both are compromised.
- the partition mode there are at least two system operation partitions, and the system operation partition has one or more types, and the user can select the data access partition.
- Step 3 Set the configuration register of the entire system operation partition.
- the configuration register of the entire system operation partition can be set, so that the entire system operation partition becomes any one of several types of high speed, high reliability, high security, and common system operation partition.
- the non-partition mode there is only one system operation partition, and there is only one type. All data access can only be performed in this system operation partition.
- the partition of the storage medium can be set before the terminal containing the EMMC storage device is shipped from the factory, and cannot be changed subsequently. That is, for the terminal containing the EMMC storage device, whether the storage medium is partitioned or the number of partitions can be set before the terminal is shipped from the factory, if If the storage medium of the terminal is not partitioned before leaving the factory, the terminal remains in the non-partition mode, that is, the terminal has only one system operation partition; if the storage medium of the terminal is partitioned before leaving the factory, the terminal remains Partition mode, that is, the terminal includes at least two system operation partitions, and the number of partitions generally does not allow modification.
- the customer directly selects the system operation partition to be used (if the customer does not select, directly opens the default system operation partition), for example, the first system operation partition ( For example, if the physical address is 0 to 10000, the terminal only starts the first system operation partition, and there is no data interaction between the started system operation partition and other unopened system operation partitions.
- only starting the first system operation partition refers to only operating the operating system of the first system operation partition, and only operating on a storage medium with a physical address of 0 to 10000 (such as accessing data),
- the operating system of the other system operating partitions is not operated on the storage medium whose physical address is other (such as 10001 ⁇ 50000).
- the system operation partition without operation can be understood as the unopened state.
- the EMMC storage medium is divided into a high-speed system operating partition and a high-reliability high-security system operating partition, and the high-speed system operating partition is used to store applications that require high-speed, high-efficiency storage performance (such as Internet access, games).
- Highly reliable and high security system operating partitions are used to store applications that require reliable and secure data storage (eg, applications such as finance, payment, etc.).
- the startup process of the system operation partition may be as shown in FIG. 4, and the terminal is powered on or reset in step 401, and then step 402 is executed to start a central processing unit (CPU) to enter a system initialization phase.
- CPU central processing unit
- step 403 the controller of the EMMC is started.
- step 404 the user can select the system operation partition to be used. If the user selects the high-speed system operation partition, the process proceeds to step 405, and the operating system of the high-speed system operation partition is started, if the user selects If the high-reliability and high-security system operates the partition, proceed to step 406 to start the operating system of the high-reliability and high-security system operating partition. If the access password is set in advance for the high-reliability system operating partition, the operation of the high-reliability and high-security system operating partition is started. Before the system, the user is required to enter a preset access password.
- step 501 the terminal is powered on or reset, and then step 502 is executed to start the CPU and enter the system initialization phase, which needs to be installed in the high-speed system operation partition 1.
- Operating system 1 completes the high-speed storage attribute configuration, installs operating system 2 in high-speed system operation partition 2 and completes the configuration of high-speed storage attributes. Then, proceeding to step 503, the controller of the EMMC is started.
- step 504 the user can select the system operation partition to be used. If the user selects the high-speed system operation partition 1, the process proceeds to step 505, and the operating system of the high-speed system operation partition 1 is started. When the user selects the high speed system operation partition 2, the process proceeds to step 506 to start the operating system of the high speed system operation partition 2.
- step 601 the terminal is powered on or reset, and then step 602 is executed to start the CPU and enter the system initialization phase, which needs to operate in a highly reliable and high security system.
- Partition 1 installs operating system 1 and completes high-reliability and high-security storage attribute configuration.
- step 603 the controller of the EMMC is started, and in step 604, the user can select a system operation partition to be used, if the user selects high.
- step 605 the operating system of the high reliability and high security system operation partition 1.
- step 606 the process proceeds to step 606 to start the operation of the high reliability and high security system.
- Step 202 The terminal accesses data on the first system operation partition.
- the terminal When the data needs to be accessed, the terminal acquires the logical address of the data, maps the logical address to the physical address of the first system operation partition, and directly accesses the data on the first system operation partition.
- Different system operation partitions can be switched by restarting. For example, when the terminal is powered on, the customer chooses to start the first system operation partition. After a period of time, if the customer wants to use the second system operation partition, the terminal can be restarted. After rebooting, choose to open the second system operating partition.
- different system operation partitions can also perform work switching without restarting, for example, by software setting to control different system operation partitions for work switching.
- the EMMC is included in the terminal, and the storage medium of the EMMC is divided into at least two mutually independent system operation partitions.
- the terminal When the terminal is in the power-on state, only one of the system operation partitions is started, and only the startup is started. The data is accessed on the system operation partition, and there is no data interaction between the started system operation partition and other unopened system operation partitions, which avoids data interference and leakage caused by superimposing other partitions only in the user data storage area of one system operation partition. And other issues.
- the storage medium of an EMMC in the terminal is divided into at least two independent system operation partitions by the controller according to the predetermined setting of the partition register, an EMMC in the terminal can take into account different needs of the user, thereby saving cost and design. Simple and flexible.
- the terminal provided by the embodiment of the present invention includes an EMMC, where the EMMC includes a controller and a storage medium, and the controller has a partition register, and the storage medium includes at least two mutually independent system operation partitions, at least Two mutually independent system operation partitions are obtained by the controller dividing the storage medium of the EMMC according to a predetermined setting of the partition register.
- the terminal in this embodiment includes:
- a dividing unit 701 configured to divide the storage medium of the EMMC into at least two mutually independent system operating partitions
- the startup unit 702 is configured to start only the first system operation partition in the at least two mutually independent system operation partitions divided by the dividing unit 701 when the terminal is in the power-on state, and the first system operation There is no data interaction between the zone and other unopened system operation partitions;
- the processing unit 703 is configured to access data on the first system operation partition initiated by the startup unit 702.
- the terminal 700 may further include a password setting unit 704 for setting an access password for the high-reliability high-security system operation partition divided by the dividing unit 701.
- the password setting unit 704 is configured to set an access password for the high speed system operation partition divided by the dividing unit 701.
- the first system operation partition may be any one of the system operation partitions selected by the user in at least two mutually independent system operation partitions, or the default system if the user does not select any one of the system operation partitions.
- Operation partition the system operation partition can be a high-speed system operation partition, or a high-reliability high-security system operation partition.
- the EMMC there may be only one EMMC in the terminal, and the EMMC has a partition register, and the partition register is used to indicate whether to partition the storage medium.
- the value of the partition register can be set to 1, when the partition is not needed.
- the value of the partition register can be set to 0.
- the dividing unit 701 divides the storage medium of the EMMC into at least two mutually independent system operation partitions according to the setting of the partition register. For example, the storage medium with the physical address of 0 to 10000 is divided into the system operation partition 1 and the physical address is 10001 to 50000.
- the storage medium is divided into system operation partition 2.
- the types of at least two mutually independent system operating partitions include at least one of the following: a high speed system operating partition, a high reliability high security system operating partition. That is, the at least two mutually independent system operating partitions may be at least two high speed system operating partitions, or at least two high reliability high security system operating partitions, or at least one high speed system operating partition and at least one highly reliable high security system operating partition .
- the so-called independent that is, the data of each system operation partition is isolated from each other and does not interfere with each other.
- a high-speed system operating partition can guarantee data access rates, and the rate of accessing data in a high-speed system operating partition is higher than the rate of accessing data in a high-reliability, high-security system operating partition.
- High-speed system operating partitions can be used to meet the operational requirements of applications that require high-speed, efficient storage performance, such as Internet, gaming, video, etc., which can be stored in high-speed system operating partitions.
- High reliability and high security system operation partitions ensure the reliability and security of data access. Reliability can mean that data storage is accurate and non-redundant. Security can mean that data is not easily leaked or stolen. The reliability and security of accessing data in a high-reliability and high-security system operating partition is higher than the reliability and security of accessing data in a high-speed system operating partition. Highly reliable and high security system operating partitions can be used to meet the needs of high Applications that rely on high-security storage features, such as financial, payment, and other applications, can store these applications in high-reliability, high-security system operating partitions.
- the dividing unit 701 can perform storage configuration for each system operation partition.
- the storage attributes of the high-speed system operation partition include one or more of the following: Cache On, Trim, Discard, Packed Commands, Context Management.
- the storage attributes of the high-reliability and high-security system operating partition include one or more of the following: the storage medium is Enhanced Storage Media, Cache Off, Reliable Write, and reliable. Secure Erase, Secure Trim, Data Tag, Write Protect, Device Lock, etc.
- Each system operation partition has a corresponding configuration register, and the dividing unit 701 can configure each system operation partition according to the setting of the configuration register corresponding to each system operation partition to configure the system operation partition into a high-speed system operation partition or high reliability. High security system operating partition.
- the password setting unit 704 may further set an access password for the high-reliability high-security system operation partition divided by the dividing unit 701, or the password setting unit 704 may further set an access password for the high-speed system operation partition divided by the dividing unit 701.
- the partition of the storage medium can be set before the terminal containing the EMMC storage device is shipped from the factory, and cannot be changed subsequently. That is, for the terminal containing the EMMC storage device, whether the storage medium is partitioned or the number of partitions can be set before the terminal is shipped from the factory, if If the storage medium of the terminal is not partitioned before leaving the factory, the terminal remains in the non-partition mode, that is, the terminal has only one system operation partition; if the storage medium of the terminal is partitioned before leaving the factory, the terminal remains Partition mode, that is, the terminal includes at least two system operation partitions, and the number of partitions generally does not allow modification.
- the client directly selects the system operation partition to be used (if the client does not select, the startup unit 702 directly opens the default system operation partition), for example, the first system.
- the operating partition such as a storage medium having a physical address of 0 to 10000
- the booting unit 702 only starts the first system operating partition, and there is no data interaction between the activated system operating partition and other unopened system operating partitions. Specifically in the above example, only the first operation is started.
- the partitioning means that the starting unit 702 only starts the operating system of the first system operating partition, the processing unit 703 operates only on the storage medium whose physical address is 0-10000 (such as accessing data), and the starting unit 702 does not start other systems.
- the operating unit of the operating partition, the processing unit 703 does not operate on a storage medium whose physical address is other (such as 10001 ⁇ 50000), and the system operation partition that does not operate can be understood as an unopened state.
- the dividing unit 701 divides the EMMC storage medium into a high-speed system operating partition and a high-reliability high-security system operating partition, and the high-speed system operating partition is used to store applications requiring high-speed, high-efficiency storage performance (for example, Internet, games and other applications), high-reliability and high-security system operating partitions are used to store applications that require reliable and secure data storage (such as financial, payment, etc.).
- the system initialization phase you need to install the operating system 1 in the high-speed system operating partition and complete the high-speed storage attribute configuration, install the operating system 2 in the high-reliability and high-security system operating partition and complete the configuration of high-reliability and high-security storage attributes.
- the startup unit 702 only starts the operating system of the system operation partition that the user selects to use.
- the dividing unit 701 divides the storage medium of the EMMC into two high-speed system operating partitions (high-speed system operating partition 1 and high-speed system operating partition 2) to facilitate the terminal to be used by different users, for example, downloading different members of the family. Applications are stored in different high-speed system operating partitions.
- the system initialization phase it is necessary to install the operating system 1 in the high-speed system operation partition 1 and complete the high-speed storage attribute configuration, install the operating system 2 in the high-speed system operation partition 2 and complete the configuration of the high-speed storage attribute.
- the startup unit 702 only starts the operating system of the system operation partition that the user selects to use.
- the dividing unit 701 divides the storage medium of the EMMC into two high-reliability and high-security system operating partitions (high-reliability high-security system operating partition 1 and high-reliability high-security system operating partition 2) to facilitate the terminal to be used by different users.
- applications downloaded by different members of the home can be stored in different high-reliability and high-security system operating partitions.
- the system initialization phase it is necessary to install the operating system 1 in the high-reliability and high-security system operation partition 1 and complete the storage configuration of high reliability and high security.
- the configuration of the storage properties After the terminal is powered on, the user can select the system operation partition to be used, and then the startup unit 702 only starts the operating system of the system operation partition that the user selects to use.
- Processing unit 703 accesses data on a system operating partition initiated by boot unit 702. Ie when needed When accessing data, processing unit 703 obtains the logical address of the data, maps the logical address to the physical address of the activated system operating partition, and directly accesses the data on the operating partition of the system.
- Different system operation partitions can be switched by restarting. For example, when the terminal is powered on, the customer chooses to start the first system operation partition. After a period of time, if the customer wants to use the second system operation partition, the terminal can be restarted. After rebooting, choose to open the second system operating partition.
- different system operation partitions can also perform work switching without restarting, for example, by software setting to control different system operation partitions for work switching.
- the terminal includes an EMMC, and the dividing unit divides the storage medium of the EMMC into at least two mutually independent system operation partitions.
- the startup unit starts only one of the system operation partitions.
- the processing unit only accesses data on the booted system operating partition, and there is no data interaction between the booted system operating partition and other unopened system operating partitions, avoiding superimposing other user data storage areas in only one system operating partition. Data interference, leakage, etc. caused by the partition. Since the storage medium of an EMMC in the terminal is divided into at least two independent system operation partitions according to the predetermined setting of the partition register, an EMMC in the terminal can take into account different needs of the user, thereby saving cost and design. Simple and flexible.
- the terminal 800 includes:
- a processor 810 a communications interface 820, a memory 830, and a bus 840.
- the processor 810, the communication interface 820, and the memory 830 complete communication with each other via the bus 840.
- the communication interface 820 is configured to communicate with other devices.
- the processor 810 is configured to execute the program 832.
- program 832 can include program code, the program code including computer operating instructions.
- the processor 810 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
- CPU central processing unit
- ASIC Application Specific Integrated Circuit
- the memory 830 is configured to store the program 832.
- the memory 830 may be the EMMC described in the foregoing embodiment, and the EMMC includes a controller and a storage medium, and the controller and the processing
- the device 810 interacts with the data to be read by the processor 810 from the storage medium and sends it to the processor, and stores the data to be stored by the processor on the corresponding storage medium.
- the controller has a partition register, the storage medium includes at least two mutually independent system operation partitions, and at least two independent system operation partitions are controllers under the control of the processor 810, and the EMMC storage is performed according to a predetermined setting of the partition registers. The media is divided.
- the processor 810 executes the program 832 stored in the memory 830 to implement the following functions:
- the types of at least two mutually independent system operation partitions include at least one of the following: a high speed system operation partition, a high reliability high security system operation partition;
- the rate of accessing data in the high-speed system operating partition is higher than the rate of accessing data in the high-reliability and high-security system operating partition;
- the reliability and security of accessing data in a high-reliability and high-security system operating partition is higher than the reliability and security of accessing data in a high-speed system operating partition.
- the processor 810 is further configured to configure storage attributes for each system operation partition.
- the storage attributes of the high-speed system operation partition include any one or more of the following: an open cache feature, a trim feature, a drop feature, a package command feature, and a context management feature; and the storage attribute of the high-reliability high-security system operation partition includes any of the following One or more of the storage mediums are enhanced storage media, off-cache characteristics, reliable write characteristics, reliable erase characteristics, reliable trim characteristics, data label characteristics, write protection characteristics, and device lock characteristics.
- the processor 810 is further configured to set an access password for the high reliability high security system operating partition.
- the processor 810 is further configured to set an access password for the high speed system operation partition.
- each system operating partition has its own operating system.
- the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Can be based on actual Some or all of the modules need to be selected to achieve the purpose of the solution of the embodiment.
- the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized.
- the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on.
- functions performed by computer programs can be easily implemented with the corresponding hardware, and the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc.
- software program implementation is a better implementation in more cases.
- the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
- U disk mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
- a computer device may be A personal computer, server, or network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Mathematical Physics (AREA)
- Storage Device Security (AREA)
Abstract
一种存储分区的方法及终端,存储分区的方法应用于包含有EMMC的终端,EMMC包括控制器与存储介质,控制器中具有分区寄存器,存储介质包含至少两个相互独立的***操作分区,至少两个相互独立的***操作分区是控制器根据分区寄存器的预定设置将EMMC的存储介质进行划分得到的;存储分区的方法包括:当终端处于上电开启状态时,仅启动至少两个相互独立的***操作分区中的第一***操作分区,第一***操作分区与其他未开启的***操作分区之间无数据交互(201);终端在第一***操作分区上存取数据(202)。终端内具有一个EMMC即可满足用户的不同需求,节约了成本,设计简单灵活。
Description
本申请要求于2015年4月3日提交中国专利局、申请号为201510158197.6、发明名称为“一种存储分区的方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及嵌入式多媒体卡(Embedded Multi Media Card,EMMC)存储技术领域,具体涉及一种存储分区的方法及终端。
EMMC是目前智能手机、平板电脑等终端中使用最广泛的存储器件,用于存储手机、平板电脑中的软件、数据等,例如存储操作***软件、应用软件、图片、文档等,EMMC的地位相当于计算机中的硬盘。EMMC的功能与性能遵循国际标准规范JESD84,规范中规定了很多存储特性,包括响应速度、数据安全、存储可靠性等各方面,但响应速度、安全、可靠性相互之间有时是有冲突的,例如开启缓存功能可以提高读写速度,但会带来数据不一致性的问题;再如为了保证数据可靠写入EMMC,需要采取很多冗余、校验等措施,这却要牺牲响应速度。因此,在单一***里面通常无法做到既有最高的响应速度,又有最可靠、最安全的保护,当前常用的解决方式都是折中,对响应速度、可靠性、安全均做了一定的让步。
EMMC内部包括控制器及存储介质。控制器负责对内对外的控制与通讯,对内控制器主要是控制对存储介质的读、写、擦除操作、地址空间管理等,对外控制器主要与主机通讯,接收并响应主机的命令,实现将主机要存的数据存到对应的存储介质上、将主机要读取的数据从对应的存储介质上取出并发送给主机。存储介质一般是指Nand Flash,存储介质一般会有多片,多片存储介质形成存储阵列。
按照JESD84规范,目前一个EMMC内部的所有存储介质构成一个***操作分区,所谓***操作分区指的是包含启动分区、加密分区、通用目的存储区及用户数据存储区的存储区域,该存储区域能够在含有EMMC的设备启动或运
行的过程中,独立地实现所有的***数据和用户数据的存取。如图1所示,一个***操作分区由Boot area、RPMB area、GP area及User data area共同组成。其中,图1中Boot area 1和Boot area 2是该***操作分区内的启动分区,用于存储***启动代码;RPMB area是该***操作分区内的加密分区,用于存储对安全性要求较高的***数据;GP area 1~4是该***操作分区内的通用目的存储区,用于存储手机、平板电脑厂家的一些出厂数据、关键***数据等;User data area是该***操作分区内的用户数据存储区,用于存储用户的应用程序(application,APP)、图片、视频、文档等数据,User data area是对手机、平板电脑用户可见的存储空间,同时在User data area内部也能指定一定区域开启特殊的保护措施,即图1中的Enhanced user data area,Enhanced user data area的功能同User data area,但存储介质可靠性更高,数据存储更可靠。
这种仅有一个***操作分区,通过在该***操作分区的User data area内部叠加分区以形成不同存储分区的方法在一定程度上缓解了响应速度、可靠性、安全的矛盾。但这种在User data area内部叠加分区的方法,不同分区之间可能会导致病毒的相互感染以及可能会出现不同分区的数据相互泄露的问题,且随着手机、平板电脑应用场景越来越复杂,应用差异性也越来越大,现有的分区方法使得具有一个EMMC的终端无法兼具高速和高可靠高安全的性能要求,需要在终端内设置两片以上的独立存储芯片(例如两个EMMC)才能兼顾用户的不同需求,这样会导致单板设计更复杂,成本更高。
发明内容
有鉴于此,本发明提供了一种存储分区的方法及终端,使得具有一个EMMC的终端能够兼顾用户的不同需求,节约成本,设计简单灵活。
第一方面,本发明实施例提供了一种存储分区的方法,所述存储分区的方法应用于包含有EMMC的终端,所述EMMC包括控制器与存储介质,所述控制器中具有分区寄存器,所述存储介质包含至少两个相互独立的***操作分区,所述至少两个相互独立的***操作分区是所述控制器根据所述分区寄存器的预定设置将所述EMMC的存储介质进行划分得到的;所述方法包括:
当所述终端处于上电开启状态时,仅启动所述至少两个相互独立的***操
作分区中的第一***操作分区,所述第一***操作分区与其他未开启的***操作分区之间无数据交互;
所述终端在所述第一***操作分区上存取数据。
结合第一方面,在第一方面的第一种实施方式中,所述至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区;
其中,在所述高速***操作分区存取数据的速率高于在所述高可靠高安全***操作分区存取数据的速率;
在所述高可靠高安全***操作分区存取数据的可靠性及安全性高于在所述高速***操作分区存取数据的可靠性及安全性。
结合第一方面的第一种实施方式,在第一方面的第二种实施方式中,所述控制器中还具有配置寄存器,所述方法还包括:
根据每个***操作分区对应的配置寄存器的预定设置为每个***操作分区配置存储属性。
结合第一方面的第二种实施方式,在第一方面的第三种实施方式中,所述高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性、修剪特性、抛弃特性、打包命令特性及上下文管理特性;所述高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质、关缓存特性、可靠写特性、可靠擦除特性、可靠修剪特性、数据标签特性、写保护特性及器件加锁特性。
结合第一方面的第一种实施方式,在第一方面的第四种实施方式中,所述控制器中还具有配置寄存器,所述方法还包括:
根据所述高可靠高安全***操作分区对应的配置寄存器的预定设置为所述高可靠高安全***操作分区设置访问密码。
结合第一方面的第一种实施方式,在第一方面的第五种实施方式中,所述控制器中还具有配置寄存器,所述方法还包括:
根据所述高速***操作分区对应的配置寄存器的预定设置为所述高速***操作分区设置访问密码。
结合第一方面,或第一方面的第一种、或第二种、或第三种、或第四种、
或第五种实施方式,在第一方面的第六种实施方式中,每个***操作分区各自都有一个操作***。
结合第一方面,或第一方面的第一种、或第二种、或第三种、或第四种、或第五种实施方式,在第一方面的第七种实施方式中,所述方法还包括:
重启所述终端以对不同的***操作分区进行工作切换。
第二方面,本发明实施例提供了一种终端,所述终端包含有嵌入式多媒体卡EMMC,所述终端包括:
划分单元,用于将所述EMMC的存储介质划分为至少两个相互独立的***操作分区;
启动单元,用于在所述终端处于上电开启状态时,仅启动所述划分单元划分的所述至少两个相互独立的***操作分区中的第一***操作分区,所述第一***操作分区与其他未开启的***操作分区之间无数据交互;
处理单元,用于在所述启动单元启动的所述第一***操作分区上存取数据。
结合第二方面,在第二方面的第一种实施方式中,所述至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区;
其中,在所述高速***操作分区存取数据的速率高于在所述高可靠高安全***操作分区存取数据的速率;
在所述高可靠高安全***操作分区存取数据的可靠性及安全性高于在所述高速***操作分区存取数据的可靠性及安全性。
结合第二方面的第一种实施方式,在第二方面的第二种实施方式中,所述划分单元还用于,为每个***操作分区配置存储属性。
结合第二方面的第二种实施方式,在第二方面的第三种实施方式中,所述高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性、修剪特性、抛弃特性、打包命令特性及上下文管理特性;所述高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质、关缓存特性、可靠写特性、可靠擦除特性、可靠修剪特性、数据标签特性、写保护特性及器件加锁特性。
结合第二方面的第一种实施方式,在第二方面的第四种实施方式中,所述终端还包括:
密码设置单元,用于为所述划分单元划分的所述高可靠高安全***操作分区设置访问密码。
结合第二方面的第一种实施方式,在第二方面的第五种实施方式中,所述终端还包括:
密码设置单元,用于为所述划分单元划分的所述高速***操作分区设置访问密码。
结合第二方面,或第二方面的第一种、或第二种、或第三种、或第四种、或第五种实施方式,在第二方面的第六种实施方式中,每个***操作分区各自都有一个操作***。
结合第二方面,或第二方面的第一种、或第二种、或第三种、或第四种、或第五种实施方式,在第二方面的第七种实施方式中,不同的***操作分区通过重启进行工作切换。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明实施例中,终端内包含EMMC,而EMMC的存储介质被划分成了至少两个相互独立的***操作分区,当终端处于上电开启状态时,仅启动其中一个***操作分区,仅在启动的***操作分区上存取数据,且启动的***操作分区与其他未开启的***操作分区之间无数据交互,避免了仅在一个***操作分区的用户数据存储区叠加其他分区产生的数据干扰、泄露等问题。由于终端内一个EMMC的存储介质被控制器按照分区寄存器的预定设置划分成了至少两个相互独立的***操作分区,因而,终端内具有一个EMMC即可兼顾用户的不同需求,节约了成本,设计简单灵活。
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,还可以如这些附图获得其他的附图。
图1是现有技术中EMMC分区结构示意图;
图2是本发明存储分区的方法一个流程示意图;
图3是本发明EMMC分区结构示意图;
图4是本发明终端启动***操作分区的一个流程示意图;
图5是本发明终端启动***操作分区的另一流程示意图;
图6是本发明终端启动***操作分区的另一流程示意图;
图7是本发明终端的一个实施例示意图;
图8是本发明终端的另一实施例示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员所获得的所有其他实施例,都属于本发明保护的范围。
现有技术中,当终端内具有一个EMMC时,该EMMC内的所有存储介质构成一个***操作分区,所有的数据存取均在该***操作分区进行。但是随着应用的场景的复杂度的提高和应用间差异的增大,按照现有的这种存储分区方式,终端内具有一个EMMC已无法兼顾用户的不同需求了。例如,所有的应用均在一个***操作分区内存储,不同应用对存储特性的需求无法兼顾,合法应用极易被非法应用、病毒软件所截获,造成信息泄露,家庭中不同成员下载的应用也只能在同一***操作分区内存储,无法实现信息隔离与隐私保护。
本发明提供了一种存储分区的方法及终端,终端内具有一个EMMC即可兼顾用户的不同需求,节约成本,设计简单灵活。
请参阅图2,本发明存储分区的方法一个实施例包括:
步骤201、当含有EMMC的终端处于上电开启状态时,仅启动至少两个相互独立的***操作分区中的第一***操作分区,第一***操作分区与其他未开启的***操作分区之间无数据交互;
具体实现中,第一***操作分区可以是用户根据自己的需求和意愿在至少两个相互独立的***操作分区中所选出的一个***操作分区,或者是在用户没
有选择任意一个***操作分区的情况下,默认的***操作分区,该***操作分区可以是高速***操作分区,也可以是高可靠高安全***操作分区。
本实施例中,终端内可只有一个EMMC,EMMC作为终端的存储器。EMMC包含控制器及存储介质。控制器相当于EMMC的处理器,控制器内安装有相应的软件程序。存储介质可以为Nand Flash,存储介质可以有一片或多片,当存储介质为多片时,多片存储介质可以形成存储阵列,因此,下文所提到的存储介质可以指一片存储介质,也可以指由多片存储介质形成的存储阵列。
控制器内具有分区寄存器,存储介质包含至少两个相互独立的***操作分区,至少两个相互独立的***操作分区是控制器根据分区寄存器的预定设置将EMMC的存储介质进行划分得到。具体实现中,在终端生产时,用户(即终端生产厂商)可以根据市场需求确定是否需要对EMMC的存储介质进行分区,如需要对EMMC的存储介质进行分区,则可通过设置分区寄存器实现,例如:需要分区的时候,用户将分区寄存器的值设置为1,不需要分区的时候,用户将分区寄存器的值设置为0(反之亦可);当分区寄存器的值为1时,控制器可根据存储介质的物理地址将存储介质划分为至少两个相互独立的***操作分区,例如将物理地址为0~10000的存储介质划分为***操作分区1,将物理地址为10001~50000的存储介质划分为***操作分区2,划分完成之后,控制器做逻辑地址到物理地址的映射。
具体实现中,至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区。即至少两个相互独立的***操作分区可以是至少两个高速***操作分区,或至少两个高可靠高安全***操作分区,或者是至少一个高速***操作分区和至少一个高可靠高安全***操作分区。所谓相互独立,即各个***操作分区的数据相互隔离,互不干扰。
高速***操作分区能够保证数据存取速率,在高速***操作分区存取数据的速率高于在高可靠高安全***操作分区存取数据的速率。高速***操作分区可用于满足需要高速、高效存储性能的应用软件的运行要求,例如上网、游戏、视频等应用,可以将这些应用存储在高速***操作分区。
高可靠高安全***操作分区能够保证数据存取的可靠性及安全性。可靠性
可以指数据存储准确无冗余,安全性可以指数据不易泄露或被窃取。在高可靠高安全***操作分区存取数据的可靠性及安全性高于在高速***操作分区存取数据的可靠性及安全性。高可靠高安全***操作分区可用于满足需要高可靠、高安全存储特性的应用软件的运行要求,例如金融、支付等应用,可以将这些应用存储在高可靠高安全***操作分区。
在一个具体的实施例中,若控制器根据用户对分区寄存器的设置将EMMC的存储介质划分为了两个***操作分区,例如图3所示的***操作分区1和***操作分区2,其中,***操作分区1对应的配置寄存器为配置寄存器A,***操作分区2对应的配置寄存器为配置寄存器B,则用户可通过设置每个***操作分区对应的配置寄存器实现对每个***操作分区的存储属性的配置。
需要说明的是,图3中只是画出了控制器中具有的分区寄存器和配置寄存器,在实际应用中,控制器内还具有微控制单元(Micro Controller Unit,MCU),MCU具有相应的存储(例如静态随机存取存储器,只读内存,集成随机存储器,动态随机存取存储器),控制器内的软件程序即安装在MCU具有的存储中;控制器内还具有存储介质控制接口,MCU根据分区寄存器的设置通过存储介质控制接口对存储介质进行分区,MCU接收到终端的处理器发送的数据存取指令(该数据存取指令需经EMMC协议解析与处理)时,根据数据存取指令及配置寄存器的设置通过存储介质控制接口在当前***操作分区对数据进行存取处理。另外控制器内还具有用于设置启动分区、加密分区、通用目的存储区的寄存器,MCU根据这些寄存器的配置通过存储介质控制接口在每个***操作分区内划分启动分区(如图3中的Boot area 1、Boot area 2),加密分区(如图3中的RPMB area 1、RPMB area 1),通用目的存储区(如图3中的GP area 1a~2b),每个***操作分区内除这些区域以外的区域为用户数据存储区。另外,控制器内还具有***控制接口,与存储介质控制接口连接的还有用于对存储介质进行管理和维护的模块等,此处不再详细描述。
高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性(Cache On)、修剪特性(Trim)、抛弃特性(Discard)、打包命令特性(Packed Commands)、上下文管理特性(Context Management)等;高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质
(Enhanced Storage Media)、关缓存特性(Cache Off)、可靠写特性(Reliable Write)、可靠擦除特性(Secure Erase)、可靠修剪特性(Secure Trim)、数据标签特性(Data Tag)、写保护特性(Write Protect)、器件加锁特性(Device Lock)等。
具体实现中,配置寄存器A及配置寄存器B中都可以包括寄存器组,用户可对配置寄存器A包括的寄存器组进行设置来对***操作分区1进行存储配置,通过对配置寄存器B包括的寄存器组中进行设置来对***操作分区2进行存储配置。例如配置寄存器B包括的寄存器组中具有用于控制写特性的寄存器,如果用户想为***操作分区2配置可靠写特性,则可将控制可靠写的寄存器的值设置为1,控制可靠写的寄存器设置为1表示所有写入***操作分区2的数据都要按照可靠写的规则写入。
另外,高可靠高安全***操作分区可以具有访问密码,高可靠高安全***操作分区具有的访问密码可以是通过对高可靠高安全***操作分区对应的配置寄存器进行预定设置得到。
高速***操作分区也可以具有访问密码,高速***操作分区具有的访问密码也可以是通过对高速***操作分区对应的配置寄存器进行预定设置得到。
每个***操作分区各自都有一个操作***。
具体实现中,分区配置流程可如下:
步骤一,设置分区寄存器。例如将分区寄存器的值设置为1即视为分区,分区进入步骤二;将分区寄存器的值设置为0即视为不分区,不分区进入步骤三;
步骤二,设置每个***操作分区对应的配置寄存器。如果需要将多个分区中的某个***操作分区设置成高速***操作分区,则可对该***操作分区对应的配置寄存器进行设置,例如将该***操作分区对应的配置寄存器中用于控制缓存特性的寄存器的值设置为1(即对该***操作分区打开缓存特性)、将该***操作分区对应的配置寄存器中用于控制修剪特性的寄存器的值设置为1(即该***操作分区具有修剪特性)等;如果需要将多个分区中的某个***操作分区设置成高可靠高安全***操作分区,则可对该***操作分区对应的配置寄存器进行设置,例如将该***操作分区对应的配置寄存器中用于控制写特性的寄存器的值设置为1(即所有数据需要可靠写入该***操作分区),将该系
统操作分区对应的配置寄存器中用于控制擦除特性的寄存器的值设置为1(即该***操作分区的数据需要可靠擦除)等。另外,在分区的情况下,还可以将多个分区中的某个***操作分区设置成普通***操作分区,即对该***操作分区的配置寄存器进行设置,使其响应速度、可靠性及安全性均折中。分区的模式下,***操作分区至少有两个,***操作分区的类型有一种或多种,用户可选择数据存取的分区。
步骤三,设置整个***操作分区的配置寄存器。在不分区的情况下,可以对整个***操作分区的配置寄存器进行设置,使整个***操作分区成为高速、高可靠高安全、普通***操作分区这几个类型中的任意一种。不分区的模式下,***操作分区只有一个,且类型只有一种,所有数据的存取只能在这一个***操作分区进行。
存储介质的分区可在含有EMMC存储器件的终端出厂前完成设置,后续不可更改,即对于含有EMMC存储器件的终端,其存储介质是否分区及分区的数量均可在该终端出厂之前设置好,如果在出厂之前对该终端的存储介质不进行分区,则该终端一直保持不分区模式,即该终端只有一个***操作分区;如果在出厂之前对该终端的存储介质进行了分区,则该终端一直保持分区模式,即该终端包括至少两个***操作分区,且分区的数量通常不允许进行修改。
对于在出厂前做了分区的终端,当终端处于上电开启状态时,客户直接选择需要使用的***操作分区(若客户没有选择,则直接开启默认的***操作分区)例如第一***操作分区(如物理地址为0~10000的存储介质),终端仅启动第一***操作分区,已启动的***操作分区与其他未开启的***操作分区之间无数据交互。具体在上面的例子中,仅启动第一***操作分区指的是仅启动第一***操作分区的操作***,仅在物理地址为0~10000的存储介质上进行操作(如存取数据),不启动其他***操作分区的操作***,不在物理地址为其他(如10001~50000)的存储介质上进行操作,没有进行操作的***操作分区即可以理解为未开启状态。
在分区的模式下,例如将EMMC的存储介质划分成了一个高速***操作分区和一个高可靠高安全***操作分区,高速***操作分区用于存储需要高速、高效存储性能的应用(例如上网,游戏等应用),高可靠高安全***操作分区用于存储需要保证数据存储可靠、安全的应用(例如金融、支付等应用)。
在这种情况下,***操作分区的启动流程可如图4所示,在步骤401终端上电或复位,然后执行步骤402启动中央处理器(Central Processing Unit,CPU),进入***初始化阶段,该阶段需要在高速***操作分区安装操作***1并完成高速的存储属性配置,在高可靠高安全***操作分区安装操作***2并完成高可靠高安全的存储属性的配置。然后进入步骤403,启动EMMC的控制器,在步骤404可让用户选择需要使用的***操作分区,若用户选择高速***操作分区,则进入步骤405,启动高速***操作分区的操作***,若用户选择高可靠高安全***操作分区,则进入步骤406,启动高可靠高安全***操作分区的操作***,如果预先对高可靠***操作分区设置了访问密码,则在启动高可靠高安全***操作分区的操作***之前,需要用户输入预设的访问密码。
或者将EMMC的存储介质划分成了两个高速***操作分区(高速***操作分区1及高速***操作分区2),以方便终端给不同的用户使用,例如可将家庭中不同成员下载的应用存储在不同的高速***操作分区。在这种情况下,***操作分区的启动流程可如图5所示,在步骤501终端上电或复位,然后执行步骤502启动CPU,进入***初始化阶段,该阶段需要在高速***操作分区1安装操作***1并完成高速的存储属性配置,在高速***操作分区2安装操作***2并完成高速的存储属性的配置。然后进入步骤503,启动EMMC的控制器,在步骤504可让用户选择需要使用的***操作分区,若用户选择高速***操作分区1,则进入步骤505,启动高速***操作分区1的操作***,若用户选择高速***操作分区2,则进入步骤506,启动高速***操作分区2的操作***。
或者将EMMC的存储介质划分成了两个高可靠高安全***操作分区(高可靠高安全***操作分区1及高可靠高安全***操作分区2),以方便终端给不同的用户使用,例如可将家庭中不同成员下载的应用存储在不同的高可靠高安全***操作分区。在这种情况下,***操作分区的启动流程可如图6所示,在步骤601终端上电或复位,然后执行步骤602启动CPU,进入***初始化阶段,该阶段需要在高可靠高安全***操作分区1安装操作***1并完成高可靠高安全的存储属性配置,在高可靠高安全***操作分区2安装操作***2并完成高可靠高安全的存储属性的配置。然后进入步骤603,启动EMMC的控制器,在步骤604可让用户选择需要使用的***操作分区,若用户选择高可
靠高安全***操作分区1,则进入步骤605,启动高可靠高安全***操作分区1的操作***,若用户选择高可靠高安全***操作分区2,则进入步骤606,启动高可靠高安全***操作分区2的操作***,如果预先对两个高可靠高安全***操作分区设置了访问密码,则启动对应高可靠高安全***操作分区的操作***之前,需要用户输入预设的访问密码。
步骤202、终端在第一***操作分区上存取数据。
当需要存取数据时,终端获取数据的逻辑地址,将该逻辑地址映射到第一***操作分区的物理地址,直接在第一***操作分区上存取数据。
不同的***操作分区可通过重启进行工作切换,例如终端上电开启时,客户选择了启动第一***操作分区,一段时间后,若客户想使用第二***操作分区,则可重启终端,在终端重启之后,选择开启第二***操作分区。当然,不同***操作分区也可不通过重启进行工作切换,例如通过软件设置来控制不同***操作分区进行工作切换。
本实施例中,终端内包含EMMC,而EMMC的存储介质被划分成了至少两个相互独立的***操作分区,当终端处于上电开启状态时,仅启动其中一个***操作分区,仅在启动的***操作分区上存取数据,且启动的***操作分区与其他未开启的***操作分区之间无数据交互,避免了仅在一个***操作分区的用户数据存储区叠加其他分区产生的数据干扰、泄露等问题。由于终端内一个EMMC的存储介质被控制器按照分区寄存器的预定设置划分成了至少两个相互独立的***操作分区,因而,终端内的一个EMMC即可兼顾用户的不同需求,节约了成本,设计简单灵活。
下面介绍本发明实施例提供的终端,本发明实施例提供的终端包含有EMMC,EMMC包括控制器和存储介质,控制器中具有分区寄存器,存储介质包含至少两个相互独立的***操作分区,至少两个相互独立的***操作分区是控制器根据分区寄存器的预定设置将EMMC的存储介质进行划分得到的。请参阅图7,本实施例的终端包括:
划分单元701,用于将EMMC的存储介质划分为至少两个相互独立的***操作分区;
启动单元702,用于在终端处于上电开启状态时,仅启动划分单元701划分的至少两个相互独立的***操作分区中的第一***操作分区,第一***操作分
区与其他未开启的***操作分区之间无数据交互;
处理单元703,用于在启动单元702启动的第一***操作分区上存取数据。
另外,终端700还可以包括密码设置单元704,密码设置单元704用于为划分单元701划分的高可靠高安全***操作分区设置访问密码。
或者密码设置单元704用于为划分单元701划分的高速***操作分区设置访问密码。
具体实现中,第一***操作分区可以是用户在至少两个相互独立的***操作分区中所选的任意一个***操作分区,或者是在用户没有选择任意一个***操作分区的情况下,默认的***操作分区,该***操作分区可以是高速***操作分区,也可以是高可靠高安全***操作分区。
具体实现中,终端内可只有一个EMMC,EMMC内具有分区寄存器,分区寄存器用于指示是否对存储介质进行分区,例如:需要分区的时候,分区寄存器的值可设置为1,不需要分区的时候,分区寄存器的值可设置为0。划分单元701根据分区寄存器的设置将EMMC的存储介质划分为至少两个相互独立的***操作分区,例如将物理地址为0~10000的存储介质划分为***操作分区1,将物理地址为10001~50000的存储介质划分为***操作分区2。
至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区。即至少两个相互独立的***操作分区可以是至少两个高速***操作分区,或至少两个高可靠高安全***操作分区,或者是至少一个高速***操作分区和至少一个高可靠高安全***操作分区。所谓相互独立,即各个***操作分区的数据相互隔离,互不干扰。
高速***操作分区能够保证数据存取速率,在高速***操作分区存取数据的速率高于在高可靠高安全***操作分区存取数据的速率。高速***操作分区可用于满足需要高速、高效存储性能的应用软件的运行要求,例如上网、游戏、视频等应用,可以将这些应用存储在高速***操作分区。
高可靠高安全***操作分区能够保证数据存取的可靠性及安全性。可靠性可以指数据存储准确无冗余,安全性可以指数据不易泄露或被窃取。在高可靠高安全***操作分区存取数据的可靠性及安全性高于在高速***操作分区存取数据的可靠性及安全性。高可靠高安全***操作分区可用于满足需要高可
靠、高安全存储特性的应用软件的运行要求,例如金融、支付等应用,可以将这些应用存储在高可靠高安全***操作分区。
在将EMMC的存储介质划分为至少两个相互独立的***操作分区之后,划分单元701可对每个***操作分区进行存储配置。
高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性(Cache On)、修剪特性(Trim)、抛弃特性(Discard)、打包命令特性(Packed Commands)、上下文管理特性(Context Management)等;高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质(Enhanced Storage Media)、关缓存特性(Cache Off)、可靠写特性(Reliable Write)、可靠擦除特性(Secure Erase)、可靠修剪特性(Secure Trim)、数据标签特性(Data Tag)、写保护特性(Write Protect)、器件加锁特性(Device Lock)等。
每个***操作分区具有对应的配置寄存器,划分单元701可根据每个***操作分区对应的配置寄存器的设置对每个***操作分区进行配置,以将***操作分区配置成高速***操作分区或高可靠高安全***操作分区。另外,密码设置单元704还可以为划分单元701划分的高可靠高安全***操作分区设置访问密码,或者密码设置单元704还可以为划分单元701划分的高速***操作分区设置访问密码。
存储介质的分区可在含有EMMC存储器件的终端出厂前完成设置,后续不可更改,即对于含有EMMC存储器件的终端,其存储介质是否分区及分区的数量均可在该终端出厂之前设置好,如果在出厂之前对该终端的存储介质不进行分区,则该终端一直保持不分区模式,即该终端只有一个***操作分区;如果在出厂之前对该终端的存储介质进行了分区,则该终端一直保持分区模式,即该终端包括至少两个***操作分区,且分区的数量通常不允许进行修改。
对于在出厂前做了分区的终端,当终端处于上电开启状态时,客户直接选择需要使用的***操作分区(若客户没有选择,则启动单元702直接开启默认的***操作分区)例如第一***操作分区(如物理地址为0~10000的存储介质),启动单元702仅启动第一***操作分区,已启动的***操作分区与其他未开启的***操作分区之间无数据交互。具体在上面的例子中,仅启动第一操
作分区指的是启动单元702仅启动第一***操作分区的操作***,处理单元703仅在物理地址为0~10000的存储介质上进行操作(如存取数据),启动单元702不启动其他***操作分区的操作***,处理单元703不在物理地址为其他(如10001~50000)的存储介质上进行操作,没有进行操作的***操作分区即可以理解为未开启状态。
在分区的模式下,例如划分单元701将EMMC的存储介质划分成了一个高速***操作分区和一个高可靠高安全***操作分区,高速***操作分区用于存储需要高速、高效存储性能的应用(例如上网,游戏等应用),高可靠高安全***操作分区用于存储需要保证数据存储可靠、安全的应用(例如金融、支付等应用)。在***初始化阶段,需要在高速***操作分区安装操作***1并完成高速的存储属性配置,在高可靠高安全***操作分区安装操作***2并完成高可靠高安全的存储属性的配置。当终端上电开启后,可让用户选择需要使用的***操作分区,然后启动单元702仅启动用户选择的需要使用的***操作分区的操作***。
或者划分单元701将EMMC的存储介质划分成了两个高速***操作分区(高速***操作分区1及高速***操作分区2),以方便终端给不同的用户使用,例如可将家庭中不同成员下载的应用存储在不同的高速***操作分区。在***初始化阶段,需要在高速***操作分区1安装操作***1并完成高速的存储属性配置,在高速***操作分区2安装操作***2并完成高速的存储属性的配置。当终端上电开启后,可让用户选择需要使用的***操作分区,然后启动单元702仅启动用户选择的需要使用的***操作分区的操作***。
或者划分单元701将EMMC的存储介质划分成了两个高可靠高安全***操作分区(高可靠高安全***操作分区1及高可靠高安全***操作分区2),以方便终端给不同的用户使用,例如可将家庭中不同成员下载的应用存储在不同的高可靠高安全***操作分区。在***初始化阶段,需要在高可靠高安全***操作分区1安装操作***1并完成高可靠高安全的存储属性配置,在高可靠高安全***操作分区2安装操作***2并完成高可靠高安全的存储属性的配置。当终端上电开启后,可让用户选择需要使用的***操作分区,然后启动单元702仅启动用户选择的需要使用的***操作分区的操作***。
处理单元703在启动单元702启动的***操作分区上存取数据。即当需要
存取数据时,处理单元703获取数据的逻辑地址,将该逻辑地址映射到已启动的***操作分区的物理地址,直接在该***操作分区上存取数据。
不同的***操作分区可通过重启进行工作切换,例如终端上电开启时,客户选择了启动第一***操作分区,一段时间后,若客户想使用第二***操作分区,则可重启终端,在终端重启之后,选择开启第二***操作分区。当然,不同***操作分区也可不通过重启进行工作切换,例如通过软件设置来控制不同***操作分区进行工作切换。
未描述简洁,本实施例中未作详细描述的步骤,可参阅前述方法实施例的描述。
本实施例中,终端内包含EMMC,而划分单元将EMMC的存储介质划分成了至少两个相互独立的***操作分区,当终端处于上电开启状态时,启动单元仅启动其中一个***操作分区,处理单元仅在已启动的***操作分区上存取数据,且启动的***操作分区与其他未开启的***操作分区之间无数据交互,避免了仅在一个***操作分区的用户数据存储区叠加其他分区产生的数据干扰、泄露等问题。由于终端内一个EMMC的存储介质被划分单元按照分区寄存器的预定设置划分成了至少两个相互独立的***操作分区,因而,终端内的一个EMMC即可兼顾用户的不同需求,节约了成本,设计简单灵活。
下面对本发明实施例中的终端进行进一步说明,请参阅图8,终端800包括:
处理器(processor)810,通信接口(Communications Interface)820,存储器(memory)830,总线840。
处理器810,通信接口820,存储器830通过总线840完成相互间的通信。
通信接口820,用于与其他设备通信。
处理器810,用于执行程序832。
具体地,程序832可以包括程序代码,所述程序代码包括计算机操作指令。
处理器810可能是一个中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。
存储器830,用于存放程序832。具体在本实施例中,存储器830可以是前述实施例所描述的EMMC,EMMC包括控制器与存储介质,控制器与处理
器810进行交互,将处理器810要读的数据从存储介质上取出并发送给处理器,将处理器要存的数据存到对应的存储介质上。控制器中具有分区寄存器,存储介质包含至少两个相互独立的***操作分区,至少两个相互独立的***操作分区是控制器在处理器810的控制下,根据分区寄存器的预定设置将EMMC的存储介质进行划分得到的。
具体在本实施例中,处理器810执行存储器830中存放的程序832以实现如下功能:
将EMMC的存储介质划分为至少两个相互独立的***操作分区;
在终端处于上电开启状态时,仅启动至少两个相互独立的***操作分区中的第一***操作分区,第一***操作分区与其他未开启的***操作分区之间无数据交互;
在第一***操作分区上存取数据。
可选地,至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区;
其中,在高速***操作分区存取数据的速率高于在高可靠高安全***操作分区存取数据的速率;
在高可靠高安全***操作分区存取数据的可靠性及安全性高于在高速***操作分区存取数据的可靠性及安全性。
可选地,处理器810还用于为每个***操作分区配置存储属性。
可选地,高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性、修剪特性、抛弃特性、打包命令特性及上下文管理特性;高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质、关缓存特性、可靠写特性、可靠擦除特性、可靠修剪特性、数据标签特性、写保护特性及器件加锁特性。
可选地,处理器810还用于为高可靠高安全***操作分区设置访问密码。
可选地,处理器810还用于为高速***操作分区设置访问密码。
可选地,每个***操作分区各自都有一个操作***。
可选地,不同的***操作分区通过重启进行工作切换。
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的。可以根据实际的
需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
以上对本发明实施例所提供的一种存储分区的方法及终端进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,因此,本说明书内容不应理解为对本发明的限制。
Claims (16)
- 一种存储分区的方法,所述存储分区的方法应用于包含有嵌入式多媒体卡EMMC的终端,其特征在于,所述EMMC包括控制器与存储介质,所述控制器中具有分区寄存器,所述存储介质包含至少两个相互独立的***操作分区,所述至少两个相互独立的***操作分区是所述控制器根据所述分区寄存器的预定设置将所述EMMC的存储介质进行划分得到的;所述方法包括:当所述终端处于上电开启状态时,仅启动所述至少两个相互独立的***操作分区中的第一***操作分区,所述第一***操作分区与其他未开启的***操作分区之间无数据交互;所述终端在所述第一***操作分区上存取数据。
- 如权利要求1所述的方法,其特征在于,所述至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区;其中,在所述高速***操作分区存取数据的速率高于在所述高可靠高安全***操作分区存取数据的速率;在所述高可靠高安全***操作分区存取数据的可靠性及安全性高于在所述高速***操作分区存取数据的可靠性及安全性。
- 如权利要求2所述的方法,其特征在于,所述控制器中还具有配置寄存器,所述方法还包括:根据每个***操作分区对应的配置寄存器的预定设置为每个***操作分区配置存储属性。
- 如权利要求3所述的方法,其特征在于,所述高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性、修剪特性、抛弃特性、打包命令特性及上下文管理特性;所述高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质、关缓存特性、可靠写特性、可靠擦除特性、可靠修剪特性、数据标签特性、写保护特性及器件加锁特性。
- 如权利要求2所述的方法,其特征在于,所述控制器中还具有配置寄存 器,所述方法还包括:根据所述高可靠高安全***操作分区对应的配置寄存器的预定设置为所述高可靠高安全***操作分区设置访问密码。
- 如权利要求2所述的方法,其特征在于,所述控制器中还具有配置寄存器,所述方法还包括:根据所述高速***操作分区对应的配置寄存器的预定设置为所述高速***操作分区设置访问密码。
- 如权利要求1至6任意一项所述的方法,其特征在于,每个***操作分区各自都有一个操作***。
- 如权利要求1至6任意一项所述的方法,其特征在于,所述方法还包括:重启所述终端以对不同的***操作分区进行工作切换。
- 一种终端,所述终端包含有嵌入式多媒体卡EMMC,其特征在于,所述终端包括:划分单元,用于将所述EMMC的存储介质划分为至少两个相互独立的***操作分区;启动单元,用于在所述终端处于上电开启状态时,仅启动所述划分单元划分的所述至少两个相互独立的***操作分区中的第一***操作分区,所述第一***操作分区与其他未开启的***操作分区之间无数据交互;处理单元,用于在所述启动单元启动的所述第一***操作分区上存取数据。
- 如权利要求9所述的终端,其特征在于,所述至少两个相互独立的***操作分区的类型包括以下至少一种:高速***操作分区、高可靠高安全***操作分区;其中,在所述高速***操作分区存取数据的速率高于在所述高可靠高安全***操作分区存取数据的速率;在所述高可靠高安全***操作分区存取数据的可靠性及安全性高于在所述高速***操作分区存取数据的可靠性及安全性。
- 如权利要求10所述的终端,其特征在于,所述划分单元还用于,为每个***操作分区配置存储属性。
- 如权利要求11所述的终端,其特征在于,所述高速***操作分区的存储属性包括以下任意一个或多个:开缓存特性、修剪特性、抛弃特性、打包命令特性及上下文管理特性;所述高可靠高安全***操作分区的存储属性包括以下任意一个或多个:存储介质为增强型存储介质、关缓存特性、可靠写特性、可靠擦除特性、可靠修剪特性、数据标签特性、写保护特性及器件加锁特性。
- 如权利要求10所述的终端,其特征在于,所述终端还包括:密码设置单元,用于为所述划分单元划分的所述高可靠高安全***操作分区设置访问密码。
- 如权利要求10所述的终端,其特征在于,所述终端还包括:密码设置单元,用于为所述划分单元划分的所述高速***操作分区设置访问密码。
- 如权利要求9至14任意一项所述的终端,其特征在于,每个***操作分区各自都有一个操作***。
- 如权利要求9至14任意一项所述的终端,其特征在于,不同的***操作分区通过重启进行工作切换。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP15887236.6A EP3267304A4 (en) | 2015-04-03 | 2015-10-15 | Storage partition method and terminal |
US15/723,804 US20180046399A1 (en) | 2015-04-03 | 2017-10-03 | Storage Partitioning Method and Terminal |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510158197.6A CN106155568B (zh) | 2015-04-03 | 2015-04-03 | 一种存储分区的方法及终端 |
CN201510158197.6 | 2015-04-03 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/723,804 Continuation US20180046399A1 (en) | 2015-04-03 | 2017-10-03 | Storage Partitioning Method and Terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016155282A1 true WO2016155282A1 (zh) | 2016-10-06 |
Family
ID=57004733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/091977 WO2016155282A1 (zh) | 2015-04-03 | 2015-10-15 | 一种存储分区的方法及终端 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20180046399A1 (zh) |
EP (1) | EP3267304A4 (zh) |
CN (1) | CN106155568B (zh) |
WO (1) | WO2016155282A1 (zh) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106529349A (zh) * | 2016-12-14 | 2017-03-22 | 武汉瑞纳捷电子技术有限公司 | 一种安全芯片及其访问控制方法 |
CN107832637A (zh) * | 2017-11-20 | 2018-03-23 | 丹东瑞银科技有限公司 | Emmc及emmc的分区写保护方法 |
CN108595123B (zh) * | 2018-04-26 | 2021-06-01 | 青岛海信移动通信技术股份有限公司 | 移动终端的数据存储方法及装置 |
CN108595127B (zh) * | 2018-05-09 | 2021-07-30 | 杭州宏杉科技股份有限公司 | 一种划分sas端口分区的方法及装置 |
CN109408403A (zh) * | 2018-10-12 | 2019-03-01 | 深圳市硅格半导体有限公司 | 基于存储设备底层的映射方法、装置、***及存储介质 |
CN110262836A (zh) * | 2019-04-29 | 2019-09-20 | 华为技术有限公司 | 嵌入式多媒体装置和用于车载远程通信处理器的通信设备 |
CN114063913B (zh) * | 2021-11-03 | 2024-07-12 | 东风汽车集团股份有限公司 | Emmc分区存储方法及结构 |
CN115544586B (zh) * | 2022-11-29 | 2023-05-05 | 荣耀终端有限公司 | 用户数据的安全存储方法、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840341A (zh) * | 2010-04-01 | 2010-09-22 | 惠州Tcl移动通信有限公司 | 智能手机***及其启动方法 |
US8281119B1 (en) * | 2011-11-22 | 2012-10-02 | Google Inc. | Separate normal firmware and developer firmware |
CN102799484A (zh) * | 2012-07-11 | 2012-11-28 | 中兴通讯股份有限公司 | 移动终端运行多操作***的方法及装置 |
CN103559054A (zh) * | 2013-10-30 | 2014-02-05 | 华为终端有限公司 | 智能终端多操作***的实现、删除方法和装置 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2003244914A1 (en) * | 2003-07-04 | 2005-01-21 | Nokia Corporation | Key storage administration |
US20080162866A1 (en) * | 2006-12-28 | 2008-07-03 | Siddiqi Faraz A | Apparatus and method for fast and secure memory context switching |
US9003173B2 (en) * | 2007-09-28 | 2015-04-07 | Microsoft Technology Licensing, Llc | Multi-OS (operating system) boot via mobile device |
US20120102314A1 (en) * | 2010-04-01 | 2012-04-26 | Huizhou TCL Mobile Communications Co., Ltd. | Smart phone system and booting method thereof |
CN102045449A (zh) * | 2010-12-31 | 2011-05-04 | 周良勇 | 一种多操作***智能手机 |
JP5914145B2 (ja) * | 2012-05-01 | 2016-05-11 | ルネサスエレクトロニクス株式会社 | メモリ保護回路、処理装置、およびメモリ保護方法 |
KR101975027B1 (ko) * | 2012-05-04 | 2019-05-03 | 삼성전자주식회사 | 시스템 온 칩, 이의 동작 방법, 이를 포함하는 장치들 |
CN103024547A (zh) * | 2012-12-28 | 2013-04-03 | 北京赛科世纪数码科技有限公司 | 一种启动控制方法、启动控制装置及数字电视机顶盒 |
CN104391803B (zh) * | 2014-11-29 | 2017-08-25 | 中国航空工业集团公司第六三一研究所 | 一种分区操作***的存储管理方法 |
-
2015
- 2015-04-03 CN CN201510158197.6A patent/CN106155568B/zh active Active
- 2015-10-15 WO PCT/CN2015/091977 patent/WO2016155282A1/zh active Application Filing
- 2015-10-15 EP EP15887236.6A patent/EP3267304A4/en not_active Ceased
-
2017
- 2017-10-03 US US15/723,804 patent/US20180046399A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840341A (zh) * | 2010-04-01 | 2010-09-22 | 惠州Tcl移动通信有限公司 | 智能手机***及其启动方法 |
US8281119B1 (en) * | 2011-11-22 | 2012-10-02 | Google Inc. | Separate normal firmware and developer firmware |
CN102799484A (zh) * | 2012-07-11 | 2012-11-28 | 中兴通讯股份有限公司 | 移动终端运行多操作***的方法及装置 |
CN103559054A (zh) * | 2013-10-30 | 2014-02-05 | 华为终端有限公司 | 智能终端多操作***的实现、删除方法和装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3267304A4 * |
Also Published As
Publication number | Publication date |
---|---|
CN106155568B (zh) | 2019-03-01 |
CN106155568A (zh) | 2016-11-23 |
EP3267304A4 (en) | 2018-04-04 |
EP3267304A1 (en) | 2018-01-10 |
US20180046399A1 (en) | 2018-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016155282A1 (zh) | 一种存储分区的方法及终端 | |
US9430250B2 (en) | Bootability with multiple logical unit numbers | |
US10025934B2 (en) | Media protection policy enforcement for multiple-operating-system environments | |
JP6318425B2 (ja) | リードオンリメモリのブートコードパッチ | |
CN107683479B (zh) | 基于nand的验证引导 | |
US8201239B2 (en) | Extensible pre-boot authentication | |
US8949565B2 (en) | Virtual and hidden service partition and dynamic enhanced third party data store | |
US10042651B2 (en) | Techniques to configure multi-mode storage devices in remote provisioning environments | |
US9830457B2 (en) | Unified extensible firmware interface (UEFI) credential-based access of hardware resources | |
US9417886B2 (en) | System and method for dynamically changing system behavior by modifying boot configuration data and registry entries | |
CN107567629B (zh) | 在可信执行环境容器中的动态固件模块加载器 | |
US9886408B2 (en) | Data access protection for computer systems | |
US20130297924A1 (en) | Method of running multiple operating systems on an x86-based computer | |
US20180121125A1 (en) | Method and apparatus for managing resource access control hardware in a system-on-chip device | |
CN113826072B (zh) | ***管理模式中的代码更新 | |
US11354259B1 (en) | Computer system configurations based on accessing data elements presented by baseboard management controllers | |
WO2022068298A1 (zh) | U盘访问方法及u盘 | |
US20140310776A1 (en) | Control Access Based on Network Status | |
US20090187898A1 (en) | Method for securely updating an autorun program and portable electronic entity executing it | |
US20130151832A1 (en) | Flash memory storage system and data protection method thereof | |
WO2007000670A1 (en) | Information updating method, program for the same and information processing unit | |
WO2019240759A1 (en) | Overriding sub-system identifiers with protected variable values | |
CN114329434A (zh) | 设备数据的读取方法、装置与数据访问*** | |
CN116578444A (zh) | 一种数据备份恢复方法、装置及电子设备 | |
CN112580023A (zh) | 影子栈管理方法及装置、介质、设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15887236 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REEP | Request for entry into the european phase |
Ref document number: 2015887236 Country of ref document: EP |