CN100478887C - Veneer software memory method and system - Google Patents

Veneer software memory method and system Download PDF

Info

Publication number
CN100478887C
CN100478887C CNB2006100757318A CN200610075731A CN100478887C CN 100478887 C CN100478887 C CN 100478887C CN B2006100757318 A CNB2006100757318 A CN B2006100757318A CN 200610075731 A CN200610075731 A CN 200610075731A CN 100478887 C CN100478887 C CN 100478887C
Authority
CN
China
Prior art keywords
software
veneer
file
memory
file system
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
CNB2006100757318A
Other languages
Chinese (zh)
Other versions
CN1967481A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100757318A priority Critical patent/CN100478887C/en
Publication of CN1967481A publication Critical patent/CN1967481A/en
Application granted granted Critical
Publication of CN100478887C publication Critical patent/CN100478887C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a storage method and system of veneer software. The said storage method includes steps: 1) bootstrap veneer; 2) create the memory file system; 3) load software and configuration files in the memory file system. The said storage system includes: version server, store software and configuration files of each veneer; Veneer memory document modules, store software and configuration files of this veneer downloaded from the version server. The method and system solves not-work properly problem when the flash memory of the veneer lapses, enhances data storage reliability of veneer software, and improves file access speed and efficiency.

Description

Veneer software memory method and system
Technical field
The present invention relates to computing machine and communication field, particularly relate to a kind of veneer software memory method and system.
Background technology
Flash memories (flash memory) is called for short FLASH, is a kind of in the nonvolatile memory, in communication products through being commonly used to deposit the software and the data configuration file of central processing unit CPU operation.If the FLASH file system breaks down, CPU just can not move because having software and data configuration file.
Be provided with a lot of veneers in the equipment of communication system, the data configuration file of board software and veneer all leaves on the FLASH.Fail-safe software version (BootRom software version) is the system bootstrap routine of veneer operation, can finish functions such as board software upgrading.
In the prior art, veneer is checked software and data configuration file on the FLASH after starting from the fail-safe software version.If being checked through software can use, then load software and data configuration file on the FLASH, if it is unavailable to be checked through software, then automatic downloaded software bag again is to the FLASH of this veneer, the software and the data configuration file that contain this veneer in the software package, and then software and data configuration file on the loading FLASH, restart veneer.Its workflow sees also Fig. 1:
S11) veneer starts from the fail-safe software version;
S12) check whether the board software in the FLASH file system is available, if available, enters step S14), if unavailable, enter step S13);
S13) download this board software and data configuration file automatically in the FLASH file system, and enter step S14);
S14) software and the data configuration file in the loading FLASH file system;
S15) veneer restarts.
From as can be seen above-mentioned:
In the prior art, if the FLASH file system lost efficacy, veneer will can't normally not move because having software and data configuration file, and the scheme of head it off is not arranged at present as yet; Further, if the FLASH file system is effective, but the software on the FLASH is unavailable, then needs again downloaded software and data configuration file to FLASH, and then loads software and data configuration file on the FLASH, and this has reduced work efficiency; In addition, all slow with FLASH as storage medium reading and writing of files speed.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of veneer software memory method and system, and these method and system can solve veneer influenced operate as normal when FLASH lost efficacy problem, and improves file access speed and work efficiency.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of veneer software memory method, comprise step: 1) start veneer; 2) create memory file system, send download request to version server, the download version server arrives described memory file system according to software and the configuration file that the described request information of receiving finds; 3) load software and the configuration file that obtains from version server described in the memory file system.
Further, the memory file system constructive process comprises described step 2): 21) storage allocation; 22) described internal memory is divided by blocks of files, and blocks of files is numbered; 23) set up the file system concordance list; 24) package file operation-interface.
Further, described step 2) comprise before the establishment memory file system: check whether flash memory file system is available,, load software and configuration file in the flash memory file system,, create memory file system if unavailable if available.
Comprise before software in the described loading flash memory file system and the configuration file: check further whether the software in the flash memory file system is available, if it is unavailable, from version server downloaded software and configuration file to flash memory file system, and load described software and configuration file, if available, load software and configuration file in the flash memory file system.
Whether available being specially further done cyclic redundancy check (CRC) calculating to the file in the flash memory file system to software in the described inspection flash memory file system, if the value and the cyclic redundancy check value in the file that calculate are inconsistent, think that then software is unavailable,, think that then software can use if consistent.
Further, describedly comprise to the flash memory file system process from version server downloaded software and configuration file: send download request to version server, software that the download version server finds according to the solicited message of receiving and configuration file are to described flash memory file system.
Described step 2) creating memory file system is to create in high memory.
The invention provides a kind of single board software storing system, comprising: version server, store the software and the configuration file of each veneer; The internal memory of single board file unit, this board software and configuration file that storage is downloaded from version server.
Described system further comprises: veneer flash file unit, comprise storage unit, and be used to store this board software and the configuration file of downloading from version server, make normal working of single board; The veneer inspection unit checks whether veneer flash file unit is available, when veneer flash file unit is unavailable, reinstates the internal memory of single board file unit.
Described veneer flash file unit further comprises verification unit and recovery unit, whether the software of verification unit verification cell stores is available, if it is available, the software of veneer load store unit stores and configuration file, if unavailable, recovery unit is downloaded this board software and configuration file to storage unit from version server.
Above technical scheme as can be seen, the present invention has following beneficial effect:
At first, in the prior art, if the FLASH file system lost efficacy, veneer will can't normally not move because having software and data configuration file, and the present invention creates memory file system, can not utilize the FLASH file system and directly use memory file system to carry out the data storage visit, make normal working of single board;
Further, the present invention can be on the basis of existing technology, utilize memory file system as the backup file system, thereby improved the reliability of single board software storing system, when being the inefficacy of FLASH file system, reinstate memory file system, veneer still can obtain software and data configuration file and normal operation;
In addition, the present invention utilizes memory file system, directly carries out file read-write Billy and want fast with FLASH as the storage medium read or write speed in internal memory, thereby improved file access speed and work efficiency.
Accordingly, single board software storing provided by the invention system has that the storing software data are reliable, file access speed is fast and advantage such as work efficiency height.
Description of drawings
Fig. 1 is the prior art process flow diagram;
Fig. 2 is a storage means process flow diagram of the present invention;
Fig. 3 is the preferred embodiment process flow diagram of storage means of the present invention;
Fig. 4 is a storage system synoptic diagram of the present invention;
Fig. 5 is the preferred embodiment synoptic diagram of storage system of the present invention.
Embodiment
A kind of veneer software memory method provided by the invention and system, problem that can't operate as normal when having solved veneer FLASH and losing efficacy, and improved the work efficiency of board software reliability of data storage and veneer operation.
Memory file system of the present invention refers to and uses the file system of internal memory as the document storage medium, and board software and data configuration file all leave in this document system.
High memory of the present invention is meant that the memory address section is high-order internal memory in internal memory, the present invention be but be not limited to and set up file system in the high memory, other address fields also can be set up file system in internal memory, as long as this piece internal memory does not have other purposes.
For ease of the present invention is further understood, now be described in detail in conjunction with embodiment and accompanying drawing.
Seeing also Fig. 2, is storage means process flow diagram of the present invention, comprises step:
S21) veneer starts from the fail-safe software version;
S22) create memory file system;
At this moment, memory file system is without any file.The implementation of memory file system is not unique, can create different memory file systems according to different file format requirements.
The present invention uses a kind of fairly simple method but is not limited to the method and creates memory file system.At first, distribute an enough big memory block from internal memory, the size of memory block is enough to deposit the software of this veneer; Secondly, described memory block is divided into several blocks of files, the minimum particle size of blocks of files read-write is exactly a file, and blocks of files is numbered; Then, set up whole file system concordance list, can index each blocks of files, the file system concordance list comprises file description, file attribute, initial blocks of files numbering, length information; At last, package file operation-interface as required, for example for common file copy (COPY), open (OPEN), read (READ), write (WRITE), close operations such as (CLOSE) and be packaged into function interface.
S23) download this board software and data configuration file automatically in memory file system;
Veneer sends request from the trend version server, require to download the software of this veneer, after version server is received request, find the software of this veneer according to the information in the veneer request message, start downloading process then, this board software and data configuration file are downloaded in this internal memory of single board file system.
As long as not power down of veneer, the content in the memory file system can not lost.Even the veneer power down, after restarting, veneer still can download software to memory file system automatically again.
S24) veneer CPU loads software and the data configuration file in the memory file system, and operation;
S25) veneer restarts by the memory file system version;
Seeing also Fig. 3, is when veneer FLASH file system lost efficacy, and uses storage means of the present invention with the preferred embodiment process flow diagram of memory file system as the backup file system, comprises step:
S31) veneer starts from the fail-safe software version;
S32) whether the FLASH file system of inspection veneer is available, if available, enters step S33), if unavailable, enter step S36);
The FLASH file system of veneer is meant with FLASH to be the file read-write accessing operation management system that physical storage medium is set up, and comprises file allocation table, file management system software, file operation interface.Have only physical medium read-write normal, file management system software just can successful installation, and just can carry out file operation by the file access interface after the file management system software successful installation.Can check behind the single board starting whether FLASH damages, this can judge by the direct read operation, if read-write is consistent.Think that then FLASH can use,, then think the FLASH physical damage if inconsistent.When the FLASH physical damage, reasons such as read-write failure so physically will cause the FLASH file system to install, and promptly the FLASH file system is unavailable, have only the FLASH file system to think just after the successful installation that in FLASH whole FLASH file system can use.
S33) check whether the board software in the FLASH file system is available, if available, enters step S35), if unavailable, enter step S34);
Veneer FLASH software all is made up of file one by one, and each file all has cyclic redundancy check (CRC) (Cyclic Redundancy Check).Read the file on the FLASH and carry out CRC check calculating,, think that then the file in the software is unavailable if value of calculating and the value of the CRC check in the file are inconsistent, think promptly that also software is unavailable, if consistent, think that then the file in the software can be used, think promptly that also software can use.
The configuration information that the data configuration file of veneer needs when being each module work of board software, these data may be different and different owing to working environment, also may be different because user's requirement is different.These data configuration files can be regarded the ingredient of whole board software as.
S34) download this board software and data configuration file automatically in the FLASH file system, and enter step S35);
Veneer sends request from the trend version server, require to download the software of this veneer, after version server is received request, find the software of this veneer according to the information in the veneer request message, start downloading process then, this board software and data configuration file are downloaded in this veneer FLASH file system.
S35) veneer loads software and the data configuration file in the FLASH file system, enters step S39);
S36) create memory file system;
At this moment, memory file system is without any file.The implementation of memory file system is not unique, can create different memory file systems according to different file format requirements.
Use a kind of fairly simple method but be not limited to the method at this and create memory file system.At first, distribute an enough big memory block from internal memory, the size of memory block is enough to deposit the software of this veneer; Secondly, described memory block is divided into several blocks of files, the minimum particle size of blocks of files read-write is exactly a file, and blocks of files is numbered; Then, set up whole file system concordance list, can index each blocks of files, the file system concordance list comprises file description, file attribute, initial blocks of files numbering, length information; At last, package file operation-interface as required, for example for common file copy (COPY), open (OPEN), read (READ), write (WRITE), close operations such as (CLOSE) and be packaged into function interface.In order to guarantee the compatibility of software, the scheme for preferred embodiment of the present invention adopts two file system to back up all provides consistent function interface.
S37) download this board software and data configuration file automatically in memory file system;
Veneer sends request from the trend version server, require to download the software of this veneer, after version server is received request, find the software of this veneer according to the information in the veneer request message, start downloading process then, this board software and data configuration file are downloaded in this internal memory of single board file system.
As long as not power down of veneer, the content in the memory file system can not lost.Even the veneer power down, after restarting, veneer still can download software to memory file system automatically again.
S38) veneer CPU loads software and the data configuration file in the memory file system, and operation;
S39) veneer restarts.
If press the operation of FLASH file system, restart by the FLASH version this moment, if press the memory file system operation, will restart by the memory file system version.
Introduce a simple Application Example in base station system below again.
In the former base station system, the software of every veneer all is to leave on the FLASH of each veneer in the communication facilities.If the FLASH file system of veneer is unavailable, then veneer can't start.In order to improve the reliability of data storage of base station system, introduce the file system of memory file system at every veneer, the storage board software as backup.Promptly under the disabled situation of veneer FLASH file system, create memory file system, and download this board software and data configuration file automatically in memory file system, load software and data configuration file in the memory file system then, restart board software, make that veneer in the same old way can operate as normal under the disabled situation of FLASH file system.At this moment, can also notify the FLASH of this veneer of user to damage by report and alarm, the FLASH file system be unavailable.
If the FLASH file system of every veneer is still available in the base station system communication facilities, perhaps in the communication facilities there be not under the situation of FLASH every veneer, also can directly create memory file system according to the present invention, and use memory file system to carry out the data storage visit.
Be understandable that the present invention can use but be not limited to and also can be applicable to other system in the communication base station system.
The invention provides a kind of single board software storing system, see also Fig. 4 storage system synoptic diagram of the present invention.
This storage system 600 comprises version server 601, internal memory of single board file unit 602.Version server 601 is stored the software and the data configuration file of each veneer; Internal memory of single board file unit 602, this board software and data configuration file that storage is downloaded from version server 601, veneer only otherwise power down, the content of this unit can not lost, even veneer power down, after restarting, still can download this board software and data configuration file and operation from version server 601 again automatically.
Seeing also Fig. 5, is the preferred embodiment synoptic diagram of storage system of the present invention.
This storage system 700 comprises version server 601, internal memory of single board file unit 602, veneer inspection unit 603, veneer flash file unit 604.Version server 601 is stored the software and the data configuration file of each veneer; Internal memory of single board file unit 602, this board software and data configuration file that storage is downloaded from version server 601; Veneer flash file unit 604, this unit software and data configuration file that storage is downloaded from version server 601; Veneer inspection unit 603, check whether veneer flash file unit 604 is available, comprise and check whether flash memory damages, if do not damage, the installation file system, if successful installation then think that veneer flash file unit 604 can use if failure is installed then thinks that veneer flash file unit 604 is unavailable, is reinstated internal memory of single board file unit 602 this moment.
Further, described veneer flash file unit 604 comprises storage unit 6041, verification unit 6042 and recovery unit 6043.Storage unit 6041 is stored this board software and data configuration file; Recovery unit 6043 is used for downloading these board softwares and data configuration file to storage unit 6041 from version server 601; Verification unit 6042, check whether storage unit 6041 saved software are available, if it is available, veneer load store unit 6041 saved software and data configuration file, if unavailable, download these board softwares and configuration file to storage unit 6041 from version server 601 by recovery unit 6043.Wherein, whether described inspection storage unit 6041 saved software available comprises the file on the reading cells 6041 and carries out cyclic redundancy check (CRC) and calculate, if the value and the cyclic redundancy check value in the file that calculate are inconsistent, thinks that then software is unavailable, if consistent, think that then software can use.
More than a kind of veneer software memory method provided by the present invention and system are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, a kind of veneer software memory method is characterized in that, comprises step:
1) starts veneer;
2) create memory file system, send download request to version server, the download version server arrives described memory file system according to software and the configuration file that the described request information of receiving finds;
3) load software and the configuration file that obtains from version server described in the memory file system.
2, veneer software memory method according to claim 1 is characterized in that, described step 2) in the memory file system constructive process comprise:
21) storage allocation;
22) described internal memory is divided by blocks of files, and blocks of files is numbered;
23) set up the file system concordance list;
24) package file operation-interface.
3, veneer software memory method according to claim 1 is characterized in that, described step 2) comprise before creating memory file system:
Check whether flash memory file system is available,, load software and configuration file in the flash memory file system,, create memory file system if unavailable if available.
4, veneer software memory method according to claim 3 is characterized in that, comprises before software in the described loading flash memory file system and the configuration file:
Check further whether the software in the flash memory file system is available, if unavailable, to flash memory file system, and load described software and configuration file from version server downloaded software and configuration file, if available, load software and configuration file in the flash memory file system.
5, veneer software memory method according to claim 4 is characterized in that:
Whether available being specially further done cyclic redundancy check (CRC) calculating to the file in the flash memory file system to software in the described inspection flash memory file system, if the value and the cyclic redundancy check value in the file that calculate are inconsistent, think that then software is unavailable,, think that then software can use if consistent.
6, veneer software memory method according to claim 4 is characterized in that, describedly comprises to the flash memory file system process from version server downloaded software and configuration file:
Send download request to version server, the download version server arrives described flash memory file system according to software and the configuration file that the solicited message of receiving finds.
7, veneer software memory method according to claim 1 is characterized in that:
Described step 2) creating memory file system is to create in high memory.
8, a kind of single board software storing system that implements according to the described veneer software memory method of claim 1 is characterized in that, comprising:
Version server is stored the software and the configuration file of each veneer; The internal memory of single board file unit, this board software and configuration file that storage is downloaded from version server.
9, single board software storing according to claim 8 system is characterized in that, further comprises:
Veneer flash file unit comprises storage unit, is used to store this board software and the configuration file of downloading from version server, makes normal working of single board; The veneer inspection unit checks whether veneer flash file unit is available, when veneer flash file unit is unavailable, reinstates the internal memory of single board file unit.
10, single board software storing according to claim 9 system is characterized in that:
Described veneer flash file unit further comprises verification unit and recovery unit, whether the software of verification unit verification cell stores is available, if it is available, the software of veneer load store unit stores and configuration file, if unavailable, recovery unit is downloaded this board software and configuration file to storage unit from version server.
CNB2006100757318A 2006-04-26 2006-04-26 Veneer software memory method and system Active CN100478887C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100757318A CN100478887C (en) 2006-04-26 2006-04-26 Veneer software memory method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100757318A CN100478887C (en) 2006-04-26 2006-04-26 Veneer software memory method and system

