Multimedia card mounting method and apparatus, and storage medium and electronic device
By mounting the embedded multimedia card to the baseboard management controller or host interface under the control of the baseboard management controller, the security risks brought about by networking in server management operations are resolved, and security and data access are simplified.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2026-04-02
AI Technical Summary
Security risks arise from network-based operations required during server management.
Under the control of the baseboard management controller, the embedded multimedia card is mounted to the baseboard management controller or the target interface connected to the first host. The mounting of the embedded multimedia card is performed using a selector or multiplexer, ensuring data format compatibility and realizing server management tasks.
It improves the security of server management, avoids security risks caused by network operations, simplifies the data access process, and reduces hardware costs.
Smart Images

Figure CN2025098508_02042026_PF_FP_ABST
Abstract
Description
Mounting method and device of multimedia card, storage medium and electronic device
[0001] Cross-reference to related applications
[0002] The present application claims priority to the Chinese patent application No. 202411372920.6, filed on September 29, 2024, and entitled "Mounting method and device of multimedia card, storage medium and electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] Embodiments of the present application relate to the field of computers, and in particular, to a mounting method and device of a multimedia card, a storage medium, an electronic device and a computer program product. BACKGROUND
[0004] With the large-scale and diversified computing power of data centers, server management, as a core link of the development of data centers, has gradually become the key to promoting the technological innovation and service quality improvement of data centers. In related technologies, server management is generally internal network management, so when performing some server management operations (for example, server online, server upgrade, etc.), networking operations need to be performed, which may cause certain security risks. SUMMARY
[0005] Embodiments of the present application provide a mounting method and device of a multimedia card, a storage medium, an electronic device and a computer program product to at least solve the problem that in related technologies, when performing some server management operations, networking operations need to be performed, which may cause certain security risks.
[0006] According to an embodiment of the present application, a mounting method of a multimedia card is provided, including: determining a target device that needs to be mounted with an embedded multimedia card; in a case where the target device is determined to be a baseboard management controller, mounting the embedded multimedia card on the baseboard management controller; and in a case where the target device is determined to be a first host, mounting the embedded multimedia card on a target connection interface connected with the first host.
[0007] In one exemplary embodiment, mounting the embedded multimedia card on the baseboard management controller includes mounting the embedded multimedia card on the baseboard management controller by a selector; and mounting the embedded multimedia card on the target connection interface connected with the first host includes mounting the embedded multimedia card on the target connection interface connected with the first host by the selector; wherein the selector includes the baseboard management controller, or the selector includes a multiplexer, the multiplexer being connected with the baseboard management controller, the target connection interface and the embedded multimedia card, and the multiplexer performing the mounting process of the embedded multimedia card under the control of the baseboard management controller.
[0008] In one example embodiment, in the case that the embedded multimedia card is mounted to the baseboard management controller through the selector, the baseboard management controller is configured to perform server management tasks on a target server to which the baseboard management controller belongs through server management software in the embedded multimedia card; in the case that the embedded multimedia card is mounted to the target connection interface connected to the first host through the selector, the embedded multimedia card is configured to serve as a booting medium of the target server.
[0009] In one example embodiment, in the case that the selector comprises a multiplexer, the multiplexer is integrated on a hardware card with the capability of plugging with the baseboard management controller, in the case that the hardware card is plugged on the baseboard management controller, a first port of the multiplexer is connected to the baseboard management controller, a second port of the multiplexer is connected to the target connection interface, and a third port of the multiplexer is connected to the embedded multimedia card, wherein mounting the embedded multimedia card to the baseboard management controller through the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the first port and the third port to mount the embedded multimedia card to the baseboard management controller; mounting the embedded multimedia card to the target connection interface connected to the first host through the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the second port and the third port to mount the embedded multimedia card to the target connection interface.
[0010] In one example embodiment, in the case that the selector comprises a multiplexer, the multiplexer is integrated on the baseboard management controller, and the embedded multimedia card has the capability of plugging with the baseboard management controller, in the case that the embedded multimedia card is plugged on the baseboard management controller, a fourth port of the multiplexer is connected to the target connection interface, and a fifth port of the multiplexer is connected to the embedded multimedia card, wherein mounting the embedded multimedia card to the baseboard management controller through the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the baseboard management controller and the fifth port to mount the embedded multimedia card to the baseboard management controller; mounting the embedded multimedia card to the target connection interface connected to the first host through the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the fourth port and the fifth port to mount the embedded multimedia card to the target connection interface.
[0011] In one example embodiment, in the case that the selector comprises a baseboard management controller and the embedded multimedia card is a media card built-in the baseboard management controller, mounting the embedded multimedia card to the target connection interface connected with the first host by 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 recognizable by the first host; and mounting the target data to the target connection interface.
[0012] In one example embodiment, converting the system software data to obtain target data recognizable by the first host comprises: initializing the embedded multimedia card device; determining from which partition of the embedded multimedia card to read data; sending a read command to the embedded multimedia card to obtain system software data of the corresponding partition; converting the system software data into a format recognizable by the first host to obtain the target data; and mounting the target data to the target connection interface, comprising: transmitting a data stream of the target data to the target connection interface.
[0013] In one example embodiment, the target connection interface is a connection interface under a hub configured in the baseboard management controller, and before mounting the target data to the target connection interface, the method further comprises: determining devices connected with each connection interface under the hub; and determining the first connection interface connected with the first host under the hub as the target connection interface.
[0014] In one example embodiment, the method further comprises: determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface; terminating mounting the target data to the first connection interface; and mounting the target data on the second connection interface again.
[0015] In one example embodiment, determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface comprises at least one of: determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface based on a corresponding relationship recorded internally, wherein the corresponding relationship is used to record information of each connection interface under the connection HUB and the device connected therewith; and determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface based on a received switching instruction.
[0016] In an example embodiment, in the case that the embedded multimedia card is a media card built-in in the baseboard management controller, the method further comprises at least one of the following: mounting a target area in which the system software data is stored in the embedded multimedia card to a connection interface of the front control panel, so that the second host performs first processing on the system software data when connected to the connection interface of the front control panel; mounting a target area in which the system software data is stored in the embedded multimedia card to a connection interface of the target hardware device, so that the second host performs second processing on the system software data when connected to the connection interface of the target hardware device.
[0017] In an example embodiment, when the second host is connected to the connection interface of the front control panel or the connection interface of the target hardware device, the second host is configured to perform system software update, deletion and reading operations on the target area in which the system software data is stored in the embedded multimedia card through the connection interface of the front control panel or the connection interface of the target hardware device.
[0018] In an example embodiment, in the case that the embedded multimedia card is a media card built-in in the baseboard management controller, the method further comprises: receiving first processing information through a communication interface configured on the baseboard management controller, wherein the communication interface comprises 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 the system software data stored in the target area of the embedded multimedia card according to the first processing information.
[0019] In an example embodiment, in the case that the embedded multimedia card is a media card built-in in the baseboard management controller and the embedded multimedia card has been mounted to the first host, the method further comprises: 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 comprises 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, starting the first host into a target connection device mounted to the first host in a window period through interaction with a basic input / output system to start the system software in the target connection device, wherein data of the system software is stored in a target area of the embedded multimedia card; after the system software is started, interacting with the system software according to a preset logic and sending the second processing information cached in the baseboard management controller to the system software to instruct the system software to perform operations indicated by the second processing information.
[0020] In an example embodiment, the preset logic interacts with the system software, including: communicating with the system software through a network interface, and communicating with the system software through a keyboard control signal, wherein the system software is configured to acquire the second processing information and analyze the second processing information.
[0021] In an example embodiment, the method further includes: acquiring an execution progress of the system software in executing the operation indicated by the second processing information; in a case where it is determined based on the execution progress that the system software has completed the operation indicated by the second processing information, triggering an operation of restarting the first host, and notifying the basic input / output system to change the starting medium of the first host from the target connection device to the original starting medium to start the first host in the original starting medium, wherein the original starting medium is the starting medium of the first host before the first host is started into the target connection device.
[0022] According to another embodiment of the present application, a mounting device of a multimedia card is provided, including: a determination module configured to determine a target device requiring mounting of an embedded multimedia card; a first mounting module configured to mount the embedded multimedia card onto a baseboard management controller in a case where it is determined that the target device is the baseboard management controller; and a second mounting module configured to mount the embedded multimedia card onto a target connection interface connected with a first host in a case where it is determined that the target device is the first host.
[0023] According to another embodiment of the present application, a computer non-volatile readable storage medium is provided, and the computer non-volatile readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the steps in any of the method embodiments.
[0024] 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, and the processor implements the steps in any of the method embodiments when executing the computer program.
[0025] According to another embodiment of the present application, a computer program product is provided, including a computer program, and the computer program is executed by a processor to implement the steps in any of the embodiments.
[0026] Through the present application, the embedded multimedia card can be mounted onto the baseboard management controller or onto the target connection interface connected with the first host based on actual mounting requirements under the control of the baseboard management controller, so that the baseboard management controller can control the mounting mode of the embedded multimedia card, and thus the problem of certain security risks caused by the need for networking operation when performing part of the server management operation in the related art can be solved, and the effect of improving the security of server management is achieved. BRIEF DESCRIPTION OF DRAWINGS
[0027] FIG. 1 is a hardware structure block diagram of a server device for a mounting method of a multimedia card according to an embodiment of the present application;
[0028] FIG. 2 is a flowchart of a mounting method of a multimedia card according to an embodiment of the present application;
[0029] FIG. 3 is a connection logic diagram 1 of a mounting of a multimedia card according to an embodiment of the present application;
[0030] FIG. 4 is a connection logic diagram 2 of a mounting of a multimedia card according to an embodiment of the present application;
[0031] FIG. 5 is an architecture diagram of a mounting of a multimedia card according to an embodiment of the present application;
[0032] FIG. 6 is a structure block diagram of a mounting of a multimedia card according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] Hereinafter, the embodiments of the present application will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0034] It should be noted that the terms "first", "second", and the like in the description and claims of the present application and the above-described accompanying drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.
[0035] The method embodiments provided in the embodiments of the present application can be executed in a server device or similar computing device. Taking an example of running on a server device, FIG. 1 is a hardware structure block diagram of a server device for a mounting method of a multimedia card according to an embodiment of the present application. As shown in FIG. 1, the server device can include one or more (only one is shown in FIG. 1) processors 102 (the processor 102 can include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the above-mentioned server device can further include a transmission device 106 configured to implement a communication function and an input and output device 108. Those skilled in the art can understand that the structure shown in FIG. 1 is only schematic, which does not limit the structure of the above-mentioned server device. For example, the server device can further include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1.
[0036] The memory 104 can be configured to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the mounting method of the multimedia card in the embodiments of the present application. The processor 102 can execute various functional applications and data processing, i.e., implement the above method, by running the computer programs stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include memories remotely arranged with respect to the processor 102, which can be connected to a server device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0037] The transmission device 106 is configured to receive or send data via a network. A specific example of the above network can include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to be able to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is configured to communicate with the Internet in a wireless manner.
[0038] In the embodiments of the present application, a mounting method of a multimedia card is provided. FIG. 2 is a flowchart of the mounting method of the multimedia card according to the embodiments of the present application. As shown in FIG. 2, the flowchart includes the following steps:
[0039] In step S202, it is determined that a target device needs to be mounted with an embedded multimedia card (EMMC).
[0040] In step S204, in a case where it is determined that the target device is a baseboard management controller (BMC), the EMMC is mounted on the BMC.
[0041] In step S206, in a case where it is determined that the target device is a first host, the EMMC is mounted on a target connection interface connected with the first host (the connection interface includes a universal serial bus (USB) interface or other physical interfaces with similar capabilities).
[0042] In the above step, the EMMC stores a server management software, which is used for performing the whole cycle management of the server, including but not limited to: server online, upgrade, deployment, diagnosis and maintenance, data clearing, etc. The storage capacity of the EMMC includes but is not limited to: 4GB (Gigabyte), 8GB, 64GB, 256GB, etc. For example, according to the requirements of the application scenario, the EMMC can be selected based on its attributes (such as interface speed, storage capacity, read / write speed, power consumption, software support, physical size, packaging type, etc.).
[0043] In the above step, the execution subject of the above step can be the BMC, other server hardware management components similar to the BMC function, or other components or devices associated with the BMC, etc., but is not limited thereto.
[0044] Through the above embodiment, the EMMC can be mounted on the BMC or the target connection interface connected to the first host based on the actual mounting demand under the control of the BMC, so that the BMC can control the mounting mode of the EMMC. Therefore, the problem of certain security risks caused by the need for networking operation during partial server management operation in the related art can be solved, and the security of server management can be improved.
[0045] In an optional embodiment, mounting the EMMC on the BMC includes mounting the EMMC on the BMC through a selector; and mounting the EMMC on the target connection interface connected to the first host includes mounting the EMMC on the target USB interface connected to the first host through the selector; wherein the selector includes the BMC, or the selector includes a multiplexer MUX connected with 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.
[0046] In the above step, the EMMC is mounted on the BMC by the selector, so that the BMC can perform the server management task on the target server through the server management software in the EMMC. The EMMC is mounted on the target USB interface connected to the first host by the selector, so that the EMMC can serve as the booting medium of the target server, further solving the problem of certain security risks caused by the need for networking operation during partial server management operation in the related art, and improving the security of server management.
[0047] In an optional embodiment, in the case that the selector comprises a MUX, the MUX is integrated on a hardware card, the hardware card is provided with the capability of plugging with the BMC, in the case that the hardware card is plugged on the BMC, the first port of the MUX is connected with the BMC, the second port of the MUX is connected with the target USB interface, and the third port of the MUX is connected with the EMMC, wherein mounting the EMMC on the BMC through the selector comprises: the selector, under the control of the BMC, turns on the communication path between the first port and the third port to mount the EMMC on the BMC; and mounting the EMMC on the target USB interface connected with the first host through the selector comprises: the selector, under the control of the BMC, turns on the communication path between the second port and the third port to mount the EMMC on the target USB.
[0048] In the above steps, in some embodiments, the type of the hardware card includes but is not limited to: a storage expansion card, an industrial control card, an embedded computing card, a server expansion card, a customized hardware card, etc., and the hardware card includes but is not limited to: being plugged with the BMC, being connected with the BMC through being coupled to a DC-SCM management board. FIG. 3 is a connection logic diagram I of mounting of a multimedia card according to an embodiment of the present application, as shown in FIG. 3, the hardware card is connected with the BMC through being coupled to a DC-SCM management board, and the MUX can switch the connection object of the EMMC.
[0049] In an optional embodiment, in the case that the selector comprises a MUX, the MUX is integrated on the BMC, the EMMC is provided with the capability of plugging with the BMC, in the case that the EMMC is plugged on the BMC, the fourth port of the MUX is connected with the target USB interface, and the fifth port of the MUX is connected with the EMMC, wherein mounting the EMMC on the BMC through the selector comprises: 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; and mounting the EMMC on the target USB interface connected with the first host through the selector comprises: 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.
[0050] In the above steps, the target USB interface includes but is not limited to: a USB Type-A, a Type-B, a Mini USB, a Micro USB, etc.; wherein FIG. 4 is a connection logic diagram II of mounting of a multimedia card according to an embodiment of the present application.
[0051] In an optional embodiment, in the case that the selector comprises the BMC and the EMMC is a media card built-in the BMC, mounting the EMMC to the target USB interface connected to the first host by the selector comprises: reading system software data stored in the target area of the EMMC; converting the system software data to obtain target data recognizable by the first host; and mounting the target data to the target USB interface.
[0052] In some embodiments, the first host comprises, but is not limited to, a server, a personal computer (PC), a network device, a storage device (for example, a network attached storage (NAS), a storage area network (SAN) controller, etc.), a virtual machine, etc. The target area comprises, but is not limited to, a boot area partition, a replay protected memory block (RPMB) partition, a general purpose partition, and a user data area. In some embodiments, the subject performing the above steps can be the BMC. FIG. 5 is an architecture diagram of mounting a multimedia card according to an embodiment of the present application. As shown in FIG. 5, the BMC comprises, but is not limited to, converting the system software data to obtain target data by the following ways: the BMC initializes the EMMC device (for example, configuring a communication protocol, a clock frequency, a 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; and the BMC mounts the data after format conversion to the target USB interface (i.e., the front panel USB interface shown in FIG. 5) so as to be visible to the host device connected to the interface. In the above process, a virtual USB storage device can be created in advance on the BMC, or the BMC directly transmits the data stream to the target USB interface.
[0053] 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. Directly mounting the converted system software data to the USB interface simplifies the data access process.
[0054] In an optional embodiment, the target USB interface is a USB interface under a USB HUB configured in the BMC, and before mounting the target data on the target USB interface, the method further comprises: determining devices connected to each USB interface under the USB HUB in advance; and determining a first USB interface connected to the first host as the target USB interface.
[0055] In the above steps, the devices connected to each USB interface include but are not limited to input devices (e.g., keyboard, mouse, etc.) configured as a remote management server, USB storage devices (e.g., U disk, external hard drive, etc.), network adapters, debugging and testing devices, communication modules of the USB interface, etc. In some embodiments, the execution subject performing the above steps can be the BMC.
[0056] In an optional embodiment, the method further comprises: determining that the USB interface connected to the first host under the USB HUB is changed from the first USB interface to a second USB interface; terminating mounting the target data on the first USB interface; and mounting the target data on the second USB interface again.
[0057] In some embodiments, the execution subject performing the above steps can be the BMC.
[0058] 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 a second USB interface comprises 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 a corresponding relationship recorded internally, wherein the corresponding relationship is used to correspond the information of each USB interface under the USB HUB and the device connected thereto; and 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.
[0059] In some embodiments, the execution subject of the above steps can be the BMC. In the above steps, the BMC replaces the converter MUX by using the virtual media mounting technology. Since the BMC has a USB HUB in the chip itself, and the positions of the ports connected under the USB HUB can be freely selected 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 that a USB device that can be started is virtually provided for the first host by mounting the system software to the USB port of the first host, thereby providing a direct way to provide host 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 realized through the virtual media mounting technology of the BMC, thereby adapting to different server system designs and hardware connection requirements.
[0060] In an optional embodiment, in the case of an EMMC as a built-in media card of the BMC, the method further comprises at least one of the following: mounting a target area in the EMMC storing system software data to a USB interface of the front panel, so that the second host performs first processing on the system software data when connected to the USB interface of the front panel; and mounting the target area in the EMMC storing system software data to a USB interface of a target hardware device, so that the second host performs second processing on the system software data when connected to the USB interface of the target hardware device.
[0061] In some embodiments, the execution subject of the above steps can be the BMC. In the above steps, the BMC uses the virtual storage mounting technology to selectively mount the partition or folder of the BMC EMMC storing the system software to the USB interface of the front panel or other hardware, thereby virtually the EMMC partition or folder storing the system software as a physical entity storage U disk, and when the host and the USB host controller are connected to the USB interface of the front panel or other hardware, the EMMC partition or folder storing the system software can be updated, deleted, read, and the like through the USB interface of the hardware, thereby improving the maintainability.
[0062] In an optional embodiment, in the case of the EMMC being a media card built-in the BMC, the method further comprises: receiving first processing information through a communication interface configured on the BMC, wherein the communication interface comprises at least one of the following: a redfish interface, a representational state transfer (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.
[0063] In some embodiments, the execution subject performing the above steps can be the BMC. In some embodiments, the first processing information comprises, but is not limited to, modification information of the system software, update information of the system software, and deletion information of the 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 that the system software data stored in the EMMC can be updated and maintained through the communication interface, thereby providing a convenient update approach in the server production and maintenance process and improving the user experience of the system software.
[0064] In an optional embodiment, in the case of the EMMC being a media card built-in the BMC and the EMMC being mounted on the first host, the method further comprises: 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 comprises at least one of the following: a redfish interface, a RESTful interface, an IPMI, and a KCS interface; when the first host is started, starting the first host into a target USB device mounted on the first host in a window period by interacting with a basic input output system (BIOS) to start the system software in the target USB device, wherein data of the system software is stored in a target area of the EMMC; and after the system software is started, interacting with the system software according to a preset logic and sending the second processing information cached in the BMC to the system software to instruct the system software to perform an operation indicated by the second processing information.
[0065] In some embodiments, the execution subject performing the above steps can be the 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 state query instructions, etc.), and the system software function instructions include but are not limited to: various instructions of the system software online server, various upgrade instructions of the system software to the server system (for example, firmware, component upgrade), various deployment instructions of the system software to the server (for example, raid (Redundant Array of Independent Disks) configuration, various parameter configurations, etc.), daily maintenance data collection instructions of the system software, server one-key erasing function instructions, etc., and the BMC includes but is not limited to interacting with the system software according to the 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; and the system software analyzes the second processing information.
[0066] In an optional embodiment, the method further includes: obtaining an execution progress of the system software in executing the operation indicated by the second processing information; in a case where it is determined based on the execution progress that the system software has executed the operation indicated by the second processing information, triggering the operation of restarting the first host and notifying the BIOS to change the startup medium of the first host from the target USB device to the original startup medium to start the first host in the original startup medium, wherein the original startup medium is the startup medium of the first host before the first host is started into the target USB device.
[0067] In some embodiments, the execution subject performing the above steps can be the BMC. In the above steps, since the restarting is automatically performed and the BIOS is notified to switch the startup medium of the first host to the original startup medium in a case where the operation indicated by the second processing information is executed, no user operation is required, the problems of possible errors and untimely operation in manual operation are avoided, the stability is enhanced, and the user experience is improved.
[0068] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software necessary general hardware platform, of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application or the part of the related art which makes a contribution can be embodied in the form of software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), magnetic disc, optical disc), including a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method of each embodiment of the present application.
[0069] In the embodiment, a mounting of a multimedia card is also provided, the apparatus is configured to implement the above embodiments and optional embodiments, which have been described and will not be repeated. As used below, the term "module" can be implemented by software and / or a combination of hardware. Although the apparatus described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is contemplated.
[0070] Fig. 6 is a structural block diagram of the mounting of the multimedia card according to the embodiment of the present application, as shown in Fig. 6, the mounting includes: a determining module 62 configured to determine a target device which needs to mount an embedded multimedia card (EMMC); a first mounting module 64 configured to mount the EMMC on a baseboard management controller (BMC) if it is determined that the target device is on the BMC; and a second mounting module 66 configured to mount the EMMC on a target universal serial bus (USB) interface connected with a first host if it is determined that the target device is the first host.
[0071] In an optional embodiment, the first mounting module 64 and the second mounting module 66 can include a selector, the selector includes the BMC, or the selector includes a multiplexer (MUX) connected with 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.
[0072] In an optional embodiment, in the case that the selector comprises a MUX, the MUX is integrated on a hardware card which is capable of being plugged with the BMC, in the case that the hardware card is plugged on the BMC, the first port of the MUX is connected with the BMC, the second port of the MUX is connected with the target USB interface, and the third port of the MUX is connected with the EMMC, wherein the first mounting module 64 comprises: a first conducting unit which is configured to conduct the communication passage between the first port and the third port under the control of the BMC, so as to mount the EMMC on the BMC; and the second mounting module 66 comprises: a second conducting unit which is configured to conduct the communication passage between the second port and the third port under the control of the BMC, so as to mount the EMMC on the target USB.
[0073] In an optional embodiment, in the case that the selector comprises a MUX, the MUX is integrated on the BMC, and the EMMC is capable of being plugged with the BMC, in the case that the EMMC is plugged on the BMC, the fourth port of the MUX is connected with the target USB interface, and the fifth port of the MUX is connected with the EMMC, wherein the first mounting module 64 comprises: a third conducting unit which is configured to conduct the communication passage between the BMC and the fifth port under the control of the BMC, so as to mount the EMMC on the BMC; and the second mounting module 66 comprises: a fourth conducting unit which is configured to conduct the communication passage between the fourth port and the fifth port under the control of the BMC, so as to mount the EMMC on the target USB.
[0074] In an optional embodiment, in the case that the selector comprises a BMC and the EMMC is a media card built-in the BMC, the second mounting module 66 comprises: a reading unit which is configured to read the system software data stored in the target area of the EMMC; a converting unit which is configured to convert the system software data to obtain target data which can be recognized by the first host; and a mounting unit which is configured to mount the target data on the target USB interface.
[0075] In an optional embodiment, the target USB interface is a USB interface under a USB HUB configured in the BMC, and the apparatus further comprises: a first determining module which is configured to determine the devices connected with each USB interface under the USB HUB in advance before mounting the target data on the target USB interface; and a second determining module which is configured to determine the first USB interface connected with the first host under the USB HUB as the target USB interface.
[0076] In an optional embodiment, the apparatus further comprises a third determining module configured to determine that the USB interface connected with the first host under the USB HUB is changed from the first USB interface to the second USB interface; and a terminating module configured to mount the target data on the first USB interface, and remount the target data on the second USB interface.
[0077] In an optional embodiment, the third determining module comprises at least one of the following: a first determining unit configured to determine that the USB interface connected with the first host under the USB HUB is changed from the first USB interface to the second USB interface based on a corresponding relationship recorded internally, wherein the corresponding relationship is used to correspond the device information of each USB interface under the USB HUB and the device information connected therewith; and a second determining unit configured to determine that the USB interface connected with the first host under the USB HUB is changed from the first USB interface to the second USB interface based on the received switching instruction.
[0078] In an optional embodiment, in the case that the EMMC is a media card built-in the BMC, the BMC further comprises a first processing module configured to mount a target region in which system software data is stored in the EMMC to the USB interface of the front panel, so that the second host performs first processing on the system software data when connected to the USB interface of the front panel; and a second processing module configured to mount the target region in which the system software data is stored in the EMMC to the USB interface of the target hardware device, so that the second host performs second processing on the system software data when connected to the USB interface of the target hardware device.
[0079] In an optional embodiment, in the case that the EMMC is a media card built-in the BMC, the apparatus further comprises a first receiving module configured to receive first processing information through a communication interface configured on the BMC, wherein the communication interface comprises 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 a third processing module configured to process the system software data stored in the target region of the EMMC according to the first processing information.
[0080] In an optional embodiment, in the case that the EMMC is a media card built-in the BMC and the EMMC has been mounted on the first host, the apparatus further comprises: a second receiving module configured 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 comprises at least one of a redfish interface, a restful interface, an intelligent platform management interface (IPMI), and a keyboard controller style (KCS) interface; a third mounting module configured to, when the first host is started, start the first host into a target USB device mounted on the first host through interaction with a basic input / output system (BIOS) in a window period, so as to start system software in the target USB device, wherein data of the system software is stored in a target area of the EMMC; and an interaction module configured to, after the system software is started, interact with the system software according to a preset logic, and send the second processing information cached in the BMC to the system software, so as to instruct the system software to perform an operation indicated by the second processing information.
[0081] In an optional embodiment, the apparatus further comprises: an obtaining module configured to obtain an execution progress of the system software in performing the operation indicated by the second processing information; and a triggering module configured to, in the case that it is determined based on the execution progress that the system software has performed the operation indicated by the second processing information, trigger an operation of restarting the first host, and notify the BIOS to change the starting medium of the first host from the target USB device to an original starting medium, so as to start the first host in the original starting medium, wherein the original starting medium is the starting medium of the first host before the first host is started into the target USB device.
[0082] It should be noted that the above modules can be implemented by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: all the modules are located in the same processor; or the modules are located in different processors in any combination.
[0083] Embodiments of the present application also provide a computer readable storage medium, which stores a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0084] In an exemplary embodiment, the above computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0085] The embodiment of the present application further provides an electronic device, comprising a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the method embodiments.
[0086] In an example embodiment, the electronic device further comprises a transmission device connected to the processor and an input / output device connected to the processor.
[0087] The embodiment of the present application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps in any of the method embodiments.
[0088] The specific examples in the embodiment can refer to the examples described in the above embodiments and example embodiments, and the embodiment will not be described here again.
[0089] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be realized by general computing devices, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices, and they can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0090] The above is only optional embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. 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, comprising: determining a target device requiring mounting of an embedded multimedia card; in a case that the target device is determined to be a baseboard management controller, mounting the embedded multimedia card on the baseboard management controller; and in a case that the target device is determined to be a first host, mounting the embedded multimedia card on a target connection interface connected to the first host. 2.The method of claim 1, wherein: the mounting of the embedded multimedia card on the baseboard management controller comprises mounting the embedded multimedia card on the baseboard management controller by a selector; and the mounting of 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 by the selector; wherein the selector comprises the baseboard management controller, or the selector comprises a multiplexer 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. 3.The method of claim 2, wherein: in the case of mounting the embedded multimedia card on the baseboard management controller by the selector, the baseboard management controller is configured to perform a server management task on a target server to which the baseboard management controller belongs by a server management software in the embedded multimedia card; and in the case of mounting the embedded multimedia card on the target connection interface connected to the first host by the selector, the embedded multimedia card is configured to serve as a booting medium of the target server. 4.The method of claim 2, wherein: in the case that the selector comprises the multiplexer, the multiplexer is integrated with the embedded multimedia card on a hardware card, the hardware card is provided with the capability of plugging into the baseboard management controller, in a case that the hardware card is plugged into the baseboard management controller, a first port of the multiplexer is connected to the baseboard management controller, a second port of the multiplexer is connected to the target connection interface, and a third port of the multiplexer is connected to the embedded multimedia card; wherein the mounting of the embedded multimedia card on the baseboard management controller by the selector comprises that the selector, under the control of the baseboard management controller, turns on a communication path between the first port and the third port to mount the embedded multimedia card on the baseboard management controller; and the mounting of the embedded multimedia card on the target connection interface connected to the first host by the selector comprises that the selector, under the control of the baseboard management controller, turns on a communication path between the second port and the third port to mount the embedded multimedia card on the target connection interface. 5. The method of claim 2, wherein, in a case that the selector comprises the multiplexer, the multiplexer is integrated on the baseboard management controller, the embedded multimedia card is provided with the capability of plugging with the baseboard management controller, in a case that the embedded multimedia card is plugged on the baseboard management controller, a fourth port of the multiplexer is connected with the target connection interface, and a fifth port of the multiplexer is connected with the embedded multimedia card, wherein, mounting the embedded multimedia card on the baseboard management controller by the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the baseboard management controller and the fifth port, so as to mount the embedded multimedia card on the baseboard management controller; mounting the embedded multimedia card on the target connection interface connected with the first host by the selector comprises: under the control of the baseboard management controller, the selector turns on a communication path between the fourth port and the fifth port, so as to mount the embedded multimedia card on the target connection interface.
6. The method of claim 2, wherein, in a case that the selector comprises the baseboard management controller and the embedded multimedia card is a media card built-in the baseboard management controller, mounting the embedded multimedia card on the target connection interface connected with the first host by 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 recognizable by the first host; mounting the target data on the target connection interface.
7. The method of claim 6, wherein, the converting the system software data to obtain target data recognizable by the first host comprises: initializing the embedded multimedia card device; determining which partition of the embedded multimedia card to read data from; sending a read command to the embedded multimedia card to obtain the system software data of the corresponding partition; and converting the system software data into a format recognizable by the first host to obtain the target data; the mounting the target data on the target connection interface comprises: streaming the target data to the target connection interface.
8. The method of claim 6, wherein, the target connection interface is a connection interface under a hub configured in the baseboard management controller, before mounting the target data on the target connection interface, the method further comprises: determining devices connected with each connection interface under the hub in advance; and determining a first connection interface connected with the first host under the hub as the target connection interface.
9. The method of claim 8, wherein, the method further comprises: determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface. terminating mounting the target data on the first connection interface, and remounting the target data on the second connection interface.
10. The method of claim 9, wherein, determining that the connection interface connected with the first host under the hub is changed from the first connection interface to a second connection interface comprises at least one of: determining that the connection interface connected with the first host under the hub is changed from the first connection interface to the second connection interface based on an internal recorded correspondence relationship, wherein the correspondence relationship is used to record each connection interface under the hub and the device information connected therewith; determining that the connection interface connected with the first host under the hub is changed from the first connection interface to the second connection interface based on a received switching instruction.
11. The method of claim 2, wherein, in a case that the embedded multimedia card is a media card built in the baseboard management controller, the method further comprises at least one of: mounting a target area in which system software data is stored in the embedded multimedia card to a connection interface of a front control panel, so that a second host performs first processing on the system software data when connected to the connection interface of the front control panel; mounting the target area in which the system software data is stored in the embedded multimedia card to a connection interface of a target hardware device, so that the second host performs second processing on the system software data when connected to the connection interface of the target hardware device.
12. The method of claim 11, wherein, when the second host is connected to the connection interface of the front control panel or the connection interface of the target hardware device, the second host is configured to perform system software update, deletion and reading operations on the target area in which the system software data is stored in the embedded multimedia card through the connection interface of the front control panel or the connection interface of the target hardware device.
13. The method of claim 2, wherein, in a case that the embedded multimedia card is a media card built in the baseboard management controller, the method further comprises: receiving first processing information through a communication interface configured on the baseboard management controller, wherein the communication interface comprises at least one of a redfish interface, a representational state transfer (REST) interface, an intelligent platform management interface, and a keyboard controller style interface; processing system software data stored in a target area of the embedded multimedia card according to the first processing information.
14. The method of claim 2, wherein, in a case that the embedded multimedia card is a media card built in the baseboard management controller and the embedded multimedia card has been mounted on the first host, the method further comprises: receiving second processing information through a communication interface configured on the baseboard management controller, and buffering the second processing information in the baseboard management controller, wherein the communication interface comprises at least one of a redfish interface, a REST interface, an intelligent platform management interface, and a keyboard controller style interface; starting the first host into a target connection device mounted on the first host through interaction with a basic input output system in a window period to start system software in the target connection device, wherein data of the system software is stored in a target area of the embedded multimedia card; after the system software is started, interacting with the system software according to preset logic and sending the second processing information cached in the baseboard management controller to the system software to instruct the system software to perform operations indicated by the second processing information.
15. The method of claim 14, wherein the interacting with the system software according to the preset logic comprises: communicating with the system software through a network interface and communicating with the system software through a keyboard control signal, wherein the system software is configured to obtain the second processing information and parse the second processing information.
16. The method of claim 14, wherein the method further comprises: obtaining an execution progress of the system software in performing the operations indicated by the second processing information; in a case where it is determined based on the execution progress that the system software has performed the operations indicated by the second processing information, triggering an operation of restarting the first host and notifying the basic input output system to change a starting medium of the first host from the target connection device to an original starting medium to start the first host in the original starting medium, wherein the original starting medium is a starting medium of the first host before the first host is started into the target connection device.
17. A mounting device of a multimedia card, comprising: a determination module configured to determine a target device that needs to be mounted with an embedded multimedia card; a first mounting module configured to, in a case where it is determined that the target device is a baseboard management controller, mount the embedded multimedia card on the baseboard management controller; a second mounting module configured to, in a case where it is determined that the target device is a first host, mount the embedded multimedia card on a target connection interface connected with the first host.
18. A computer non-volatile readable storage medium, comprising a computer program, wherein the computer program is executed by a processor to implement steps of the method in any one of claims 1 to 16.
19. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement steps of the method in any one of claims 1 to 16.
20. A computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement steps of the method in any one of claims 1 to 16.
Citation Information
Patent Citations
Firmware updating system and method
CN102855146A
Operation system installation method and device, storage medium and program product
CN118034722A
Server quick starting system, method and equipment, medium and program product
CN118567732A
Multimedia card mounting method and device, storage medium and electronic equipment
CN118885222A