CN107491316B - Expansion method and device of baseboard management controller and electronic equipment - Google Patents

Expansion method and device of baseboard management controller and electronic equipment Download PDF

Info

Publication number
CN107491316B
CN107491316B CN201710780197.9A CN201710780197A CN107491316B CN 107491316 B CN107491316 B CN 107491316B CN 201710780197 A CN201710780197 A CN 201710780197A CN 107491316 B CN107491316 B CN 107491316B
Authority
CN
China
Prior art keywords
target
function
calling
management controller
program code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710780197.9A
Other languages
Chinese (zh)
Other versions
CN107491316A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710780197.9A priority Critical patent/CN107491316B/en
Publication of CN107491316A publication Critical patent/CN107491316A/en
Application granted granted Critical
Publication of CN107491316B publication Critical patent/CN107491316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an extension method and device of a baseboard management controller and an electronic device, for a target function which is a function required to be customized by a user, an object program code file for realizing the target function can be created in advance, so that when a control instruction for realizing the target function generated by the baseboard management controller is detected, object calling information of the target function is obtained, the created object program code file is called by utilizing the object calling information, and the object program code file is executed, so that the target function can be realized. Therefore, the method and the device realize the expansion of the user customized function on the existing substrate management controller, do not need to develop a new substrate management controller and verify the new substrate management controller, improve the expansion efficiency of the substrate management controller and further shorten the delivery time of corresponding electronic equipment.

Description

Expansion method and device of baseboard management controller and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an expansion method and apparatus for a baseboard management controller, and an electronic device.
Background
At present, in electronic devices with large computation and processing capacity such as servers, two or more motherboards are generally included, so that the processing and computing capacity of the servers is increased. Each motherboard is usually provided with a Baseboard Management Controller (BMC) for monitoring the operating states of the motherboard and devices in the electronic device, and assisting a manager in managing the electronic device.
Therefore, in the prior art, in order to meet the increasing customization demands of users on electronic devices to obtain electronic devices with personalized functions, a new baseboard management controller is usually constructed to implement new functions, and communication between the new baseboard management controller and an original baseboard management controller is correspondingly adjusted to ensure that the new functions are normally executed in the electronic devices.
Therefore, in the existing expansion scheme of the baseboard management controller, for new functions added each time, not only a large amount of time needs to be divided to construct a new baseboard management controller, but also the development and experiment complexity of electronic equipment is increased, and the expansion efficiency of the baseboard management controller is reduced.
Disclosure of Invention
In view of this, the present application provides an extension method and apparatus for a baseboard management controller, and an electronic device, which implement extension of a user-customized function on an existing baseboard management controller, and do not need to develop and verify a new baseboard management controller, thereby improving extension efficiency of the baseboard management controller, and shortening delivery time of a corresponding electronic device.
In order to achieve the above object, the present application provides the following technical solutions:
a method of extending a baseboard management controller, the method comprising:
detecting a control instruction for realizing a target function generated by a substrate management controller, and acquiring target calling information of the target function;
calling a target program code file created aiming at a target function by using the target calling information;
and executing the target program code file.
Preferably, the method further comprises:
receiving a target program code file created for a target function;
loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
and determining target calling information for calling the target program code file by using the storage position information.
Preferably, the method further comprises:
creating a function control aiming at the target function in the substrate management controller, and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
correspondingly, the detecting of the control instruction generated by the baseboard management controller to realize the target function includes:
and detecting the triggering operation aiming at the function control button, and generating a control instruction for realizing the target function.
Preferably, the calling a target program code file created for a target function by using the target calling information includes:
obtaining storage position information corresponding to the target calling information, or analyzing the storage position information contained in the target calling information;
and calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
Preferably, the target call information may include an original equipment manufacturer OEM command, or a function call request;
the obtaining of the target call information of the target function includes:
and creating an OEM command for realizing the target function or a function call request for calling a target program code file of the target function.
An extension apparatus of a baseboard management controller, the apparatus comprising:
the information acquisition module is used for detecting a control instruction for realizing a target function generated by the substrate management controller and acquiring target calling information of the target function;
the calling module is used for calling a target program code file created aiming at a target function by utilizing the target calling information;
and the execution module is used for executing the target program code file.
Preferably, the apparatus further comprises:
the file receiving module is used for receiving a target program code file created aiming at a target function;
the file loading module is used for loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
and the information determining module is used for determining target calling information for calling the target program code file by utilizing the storage position information.
Preferably, the apparatus further comprises:
the creating module is used for creating a function control aiming at the target function in the substrate management controller and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
accordingly, the information obtaining module comprises:
and the generating unit is used for detecting the triggering operation aiming at the function control button and generating a control instruction for realizing the target function.
Preferably, the calling module includes:
a first information obtaining unit configured to obtain storage location information corresponding to the target call information;
the first analysis unit is used for analyzing the storage position information contained in the target calling information;
and the calling unit is used for calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
An electronic device, the electronic device comprising:
at least one communication interface;
at least one baseboard management controller;
a memory for storing a program for implementing the extension method of the baseboard management controller as described above;
a processor for loading and executing the memory-stored program, comprising:
detecting a control instruction for realizing a target function generated by a substrate management controller, and acquiring target calling information of the target function;
calling a target program code file created aiming at a target function by using the target calling information;
and executing the target program code file.
Therefore, compared with the prior art, the present application provides an extension method and apparatus for a baseboard management controller, and an electronic device, for a target function that a user needs to customize, the present application may create an object program code file for implementing the target function in advance, so that when a control instruction for implementing the target function generated by the baseboard management controller is detected, object call information of the target function is obtained, and thus the created object program code file is called by using the object call information, and the object program code file is executed, so that the target function can be implemented. Therefore, the method and the device realize the expansion of the user customized function on the existing substrate management controller, do not need to develop a new substrate management controller and verify the new substrate management controller, improve the expansion efficiency of the substrate management controller and further shorten the delivery time of corresponding electronic equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an expansion method of a baseboard management controller according to an embodiment of the present application;
fig. 2 is a flowchart of another method for extending a baseboard management controller according to an embodiment of the present application;
fig. 3 is a schematic diagram of an expansion method of a baseboard management controller according to an embodiment of the present application;
fig. 4 is a structural diagram of an expansion device of a baseboard management controller according to an embodiment of the present application;
fig. 5 is a structural diagram of an expansion device of another baseboard management controller according to an embodiment of the present application;
fig. 6 is a structural diagram of an expansion device of another baseboard management controller according to an embodiment of the present application;
fig. 7 is a hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying figures and detailed description thereof are described in detail below, clearly and completely, and it is to be understood that the embodiments described below are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one skilled in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the above-described drawings are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of elements is not necessarily limited to those modules or elements, but may include other modules or elements not expressly listed or inherent to such process, method, article, or apparatus
Referring to fig. 1, a flowchart of an extension method of a baseboard management controller provided in an embodiment of the present application may include:
step S101, detecting a control instruction for realizing a target function generated by a baseboard management controller, and acquiring target calling information of the target function;
in this embodiment of the present application, when a baseboard management controller is required to implement a new function, a programmer may generally write a corresponding program code file for the function to obtain a corresponding function module, establish an association relationship between an original basic management controller and the function module, and call and execute the function module to enable the baseboard management controller to implement the corresponding function.
Therefore, in this embodiment, a corresponding function creation control may be created for an extended function, that is, a target function, and a function button corresponding to the function creation control is displayed on a corresponding control interface, so that when a user needs to implement the target function by the electronic device, the user may click the function button to generate a control instruction for implementing the target function, so that the electronic device obtains target call information of the target function after knowing that the user wants to implement the target function.
Optionally, the target call information obtained in the present application may be an OEM (Original Equipment Manufacturer) command or a function call request, and the content and the output form of the target call information are not limited in the present application.
In this optional embodiment, if the electronic device detects a control instruction for implementing a target function, an OEM command for implementing the target function may be created; alternatively, a function call request for calling an object program code file of the object function is created. It can be seen that the control instruction in this embodiment may be regarded as a creation instruction for creating a function extension command, and the generation manner and the output form of the control instruction are not limited in this application.
Step S102, using the target calling information to call a target program code file created aiming at a target function;
as analyzed above, the obtained target call information is for the target function, and may carry related information of the target function as needed, such as storage location information, identification information, and the like of the target function, which is not limited in this application.
Optionally, after determining a corresponding program code file (e.g., an executable file of the function) for at least one extended function, the application may create or specify call information capable of calling the program code file, which may be a command, a request signal, or the like, and this is not limited in this embodiment of the application.
In practical application, the association relationship between each calling information and the program code file of each extended function may be established, specifically, a corresponding relationship table may be adopted, or third identification information is set to indicate the association relationship between each extended function and the corresponding calling information.
Step S103, executing the target program code file.
Optionally, the pre-stored program code file of each extended function may be an executable file for implementing the corresponding extended function. The executable file refers to a file that can be loaded and executed by an operating system, and the presentation modes of the executable program can be different under different operating system environments.
Of course, the program code file may also be a source program, and in this case, step S103 may include compiling the obtained source program to generate a corresponding executable file, and implementing the corresponding extended function by executing the executable file.
In summary, when a user has a function customization requirement, that is, needs to perform function extension on an electronic device, the present application does not manufacture a new baseboard management controller for an extended function (denoted as a target function), but directly calls the target program code file by an original baseboard management controller after creating the target program code file for implementing the target function, so that the original baseboard management controller can also implement the target function, and specifically obtains target calling information of the target function when a control instruction for implementing the target function generated by the baseboard management controller is detected, so that the target program code file is called and executed by using the target calling information, thereby implementing the target function. Therefore, the expansion scheme of the baseboard management controller provided by the application does not influence or change the communication between the baseboard management controller and other basic management controls, the communication process does not need to be verified, the expansion efficiency of the baseboard management controller is improved, and the delivery time of corresponding electronic equipment is shortened.
Referring to fig. 2, a flowchart of another method for extending a baseboard management controller according to an embodiment of the present application may include:
step S201, receiving an object program code file created aiming at an object function;
in practical application, program code files for realizing target functions can be completed by professional programmers and then loaded to the electronic device in this embodiment, and thus, according to the requirement of a user for customizing functions of the electronic device, the method can determine which one or more baseboard management controllers of the electronic device are to be extended, and after the program code files created for each extended function, that is, the target function, are loaded, the function extension of each determined baseboard management controller is realized according to the method in this embodiment.
The method for determining which baseboard management controller implements a certain extended function is not limited in the present application, and may be determined based on the current function of the baseboard management controller, or of course, a baseboard management controller may be arbitrarily selected and function extended, and this embodiment is not described in detail herein.
Step S202, loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
since the function extension method for each bmc is the same, the present application will be described by taking the function extension of only one bmc as an example.
In practical application of this embodiment, the position where each level code file can be stored may be determined according to the function division of the storage area of the baseboard management controller or other requirements, that is, the storage location information of the program code file corresponding to the function to be extended is determined, so that, after the program code file is received, the program code file may be loaded into the memory of the electronic device according to the storage location information.
Optionally, in this embodiment, the program code file may be placed in a predefined area of a Flash or emmc (embedded Multi Media card) chip, so that when a certain substrate management controller in the electronic device is required to implement an extended function, the corresponding program code file may be directly called from the predefined area.
The present application does not limit the storage manner of the program code file corresponding to each extended function to be implemented by the baseboard management controller by the electronic device.
Step S203, determining an OEM command for calling the target program code file by using the storage position information;
the method for calling the corresponding program code file can be set for each extended function, for example, by calling information such as a specific calling instruction or request, calling the corresponding program code file, and the like.
In practical applications, in order to ensure accurate calling of the target program code file, the present embodiment may determine information included in the OEM command based on the storage location information of each program code file, for example, the determined OEM command may include the storage location information of the called program code file, but is not limited to this implementation.
Step S204, creating a function control aiming at a target function in a base plate management controller, and outputting a function control button corresponding to the function control on an operation interface of the base plate management controller;
in practical application of this embodiment, in order to facilitate a user to select a function implementation of the baseboard management controller extension, it is generally required that an operation interface of the baseboard management controller outputs a corresponding function control button, so that after the user directly operates the function control button, the electronic device executes a corresponding operation according to a detected user operation to implement the extension function.
Wherein for each function control button, a corresponding function control is typically set. Therefore, after determining the extended function of the baseboard management controller, the method and the device can set the function control corresponding to the extended function, so that the extended function is realized after triggering the function control.
Step S205, detecting the trigger operation aiming at the function control button, and generating a control instruction for realizing the target function;
in this embodiment of the present application, when a user needs an electronic device to implement a certain extended function (that is, the target function), call information of a program code file that calls the extended function needs to be generated, and for this reason, this embodiment may be implemented in a manner of instruction triggering, that is, a control instruction for creating the call information is generated by using the control generated for the extended function. For example, when the user triggers or clicks a function control button corresponding to the extended function, the control of the user detects the operation and generates a control instruction for implementing the extended function, which may also be a control instruction for an OEM command for creating a target function.
Step S206, an OEM command for realizing the target function is created;
as described above, when the electronic device is required to implement the target function, the user may directly operate the function control button to generate a control instruction for creating calling information (in this embodiment, an OEM command is taken as an example) of the target program code file for calling the target function, so that the electronic device creates the calling information, such as the OEM command corresponding to the target function, according to the control instruction.
Step S207, analyzing the target storage location information included in the OEM command, and calling a target program code file loaded in the memory of the electronic device according to the target storage location information;
in step S208, the target program code file is executed.
Therefore, in the embodiment of the application, when the existing functions of the electronic device need to be expanded, a program code file of each expanded function and calling information of the program code file can be determined, and a control for generating a control instruction for creating the calling information is added in the existing baseboard management controller, so that when the control detects an input operation of a user, a corresponding control instruction is generated, and thus the baseboard management controller calls and executes the program code file for realizing the function through the created calling information, the function expansion of the existing baseboard management controller is realized, a new baseboard management controller is not required to be built for realizing the expanded function, the communication verification time between the newly built basic management controller and other baseboard management controllers is saved, and the delivery time of the electronic device is shortened, and the development cost of the electronic equipment is saved.
Based on the above description of the function extension scheme of the baseboard management controller provided in the present application, in practical applications of the present application, in order to meet a customization requirement that is provided by a user for an existing electronic device, the existing electronic device is required to have a function that is required by the user and often not available for the existing electronic device, which requires modification of the baseboard management controller of the existing electronic device, the delivery time of the electronic device is often increased, and the complexity of development and verification of the baseboard management controller is increased.
Therefore, the method and the device can be used for developing a corresponding function module aiming at the function needing to be expanded without developing a new substrate management controller to meet the customization requirement (namely, the function expansion of the existing electronic equipment), and the function module is added to the existing substrate management controller. The functional module developed according to the customization requirement of the user may be a program code file for implementing a corresponding extended function.
Specifically, with reference to the flowchart shown in fig. 3, after a functional control for creating an extended function is added to an existing baseboard management controller, and an operation of a button corresponding to the control by a user is detected, an OEM command for creating a developed extended function functional module and a developed data sequence is generated by a creation command (i.e., a control instruction in the above embodiment), and the extended function functional module and the developed data sequence (i.e., a corresponding program code file) are placed in predefined locations in a flash memory of an electronic device and loaded into a memory of the electronic device to complete creation of the OEM command, so that in actual application, the OEM command can directly call the extended function program code file, i.e., call the corresponding functional module and the developed data sequence, thereby implementing the extended function, satisfying the customization requirement of the user, and having a simple configuration without complex development and overall verification of the baseboard management controller, the lead time of the customized electronic device is shortened.
Referring to fig. 4, a structural diagram of an expansion apparatus of a baseboard management controller provided in an embodiment of the present application may include:
an information obtaining module 41, configured to detect a control instruction for implementing a target function generated by a baseboard management controller, and obtain target call information of the target function;
in conjunction with the description of the corresponding parts of the above method embodiments, the control instruction may be regarded as an instruction for creating the target call information, and the target call information may be information such as a specific instruction or request of a target program code file for calling a target function.
A calling module 42, configured to call a target program code file created for the target function, using the target calling information;
in the embodiment of the present application, for different extended functions, corresponding function modules may be set, that is, program code files for implementing the extended functions are set and loaded into a memory of the electronic device, so that after target call information for any extended function (that is, the target function) is obtained, the corresponding program code file is called from the memory accordingly, and thus, it is not necessary to develop a new baseboard management controller to implement the extended function.
And an execution module 43, configured to execute the object program code file.
As to the functions of the electronic device, the functions are usually realized by executing corresponding executable files, and therefore, after obtaining the object program code file of the object function, the embodiment may execute the object program code file, and at this time, the object program code file may be an executable file or a source program of the object function, which is not limited in this application.
Optionally, as shown in fig. 5, on the basis of the foregoing embodiment, the expansion device provided in the present application may further include:
a file receiving module 44, configured to receive an object program code file created for an object function;
in this embodiment, the target program code file may be obtained by other professional programmers and then transmitted to the electronic device, so that the electronic device may implement function extension of the original basic management controller. Therefore, the received target program code file can be changed according to different functions expanded this time, and the application does not limit the specific content thereof.
The file loading module 45 is configured to load the target program code file into a memory of the electronic device where the baseboard management controller is located according to preset storage location information;
in practical application, program code files of each function can be stored in a memory of the electronic device, so that when the function needs to be realized, the corresponding program code file can be called to execute, and the storage mode of each program code file is not limited in the application.
The program code file for implementing any function may include corresponding program code and data called by the program code file for implementing the function.
And an information determining module 46, configured to determine, by using the storage location information, target calling information for calling the target program code file.
Therefore, the embodiment of the present application may establish a corresponding relationship between each program code file and each calling information to ensure that the corresponding program code file can be accurately obtained through the target calling information, and the method for establishing each corresponding relationship or the representation form is not limited in the present application. For example, the calling information corresponding to each program code file may be determined by the storage location information of each program code file, and in this case, the calling information may include the storage location information, or may include an identifier capable of uniquely indicating the storage location information, so as to call the program code file stored in the storage location information accordingly.
The target call information may be an OEM command or a function request message, etc.
As another embodiment of the present application, as shown in fig. 6, the expansion device may further include:
a creating module 47, configured to create, in the baseboard management controller, a function control for the target function, and output, in an operation interface of the baseboard management controller, a function control button corresponding to the function control.
Accordingly, the information obtaining module 41 may include:
a generating unit 411, configured to detect a trigger operation for the function control button, and generate a control instruction for implementing the target function;
an obtaining unit 412, configured to obtain, based on the control instruction, call information for implementing the target function.
As can be seen, in the embodiment of the present application, a baseboard management controller has a capability of creating call information, that is, an existing baseboard management controller has a capability of creating an OEM command or a function request for implementing an extended function, and specifically, the capability may be expressed by generating a control instruction, that is, creating call information such as an OEM command or a function request for implementing an extended function based on the generated control instruction.
As another embodiment of the present application, the invoking module 42 may include:
a first information obtaining unit configured to obtain storage location information corresponding to the target call information;
the first analysis unit is used for analyzing the storage position information contained in the target calling information;
and the calling unit is used for calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
It should be noted that, the invoking module 42 may select the first information obtaining unit and/or the first parsing unit as needed, which is not limited in this application.
In summary, in the embodiment of the present application, for a target function that a user needs to customize a function, an object code file for implementing the target function may be created in advance, so that when a control instruction for implementing the target function generated by the baseboard management controller is detected, object call information of the target function is obtained, and the created object code file is called by using the object call information, and the target function is implemented by executing the object code file. Therefore, the method and the device realize the expansion of the user customized function on the existing substrate management controller, do not need to develop a new substrate management controller and verify the new substrate management controller, improve the expansion efficiency of the substrate management controller and further shorten the delivery time of corresponding electronic equipment.
The above device embodiment mainly describes a virtual device implementing an extension scheme of a baseboard management controller from a virtual function perspective, and a hardware structure of an electronic device implementing the extension scheme will be described below from a hardware perspective.
Referring to fig. 7, a hardware structure diagram of an electronic device provided in this embodiment of the present application is shown, where the electronic device may be a server, an industrial personal computer, a user terminal, or the like, and the application does not limit a product type of the electronic device, and in this embodiment, the electronic device may include:
in the embodiment of the present application, the structure and the type of the at least one communication interface 71 may be determined according to different communication modes, such as a wireless communication interface corresponding to a wireless communication mode, a wired communication interface corresponding to a wired communication mode, such as USB, and the like.
At least one baseboard management controller 72;
as described above, the bmc is usually disposed on each motherboard of the electronic device, and therefore, the number of bmcs may be determined according to the number of motherboards included in the electronic device, but is not limited thereto. And in actual practice, baseboard management controllers typically have the ability to create commands or requests for new functions.
A memory 73 for storing a program for implementing the extension method of the board management controller;
in the embodiment of the present application, the memory 73 may include a volatile memory in a computer readable medium, a Random Access Memory (RAM) and/or a nonvolatile memory, such as a Read Only Memory (ROM) or a flash memory (flash RAM).
A processor 74 for loading and executing programs stored in the memory 73, comprising:
detecting a control instruction for realizing a target function generated by a substrate management controller, and acquiring target calling information of the target function;
calling a target program code file created aiming at a target function by using the target calling information;
and executing the target program code file.
Optionally, the processor 74 may also execute a program that implements the steps of:
receiving a target program code file created for a target function;
loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
and determining target calling information for calling the target program code file by using the storage position information.
On the basis of the above alternative embodiment, the processor 74 may also execute a program that implements the following steps:
creating a function control aiming at the target function in the substrate management controller, and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
detecting a trigger operation aiming at the function control button, and generating a control instruction for realizing the target function;
obtaining target calling information of a target function based on the control instruction;
obtaining storage position information corresponding to the target calling information, or analyzing the storage position information contained in the target calling information;
and calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
In this case, the target calling information may include an original equipment manufacturer OEM command or a function calling request, so that, in an actual application, after the control instruction is generated, an OEM command for implementing the target function or a function calling request for calling a target program code file of the target function may be created.
In the embodiment of the present application, the processor of the electronic device may be a central processing unit CPU, or an application Specific Integrated circuit asic (application Specific Integrated circuit), or one or more Integrated circuits configured to implement the embodiment of the present application.
Optionally, on the basis of the above embodiments, the electronic device may further include a display screen, a communication bus for implementing coupling connection of the components, and the like, which are not limited to the above-listed components, and the electronic device may further include components for implementing inherent functions according to inherent functions of the electronic device itself in different product types, and the embodiments of the present application are not listed here.
In summary, the electronic device provided in the embodiment of the present application implements function extension on the basis of an existing substrate management controller, and a new substrate management controller does not need to be developed for an extended function, thereby avoiding a complicated development and verification process and shortening the delivery time of the corresponding electronic device.
The embodiment of the application also provides a storage medium for storing a program for realizing the extension method of the baseboard management controller.
In addition, it should be noted that, in the embodiments described above, relational terms such as first, second and the like are only used for distinguishing one operation, unit or module from another operation, unit or module, and do not necessarily require or imply any actual relation or order between the units, the units or modules. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or system that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device and the electronic equipment disclosed by the embodiment, the description is relatively simple because the device and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be referred to the description of the method part.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. A method for extending a baseboard management controller, the method comprising:
receiving an object program code file created for an object function;
loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
determining an OEM command for calling the target level code file by using the storage location information;
creating a function control aiming at the target function in the substrate management controller, and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
the method for detecting the control instruction generated by the baseboard management controller to realize the target function comprises the following steps: detecting a trigger operation aiming at the function control button, and generating a control instruction for realizing the target function;
obtaining target calling information of the target function, wherein the target calling information comprises an Original Equipment Manufacturer (OEM) command or a function calling request; the obtaining of the target call information of the target function includes: creating an OEM command for realizing the target function or a function call request for calling a target program code file of the target function;
calling a target program code file created aiming at a target function by using the target calling information;
and executing the target program code file.
2. The method of claim 1, wherein the calling the target program code file created for the target function using the target call information comprises:
obtaining storage position information corresponding to the target calling information, or analyzing the storage position information contained in the target calling information;
and calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
3. An extension apparatus for a baseboard management controller, the apparatus comprising:
the file receiving module is used for receiving a target program code file created aiming at a target function;
the file loading module is used for loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
the information determining module is used for determining target calling information for calling the target program code file by utilizing the storage position information;
the creating module is used for creating a function control aiming at the target function in the substrate management controller and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
the information acquisition module is used for detecting a control instruction which is generated by a substrate management controller and is used for realizing a target function, and acquiring target calling information of the target function, wherein the target calling information comprises an Original Equipment Manufacturer (OEM) command or a function calling request; the obtaining of the target call information of the target function includes: creating an OEM command for realizing the target function or a function call request for calling a target program code file of the target function; the information obtaining module includes: the generating unit is used for detecting the triggering operation aiming at the function control button and generating a control instruction for realizing the target function;
the calling module is used for calling a target program code file created aiming at a target function by utilizing the target calling information;
and the execution module is used for executing the target program code file.
4. The apparatus of claim 3, wherein the invoking module comprises:
a first information obtaining unit configured to obtain storage location information corresponding to the target call information;
the first analysis unit is used for analyzing the storage position information contained in the target calling information;
and the calling unit is used for calling the target program code loaded in the memory of the electronic equipment according to the storage position information.
5. An electronic device, characterized in that the electronic device comprises:
at least one communication interface;
at least one baseboard management controller;
a memory for storing a program for implementing the extension method of the baseboard management controller according to any one of claims 1-2;
a processor for loading and executing the memory-stored program, comprising:
receiving an object program code file created for an object function;
loading the target program code file into a memory of the electronic equipment where the substrate management controller is located according to preset storage position information;
determining an OEM command for calling the target level code file by using the storage location information;
creating a function control aiming at the target function in the substrate management controller, and outputting a function control button corresponding to the function control on an operation interface of the substrate management controller;
the method for detecting the control instruction generated by the baseboard management controller to realize the target function comprises the following steps: detecting a trigger operation aiming at the function control button, and generating a control instruction for realizing the target function;
obtaining target calling information of the target function, wherein the target calling information comprises an Original Equipment Manufacturer (OEM) command or a function calling request; the obtaining of the target call information of the target function includes: creating an OEM command for realizing the target function or a function call request for calling a target program code file of the target function;
calling a target program code file created aiming at a target function by using the target calling information;
and executing the target program code file.
CN201710780197.9A 2017-09-01 2017-09-01 Expansion method and device of baseboard management controller and electronic equipment Active CN107491316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710780197.9A CN107491316B (en) 2017-09-01 2017-09-01 Expansion method and device of baseboard management controller and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710780197.9A CN107491316B (en) 2017-09-01 2017-09-01 Expansion method and device of baseboard management controller and electronic equipment

Publications (2)

Publication Number Publication Date
CN107491316A CN107491316A (en) 2017-12-19
CN107491316B true CN107491316B (en) 2021-07-16

Family

ID=60651043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710780197.9A Active CN107491316B (en) 2017-09-01 2017-09-01 Expansion method and device of baseboard management controller and electronic equipment

Country Status (1)

Country Link
CN (1) CN107491316B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840414A (en) * 2018-12-13 2019-06-04 北京华胜天成信息技术发展有限公司 Safety protecting method, device and the electronic equipment of baseboard management controller
CN111538488B (en) * 2020-04-17 2023-05-02 荏原冷热系统(中国)有限公司 Method and device for generating single-chip microcomputer driver
CN114090131A (en) * 2021-11-26 2022-02-25 联想(北京)有限公司 Starting method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201515381U (en) * 2009-10-28 2010-06-23 浪潮电子信息产业股份有限公司 Novel server management monitoring system
CN102298416A (en) * 2010-06-23 2011-12-28 英业达股份有限公司 Server system
CN102789388A (en) * 2012-06-14 2012-11-21 曙光信息产业(北京)有限公司 Method and system for adding network card function to MIPS frame server based on BMC
CN106909362A (en) * 2015-12-23 2017-06-30 研祥智能科技股份有限公司 The method and apparatus that the method and apparatus of BMC firmwares generation, BMC systems start

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7849454B2 (en) * 2006-01-13 2010-12-07 Dell Products L.P. Automatic firmware corruption recovery and update

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201515381U (en) * 2009-10-28 2010-06-23 浪潮电子信息产业股份有限公司 Novel server management monitoring system
CN102298416A (en) * 2010-06-23 2011-12-28 英业达股份有限公司 Server system
CN102789388A (en) * 2012-06-14 2012-11-21 曙光信息产业(北京)有限公司 Method and system for adding network card function to MIPS frame server based on BMC
CN106909362A (en) * 2015-12-23 2017-06-30 研祥智能科技股份有限公司 The method and apparatus that the method and apparatus of BMC firmwares generation, BMC systems start

Also Published As

Publication number Publication date
CN107491316A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN108984388B (en) Method and terminal equipment for generating automatic test case
CN107911401B (en) Application plug-in extension function method and application server
CN107608693B (en) Version upgrading method and terminal equipment
CN107491316B (en) Expansion method and device of baseboard management controller and electronic equipment
WO2016177341A1 (en) Interface calling method and device, and terminal
US11435985B2 (en) Electronic device and operation method thereof
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN111399840A (en) Module development method and device
CN111949314A (en) Method and device for generating application installation package, server and storage medium
CN112925718A (en) Call stack backtracking method, device, equipment and medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN111949529A (en) System debugging method and device, computer equipment and storage medium
CN111444117B (en) Method and device for realizing fragmentation of storage space, storage medium and electronic equipment
CN110399166B (en) ME Nonce value saving method, device, equipment and storage medium
CN110321179B (en) Application program starting method, system, device and computer storage medium
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN106775608B (en) Method and device for realizing independent system process
CN113342420B (en) Firmware configuration method, device, equipment and storage medium
CN111399926A (en) Method and device for downloading starting program
KR20210007262A (en) Apparatus and method for manageing application
CN115454403A (en) Page construction method and device and storage medium
CN112463262A (en) Android system GPS module self-adaption method and terminal
CN108363614B (en) Application service module management method and device and server
CN109726009B (en) Big data computing method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant