CN101825995B - Method for supporting reading and writing of files on small flash memory partitions - Google Patents

Method for supporting reading and writing of files on small flash memory partitions Download PDF

Info

Publication number
CN101825995B
CN101825995B CN2010101685597A CN201010168559A CN101825995B CN 101825995 B CN101825995 B CN 101825995B CN 2010101685597 A CN2010101685597 A CN 2010101685597A CN 201010168559 A CN201010168559 A CN 201010168559A CN 101825995 B CN101825995 B CN 101825995B
Authority
CN
China
Prior art keywords
flash memory
writing
files
small flash
reading
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
CN2010101685597A
Other languages
Chinese (zh)
Other versions
CN101825995A (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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN2010101685597A priority Critical patent/CN101825995B/en
Publication of CN101825995A publication Critical patent/CN101825995A/en
Application granted granted Critical
Publication of CN101825995B publication Critical patent/CN101825995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for supporting the reading and writing of files on small flash memory partitions. When an operation system is started, a process for supporting the reading and writing of files on the small flash memory partitions is started and run; the process supporting the reading and writing of files on the small flash memory partitions reads out original data from the small flash memory partitions and unpacks a directory tree to a designated temporary directory; an application program of the data on the small flash memory partition is used for utilizing the process whichreads and writes files on the small flash memory partition to operate an directory tree file which is unpacked in the temporary directory; and when a flash memory writing request exists, the operation system sends a message to the process for supporting the reading and writing of files on the small flash memory partition, and after receiving the message, the process writes the directory tree filein the designated temporary directory into the small flash memory partition after packing the directory tree file. Even when a flash memory with small capacity is used, the reading and writing operation of files on the small flash memory partition can be realized by utilizing the method, so the cost can be reduced by utilizing the small flash memory partition.

Description

Be supported in the method for reading and writing of files on the small flash memory partitions
Technical field
The present invention relates to embedded system, relate in particular in the embedded system, the method for reading and writing of files on small flash memory partitions.
Background technology
Continue deeply along with industry-by-industry is informationalized in recent years, embedded system has been widely used in a plurality of fields such as network service, consumer electronics, manufacturing, Industry Control, safety-protection system because of its customizability.In order to adapt to the growing functional density of software, the connection of hardware flexible net, little power consumption, requirement cheaply, using inexpensive less flash memory to reduce cost as storer is a kind of effective method.
But the subregion of some little flash memory is too small, has the shortcoming that is not enough to set up read-write file system.
Summary of the invention
The present invention seeks to: at the deficiencies in the prior art, when using the flash memory of low capacity reducing cost, still can reserve the sub-fraction subregion and preserve file, propose a kind of method that is supported in reading and writing of files on the small flash memory partitions.
Technical scheme of the present invention is: a kind of method that is supported in reading and writing of files on the small flash memory partitions comprises the steps:
Step 1: when os starting, start the process that operation is supported in reading and writing of files on the small flash memory partitions;
Step 2: the process that is supported in reading and writing of files on the small flash memory partitions is read raw data from small flash memory partitions, and unpacks directory tree in the temp directory of appointment;
Step 3: use the process of application program utilization reading and writing of files on small flash memory partitions of the data on this small flash memory partitions to operate to separating the directory tree file that wraps in the temp directory;
Step 4: when writing the flash memory request, operating system is sent out message and is given the process that is supported in reading and writing of files on the small flash memory partitions, and this process will be write in the small flash memory partitions after the packing of the directory tree file in the temp directory of appointment after receiving message.
Further, the program of using data on this small flash memory partitions in the step 3 comprises the operation that the file of the directory tree that unpacks carries out: create, read, revise and delete.
Advantage of the present invention is: even use the flash memory of low capacity, also can realize falling cost thereby can use than small flash memory partitions at the read-write operation of the enterprising style of writing part of small flash memory partitions.Wherein, to directory tree packing and the process application programs that unpacks is transparent, also constant to the file operation process, difference just needs application program need notify the process that is supported in reading and writing of files on the small flash memory partitions by sending out message when preserving data to subregion, like this can minimal modification application program, thereby reduce cost, easy to maintenance.
Description of drawings
Below in conjunction with drawings and Examples the present invention is further described:
Fig. 1 is the process flow diagram of embodiments of the invention.
Embodiment
Embodiment: the method that is supported in reading and writing of files on the small flash memory partitions of present embodiment, its principle is to have designed a process of supporting file read-write on than small flash memory partitions, the process code that will be supported in reading and writing of files on the small flash memory partitions by computing machine and software kit program is incorporated in the file system mirror image, when os starting, earlier it is moved as a background process, thereby realize supporting that than small flash memory partitions file is read-write.
When os starting, start the process that operation is supported in reading and writing of files on the small flash memory partitions, the process that is supported in reading and writing of files on the small flash memory partitions starts with the startup of operating system.
When being supported in the process initiation of reading and writing of files on the small flash memory partitions raw data is read from the subregion of flash memory, unpack directory tree then in the temp directory of appointment.
Use the application program utilization of the data on this small flash memory partitions to be supported in file in the temp directory of process operation appointment of reading and writing of files on the small flash memory partitions, when needs are preserved, (send when preserving request), send out message by operating system and give the process that is supported in reading and writing of files on the small flash memory partitions.Operation comprises establishment to file, reads, revises and delete.Use the application program of the data on this small flash memory partitions needn't be concerned about real position and the form of storing of data, only need the operation that in the temp directory of appointment, create, read, revise and delete file.
Be supported on the small flash memory partitions and will write in the small flash memory partitions after the packing of the directory tree in the temp directory of appointment after the process of reading and writing of files receives message.
In this process, application program is to the operating process of directory tree file, and the directory tree file in the temporary file and the conversion that is stored between the data on the flash partition are all finished by being supported on the small flash memory partitions process of reading and writing of files.The process that is supported in reading and writing of files on the small flash memory partitions is transparent to packing of directory tree file and the process that unpacks to the application program of using the data on this small flash memory partitions, operating process to file is constant, difference just needs application program need send out message by operating system when preserving data to subregion to notify the process that is supported in reading and writing of files on the small flash memory partitions, by this process preservation process of packing, like this can minimal modification application program, thereby reduce cost, easy to maintenance.
The above only is the preferred embodiments of the present invention, can not limit scope of the invention process with this, and all simple conversion of doing according to claim of the present invention and description all should still belong to the protection domain that the present invention covers.

Claims (2)

1. a method that is supported in reading and writing of files on the small flash memory partitions is characterized in that comprising the steps:
Step 1: when os starting, start the process that operation is supported in reading and writing of files on the small flash memory partitions;
Step 2: the process that is supported in reading and writing of files on the small flash memory partitions is read raw data from small flash memory partitions, and unpacks directory tree in the temp directory of appointment;
Step 3: use the process of application program utilization reading and writing of files on small flash memory partitions of the data on this small flash memory partitions to operate to separating the directory tree file that wraps in the temp directory;
Step 4: when writing the flash memory request, operating system is sent out message and is given the process that is supported in reading and writing of files on the small flash memory partitions, and this process will be write in the small flash memory partitions after the packing of the directory tree file in the temp directory of appointment after receiving message.
2. according to the method that is supported in reading and writing of files on the small flash memory partitions described in the claim 1, it is characterized in that: the program of using data on this small flash memory partitions in the step 3 comprises the operation of separating the directory tree file that wraps in the temp directory and carrying out: create, read, revise and delete.
CN2010101685597A 2010-05-11 2010-05-11 Method for supporting reading and writing of files on small flash memory partitions Active CN101825995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101685597A CN101825995B (en) 2010-05-11 2010-05-11 Method for supporting reading and writing of files on small flash memory partitions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101685597A CN101825995B (en) 2010-05-11 2010-05-11 Method for supporting reading and writing of files on small flash memory partitions

Publications (2)

Publication Number Publication Date
CN101825995A CN101825995A (en) 2010-09-08
CN101825995B true CN101825995B (en) 2011-08-03

Family

ID=42689929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101685597A Active CN101825995B (en) 2010-05-11 2010-05-11 Method for supporting reading and writing of files on small flash memory partitions

Country Status (1)

Country Link
CN (1) CN101825995B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304959C (en) * 2003-09-16 2007-03-14 深圳市格林耐特通信技术有限责任公司 Method of reading -writing data using disk file virtual flash
CN101488153A (en) * 2009-02-12 2009-07-22 浙江大学 Method for implementing high-capacity flash memory file system in embedded type Linux

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154788A (en) * 1997-04-25 2000-11-28 Simple Technology, Inc. Multi-function module incorporating flash memory having additional controller adapted to configure the data from the memory that is to be provided to the external source
JP5076411B2 (en) * 2005-11-30 2012-11-21 ソニー株式会社 Storage device, computer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304959C (en) * 2003-09-16 2007-03-14 深圳市格林耐特通信技术有限责任公司 Method of reading -writing data using disk file virtual flash
CN101488153A (en) * 2009-02-12 2009-07-22 浙江大学 Method for implementing high-capacity flash memory file system in embedded type Linux

Also Published As

Publication number Publication date
CN101825995A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN102012831B (en) Over-the-air technology (OTA) upgrading method based on Linux platform
CN104731569B (en) A kind of data processing method and relevant device
CN102761540A (en) Data compression method, device and system and server
CN101526923A (en) Data processing method, device thereof and flash-memory storage system
CN101639782A (en) System bootloading method based on embedded operating system
CN101742263A (en) Method for storing surveillance video data
CN106527969A (en) NandFlash memory read-write method capable of guaranteeing service life balance
CN101398807B (en) Method and device for decompressing mobile terminal zip file
CN103513956B (en) A kind of method of processor processes data and device
CN102819442A (en) Method and system for programming programs into embedded equipment program
WO2017036183A1 (en) Differential upgrade package processing method and device, upgrade method, system and device
CN103713926B (en) Method and system for updating software of client in advance
CN1687899A (en) Method, system and module for dynamic downloading of applied programe to user identification
JP2013235531A (en) Control device, storage device, and storage control method
CN109189724B (en) Method and device for improving audio and video data storage efficiency of video monitoring system
CN103544076A (en) Data backup method and device
CN101825995B (en) Method for supporting reading and writing of files on small flash memory partitions
CN101968724B (en) Method for storing and deleting data of SD card by using embedded ARM processor
CN104391802A (en) Streamline pool metadata node refreshing consistency protecting method
CN104239231A (en) Method and device for accelerating preheating of second-level cache
WO2005085997A3 (en) Automatic backup store in firmware upgrades
CN101923515B (en) Method for operating Web page in flash memory of embedding system application device
CN105843631B (en) A method of improving system firmware burn writing speed
CN102129377A (en) File downloading method and system
CN102792296A (en) Demand paging method for mobile terminal, controller and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant