CN105278410B - A kind of method, apparatus and system for automatically inserting minimum system - Google Patents
A kind of method, apparatus and system for automatically inserting minimum system Download PDFInfo
- Publication number
- CN105278410B CN105278410B CN201510706357.6A CN201510706357A CN105278410B CN 105278410 B CN105278410 B CN 105278410B CN 201510706357 A CN201510706357 A CN 201510706357A CN 105278410 B CN105278410 B CN 105278410B
- Authority
- CN
- China
- Prior art keywords
- embedded
- plate
- minimum system
- bootstrap
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/23—Pc programming
- G05B2219/23049—Control panel serial, RS232 connected to controller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of method and devices for automatically inserting minimum system, it solves current transmission and Bootloader is later using serial ports request transmission minimum system file, then server-side in network link of the Simple File Transfer Protocol (TFTP) between bare board and server-side to transmit file, due to needing to configure tftp server before upgrading, and need artificially to send bare board burning during embedded minimum system and ask to server, caused by error rate it is high the technical issues of.The method of the present invention includes:Get the bootstrap transmission request that plate to be embedded is sent;Bootstrap is sent to by plate to be embedded according to bootstrap transmission request so that after plate to be embedded performs preset configuration mode by bootstrap, automatic transmission minimum system transmission corresponding with bootstrap is asked;Minimum system is sent to plate to be embedded by the minimum system transmission request according to getting so that plate to be embedded completes automatically inserting for minimum system.
Description
Technical field
The present invention relates to field of embedded technology more particularly to a kind of method, apparatus for automatically inserting minimum system and it is
System.
Background technology
Embedded system, for controlling, monitoring or the device of auxiliary operation machine and equipment, embedded system is a kind of
Dedicated computer system, as device or a part for equipment.It is stored in general, embedded system is a control program
Embeded processor control panel in ROM.In fact, all equipment with digital interface, as wrist-watch, micro-wave oven, video recorder,
Automobile etc., all using embedded system, some embedded systems also comprising operating system, but most of embedded systems be all by
Single program realizes entire control logic.
Embedded Minimum System is the minimum that can make system operation in the case where reducing upper layer application as far as possible
Module is configured, and generally includes bootstrap, kernel, root file system.During veneer is developed, be bare board (without any insertion
The veneer of formula system) upgrading minimum system be the link that can not be lacked.
Bare board upgrading minimum system process is mainly comprising two parts, the i.e. minimum system of transmission start bootstrap and upgrading
Using serial ports request transmission minimum system file after system, usually transmission and Bootloader, then server-side is with simple text
Part transport protocol (TFTP) transmits file in the network link between bare board and server-side.This method is in actual upgrade process
In so that tftp server is needed to configure before upgrading, operation is comparatively laborious, and is needed artificially during embedded minimum system
Send bare board burning ask to server, so as to cause error rate it is high the technical issues of.
Invention content
An embodiment of the present invention provides a kind of method and devices for automatically inserting minimum system, solve current transmission simultaneously
Using serial ports request transmission minimum system file after Bootloader, then server-side is with Simple File Transfer Protocol
(TFTP) file is transmitted in the network link between bare board and server-side, due to needing to configure tftp server before upgrading, and
Need artificially to send bare board burning during embedded minimum system and ask to server, caused by the high technology of error rate
Problem.
A kind of method for automatically inserting minimum system provided in an embodiment of the present invention, including:
Get the bootstrap transmission request that the plate to be embedded is sent;
The bootstrap is sent to by the plate to be embedded according to bootstrap transmission request so that it is described treat it is embedding
It is automatic to send and the corresponding minimum system of the bootstrap after entering plate by bootstrap execution preset configuration mode
System transmission request;
Minimum system is sent to the plate to be embedded by the minimum system transmission request according to getting so that described
Plate to be embedded completes automatically inserting for the minimum system.
Optionally, it is further included before getting the bootstrap transmission request that the plate to be embedded is sent:
With getting the MAC for including at least one plate to be embedded that the plate to be embedded is sent by broadcast mode
The distribution IP address request of location;
It is according to whether the MAC Address judges once to distribute with the corresponding plate to be embedded of the MAC Address
IP address, if so, the IP address once distributed and bootstrap name are sent to the pattern of the first response bag described
Plate to be embedded, if it is not, the new IP address of distribution and bootstrap name then are sent to described treat with the pattern of the second response bag
Insert plate, and the new IP address and the MAC Address are established into correspondence.
Optionally, the bootstrap transmission request that the plate to be embedded is sent is got to specifically include:
Get the guiding that at least one plate to be embedded uses the IP address of distribution to be sent in a manner of TCP
Program transportation is asked.
Optionally, preset configuration mode specifically includes:
The plate to be embedded runs the bootstrap, and close house dog;
Own IP address is set as to the IP address of distribution;
Distribute the nand spaces for storing the minimum system.
Optionally, minimum system is sent to by the plate to be embedded according to the minimum system transmission request got,
It is specifically included so that the plate to be embedded completes the automatically inserting for minimum system:
By judging whether really to receive the minimum system transmission request under listening state, if so, being by minimum
System is sent to the plate to be embedded so that the plate to be embedded completes automatically inserting for the minimum system, if it is not, then carrying out embedding
Enter the prompting of the notice of abnormal state.
A kind of device for automatically inserting minimum system provided in an embodiment of the present invention, including:
Bootstrap transmits acquisition request unit, please for getting the bootstrap transmission that the plate to be embedded is sent
It asks;
First transmitting element, it is embedding for treating described according to bootstrap transmission request, the bootstrap is sent to
Enter plate so that automatic to send and the guiding after the plate to be embedded performs preset configuration mode by the bootstrap
The corresponding minimum system transmission request of program;
Second transmitting element, it is described for being sent to minimum system according to the minimum system transmission request got
Plate to be embedded so that the plate to be embedded completes automatically inserting for the minimum system.
Optionally, the device for automatically inserting minimum system further includes:
IP address acquisition request unit is distributed, is included for getting the plate to be embedded by what broadcast mode was sent
The distribution IP address request of the MAC Address of at least one plate to be embedded;
IP address judges allocation unit, for according to the MAC Address judge with the MAC Address it is corresponding described in treat
Whether insert plate once distributed the IP address, if so, by the IP address once distributed and bootstrap name with first
The pattern of response bag is sent to the plate to be embedded, if it is not, then by the new IP address of distribution and bootstrap name with the second sound
The pattern that should be wrapped is sent to the plate to be embedded, and the new IP address and the MAC Address are established correspondence.
Optionally, bootstrap transmission acquisition request unit, is adopted specifically for getting at least one plate to be embedded
Request is transmitted with the bootstrap that the IP address of distribution is sent in a manner of TCP;
Second transmitting element, specifically for by judging whether really to receive the minimum system under listening state
Transmission request, if so, minimum system is sent to the plate to be embedded so that the plate to be embedded completes the minimum system
Automatically insert, if it is not, then carrying out the prompting of the notice of embedded abnormal state.
A kind of system for automatically inserting minimum system provided in an embodiment of the present invention, including:
The device for automatically inserting minimum system described in any one referred in plate and the present embodiment to be embedded;
The plate to be embedded is connect with the device for automatically inserting minimum system by network communication.
Optionally, the plate to be embedded is a plurality of, is led to by interchanger and the device for automatically inserting minimum system
Letter connection;
The plate to be embedded specifically includes:
First processing units for running the bootstrap, and close house dog;
First allocation unit, for own IP address to be set as to the IP address of distribution;
Second allocation unit, for distributing the nand spaces for storing the minimum system.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of method, apparatus and system for automatically inserting minimum system provided in an embodiment of the present invention, wherein, it automatically inserts
The method of minimum system includes:Get the bootstrap transmission request that plate to be embedded is sent;It is transmitted and asked according to bootstrap
Bootstrap is sent to plate to be embedded so that automatic to send out after plate to be embedded performs preset configuration mode by bootstrap
Send minimum system transmission request corresponding with bootstrap;Minimum system is sent out in minimum system transmission request according to getting
Give plate to be embedded so that plate to be embedded completes automatically inserting for minimum system.In the present embodiment, by getting plate to be embedded
The bootstrap transmission request of transmission;Bootstrap is sent to by plate to be embedded according to bootstrap transmission request so that treat embedding
After entering plate by bootstrap execution preset configuration mode, automatic transmission minimum system transmission corresponding with bootstrap is asked
It asks;Minimum system is sent to plate to be embedded by the minimum system transmission request according to getting, and is realized plate to be embedded and is completed most
Mini system automatically inserts, and solves current transmission and Bootloader is later using serial ports request transmission minimum system text
Part, then server-side is in network link of the Simple File Transfer Protocol (TFTP) between bare board and server-side to transmit file,
Due to needing to configure tftp server before upgrading, and need during embedded minimum system artificially to send bare board burning and ask
To server, caused by error rate it is high the technical issues of.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1, which is that an embodiment of the present invention provides a kind of flows of the one embodiment for the method for automatically inserting minimum system, to be shown
It is intended to;
Fig. 2 is an embodiment of the present invention provides a kind of flows of another embodiment of the method for automatically inserting minimum system
Schematic diagram;
Fig. 3 is an embodiment of the present invention provides a kind of flows of another embodiment of the method for automatically inserting minimum system
Schematic diagram;
Fig. 4, which is that an embodiment of the present invention provides a kind of structures of the one embodiment for the device for automatically inserting minimum system, to be shown
It is intended to;
Fig. 5 is an embodiment of the present invention provides a kind of structures of another embodiment of the device for automatically inserting minimum system
Schematic diagram;
Fig. 6, which is that an embodiment of the present invention provides a kind of structures of the one embodiment for the system for automatically inserting minimum system, to be shown
It is intended to;
Fig. 7 is the flow diagram for automatically inserting minimum system that an embodiment provides;
Fig. 8 is the flow diagram that program is performed in the boot program loads to memory that an embodiment provides.
Specific embodiment
An embodiment of the present invention provides a kind of method and devices for automatically inserting minimum system, solve current transmission simultaneously
Using serial ports request transmission minimum system file after Bootloader, then server-side is with Simple File Transfer Protocol
(TFTP) file is transmitted in the network link between bare board and server-side, due to needing to configure tftp server before upgrading, and
Need artificially to send bare board burning during embedded minimum system and ask to server, caused by the high technology of error rate
Problem.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that disclosed below
Embodiment be only part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, an embodiment of the present invention provides a kind of one embodiment packets for the method for automatically inserting minimum system
It includes:
101st, the bootstrap transmission request that plate to be embedded is sent is got;
In the present embodiment, when needing to treat insert plate embedded system or program, it is necessary first to get plate hair to be embedded
The bootstrap transmission request sent.
102nd, bootstrap is sent to by plate to be embedded according to bootstrap transmission request so that plate to be embedded passes through guiding
After program performs preset configuration mode, automatic transmission minimum system transmission corresponding with bootstrap is asked;
After the bootstrap transmission request that plate to be embedded is sent is got, needing will according to bootstrap transmission request
Bootstrap is sent to plate to be embedded so that automatic to send after plate to be embedded performs preset configuration mode by bootstrap
Minimum system transmission request corresponding with bootstrap.
103rd, minimum system is sent to by plate to be embedded according to the minimum system transmission request got so that plate to be embedded
Complete automatically inserting for minimum system.
It asks bootstrap being sent to plate to be embedded when according to bootstrap transmission so that plate to be embedded is by guiding journey
After sequence performs preset configuration mode, after automatic transmission minimum system transmission request corresponding with bootstrap, root is needed
Minimum system is sent to plate to be embedded according to the minimum system transmission request got so that plate to be embedded completes minimum system
It automatically inserts.
In the present embodiment, the bootstrap sent by getting plate to be embedded transmits request;It is transmitted according to bootstrap
Bootstrap is sent to plate to be embedded by request so that after plate to be embedded performs preset configuration mode by bootstrap, from
It is dynamic to send minimum system transmission request corresponding with bootstrap;Minimum system transmission according to getting is asked
System is sent to plate to be embedded, realizes plate to be embedded and completes automatically inserting for minimum system, solves current transmission and startup
Minimum system file is transmitted using serial ports request after bootstrap, then server-side is existed with Simple File Transfer Protocol (TFTP)
File is transmitted in network link between bare board and server-side, due to needing to configure tftp server before upgrading, and in insertion most
Need artificially to send bare board burning during mini system and ask to server, caused by error rate it is high the technical issues of.
The above is that the process for automatically inserting the method for minimum system is described in detail, and will guide journey to transmission below
The process of sequence is described in detail, referring to Fig. 2, an embodiment of the present invention provides a kind of methods for automatically inserting minimum system
Another embodiment include:
201st, the MAC Address for including at least one plate to be embedded that plate to be embedded is sent by broadcast mode is got
Distribute IP address request;
In the present embodiment, when needing to treat insert plate embedded system or program, it is necessary first to get plate to be embedded and lead to
Cross the distribution IP address request of the MAC Address for including at least one plate to be embedded of broadcast mode transmission.
202nd, judge whether once distributed IP address with the corresponding plate to be embedded of MAC Address according to MAC Address, if so,
Step 203 is then performed, if it is not, then performing step 204;
When point for getting the MAC Address for including at least one plate to be embedded that plate to be embedded is sent by broadcast mode
After asking with IP address, need to be judged with the corresponding plate to be embedded of MAC Address with whether once distributing IP according to MAC Address
Location, if so, step 203 is performed, if it is not, then performing step 204.
203rd, the IP address once distributed and bootstrap name are sent to plate to be embedded with the pattern of the first response bag;
When judging that with the corresponding plate to be embedded of MAC Address be once to distribute IP address according to MAC Address, then will once distribute
The IP address and bootstrap name crossed are sent to plate to be embedded with the pattern of the first response bag.
204th, the new IP address of distribution and bootstrap name are sent to plate to be embedded with the pattern of the second response bag, and
New IP address and MAC Address are established into correspondence;
When never distributing IP address with the corresponding plate to be embedded of MAC Address according to MAC Address judgement, then by distribution
New IP address and bootstrap name is sent to plate to be embedded, and by new IP address and MAC with the pattern of the second response bag
Correspondence is established in location.
205th, the bootstrap transmission that at least one plate to be embedded uses the IP address of distribution to be sent in a manner of TCP is got
Request;
After step 203 or step 204, need to get at least one plate to be embedded use the IP address of distribution with
The bootstrap transmission request that TCP modes are sent.
206th, bootstrap is sent to by plate to be embedded according to bootstrap transmission request so that plate to be embedded passes through guiding
After program performs preset configuration mode, automatic transmission minimum system transmission corresponding with bootstrap is asked;
When get at least one plate to be embedded use distribution IP address sent in a manner of TCP bootstrap transmission please
After asking, need that bootstrap is sent to plate to be embedded according to bootstrap transmission request so that plate to be embedded passes through guiding
After program performs preset configuration mode, automatic transmission minimum system transmission corresponding with bootstrap is asked.
207th, minimum system is sent to by plate to be embedded according to the minimum system transmission request got so that plate to be embedded
Complete automatically inserting for minimum system.
It asks bootstrap being sent to plate to be embedded when according to bootstrap transmission so that plate to be embedded is by guiding journey
After sequence performs preset configuration mode, after automatic transmission minimum system transmission request corresponding with bootstrap, root is needed
Minimum system is sent to plate to be embedded according to the minimum system transmission request got so that plate to be embedded completes minimum system
It automatically inserts.
It for embodiment illustrated in fig. 2, is described below with application examples one, as shown in fig. 6, application examples one:
After the power is turned on, network chip sends Bootp request protocol packets, request server distribution IP to bare board in a manner of udp broadcast
Address after server receives request protocol packet, equally returns to Bootp response protocol packets in a manner of udp broadcast, which, which includes, divides
The IP address and bootstrap name matched, then veneer use distribution IP address TFTP read requests are sent in a manner of Transmission Control Protocol
Protocol package, request transmission bootstrap, server receive transmission bootstrap data packet after request, after transferring, bare board
By boot program loads to internal storage starting program, TFTP read request protocol packages, request transmission minimum system, server response are sent
Request, transmits minimum system, and bare board has been received in minimum system and programming to the FLASH of bare board.
In the present embodiment, the bootstrap sent by getting plate to be embedded transmits request;It is transmitted according to bootstrap
Bootstrap is sent to plate to be embedded by request so that after plate to be embedded performs preset configuration mode by bootstrap, from
It is dynamic to send minimum system transmission request corresponding with bootstrap;Minimum system transmission according to getting is asked
System is sent to plate to be embedded, realizes plate to be embedded and completes automatically inserting for minimum system, solves current transmission and startup
Minimum system file is transmitted using serial ports request after bootstrap, then server-side is existed with Simple File Transfer Protocol (TFTP)
File is transmitted in network link between bare board and server-side, due to needing to configure tftp server before upgrading, and in insertion most
Need artificially to send bare board burning during mini system and ask to server, caused by error rate it is high the technical issues of, with
And server-side inquires MAC Address and the mapping table of the IP address of distribution, if bare board after distribution IP address request is received
Once IP address was distributed, then will once distribute IP address and return to bare board, and otherwise distribute new IP address to bare board, thus keep away
Exempt from, when same bare board repetitive requests, to be assigned with happening for different IP address, ensure that data just in this way
It often transmits, the server-side and server referred in the present embodiment is the device for automatically inserting minimum system.
The above is that the process for transmitting bootstrap is described in detail, and preset configuration mode will be carried out below in detail
Description, referring to Fig. 3, another embodiment packet an embodiment of the present invention provides a kind of method for automatically inserting minimum system
It includes:
301st, the MAC Address for including at least one plate to be embedded that plate to be embedded is sent by broadcast mode is got
Distribute IP address request;
In the present embodiment, when needing to treat insert plate embedded system or program, it is necessary first to get plate to be embedded and lead to
Cross the distribution IP address request of the MAC Address for including at least one plate to be embedded of broadcast mode transmission.
302nd, judge whether once distributed IP address with the corresponding plate to be embedded of MAC Address according to MAC Address, if so,
Step 303 is then performed, if it is not, then performing step 304;
When point for getting the MAC Address for including at least one plate to be embedded that plate to be embedded is sent by broadcast mode
After asking with IP address, need to be judged with the corresponding plate to be embedded of MAC Address with whether once distributing IP according to MAC Address
Location, if so, step 303 is performed, if it is not, then performing step 304.
303rd, the IP address once distributed and bootstrap name are sent to plate to be embedded with the pattern of the first response bag;
When judging that with the corresponding plate to be embedded of MAC Address be once to distribute IP address according to MAC Address, then will once distribute
The IP address and bootstrap name crossed are sent to plate to be embedded with the pattern of the first response bag.
304th, the new IP address of distribution and bootstrap name are sent to plate to be embedded with the pattern of the second response bag, and
New IP address and MAC Address are established into correspondence;
When never distributing IP address with the corresponding plate to be embedded of MAC Address according to MAC Address judgement, then by distribution
New IP address and bootstrap name is sent to plate to be embedded, and by new IP address and MAC with the pattern of the second response bag
Correspondence is established in location.
305th, the bootstrap transmission that at least one plate to be embedded uses the IP address of distribution to be sent in a manner of TCP is got
Request;
After step 303 or step 304, need to get at least one plate to be embedded use the IP address of distribution with
The bootstrap transmission request that TCP modes are sent.
306th, bootstrap is sent to by plate to be embedded according to bootstrap transmission request;
When get at least one plate to be embedded use distribution IP address sent in a manner of TCP bootstrap transmission please
After asking, need that bootstrap is sent to plate to be embedded according to bootstrap transmission request.
307th, plate operation bootstrap to be embedded, and close house dog;
After bootstrap is sent to plate to be embedded according to bootstrap transmission request, plate operation guiding journey to be embedded
Sequence, and close house dog.
The 308th, own IP address is set as to the IP address of distribution;
It when plate to be embedded runs bootstrap, and closes after house dog, own IP address is set as point by plate to be embedded
The IP address matched.
309th, the nand spaces for storing minimum system are distributed;
After own IP address is set as the IP address of distribution by plate to be embedded, distribute to store minimum system
Nand spaces.
310th, plate to be embedded sends minimum system transmission corresponding with bootstrap and asks automatically;
After the nand spaces for storing minimum system are distributed, plate to be embedded sends corresponding with bootstrap automatically
Minimum system transmission request.
311st, by judging whether really to receive minimum system transmission request under listening state, if so, performing step
312, if it is not, then performing step 313;
After plate to be embedded sends minimum system transmission corresponding with bootstrap automatically asks, need by supervising
It listens and judges whether really to receive minimum system transmission request under state, if so, step 312 is performed, if it is not, then performing step
313。
312nd, minimum system is sent to plate to be embedded so that plate to be embedded completes automatically inserting for minimum system;
When judging it is really to receive minimum system transmission request under listening state, then minimum system is sent to be embedded
Plate so that plate to be embedded completes automatically inserting for minimum system.
313rd, the prompting of the notice of embedded abnormal state is carried out.
When judging not receive minimum system transmission request really under listening state, then the notice of embedded abnormal state is carried out
Prompting.
For embodiment illustrated in fig. 3, it is described below with an application examples, as shown in Figure 6 and Figure 7, application examples:
After the power is turned on, network chip sends Bootp request protocol packets, request server distribution IP to bare board in a manner of udp broadcast
Address after server receives request protocol packet, equally returns to Bootp response protocol packets in a manner of udp broadcast, which, which includes, divides
The IP address and bootstrap name matched, then veneer use distribution IP address TFTP read requests are sent in a manner of Transmission Control Protocol
Protocol package, request transmission bootstrap, server receive transmission bootstrap data packet after request, after transferring, bare board
By boot program loads to internal storage starting program, TFTP read request protocol packages, request transmission minimum system, server response are sent
Request, transmits minimum system, and bare board has been received in minimum system and programming to the FLASH of bare board.
As shown in fig. 6, step S101:Bare board powers on, request distribution IP address;
Step S102:It after service terminates to request, responds, returns to the IP of distribution;
Step S103:Bare board request transmission bootstrap;
Step S104:Server-side respond request transmits bootstrap by network link to bare board;
Step S105:After bare board receives bootstrap, it will be run in the boot program loads to memory, as shown in fig. 7,
After execution of step S201, S202, S203, S204, S205, S206, bootstrap sends transmission minimum system to server-side please
It asks;
Step S106:Server is according to whether receive the request of transmission minimum system, and judgement enters step S107, still
S110 is entered step to terminate escalation process and inform customer upgrade state (request minimum system is abnormal);
Step S107:After server receives transmission minimum system request, server transport minimum system;
Step S108:Bare board performs bootstrap step S207 as shown in Figure 2, receives minimum system;
Step S109:Bare board performs bootstrap step S208 shown in Fig. 2, by minimum system programming to bare board
In FLASH, after programming finishes, S209 is performed, preserves configuration information;
Step S110:Inform customer upgrade state (upgrading successfully).
After bare board has received bootstrap, it can will start in the boot program loads to memory, perform the flow of program
Schematic diagram as shown in Fig. 2, it includes the step of:
Step S201:Bootloader carries out a series of initial works;
Step S202:Close house dog;
Step S203:Setting bare board IP address is the IP address of distribution;
Step S204:Server-side IP address is set;
Step S205:Distribute nand spaces storage minimum system;
Step S206:Request transmission minimum system;
Step S207:Receive minimum system;
Step S208:Programming minimum system;
Step S209:Preserve configuration information.
In order to make it easy to understand, detailed retouch is carried out to the embodiment of Fig. 3, Fig. 6 and Fig. 7 with a concrete application scene below
It states, application scenarios are as follows:
Assuming that there are N block bare boards to need to upgrade minimum system, it is respectively labeled as bare board 1, bare board 2 ..., bare board N, by this N block
The network port of bare board and the PC hosts of installation server-side all taps into same interchanger, starts server-side, automatically configures network, connect
It server-side and is in listening state, bare board is waited for send request.
Assuming that bare board m is after the power is turned on, the request of distribution IP address is sent, which includes the MAC Address of bare board, and server-side is received
To after the request, judge whether the bare board once distributed IP address according to MAC Address, if it is, by the IP once distributed
Location returns to bare board, and new IP address is distributed if it is not, returning, and establishes MAC Address with distributing a pair for IP address
It should be related to.Bare board receives the IP address of distribution, and point-to-point connection, request transmission bootstrap, service are established with server-side
Bootstrap is transmitted in end by the connection established, and after end of transmission, bare board bootload program is simultaneously run, and performs program, from
The dynamic request for sending transmission minimum system, server-side is according to whether receive the request, if not receiving the request, the upgrading
Process terminates, and the information for asking failure is informed client, and client carries out the abnormal investigation of upgrading according to the information;If it receives
The request then transmits minimum system to bare board.After bare board reception minimum system finishes, bootstrap, programming minimum journey are performed
Sequence then preserves configuration information, updating result finally is informed client.
In the present embodiment, the bootstrap sent by getting plate to be embedded transmits request;It is transmitted according to bootstrap
Bootstrap is sent to plate to be embedded by request so that after plate to be embedded performs preset configuration mode by bootstrap, from
It is dynamic to send minimum system transmission request corresponding with bootstrap;Minimum system transmission according to getting is asked
System is sent to plate to be embedded, realizes plate to be embedded and completes automatically inserting for minimum system, solves current transmission and startup
Minimum system file is transmitted using serial ports request after bootstrap, then server-side is existed with Simple File Transfer Protocol (TFTP)
File is transmitted in network link between bare board and server-side, due to needing to configure tftp server before upgrading, and in insertion most
Need artificially to send bare board burning during mini system and ask to server, caused by error rate it is high the technical issues of, with
And server-side inquires MAC Address and the mapping table of the IP address of distribution, if bare board after distribution IP address request is received
Once IP address was distributed, then will once distribute IP address and return to bare board, and otherwise distribute new IP address to bare board, thus keep away
Exempt from, when same bare board repetitive requests, to be assigned with happening for different IP address, ensure that data just in this way
Often transmission, meanwhile, after bare board has received bootstrap, it is loaded into memory and runs, automatic request and programming minimum system, in this way
It is avoided that using artificially request is sent using serial ports, shorten update time and error rate substantially reduces, and existing use
When serial ports upgrades minimum system, the upgrading mode between server-side and bare board is serial, and bare board queuing is upgraded.The present embodiment
Server-side and bare board between upgrading mode be it is parallel, each bare board upgrading minimum system process be it is relatively independent, mutually not
Interference, therefore can theoretically upgrade the correctness that polylith veneer also can guarantee data transmission simultaneously, it is greatly improved batch upgrade
The efficiency of minimum system, the server-side and server referred in the present embodiment is the device for automatically inserting minimum system.
Referring to Fig. 4, a kind of one embodiment of device for automatically inserting minimum system provided in the embodiment of the present invention
Including:
Bootstrap transmission acquisition request unit 401 transmits request for getting the bootstrap that plate to be embedded is sent;
First transmitting element 402, for bootstrap to be sent to plate to be embedded according to bootstrap transmission request so that
After plate to be embedded performs preset configuration mode by bootstrap, automatic send passes with the corresponding minimum system of bootstrap
Defeated request;
Second transmitting element 403, for minimum system is sent to according to the minimum system transmission request got treat it is embedding
Enter plate so that plate to be embedded completes automatically inserting for minimum system.
In the present embodiment, the guiding journey of plate transmission to be embedded is got by bootstrap transmission acquisition request unit 401
Sequence transmission request;Bootstrap is sent to plate to be embedded by the first transmitting element 402 according to bootstrap transmission request so that is treated
After insert plate performs preset configuration mode by bootstrap, automatic send is transmitted with the corresponding minimum system of bootstrap
Request;Minimum system is sent to plate to be embedded by the second transmitting element 403 according to the minimum system transmission request got, is realized
Plate to be embedded completes automatically inserting for minimum system, and solving please using serial ports after current transmission and Bootloader
Transmission minimum system file is sought, then network of the server-side with Simple File Transfer Protocol (TFTP) between bare board and server-side
File is transmitted in link, due to needing to configure tftp server before upgrading, and is needed artificially during embedded minimum system
Bare board burning is sent to ask to server, caused by error rate it is high the technical issues of, the server-side that refers in the present embodiment and
Server is the device for automatically inserting minimum system.
The above is that each unit for automatically inserting the device of minimum system is described in detail, below will be to extra cell
It is described in detail, referring to Fig. 5, a kind of device for automatically inserting minimum system provided in the embodiment of the present invention is another
A embodiment includes:
IP address acquisition request unit 501 is distributed, is included for getting plate to be embedded by what broadcast mode was sent
The distribution IP address request of the MAC Address of at least one plate to be embedded;
IP address judges allocation unit 502, for being with the corresponding plate to be embedded of MAC Address according to MAC Address judgement
It is no once to distribute IP address, if so, the IP address once distributed and bootstrap name are sent with the pattern of the first response bag
To plate to be embedded, if it is not, then the new IP address of distribution and bootstrap name are sent to the pattern of the second response bag treat it is embedding
Enter plate, and new IP address and MAC Address are established into correspondence.
Bootstrap transmission acquisition request unit 503 transmits request for getting the bootstrap that plate to be embedded is sent,
Bootstrap transmission acquisition request unit 503, specifically for get at least one plate to be embedded use the IP address distributed with
The bootstrap transmission request that TCP modes are sent;
First transmitting element 504, for bootstrap to be sent to plate to be embedded according to bootstrap transmission request so that
After plate to be embedded performs preset configuration mode by bootstrap, automatic send passes with the corresponding minimum system of bootstrap
Defeated request;
Second transmitting element 505, for minimum system is sent to according to the minimum system transmission request got treat it is embedding
Enter plate so that plate to be embedded completes automatically inserting for minimum system, the second transmitting element 505, specifically for by monitoring shape
Judge whether really to receive minimum system transmission request under state, if so, minimum system is sent to plate to be embedded so that treat embedding
Enter plate and complete automatically inserting for minimum system, if it is not, then carrying out the prompting of the notice of embedded abnormal state.
The server-side and server referred in the present embodiment is to automatically insert the device of minimum system.
In the present embodiment, the guiding journey of plate transmission to be embedded is got by bootstrap transmission acquisition request unit 503
Sequence transmission request;Bootstrap is sent to plate to be embedded by the first transmitting element 504 according to bootstrap transmission request so that is treated
After insert plate performs preset configuration mode by bootstrap, automatic send is transmitted with the corresponding minimum system of bootstrap
Request;Minimum system is sent to plate to be embedded by the second transmitting element 505 according to the minimum system transmission request got, is realized
Plate to be embedded completes automatically inserting for minimum system, and solving please using serial ports after current transmission and Bootloader
Transmission minimum system file is sought, then network of the server-side with Simple File Transfer Protocol (TFTP) between bare board and server-side
File is transmitted in link, due to needing to configure tftp server before upgrading, and is needed artificially during embedded minimum system
Send bare board burning ask to server, caused by error rate it is high the technical issues of and IP address judge allocation unit 502
After distribution IP address request is received, inquiry MAC Address and the mapping table of the IP address of distribution, if bare board once distributed
IP address then will once distribute IP address and return to bare board, otherwise distribute new IP address to bare board, be avoided in this way when same
During one piece of bare board repetitive requests, happening for different IP address is assigned with, ensures that the normal transmission of data in this way, together
When, after bare board has received bootstrap, it is loaded into memory and runs, automatic request and programming minimum system, in this way it is avoided that making
Request is sent using serial ports with artificial, update time is shortened and error rate substantially reduces, and is existing using serial ports upgrading
During minimum system, the upgrading mode between server-side and bare board is serial, and bare board queuing is upgraded.The server-side of the present embodiment
Upgrading mode between bare board is parallel, and each bare board upgrading minimum system process is relatively independent, is not interfere with each other, therefore
The correctness that polylith veneer also can guarantee data transmission can theoretically be upgraded simultaneously, be greatly improved batch upgrade minimum system
Efficiency.
Referring to Fig. 6, a kind of one embodiment of system for automatically inserting minimum system provided in the embodiment of the present invention
Including:
What is referred in plate 61 to be embedded and Fig. 4 and Fig. 5 embodiments automatically inserts the device 62 of minimum system;
Plate 61 to be embedded is connect with automatically inserting the device 62 of minimum system by network communication.
Plate 61 to be embedded is a plurality of, is communicated to connect by interchanger with automatically inserting the device 62 of minimum system;
Plate 61 to be embedded specifically includes:
First processing units 611 for running bootstrap, and close house dog;
First allocation unit 612, for own IP address to be set as to the IP address of distribution;
Second allocation unit 613, for distributing the nand spaces for storing minimum system.
After distribution IP address request is received, inquiry MAC Address and the mapping table of the IP address of distribution, if bare board
Once IP address was distributed, then will once distribute IP address and return to bare board, and otherwise distribute new IP address to bare board, thus keep away
Exempt from, when same bare board repetitive requests, to be assigned with happening for different IP address, ensure that data just in this way
Often transmission, meanwhile, after bare board has received bootstrap, it is loaded into memory and runs, automatic request and programming minimum system, in this way
It is avoided that using artificially request is sent using serial ports, shorten update time and error rate substantially reduces, and existing use
When serial ports upgrades minimum system, the upgrading mode between server-side and bare board is serial, and bare board queuing is upgraded.The present embodiment
Server-side and bare board between upgrading mode be it is parallel, each bare board upgrading minimum system process be it is relatively independent, mutually not
Interference, therefore can theoretically upgrade the correctness that polylith veneer also can guarantee data transmission simultaneously, it is greatly improved batch upgrade
The efficiency of minimum system.
The server-side and server referred in the present embodiment is to automatically insert the device of minimum system.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or carry out equivalent replacement to which part technical characteristic;And these
Modification is replaced, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
- A kind of 1. method for automatically inserting minimum system, which is characterized in that including:Get the bootstrap transmission request that plate to be embedded is sent;The bootstrap is sent to by the plate to be embedded according to bootstrap transmission request so that the plate to be embedded After performing preset configuration mode by the bootstrap, automatic send passes with the corresponding minimum system of the bootstrap Defeated request;Minimum system is sent to the plate to be embedded by the minimum system transmission request according to getting so that it is described treat it is embedding Enter plate and complete automatically inserting for the minimum system.
- 2. the method according to claim 1 for automatically inserting minimum system, which is characterized in that get the plate to be embedded It is further included before the bootstrap transmission request of transmission:Get the MAC Address for including at least one plate to be embedded that the plate to be embedded is sent by broadcast mode Distribute IP address request;Judged according to the MAC Address with the corresponding plate to be embedded of the MAC Address with whether once distributing the IP Location, if so, by the IP address once distributed and bootstrap name with the pattern of the first response bag be sent to it is described treat it is embedding Enter plate, if it is not, being then sent to the new IP address of distribution and bootstrap name with the pattern of the second response bag described to be embedded Plate, and the new IP address and the MAC Address are established into correspondence.
- 3. the method according to claim 2 for automatically inserting minimum system, which is characterized in that get the plate to be embedded The bootstrap transmission request of transmission specifically includes:Get the bootstrap that at least one plate to be embedded uses the IP address of distribution to be sent in a manner of TCP Transmission request.
- 4. the method according to claim 3 for automatically inserting minimum system, which is characterized in that preset configuration mode is specifically wrapped It includes:The plate to be embedded runs the bootstrap, and close house dog;Own IP address is set as to the IP address of distribution;Distribute the nand spaces for storing the minimum system.
- 5. the method as claimed in any of claims 1 to 4 for automatically inserting minimum system, which is characterized in that according to Minimum system is sent to the plate to be embedded by the minimum system transmission request got so that the plate to be embedded is completed Automatically inserting for the minimum system specifically includes:By judging whether really to receive the minimum system transmission request under listening state, if so, minimum system is sent out Give the plate to be embedded so that the plate to be embedded completes automatically inserting for the minimum system, if it is not, then carrying out embedded shape The prompting of the notice of state exception.
- 6. a kind of device for automatically inserting minimum system, which is characterized in that including:Bootstrap transmits acquisition request unit, and request is transmitted for getting the bootstrap that plate to be embedded is sent;First transmitting element, it is described to be embedded for being sent to the bootstrap according to bootstrap transmission request Plate so that automatic to send and the guiding journey after the plate to be embedded performs preset configuration mode by the bootstrap The corresponding minimum system transmission request of sequence;Second transmitting element, for according to the minimum system transmission request got by minimum system be sent to it is described treat it is embedding Enter plate so that the plate to be embedded completes automatically inserting for the minimum system.
- 7. the device according to claim 6 for automatically inserting minimum system, which is characterized in that automatically insert minimum system Device further includes:IP address acquisition request unit is distributed, is included at least by what broadcast mode was sent for getting the plate to be embedded The distribution IP address request of the MAC Address of one plate to be embedded;IP address judges allocation unit, corresponding described to be embedded with the MAC Address for being judged according to the MAC Address Whether plate once distributed the IP address, if so, by the IP address once distributed and bootstrap name with the first response The pattern of packet is sent to the plate to be embedded, if it is not, then by the new IP address of distribution and bootstrap name with the second response bag Pattern be sent to the plate to be embedded, and the new IP address and the MAC Address are established into correspondence.
- 8. the device according to claim 7 for automatically inserting minimum system, which is characterized in that bootstrap transmission request obtains Unit is taken, uses what the IP address distributed was sent in a manner of TCP specifically for getting at least one plate to be embedded The bootstrap transmission request;Second transmitting element, specifically for by judging whether that really receiving the minimum system transmits under listening state Request, if so, minimum system is sent to the plate to be embedded so that the plate to be embedded completes oneself of the minimum system Dynamic insertion, if it is not, then carrying out the prompting of the notice of embedded abnormal state.
- 9. a kind of system for automatically inserting minimum system, which is characterized in that including:Plate to be embedded and the device for automatically inserting minimum system as described in any one in claim 6 to 8;The plate to be embedded is connect with the device for automatically inserting minimum system by network communication.
- 10. the system according to claim 9 for automatically inserting minimum system, which is characterized in that the plate to be embedded is multiple It is several, it is communicated to connect by interchanger and the device for automatically inserting minimum system;The plate to be embedded specifically includes:First processing units for running the bootstrap, and close house dog;First allocation unit, for own IP address to be set as to the IP address of distribution;Second allocation unit, for distributing the nand spaces for storing the minimum system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706357.6A CN105278410B (en) | 2015-10-26 | 2015-10-26 | A kind of method, apparatus and system for automatically inserting minimum system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510706357.6A CN105278410B (en) | 2015-10-26 | 2015-10-26 | A kind of method, apparatus and system for automatically inserting minimum system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105278410A CN105278410A (en) | 2016-01-27 |
CN105278410B true CN105278410B (en) | 2018-07-10 |
Family
ID=55147608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510706357.6A Active CN105278410B (en) | 2015-10-26 | 2015-10-26 | A kind of method, apparatus and system for automatically inserting minimum system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105278410B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928820A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Embedded system and its upgrading method |
CN101216773A (en) * | 2008-01-09 | 2008-07-09 | 深圳国人通信有限公司 | Embedded Linux system firmware downloading method and device |
CN102364891A (en) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7363374B2 (en) * | 2001-04-27 | 2008-04-22 | International Business Machines Corporation | Method and system for fault-tolerant remote boot in the presence of boot server overload/failure with self-throttling boot servers |
-
2015
- 2015-10-26 CN CN201510706357.6A patent/CN105278410B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928820A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Embedded system and its upgrading method |
CN101216773A (en) * | 2008-01-09 | 2008-07-09 | 深圳国人通信有限公司 | Embedded Linux system firmware downloading method and device |
CN102364891A (en) * | 2011-09-13 | 2012-02-29 | 杭州华三通信技术有限公司 | Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment |
Non-Patent Citations (1)
Title |
---|
基于PXA270与LAN91C111的系统引导程序移植与实现;刘建设,于明,金华标;《计算机技术与发展》;20110930;第21卷(第9期);论文107-110、220页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105278410A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9015694B2 (en) | Cloud-based firmware distribution service | |
CN110032382A (en) | A kind of vehicle electronic control unit upgrade method, system and terminal device | |
CN101951400B (en) | Software installation and upgrading method of application terminal in home network and system thereof | |
CN102571996B (en) | IP (Internet Protocol) address assignment method, IP address assignment device and network system | |
EP2930857B1 (en) | Method for realizing selection of security unit in near field communication and mobile terminal therefor | |
US11972247B2 (en) | Software upgrading method, apparatus, and system | |
CN103414589B (en) | A kind of method and device managing resource information | |
CN102710436B (en) | A kind of network device management method, device, relevant device and system | |
CN103902327A (en) | BMC starting system and method | |
CN101924643A (en) | Updating method and system of card software in communication system equipment | |
WO2024007987A1 (en) | Vehicle-end firmware upgrading method and apparatus for digital key system, and device and medium | |
CN104735176A (en) | PXE booting method and device and server single board | |
CN109918085A (en) | Software distribution and more new demand servicing are provided but regardless of the state or physical location of end point machine | |
CN109213530A (en) | A kind of communication connecting method based on USB, mobile terminal and storage medium | |
US9465599B2 (en) | Method, device and system for installing terminal software | |
CN101196823A (en) | Method, system and equipment for on-line software upgrade in open application structure | |
CN102378154A (en) | Method and system for upgrading product firmware by wireless network | |
CN103257869A (en) | Method for intelligently downloading ECU (electronic control unit) programs | |
CN102685115A (en) | Resource access method, resource management device and system | |
CN105278410B (en) | A kind of method, apparatus and system for automatically inserting minimum system | |
CN110493055B (en) | FPGA card configuration method, device and system and readable storage medium | |
KR20130022804A (en) | Re-programming control module and re-programming system and method using the re-programming control module | |
CN104601679B (en) | Equipment soft method, mobile terminal and server | |
CN101917458B (en) | Method and device for sending network bootstrap program to client | |
CN105573776B (en) | A kind of software installation method and server in station of server in station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |