Multimedia card mounting method, device, storage medium, and electronic device

By mounting the embedded multimedia card to the substrate management controller or the target connection interface connected to the first host under the control of the substrate management controller, the problem of networking security risks in server management operations is solved, and server management is improved Security.

CN118885222BActive Publication Date: 2025-02-07INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411372920.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-07
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

When performing some server management operations, networking operations are required, resulting in certain security risks.

Method used

Under the control of the substrate management controller, the embedded multimedia card is mounted to the substrate management controller or the target connection interface connected to the first host, thereby controlling the mounting method of the embedded multimedia card and reducing networking needs.

Benefits of technology

Improves the security of server management and reduces the security risks caused by networked operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885222B_ABST
    Figure CN118885222B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, storage medium, electronic device and computer program product for mounting a multimedia card, wherein the method comprises: determining a target device on which an embedded multimedia card EMMC needs to be mounted; when the target device is determined to be on a baseboard management controller BMC, mounting the EMMC on the BMC; when the target device is determined to be a first host, mounting the EMMC on a target universal serial bus USB interface connected to the first host. Through the present application, the problem of certain security risks caused by the need to perform networking operations when performing some server management operations in the related art is solved, thereby achieving the effect of improving the security of server management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and specifically, to a method, device, storage medium, electronic device and computer program product for mounting a multimedia card. Background Art

[0002] With the expansion of data center scale and diversification of computing power, server management, as the core link of data center development, has gradually become the key to promoting technological innovation and improving service quality in data centers. In related technologies, server management is generally intranet management. Therefore, when performing some server management operations (for example, server online, server upgrade, etc.), network operations are required, which will lead to certain security risks. Summary of the invention

[0003] The embodiments of the present application provide a method, device, storage medium, electronic device and computer program product for mounting a multimedia card, so as to at least solve the problem in the related art that there are certain security risks caused by the need to connect to the Internet when performing some server management operations.

[0004] According to one embodiment of the present application, a method for mounting a multimedia card is provided, comprising: determining a target device on which an embedded multimedia card needs to be mounted; when it is determined that the target device is a baseboard management controller, mounting the embedded multimedia card on the baseboard management controller; when it is determined that the target device is a first host, mounting the embedded multimedia card on a target connection interface connected to the first host.

[0005] In an exemplary embodiment, mounting the embedded multimedia card on the baseboard management controller includes: mounting the embedded multimedia card on the baseboard management controller through a selector; mounting the embedded multimedia card on a target connection interface connected to the first host includes: mounting the embedded multimedia card on the target connection interface connected to the first host through a selector; wherein the selector includes the baseboard management controller, or the selector includes a multiplexer, the multiplexer is connected to the baseboard management controller, the target connection interface and the embedded multimedia card, and the multiplexer performs the mounting process of the embedded multimedia card under the control of the baseboard management controller.

[0006] In an exemplary embodiment, when the selector includes the multi-way selector, the multi-way selector and the embedded multimedia card are integrated on a hardware card, and the hardware card has the ability to be plugged into the baseboard management controller. When the hardware card is plugged into the baseboard management controller, the first port of the multi-way selector is connected to the baseboard management controller, the second port of the multi-way selector is connected to the target connection interface, and the third port of the multi-way selector is connected to the embedded multimedia card, wherein mounting the embedded multimedia card on the baseboard management controller through the selector includes: the selector, under the control of the baseboard management controller, conducts a communication path between the first port and the third port to mount the embedded multimedia card on the baseboard management controller; mounting the embedded multimedia card on the target connection interface connected to the first host through the selector includes: the selector, under the control of the baseboard management controller, conducts a communication path between the second port and the third port to mount the embedded multimedia card on the target connection interface.

[0007] In an exemplary embodiment, when the selector includes the multi-way selector, the multi-way selector is integrated on the baseboard management controller, the embedded multimedia card has the ability to be plugged into the baseboard management controller, and when the embedded multimedia card is plugged into the baseboard management controller, the fourth port of the multi-way selector is connected to the target connection interface, and the fifth port of the multi-way selector is connected to the embedded multimedia card, wherein mounting the embedded multimedia card on the baseboard management controller through the selector includes: the selector, under the control of the baseboard management controller, opens the communication path between the baseboard management controller and the fifth port to mount the embedded multimedia card on the baseboard management controller; mounting the embedded multimedia card on the target connection interface connected to the first host through the selector includes: the selector, under the control of the baseboard management controller, opens the communication path between the fourth port and the fifth port to mount the embedded multimedia card on the target connection interface.

[0008] In an exemplary embodiment, when the selector includes the baseboard management controller and the embedded multimedia card is a media card built into the baseboard management controller, mounting the embedded multimedia card to a target connection interface connected to the first host through the selector includes: reading system software data stored in a target area of ​​the embedded multimedia card; converting the system software data to obtain target data that can be recognized by the first host; and mounting the target data to the target connection interface.

[0009] In an exemplary embodiment, the target connection interface is a connection interface under a hub configured in the baseboard management controller. Before mounting the target data onto the target connection interface, the method further includes: determining devices pre-connected to each connection interface under the hub; and determining the first connection interface under the hub connected to the first host as the target connection interface.

[0010] In an exemplary embodiment, the method also includes: determining that the connection interface under the hub connected to the first host is changed from the first connection interface to the second connection interface; terminating mounting the target data to the first connection interface, and re-mounting the target data on the second connection interface.

[0011] In an exemplary embodiment, determining that the connection interface connected to the first host under the hub is changed from the first connection interface to the second connection interface includes at least one of the following: determining that the connection interface connected to the first host under the hub is changed from the first connection interface to the second connection interface based on an internally recorded correspondence, wherein the correspondence is used to correspond to record the information of each connection interface under the connection HUB and the device connected thereto; determining that the connection interface connected to the first host under the hub is changed from the first connection interface to the second connection interface based on a received switching instruction.

[0012] In an exemplary embodiment, when the embedded multimedia card is a media card built into the baseboard management controller, the method further includes at least one of the following: mounting a target area storing system software data in the embedded multimedia card to a connection interface of a front control panel, so that a second host performs a first processing on the system software data when connected to the connection interface of the front control panel; mounting the target area storing system software data in the embedded multimedia card to a connection interface of a target hardware device, so that a second host performs a second processing on the system software data when connected to the connection interface of the target hardware device.

[0013] In an exemplary embodiment, when the embedded multimedia card is a media card built into the baseboard management controller, the method further includes: receiving first processing information through a communication interface configured on the baseboard management controller, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface, and a keyboard controller style interface; and processing system software data stored in a target area of ​​the embedded multimedia card according to the first processing information.

[0014] In an exemplary embodiment, when the embedded multimedia card is a media card built into the baseboard management controller and the embedded multimedia card has been mounted on the first host, the method further includes: receiving second processing information through a communication interface configured on the baseboard management controller, and caching the second processing information in the baseboard management controller, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface, and a keyboard controller style interface; when the first host is started, the first host is started to a target connection device mounted on the first host by interacting with a basic input and output system during a window period, so as to start the system software in the target connection device, wherein the data of the system software is stored in the target area of ​​the embedded multimedia card; after the system software is started, the system software is interacted with according to a preset logic, and the second processing information cached in the baseboard management controller is sent to the system software, so as to instruct the system software to execute the operation indicated by the second processing information.

[0015] In an exemplary embodiment, the method also includes: obtaining the execution progress of the system software in executing the operation indicated by the second processing information; when it is determined based on the execution progress that the system software has completed the operation indicated by the second processing information, triggering the operation of restarting the first host, and notifying the basic input and output system to change the boot medium of the first host from the target connection device to the original boot medium, so as to start the first host in the original boot medium, wherein the original boot medium is the boot medium of the first host before booting the first host into the target connection device.

[0016] According to another embodiment of the present application, a multimedia card mounting device is provided, including: a determination module, used to determine a target device on which an embedded multimedia card needs to be mounted; a first mounting module, used to mount the embedded multimedia card on a baseboard management controller when the target device is determined to be a baseboard management controller; and a second mounting module, used to mount the embedded multimedia card on a target connection interface connected to the first host when the target device is determined to be a first host.

[0017] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0018] According to another embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in any one of the above method embodiments when executing the computer program.

[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any one of the above embodiments are implemented.

[0020] Through the present application, the embedded multimedia card can be mounted on the baseboard management controller based on actual mounting requirements under the control of the baseboard management controller, or mounted to the target connection interface connected to the first host, so that the baseboard management controller can control the mounting method of the embedded multimedia card. Therefore, it can solve the problem of certain security risks caused by the need to connect to the Internet when performing some server management operations in the related technology, thereby achieving the effect of improving the security of server management. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a hardware structure block diagram of a server device according to a method for mounting a multimedia card according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of a method for mounting a multimedia card according to an embodiment of the present application;

[0023] Figure 3 The connection logic of the multimedia card according to the embodiment of the present application is Figure 1 ;

[0024] Figure 4 The connection logic of the multimedia card according to the embodiment of the present application is Figure 2 ;

[0025] Figure 5 is an architectural diagram of mounting a multimedia card according to an embodiment of the present application;

[0026] Figure 6 It is a structural block diagram of mounting a multimedia card according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0029] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device according to a method for mounting a multimedia card according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for mounting a multimedia card in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0032] In this embodiment, a method for mounting a multimedia card is provided. Figure 2 is a flowchart of a method for mounting a multimedia card according to an embodiment of the present application, such as Figure 2As shown, the process includes the following steps:

[0033] Step S202, determining a target device on which an embedded multimedia card EMMC needs to be mounted;

[0034] Step S204, when it is determined that the target device is on a baseboard management controller BMC, mounting the EMMC on the BMC;

[0035] Step S206, when it is determined that the target device is the first host, the EMMC is mounted on a target connection interface connected to the first host (the connection interface includes a universal serial bus USB interface, or other physical interfaces with similar capabilities).

[0036] In the above steps, the EMMC stores server management software, which is used to perform full-cycle management of the server, including but not limited to: server online, upgrade, deployment, diagnostic maintenance, data clearing, etc. The storage capacity of the EMMC includes but is not limited to: 4GB, 8GB, 64GB, 256GB, etc., and EMMC can be selected based on the properties of the EMMC (for example, interface speed, storage capacity, read and write speed, power consumption, software support, physical size, and packaging type, etc.) according to the requirements of the application scenario.

[0037] The execution subject of the above steps may be BMC, other server hardware management components with similar functions to BMC, or other components or devices specifically associated with BMC, etc., but is not limited thereto.

[0038] Through the above-mentioned embodiments, the embedded multimedia card can be mounted on the baseboard management controller based on the actual mounting requirements under the control of the baseboard management controller, or mounted to the target connection interface connected to the first host, so that the baseboard management controller can control the mounting method of the embedded multimedia card. Therefore, it can solve the problem of certain security risks caused by the need to connect to the Internet when performing some server management operations in the related technology, thereby achieving the effect of improving the security of server management.

[0039] In an optional embodiment, the EMMC is mounted on the BMC: the EMMC is mounted on the BMC through a selector; the EMMC is mounted on a target connection interface connected to the first host, including: mounting the EMMC on a target USB interface connected to the first host through a selector; wherein the selector includes the BMC, or the selector includes a multiplexer MUX, the MUX is connected to the BMC, the target USB interface and the EMMC, and the MUX performs the mounting process of the EMMC under the control of the BMC.

[0040] In the above steps, the EMMC is mounted on the BMC by the selector, so that the BMC can perform server management tasks on the target server through the server management software in the EMMC, and the EMMC is mounted on the target universal serial bus USB interface connected to the first host by the selector, so that the EMMC can be used as the boot medium of the target server, which further solves the problem of certain security risks caused by the need to perform networking operations when performing some server management operations in the related technology, thereby improving the security of server management.

[0041] In an optional embodiment, when the selector includes the MUX, the MUX and the EMMC are integrated on a hardware card, and the hardware card has the ability to be plugged into the BMC. When the hardware card is plugged into the BMC, the first port of the MUX is connected to the BMC, the second port of the MUX is connected to the target USB interface, and the third port of the MUX is connected to the EMMC, wherein mounting the EMMC on the BMC through the selector includes: the selector, under the control of the BMC, conducts a communication path between the first port and the third port to mount the EMMC on the BMC; mounting the EMMC on the target universal serial bus USB interface connected to the first host through the selector includes: the selector, under the control of the BMC, conducts a communication path between the second port and the third port to mount the EMMC on the target USB.

[0042] In the above steps, optionally, the type of the hardware card includes but is not limited to: storage expansion card, industrial control card, embedded computing card, server expansion card, customized hardware card, etc. The hardware card includes but is not limited to: plugging with the BMC and connecting with the BMC by coupling to the data center security control module DC-SCM (Datacenter-ready Secure Control Module) management board. Figure 3 The connection logic of the multimedia card according to the embodiment of the present application is Figure 1 ,like Figure 3 As shown, exemplarily, the hardware card is connected to the BMC by coupling to a DC-SCM management board, and the MUX can switch the EMMC connection object.

[0043] In an optional embodiment, when the selector includes the MUX, the MUX is integrated on the BMC, the EMMC has the ability to be plugged into the BMC, and when the EMMC is plugged into the BMC, the fourth port of the MUX is connected to the target USB interface, and the fifth port of the MUX is connected to the EMMC, wherein mounting the EMMC on the BMC through the selector includes: the selector, under the control of the BMC, turns on the communication path between the BMC and the fifth port to mount the EMMC on the BMC; mounting the EMMC on the target universal serial bus USB interface connected to the first host through the selector includes: the selector, under the control of the BMC, turns on the communication path between the fourth port and the fifth port to mount the EMMC on the target USB.

[0044] In the above steps, the target USB interface includes but is not limited to: USB Type-A, Type-B, Mini USB, Micro USB, etc.; wherein, Figure 4 The connection logic of the multimedia card according to the embodiment of the present application is Figure 2 .

[0045] In an optional embodiment, when the selector includes the BMC and the EMMC is a media card built into the BMC, mounting the EMMC to a target universal serial bus (USB) interface connected to the first host through the selector includes: reading system software data stored in a target area of ​​the EMMC; converting the system software data to obtain target data that can be recognized by the first host; and mounting the target data to the target USB interface.

[0046] Optionally, the first host includes but is not limited to: a server, a personal computer (PC), a network device, a storage device (e.g., a network attached storage (NAS), a storage area network (SAN) controller, etc.), a virtual machine, etc. The target area includes but is not limited to: a boot area partition (Boot Area Partition), a replay protection memory block partition (RPMBPartition), a general purpose partition (General Purpose Partition), and a user data area (User DataArea). Optionally, the execution subject of the above steps can be a BMC, Figure 5 is an architectural diagram of the mounting of a multimedia card according to an embodiment of the present application, such as Figure 5 As shown, the BMC includes but is not limited to converting the system software data to obtain the target data in the following manner: the BMC initializes the EMMC device (for example, configures the communication protocol, clock frequency, data path, etc.); the BMC determines which partition of the EMMC to read data from; the BMC sends a read command to the EMMC to obtain the system software data; the BMC converts the system software data into a format recognizable by the first host; the BMC mounts the format-converted data on the target USB interface (i.e., the front control panel USB interface shown in the figure) to make it visible to the host device connected to the interface, wherein a virtual USB storage device can be pre-created on the BMC, or the BMC directly transmits the data stream to the target USB interface.

[0047] In the above steps, by converting the system software data in the EMMC, it can be ensured that the format of the system software data is compatible with the first host, so that the host can effectively read and utilize the system software data, and directly mount the converted system software data to the USB interface, thereby simplifying the data access process.

[0048] In an optional embodiment, the target USB interface is a USB interface under a USB HUB configured in the BMC. Before the BMC mounts the target data onto the target USB interface, the method further includes: determining devices pre-connected to each USB interface under the USB HUB; and determining a first USB interface under the USB HUB connected to the first host as the target USB interface.

[0049] In the above steps, the devices connected to each USB interface include but are not limited to: input devices for remote management of the server (for example, keyboard, mouse, etc.), USB storage devices (for example, U disk, external hard disk drive, etc.), network adapters, debugging and testing equipment, communication modules of USB interfaces, etc. Optionally, the execution entity for executing the above steps may be a BMC.

[0050] In an optional embodiment, the method also includes: determining that the USB interface connected to the first host under the USB HUB is changed from the first USB interface to the second USB interface; terminating mounting the target data to the first USB interface, and re-mounting the target data on the second USB interface.

[0051] Optionally, the execution entity for executing the above steps may be a BMC.

[0052] In an optional embodiment, determining that the USB interface connected to the first host under the USB HUB is changed from the first USB interface to the second USB interface includes at least one of the following: determining that the USB interface connected to the first host under the USB HUB is changed from the first USB interface to the second USB interface based on an internally recorded correspondence relationship, wherein the correspondence relationship is used to correspond to record information about each USB interface under the USB HUB and a device connected thereto; determining that the USB interface connected to the first host under the USB HUB is changed from the first USB interface to the second USB interface based on a received switching instruction.

[0053] Optionally, the execution subject of the above steps can be BMC. In the above steps, the BMC replaces the converter MUX by adopting virtual media mounting technology. Since the BMC uses the USB HUB in the chip itself, and the connection positions of each port under the USB HUB can freely select hardware connections according to the design of the server system, the BMC can mount the system software to different USB ports under the BMC USB HUB as needed, and realize virtualizing a bootable USB device for the first host by mounting the system software to the USB port under the first host, providing a way to directly provide host-side startup for the system software. Through the above steps, the use of additional hardware MUX is avoided, the hardware cost is reduced, and the interface expansion can be achieved through the virtual media mounting technology of the BMC, thereby adapting to different server system designs and hardware connection requirements.

[0054] In an optional embodiment, when the EMMC is a media card built into the BMC, the method further includes at least one of the following: mounting the target area storing system software data in the EMMC to the USB interface of the front control board, so that the second host performs a first process on the system software data when connected to the USB interface of the front control board; mounting the target area storing system software data in the EMMC to the USB interface of a target hardware device, so that the second host performs a second process on the system software data when connected to the USB interface of the target hardware device.

[0055] Optionally, the execution subject of the above steps may be BMC. In the above steps, the BMC adopts virtual storage mounting technology to selectively mount the partition or folder of BMC EMMC with system software to the USB interface of the front control board or other hardware, thereby virtualizing the EMMC partition or folder with system software into a physical storage USB disk, and when its host and USB host controller are connected to the USB interface of the front control board or other hardware, the partition or folder with system software in EMMC can be updated, deleted, read and other functions through the USB interface of the hardware, thereby improving maintainability.

[0056] In an optional embodiment, when the EMMC is a media card built into the BMC, the method further includes: receiving first processing information through a communication interface configured on the BMC, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface ipmi, and a keyboard controller style KCS interface; and processing system software data stored in a target area of ​​the EMMC according to the first processing information.

[0057] Optionally, the execution subject of the above steps may be a BMC. Optionally, the first processing information includes but is not limited to: modification information of system software, update information of system software, and deletion information of system software. In the above steps, the BMC receives the first processing information and processes the system software data according to the first processing information, so as to update and maintain the system software data stored in the EMMC through the communication interface, thereby providing a convenient update path in the server production and maintenance links and improving the user experience of the system software.

[0058] In an optional embodiment, when the EMMC is a media card built into the BMC and the EMMC has been mounted on the first host, the method further includes: receiving second processing information through a communication interface configured on the BMC, and caching the second processing information in the BMC, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface ipmi, and a keyboard controller style KCS interface; when the first host is started, the first host is started to a target USB device mounted on the first host by interacting with a basic input and output system BIOS during a window period, so as to start the system software in the target USB device, wherein the data of the system software is stored in a target area of ​​the EMMC; after the system software is started, the system software is interacted with according to a preset logic, and the second processing information cached in the BMC is sent to the system software, so as to instruct the system software to execute the operation indicated by the second processing information.

[0059] Optionally, the execution subject of the above steps may be BMC. In the above steps, the second processing information includes but is not limited to: system software function instructions (for example, system software startup instructions, system software function execution instructions, execution status query instructions, etc.), the system software function instructions include but are not limited to: various instructions for system software to go online on the server, various instructions for system software to upgrade the server system (for example, firmware, component upgrade), various instructions for system software to deploy the server (for example, raid configuration, various parameter configurations, etc.), daily maintenance data collection instructions for system software, server one-key erase function instructions, etc., the BMC includes but is not limited to interacting with the system software according to preset logic in the following ways: the system software communicates with the BMC through a network interface, the system software communicates with the BMC through a keyboard control signal; the system software obtains the second processing information from the BMC; the system software parses the second processing information.

[0060] In an optional embodiment, the method also includes: obtaining the execution progress of the system software in executing the operation indicated by the second processing information; when it is determined based on the execution progress that the system software has completed the operation indicated by the second processing information, triggering the operation of restarting the first host, and notifying the BIOS to change the boot medium of the first host from the target USB device to the original boot medium, so as to start the first host in the original boot medium, wherein the original boot medium is the boot medium of the first host before booting the first host into the target USB device.

[0061] Optionally, the execution subject of the above steps may be a BMC. In the above steps, after the operation indicated by the second processing information is executed, the system automatically restarts and notifies the BIOS to switch the boot medium of the first host to the original boot medium, without user operation, thus avoiding possible mistakes and untimely operation caused by manual operation, enhancing stability and improving user experience.

[0062] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0063] In the present embodiment, a multimedia card mounting is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0064] Figure 6 is a structural block diagram of the mounting of a multimedia card according to an embodiment of the present application, such as Figure 6 As shown, the mounting includes: a determination module 62, which is used to determine the target device on which the embedded multimedia card EMMC needs to be mounted; a first mounting module 64, which is used to mount the EMMC on the baseboard management controller BMC when it is determined that the target device is on the BMC; a second mounting module 66, which is used to mount the EMMC on the target universal serial bus USB interface connected to the first host when it is determined that the target device is the first host.

[0065] In an optional embodiment, the first mounting module 64 and the second mounting module 66 may include a selector, the selector includes the BMC, or the selector includes a multiplexer MUX, the MUX is connected to the BMC, the target USB interface and the EMMC, and the MUX performs the mounting processing of the EMMC under the control of the BMC.

[0066] In an optional embodiment, when the selector includes the MUX, the MUX and the EMMC are integrated on a hardware card, and the hardware card has the ability to be plugged into the BMC. When the hardware card is plugged into the BMC, the first port of the MUX is connected to the BMC, the second port of the MUX is connected to the target USB interface, and the third port of the MUX is connected to the EMMC, wherein the first mounting module 64 includes: a first conduction unit, which is used to conduct the communication path between the first port and the third port under the control of the BMC, so as to mount the EMMC on the BMC; the second mounting module 66 includes: a second conduction unit, which is used to conduct the communication path between the second port and the third port under the control of the BMC, so as to mount the EMMC on the target USB.

[0067] In an optional embodiment, when the selector includes the MUX, the MUX is integrated on the BMC, the EMMC has the ability to be plugged into the BMC, and when the EMMC is plugged into the BMC, the fourth port of the MUX is connected to the target USB interface, and the fifth port of the MUX is connected to the EMMC, wherein the first mounting module 64 includes: a third conduction unit, which is used to conduct the communication path between the BMC and the fifth port under the control of the BMC, so as to mount the EMMC on the BMC; the second mounting module 66 includes: a fourth conduction unit, which is used to conduct the communication path between the fourth port and the fifth port under the control of the BMC, so as to mount the EMMC on the target USB.

[0068] In an optional embodiment, when the selector includes the BMC and the EMMC is a media card built into the BMC, the second mounting module 66 includes: a reading unit, used to read the system software data stored in the target area of ​​the EMMC; a conversion unit, used to convert the system software data to obtain target data that can be recognized by the first host; and a mounting unit, used to mount the target data to the target USB interface.

[0069] In an optional embodiment, the target USB interface is a USB interface under a USB HUB configured in the BMC, and the device further includes: a first determination module, used to determine the devices pre-connected to each USB interface under the USB HUB before mounting the target data to the target USB interface; and a second determination module, used to determine the first USB interface under the USB HUB connected to the first host as the target USB interface.

[0070] In an optional embodiment, the device also includes: a third determination module, used to determine that the USB interface connected to the first host under the USBHUB is changed from the first USB interface to the second USB interface; a termination module, used to mount the target data to the first USB interface, and re-mount the target data on the second USB interface.

[0071] In an optional embodiment, the third determination module includes at least one of the following: a first determination unit, used to determine, based on an internally recorded correspondence, that the USB interface under the USB HUB connected to the first host is changed from the first USB interface to the second USB interface, wherein the correspondence is used to correspond to record information about each USB interface under the USB HUB and the device connected thereto; a second determination unit, used to determine, based on a received switching instruction, that the USB interface under the USB HUB connected to the first host is changed from the first USB interface to the second USB interface.

[0072] In an optional embodiment, when the EMMC is a media card built into the BMC, the BMC also includes: a first processing module, used to mount the target area storing system software data in the EMMC to the USB interface of the front control panel, so that the second host can perform a first processing on the system software data when connected to the USB interface of the front control panel; a second processing module, used to mount the target area storing system software data in the EMMC to the USB interface of the target hardware device, so that the second host can perform a second processing on the system software data when connected to the USB interface of the target hardware device.

[0073] In an optional embodiment, when the EMMC is a media card built into the BMC, the device also includes: a first receiving module, used to receive first processing information through a communication interface configured on the BMC, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface ipmi, and a keyboard controller style KCS interface; a third processing module, used to process the system software data stored in the target area of ​​the EMMC according to the first processing information.

[0074] In an optional embodiment, when the EMMC is a media card built into the BMC and the EMMC has been mounted on the first host, the device further includes: a second receiving module, used to receive second processing information through a communication interface configured on the BMC, and cache the second processing information in the BMC, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface ipmi, and a keyboard controller style KCS interface; a third mounting module, used to, when the first host is started, start the first host to a target USB device mounted on the first host by interacting with a basic input and output system BIOS during a window period, so as to start the system software in the target USB device, wherein the data of the system software is stored in the target area of ​​the EMMC; an interaction module, used to interact with the system software according to a preset logic after the system software is started, and send the second processing information cached in the BMC to the system software, so as to instruct the system software to perform the operation indicated by the second processing information.

[0075] In an optional embodiment, the device also includes: an acquisition module, used to acquire the execution progress of the system software in executing the operation indicated by the second processing information; a trigger module, used to trigger the operation of restarting the first host when it is determined based on the execution progress that the system software has completed the operation indicated by the second processing information, and to notify the BIOS to change the boot medium of the first host from the target USB device to the original boot medium, so as to start the first host in the original boot medium, wherein the original boot medium is the boot medium of the first host before booting the first host into the target USB device.

[0076] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0077] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0078] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0079] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0080] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0081] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0082] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0083] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0084] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for mounting a multimedia card, characterized in that: include: Determine a target device on which an embedded multimedia card needs to be mounted, wherein the embedded multimedia card includes server management software; When it is determined that the target device is a baseboard management controller, mounting the embedded multimedia card on the baseboard management controller; When it is determined that the target device is a first host, mounting the embedded multimedia card to a target connection interface connected to the first host; The selector includes a multiplexer, the multiplexer is connected to the baseboard management controller, the target connection interface and the embedded multimedia card, and the multiplexer performs the mounting process of the embedded multimedia card under the control of the baseboard management controller; The multiplexer and the embedded multimedia card are integrated on a hardware card, and the hardware card has the ability to be plugged into the baseboard management controller. When the hardware card is plugged into the baseboard management controller, the first port of the multiplexer is connected to the baseboard management controller, the second port of the multiplexer is connected to the target connection interface, and the third port of the multiplexer is connected to the embedded multimedia card; The embedded multimedia card is mounted on the target connection interface connected to the first host through the selector, including: the selector, under the control of the baseboard management controller, opens the communication path between the second port and the third port to mount the embedded multimedia card on the target connection interface.

2. The method according to claim 1, characterized in that Mounting the embedded multimedia card on the baseboard management controller includes: mounting the embedded multimedia card on the baseboard management controller through a selector; Mounting the embedded multimedia card on the target connection interface connected to the first host comprises: mounting the embedded multimedia card on the target connection interface connected to the first host through a selector; Wherein, the selector includes the baseboard management controller.

3. The method according to claim 2, characterized in that In the case where the selector includes the multi-way selector, mounting the embedded multimedia card on the baseboard management controller through the selector includes: the selector, under the control of the baseboard management controller, opens a connecting path between the first port and the third port to mount the embedded multimedia card on the baseboard management controller.

4. The method according to claim 2, characterized in that: In the case where the selector includes the multiplexer, the multiplexer is integrated on the baseboard management controller, the embedded multimedia card has the ability to be plugged into the baseboard management controller, and when the embedded multimedia card is plugged into the baseboard management controller, the fourth port of the multiplexer is connected to the target connection interface, and the fifth port of the multiplexer is connected to the embedded multimedia card, wherein: The embedded multimedia card is mounted on the baseboard management controller through a selector, comprising: the selector, under the control of the baseboard management controller, conducts a communication path between the baseboard management controller and the fifth port to mount the embedded multimedia card on the baseboard management controller; The embedded multimedia card is mounted on the target connection interface connected to the first host through the selector, including: the selector, under the control of the baseboard management controller, opens the communication path between the fourth port and the fifth port to mount the embedded multimedia card on the target connection interface.

5. The method according to claim 2, characterized in that: In a case where the selector includes the baseboard management controller and the embedded multimedia card is a media card built into the baseboard management controller, mounting the embedded multimedia card to a target connection interface connected to the first host through the selector comprises: Reading system software data stored in a target area of ​​the embedded multimedia card; Converting the system software data to obtain target data that can be recognized by the first host; The target data is mounted on the target connection interface.

6. The method according to claim 5, characterized in that The target connection interface is a connection interface under a hub configured in the baseboard management controller. Before mounting the target data to the target connection interface, the method further includes: Determine the devices pre-connected to each connection interface under the hub; A first connection interface under the hub connected to the first host is determined as the target connection interface.

7. The method according to claim 6, characterized in that The method further comprises: Determining that the connection interface of the hub connected to the first host is changed from the first connection interface to a second connection interface; The mounting of the target data on the first connection interface is terminated, and the target data is remounted on the second connection interface.

8. The method according to claim 7, characterized in that Determining that the connection interface of the hub connected to the first host is changed from the first connection interface to the second connection interface includes at least one of the following: Determine based on the internally recorded correspondence that the connection interface under the hub connected to the first host is changed from the first connection interface to the second connection interface, wherein the correspondence is used to correspond to record the information of the devices connected to each connection interface under the hub; Based on the received switching instruction, it is determined that the connection interface under the hub connected to the first host is changed from the first connection interface to the second connection interface.

9. The method according to claim 2, characterized in that: In the case where the embedded multimedia card is a media card built into the baseboard management controller, the method further includes at least one of the following: Mounting the target area storing the system software data in the embedded multimedia card to the connection interface of the front control board, so that the second host performs the first processing on the system software data when connected to the connection interface of the front control board; The target area storing the system software data in the embedded multimedia card is mounted to the connection interface of the target hardware device, so that the second host performs a second process on the system software data when connected to the connection interface of the target hardware device.

10. The method according to claim 2, characterized in that In the case where the embedded multimedia card is a media card built into the baseboard management controller, the method further includes: Receiving first processing information through a communication interface configured on the baseboard management controller, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface, and a keyboard controller style interface; The system software data stored in the target area of ​​the embedded multimedia card is processed according to the first processing information.

11. The method according to claim 2, characterized in that In the case where the embedded multimedia card is a media card built into the baseboard management controller, and the embedded multimedia card has been mounted on the first host, the method further includes: Receiving second processing information through a communication interface configured on the baseboard management controller, and caching the second processing information in the baseboard management controller, wherein the communication interface includes at least one of the following: a redfish interface, a restful interface, an intelligent platform management interface, and a keyboard controller style interface; When the first host is started, the first host is started to a target connection device mounted under the first host by interacting with a basic input and output system during a window period, so as to start system software in the target connection device, wherein the data of the system software is stored in a target area of ​​the embedded multimedia card; After the system software is started, the system software is interacted with according to a preset logic, and the second processing information cached in the baseboard management controller is sent to the system software to instruct the system software to execute the operation indicated by the second processing information.

12. The method according to claim 11, characterized in that The method further comprises: Acquire the execution progress of the system software in executing the operation indicated by the second processing information; When it is determined based on the execution progress that the system software has completed the operation indicated by the second processing information, the operation of restarting the first host is triggered, and the basic input and output system is notified to change the boot medium of the first host from the target connection device to the original boot medium, so as to start the first host in the original boot medium, wherein the original boot medium is the boot medium of the first host before booting the first host into the target connection device.

13. A multimedia card mounting device, characterized in that: include: A determination module, used for determining a target device on which an embedded multimedia card needs to be mounted, wherein the embedded multimedia card includes server management software; A first mounting module, configured to mount the embedded multimedia card onto the baseboard management controller when it is determined that the target device is a baseboard management controller; A second mounting module, configured to mount the embedded multimedia card to a target connection interface connected to the first host when it is determined that the target device is the first host; The selector includes a multiplexer, the multiplexer is connected to the baseboard management controller, the target connection interface and the embedded multimedia card, and the multiplexer performs the mounting process of the embedded multimedia card under the control of the baseboard management controller; The multiplexer and the embedded multimedia card are integrated on a hardware card, and the hardware card has the ability to be plugged into the baseboard management controller. When the hardware card is plugged into the baseboard management controller, the first port of the multiplexer is connected to the baseboard management controller, the second port of the multiplexer is connected to the target connection interface, and the third port of the multiplexer is connected to the embedded multimedia card; The second mounting module includes: a second conducting unit, which is used to conduct the communication path between the second port and the third port under the control of the baseboard management controller, so as to mount the embedded multimedia card on the target connection interface.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 12 when executed by a processor.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Firmware updating system and method

    CN102855146A

  • Server quick starting system, method and equipment, medium and program product

    CN118567732A