CN104077546B - The method and system switched based on SD card multi partition - Google Patents

The method and system switched based on SD card multi partition Download PDF

Info

Publication number
CN104077546B
CN104077546B CN201410277261.8A CN201410277261A CN104077546B CN 104077546 B CN104077546 B CN 104077546B CN 201410277261 A CN201410277261 A CN 201410277261A CN 104077546 B CN104077546 B CN 104077546B
Authority
CN
China
Prior art keywords
card
subregion
firmware
intelligent terminal
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410277261.8A
Other languages
Chinese (zh)
Other versions
CN104077546A (en
Inventor
曹志忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SILICONGO SEMICONDUCTOR 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 SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Priority to CN201410277261.8A priority Critical patent/CN104077546B/en
Publication of CN104077546A publication Critical patent/CN104077546A/en
Application granted granted Critical
Publication of CN104077546B publication Critical patent/CN104077546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting 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/77Protecting 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 in smart cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of method switched based on SD card multi partition, including step:SD card is divided into multiple subregions by SD card production tool, and the multiple subregion includes a main partition and more than one security partitioning;One of subregion in the multiple subregion that the firmware of SD card divides the SD card production tool switches to the write partitions of currently the only display;Intelligent terminal App recognizes the subregion after the firmware switching of the SD card.The invention also discloses a kind of system switched based on SD card multi partition.Having the beneficial effect that achieved by the present invention:Support that multiple security partitionings, data security are good, easy to use, each subregion can serve as difference in functionality and use.

Description

The method and system switched based on SD card multi partition
Technical field
The present invention relates to information storage and information security field, more particularly to based on SD card multi partition switch method and be System.
Background technology
Current SD card realizes multi partition, mainly by the way of the subregion in file system, this mode and computer hard disc Subregion is similar, is the file system changed using software in SD card on the SD finished product cards of volume production, realizes more than one Subregion, but this scheme is not particularly suited for the storage to important private data.
The content of the invention
The problem of it is a primary object of the present invention to solve to store important private data after SD card subregion.
To achieve the above object, the present invention provides a kind of method switched based on SD card multi partition, comprises the following steps:
SD card is divided into multiple subregions by the firmware of SD card, and the multiple subregion includes a main partition and more than one Security partitioning;
SD card is divided into multiple subregions by SD card production tool, and the multiple subregion includes a main partition and more than one Security partitioning;
One of subregion in the multiple subregion that the firmware of SD card divides the SD card production tool is switched to The write partitions of currently the only display;Intelligent terminal App (Application, application program) recognizes that the firmware of the SD card is cut Subregion after changing.
Preferably, it is described after subscriber authentication success, perform the intelligent terminal App and select to be switched subregion, Also include subscriber authentication before the step of to be switched subregion is switched into the write partitions of currently the only display to walk Suddenly, after subscriber authentication success, then described after subscriber authentication success, the execution intelligent terminal App choosings are performed To be switched subregion is selected, the step of to be switched subregion is switched into the write partitions of currently the only display, the user Authentication step includes:
The intelligent terminal App sends firmware of the privately owned order to the SD card;The firmware of the SD card receives the intelligence The privately owned order that energy terminal App is sent, is verified to user identity, if the firmware validation reception of SD card is the intelligence The privately owned order that terminal App is sent, then subscriber authentication success.
Preferably, SD card is divided into multiple subregions by the SD card production tool in volume production, and the multiple subregion includes The step of one main partition and more than one security partitioning, specifically includes:
The SD card production tool scans SD card;
The SD card production tool setting divides the number of partitions of subregion, and in the independent file system of each subregion setting System;
The SD card production tool divides SD card according to set number of partitions;
The SD card production tool preserves the partition information for dividing subregion.
Preferably, it is described based on SD card multi partition switch method it is described based on SD card multi partition switch method in institute State intelligent terminal App and select to be switched subregion, the to be switched subregion is switched to the write partitions of currently the only display The step of specifically include:
Switching command is sent to the firmware of the SD card by the intelligent terminal App;
The firmware of the SD card receives the switching command of the intelligent terminal App;
The firmware of the SD card changes respective partition sequence number according to be switched order;
The intelligent terminal App receives the subregion sequence number that the firmware of the SD card is returned;
Intelligent terminal operation system carry SD card or again plug SD card reading file system;
The firmware of the SD card completes subregion switching according to the subregion sequence number;
Switching result is returned to the intelligent terminal App by the firmware of the SD card.
Preferably, also include after the step of intelligent terminal App recognizes the subregion after the firmware switching of the SD card:
The firmware of the SD card returns to the file system of subregion after switching, the intelligent terminal operation system obtain described in cut The corresponding file system of rear subregion is changed, operation is written and read in subregion after the switching.
The present invention further provides a kind of system switched based on SD card multi partition, including SD card production tool, SD card Firmware and intelligent terminal App, wherein,
The SD card production tool includes:
Division module, for SD card to be divided into multiple subregions, the multiple subregion include a main partition and one with On security partitioning;
The firmware of the SD card includes:
Handover module, for one of subregion switching in the multiple subregion that divides the SD card production tool For the write partitions of currently the only display;
The intelligent terminal App includes:
Identification module, for recognizing the subregion that the firmware of the SD card switches.
Preferably, the intelligent terminal App also includes:
The intelligent terminal App also includes:
App transmitting elements, for sending firmware of the privately owned order to the SD card;
The firmware of the SD card also includes:
Firmware receiving unit, for receiving the privately owned order that the intelligent terminal App transmitting elements are sent;
Authentication unit, for being verified to user identity, if that the firmware validation reception of SD card is intelligent terminal App The privately owned order sent, then subscriber authentication success.
Preferably, the division module of the SD card production tool includes:
Scanning element, for scanning SD card;
Zoning unit, the number of partitions of subregion is divided for setting, and in the independent file system of each subregion setting;
Division unit, for dividing SD card according to set number of partitions;
Memory cell, the partition information for preserving the division subregion.
Preferably, the system switched based on SD card multi partition also includes intelligent terminal operation system, wherein,
The intelligent terminal App also includes:
App transmitting elements, the firmware for switching command to be sent to the SD card;
App receiving units, for receive the SD card firmware return subregion sequence number and SD card firmware return cut Change result;
The firmware of the SD card also includes:
Firmware receiving unit, for receiving the switching command that the intelligent terminal App transmitting elements are sent;
Unit is changed, for changing respective partition sequence number according to be switched subregion;
Firmware transmitting element, the switching result for sending the modification amended subregion sequence number of unit and switch unit;
Switch unit, for completing subregion switching according to the subregion sequence number;
The intelligent terminal operation system, including:
Carry unit, for carry SD card or plugs SD card again and reads file system.
Preferably, the firmware of the SD card also includes:
Returning unit, the file system for returning to subregion after switching;
The intelligent terminal operation system also includes:
Read-write cell, for obtaining the corresponding file system of subregion after the switching, is carried out after the switching in subregion Read-write operation.
A kind of method switched based on SD card multi partition that the present invention is provided, is comprised the following steps:SD card production tool will SD card is divided into multiple subregions, and the multiple subregion includes a main partition and more than one security partitioning;The firmware of SD card Recognize the subregion that the SD card production tool is divided;To be switched subregion is switched to currently the only display by intelligent terminal App Write partitions.
Having the beneficial effect that achieved by the present invention:
First, multiple security partitionings are supported.And partitioned file system can be modified with existing partitioning tool, realized EXT subregions or SWAP subregions, now have no effect on security partitioning.
2nd, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, only It can be operated in the subregion currently switched.
3rd, it is easy to use, be between each security partitioning, between main partition and security partitioning it is separate, to For family, each subregion SD card independent equivalent to one.
4th, each subregion can be used as difference in functionality, such as main partition is used as general data memory block, safety point Area is set to the first security partitioning and the second subregion, and the first place of safety subregion could be arranged to system boot disk, the second security partitioning To the important private data partition holding of user.
Brief description of the drawings
The schematic flow sheet for the embodiment of method one that Fig. 1 is switched for the present invention based on SD card multi partition;
The refinement schematic flow sheet that Fig. 2 is step S200 in Fig. 1;
The refinement schematic flow sheet that Fig. 3 is step S300 in Fig. 1;
The high-level schematic functional block diagram for the embodiment of system one that Fig. 4 is switched for the present invention based on SD card multi partition;
Fig. 5 is the high-level schematic functional block diagram of Fig. 4 intelligent terminal App division modules;
The high-level schematic functional block diagram of system one that Fig. 6 is switched for the present invention based on SD card multi partition;
Another high-level schematic functional block diagram of system that Fig. 7 is switched for the present invention based on SD card multi partition.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides the method switched based on SD card multi partition, and reference picture 1 in one embodiment, should be more based on SD card The method of subregion switching includes:
SD card is divided into multiple subregions by step S100, SD card production tool, and the multiple subregion includes a main partition With more than one security partitioning.
SD card is divided into multiple subregions by SD card production tool in volume production, the multiple subregion include a main partition and More than one security partitioning.Main partition is that SD card gives tacit consent to the subregion used, can be with existing partitioning tool to main partition file System is modified, and is realized EXT subregions or SWAP subregions, is now had no effect on security partitioning.In addition to main partition, SD card is also It is settable to have several security partitionings, such as, security partitioning includes the first security partitioning and the second security partitioning, and security partitioning is needed Intelligent terminal App and privately owned order is coordinated just to conduct interviews.Each subregion can also be used as difference in functionality, such as Main partition is used as general data memory block, and the first place of safety subregion could be arranged to system boot disk, the second security partitioning to The important private data partition holding in family.
Step S200, the intelligent terminal App send firmware of the privately owned order to the SD card;The firmware of the SD card connects The privately owned order that the intelligent terminal App is sent is received, user identity is verified, if the firmware validation reception of SD card is The privately owned order that the intelligent terminal App is sent, then subscriber authentication success.
It is separate between each security partitioning, between security partitioning and main partition, for user, Mei Gefen Area's all SD cards independent equivalent to one.Subregion switching need to send privately owned order to the firmware of SD card, SD card in intelligent terminal App Firmware validation pass through, then carry SD card again, can just complete subregion switching, and data security is good, and the firmware of SD card increases By force to data security, it is not possible to the mode such as overflow to obtain the data of other subregions by address, only pass through authentication Could access safety subregion.The firmware of SD card is the program for writing SD card, popular understanding is " software of solidification ", and SD card is consolidated Part is BIOS software, but entirely different with common software, is to be solidificated in the program code inside SD card, is responsible for control and assists Adjust the function of SD card.Security partitioning includes the first security partitioning and the second security partitioning, and security partitioning needs to coordinate intelligent terminal App and privately owned order can just conduct interviews.Privately owned order is encapsulated in general usb data bag, there is specific data format, intelligence Terminal App and the firmware of SD card are by explaining data format, so that recognition command.Privately owned order is the write order of particular sequence, When intelligent terminal App needs and the firmware of SD card are communicated, intelligent terminal App writes data by API and gone and SD card Firmware set up connection, the data simply write be by negotiation, such as:Preceding 5 bytes are 0x11,0x22,0x33 respectively, 0x44,0x55, then the firmware of SD card, which is detected, writes 5 bytes before data and meets the requirements, and is just identified as privately owned order, then solves Other bytes are released, App order is explained, then subscriber authentication success.
One of them point in the multiple subregion that step S300, the firmware of SD card divide the SD card production tool Area switches to the write partitions of currently the only display;Intelligent terminal App recognizes the subregion after the firmware switching of the SD card.
The system switched based on SD card multi partition is currently operating at main partition, and when needing the second security partitioning of operation, only Main partition need to be switched to the firmware of the second security partitioning, i.e. SD card to select the second security partitioning to be to complete switching, the second safety After subregion switching, the write partitions as currently the only display, the intelligent terminal App of the system switched based on SD card multi partition is known Not Qie Huan after subregion be the second security partitioning file system and data, now peration data is also to enter in the second security partitioning OK, can not simultaneously it be operated in other subregions.
Step S400, the firmware of the SD card return to the file system of subregion after switching, the intelligent terminal operation system The corresponding file system of subregion after the switching is obtained, operation is written and read in subregion after the switching.
The subregion that the firmware of SD card returns to after switching is the file system of the second security partitioning, and intelligent terminal operation system is obtained The corresponding file system in second security partitioning is taken, operation is written and read in the second security partitioning.Subregion after being switched For the write partitions of currently the only display, i.e., the file system of the subregion after switching is obtained based on the system that SD card multi partition switches Sum is according to this and the data of operation are carried out in subregion after handover, can not be written and read behaviour simultaneously in other subregions Make, so as to strengthen the security to user data.
Wherein, intelligent terminal App and the firmware of SD card can not also be by subscriber authentications, and directly carry out subregion and cut Change, when SD card carries out data read-write operation, can only be operated in the subregion currently switched, so as to omit step S200。
A kind of method switched based on SD card multi partition that the present embodiment is provided, SD card is divided into many by SD card production tool Individual subregion, the multiple subregion includes a main partition and more than one security partitioning;The firmware of SD card recognizes the SD card The subregion that production tool is divided;Intelligent terminal App switches to be switched subregion the write partitions of currently the only display.
Having the beneficial effect that achieved by the present embodiment:
First, multiple security partitionings are supported.And partitioned file system can be modified with existing partitioning tool, realized EXT subregions or SWAP subregions, now have no effect on security partitioning.
2nd, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, no It the mode such as can overflow by address to obtain the data of other subregions, only passing through authentication could access safety subregion. Sent without intelligent terminal App privately owned order and subscriber authentication to SD card firmware in the case of, the firmware of SD card is not The subregion sequence number of operation can be changed, it is impossible to access other subregions.
3rd, it is easy to use, be between each security partitioning, between main partition and security partitioning it is separate, to For family, each subregion SD card independent equivalent to one.Subregion switching only needs intelligent terminal App to send privately owned order to SD card Firmware, the firmware validation of SD card passes through, then carry SD card again, it is possible to complete subregion switching.
4th, each subregion can be used as difference in functionality, such as main partition is used as general data memory block, safety point The first security partitioning and the second subregion can be set to, the first place of safety subregion could be arranged to system boot disk, the second security partitioning To the important private data partition holding of user.
Specifically, with further reference to Fig. 2, the step S200 includes:
Step S210, SD card production tool scanning SD card.
SD card production tool scans whole SD card, checks either with or without system file and sector corruption, if any, is entered Row is repaired.
Step S220, SD card production tool setting divide the number of partitions of subregion.
SD card can be divided into multiple subregions by SD card production tool according to actual demand, and set the subregion to be divided Quantity.
Step S230, the SD card production tool divide SD card according to set number of partitions.
SD card production tool divides SD card according to set number of partitions, and SD card is divided into multiple subregions, described many Individual subregion includes a main partition and more than one security partitioning.Main partition is that SD card gives tacit consent to the subregion used.Except main point Outside area, SD card is also provided with several security partitionings, such as, security partitioning includes the first security partitioning and the second safety point Area, security partitioning needs to coordinate intelligent terminal App and privately owned order just to conduct interviews.Each subregion can also be used as different work( It can use, such as main partition is used as general data memory block, the first place of safety subregion could be arranged to system boot disk, second Security partitioning is to the important private data partition holding of user.Each subregion sets independent file system, so that each peace All it is separate between full subregion, between security partitioning and main partition, for user, each subregion is equivalent to one solely Vertical SD card.
Step S240, the SD card production tool preserve the partition information for dividing subregion.
SD card production tool is preserved the partition information for dividing subregion, quantity of the partition information including division subregion, The corresponding sequence number of function and subregion of subregion.
Specifically, with further reference to Fig. 3, the step S300 includes:
Switching command is sent to the firmware of the SD card by step S310, the intelligent terminal App.
When intelligent terminal App recognizes subregion switching to be carried out, switching command is sent to to be switched subregion first, than Such as say the second security partitioning.
Step S320, the firmware of the SD card receive the switching command of the intelligent terminal App.
The firmware of SD card is received after the switching command of the intelligent terminal App, and the intelligent terminal App is sended over Switching command responded.
Step S330, the firmware of the SD card change respective partition sequence number according to be switched order.
Subregion sequence number is in the firmware operation of SD card, and there is specific sequence number each security partitioning and main partition, and operation is not The sequence number operated is needed to be modified to specified partition sequence number with subregion.SD card carries out subregion, SD card using the firmware of SD card The number of partitions can be set by SD card production tool in volume production, each subregion has independent file system.User can pass through intelligence Energy terminal App privately owned order and the firmware of SD card are communicated.When the authentication for being not provided with effect, the firmware of SD card is only carried For being operated to the storage in the address realm of main partition, address out of range read-write is invalid, and user can only access main partition, is not changing point On the premise of area's sequence number, the data of other subregions are not influenceed on operations such as current bay formattings.
Step S340, the intelligent terminal App receive the subregion sequence number that the firmware of the SD card is returned.
Intelligent terminal App receives the subregion sequence number that the firmware of SD card is returned, and the corresponding subregion of subregion sequence number is carried out true Recognize.
Step S350, intelligent terminal operation system carry SD card plug SD card reading file system again.
There are two steps when intelligent terminal operation system is to SD card again carry:Umount and Mount.Wherein, Umount The file system hung at present in Linux catalogues can be unloaded.Mount using Windows partition as Linux one " file " It is articulated under a Linux empty folder, so that this catalogue is connected by Windows subregion and mnt.Carry out Intelligent terminal operation system updates FAT table (File Allocation Table, file distribution to the firmware of SD card during Umount Table).When carrying out Mount, intelligent terminal operation system can reacquire the file system of subregion.
Step S360, the firmware of the SD card complete subregion switching according to the subregion sequence number.
If the firmware of SD card have received intelligent terminal App switching command, then re-read the text of subregion in system When part system, the firmware of SD card can be mapped to logical address in new change partitions, so as to return to new change partitions File system, is also in new change partitions when system read-write.
Switching result is returned to the intelligent terminal App by step S370, the firmware of the SD card.
Switching result is returned to intelligent terminal App by the firmware of SD card, and the firmware that intelligent terminal App receives SD card is returned really Recognize result, confirm that switching command is finished.
Reference picture 4, the present embodiment furthermore provides a kind of system switched based on SD card multi partition, in an embodiment In, include the firmware and intelligent terminal App of SD card production tool, SD card, wherein,
The SD card production tool includes:
Division module 10, for SD card to be divided into multiple subregions, the multiple subregion includes a main partition and one Security partitioning above;
The firmware of the SD card includes:
Handover module 20, cuts for one of subregion in the multiple subregion that divides the SD card production tool It is changed to the write partitions of currently the only display;
The intelligent terminal App includes:
Identification module 30, for recognizing the subregion that the firmware of the SD card switches.
SD card is divided into multiple subregions by SD card production tool in volume production, the multiple subregion include a main partition and More than one security partitioning.Main partition is that SD card gives tacit consent to the subregion used, can be with existing partitioning tool to main partition file System is modified, and is realized EXT subregions or SWAP subregions, is now had no effect on security partitioning.In addition to main partition, SD card is also It is settable to have several security partitionings, such as, security partitioning includes the first security partitioning and the second security partitioning, and security partitioning is needed Intelligent terminal App and privately owned order is coordinated just to conduct interviews.Each subregion can also be used as difference in functionality, such as Main partition is used as general data memory block, and the first place of safety subregion could be arranged to system boot disk, the second security partitioning to The important private data partition holding in family.
The system switched based on SD card multi partition is currently operating at main partition, and when needing the second security partitioning of operation, only Main partition need to be switched to the second security partitioning, i.e. intelligent terminal App selects the second security partitioning, and the second security partitioning is to complete Switching, after the switching of the second security partitioning, the write partitions as currently the only display, the system switched based on SD card multi partition is obtained The subregion i.e. file system and data of the second security partitioning after switching is taken, now peration data is also to enter in the second security partitioning OK, can not simultaneously it be operated in other subregions.
A kind of system switched based on SD card multi partition that the present embodiment is provided, in one embodiment, including SD card volume production Instrument, the firmware of SD card and intelligent terminal App, wherein, the SD card production tool includes division module 10, for SD card to be drawn It is divided into multiple subregions, the multiple subregion includes a main partition and more than one security partitioning;The firmware bag of the SD card Handover module 20 is included, switches to and works as one of subregion in the multiple subregion that divides the SD card production tool The preceding write partitions uniquely shown;The intelligent terminal App includes identification module 30, for recognizing that the firmware of the SD card switches Subregion.
Having the beneficial effect that achieved by the present embodiment:
First, multiple security partitionings are supported.And partitioned file system can be modified with existing partitioning tool, realized EXT subregions or SWAP subregions, now have no effect on security partitioning.
2nd, data security is good, and the firmware of SD card strengthens the confidentiality of data, when SD card carries out data read-write operation, no It the mode such as can overflow by address to obtain the data of other subregions, only passing through authentication could access safety subregion. Sent without intelligent terminal App privately owned order and subscriber authentication to SD card firmware in the case of, the firmware of SD card is not The subregion sequence number of operation can be changed, it is impossible to access other subregions.
3rd, it is easy to use, be between each security partitioning, between main partition and security partitioning it is separate, to For family, each subregion SD card independent equivalent to one.Subregion switching need to only be tested in intelligent terminal App by user profile Card, sends the firmware that SD card is arrived in privately owned order, and the firmware validation of SD card passes through, then carry SD card again, it is possible to complete to divide Area switches.
4th, each subregion can be used as difference in functionality, such as main partition is used as general data memory block, safety point Area is set to the first security partitioning and the second subregion, and the first place of safety subregion could be arranged to system boot disk, the second security partitioning To the important private data partition holding of user.
Specifically, referring to Fig. 6, the system switched based on SD card multi partition described in the present embodiment,
The intelligent terminal App also includes:
App transmitting elements 31, for sending firmware of the privately owned order to the SD card;
The firmware of the SD card also includes:
Firmware receiving unit 33, for receiving the privately owned order that the intelligent terminal App transmitting elements 31 are sent;
Authentication unit 34, for being verified to user identity, if the firmware validation reception of SD card is intelligent terminal The privately owned order that App is sent, then subscriber authentication success.
It is separate between each security partitioning, between security partitioning and main partition, for user, Mei Gefen Area's all SD cards independent equivalent to one.Subregion switching need to send privately owned order to the firmware of SD card, SD card in intelligent terminal App Firmware validation pass through, then carry SD card again, can just complete subregion switching, and data security is good, and the firmware of SD card increases By force to data security, it is not possible to the mode such as overflow to obtain the data of other subregions by address, only pass through authentication Could access safety subregion.The firmware of SD card is the program for writing SD card, popular understanding is " software of solidification ", and SD card is consolidated Part is BIOS software, but entirely different with common software, is to be solidificated in the program code inside SD card, is responsible for control and assists Adjust the function of SD card.Security partitioning includes the first security partitioning and the second security partitioning, and security partitioning needs to coordinate intelligent terminal App and privately owned order can just conduct interviews.Privately owned order is encapsulated in general usb data bag, there is specific data format, intelligence Terminal App and the firmware of SD card are by explaining data format, so that recognition command.Privately owned order is the write order of particular sequence, When intelligent terminal App needs and the firmware of SD card are communicated, intelligent terminal App writes data by API and gone and SD card Firmware set up connection, the data simply write be by negotiation, such as:Preceding 5 bytes are 0x11,0x22,0x33 respectively, 0x44,0x55, then the firmware of SD card, which is detected, writes 5 bytes before data and meets the requirements, and is just identified as privately owned order, then solves Other bytes are released, App order is explained, then subscriber authentication success.
Specifically, as shown in figure 5, the division module 10 of the SD card production tool includes:
Scanning element 11, for scanning SD card;
Zoning unit 12, the number of partitions of subregion is divided for setting, and in the independent file system of each subregion setting System;
Division unit 13, for dividing SD card according to set number of partitions;
Memory cell 14, the partition information for preserving the division subregion.
SD card production tool scanning element 11 scans whole SD card, show that physics bad block is become reconciled block.SD card production tool point SD card can be divided into multiple subregions by area's unit 12 according to actual demand, and set the number of partitions to be divided.SD card amount Production instrument division unit 13 divides SD card according to set number of partitions, and SD card is divided into multiple subregions, the multiple point Area includes a main partition and more than one security partitioning.Main partition is that SD card gives tacit consent to the subregion used.In addition to main partition, SD card is also provided with several security partitionings, such as, security partitioning includes the first security partitioning and the second security partitioning, safety Subregion needs to coordinate intelligent terminal App and privately owned order just to conduct interviews.Each subregion can also be used as difference in functionality, Such as main partition is used as general data memory block, the first place of safety subregion could be arranged to system boot disk, the second safety point Area is to the important private data partition holding of user.Each subregion sets independent file system, so that each security partitioning Between, between security partitioning and main partition be all separate, for user, each subregion SD independent equivalent to one Card.SD card production tool memory cell 14 is preserved the partition information for dividing subregion, and partition information includes dividing subregion Quantity, the function of subregion and the corresponding sequence number of subregion.
Specifically, with further reference to Fig. 6, the system switched based on SD card multi partition described in the present embodiment, in addition to intelligence Energy terminal operating system, wherein,
The intelligent terminal App also includes:
App transmitting elements 31, the firmware for switching command to be sent to the SD card;
App receiving units 32, are returned for receiving the subregion sequence number of firmware return and the firmware of SD card of the SD card Switching result;
The firmware of the SD card also includes:
Firmware receiving unit 33, for receiving the switching command that the intelligent terminal App transmitting elements 31 are sent;
Unit 35 is changed, for changing respective partition sequence number according to be switched subregion;
Firmware transmitting element 36, the switching knot for sending the modification amended subregion sequence number of unit 35 and switch unit 38 Really;
Switch unit 38, for completing subregion switching according to the subregion sequence number.
The intelligent terminal operation system, including:
Carry unit 37, for carry SD card or plugs SD card again and reads file system.
When intelligent terminal App recognizes subregion switching to be carried out, switching command is sent to by App transmitting elements 31 first treats The subregion of switching, such as the second security partitioning.The firmware receiving unit 33 of the firmware of SD card receives the intelligent terminal App Switching command after, the intelligent terminal App switching commands sended over are responded.Change the subregion sequence number of unit 35 In the firmware operation of SD card, there is specific sequence number each security partitioning and main partition, and operation different subregions are needed The sequence number of operation is modified to specified partition sequence number.SD card carries out subregion using the firmware of SD card, and SD card can be by SD card in volume production Production tool sets the number of partitions, and each subregion has independent file system.User can be by intelligent terminal App privately owned life The firmware of order and SD card is communicated.When the authentication for being not provided with effect, the firmware of SD card is only provided to main partition address model Storage operation in enclosing, address out of range read-write is invalid, and user can only access main partition, on the premise of subregion sequence number is not changed, The data of other subregions are not influenceed on operations such as current bay formattings.Intelligent terminal App App receiving units 32 receive SD card The subregion sequence number that returns of firmware, and the corresponding subregion of subregion sequence number is confirmed.Intelligent terminal operation system carry unit 37 pairs of SD cards again carry when have two steps:Umount and Mount.Wherein, Umount can be unloaded hangs over Linux mesh at present File system in record.Windows partition as Linux one " file " is articulated to a Linux empty file by Mount Under folder, so that this catalogue is connected by Windows subregion and mnt.Carry out Umount when intelligent terminal operation system to The firmware of SD card updates FAT table (File Allocation Table, file allocation table).When carrying out Mount, system can be again Obtain the file system of subregion.If the firmware of SD card have received intelligent terminal App switching command, then in intelligent terminal behaviour When the file system of subregion is re-read as system, the firmware of SD card can be mapped to logical address new change partitions In, so as to return to the file system of new change partitions, intelligent terminal operation system is also in new change partitions when read-write. Switching result is returned to intelligent terminal App by the firmware of SD card, and intelligent terminal App App receiving units 32 receive the firmware of SD card The confirmation result of return, confirms that switching command is finished.
Specifically, as shown in fig. 7, the firmware of the SD card also includes:
Returning unit 41, the file system for returning to subregion after switching;
The intelligent terminal operation system also includes:
Read-write cell 42, for obtaining the corresponding file system of subregion after the switching, enters after the switching in subregion Row read-write operation.
The subregion that the firmware returning unit 41 of SD card returns to after switching is the file system of the second security partitioning, intelligent terminal Operating system read-write cell 42 obtains the corresponding file system in second security partitioning, is written and read in the second security partitioning Operation.Subregion after being switched is the write partitions of currently the only display, i.e., obtained and cut based on the system that SD card multi partition switches The file system sum of subregion after changing is according to this and the data of operation are carried out in subregion after handover, can not be at other points Operation is written and read simultaneously in area, so as to strengthen the security to user data.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of method switched based on SD card multi partition, it is characterised in that the method bag switched based on SD card multi partition Include following steps:
SD card is divided into multiple subregions by SD card production tool, and the multiple subregion includes a main partition and more than one peace Between full subregion, each security partitioning, it is mutually independent between the security partitioning and the main partition;
One of subregion in the multiple subregion that the firmware of SD card divides the SD card production tool is switched to currently The write partitions uniquely shown;Intelligent terminal App recognizes the subregion after the firmware switching of the SD card, comprises the following steps:Intelligence Switching command is sent to the firmware of the SD card by energy terminal App;The firmware of the SD card receives cutting for the intelligent terminal App Change order;The firmware of the SD card changes respective partition sequence number according to be switched order;The intelligent terminal App receives the SD The subregion sequence number that the firmware of card is returned;Intelligent terminal operation system carry SD card or again plug SD card reading file system System;The firmware of the SD card completes subregion switching according to the subregion sequence number;Switching result is returned to institute by the firmware of the SD card State intelligent terminal App.
2. the method as claimed in claim 1 switched based on SD card multi partition, it is characterised in that will in the firmware of the SD card One of subregion in the multiple subregion that the SD card production tool is divided switches to the read-write point of currently the only display Area;It is described based on the switching of SD card multi partition before the step of intelligent terminal App recognizes the subregion after the firmware switching of the SD card Method it is further comprising the steps of:
The step of subscriber authentication, subscriber authentication, includes:The intelligent terminal App sends privately owned order to described The firmware of SD card;The firmware of the SD card receives the privately owned order that the intelligent terminal App is sent, and user identity is tested Card, if what the firmware validation of SD card received is privately owned order that the intelligent terminal App is sent, subscriber authentication into Work(.
3. the method as claimed in claim 1 switched based on SD card multi partition, it is characterised in that the SD card production tool exists SD card is divided into multiple subregions during volume production, the multiple subregion includes the step of a main partition and more than one security partitioning Suddenly specifically include:
The SD card production tool scans SD card;
The SD card production tool setting divides the number of partitions of subregion, and in the independent file system of each subregion setting;
The SD card production tool divides SD card according to set number of partitions;
The SD card production tool preserves the partition information for dividing subregion.
4. the method switched based on SD card multi partition as described in any one of claims 1 to 3, it is characterised in that the intelligence Also include after the step of terminal App recognizes the subregion after the firmware switching of the SD card:
The firmware of the SD card returns to the file system of subregion after switching, and the intelligent terminal operation system is obtained after the switching The corresponding file system of subregion, is written and read operation after the switching in subregion.
5. a kind of system switched based on SD card multi partition, it is characterised in that including SD card production tool, the firmware of SD card and intelligence Energy terminal App, wherein,
The SD card production tool includes:
Division module, for SD card to be divided into multiple subregions, the multiple subregion includes a main partition and more than one Between security partitioning, each security partitioning, it is mutually independent between the security partitioning and the main partition;
The firmware of the SD card includes:
Handover module, switches to for one of subregion in the multiple subregion that divides the SD card production tool and works as The preceding write partitions uniquely shown;
Firmware receiving unit, for receiving the switching command that the intelligent terminal App transmitting elements are sent;
Unit is changed, for changing respective partition sequence number according to be switched subregion;
Firmware transmitting element, the switching result for sending the modification amended subregion sequence number of unit and switch unit;
Switch unit, for completing subregion switching according to the subregion sequence number;
The intelligent terminal operation system, including:
Carry unit, for carry SD card or plugs SD card again and reads file system;
Intelligent terminal App includes:
Identification module, for recognizing the subregion that the firmware of the SD card switches;
App transmitting elements, the firmware for switching command to be sent to the SD card;
App receiving units, the switching knot of the firmware return for receiving subregion sequence number and SD card that the firmware of the SD card is returned Really.
6. the system as claimed in claim 5 switched based on SD card multi partition, it is characterised in that the intelligent terminal App is also Including:
App transmitting elements, for sending firmware of the privately owned order to the SD card;
The firmware of the SD card also includes:
Firmware receiving unit, for receiving the privately owned order that the intelligent terminal App transmitting elements are sent;
Authentication unit, for being verified to user identity, if the firmware validation reception of SD card is that intelligent terminal App is sent Privately owned order, then subscriber authentication success.
7. the system as claimed in claim 5 switched based on SD card multi partition, it is characterised in that the SD card production tool Division module includes:
Scanning element, for scanning SD card;
Zoning unit, the number of partitions of subregion is divided for setting, and in the independent file system of each subregion setting;
Division unit, for dividing SD card according to set number of partitions;
Memory cell, the partition information for preserving the division subregion.
8. the system switched based on SD card multi partition as described in any one of claim 5 to 7, it is characterised in that the SD card Firmware also include:
Returning unit, the file system for returning to subregion after switching;
The intelligent terminal operation system also includes:
Read-write cell, for obtaining the corresponding file system of subregion after the switching, is written and read after the switching in subregion Operation.
CN201410277261.8A 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition Active CN104077546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410277261.8A CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410277261.8A CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Publications (2)

Publication Number Publication Date
CN104077546A CN104077546A (en) 2014-10-01
CN104077546B true CN104077546B (en) 2017-09-19

Family

ID=51598796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410277261.8A Active CN104077546B (en) 2014-06-19 2014-06-19 The method and system switched based on SD card multi partition

Country Status (1)

Country Link
CN (1) CN104077546B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462898B (en) * 2014-11-27 2018-01-16 中国华戎控股有限公司 File destination guard method and device based on android system
CN106020862A (en) * 2016-05-05 2016-10-12 深圳市硅格半导体股份有限公司 Webpage based network mass production method and device
CN106503513A (en) * 2016-09-23 2017-03-15 北京小米移动软件有限公司 Method for recognizing sound-groove and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034819A (en) * 2012-12-14 2013-04-10 隋国利 SD (Secure Digital) card capable of switching storage partitions and control method of SD card
CN103617404A (en) * 2013-12-17 2014-03-05 天津赢达信科技有限公司 Storing device of safety partitions

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874987B (en) * 2012-10-15 2016-11-16 华为终端有限公司 Embedded multi-media card partitioned storage space allocation method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034819A (en) * 2012-12-14 2013-04-10 隋国利 SD (Secure Digital) card capable of switching storage partitions and control method of SD card
CN103617404A (en) * 2013-12-17 2014-03-05 天津赢达信科技有限公司 Storing device of safety partitions

Also Published As

Publication number Publication date
CN104077546A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN101645310B (en) Flash memory equipment, method and system for managing flash memory
US8954705B2 (en) Memory space management method and memory controller and memory storage device and memory storage using the same
EP3377965B1 (en) Data processing method, device, and system
CN105677242A (en) Hot and cold data separation method and device
US20150161039A1 (en) Data erasing method, memory control circuit unit and memory storage apparatus
US20160124843A1 (en) Memory system and non-transitory computer readable recording medium
CN106170757B (en) A kind of date storage method and device
CN103034603A (en) Multi-channel flash memory card control device and control method thereof
CN111651371B (en) Asymmetric plane management method, data storage device and controller thereof
CN110489357B (en) Method and system for hiding data on removable storage device
CN104077546B (en) The method and system switched based on SD card multi partition
US9772937B2 (en) Data processing method, memory controller and memory storage apparatus
CN110908927A (en) Data storage device and method for deleting name space thereof
US20130282959A1 (en) System operation method and memory controller and memory storage device using the same
CN113311992B (en) Dynamic adjustment method and device for reserved space of solid state disk
US20110055430A1 (en) Method for establishing a communication channel between a host device and a memory device, associated memory device and controller thereof, and associated host device and host device application
EP2535846A1 (en) Method and apparatus for partitioning sd card, sd card and terminal devices
CN102413183B (en) Cloud intelligence switch and processing method and system thereof
CN111984557A (en) Data processing method, device and system
CN104991737A (en) Storage card array architecture based hard disk implementation method
CN106354718B (en) File management method and device of user identification module
CN102375781B (en) Data protecting method, memory controller and portable memory storage device
CN101667458B (en) Method for erasing solid state disk wholly and equipment thereof
CN103218300A (en) Data processing method, memory controller and memory storage device
US9146861B2 (en) Memory address management method, memory controller and memory storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant