WO2017076034A1 - 一种对移动终端的存储器进行格式化的方法和装置 - Google Patents

一种对移动终端的存储器进行格式化的方法和装置 Download PDF

Info

Publication number
WO2017076034A1
WO2017076034A1 PCT/CN2016/088541 CN2016088541W WO2017076034A1 WO 2017076034 A1 WO2017076034 A1 WO 2017076034A1 CN 2016088541 W CN2016088541 W CN 2016088541W WO 2017076034 A1 WO2017076034 A1 WO 2017076034A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
mobile terminal
formatting
value
storage capacity
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.)
Ceased
Application number
PCT/CN2016/088541
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) 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 Le Holdings Beijing Co Ltd, Lemobile Information Technology (Beijing) Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/247,822 priority Critical patent/US20170131946A1/en
Publication of WO2017076034A1 publication Critical patent/WO2017076034A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • Embodiments of the present invention relate to the field of storage technologies, and in particular, to a method for formatting a memory of a mobile terminal and a device for formatting a memory of the mobile terminal.
  • mobile terminals are becoming more and more popular.
  • equipment manufacturers of mobile terminals will produce mobile terminals with different storage capacities, for example, 32G, 64G or 128G, and the like.
  • the embodiment of the invention provides a method and a device for formatting a memory of a mobile terminal, which are used to solve the problem that different storage capacities of the memory in the prior art need to maintain multiple sets of codes, high code maintenance cost, and high code management complexity. problem.
  • an embodiment of the present invention provides a method for formatting a memory of a mobile terminal, where the method includes:
  • the formatting operation comprising: acquiring an available storage capacity value of the memory of the mobile terminal, the available The storage capacity value replaces the storage capacity value preset in the software code.
  • the software code is a software code shared by a memory of different storage capacity.
  • an embodiment of the present invention further provides an apparatus for formatting a memory of a mobile terminal, where the apparatus includes:
  • a format determining module configured to determine, when the mobile terminal is started, whether the memory of the mobile terminal has been formatted
  • a formatting module configured to perform a formatting operation on a memory of the mobile terminal when determining that the memory of the mobile terminal is not formatted, the formatting operation comprising: obtaining an available storage capacity of a memory of the mobile terminal And replacing the available storage capacity value with a preset storage capacity value in the software code, wherein the software code is a software code shared by a memory of a different storage capacity size.
  • a computer program comprising computer readable code, when the computer readable code is run on a mobile terminal, causing the mobile terminal to perform the memory of the mobile terminal as described above The method of formatting.
  • a computer readable medium wherein the computer program described above is stored.
  • the embodiment of the present invention when the mobile terminal is started, it is first determined whether the memory of the mobile terminal has been formatted, and if the memory is not formatted, performing, for the memory, obtaining an available storage capacity value of the memory of the mobile terminal, The format operation of replacing the storage capacity value preset in the software code with the available storage capacity value, the embodiment of the present invention uses a set of shared software code for the memory of different storage capacity, improves the compatibility of the software code, and reduces the software code. The dependency on memory and, as a result, the maintenance cost of the software code.
  • FIG. 1 is a flowchart of a first embodiment of a method for formatting a memory of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a second embodiment of a method for formatting a memory of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of Embodiment 1 of an apparatus for formatting a memory of a mobile terminal according to an embodiment of the present invention.
  • Figure 4 shows schematically a block diagram of a mobile terminal for carrying out the method according to the invention
  • Fig. 5 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 a flow chart of a first embodiment of a method for formatting a memory of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include the following steps:
  • Step 101 when detecting that the mobile terminal is started, determining whether the memory of the mobile terminal has been formatted;
  • Step 102 If it is determined that the memory of the mobile terminal is not formatted, perform a formatting operation on a memory of the mobile terminal, where the formatting operation includes: acquiring an available storage capacity value of the memory of the mobile terminal, The available storage capacity value replaces a storage capacity value preset in the software code, wherein the software code is a software code shared by a memory of a different storage capacity size.
  • the embodiment of the present invention when the mobile terminal is started, it is first determined whether the memory of the mobile terminal has been formatted, and if the memory is not formatted, performing, for the memory, obtaining an available storage capacity value of the memory of the mobile terminal, Replace the available storage capacity value with the default preset in the software code
  • the storage operation value and other formatting operations uses a set of shared software codes for different storage capacity memories, improves software code compatibility, reduces software code dependence on memory, and reduces software code. Maintenance costs.
  • FIG. 2 a flow chart of steps of a second embodiment of a method for formatting a memory of a mobile terminal according to an embodiment of the present invention is shown.
  • a mobile terminal including a memory, which may preferably be an eMMC (Embedded MultiMediaCard, an embedded memory standard specification established by the MMC Association).
  • eMMC embedded MultiMediaCard
  • a significant advantage of the eMMC memory is that A controller is integrated into the package that provides a standard interface and manages flash memory, enabling mobile device manufacturers to focus on other parts of product development and reduce time to market.
  • the eMMC coming out of the factory can include at least the following parts:
  • the Boot partition the boot partition, which may include the first Boot partition Boot 1 and the second Boot partition Boot 2. These two partitions are configured by the manufacturer during the production process and can be used to store the boot image boot image, default configuration parameters, and so on.
  • RPMB Play Protected Memory Block
  • the purpose of the RPMB is to store some special data that needs to be authorized for access.
  • User area the area where users can read and write storage.
  • the embodiment of the present invention provides a compatibility solution for different storage capacity sizes of the eMMC, and may include the following steps:
  • Step 201 When detecting that the mobile terminal is started, the preset boot loader Bootloader is used to read the value of the first format parameter preset in the Boot partition.
  • the first formatting parameter may be preset in the Boot partition of the eMMC (as an example, the first formatting parameter may be defined as an erase_data parameter), and the first formatting parameter may be a global The variable is used as the identifier for formatting the memory when the mobile terminal is booted for the first time.
  • the first formatting parameter may be a Boolean bool type parameter, and may be a value of true (or yes, that is, a first preset threshold) and false (or no, that is, a second preset threshold).
  • the value of the first formatting parameter may be defaulted to a first preset threshold.
  • the value of the first formatting parameter may be first read from the Boot partition.
  • the mobile terminal may use a boot loader Bootloader to read the value of the first format parameter from the Boot partition.
  • the Bootloader is the first piece of code executed by the embedded system after power-on, and the CPU completes the CPU. After formatting the relevant hardware, install the operating system image or the embedded embedded application into memory and then jump to the space where the operating system is located to start the operating system.
  • Step 202 Determine whether the value of the first format parameter is a first preset threshold or a second preset threshold; if the value of the first format parameter is a first preset threshold, perform step 203; The value of the first formatting parameter is a second preset threshold, then step 204 is performed;
  • Step 203 Determine that the mobile terminal is not formatted, and change the value of the first formatting parameter to a second preset threshold, and set a value of a second format parameter preset in the Boot partition. Is a third preset threshold;
  • a second formatting parameter is further defined in the Boot partition (as an example, the second formatting parameter may be defined as a cmdline.android.x.erase_userdata parameter), and is used as a mobile terminal.
  • Step 204 determining that the mobile terminal has been formatted, and setting a value of the preset second formatting parameter to a fourth preset threshold
  • Step 205 when entering the kernel layer of the operating system, reading the value of the second formatting parameter
  • the bootloader After the bootloader finishes running, it can enter the operating system kernel layer kernel of the mobile terminal.
  • the value of the second format parameter can be read to determine whether the memory of the mobile terminal has been formatted.
  • Step 206 If the value of the second formatting parameter is a third preset threshold, perform a formatting operation on the Data partition.
  • the formatting operation may be performed on the mobile terminal in the kernel layer. Specifically, the format operation may be performed on the data partition of the eMMC, where the format operation refers to the disk (the embodiment of the present invention) An operation that can be initialized for eMMC or partitions on a disk, which usually causes all files in the existing disk or partition to be cleaned up.
  • the formatting operation may specifically include: acquiring an available storage capacity value of the memory of the mobile terminal, and replacing the available storage capacity value with a storage capacity value preset in the software code.
  • the embodiment of the present invention can set a common software code for a plurality of different storage capacity memory to implement software code compatibility.
  • the shared software code can be preset.
  • the storage capacity value for example, 10G.
  • the shared software code is run, when the preset storage capacity value is read, the available storage capacity value of the memory of the mobile terminal may be further obtained, and the available storage capacity value is replaced with the preset storage capacity in the shared software code. A value such that the available storage capacity value of the memory is displayed in the mobile terminal.
  • the obtaining the available storage capacity value of the memory of the mobile terminal may be as follows:
  • the available storage capacity value of the first memory is 28G. If the preset storage capacity value in the shared software code is 10G, the 28G can be replaced with 10G in the software code, so that the available storage capacity value displayed by the mobile terminal is 28G to complete the memory formatting of the mobile terminal.
  • the available storage capacity value of the memory is 14G. If the preset storage capacity value in the shared software code is 10G, 14G can be replaced by 10G in the software code, so that the available storage capacity value displayed by the mobile terminal is 14G, to complete the memory formatting of the mobile terminal.
  • the eMMCs with different storage capacity values can share a common set of software codes, and replace the obtained storage capacity values of the eMMCs with the preset storage capacity values in the shared software code to implement software code compatibility. Sex, avoid the trouble of maintaining multiple sets of code, so that the software code does not need to consider more hardware changes, reduce the dependence of software code on the hardware, and eliminate the need to use the compile switch to control the compilation complexity of the code before the code runs.
  • FIG. 3 a structural block diagram of an apparatus for formatting a memory of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include the following modules:
  • the format determining module 301 is configured to determine, when the mobile terminal is started, whether the memory of the mobile terminal has been formatted;
  • a formatting module 302 configured to perform a formatting operation on a memory of the mobile terminal when determining that the memory of the mobile terminal is not formatted, the formatting operation comprising: acquiring available storage of a memory of the mobile terminal A capacity value that replaces the available storage capacity value with a storage capacity value preset in the software code.
  • the memory includes a boot partition boot partition
  • the format determining module 301 may include the following submodules:
  • the first formatting parameter reading submodule is configured to adopt a preset when detecting that the mobile terminal is started
  • the boot loader bootloader reads the value of the first formatted parameter preset in the boot partition
  • a determining sub-module configured to determine whether the value of the first formatting parameter is a first preset threshold or a second preset threshold
  • a first determining submodule configured to determine that the memory of the mobile terminal is not formatted when the value of the first formatting parameter is a first preset threshold
  • the second determining submodule is configured to determine that the memory of the mobile terminal has been formatted when the value of the first formatting parameter is a second preset threshold.
  • the device may further include the following modules:
  • a first parameter setting module configured to change a value of the first formatting parameter to a second preset threshold when determining that the memory of the mobile terminal is not formatted, and set a preset in the boot partition
  • the value of the second formatting parameter is a third preset threshold
  • a second parameter setting module configured to set a value of the second formatting parameter to a fourth preset threshold when determining that the memory of the mobile terminal has been formatted.
  • the memory further includes a user partition Data partition
  • the formatting module 302 may include the following sub-modules:
  • a second formatting parameter reading submodule configured to read a value of the second formatting parameter when entering a kernel layer of the operating system
  • the partition formatting submodule is configured to perform a formatting operation on the Data partition when the value of the second formatting parameter is a third preset threshold.
  • the obtaining the available storage capacity value of the memory of the mobile terminal is as follows:
  • the client or server embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, as part of the unit display.
  • the pieces may or may not be physical units, ie may be located in one place or may be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the mobile terminal in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 4 illustrates that a mobile terminal in accordance with the present invention can be implemented.
  • the mobile terminal conventionally includes a processor 410 and a computer program product or computer readable medium in the form of a memory 420.
  • the memory 420 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 420 has a memory space 430 for program code 431 for performing any of the method steps described above.
  • storage space 430 for program code may include various program code 431 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 420 in the mobile terminal of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 431', ie, code readable by a processor, such as 410, that when executed by the mobile terminal causes the mobile terminal to perform each of the methods described above step.

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 Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

一种对移动终端的存储器进行格式化的方法和装置,其中所述方法包括:在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化(101);若判定所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值(102),其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。所述方法和装置可以针对不同存储容量的存储器采用一套共用的软件代码,提高了软件代码的兼容性,降低了软件代码对存储器的依赖性,以及降低了软件代码的维护成本。

Description

一种对移动终端的存储器进行格式化的方法和装置
本申请要求在2015年11月6日提交中国专利局、申请号为201510756772.2、发明名称为“一种对移动终端的存储器进行格式化的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及存储技术领域,尤其涉及一种对移动终端的存储器进行格式化的方法以及一种对移动终端的存储器进行格式化的装置。
背景技术
随着信息技术的发展,移动终端越来越普及。为了满足不同用户群体的需求,移动终端的设备厂商会生产存储容量不同的移动终端,例如,32G、64G或128G等等。
在现有技术中,针对存储器的不同存储容量大小,需要维护一套对应的软件代码,则不同的存储容量需要维护多套代码,代码维护成本高,代码管理复杂度高。
发明内容
本发明实施例提供一种对移动终端的存储器进行格式化的方法和装置,用以解决现有技术中存储器的不同的存储容量需要维护多套代码,代码维护成本高,代码管理复杂度高的问题。
根据本发明的一个方面,本发明实施例提供一种对移动终端的存储器进行格式化的方法,所述方法包括:
在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
若判定所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值, 其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。
根据本发明的另一个方面,本发明实施例还提供一种对移动终端的存储器进行格式化的装置,所述装置包括:
格式化判断模块,用于在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
格式化模块,用于在判定所述移动终端的存储器还没有格式化时,对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值,其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在移动终端上运行时,导致所述移动终端执行上述的对移动终端的存储器进行格式化的方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
本发明的有益效果为:
在本发明实施例中,在移动终端启动时,首先判断移动终端的存储器是否已经格式化,若该存储器没有格式化,则对存储器执行获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值等格式化操作,本发明实施例针对不同存储容量的存储器采用一套共用的软件代码,提高了软件代码的兼容性,降低了软件代码对存储器的依赖性,以及,降低了软件代码的维护成本。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下 面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例的一种对移动终端的存储器进行格式化的方法实施例一的步骤流程图;
图2为本发明实施例的一种对移动终端的存储器进行格式化的方法实施例二的步骤流程图;
图3为本发明实施例的一种对移动终端的存储器进行格式化的装置实施例一的结构框图。
图4示意性地示出了用于执行根据本发明的方法的移动终端的框图;以及
图5示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参考图1,示出了本发明实施例的一种对移动终端的存储器进行格式化的方法实施例一的步骤流程图,具体可以包括如下步骤:
步骤101,在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
步骤102,若判定所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值,其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。
在本发明实施例中,在移动终端启动时,首先判断移动终端的存储器是否已经格式化,若该存储器没有格式化,则对存储器执行获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的 存储容量值等格式化操作,本发明实施例针对不同存储容量的存储器采用一套共用的软件代码,提高了软件代码的兼容性,降低了软件代码对存储器的依赖性,以及,降低了软件代码的维护成本。
参考图2,示出了本发明实施例的一种对移动终端的存储器进行格式化的方法实施例二的步骤流程图。
在本发明实施例中,可以应用于包含存储器的移动终端中,该存储器优选可以为eMMC((Embedded MultiMediaCard,MMC协会所订立的内嵌式存储器标准规格)存储器,eMMC存储器的一个明显优势是在封装中集成了一个控制器,它提供标准接口并管理闪存,使得移动终端厂商能够专注于产品开发的其它部分,并缩短向市场推出产品的时间。
通常,从厂家出来的eMMC可以至少可以包括如下部分:
Boot分区:即启动分区,可以包括第一Boot分区Boot 1和第二Boot分区Boot 2。这两个分区是由厂家在生产过程中配置好,可以用来存储启动图像boot image、default配置参数等等。
RPMB(Replay Protected Memory Block,回放保护内存块):存在目的是用来给系统存放一些特殊的、需要进行访问授权的数据。
User Data Area:用户分区,用户可以进行读写存储的区域,通常其大小为整块EMMC表示大小的93%左右,即4GB的eMMC UDA的区域只有4GB*93%=3809MB。
本发明实施例针对eMMC不同的存储容量大小提出了一种兼容性的解决方案,可以包括如下步骤:
步骤201,在检测到移动终端启动时,采用预设的引导加载程序Bootloader读取Boot分区中预设的第一格式化参数的值;
应用于本发明实施例,可以在eMMC的Boot分区中预先设置第一格式化参数(作为一种示例,该第一格式化参数可以定义为erase_data参数),该第一格式化参数可以为一个全局变量,用于作为移动终端第一次开机启动时对内存格式化的标识。
在实际中,第一格式化参数可以为布尔bool类型的参数,可取值为true(或yes,即第一预设阈值)和false(或no,即第二预设阈值),在 本发明实施例中,可以将第一格式化参数的值默认为第一预设阈值。
当移动终端上电启动后,可以首先从Boot分区中读取第一格式化参数的值。在具体实现中,移动终端可以采用引导加载程序Bootloader来从Boot分区中读取第一格式化参数的值,其中,Bootloader是嵌入式系统在加电后执行的第一段代码,在它完成CPU和相关硬件的格式化之后,再将操作系统映像或固化的嵌入式应用程序装在到内存中然后跳转到操作系统所在的空间,启动操作系统运行。
步骤202,判断所述第一格式化参数的值为第一预设阈值还是第二预设阈值;若所述第一格式化参数的值为第一预设阈值,则执行步骤203;若所述第一格式化参数的值为第二预设阈值,则执行步骤204;
例如,bootloader从Boot分区读取erase_data的取值,若erase_data=yes,则执行步骤203;如果erase_data=no,则执行步骤204。
步骤203,判定所述移动终端没有格式化,以及,将所述第一格式化参数的值更改为第二预设阈值,并设定所述Boot分区中预设的第二格式化参数的值为第三预设阈值;
具体来说,若第一格式化参数的值为第一预设阈值,例如,当erase_data=yes时,则可以判定该移动终端没有格式化,此时,可以将第一格式化参数的值更改为第二预设阈值,例如,设置erase_data=no,则移动终端下次开机启动时可以读取到该第一格式化参数的值为第二预设阈值。
应用于本发明实施例,在Boot分区中还定义有第二格式化参数(作为一种示例,该第二格式化参数可以定义为cmdline.android.x.erase_userdata参数),用于作为移动终端的操作系统进入内核层后对内存格式化的标识。当判定移动终端还没有格式化时,可以进一步读取第二格式化参数,并将第二格式化参数的值配置为第三预设阈值,例如,设定为cmdline.android.x.erase_userdata=yes。
步骤204,判定所述移动终端已经格式化,并设定预设的第二格式化参数的值为第四预设阈值;
若第一格式化参数的值为第二预设阈值,例如,当erase_data=no时,则可以判定该移动终端已经格式化,此时,可以将第二格式化参数的值 配
步骤205,当进入操作系统的内核层时,读取所述第二格式化参数的值;
当bootloader运行完毕以后,可以进入移动终端的操作系统内核层kernel,在操作系统内核层中,可以通过读取第二格式化参数的值来判断该移动终端的存储器是否已经格式化。
步骤206,若所述第二格式化参数的值为第三预设阈值,则对Data分区执行格式化操作。
当进入内核层kernel以后,如果读取的第二格式化参数的值为第三预设阈值,例如,cmdline.android.x.erase_userdata=yes,则在内核层中可以判定该移动终端还没有执行格式化操作,此时可以在内核层中对移动终端执行格式化操作,具体可以为,对eMMC的Data分区执行格式化操作,其中,格式化(format)操作是指对磁盘(本发明实施例可以为eMMC)或磁盘中的分区(partition)进行初始化的一种操作,这种操作通常会导致现有的磁盘或分区中所有的文件被清除。
在一种实施方式中,该格式化操作具体可以包括:获取所述移动终端的存储器的可用存储容量值,并将所述可用存储容量值替换软件代码中预设的存储容量值。
具体而言,本发明实施例能够为多种不同存储容量大小的存储器设置一套共用的软件代码,以实现软件代码的兼容性,为了实现共用性,该共用的软件代码中可以设置有预设的存储容量值,例如,10G。当运行该共用的软件代码,读取到该预设的存储容量值时,可以进一步获取移动终端的存储器的可用存储容量值,并将该可用存储容量值替换共用软件代码中预设的存储容量值,以使得在移动终端中显示该存储器的可用存储容量值。
在本发明实施例的一种优选实施例中,上述获取所述移动终端的存储器的可用存储容量值,可以采用如下方式:
获取所述移动终端的存储器的实际存储容量值;计算所述移动终端的存储器的已用存储容量值;计算所述实际存储容量值与所述已用存储容量值的差值,得到所述存储器的可用存储容量值。
例如,第一存储器的实际容量大小为32G,移动终端中安装的应用程序所占的已用存储容量值为4G,则该第一存储器的可用存储容量值为28G。若共用的软件代码中预设的存储容量值为10G,则可以将28G替换该软件代码中的10G,使得移动终端显示的可用存储容量值为28G,以完成移动终端的内存格式化。
又如,第二存储器的实际容量大小为16G,移动终端中安装的应用程序所占的已用存储容量值为2G,则该存储器的可用存储容量值为14G。若共用的软件代码中预设的存储容量值为10G,则可以将14G替换该软件代码中的10G,使得移动终端显示的可用存储容量值为14G,以完成移动终端的内存格式化。
另一方面,若第二格式化参数的值为第四预设阈值,例如,cmdline.android.x.erase_userdata=no,则在内核层中可以判定该移动终端已经执行格式化操作,此时可以结束流程。
在本发明实施例中,不同存储容量值的eMMC能够共用一套通用的软件代码,将获取到的eMMC的可用存储容量值替换共用软件代码中预设的存储容量值,以实现软件代码的兼容性,避免维护多套代码的麻烦,使软件代码不用考虑更多硬件的变动,降低软件代码对硬件的依赖性,省去了在代码运行前需用编译开关来控制代码的编译复杂性。
参考图3,示出了本发明实施例的一种对移动终端的存储器进行格式化的装置实施例的结构框图,具体可以包括如下模块:
格式化判断模块301,用于在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
格式化模块302,用于在判定所述移动终端的存储器还没有格式化时,对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值。
在本发明实施例的一种优选实施例中,所述存储器包括启动分区Boot分区,所述格式化判断模块301可以包括如下子模块:
第一格式化参数读取子模块,用于在检测到移动终端启动时,采用预设 的引导加载程序Bootloader读取所述Boot分区中预设的第一格式化参数的值;
判断子模块,用于判断所述第一格式化参数的值为第一预设阈值还是第二预设阈值;
第一判定子模块,用于在所述第一格式化参数的值为第一预设阈值时,判定所述移动终端的存储器没有格式化;
第二判定子模块,用于在所述第一格式化参数的值为第二预设阈值时,判定所述移动终端的存储器已经格式化。
在本发明实施例的一种优选实施例中,所述装置还可以包括如下模块:
第一参数设定模块,用于在判定所述移动终端的存储器没有格式化时,将所述第一格式化参数的值更改为第二预设阈值,并设定所述Boot分区中预设的第二格式化参数的值为第三预设阈值;
第二参数设定模块,用于在判定所述移动终端的存储器已经格式化时,设定所述第二格式化参数的值为第四预设阈值。
在本发明实施例的一种优选实施例中,所述存储器还包括用户分区Data分区,所述格式化模块302可以包括如下子模块:
第二格式化参数读取子模块,用于在进入操作系统的内核层时,读取所述第二格式化参数的值;
分区格式化子模块,用于在所述第二格式化参数的值为第三预设阈值时,对所述Data分区执行格式化操作。
在本发明实施例的一种优选实施例中,所述获取所述移动终端的存储器的可用存储容量值,采用如下方式:
获取所述移动终端的存储器的实际存储容量值;
计算所述移动终端的存储器的已用存储容量值;
计算所述实际存储容量值与所述已用存储容量值的差值,得到所述存储器的可用存储容量值。
对于图3的装置实施例而言,由于其与上述方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所描述的客户端或服务器实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部 件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动终端中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图4示出了可以实现根据本发明的移动终端。该移动终端传统上包括处理器410和以存储器420形式的计算机程序产品或者计算机可读介质。存储器420可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器420具有用于执行上述方法中的任何方法步骤的程序代码431的存储空间430。例如,用于程序代码的存储空间430可以包括分别用于实现上面的方法中的各种步骤的各个程序代码431。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图5所述的便携式或者固定存储单元。该存储单元可以具有与图4的移动终端中的存储器420类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码431’,即可以由例如诸如410之类的处理器读取的代码,这些代码当由移动终端运行时,导致该移动终端执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (12)

  1. 一种对移动终端的存储器进行格式化的方法,其特征在于,所述方法包括:
    在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
    若判定所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值,其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。
  2. 根据权利要求1所述的方法,其特征在于,所述存储器包括启动分区Boot分区,所述在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化的步骤包括:
    在检测到移动终端启动时,采用预设的引导加载程序Bootloader读取所述Boot分区中预设的第一格式化参数的值;
    判断所述第一格式化参数的值为第一预设阈值还是第二预设阈值;
    若所述第一格式化参数的值为第一预设阈值,则判定所述移动终端的存储器没有格式化;
    若所述第一格式化参数的值为第二预设阈值,则判定所述移动终端的存储器已经格式化。
  3. 根据权利要求2所述的方法,其特征在于,在所述若所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作的步骤之前,还包括:
    若判定所述移动终端的存储器没有格式化,则将所述第一格式化参数的值更改为第二预设阈值,并设定所述Boot分区中预设的第二格式化参数的值为第三预设阈值;
    若判定所述移动终端的存储器已经格式化,则设定所述第二格式化参数的值为第四预设阈值。
  4. 根据权利要求3所述的方法,其特征在于,所述存储器还包括用户分区Data分区,所述若所述移动终端的存储器还没有格式化,则对所述移动终端的存储器执行格式化操作的步骤包括:
    当进入操作系统的内核层时,读取所述第二格式化参数的值;
    若所述第二格式化参数的值为第三预设阈值,则对所述Data分区执行格式化操作。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述获取所述移动终端的存储器的可用存储容量值,采用如下方式:
    获取所述移动终端的存储器的实际存储容量值;
    计算所述移动终端的存储器的已用存储容量值;
    计算所述实际存储容量值与所述已用存储容量值的差值,得到所述存储器的可用存储容量值。
  6. 一种对移动终端的存储器进行格式化的装置,其特征在于,所述装置包括:
    格式化判断模块,用于在检测到移动终端启动时,判断所述移动终端的存储器是否已经格式化;
    格式化模块,用于在判定所述移动终端的存储器还没有格式化时,对所述移动终端的存储器执行格式化操作,所述格式化操作包括:获取所述移动终端的存储器的可用存储容量值,将所述可用存储容量值替换软件代码中预设的存储容量值,其中,所述软件代码为不同存储容量大小的存储器共用的软件代码。
  7. 根据权利要求6所述的装置,其特征在于,所述存储器包括启动分区Boot分区,所述格式化判断模块包括:
    第一格式化参数读取子模块,用于在检测到移动终端启动时,采用预设的引导加载程序Bootloader读取所述Boot分区中预设的第一格式化参数的值;
    判断子模块,用于判断所述第一格式化参数的值为第一预设阈值还是第二预设阈值;
    第一判定子模块,用于在所述第一格式化参数的值为第一预设阈值时,判定所述移动终端的存储器没有格式化;
    第二判定子模块,用于在所述第一格式化参数的值为第二预设阈值时,判定所述移动终端的存储器已经格式化。
  8. 根据权利要求7所述的装置,其特征在于,还包括:
    第一参数设定模块,用于在判定所述移动终端的存储器没有格式化时,将所述第一格式化参数的值更改为第二预设阈值,并设定所述Boot分区中预设的第二格式化参数的值为第三预设阈值;
    第二参数设定模块,用于在判定所述移动终端的存储器已经格式化时,设定所述第二格式化参数的值为第四预设阈值。
  9. 根据权利要求8所述的装置,其特征在于,所述存储器还包括用户分区Data分区,所述格式化模块包括:
    第二格式化参数读取子模块,用于在进入操作系统的内核层时,读取所述第二格式化参数的值;
    分区格式化子模块,用于在所述第二格式化参数的值为第三预设阈值时,对所述Data分区执行格式化操作。
  10. 根据权利要求6-9任一项所述的装置,其特征在于,所述获取所述移动终端的存储器的可用存储容量值,采用如下方式:
    获取所述移动终端的存储器的实际存储容量值;
    计算所述移动终端的存储器的已用存储容量值;
    计算所述实际存储容量值与所述已用存储容量值的差值,得到所述存储器的可用存储容量值。
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在移动终端上运行时,导致所述移动终端执行根据权利要求1-5中的任一个所述的对移动终端的存储器进行格式化的方法。
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
PCT/CN2016/088541 2015-11-06 2016-07-05 一种对移动终端的存储器进行格式化的方法和装置 Ceased WO2017076034A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/247,822 US20170131946A1 (en) 2015-11-06 2016-08-25 Method and device for formatting storage of mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510756772.2A CN105975291A (zh) 2015-11-06 2015-11-06 一种对移动终端的存储器进行格式化的方法和装置
CN201510756772.2 2015-11-06

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/247,822 Continuation US20170131946A1 (en) 2015-11-06 2016-08-25 Method and device for formatting storage of mobile terminal

Publications (1)

Publication Number Publication Date
WO2017076034A1 true WO2017076034A1 (zh) 2017-05-11

Family

ID=56988155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088541 Ceased WO2017076034A1 (zh) 2015-11-06 2016-07-05 一种对移动终端的存储器进行格式化的方法和装置

Country Status (3)

Country Link
US (1) US20170131946A1 (zh)
CN (1) CN105975291A (zh)
WO (1) WO2017076034A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874456A (zh) * 2018-06-29 2018-11-23 郑州云海信息技术有限公司 一种服务器软件的生成方法、装置、设备及存储介质
CN111538462A (zh) * 2020-04-28 2020-08-14 深圳市元征科技股份有限公司 一种外部存储设备格式化方法、装置以及相关设备
CN115268792A (zh) * 2022-08-02 2022-11-01 亿咖通(湖北)技术有限公司 一种车机的重新分区方法、装置、车机及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183337A (zh) * 2007-12-12 2008-05-21 中兴通讯股份有限公司 基于nand flash移动终端存储介质的空间管理方法
CN101840341A (zh) * 2010-04-01 2010-09-22 惠州Tcl移动通信有限公司 智能手机系统及其启动方法
CN101957769A (zh) * 2010-09-27 2011-01-26 浙江大学 Mid多操作系统并行方法
CN102184111A (zh) * 2011-04-29 2011-09-14 杭州海康威视数字技术股份有限公司 操作系统在线升级方法及带操作系统的设备
JP2011181074A (ja) * 2011-03-10 2011-09-15 Seiko Epson Corp 無線通信装置の設定方法、記憶媒体、情報処理装置、記録方法、及びシステム
CN104679545A (zh) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 一种设备及设备启动方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491064B (zh) * 2012-06-14 2017-12-01 腾讯科技(深圳)有限公司 终端软件维护方法、业务客户端及业务服务器
CN103116640B (zh) * 2013-02-21 2015-12-23 珠海全志科技股份有限公司 Fat文件系统格式化方法及装置
CN104699416B (zh) * 2013-12-10 2017-12-01 杭州海康威视系统技术有限公司 一种数据存储系统以及一种数据存储方法
CN103984570B (zh) * 2014-05-07 2017-05-31 珠海全志科技股份有限公司 嵌入式安卓系统的固件处理的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183337A (zh) * 2007-12-12 2008-05-21 中兴通讯股份有限公司 基于nand flash移动终端存储介质的空间管理方法
CN101840341A (zh) * 2010-04-01 2010-09-22 惠州Tcl移动通信有限公司 智能手机系统及其启动方法
CN101957769A (zh) * 2010-09-27 2011-01-26 浙江大学 Mid多操作系统并行方法
JP2011181074A (ja) * 2011-03-10 2011-09-15 Seiko Epson Corp 無線通信装置の設定方法、記憶媒体、情報処理装置、記録方法、及びシステム
CN102184111A (zh) * 2011-04-29 2011-09-14 杭州海康威视数字技术股份有限公司 操作系统在线升级方法及带操作系统的设备
CN104679545A (zh) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 一种设备及设备启动方法

Also Published As

Publication number Publication date
US20170131946A1 (en) 2017-05-11
CN105975291A (zh) 2016-09-28

Similar Documents

Publication Publication Date Title
US9122501B1 (en) System and method for managing multiple bios default configurations
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
WO2015062389A1 (zh) 一种终端设备卸载系统应用的方法和装置
US20120117367A1 (en) Electronic apparatus and booting method thereof
US8788800B2 (en) OS processing method, system and non-transitory computer readable storage medium thereof
WO2016183951A1 (zh) 一种系统升级方法及终端
CN106484719B (zh) 一种扩展手机存储的方法及终端
WO2015103917A1 (zh) 无线路由设备管理方法和装置
WO2018040270A1 (zh) 在Windows系统中加载Linux系统ELF文件的方法及装置
WO2017107843A1 (zh) 周期性任务的处理方法和装置及计算机程序和可读介质
CN113656049A (zh) 一种操作系统部署方法、装置及电子设备和存储介质
CN108776595A (zh) 一种gpu服务器的显卡的识别方法、装置、设备及介质
WO2017000567A1 (zh) 一种实现bootrom升级的方法及装置
CN111930575B (zh) 一种固件获取方法、装置及电子设备
CN106341391A (zh) 一种可快速移植适配硬件的方法及防火墙
CN104536841B (zh) 一种Android系统Data分区自修复方法及系统
CN103677745B (zh) 一种在龙芯主板中写入和读取设备标识的方法
WO2017076034A1 (zh) 一种对移动终端的存储器进行格式化的方法和装置
CN113778485A (zh) 电子芯片的系统运行方法、装置、电子芯片和存储介质
CN107391120A (zh) 一种启动控制方法、电子设备及计算机可读存储介质
CN116339792A (zh) 固件更换方法、计算机系统、介质及产品
CN108052337A (zh) 一种eMMC量产工具的固件升级方法及装置
CN113950673B (zh) 非易失性存储分区标识符
US12288076B2 (en) Reversible virtual factory reset
CN109725939A (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: 16861304

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16861304

Country of ref document: EP

Kind code of ref document: A1