CN102819444B - The method and system of loading procedure in a kind of base station - Google Patents

The method and system of loading procedure in a kind of base station Download PDF

Info

Publication number
CN102819444B
CN102819444B CN201210308976.6A CN201210308976A CN102819444B CN 102819444 B CN102819444 B CN 102819444B CN 201210308976 A CN201210308976 A CN 201210308976A CN 102819444 B CN102819444 B CN 102819444B
Authority
CN
China
Prior art keywords
bootloader
program
backup
main
address
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.)
Expired - Fee Related
Application number
CN201210308976.6A
Other languages
Chinese (zh)
Other versions
CN102819444A (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.)
Beijing Haiyun Technology Co ltd
Original Assignee
New Postcom Equipment 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 New Postcom Equipment Co Ltd filed Critical New Postcom Equipment Co Ltd
Priority to CN201210308976.6A priority Critical patent/CN102819444B/en
Publication of CN102819444A publication Critical patent/CN102819444A/en
Application granted granted Critical
Publication of CN102819444B publication Critical patent/CN102819444B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the method and system of loading procedure in a kind of base station, described method comprises: store main Bootloader and backup Bootloader; When reset starts, determine Bootloader address by startup source, load main Bootloader according to the address of main Bootloader; If main Bootloader loads unsuccessfully, then load backup Bootloader according to the address of backup Bootloader.The present invention can solve because Bootloader is destroyed, and causes the problem that whole board collapses.

Description

The method and system of loading procedure in a kind of base station
Technical field
The present invention relates to the communications field, particularly the method and system of loading procedure in a kind of base station.
Background technology
In the applied environment of wireless access network, base station system is all arranged in independent machine room, and how far from working office environment, therefore field maintemance is not too convenient.
For guaranteeing the stable operation of base station system, the mode that system program and application program be have employed to double copies carries out version design protection.Namely when this run-time error of key plate, when cannot normally run, can backup version be reloaded, carry out system cloud gray model with backup version.In the prior art scheme, mainly to kernel reflection, file system, other various application programs, application program comprises software and firmware (software of solidification, the program in write programmable read only memory), carries out double copies storage.On program is run: perform key plate kernel reflection startup optimization originally and occur that fatal mistake will restart with backup version kernel reflection, execution key plate file system originally loads unsuccessfully to be reloaded the file system with backup version, performs key plate types of applications program start-up loading originally and occurs that fatal mistake will reload operation with the corresponding types of applications program of backup version.
But; do not realize the version backup protection of the Bootloader (boot) to operating system in the prior art; once Bootloader is destroyed; direct result is the collapse of whole board, manually can only arrive machine room replacing board or plug board and again use replication tool programming Bootloader.
In prior art, the risk that after there is permanent storage medium file loss, system cannot normally be run.In prior art, due to the requirement of mobile operator, to all kernels reflection of base station, file system and other various application programs, the master routine and the stand-by program that comprise software document and firmware file all require scalable, therefore, deposit the block (such as flash memory) that the permanent storage medium of these programs is corresponding, all require that erasable can be write.And permanent storage medium of the prior art is all first wipe to write afterwards by block operations to carry out file storage.Therefore, in program updates process, may due to program erasable abnormal or erasable time the situation such as abnormal electrical power supply and cause some File loses, particularly master program file and stand-by program file have a loss time, can cause system cannot normal start-up and operation.
In addition, in the normal course of operation of base station, also there is the risk that storage program is lost.Due in the operational process of base station, need to carry out corresponding file write information operation (such as preserving relevant configuration information and log information etc.) to permanent storage medium, once occur write error or under writing the situations such as abnormal electrical power supply, other some important procedure may be lost simultaneously.
Fig. 4 is the process flow diagram of storage medium subregion in the method for loading procedure in the embodiment of the present invention two.In the embodiment of the present invention two, method is except above-mentioned steps, also comprises the steps.
Step S410, is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable by storage space.
Step S420, is stored in reserved area by main Bootloader, backup Bootloader and system program.
Step S430, is stored in general areas by application program and file.
Further, described system program comprises: kernel map program and file system program.
Further, described file comprises: the configuration file needed for operation and the journal file produced in running.
Described method also comprises: stand-by program, the master routine of file system and the stand-by program of file system of videoing for the main Bootloader stored, backup Bootloader, the master routine of kernel reflection, kernel, by reserved area subregion.
The program that each partitioned storage is corresponding.
Further, described method also comprises: for master routine and the stand-by program of the application stored, and run file used, by general areas subregion;
The program that each partitioned storage is corresponding or file.
See Fig. 5, it is the schematic diagram of the exemplary illustration of storage medium subregion in the method for loading procedure in the embodiment of the present invention two.
Permanent storage medium partition protecting technical scheme is as described below, is that embodiment illustrates with FLASH.
Be divided in FLASH subregion:
Operating system partition comprises: main Bootloader partition holding, backup Bootloader partition holding, main kernel reflection partition holding, backup kernel reflection partition holding, host file system partition holding, backup file system storage subregion.
Application memory subregion comprises: types of applications software and firmware master routine partition holding, types of applications software and firmware stand-by program partition holding, all kinds of software and the minimum program partition holding of firmware.
Alternative document partition holding comprises: daily record partition holding, configuration file partition holding.
Described in operating system partition division is described below.
Main Bootloader partition holding: for depositing main Bootloader.
Backup Bootloader partition holding: for depositing backup Bootloader.
Main kernel reflection partition holding: for depositing the master routine of kernel reflection.
Backup kernel reflection partition holding: for depositing the stand-by program of kernel reflection.
Host file system partition holding: for the master routine of storing documents system.
Backup file system storage subregion: for the stand-by program of storing documents system.
Operating system is that system normally runs the basic of startup, therefore, cannot be random to this region carry out renewal erasing.For avoiding the renewal carried out because of maloperation to wipe, special erasable to the renewal in this region erasable definition specific command, to be different from general erasable order, thus avoid because maloperation causes stored program loss and damage.
Application memory is divided described in Division is described below.
Types of applications software and firmware master routine partition holding: for depositing the master routine of application software and firmware, the master routine of other application software.
Types of applications software and firmware stand-by program partition holding: for depositing application software and firmware stand-by program, other application software stand-by program.
Types of applications software and firmware minimum program partition holding: for depositing application software and the minimum program of firmware, other application software and the minimum program of firmware.
Minimum program communicates with far-end server for making base station, realizes the program of application maintenance and/or renewal.
Wherein, independently subregion being divided for every class application software and firmware, avoiding loss or the damage of software because causing maloperation or other abnormal conditions of other subregion and firmware program.
Alternative document partition holding is as described below.
Daily record partition holding: for depositing all kinds of journal files that operational process produces.
Configuration file partition holding: for all kinds of living documents produced in the configuration file needed for storage system startup and configuration and operational process.
Because daily record storage and configuration file etc. often relate to the read-write operation of FLASH, may due to write error or when writing in the situation such as abnormal electrical power supply, cause the probability losing file or destruction file larger, therefore it is single-rowly placed on independently in subregion, causes even if erasable file destroyed also can not the normal startup optimization of influential system.
Summary of the invention
The invention provides the method and system of loading procedure in a kind of base station, to solve because Bootloader is destroyed, and cause the problem that whole board collapses.
The invention discloses the method for loading procedure in a kind of base station, described method comprises:
Store main Bootloader and backup Bootloader;
When reset starts, load main Bootloader according to the address of main Bootloader;
If main Bootloader loads unsuccessfully, then load backup Bootloader according to the address of backup Bootloader.
Preferably, the described address according to main Bootloader loads main Bootloader and specifically comprises:
Within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.
Preferably, described within reset signal effective period, also comprise after the loaded with hardware configuration words of master reset configuration words source:
When reset signal is all invalid, the input signal in reset configuration words source is switched to backup reset configuration words source signal used;
If described main Bootloader loads unsuccessfully, then load backup Bootloader according to the address of backup Bootloader and specifically comprise:
If main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, backup Bootloader address will be navigated to, loads backup Bootloader by described address.
Preferably, described in navigate to main Bootloader address, also comprise after loading main Bootloader by described address:
If load the success of main Bootloader by main Bootloader address, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
Preferably, described method also comprises:
Store the minimum program of application program, described minimum program communicates with far-end server for making base station, safeguards and/or upgrade the program of application program;
By loading minimum program, communicating with far-end server, realizing maintenance and/or the renewal of application program.
Preferably, described method also comprises:
Storage space is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable;
Main Bootloader, backup Bootloader and system program are stored in reserved area;
Application program and file are stored in general areas.
Preferably, described method also comprises:
Store master routine and the stand-by program of application program;
Described passing through loads minimum program, communicates with far-end server, safeguards and/or upgrade application program specifically to comprise:
When loading system program, the master routine of loading system program, if load unsuccessfully, then the stand-by program of loading system program;
When the master routine of loading application programs and stand-by program all failure time, then load minimum program, communicated with far-end server by minimum program, realize maintenance and/or the renewal of application program.
The invention also discloses the system of loading procedure in a kind of base station, described system comprises:
Memory module, for storing main Bootloader and backup Bootloader;
Master routine load-on module, when starting for resetting, loads main Bootloader according to the address of main Bootloader;
Stand-by program load-on module, for when main Bootloader loads unsuccessfully, loads backup Bootloader according to the address of backup Bootloader.
Preferably, described master routine load-on module when loading main Bootloader according to the address of main Bootloader specifically for: within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.
Preferably, described master routine load-on module also for: when reset signal is all invalid, the input signal in reset configuration words source is switched to backup reset configuration words source signal used;
Described stand-by program load-on module specifically for: if main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, navigate to backup Bootloader address, load backup Bootloader by described address.
Preferably, described master routine load-on module also for: if by main Bootloader address load main Bootloader success, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
Preferably, memory module also for: store the minimum program of application program, described minimum program communicates with far-end server for making base station, safeguards and/or the program of renewal application program;
Described system also comprises:
Minimum program load-on module, for by loading minimum program, communicating with far-end server, realizing maintenance and/or the renewal of application program.
Preferably, memory module also for: storage space is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable; Main Bootloader, backup Bootloader and system program are stored in reserved area; Application program and file are stored in general areas.
The invention has the beneficial effects as follows: the present invention is by storing main Bootloader and backup Bootloader, when reset starts, main Bootloader is loaded according to the address of main Bootloader, start, if main Bootloader cannot normally start, then load backup Bootloader according to the address of backup Bootloader, start; Double copies can be carried out to Bootloader, when main Bootloader starts unsuccessfully, backup boot can be used to complete startup, avoid because Bootloader is destroyed, and cause whole board to collapse.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method loading Bootloader in the embodiment of the present invention one.
Fig. 2 is the process flow diagram of the method exemplary illustration loading Bootloader in the embodiment of the present invention one.
Fig. 3 is the data flow diagram of the method exemplary illustration loading Bootloader in the embodiment of the present invention one.
Fig. 4 is the process flow diagram of storage medium subregion in the method for loading procedure in the embodiment of the present invention two.
Fig. 5 is the schematic diagram of the exemplary illustration of storage medium subregion in the method for loading procedure in the embodiment of the present invention two.
Fig. 6 is the process flow diagram of exemplary illustration in the method for loading application programs in the embodiment of the present invention three.
Fig. 7 is the schematic diagram of exemplary illustration in the method for loading application programs in the embodiment of the present invention four.
Fig. 8 is the structural drawing of the system of bootload program in the embodiment of the present invention five.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
See Fig. 1, it is the process flow diagram of the method for loading procedure provided in the embodiment of the present invention one.
In the present embodiment, Bootloader is loaded, specifically comprise the steps.
Step S100, stores main Bootloader and backup Bootloader.
Step S200, when reset starts, loads main Bootloader according to the address of main Bootloader.
Step S300, if main Bootloader loads unsuccessfully, then loads backup Bootloader according to the address of backup Bootloader.
System is entered because Bootloader is used for guiding, cannot switching in application system between this and backup version of functional realiey key plate to it, it cannot adopt switching mode between the key plate of system program of the prior art and application program this and backup version to realize switching.
Further, the described address according to main Bootloader loads main Bootloader and specifically comprises: within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.Reset in effective period comprises: electrification reset, hardware reset and software reset.
Further, describedly also to comprise after the loaded with hardware configuration words of master reset configuration words source: when reset signal is all invalid within reset signal effective period, the input signal in reset configuration words source is switched to backup reset configuration words source signal used.By selecting peripheral circuit, the input signal in reset configuration words source can be switched to backup reset configuration words source signal used.
If described main Bootloader loads unsuccessfully, load backup Bootloader according to the address of backup Bootloader specifically to comprise: if main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, navigate to backup Bootloader address, load backup Bootloader by described address.
Further, describedly navigate to main Bootloader address, also comprise after loading main Bootloader by described address: if load the success of main Bootloader by main Bootloader address, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.Can IO(input and output be passed through) arrange the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
See Fig. 2, for loading the process flow diagram of the method exemplary illustration of Bootloader in the embodiment of the present invention one.
In this exemplary embodiments, the method loading Bootloader comprises the steps.
Step S201, stores main Bootloader and backup Bootloader.
Step S202, determines that reset signal comes into force.
Step S203, from master reset configuration words source loaded with hardware configuration words, determines main Bootloader address.
As shown in Figure 3, microprocessor determines main Bootloader address according to the input signal in reset configuration words source.
Step S204, determines that reset signal is invalid.
Step S205, switches to backup reset configuration words source signal used by the input signal in reset configuration words source.
Now, reset configuration words source switches to backup reset configuration words source from master reset configuration words source.
Step S206, loads main Bootloader by main Bootloader address.
As shown in Figure 3, microprocessor loads main Bootloader according to the main Bootloader address determined from flash memory.
Step S207, judges whether main Bootloader loads successfully, if so, performs step S208, otherwise, perform step S209.
Step S208, reverts to master reset configuration words source signal used by the input signal in reset configuration words source.
Now, reset configuration words source reverts to master reset configuration words source.
Step S209, the input signal in hold reset configuration words source is backup reset configuration words source signal used, to back up Bootloader for main Bootloader.
By this step, be the main Bootloader in follow-up executable operations with the backup Bootloader in Fig. 3.
Step S210, reset restarts, and performs step S202.
In this illustrative embodiments illustrates, if main Bootloader loads unsuccessfully, then after above-mentioned switching, again reset after starting, master reset configuration words (i.e. former backup reset configuration words) will be loaded, thus determine main Bootloader address (i.e. former backup Bootloader address), from main Bootloader address start.So far, complete once active and standby Bootloader to switch.
Embodiment two
Embodiment three
In actual applications, base station is often in remote, is difficult in the environment of near-end operation.In prior art, in base station, application adopts master routine and the stand-by program of software and firmware, two version, and abnormal situation appears in reply.But still there will be the phenomenon that master routine and stand-by program are all destroyed or lose in the application of reality, system cannot realize recovering voluntarily, cause system cannot normal startup optimization.
For solving the problem, in embodiment three, method is except above-mentioned steps, also comprises the steps.
Store the minimum program of application program, described minimum program communicates with far-end server for making base station, realizes the program of application maintenance and/or renewal.
By loading minimum program, communicate with far-end server, thus realize maintenance and/or the renewal of application program.
Further, master routine and the stand-by program of application program is stored.
When loading system program, the master routine of loading system program, if load unsuccessfully, then the stand-by program of loading system program.
When the master routine of loading application programs and stand-by program all failure time, then the minimum program of loading application programs, is communicated with far-end server by minimum program, realizes maintenance and/or the renewal of application program.
While the two version of software and firmware master routine, software and firmware stand-by program retaining application, increase software and the minimum program of firmware.When to ensure that software and firmware master routine and stand-by program all occur abnormal, still can normal load.
Due to the permanent storage limited space of base station, so minimum program requires to realize simply, the least possible takies permanent storage space.Minimum program only needs to provide network service, and can realize by network operation and/or upgrade application program.
See Fig. 6, it is the process flow diagram of exemplary illustration in the method for loading application programs in the embodiment of the present invention three.
Step S601, power on operation system has started.
Step S602, loads software main program.
Step S603, judges that whether software main program loads successful, if so, then performs step S605, otherwise, perform step S604.
Step S604, loads software backup program.
Step S604A, judges that whether software backup program loads successful, if so, then performs step S605, otherwise, perform step S604B.
Step S604B, loads the minimum program of software.
Step S604C, judges that whether the minimum program of software loads successful, if so, then performs step S605, otherwise, perform step S611.
Step S605, loading firmware master routine.
Step S606, judges that whether firmware master routine loads successful, if so, then performs step S608, otherwise, perform step S607.
Step S607, loading firmware stand-by program.
Step S607A, judges that whether firmware stand-by program loads successful, if success, performs step S608, otherwise, perform step S607B.
Step S607B, the minimum program of loading firmware, performs step S607C.
Step S607C, judges that whether the minimum program of firmware loads successful, if so, then performs step S608, otherwise perform step S611.
Step S608, realizes network service.
Step S609, judges that whether network service is normal, if so, then performs step S610, otherwise perform step S610C.
Step S610, realizes maintenance and/or the renewal of application program by network service.
Whether step S610A, judge the maintenance of application program and/or upgrade successful, if success, then performing step S610B, otherwise, perform step S610C.
Step S610B, board resets and starts new procedures.
Step S610C, board resets to restart and carries out application maintenance and/or renewal.
Step S611, changes board or near-end maintaining.
To sum up, as the master routine of application software or firmware and stand-by program all start failure, then the minimum program by application software and firmware starts, and realizes network service, carries out far-end version updating and/or maintenance by network, and recovery system starts.Unsuccessfully then can only recover to start by replacing board or near-end maintaining as application software and the minimum program of firmware start.
Minimum program can make base station more healthy and stronger, has stronger self-recovery ability.The appearance avoiding situation such as replacing board or near-end maintaining etc. of lower limit.
Embodiment four
Two version of master routine and stand-by program are provided in the present embodiment, master routine and stand-by program is stored in permanent storage medium, if damaging or losing the normal startup also realizing system by stand-by program, without the need to changing board or near-end maintaining appears in master routine.Therefore, provided by the invention pair of version avoids the generation changing board and near-end maintaining situation in lower limit.
Be that main Bootloader and backup Bootloader divide partition holding, simultaneously for kernel reflection master routine and stand-by program, file system master routine and stand-by program divide partition holding in permanent storage medium operating system region.When system starts, load master reset configuration words source, thus load main Bootloader.If main Bootloader loads unsuccessfully, reset configuration words source switches to backup reset configuration words source.System reset loads backup reset configuration words source, thus loads backup Bootloader, and the system that realizes starts.
See Fig. 7, it is the schematic diagram of exemplary illustration in the method for loading application programs in the embodiment of the present invention four.
Step S701, powers on.
Step S702, resets and starts, and loads master reset configuration words source.
Step S703, loads main Bootloader.
Step S704, judges whether main Bootloader loads successfully, if so, then performs step S706, otherwise, perform step S705.
Step S705, switches to backup Bootloader, performs step S705A.
Step S705A, judges whether backup Bootloader loads successfully, if it is performs step S706, otherwise, perform step S718.
Step S706, loads the master routine of kernel mappings.
Step S707, judges whether the master routine of kernel mappings loads successfully, if so, then performs step S709, otherwise, perform step S708.
Step S708, loads the stand-by program of kernel mappings, performs step S708A.
Step S708A, whether the stand-by program of kernel mappings loads successfully, if so, then performs step S709, otherwise, perform step S718.
Step S709, the master routine of load document system.
Step S710, judges whether the master routine of file system loads successfully, if so, then performs step S712, otherwise, perform step S711.
Step S711, the stand-by program of load document system.
Step S711A, judges whether the stand-by program of file system loads successfully, if so, then performs step S712, otherwise, perform step S718.
Step S712, loads software main program.
Step S713, judges that whether software main program loads successful, if so, then performs step S715, otherwise, perform step S714.
Step S714, loads the stand-by program of software.
Step S714A, judges whether the stand-by program of software loads successfully, if so, then performs step S715, otherwise, perform step S714B.
Step S714B, loads the minimum program of software.
Step S714C, judges whether the minimum program of software loads successfully, if so, then performs step S715, otherwise, perform step S718.
Step S715, the master routine of loading firmware.
Step S716, judges whether the master routine of firmware loads successfully, if so, then performs step S719, otherwise, perform step S717.
Step S717, the stand-by program of loading firmware.
Step S717A, judges that whether firmware stand-by program loads successful, if so, then performs step S719, otherwise, perform step S717B.
Step S717B, the minimum program of loading firmware.
Step S717C, judges that whether the minimum program of firmware loads successful, if so, then performs step S719, otherwise, perform step S718.
Step S718, changes board or near-end maintaining.
Step S719, system has started.
The design of Bootloader active and standby pair of version enhances the self-recovery ability of base station, the MIN appearance avoiding replacing board and near-end maintaining situation.
In addition, for avoiding loss or the damage of the operating system version caused because of maloperation, divide independent partitions specially for operating system version, and be that the renewal erasable definition specific command in this region is erasable, with the generation of the loss or damaged condition of avoiding operating system version as far as possible.
The invention discloses the system of loading procedure in a kind of base station, as shown in Figure 8.
Described system comprises:
Memory module 100, for storing main Bootloader and backup Bootloader;
Master routine load-on module 200, when starting for resetting, loads main Bootloader according to the address of main Bootloader;
Stand-by program load-on module 300, for when main Bootloader loads unsuccessfully, loads backup Bootloader according to the address of backup Bootloader.
Further, described master routine load-on module 200 when loading main Bootloader according to the address of main Bootloader specifically for: within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.
Further, described master routine load-on module 200 also for: when reset signal is all invalid, then the input signal in reset configuration words source is switched to backup reset configuration words source signal used;
Described stand-by program load-on module 300 specifically for: if main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, navigate to backup Bootloader address, load backup Bootloader by described address.
Further, described master routine load-on module 200 also for: if by main Bootloader address load main Bootloader success, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
Further, described memory module 100 also for: store the minimum program of application program, described minimum program communicates with far-end server for making base station, safeguards and/or the program of renewal application program;
Described system also comprises:
Minimum program load-on module, for by loading minimum program, communicating with far-end server, realizing maintenance and/or the renewal of application program.
Further, described memory module 100 also for: storage space is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable; Main Bootloader, backup Bootloader and system program are stored in reserved area; Application program and file are stored in general areas.
Further, described memory module 100 is also for storing master routine and the stand-by program of application program;
Described minimum program load-on module specifically for: when loading system program, the master routine of loading system program, if load unsuccessfully, then the stand-by program of loading system program; When the master routine of loading application programs and stand-by program all failure time, then load minimum program, communicated with far-end server by minimum program, carry out maintenance and/or the renewal of application program.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. the method for loading procedure in base station, it is characterized in that, described method comprises:
Store main Bootloader and backup Bootloader;
When reset starts, load main Bootloader according to the address of main Bootloader;
If main Bootloader loads unsuccessfully, then load backup Bootloader according to the address of backup Bootloader;
Described method also comprises:
Store the minimum program of application program, described minimum program communicates with far-end server for making base station, safeguards and/or upgrade the program of application program;
By loading minimum program, communicating with far-end server, realizing maintenance and/or the renewal of application program;
Described method also comprises:
Store master routine and the stand-by program of application program;
Described passing through loads minimum program, communicates with far-end server, safeguards and/or upgrade application program specifically to comprise:
When loading system program, the master routine of loading system program, if load unsuccessfully, then the stand-by program of loading system program;
When the master routine of loading application programs and stand-by program all failure time, then load minimum program, communicated with far-end server by minimum program, realize maintenance and/or the renewal of application program.
2. method according to claim 1, is characterized in that,
The described address according to main Bootloader loads main Bootloader and specifically comprises:
Within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.
3. method according to claim 2, is characterized in that,
Described within reset signal effective period, also comprise after the loaded with hardware configuration words of master reset configuration words source:
When reset signal is all invalid, the input signal in reset configuration words source is switched to backup reset configuration words source signal used;
If described main Bootloader loads unsuccessfully, then load backup Bootloader according to the address of backup Bootloader and specifically comprise:
If main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, backup Bootloader address will be navigated to, loads backup Bootloader by described address.
4. method according to claim 3, is characterized in that,
Describedly navigate to main Bootloader address, also comprise after loading main Bootloader by described address:
If load the success of main Bootloader by main Bootloader address, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
5. method according to claim 1, is characterized in that,
Described method also comprises:
Storage space is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable;
Main Bootloader, backup Bootloader and system program are stored in reserved area;
Application program and file are stored in general areas.
6. the system of loading procedure in base station, it is characterized in that, described system comprises:
Memory module, for storing main Bootloader and backup Bootloader;
Master routine load-on module, when starting for resetting, loads main Bootloader according to the address of main Bootloader;
Stand-by program load-on module, for when main Bootloader loads unsuccessfully, loads backup Bootloader according to the address of backup Bootloader;
Memory module also for: store the minimum program of application program, described minimum program communicates with far-end server for making base station, safeguards and/or the program of renewal application program;
Described system also comprises: minimum program load-on module, for by loading minimum program, communicating, realize maintenance and/or the renewal of application program with far-end server;
Described memory module is also for storing master routine and the stand-by program of application program;
Described minimum program load-on module specifically for: when loading system program, the master routine of loading system program, if load unsuccessfully, then the stand-by program of loading system program; When the master routine of loading application programs and stand-by program all failure time, then load minimum program, communicated with far-end server by minimum program, carry out maintenance and/or the renewal of application program.
7. system according to claim 6, is characterized in that,
Described master routine load-on module when loading main Bootloader according to the address of main Bootloader specifically for: within reset signal effective period, from master reset configuration words source loaded with hardware configuration words, navigate to main Bootloader address, load main Bootloader by described address.
8. system according to claim 7, is characterized in that,
Described master routine load-on module also for: when reset signal is all invalid, the input signal in reset configuration words source is switched to backup reset configuration words source signal used;
Described stand-by program load-on module specifically for: if main Bootloader loads unsuccessfully, when again starting when resetting, from backup reset configuration words source loaded with hardware configuration words, navigate to backup Bootloader address, load backup Bootloader by described address.
9. system according to claim 8, is characterized in that,
Described master routine load-on module also for: if by main Bootloader address load main Bootloader success, then the input signal in reset configuration words source is reverted to master reset configuration words source signal used.
10. system according to claim 6, is characterized in that,
Memory module also for: storage space is divided into the reserved area using specific command word erasable and the general areas using generic command word erasable; Main Bootloader, backup Bootloader and system program are stored in reserved area; Application program and file are stored in general areas.
CN201210308976.6A 2012-08-27 2012-08-27 The method and system of loading procedure in a kind of base station Expired - Fee Related CN102819444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210308976.6A CN102819444B (en) 2012-08-27 2012-08-27 The method and system of loading procedure in a kind of base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210308976.6A CN102819444B (en) 2012-08-27 2012-08-27 The method and system of loading procedure in a kind of base station