Publications (2)

Publication Number Publication Date
CN1967481A CN1967481A (en) 2007-05-23
CN100478887C true CN100478887C (en) 2009-04-15

Family

ID=38076273

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100757318A Active CN100478887C (en) 2006-04-26 2006-04-26 Veneer software memory method and system

Country Status (1)

Country Link
CN (1) CN100478887C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741593B (en) * 2008-11-19 2012-07-04 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system
CN101807153B (en) * 2009-02-18 2011-11-16 华为终端有限公司 Method for initiating single board and single board device
CN104536738A (en) * 2014-12-16 2015-04-22 北京锐安科技有限公司 Method and device for automatically configuring service card for ATCA platform main control card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
大容量内存文件系统设计及μC/OS下的实现. 张红兵等.单片机与嵌入式系统应用,第2004年第3期. 2004
大容量内存文件系统设计及μC/OS下的实现. 张红兵等.单片机与嵌入式系统应用,第2004年第3期. 2004 *

Also Published As

Publication number Publication date
CN1967481A (en) 2007-05-23

Similar Documents

Publication Publication Date Title
CN108804024B (en) Data storage device and operation method thereof
CN102855193B (en) Go during the carry of untapped logical address in Nonvolatile memory system to map
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN100474271C (en) Multi-level buffering type memory system and method therefor
US20110099325A1 (en) User device and mapping data management method thereof
CN102855146A (en) Firmware updating system and method
CN101963891A (en) Method and device for data storage and processing, solid-state drive system and data processing system
CN102073517A (en) Upgrading and backup method and device for embedded system
CN101482823A (en) Single board application version implementing method and system
CN102024044A (en) Distributed file system
CN101937376A (en) Data management method and data storage device
CN104461657A (en) Main/back-up embedded type bootstrap start-up method and device
CN101782875A (en) Storage unit and data storage method
CN101706783A (en) Method and device for checking and repairing files in embedded equipment
CN112214247B (en) System starting method and related equipment
CN104272390A (en) Composed memory array comprising a flash array and a RAM array with data write to the RAM array and data read from the flash array
CN103324582A (en) Memory migration method, memory migration device and equipment
CN102053849A (en) Distributed system, main system and slave systems thereof and a code loading method
CN100478887C (en) Veneer software memory method and system
CN102622281A (en) Intelligent terminal and method of data backup and restore thereof
CN109344004A (en) A kind of memory database backup management method, device, terminal and storage medium
CN101403972A (en) Memory card guiding method and device of embedded system
CN103425436A (en) Terminal equipment and virtual storage unit management method
US20180113499A1 (en) Removable power loss protection module
CN102033767A (en) Single plate and method for upgrading same on line

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