WO2019148791A1 - Method for fast activation of firmware of flash memory, and short structure stored in flash memory - Google Patents
Method for fast activation of firmware of flash memory, and short structure stored in flash memory Download PDFInfo
- Publication number
- WO2019148791A1 WO2019148791A1 PCT/CN2018/099738 CN2018099738W WO2019148791A1 WO 2019148791 A1 WO2019148791 A1 WO 2019148791A1 CN 2018099738 W CN2018099738 W CN 2018099738W WO 2019148791 A1 WO2019148791 A1 WO 2019148791A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- firmware
- short structure
- flash memory
- short
- flash
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Definitions
- the present invention relates to the field of flash firmware boot technology.
- the flash memory manufacturing process is improved, and high temperature is generated during operation, so the error bit of the flash data will rise, resulting in data errors.
- the flash firmware is a piece of software designed to manipulate a wide variety of functions in the flash master chip. Usually the first firmware is placed in flash memory, so the reliability of the flash save data is very important.
- the flash memory is a non-disappearing memory device. As shown in FIG. 1, the flash memory is composed of a plurality of blocks, each block is composed of a plurality of pages, and each page is composed of a plurality of sectors. Because the flash needs to be erased before writing data. Each erase will reduce the life of the flash block, and soon there will be bad or bad pages. The product will find a usable block at the time of production. The page available in the selected block is the location where the firmware is written. The first loaded firmware after the power is turned on will affect whether the entire device can operate normally.
- One of the objects of the present invention is to provide a method for quickly booting the flash firmware, which can quickly find the firmware while maintaining high correctness.
- a second object of the present invention is to provide a short structure that provides a basis for quickly searching for firmware.
- a method of quickly starting a flash firmware comprising:
- the short structure is preferentially found, and the firmware is found by the firmware location information in the short structure.
- one page is selected from each block in the flash memory, and a plurality of the short structures are stored in the first sector of the selected page.
- the selected page is the first page of each block.
- the short structure stored in the flash memory stores firmware location information, and the short structure is preferentially found after the power is turned on, and the firmware is found by the firmware location information in the short structure.
- the short structure is stored in the first sector of the first page of each block in the flash memory.
- the beneficial effects of the present invention are that the present invention establishes a basis for quickly searching for firmware by designing a short structure. Using the short structure to find the firmware, as long as some of the data in the page is available, the short structure can be written, which can greatly reduce the search time and is suitable for various types of search methods. At the same time, since the amount of data of the short structure is small, a plurality of short structures can be placed, thereby reducing the incidence of errors.
- Figure 1 is a structural diagram of a flash memory
- Fig. 2 is a schematic view showing the storage position of the short structure in the present invention.
- a method of quickly starting a flash firmware comprises the steps of:
- the short structure is stored in the flash memory.
- the short structure is preferentially found, and the firmware is found by the firmware location information in the short structure. Compared to the traditional way, you can directly find the firmware data of the entire page.
- one page is selected in each block of the flash memory, which is generally the first page, which can ensure that the short structure is preferentially found after the power is turned on.
- a plurality of short structures are stored in the first sector of the selected page, because the short structure has a small amount of data and can be placed in multiples, thereby reducing the incidence of errors.
- the short structure stored in the flash memory stores firmware location information, and the short structure is preferentially found after the power is turned on, and the firmware is found by the firmware location information in the short structure.
- the short structure is stored in the first sector of the first page of each block in the flash memory, which can ensure that the short structure is preferentially found after the power is turned on.
Abstract
Disclosed is a method for fast activation of a firmware of a flash memory, comprising: designing a short structure storing location information of a firmware; storing the short structure in a flash memory; and after a power supply has been powered up, finding, with priority, the short structure, and finding the firmware according to the location information of the firmware in the short structure. The invention enables a firmware to be found quickly while maintaining high accuracy. Also disclosed is a short structure stored in a flash memory for quick search of a firmware.
Description
本发明涉及闪存固件启动技术领域。The present invention relates to the field of flash firmware boot technology.
闪存随者制造工艺提升,运作时会产生高温,因此闪存数据的错误比特会上升,导致数据错误。闪存固件为一个软件,目的是操控闪存主控芯片中的各式各样功能。通常第一个固件会放在闪存内,所以闪存保存数据的可靠性非常重要。闪存为非消失性的存储器装置,如图1所示闪存由多个块组成,每个块由多个页组合而成,每个页由多个扇形组合而成。由于闪存写入数据前需要经过抹除。每次抹除都会减少闪存块的寿命,很快的会有坏块或坏页产生,产品在生产时会找到一个可用的块,选中块中可用的页为写入固件的位置。当电源起动后第一个加载的固件,会影响到整个装置是否能正常运作。The flash memory manufacturing process is improved, and high temperature is generated during operation, so the error bit of the flash data will rise, resulting in data errors. The flash firmware is a piece of software designed to manipulate a wide variety of functions in the flash master chip. Usually the first firmware is placed in flash memory, so the reliability of the flash save data is very important. The flash memory is a non-disappearing memory device. As shown in FIG. 1, the flash memory is composed of a plurality of blocks, each block is composed of a plurality of pages, and each page is composed of a plurality of sectors. Because the flash needs to be erased before writing data. Each erase will reduce the life of the flash block, and soon there will be bad or bad pages. The product will find a usable block at the time of production. The page available in the selected block is the location where the firmware is written. The first loaded firmware after the power is turned on will affect whether the entire device can operate normally.
找寻固件有两个问题,一个是搜寻时间,一个是数据的正确性。由于每个固件在各个产品的闪存中的位置都不相同,必须定义一套搜寻方式来找寻固件的位置,例如依序找寻,从块0页0、块1页0依序找寻。如果遇到质量较差的闪存,能完整使用的块数量很少,例如只有块1000页0能用,就要搜寻一千次。There are two problems with finding firmware, one is the search time, and the other is the correctness of the data. Since each firmware has a different location in the flash memory of each product, a search method must be defined to find the location of the firmware, for example, in order, from block 0 page 0, block 1 page 0. If you encounter a poor quality flash, the number of blocks that can be used completely is small. For example, if only 1000 pages of 0 can be used, it is necessary to search for a thousand times.
发明内容Summary of the invention
本发明的目的之一在于提供快速启动闪存固件方法,能快速搜寻到固件,又能维持高正确性。One of the objects of the present invention is to provide a method for quickly booting the flash firmware, which can quickly find the firmware while maintaining high correctness.
本发明的目的之二在于提供短结构体,为快速搜寻固件提供基础。A second object of the present invention is to provide a short structure that provides a basis for quickly searching for firmware.
实现上述目的的技术方案是:The technical solution to achieve the above objectives is:
本发明之一的快速启动闪存固件方法,包括:A method of quickly starting a flash firmware according to one of the present inventions, comprising:
设计一个存有固件位置信息的短结构体;Design a short structure with firmware location information;
将短结构体存入闪存;Store the short structure in the flash memory;
电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。After the power is turned on, the short structure is preferentially found, and the firmware is found by the firmware location information in the short structure.
优选的,闪存中每个块中选一个页,选定页的首个扇形内存储多个所述短结构体。Preferably, one page is selected from each block in the flash memory, and a plurality of the short structures are stored in the first sector of the selected page.
优选的,所述的选定页为每个块的首页。Preferably, the selected page is the first page of each block.
本发明之二的存储于闪存中的短结构体,该短结构体存有固件位置信息,电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。According to a second aspect of the present invention, the short structure stored in the flash memory stores firmware location information, and the short structure is preferentially found after the power is turned on, and the firmware is found by the firmware location information in the short structure.
优选的,短结构体存储于闪存中每个块的首页的首个扇形内。Preferably, the short structure is stored in the first sector of the first page of each block in the flash memory.
本发明的有益效果是:本发明通过设计短结构体,为快速搜寻固件建立基础。利用短结构体找到固件,只要页中部份数据可用就可写入短结构体,可以大幅减少搜寻的时间并且适用于各类型的搜寻方式。同时,由于短结构体的数据量很小,可以放入多个短结构体,从而减少错误的发生率。The beneficial effects of the present invention are that the present invention establishes a basis for quickly searching for firmware by designing a short structure. Using the short structure to find the firmware, as long as some of the data in the page is available, the short structure can be written, which can greatly reduce the search time and is suitable for various types of search methods. At the same time, since the amount of data of the short structure is small, a plurality of short structures can be placed, thereby reducing the incidence of errors.
图1是闪存的结构图;Figure 1 is a structural diagram of a flash memory;
图2是本发明中短结构体的存储位置示意图。Fig. 2 is a schematic view showing the storage position of the short structure in the present invention.
下面将结合附图对本发明作进一步说明。The invention will now be further described with reference to the accompanying drawings.
本发明之一的快速启动闪存固件方法,包括步骤:A method of quickly starting a flash firmware according to one of the present invention comprises the steps of:
一、设计一个存有固件位置信息的短结构体。1. Design a short structure with firmware location information.
二、将短结构体存入闪存。Second, the short structure is stored in the flash memory.
三、电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。相较于传统方式,可以直接找到整个页的固件数据。Third, after the power is turned on, the short structure is preferentially found, and the firmware is found by the firmware location information in the short structure. Compared to the traditional way, you can directly find the firmware data of the entire page.
如图2所示,在闪存中每个块中选一个页,一般为首页,可以保证在电源启动后优先找到短结构体。As shown in Figure 2, one page is selected in each block of the flash memory, which is generally the first page, which can ensure that the short structure is preferentially found after the power is turned on.
在选定页的首个扇形内存储多个短结构体,因为短结构体的数据量很小,可以放入多个,从而可以减少错误的发生率。A plurality of short structures are stored in the first sector of the selected page, because the short structure has a small amount of data and can be placed in multiples, thereby reducing the incidence of errors.
本发明之二的存储于闪存中的短结构体,该短结构体存有固件位置信息,电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。According to a second aspect of the present invention, the short structure stored in the flash memory stores firmware location information, and the short structure is preferentially found after the power is turned on, and the firmware is found by the firmware location information in the short structure.
如图2,短结构体存储于闪存中每个块的首页的首个扇形内,可以保证在电源启动后优先找到短结构体。As shown in Fig. 2, the short structure is stored in the first sector of the first page of each block in the flash memory, which can ensure that the short structure is preferentially found after the power is turned on.
以上实施例仅供说明本发明之用,而非对本发明的限制,有关技术领域的技术人员,在不脱离本发明的精神和范围的情况下,还可以作出各种变换或变型,因此所有等同的技术方案也应该属于本发明的范畴,应由各权利要求所限定。The above embodiments are merely illustrative of the invention, and are not intended to limit the invention, and various modifications and changes can be made without departing from the spirit and scope of the invention. The technical solution should also fall within the scope of the invention and should be defined by the claims.
Claims (5)
- 一种快速启动闪存固件方法,其特征在于,包括:A method for quickly starting a flash firmware, comprising:设计一个存有固件位置信息的短结构体;Design a short structure with firmware location information;将短结构体存入闪存;Store the short structure in the flash memory;电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。After the power is turned on, the short structure is preferentially found, and the firmware is found by the firmware location information in the short structure.
- 根据权利要求1所述的快速启动闪存固件方法,其特征在于,闪存中每个块中选一个页,选定页的首个扇形内存储多个所述短结构体。The quick start flash firmware method according to claim 1, wherein one of each block in the flash memory is selected, and a plurality of said short structures are stored in a first sector of the selected page.
- 根据权利要求2所述的快速启动闪存固件方法,其特征在于,所述的选定页为每个块的首页。The method of quickly starting a flash firmware according to claim 2, wherein said selected page is a top page of each block.
- 一种存储于闪存中的短结构体,其特征在于,该短结构体存有固件位置信息,电源启动后优先找到短结构体,通过短结构体中固件位置信息找到固件。A short structure stored in a flash memory, characterized in that the short structure body stores firmware location information, and after the power source is started, the short structure body is preferentially found, and the firmware is found by the firmware location information in the short structure body.
- 根据权利要求4所述的短结构体,其特征在于,短结构体存储于闪存中每个块的首页的首个扇形内。The short structure according to claim 4, wherein the short structure is stored in a first sector of the top page of each block in the flash memory.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810088577.0 | 2018-01-30 | ||
CN201810088577.0A CN108304228A (en) | 2018-01-30 | 2018-01-30 | The short structure for quickly starting flash firmware method and being stored in flash memory |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019148791A1 true WO2019148791A1 (en) | 2019-08-08 |
Family
ID=62867238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/099738 WO2019148791A1 (en) | 2018-01-30 | 2018-08-09 | Method for fast activation of firmware of flash memory, and short structure stored in flash memory |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108304228A (en) |
WO (1) | WO2019148791A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304228A (en) * | 2018-01-30 | 2018-07-20 | 江苏华存电子科技有限公司 | The short structure for quickly starting flash firmware method and being stored in flash memory |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1536488A (en) * | 2003-04-04 | 2004-10-13 | 上海交大达通电子信息有限公司 | Method of network up-grade embedded system firm ware |
CN101458659A (en) * | 2007-12-14 | 2009-06-17 | 环达电脑(上海)有限公司 | Flash memory system and method thereof |
CN102147771A (en) * | 2011-04-08 | 2011-08-10 | 深圳市江波龙电子有限公司 | Method for finding storage position of firmware program of flash memory device |
CN108304228A (en) * | 2018-01-30 | 2018-07-20 | 江苏华存电子科技有限公司 | The short structure for quickly starting flash firmware method and being stored in flash memory |
-
2018
- 2018-01-30 CN CN201810088577.0A patent/CN108304228A/en active Pending
- 2018-08-09 WO PCT/CN2018/099738 patent/WO2019148791A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1536488A (en) * | 2003-04-04 | 2004-10-13 | 上海交大达通电子信息有限公司 | Method of network up-grade embedded system firm ware |
CN101458659A (en) * | 2007-12-14 | 2009-06-17 | 环达电脑(上海)有限公司 | Flash memory system and method thereof |
CN102147771A (en) * | 2011-04-08 | 2011-08-10 | 深圳市江波龙电子有限公司 | Method for finding storage position of firmware program of flash memory device |
CN108304228A (en) * | 2018-01-30 | 2018-07-20 | 江苏华存电子科技有限公司 | The short structure for quickly starting flash firmware method and being stored in flash memory |
Also Published As
Publication number | Publication date |
---|---|
CN108304228A (en) | 2018-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI385516B (en) | Flash memory storage system and data writing method thereof | |
TWI375962B (en) | Data writing method for flash memory and storage system and controller using the same | |
TWI375151B (en) | A controller for one type of nand flash memory for emulating another type of nand flash memory and methods for the same | |
CN102306125B (en) | A kind of data erasing-writing method of FLASH memory | |
US20190080730A1 (en) | Storage device and data training method thereof | |
TWI486957B (en) | Method, device and operating system for processing, using a nand flash memory burn data | |
US11409650B2 (en) | Method for managing flash memory module and associated flash memory controller and electronic device | |
EP3964941B1 (en) | Read-write method and memory device | |
US10162532B2 (en) | Data storage device and mode-detection method thereof | |
TW201250695A (en) | Memory erasing method, memory controller and memory storage apparatus | |
TWI591642B (en) | Memory controller and method of controlling semiconductor memory device | |
US9754682B2 (en) | Implementing enhanced performance with read before write to phase change memory | |
WO2019148791A1 (en) | Method for fast activation of firmware of flash memory, and short structure stored in flash memory | |
JP5985529B2 (en) | Apparatus, method and device for rapid resumption from hibernation | |
US11380418B2 (en) | Memory controllers, storage devices, and operating methods of the storage devices | |
US20140075103A1 (en) | Method capable of increasing performance of a memory and related memory system | |
US10599562B2 (en) | Nonvolatile memory device configured to be accessed without block address and method of operating the same | |
JP2008084184A (en) | Memory controller | |
TW201115337A (en) | Data storage device, controller, and method for data access of a downgrade memory | |
US7765367B2 (en) | Control device for accelerating memory to execute iterant command | |
US10489077B2 (en) | Systems and methods for controlling metapage storage on data storage devices | |
TWI520148B (en) | Memory devices and memory control methods thereof | |
CN111324549A (en) | Memory and control method and device thereof | |
TWI622044B (en) | Memory managing method, memory control circuit unit and memory storage apparatus | |
US20130311718A1 (en) | System and method of making golden master |
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: 18904479 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: 18904479 Country of ref document: EP Kind code of ref document: A1 |