Baseboard management controller control method
Technical field
The present invention relates to a kind of baseboard management controller control method, and more particularly to, one kind ensures that network connection is normal
Baseboard management controller control method.
Background technology
Baseboard management controller (baseboard management controller, BMC) can pass through its general starting dynamic load
Enter the MAC addresses (media in device (universal boot loader, also known as U-boot, generally starting program)
Access control address, MAC address) perform network connection.
When a certain section of procedure code in baseboard management controller breaks down, baseboard management controller will be because of hanging
And network connection can not be performed.Although in a general case, baseboard management controller can be repaired using instrument,
Baseboard management controller is set to perform network connection using MAC addresses again.If however, substrate management control
The procedure code of device institute processed failure is that then above-mentioned instrument just can not be to generally starting loader if being located at generally starting loader
Repaired, but have to write baseboard management controller new generally starting loader procedure code, can just make substrate pipe
Reason controller is able to perform network connection using MAC addresses again, but the generally starting re-write is loaded into
Device procedure code but it cannot be guaranteed that its MAC addresses is suitable.
, traditionally can will be each in addition, baseboard management controller is in the detection process before the servomechanism shipment belonging to it
The MAC addresses of individual baseboard management controller are set as identical (being usually some preset values), to facilitate testing staff
Carry out the function of the network connection of detection baseboard management controller.However, being finished in testing staff's detection and being intended to servomechanism
, it is necessary to provide mutually different, unique MAC addresses, but substrate pipe for whole baseboard management controllers during goods
The MAC addresses for managing controller are the parts for belonging to generally starting loader procedure code, if being intended to each substrate
Management Controller sets out unique MAC addresses, then each baseboard management controller certainly will be write newly
Generally starting loader procedure code, could set out unique MAC addresses to each baseboard management controller,
But this is bothered very much.
The content of the invention
The problem of in view of the above, it is an object of the invention to propose a kind of baseboard management controller control method, this base
Board management controller control method is by the way that the MAC addresses of original baseboard management controller are stored to non-volatile
In memory bank, and network connection is performed using the MAC addresses of non-volatile memory body, to ensure that substrate is managed
The network connection of controller can constantly remain normal.
A kind of baseboard management controller control method in one embodiment of the invention, the control of this baseboard management controller
The step flow of method is sequentially as described below.Start baseboard management controller, wherein this baseboard management controller has the first matchmaker
Body access control address.Baseboard management controller reads the address space of non-volatile memory body, to obtain in address space
Second MAC addresses.Baseboard management controller judges whether the first MAC addresses are deposited equal to the second media
Control address is taken, optionally to perform network connection using the second MAC addresses.In baseboard management controller
When judging that the first MAC addresses are not equal to the second MAC addresses, baseboard management controller judge this
Whether one MAC addresses are preset value.Judge that the first MAC addresses are pre- in baseboard management controller
If during value, baseboard management controller performs network connection using the second MAC addresses.
In one embodiment, judge that the first MAC addresses are deposited equal to the second media in baseboard management controller
When taking control address, baseboard management controller can use the first MAC addresses or the second MAC addresses
Perform network connection.
In one embodiment, when it is not preset value that baseboard management controller, which judges the first MAC addresses,
Baseboard management controller can use the first MAC addresses to perform network connection.
The above embodiments are accepted, judge that the first MAC addresses are not preset value in baseboard management controller
When, the first MAC addresses are write non-volatile memory body by baseboard management controller.
Accept above-mentioned, the first MAC addresses are written into the address space of non-volatile memory body, so that the
One MAC addresses replace the second MAC addresses of non-volatile memory body.
Accept it is above-mentioned, in baseboard management controller by the first MAC addresses write non-volatile memory body it
Afterwards, baseboard management controller can call the first MAC addresses to perform network connection from non-volatile memory body.
Accept the above embodiments, baseboard management controller is contained in servomechanism, servomechanism with it is remote outside servomechanism
Thread management end is connected, and baseboard management controller is performed network connection using the first MAC addresses and managed including substrate
Controller using the first MAC addresses come with remote management end communication.
In one embodiment, the first MAC addresses are the general starting dynamic loads for being written in baseboard management controller
Enter in device.
In one embodiment, non-volatile memory body is the read-only memory bank of erasable programmable.
In one embodiment, baseboard management controller is contained in servomechanism, servomechanism and the long-range pipe outside servomechanism
End connection is managed, baseboard management controller is performed network connection using the second MAC addresses and manages control including substrate
Device using the second MAC addresses come with remote management end communication.
In summary described, the present invention provides a kind of baseboard management controller control method, this baseboard management controller control
Method processed is by reading the second MAC addresses stored in non-volatile memory body, to judge the second medium access
Control whether address is equal to the first MAC addresses of baseboard management controller so that baseboard management controller can be straight
Ground connection performs network connection using the second MAC addresses, or is performed using the first MAC addresses
Network connection, in the servomechanism shipment belonging to baseboard management controller, it is only necessary to write newly in each non-volatile memory body
MAC addresses, it is not necessary to write the new MAC addresses in each baseboard management controller, from
And avoid since it is desired that writing new MAC addresses and new general starting being write to each baseboard management controller
Dynamic loader procedure code.
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail, but not as a limitation of the invention.
Brief description of the drawings
Fig. 1 is the step flow chart of the baseboard management controller control method according to one embodiment of the invention;
Fig. 2 is the thin portion flow chart of steps of the baseboard management controller control method according to Fig. 1.
Wherein, reference
S100~S114 steps flow charts
Embodiment
The detailed features and advantage of the narration present invention in detail in embodiments below, its content is enough to make any to be familiar with
Relevant art understands the technology contents of the present invention and implemented according to this, and content, the claim invented according to this specification
Scope and accompanying drawing, it is any to be familiar with relevant art and be readily understood upon the purpose and advantage of correlation of the invention.Following embodiment
It is the viewpoint that the present invention is further described, but it is non-anyways to limit scope of the invention.
Please with reference to Fig. 1 and Fig. 2, Fig. 1 is the baseboard management controller control method according to one embodiment of the invention
Flow chart of steps;Fig. 2 is the thin portion flow chart of steps of the baseboard management controller control method according to Fig. 1.As shown in figure 1, this
Baseboard management controller control method is applied to have baseboard management controller (baseboard management
Controller, BMC) and non-volatile memory body (non-volatile memory) servomechanism, wherein substrate management control
Device processed is electrically connected with non-volatile memory body.Each steps flow chart in baseboard management controller control method will be made respectively below
Detailed description.
In the step s 100, baseboard management controller can be activated, and be initialized.It is worth noting that, of the invention
The baseboard management controller of embodiment have the first MAC addresses (media access control address,
MAC address).In in practice, the first MAC addresses are the generally startings for being written in baseboard management controller
In loader (universal boot loader, also known as U-boot, generally starting program), in other words, the first medium access
Control address is a part for generally starting loader Program code.
In step s 102, baseboard management controller can read the address space (address of non-volatile memory body
Space), to obtain the second MAC addresses in address space.In in practice, non-volatile memory body can be one
Plant the read-only memory bank of programmable (programmable read-only memory, PROM), the read-only storage of erasable programmable
Body (erasable programmable read-only memory, EPROM), the read-only memory bank of erasable programmable
(electrically erasable programmable read-only memory, EEPROM), flash body (flash
The non-volatile memory body (non-volatile memory) such as memory), the present invention is not any limitation as herein.It is preferred that non-wave
Hair property memory bank is a kind of erasable read-only memory bank of programmable.
In step S104, it is non-volatile that baseboard management controller can judge whether the first MAC addresses are equal to
The second stored MAC addresses in memory bank, optionally to be performed using the second MAC addresses
Network connection.
If baseboard management controller judges that the first MAC addresses are equal to the second MAC addresses (also
That is the character of the first MAC addresses is same as the character of the second MAC addresses), representative is stored in non-wave
First MAC addresses of the second MAC addresses and current baseboard management controller of hair property memory bank are same
Step, then perform step S106;If baseboard management controller judges to be not equal to the second MAC addresses (that is, the first matchmaker
The character of body access control address and the character of the second MAC addresses are differing from each other), then perform step S108.
In step s 106, baseboard management controller can directly use the first MAC addresses or non-volatile
The second MAC addresses in memory bank stored by address space perform network connection.In step S108, substrate
Management Controller can judge whether the first MAC addresses in its generally starting loader are one group of preset value.If base
Board management controller judges that the first MAC addresses are above-mentioned preset value, then performs step S110;If substrate pipe
Reason controller judges that the first MAC addresses are not above-mentioned preset values, represents the of current baseboard management controller
One MAC addresses are invalid, then perform step S112.
In step s 110, baseboard management controller be with can calling the second medium plan in non-volatile memory body
Location performs network connection.In step S112, baseboard management controller can be by the first media in its generally starting loader
Access control address is write into non-volatile memory body.In more detail, the first media are judged in baseboard management controller
When access control address is not above-mentioned preset value, baseboard management controller can be by the first media in its generally starting loader
Access control address writes into non-volatile memory body the address space to store the second MAC addresses so that
The second MAC addresses in original non-volatile memory body stored by address space can be by the first medium plan
Address is replaced, even if also the first MAC addresses are with replacing the second medium plan of non-volatile memory body
Location.
In step S114, baseboard management controller can call the first MAC addresses from non-volatile memory body
To perform network connection, in other words, baseboard management controller, which can be used, to be written into the address space of non-volatile memory body
In the first MAC addresses (can be considered the second new MAC addresses) perform network connection.In addition,
Why the embodiment of the present invention is not any limitation as character in preset value at this, can be with art tool usually intellectual
According to baseboard management controller actual conditions and footpath row designs rational preset value.For example, this preset value can for "
00-00-00-00-00-00 ", " 00-11-22-33-44-55 " or " 00-11-22-33-44-56 ", but not using above-mentioned example as
Limit.However, in other embodiment, after step S108, baseboard management controller can without step S112, S114, and
It is the first MAC addresses using itself to perform network connection, without adjusting from non-volatile memory body
Use the first MAC addresses.
In addition, servomechanism can be connected with the remote management terminal outside servomechanism, baseboard management controller can use first
MAC addresses come perform network connection including baseboard management controller using the first MAC addresses come with
Remote management end communication.In addition, baseboard management controller is contained within servomechanism, servomechanism can with it is remote outside servomechanism
Thread management end is connected, and baseboard management controller is performed network connection using the second MAC addresses and managed including substrate
Controller using the second MAC addresses come with remote management end communication.
In summary described, the embodiment of the present invention provides a kind of baseboard management controller control method, the management control of this substrate
Device control method processed is by reading the second MAC addresses stored in non-volatile memory body, to judge the second matchmaker
Whether body access control address is equal to the first MAC addresses of baseboard management controller so that baseboard management controller
Network connection can be directly performed using the second MAC addresses, or uses the first MAC addresses
To perform network connection.Thereby, the baseboard management controller control method of the embodiment of the present invention can avoid substrate management control
When the generally starting loader of device is damaged, baseboard management controller can not provide suitable MAC addresses to hold
The situation of row network connection, it is ensured that the network connection of baseboard management controller can constantly remain normal, and improve use
Family is experienced, very with practicality.In the servomechanism shipment belonging to baseboard management controller, it is only necessary to non-volatile at each
Memory bank writes new MAC addresses, it is not necessary to writes the new media in each baseboard management controller and deposits
Control address is taken, so as to avoid since it is desired that writing new MAC addresses and each baseboard management controller being write
Enter new generally starting loader procedure code.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence
Various corresponding changes and deformation, but these corresponding changes and change ought can be made according to the present invention by knowing those skilled in the art
Shape should all belong to the protection domain of appended claims of the invention.