Publications (2)

Publication Number Publication Date
CN102819444A CN102819444A (en) 2012-12-12
CN102819444B true CN102819444B (en) 2015-09-02

Family

ID=47303569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210308976.6A Expired - Fee Related CN102819444B (en) 2012-08-27 2012-08-27 The method and system of loading procedure in a kind of base station

Country Status (1)

Country Link
CN (1) CN102819444B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516791B (en) * 2013-09-30 2018-09-28 北京猎豹移动科技有限公司 Data processing method, device and electronic equipment
CN103902338B (en) * 2014-03-21 2017-08-04 珠海市君天电子科技有限公司 A kind of drive load and processing method, client, server and system
DE112017002065T5 (en) * 2016-04-18 2019-01-03 Olympus Corporation Battery powered medical device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024581B1 (en) * 2002-10-09 2006-04-04 Xpoint Technologies, Inc. Data processing recovery system and method spanning multiple operating system
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system
CN101826057A (en) * 2009-03-02 2010-09-08 德晶电子股份有限公司 Setting method of hidden memory sections of flash memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024581B1 (en) * 2002-10-09 2006-04-04 Xpoint Technologies, Inc. Data processing recovery system and method spanning multiple operating system
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system
CN101826057A (en) * 2009-03-02 2010-09-08 德晶电子股份有限公司 Setting method of hidden memory sections of flash memory

