CN104657236A - Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof - Google Patents

Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof Download PDF

Info

Publication number
CN104657236A
CN104657236A CN201510105770.7A CN201510105770A CN104657236A CN 104657236 A CN104657236 A CN 104657236A CN 201510105770 A CN201510105770 A CN 201510105770A CN 104657236 A CN104657236 A CN 104657236A
Authority
CN
China
Prior art keywords
file system
physical address
module
mcu
file
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.)
Pending
Application number
CN201510105770.7A
Other languages
Chinese (zh)
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 SIAN COMMUNICATIONS TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN SIAN COMMUNICATIONS TECHNOLOGY 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 SIAN COMMUNICATIONS TECHNOLOGY Co Ltd filed Critical SHENZHEN SIAN COMMUNICATIONS TECHNOLOGY Co Ltd
Priority to CN201510105770.7A priority Critical patent/CN104657236A/en
Publication of CN104657236A publication Critical patent/CN104657236A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an embedded Linux file system based on a 32-bit MCU (microprogrammable control unit) and an operating method thereof. The embedded Linux file system comprises a system starting module, at least two independent file system storage systems, a file system state setting module, a file system abnormality judging system, a file system loading module, and a file system repairing module, wherein the system starting module is used for configuring the system initializing parameters, the file system state setting module is used for presetting a physical address of the file system and recording the switching information of the file systems, and is also used for switching to the physical address of the other file system and updating the switching information until the abnormality of the file system cannot be detected when the file system corresponding to the preset physical address is abnormal, the file system loading module is used for loading the file system corresponding to the current setting physical address when the abnormality of the file system cannot be detected, the file system repairing module is used for reading the switching information, and judging whether the file system is switched or not according to the switching information, and when the file system is switched, the switched file system is repaired.

Description

Based on built-in Linux file system and the operation method thereof of 32 MCU
Technical field
The present invention relates to electronic equipment field of embedded technology, particularly relate to a kind of built-in Linux file system based on 32 MCU and operation method thereof.
Background technology
MCU (Micro Control Unit) Chinese is micro-control unit, also known as one chip microcomputer (Single Chip Microcomputer) or single-chip microcomputer, refer to the appearance along with large scale integrated circuit and development thereof, by the CPU of computing machine, RAM, ROM, timer conter and multiple I/O Interface integration on one chip, form the computing machine of chip-scale, do various combination for different application scenarios and control.Microcontroller is constantly being studied through this, is being developed for several years.Go through 4,8 till now 16 and 32 again, even 64.The degree of ripeness of product and drop into more than manufacturer, range of application is wide, is really unprecedented.Large factory is because developing comparatively early abroad at present, and product line is wide, so technological precedence.Native country manufacturer is then that product orientation is won victory with multi-functional.But can not dare not or would not speak up, the rate war of native country manufacturer is the key factor threatened to foreign trader.
Built-in Linux is the embedded operating system based on Linux, and it is widely used in the fields such as mobile phone, personal digital assistant (PDA), media player, consumption electronic products and Aero-Space.File system is operating system for the method for the file on clear and definite memory device (commonly disk also has the solid state hard disc based on NAND Flash) or subregion and data structure; The i.e. method of constituent act on a storage device.Be in charge of in operating system and be called file management system with the software mechanism of storage file information, be called for short file system.File system is made up of three parts: the interface of file system, to software assembly, object and the attribute of object manipulation and management.From system perspective, file system is organized the space of file-storage device and distributes, be responsible for file store and to stored in the file system protecting and retrieve.Specifically, it is responsible for user and sets up file, stored in, read, amendment, dump file, the access of control documents, cancels file etc. when user does not re-use.
The LINUX file system commercially used at present, have employed the mode of single file system mostly, and which exists very large hidden danger.Along with the increase of product service time, LINUX file system is probably damaged, and so will affect stability and the reliability of product use.
Summary of the invention
Fundamental purpose of the present invention is: provide a kind of can realization that the built-in Linux file system based on 32 MCU is realized to double copies or backs up more, to improve stability and the reliability of Linux file system operation.
Optical fiber multiplexing equipment carries out the long-distance management system of remote monitoring, management and maintenance.
To achieve these goals, the invention provides a kind of built-in Linux file system based on 32 MCU, should comprise based on the built-in Linux file system of 32 MCU:
System starts module, for configuring according to external request initializes system parameters;
At least two mutual independently file system memory modules, described file system memory module is all for storing the application program of identical file system;
File system state arranges module, presets the physical address of a file system, and can the handover information of log file intersystem handover; And when the file system corresponding to the physical address preset exists abnormal, switch the physical address of another file system, and upgrade handover information, until there is not exception to the detection of file system;
The abnormal judge module of file system, according to the physical address of described default file system, carries out abnormality detection to corresponding file system;
File system load-on module, when detecting that file system is not deposited in an exceptional case, loads the file system corresponding to physical address of current setting;
File system repairs module, reads described handover information, and judges whether file system switches according to described handover information; Switch if exist, then the file system be switched is repaired.
Preferably, described file system memory module is located in described storer, and described file system memory module is in turn from top to bottom located in storer; When described file system exists abnormal, described physical address switches from top to bottom; If in the physical address correspond to memories before switching during the file system memory module of bottom, then switch to the physical address corresponding to file system memory module of the top in storer.
Preferably, the built-in Linux file system based on 32 MCU also comprises:
For recording, alarm logging modle, detects that described file system is abnormal number of times.
Preferably, the built-in Linux file system based on 32 MCU also comprises:
System update logging modle, for recording the number of times repaired the file system of exception.
Preferably, described physical address, and the handover information of log file intersystem handover is all stored in the nonvolatile space in storer.
In addition, the present invention also provides a kind of operation method of the built-in Linux file system based on 32 MCU, should comprise the following steps based on the operation method of the built-in Linux file system of 32 MCU:
Configure according to external request initializes system parameters;
Be preset with the physical address of a file system, and can the handover information of log file intersystem handover;
According to the physical address of described default file system, abnormality detection is carried out to corresponding file system;
When detecting that file system is deposited in an exceptional case, switching the physical address of another file system, and upgrading handover information, until there is not exception to the detection of file system;
When detecting that file system is not deposited in an exceptional case, load the file system corresponding to physical address of current setting;
Read described handover information, and judge whether file system switches according to described handover information; Switch if exist, then the file system be switched is repaired.
Preferably, described file system is from top to bottom stored in storer successively; When detecting that described file system exists abnormal, described physical address switches from top to bottom; If in the physical address correspond to memories before switching during the file system of bottom, then switch to the physical address corresponding to file system of the top in storer.
Preferably, the judged result recording the abnormal judge module of described file system is abnormal number of times.
Preferably, the number of times that described file system reparation module is repaired abnormal document system is recorded.
Preferably, described physical address, and the handover information of log file intersystem handover is all stored in the nonvolatile space in storer.
Built-in Linux file system based on 32 MCU provided by the invention, this built-in Linux file system comprises system startup module, at least two file system memory modules, file system state arrange module, file system abnormal judge module, file system load-on module and file system reparation module.All Files system storage module all stores the application program of identical file system.File system state is provided with the handover information switched between the physical address of a file system and file system.Arrange the physical address in module according to file system state, the file system that the abnormal judge module of file system is corresponding to this physical address carries out abnormality detection.If there is not exception, then load this file system.If exist abnormal, then the physical address that file system state arranges module is revised as the physical address of another file system storage module, and the handover information between recording document system, to ensure that the file system loaded does not exist exception.In addition, file system reparation module file reading system state arranges the handover information in module, when having carried out the switching between file system in system, then file system repairs module then according to handover information, the file system be switched is repaired, the system that ensure that is in the state of double copies or many backups all the time, thus improves the reliability and stability of System Operation.
Accompanying drawing explanation
Fig. 1 is the module diagram of built-in Linux file system one embodiment that the present invention is based on 32 MCU;
Fig. 2 is the module diagram of the another embodiment of built-in Linux file system that the present invention is based on 32 MCU;
Fig. 3 is the module diagram of the built-in Linux file system embodiment again that the present invention is based on 32 MCU;
Fig. 4 is the schematic flow sheet of operation method one embodiment of the built-in Linux file system that the present invention is based on 32 MCU;
Fig. 5 is the schematic flow sheet of the another embodiment of operation method of the built-in Linux file system that the present invention is based on 32 MCU;
Fig. 6 is the schematic flow sheet of the operation method embodiment again of the built-in Linux file system that the present invention is based on 32 MCU.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of built-in Linux file system based on 32 MCU.
It is the module diagram of built-in Linux file system one embodiment that the present invention is based on 32 MCU with reference to figure 1, Fig. 1.A kind of built-in Linux file system based on 32 MCU that the present embodiment provides comprises:
System starts module 100, for configuring according to external request initializes system parameters;
The present embodiment operates based on 32 MCU.Those skilled in the art are when knowing, the normal operation of MCU needs power supply, to provide the voltage needed for its normal work.In addition, crystal oscillator is also needed to provide the clock needed for normal work for it.Moreover, memory headroom required when also needing MCU to work etc.In the present embodiment, external request is that MCU powers on.After 32 MCU power on, the start-up routine in MCU can jump to system and start module 100, starts module 100 with start up system.After system starts module 100 startup, initializes system parameters configures.It should be noted that systematic parameter comprises: timing parameter, power parameter, RAM frequency, cpu frequency etc. belong to the parameter of the attribute of system own.It should be noted that external request can also be other request signal, as long as can start up system startup module 100 work, do not repeat them here.
At least two mutual independently file system memory modules 200, file system memory module 200 is all for storing the application program of identical file system;
File system memory module 200 is for the application program of memory file system.The situation causing whole system to be collapsed for avoiding Single document system failure occurs, the file system that storage two parts or more is identical in built-in Linux file system.When one of them file system impaired (existing abnormal), other file system can also be switched to, thus ensure that whole system reliability of operation and stability.In the present embodiment, file system memory module 200 is set to two, and two file system memory modules 200 all store identical file system.For convenience of describing, two file system memory modules 200 are defined as: master-file system memory module 200 and from-file system memory module 200.Further, for the ease of the switching of file system, file system memory module 200 from top to bottom in turn stores in memory.As: master-file system memory module 200 deposits top in memory, from-file system memory module 200 deposit in memory with the below that master-file system memory module 200 is adjacent.Thus make both physical addresss in memory adjacent.
File system state arranges module 300, presets the physical address of a file system, and can the handover information of log file intersystem handover; And when the file system corresponding to the physical address preset exists abnormal, switch the physical address of another file system, and upgrade handover information, until there is not exception to the detection of file system;
In the present embodiment, file system state arranges module 300 and comprises two parameters.First parameter is: the physical address of file system.Second parameter is: the handover information switched between file system.It should be noted that the physical address of file system refers to above-mentioned file system memory module 200 physical address in memory.The physical address of file system only records the physical address of a file system memory module 200, and system can load the application program of the file system of its correspondence according to this physical address.In addition, the physical address that file system state is arranged in module 300 can be changed.Such as, during initialization, it is the physical address of master-file system memory module 200 that file system state arranges the physical address that module 300 records.When master-file system memory module 200 be detected abnormal after, file system state arranges module 300 can change to physical address from-file system memory module 200 by physical address, vice versa.The second parameter that file system state arranges module 300 is: the handover information switched between file system.The original physical address arranging module 300 as: file system state is the physical address of master-file system memory module 200 correspondence, when master-file system memory module 200 be detected abnormal after, file system state arranges module 300 and physical address is revised as physical address from-file system memory module 200.Now, handover information is by record: physical address by leading-file system memory module 200 switches to from-this information of file system memory module 200.If there is plural file system in system, and before file system loads, during the switching that the file system state physical address arranged in module 300 has carried out twice or more, handover information all has detailed file system to switch record.Like this, system just according to this handover information, can learn which file system is switched owing to checking out exception.Further abnormal reparation is carried out to the file system be switched again, thus can ensure that system can be gone down in normal operation.Further, in order to avoid file system state arranges parameter loss of data in the situations such as power-off that module 300 records, file system state arranges parameter that module 300 records (handover information namely switched between the physical address of file system and file system) and is stored in the nonvolatile space of storer.
The abnormal judge module 400 of file system, according to the physical address of the file system preset, carries out abnormality detection to corresponding file system;
File system load-on module 500 can load corresponding file system according to the file system state physical address arranged in module 300.As file system state arranges the current physical address describing master-file system memory module 200 in module 300, then file system load-on module 500 can load the file system in master-file system memory module 200.In the present embodiment, file system in order to ensure system loads can normal operation, before file system loads, the abnormal judge module 400 of file system carries out abnormality detection, to guarantee that the file system be loaded does not exist abnormal situation to the file system that will be loaded (file system state arranges file system corresponding to physical address in module 300).
File system load-on module 500, when detecting that file system is not deposited in an exceptional case, loads the file system corresponding to physical address of current setting;
When file system is not deposited in an exceptional case, the file system that the physical address that file system load-on module 500 just can be arranged in module 300 file system state is corresponding loads, to realize selecting a startup from two or more each file system.
File system repairs module 600, reads handover information, and judges whether file system switches according to handover information; Switch if exist, then the file system be switched is repaired.
For ensureing to occur that abnormal file system can be repaired in time, ensure that whole system can continue normal operation and go down, file system repairs module 600 can to occurring that abnormal file system is repaired.Particularly, file system reparation module 600 arranges the handover information in module 300 by file reading system state, thus the switching whether carried out between file system can be known, and can know which file system is file system specifically switch to by which file system.Because the switching of file system is detected exception based on preset document system (i.e. file system state arrange in module 300 corresponding to physical address file system) and is switched.Therefore, all there is exception in the file system be switched.File system repairs module 600 according to handover information, know which file system is switched, and abnormal reparation is carried out to the file system be switched, ensure that whole system really has the function of double copies or many backups, can continue to make whole system normally to operate down.
Built-in Linux file system based on 32 MCU provided by the invention, this built-in Linux file system comprises system startup module 100, at least two file system memory modules 200, file system state arranges module 300, file system abnormal judge module 400, file system load-on module 500 and file system repair module 600.All Files system storage module 200 all stores the application program of identical file system.File system state is provided with the handover information switched between the physical address of a file system and file system.Arrange the physical address in module 300 according to file system state, the file system that the abnormal judge module 400 of file system is corresponding to this physical address carries out abnormality detection.If there is not exception, then load this file system.If exist abnormal, then the physical address that file system state arranges module 300 is revised as the physical address of another file system storage module, and the handover information between recording document system, to ensure that the file system loaded does not exist exception.In addition, file system reparation module 600 file reading system state arranges the handover information in module 300, when having carried out the switching between file system in system, then file system repairs module 600 according to handover information, the file system be switched is repaired, the system that ensure that is in the state of double copies or many backups all the time, thus improves the reliability and stability of System Operation.
Further, file system memory module 200 is located in storer, and file system memory module 200 is in turn from top to bottom located in storer.When file system exists abnormal, physical address switches from top to bottom.If in the physical address correspond to memories before switching during the file system memory module 200 of bottom, then switch to the physical address corresponding to file system memory module 200 of the top in storer.
In conjunction with the module diagram with reference to figure 2, Fig. 2 being the another embodiment of built-in Linux file system that the present invention is based on 32 MCU.Further, the built-in Linux file system based on 32 MCU also comprises:
For recording, alarm logging modle 700, detects that file system is abnormal number of times.Often occur one and judge abnormal results, the number of times that alarm logging modle 700 records then adds 1, thus can record in whole system, there is abnormal number of times in file system, the frequency of abnormity that system maintenance personnel record by alarm logging modle 700, thus stability and the reliability of judging whole system.
In conjunction with the module diagram with reference to Fig. 3, Fig. 3 being the built-in Linux file system embodiment again that the present invention is based on 32 MCU.Further, the built-in Linux file system based on 32 MCU also comprises:
System update logging modle 800, for recording the number of times repaired the file system of exception.File system is repaired module 600 often pair of file system and is once repaired, then the number of times that system update logging modle 800 records adds 1, thus in record whole system, file system repairs the number of times that module 600 pairs of file system are repaired.System maintenance personnel upgrade the number of times in logging modle 800 by observing system, thus can judge the power of the abnormal repair ability of system.
In conjunction with the schematic flow sheet of operation method one embodiment with reference to figure 4, Fig. 4 being the built-in Linux file system that the present invention is based on 32 MCU.The present invention also provides a kind of operation method of the built-in Linux file system based on 32 MCU.This operation method comprises the following steps:
Step S10, configures according to external request initializes system parameters;
The present embodiment operates based on 32 MCU.Those skilled in the art are when knowing, the normal operation of MCU needs power supply, to provide the voltage needed for its normal work.In addition, crystal oscillator is also needed to provide the clock needed for normal work for it.Moreover, memory headroom required when also needing MCU to work etc.In the present embodiment, external request is that MCU powers on.After 32 MCU power on, the start-up routine in MCU can jump to system and start module 100, starts module 100 with start up system.After system starts module 100 startup, initializes system parameters configures.It should be noted that systematic parameter comprises: timing parameter, power parameter, RAM frequency, cpu frequency etc. belong to the parameter of the attribute of system own.It should be noted that external request can also be other request signal, as long as can start up system startup module 100 work, do not repeat them here.
Step S20, is preset with the physical address of a file system, and can the handover information of log file intersystem handover;
In the present embodiment, file system state arranges module 300 and comprises two parameters.First parameter is: the physical address of file system.Second parameter is: the handover information switched between file system.It should be noted that the physical address of file system refers to above-mentioned file system memory module 200 physical address in memory.The physical address of file system only records the physical address of a file system memory module 200, and system can load the application program of the file system of its correspondence according to this physical address.In addition, the physical address that file system state is arranged in module 300 can be changed.Such as, during initialization, it is the physical address of master-file system memory module 200 that file system state arranges the physical address that module 300 records.When master-file system memory module 200 be detected abnormal after, file system state arranges module 300 can change to physical address from-file system memory module 200 by physical address, vice versa.The second parameter that file system state arranges module 300 is: the handover information switched between file system.The original physical address arranging module 300 as: file system state is the physical address of master-file system memory module 200 correspondence, when master-file system memory module 200 be detected abnormal after, file system state arranges module 300 and physical address is revised as physical address from-file system memory module 200.Now, handover information is by record: physical address by leading-file system memory module 200 switches to from-this information of file system memory module 200.If there is plural file system in system, and before file system loads, during the switching that the file system state physical address arranged in module 300 has carried out twice or more, handover information all has detailed file system to switch record.Like this, system just according to this handover information, can learn which file system is switched owing to checking out exception.Further abnormal reparation is carried out to the file system be switched again, thus can ensure that system can be gone down in normal operation.Further, in order to avoid file system state arranges parameter loss of data in the situations such as power-off that module 300 records, file system state arranges parameter that module 300 records (handover information namely switched between the physical address of file system and file system) and is stored in the nonvolatile space of storer.
Step S30, according to the physical address of described default file system, carries out abnormality detection to corresponding file system;
File system load-on module 500 can load corresponding file system according to the file system state physical address arranged in module 300.As file system state arranges the current physical address describing master-file system memory module 200 in module 300, then file system load-on module 500 can load the file system in master-file system memory module 200.In the present embodiment, file system in order to ensure system loads can normal operation, before file system loads, the abnormal judge module 400 of file system carries out abnormality detection, to guarantee that the file system be loaded does not exist abnormal situation to the file system that will be loaded (file system state arranges file system corresponding to physical address in module 300).
Step S40, when detecting that file system is deposited in an exceptional case, switching the physical address of another file system, and upgrading handover information, until there is not exception to the detection of file system;
Step S50, when detecting that file system is not deposited in an exceptional case, loads the file system corresponding to physical address of current setting;
When file system is not deposited in an exceptional case, the file system that the physical address that file system load-on module 500 just can be arranged in module 300 file system state is corresponding loads, to realize selecting a startup from two or more each file system.
Step S60, reads described handover information, and judges whether file system switches according to described handover information; Switch if exist, then the file system be switched is repaired.
For ensureing to occur that abnormal file system can be repaired in time, ensure that whole system can continue normal operation and go down, file system repairs module 600 can to occurring that abnormal file system is repaired.Particularly, file system reparation module 600 arranges the handover information in module 300 by file reading system state, thus the switching whether carried out between file system can be known, and can know which file system is file system specifically switch to by which file system.Because the switching of file system is detected exception based on preset document system (i.e. file system state arrange in module 300 corresponding to physical address file system) and is switched.Therefore, all there is exception in the file system be switched.File system repairs module 600 according to handover information, know which file system is switched, and abnormal reparation is carried out to the file system be switched, ensure that whole system really has the function of double copies or many backups, can continue to make whole system normally to operate down.
The operation method of the built-in Linux file system based on 32 MCU provided by the invention, this built-in Linux file system comprises system startup module 100, at least two file system memory modules 200, file system state arranges module 300, file system abnormal judge module 400, file system load-on module 500 and file system repair module 600.All Files system storage module 200 all stores the application program of identical file system.File system state is provided with the handover information switched between the physical address of a file system and file system.Arrange the physical address in module 300 according to file system state, the file system that the abnormal judge module 400 of file system is corresponding to this physical address carries out abnormality detection.If there is not exception, then load this file system.If exist abnormal, then the physical address that file system state arranges module 300 is revised as the physical address of another file system storage module, and the handover information between recording document system, to ensure that the file system loaded does not exist exception.In addition, file system reparation module 600 file reading system state arranges the handover information in module 300, when having carried out the switching between file system in system, then file system repairs module 600 according to handover information, the file system be switched is repaired, the system that ensure that is in the state of double copies or many backups all the time, thus improves the reliability and stability of System Operation.
Further, file system is from top to bottom stored in storer successively; When detecting that file system exists abnormal, physical address switches from top to bottom; If in the physical address correspond to memories before switching during the file system of bottom, then switch to the physical address corresponding to file system of the top in storer.
In conjunction with the schematic flow sheet of the another embodiment of operation method with reference to figure 5, Fig. 5 being the built-in Linux file system that the present invention is based on 32 MCU.Further, step S70, record detects that file system is abnormal number of times.In the present embodiment, whenever appearance one judges abnormal results, the number of times that alarm logging modle 700 records then adds 1, thus can record in whole system, there is abnormal number of times in file system, the frequency of abnormity that system maintenance personnel record by alarm logging modle 700, thus stability and the reliability of judging whole system.
In conjunction with the schematic flow sheet of an operation method embodiment again with reference to figure 6, Fig. 6 being the built-in Linux file system that the present invention is based on 32 MCU.Further, step S80, records the number of times repaired the file system of exception.File system is repaired module 600 often pair of file system and is once repaired, then the number of times that system update logging modle 800 records adds 1, thus in record whole system, file system repairs the number of times that module 600 pairs of file system are repaired.System maintenance personnel upgrade the number of times in logging modle 800 by observing system, thus can judge the power of the abnormal repair ability of system.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1., based on a built-in Linux file system of 32 MCU, it is characterized in that, comprising:
System starts module, for configuring according to external request initializes system parameters;
At least two mutual independently file system memory modules, described file system memory module is all for storing the application program of identical file system;
File system state arranges module, presets the physical address of a file system, and can the handover information of log file intersystem handover; And when the file system corresponding to the physical address preset exists abnormal, switch the physical address of another file system, and upgrade handover information, until there is not exception to the detection of file system;
The abnormal judge module of file system, according to the physical address of described default file system, carries out abnormality detection to corresponding file system;
File system load-on module, when detecting that file system is not deposited in an exceptional case, loads the file system corresponding to physical address of current setting;
File system repairs module, reads described handover information, and judges whether file system switches according to described handover information; Switch if exist, then the file system be switched is repaired.
2., as claimed in claim 1 based on the built-in Linux file system of 32 MCU, it is characterized in that,
Described file system memory module is located in described storer, and described file system memory module is in turn from top to bottom located in storer; When described file system exists abnormal, described physical address switches from top to bottom; If in the physical address correspond to memories before switching during the file system memory module of bottom, then switch to the physical address corresponding to file system memory module of the top in storer.
3., as claimed in claim 1 based on the built-in Linux file system of 32 MCU, it is characterized in that, also comprise:
For recording, alarm logging modle, detects that described file system is abnormal number of times.
4., as claimed in claim 1 based on the built-in Linux file system of 32 MCU, it is characterized in that, also comprise:
System update logging modle, for recording the number of times repaired the file system of exception.
5. the built-in Linux file system based on 32 MCU as described in any one of Claims 1-4, is characterized in that,
Described physical address, and the handover information of log file intersystem handover is all stored in the nonvolatile space in storer.
6., based on an operation method for the built-in Linux file system of 32 MCU, it is characterized in that, comprise the following steps:
Configure according to external request initializes system parameters;
Be preset with the physical address of a file system, and can the handover information of log file intersystem handover;
According to the physical address of described default file system, abnormality detection is carried out to corresponding file system;
When detecting that file system is deposited in an exceptional case, switching the physical address of another file system, and upgrading handover information, until there is not exception to the detection of file system;
When detecting that file system is not deposited in an exceptional case, load the file system corresponding to physical address of current setting;
Read described handover information, and judge whether file system switches according to described handover information; Switch if exist, then the file system be switched is repaired.
7., as claimed in claim 6 based on the operation method of the built-in Linux file system of 32 MCU, it is characterized in that,
Described file system is from top to bottom stored in storer successively; When detecting that described file system exists abnormal, described physical address switches from top to bottom; If in the physical address correspond to memories before switching during the file system of bottom, then switch to the physical address corresponding to file system of the top in storer.
8., as claimed in claim 6 based on the operation method of the built-in Linux file system of 32 MCU, it is characterized in that,
Record detects that described file system is abnormal number of times.
9., as claimed in claim 6 based on the operation method of the built-in Linux file system of 32 MCU, it is characterized in that,
Record the number of times that the file system of exception is repaired.
10. the operation method of the built-in Linux file system based on 32 MCU as described in any one of claim 6 to 9, it is characterized in that, described physical address, and the handover information of log file intersystem handover is all stored in the nonvolatile space in storer.
CN201510105770.7A 2015-03-11 2015-03-11 Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof Pending CN104657236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510105770.7A CN104657236A (en) 2015-03-11 2015-03-11 Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510105770.7A CN104657236A (en) 2015-03-11 2015-03-11 Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof

Publications (1)

Publication Number Publication Date
CN104657236A true CN104657236A (en) 2015-05-27

Family

ID=53248408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510105770.7A Pending CN104657236A (en) 2015-03-11 2015-03-11 Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof

Country Status (1)

Country Link
CN (1) CN104657236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562577A (en) * 2017-09-21 2018-01-09 郑州云海信息技术有限公司 A kind of file system restorative procedure and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system
CN1545657A (en) * 2001-08-31 2004-11-10 () Method for backing up and recovering data in hard disk of computer
CN1702590A (en) * 2004-12-02 2005-11-30 联想(北京)有限公司 Method for establishing trustable operational environment in a computer
US20080162608A1 (en) * 2004-09-29 2008-07-03 Nec Corporation Switch device, system, backup method and computer program
CN101504705A (en) * 2009-03-17 2009-08-12 武汉大学 Trusted platform module and its computer starting control method
CN101673211A (en) * 2009-10-19 2010-03-17 中兴通讯股份有限公司 Embedded equipment and starting method thereof
CN101706783A (en) * 2009-11-16 2010-05-12 中兴通讯股份有限公司 Method and device for checking and repairing files in embedded equipment
CN101894032A (en) * 2010-06-30 2010-11-24 中兴通讯股份有限公司 Method for starting software system of base station, base station and master single board in base station
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box
CN102314421A (en) * 2010-06-29 2012-01-11 中兴通讯股份有限公司 Self-rescuing method and self rescuing device for file system after being damaged
CN103677947A (en) * 2014-01-03 2014-03-26 深圳英飞拓科技股份有限公司 Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545657A (en) * 2001-08-31 2004-11-10 () Method for backing up and recovering data in hard disk of computer
CN1529239A (en) * 2003-09-28 2004-09-15 中兴通讯股份有限公司 Fault-tolerant processing method for embedding device file system
US20080162608A1 (en) * 2004-09-29 2008-07-03 Nec Corporation Switch device, system, backup method and computer program
CN1702590A (en) * 2004-12-02 2005-11-30 联想(北京)有限公司 Method for establishing trustable operational environment in a computer
CN101504705A (en) * 2009-03-17 2009-08-12 武汉大学 Trusted platform module and its computer starting control method
CN101673211A (en) * 2009-10-19 2010-03-17 中兴通讯股份有限公司 Embedded equipment and starting method thereof
CN101706783A (en) * 2009-11-16 2010-05-12 中兴通讯股份有限公司 Method and device for checking and repairing files in embedded equipment
CN102314421A (en) * 2010-06-29 2012-01-11 中兴通讯股份有限公司 Self-rescuing method and self rescuing device for file system after being damaged
CN101894032A (en) * 2010-06-30 2010-11-24 中兴通讯股份有限公司 Method for starting software system of base station, base station and master single board in base station
CN102289397A (en) * 2011-09-13 2011-12-21 全星科技(珠海)有限公司 Method and device for automatically restoring embedded system of set top box
CN103677947A (en) * 2014-01-03 2014-03-26 深圳英飞拓科技股份有限公司 Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562577A (en) * 2017-09-21 2018-01-09 郑州云海信息技术有限公司 A kind of file system restorative procedure and device

Similar Documents

Publication Publication Date Title
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
CN105094927B (en) A kind of device firmware upgrade method and apparatus
US20100058314A1 (en) Computer System and Related Method of Logging BIOS Update Operation
CN100406903C (en) Detection method for configuration of programmable logic device
CN103299276A (en) Software updating process for an embedded device
US20140163716A1 (en) Bridge device, automated production system and method thereof for storage device
CN101667128B (en) Method for updating and repairing basic input and output system
CN105183517A (en) Method and device for mounting external storage equipment in recovery mode and electronic device
US8205038B2 (en) Flash memory accessing apparatus and accessing method thereof
CN103744824A (en) Outgoing testing method and testing system
EP1764687B1 (en) Method for restoring a booted system
CN101286738A (en) Method, device and system for loading logic files based on equipment information
CN109240622A (en) A kind of method and system of EEPROM data write-in
CN103425549A (en) Firmware managing method and system of embedded controller
JP2018025925A (en) Start method of electronic circuit system and control device
CN110781026A (en) Embedded equipment data storage and repair method and device and embedded equipment
CN100395713C (en) Method of automatic repairing basic input output system element and module
CN101661435A (en) Data processing apparatus
US20120011395A1 (en) Boot method under boot sector failure in hard disk and computer device using the same
CN102122258A (en) Method for repairing damaged embedded equipment file system
CN104657236A (en) Embedded Linux file system based on 32-bit MCU (microprogrammable control unit) and operating method thereof
US9262418B2 (en) Method and system for performing system maintenance in a computing device
KR101471574B1 (en) Semiconductor chip and semiconductor device
US20160078967A1 (en) Power Loss Test Device And Method For Nonvolatile Memory Device
US9058863B2 (en) Reference frequency setting method, memory controller and memory storage apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150527

RJ01 Rejection of invention patent application after publication