Also Published As

Publication number Publication date
CN102819444A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
US10680932B1 (en) Managing connectivity to synchronously replicated storage systems
CN106155915B (en) Data storage processing method and device
CN102165422B (en) Firmware update device and method
CN102597983B (en) Metadata virtual hard drive driver and difference virtual hard is used to back up
CN101840362B (en) Method and device for achieving copy-on-write snapshot
CN103345470B (en) A kind of database disaster recovery method, system and server
CN105700901B (en) Starting method, device and computer system
CN102150124A (en) Information backup/restoration processing apparatus and information backup/restoration processing system
KR20140055938A (en) Rack and method thereof for simultaneously updating basic input output systems
CN109522154B (en) Data recovery method and related equipment and system
CN103164342A (en) Mount-time reconciliation of data availability
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN104331318B (en) A kind of Embedded Double system and its method of work
CN109086078B (en) Android system upgrading method and device, server and mobile terminal
CN102819444B (en) The method and system of loading procedure in a kind of base station
JP2001218241A (en) Electric exchange
CN107566169A (en) A kind of firmware upgrade method and router based on openwrt
CN106227620A (en) Recoverable Flash data storage method
CN109324549B (en) Dual-master control equipment configuration method and dual-master control equipment
CN104915265A (en) Data backup method and electronic equipment
CN111124294B (en) Sector mapping information management method and device, storage medium and equipment
EP4027243A1 (en) Data recovery method and related device
KR101576370B1 (en) System and method for remote restoration of computer system, and computer-readable recording medium with program therefor
CN109582239B (en) SSD bad block table storage method, device, equipment and storage medium
CN110795155B (en) System starting method and device, electronic equipment and storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170831

Address after: 100070, No. 188, building 25, No. eighteen, South Fourth Ring Road, Fengtai District, Beijing, 1, 101

Patentee after: Beijing Haiyun Technology Co.,Ltd.

Address before: 510663, No. 3, color road, Science City, Guangzhou Development Zone, Guangdong

Patentee before: NEW POSTCOM EQUIPMENT Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150902