Memory sharing application method and device for mainboard system, equipment and medium
By executing memory sharing instructions and file integration in the motherboard system, the problem of low communication efficiency between the motherboard controller and the embedded controller is solved, enabling more efficient data transmission and interface function configuration.
Patent Information
- Application Number
- CN202511442693.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-10
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-10-10
Smart Images

Figure CN120909816A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a memory sharing application method and device for a mainboard system, equipment and medium. BACKGROUND
[0002] A terminal device such as a computer or an all-in-one machine is configured with a mainboard, and a BIOS (Basic Input Output System) component is arranged on the mainboard as a controller. The controller and an EC (Embedded Controller) component arranged on the mainboard can only communicate through a RAM (Random Access Memory) inside the EC component. However, this communication mode has only 256 bytes of shared data (the EC component provides 256 bytes of RAM space that can be read and written by the system), which not only limits the communication data and leads to low communication efficiency, but also makes the communication process cumbersome and the data sharing poor, affecting the application effect of the mainboard interface function. Therefore, the controller of the mainboard and the embedded controller in the prior art method have the problem of low communication efficiency. SUMMARY
[0003] The embodiments of the present application provide a memory sharing application method, device, equipment and medium for a mainboard system, aiming at solving the problem of low communication efficiency of the controller of the mainboard and the embedded controller in the prior art method.
[0004] In a first aspect, the embodiments of the present application provide a memory sharing application method for a mainboard system, wherein the method is applied to a controller arranged on a mainboard, and a memory and an embedded controller in communication connection with the controller are also arranged on the mainboard, and the method comprises the following steps: executing a pre-stored memory sharing instruction to set the memory to a sharing mode; reading a basic file corresponding to the embedded controller in the memory; integrating the basic file and a configuration file of the embedded controller to obtain a corresponding integrated file; sending the integrated file to the embedded controller for flashing; inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address; if the controller detects power-on again, reading an integrated file corresponding to the memory mapping address from the memory and configuring an interface function through the integrated file.
[0005] In a second aspect, the embodiments of the present application further provide a memory sharing application device for a mainboard system, wherein the device is configured in a controller arranged on the mainboard, and the mainboard is further provided with a memory and an embedded controller in communication connection with the controller, and the device is used to execute the memory sharing application method for the mainboard system as described in the first aspect above, and the device comprises: a memory sharing instruction sending unit configured to execute a pre-stored memory sharing instruction to set the memory as a sharing mode; a basic file reading unit configured to read a basic file corresponding to the embedded controller in the memory; a unifying unit configured to unify the basic file and a configuration file of the embedded controller to obtain a corresponding unified file; a sending unit configured to send the unified file to the embedded controller for flashing; a storage unit configured to input the unified file into the memory for storage and obtain a corresponding memory mapping address; an interface function configuration unit configured to read the unified file corresponding to the memory mapping address from the memory and perform interface function configuration through the unified file if the controller detects power-on again.
[0006] In a third aspect, the embodiments of the present application further provide a computer device, wherein the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus; the memory is used to store a computer program; the processor is used to execute the program stored on the memory, and realize the steps of the memory sharing application method for the mainboard system as described in the first aspect above.
[0007] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by the processor to realize the steps of the memory sharing application method for the mainboard system as described in the first aspect above.
[0008] The embodiment of the present application provides a memory sharing application method, device and equipment for a mainboard system and a medium, the method comprises the following steps: sending a memory sharing instruction to set the memory as a sharing mode; reading a basic file corresponding to an embedded controller in the memory and integrating the basic file with a configuration file of the embedded controller to obtain a corresponding integrated file; sending the integrated file to the embedded controller for flashing; inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address; if the controller detects power-on again, reading the integrated file corresponding to the memory mapping address from the memory and configuring an interface function through the integrated file. The above method can share the data information in the memory by setting the data sharing permission, can enrich the operation mode of the transmitted data information, greatly improves the data transmission efficiency, and improves the configuration efficiency and application effect of the mainboard interface function. BRIEF DESCRIPTION OF DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0010] Figure 1 The method flow chart of the memory sharing application method for the mainboard system provided by the embodiment of the present application; Figure 2 The application scene schematic diagram of the memory sharing application method for the mainboard system provided by the embodiment of the present application; Figure 3 The schematic block diagram of the memory sharing application device for the mainboard system provided by the embodiment of the present application; Figure 4 The schematic block diagram of the computer equipment provided by the embodiment of the present application. DETAILED DESCRIPTION
[0011] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0012] It should be understood that when used in the specification and the appended claims, the terms "comprise" and "include" indicate the presence of described features, integers, steps, operations, elements, and / or components, but do not exclude one or more other features, integers, steps, operations, elements, components, and / or sets thereof.
[0013] It should also be understood that the terms used in the specification of the present application are only for the purpose of describing particular embodiments and are not intended to limit the present application. As used in the specification and the appended claims of the present application, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0014] It should be further understood that the term "and / or" used in the specification and the appended claims of the present application means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0015] The embodiments of the present application provide a memory sharing application method for a mainboard system, as shown in the figure, the method is applied to a controller 10 arranged on a mainboard 1, and the mainboard 1 is further provided with a memory 20 and an embedded controller 30 in communication connection with the controller 10. The controller 10 executes a stored software program to realize the above-mentioned memory sharing application method for the mainboard system, wherein the mainboard 1 can be assembled in a terminal device such as a desktop computer, a notebook computer, a tablet computer, an all-in-one machine, etc. The controller 10 can be a BIOS (Basic Input Output System) component, which is independent of a CPU (Central Processing Unit) assembled on the mainboard and realizes control over various interface functions of the mainboard; the memory 20 is a RAM (Random Access Memory) assembled on the mainboard, and the embedded controller 30 is an EC component, which is a 16-bit single-chip microcomputer and is always in a running state regardless of a power-on or power-off state. Figure 2
[0016] As shown in the figure, the method comprises steps S110-S160. Figure 1
[0017] S110, execute a pre-stored memory sharing instruction to set the memory to a sharing mode.
[0018] The controller can first acquire the pre-stored memory sharing instruction for execution, and configure the control information of the memory by executing the memory sharing instruction. The control information of the memory is parameter information for controlling the whole memory, and the control information of the memory includes mode information and permission parameter information corresponding to each component; the permission parameter information of the component includes the specific permission of the component to access the data information in the memory (such as read, modify, write, etc.). The mode information of the component includes the mode option and option parameter of the memory to share data with the component, and the mode information of the component can control the component to access the data information in the memory, the mode option includes hidden or shared, and the option parameter is the specific parameter information selected for a mode option; if the "hidden" in the mode option of the component is selected, the memory is hidden for the component, and the component cannot access the memory and share the use of the memory; if the "shared" in the mode option of the component is selected, the memory is shared for the component, and the component can access the memory and obtain the data information stored in the memory for sharing use.
[0019] Specifically, the controller executes the memory sharing instruction, reads the default parameter value corresponding to the mapping information in the memory sharing instruction according to the mapping information in the memory sharing instruction, and configures the control information of the memory by the default parameter value to set the memory to the shared mode. The "shared" mode option can be added in the control information of the memory and the mode information corresponding to the controller, and the "shared" mode option is modified to be selected, and the permission parameter information corresponding to the controller is modified to read, modify and write, that is, the shared mode of the memory is set for the controller, and a storage area in the memory is allocated to the controller, so that the controller can access the allocated storage area in the memory and obtain the data information stored in the storage area for use; the controller can not only access the data information stored in the storage area, but also modify and write the data information stored in the storage area.
[0020] S120, read the basic file corresponding to the embedded controller in the memory.
[0021] Further read the base file corresponding to the embedded controller in the memory, the base file is also called EC file, the EC file refers to the firmware file of the EC component (EC chip), which contains the program code for controlling the operation of the EC component, which realizes various functions of the EC component, such as power management, keyboard input processing, fan speed control, etc. The EC file is the core of the EC component to realize its specific functions, which determines which tasks the EC component can perform and how to interact with other hardware components; the EC file needs to ensure the integrity and correctness of the code to ensure that the EC component can run stably and reliably; the EC file has different versions, and different versions may contain fixes for specific problems, performance optimization or new functions.
[0022] In specific embodiments, step S120 includes the sub-step of: sending a memory information sharing instruction to the embedded controller to control the embedded controller to perform memory sharing setting; reading the corresponding base file from the memory according to the base address of the embedded controller.
[0023] The memory information sharing instruction can be sent to the embedded controller to control the embedded controller to perform memory sharing setting, that is, the embedded controller can share the memory and share the base address stored in the memory after completing the setting according to the memory information sharing instruction. After performing the memory sharing setting, a storage area in the memory is allocated to the embedded controller, so that the embedded controller can access the allocated storage area in the memory and obtain the data information stored in the storage area for use; at the same time, other components (such as controllers) can obtain the base address shared by the embedded controller in the memory.
[0024] After completing the memory sharing setting, the controller can obtain the base address of the embedded controller and read the base file corresponding to the storage location of the base address from the memory based on the base address.
[0025] S130, integrate the base file with the configuration file of the embedded controller to obtain a corresponding integrated file.
[0026] After the basic file is acquired, the basic file is integrated with a configuration file of the embedded controller, the configuration file being a configuration file of the EC component (hereinafter referred to as an EC configuration file). The EC configuration file is a file used for configuring working parameters and options of the EC component. It contains some top-level configuration parameters, which determine the working mode and characteristics of the EC component in different scenarios on the basis of the EC file. The EC configuration file allows a user to customize the configuration of the functions and parameters of the EC component according to the specific motherboard design and requirements; for example, the threshold of fan speed, the parameters of battery charging, and the like can be set through the configuration file. In a popular way, the EC file is used to set various functions of the EC component, and the EC configuration file is used to select the functions set in the EC file and configure parameters of the selected functions. The specific configuration information involved in the configuration text for performing the corresponding function configuration is shown in Table 1: Table 1 SMBIOS, which is System Management BIOS, is a standard for passing management information through system firmware, created by DMTF (Distributed Management Task Force). LED is an LED lamp on the motherboard used for displaying the working state of the motherboard and / or hard disk. PCIE is a high-speed serial computer expansion bus standard applied to the motherboard, which is Peripheral Component Interconnect Express. USB (Universal Serial Bus) is a standard interface technology used for transmitting data and providing power between a computer and external devices.
[0027] The user can configure the configuration file according to the use requirements of the user. The configuration file generated based on the settings of the user is stored in the memory area corresponding to the controller. The controller integrates the basic file read by the controller with the configuration file of the embedded controller in the memory, thereby obtaining the corresponding integrated file.
[0028] In specific embodiments, step S130 includes a sub-step of: splicing and combining the basic file and the configuration file to obtain corresponding combination information; and performing format adjustment on the combination information according to a preset file format, so as to obtain the integrated file.
[0029] Specifically, the base file and the configuration file are spliced and combined to obtain corresponding combined information. For example, the size of the base file is 96 KB, the size of the configuration file is 31 KB, and the combined information obtained by combination is 127 KB; or the size of the base file is 96 KB, the size of the configuration file is 3 KB, and the combined information obtained by combination is 99 KB. The size of the configuration file can be adjusted as needed.
[0030] The combined information is format-adjusted according to a file format preset in the controller, and an integrated file corresponding to the combined information needs to be generated in the format-adjusting process. For example, a check code corresponding to the combined information can be generated according to a check code generation rule in the file format, the check code is combined with the combined information as the last information to obtain 128 KB of file information. The file information is saved as a corresponding integrated file according to a format symbol set in the file format; for example, if the format symbol is “BIN”, the file information can be saved as a BIN file as the corresponding integrated file.
[0031] The generated check code can be used to check the integrity of the integrated file to prevent the information in the integrated file from being tampered with. Further, the check code generation rule can be set as a remainder calculation function, the 127 KB of combined information is converted into a 16-bit string, and a remainder calculation is performed according to the remainder calculation function, and the obtained remainder can be used as a 1 KB length check code (zero padding is performed for insufficient bits to reach 1 KB length). Alternatively, the check code generation rule can also be set as a Hash function, and a Hash operation is performed on the 16-bit string according to the Hash function to obtain corresponding digest information; after the Hash operation is performed on the 16-bit string, a digest information is obtained, and the obtained digest information is used as a 1 KB length check code (zero padding is performed for insufficient bits to reach 1 KB length). The Hash function can be a function constructed based on SHA256, and for any length (calculated in bits) information, SHA256 (Secure Hash Algorithm 256) will generate a 32-byte length data, that is, digest information.
[0032] In specific embodiments, before the base file and the configuration file are spliced and combined to obtain corresponding combined information, the method further comprises: performing configuration parameter verification on the configuration file according to the base file to obtain a verification result of whether to pass; if the verification result is pass, performing the step of splicing and combining the base file and the configuration file.
[0033] Specifically, before splicing and combining the basic file and the configuration file, the configuration parameter verification can also be performed on the configuration file according to the basic file. The optional items of each function and the parameter range of each function are set in the basic file, and then the parameter information configured in the configuration file can be obtained, and it is judged whether the parameter information is matched with the optional items of the corresponding function and whether the parameter information is located in the parameter range of the corresponding function, so as to realize the configuration parameter verification. If the parameter information in the configuration file is matched with the optional items of the corresponding function and the parameter information is also located in the parameter range of the corresponding function, the verification result is passed; if any parameter information is not matched with the optional items of the corresponding function or any parameter information is not located in the parameter range of the corresponding function, the verification result is failed.
[0034] If the verification result is passed, the subsequent step can be continued, that is, the step of splicing and combining the basic file and the configuration file is performed; if the verification result is failed, a prompt information can be generated to remind the user.
[0035] S140, the integrated file is sent to the embedded controller for flashing.
[0036] The obtained integrated file is sent to the embedded controller, so as to flash the integrated file into the embedded controller. This process is to make the embedded controller obtain the latest version of the integrated file, so as to facilitate the subsequent implementation of the interface function configuration.
[0037] S150, the integrated file is input into the memory for storage and the corresponding memory mapping address is obtained.
[0038] Further, the integrated file is input into the storage area corresponding to the controller in the memory for storage. After the integrated file is stored, the address corresponding to the storage position of the integrated file can be obtained from the memory, which is the memory mapping address corresponding to the integrated file.
[0039] S160, if the controller detects the power-on again, the integrated file corresponding to the memory mapping address is read from the memory, and the interface function configuration is performed through the integrated file.
[0040] The controller can detect the power-on of the mainboard. If the controller detects that the mainboard is powered on again, it indicates that the mainboard has been restarted and the BIOS system is started. The controller reads the integrated file corresponding to the memory mapping address from the memory, and completes the corresponding interface function configuration through the integrated file, so as to realize the application of the interface function configuration of the mainboard based on the memory sharing.
[0041] In specific embodiments, step S160 comprises sub-steps of: performing location mapping on the memory according to the memory mapping address to obtain an integrated file corresponding to the memory mapping address; parsing the integrated file to obtain corresponding configuration parameter information; and sending a corresponding configuration instruction according to a configuration item in the configuration parameter information to perform interface function configuration through the configuration instruction.
[0042] Specifically, the memory can be location mapped according to the memory mapping address to determine a storage location in the memory corresponding to the memory mapping address, and the data information stored in the storage location can be obtained to obtain the integrated file. The integrated file is parsed to obtain configuration parameter information in the integrated file, and a corresponding configuration instruction is sent based on a configuration item in the configuration parameter information. The configuration instructions of different configuration items can be sent to specific components by different communication channels. Then, the components receive the configuration instructions and perform configuration based on parameter values in the configuration instructions to complete interface function configuration, which involves configuration of specific parameters such as data transmission and interface function implementation.
[0043] In the process of parsing the integrated file, the last 1KB of data in the integrated file can also be obtained as a check code, and the check code generation rule can be used to generate to-be-verified information corresponding to the first 127KB of data in the integrated file. It is further verified whether the check code in the integrated file is consistent with the to-be-verified information. If they are consistent, it indicates that the data information in the integrated file is complete and has not been tampered with, and subsequent processing can be performed. If they are not consistent, it indicates that the data information in the integrated file is incomplete or the integrated file has been tampered with. At this time, a prompt information that interface function configuration cannot be performed can be sent to remind the user.
[0044] The memory sharing application method for the motherboard system disclosed in the above embodiments comprises: sending a memory sharing instruction to set the memory to a shared mode; reading a basic file corresponding to the embedded controller in the memory and integrating the basic file with a configuration file of the embedded controller to obtain a corresponding integrated file; sending the integrated file to the embedded controller for flashing; inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address; and if the controller detects power-on again, reading the integrated file corresponding to the memory mapping address from the memory and performing interface function configuration through the integrated file. The above method sets data sharing permissions to share data information in the memory, which not only enriches the way of operating transmitted data information, but also greatly improves the data transmission efficiency, the configuration efficiency of the motherboard interface function, and the application effect.
[0045] The embodiment of the present application also provides a memory sharing application device for a mainboard system, which can be configured in a controller of the mainboard, and is used for executing any of the aforementioned embodiments of the memory sharing application method for the mainboard system. Specifically, refer to Figure 3 , Figure 3 The embodiment of the present application provides a schematic block diagram of the memory sharing application device for the mainboard system.
[0046] As shown in Figure 3 , the memory sharing application device 100 for the mainboard system comprises a memory sharing instruction sending unit 110, a basic file reading unit 120, an integration unit 130, a sending unit 140, a storage unit 150 and an interface function configuration unit 160.
[0047] The memory sharing instruction sending unit 110 is used for executing a pre-stored memory sharing instruction to set the memory to a sharing mode.
[0048] The basic file reading unit 120 is used for reading a basic file corresponding to the embedded controller in the memory.
[0049] In a specific embodiment, the basic file reading unit 120 comprises an instruction sending unit, which is used for sending a memory information sharing instruction to the embedded controller to control the embedded controller to perform a memory sharing setting; and a reading unit, which is used for reading a corresponding basic file from the memory according to a base address of the embedded controller.
[0050] The integration unit 130 is used for integrating the basic file and a configuration file of the embedded controller to obtain a corresponding integrated file.
[0051] In a specific embodiment, the integration unit 130 comprises a splicing combination unit, which is used for splicing and combining the basic file and the configuration file to obtain corresponding combination information; and a format adjustment unit, which is used for performing format adjustment on the combination information according to a pre-set file format to integrate the integrated file.
[0052] The sending unit 140 is used for sending the integrated file to the embedded controller for flashing.
[0053] The storage unit 150 is used for inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address.
[0054] The interface function configuration unit 160 is used for reading an integrated file corresponding to the memory mapping address from the memory and performing interface function configuration through the integrated file if the controller detects power-on again.
[0055] In the memory sharing application device for the mainboard system provided by the embodiment of the present application, the above-mentioned memory sharing application method for the mainboard system is applied, a memory sharing instruction is sent to set the memory to a sharing mode; a basic file corresponding to the embedded controller in the memory is read and integrated with the configuration file of the embedded controller to obtain a corresponding integrated file; the integrated file is sent to the embedded controller for flashing; the integrated file is input into the memory for storage and a corresponding memory mapping address is obtained; if the controller detects power-on again, the integrated file corresponding to the memory mapping address is read from the memory and interface function configuration is performed through the integrated file. The above-mentioned method can share the data information in the memory by setting the data sharing permission, which can not only enrich the operation mode of the transmitted data information, but also greatly improve the data transmission efficiency, and improve the configuration efficiency and application effect of the mainboard interface function.
[0056] The above-mentioned memory sharing application device for the mainboard system can be realized in the form of a computer program, which can run on the computer device as shown in Figure 4 .
[0057] Please refer to Figure 4 , Figure 4 is a schematic block diagram of the computer device provided by the embodiment of the present application. The computer device can be a controller for executing the memory sharing application method for the mainboard system to realize communication with the embedded controller based on memory sharing and interface function configuration.
[0058] Please refer to Figure 4 , the computer device 500 includes a processor 502, a memory and a communication interface 505 connected through a communication bus 501, wherein the memory can include a storage medium 503 and an internal memory 504.
[0059] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the memory sharing application method for the mainboard system, wherein the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.
[0060] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0061] The internal memory 504 provides an environment for the running of the computer program 5032 in the storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can execute the memory sharing application method for the mainboard system.
[0062] The communication interface 505 is configured to perform network communication, such as providing transmission of data information, etc. Figure 4 The structure shown in FIG. 5 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. Specifically, the computer device 500 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0063] The processor 502 is configured to run the computer program 5032 stored in the memory, so as to implement the corresponding functions in the above-described memory sharing application method for a motherboard system.
[0064] Those skilled in the art can understand that the computer device shown in FIG. 5 is only one of the embodiments of the computer device, and does not constitute a limitation on the specific structure of the computer device. In other embodiments, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. Figure 4 The embodiments of the computer device shown in FIG. 5 do not constitute a limitation on the specific structure of the computer device. In other embodiments, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. For example, in some embodiments, the computer device can only include the memory and the processor. In such embodiments, the structure and functions of the memory and the processor are consistent with those of the memory 501 and the processor 502 shown in the embodiments, and will not be described here. Figure 4 The embodiments of the computer device shown in FIG. 5 do not constitute a limitation on the specific structure of the computer device. In other embodiments, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. For example, in some embodiments, the computer device can only include the memory and the processor. In such embodiments, the structure and functions of the memory and the processor are consistent with those of the memory 501 and the processor 502 shown in the embodiments, and will not be described here.
[0065] It should be understood that, in the embodiments of the present application, the processor 502 can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0066] In another embodiment of the present application, a computer readable storage medium is provided. The computer readable storage medium can be a volatile or non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the steps included in the above-described memory sharing application method for a motherboard system.
[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices, apparatuses and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here. Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, each example has been described in the foregoing description in terms of its general functionality, without regard to its specific combination of hardware and software. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0068] In several embodiments provided by the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely schematic, for example, the division of the units is merely logical functional division, and actual implementation can have another division, or units with the same function can be combined into one unit, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other form of connection.
[0069] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0070] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or software functional unit.
[0071] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art that contributes, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a computer readable storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in various embodiments of the present application. And the aforementioned computer readable storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0072] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements shall be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A memory sharing application method for a mainboard system, characterized in that, The method is applied to a controller arranged on a mainboard, and a memory and an embedded controller in communication connection with the controller are further arranged on the mainboard, and the method comprises: executing a pre-stored memory sharing instruction to set the memory to a sharing mode; reading a basic file corresponding to the embedded controller from the memory; integrating the basic file and a configuration file of the embedded controller to obtain a corresponding integrated file; sending the integrated file to the embedded controller for flashing; inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address; if the controller detects power-on again, reading the integrated file corresponding to the memory mapping address from the memory and performing interface function configuration through the integrated file.
2. The memory sharing application method for a mainboard system according to claim 1, wherein, The reading of the basic file corresponding to the embedded controller from the memory comprises: sending a memory information sharing instruction to the embedded controller to control the embedded controller to perform memory sharing setting; reading the corresponding basic file from the memory according to a base address of the embedded controller.
3. The memory sharing application method for a mainboard system according to claim 1, wherein, The integration of the basic file and the configuration file of the embedded controller to obtain the corresponding integrated file comprises: splicing and combining the basic file and the configuration file to obtain corresponding combination information; performing format adjustment on the combination information according to a pre-set file format to obtain the integrated file.
4. The memory sharing application method for a mainboard system according to claim 3, wherein, Before the splicing and combining of the basic file and the configuration file to obtain the corresponding combination information, the method further comprises: performing configuration parameter verification on the configuration file according to the basic file to obtain a verification result; if the verification result is passed, performing the splicing and combining of the basic file and the configuration file.
5. The memory sharing application method for a mainboard system according to any one of claims 1-4, wherein, The reading of the integrated file corresponding to the memory mapping address from the memory and the interface function configuration through the integrated file comprise: performing position mapping on the memory according to the memory mapping address to obtain the integrated file corresponding to the memory mapping address; performing analysis on the integrated file to obtain corresponding configuration parameter information; sending a corresponding configuration instruction according to a configuration item in the configuration parameter information to perform interface function configuration through the configuration instruction.
6. A memory sharing application apparatus for a mainboard system, characterized by, The device is arranged in a controller arranged on a mainboard, and a memory and an embedded controller in communication connection with the controller are further arranged on the mainboard, and the device is used for executing the memory sharing application method for a mainboard system according to any one of claims 1-5, and the device comprises: a memory sharing instruction sending unit for executing a pre-stored memory sharing instruction to set the memory to a sharing mode; a basic file reading unit for reading a basic file corresponding to the embedded controller from the memory; an integrating unit for integrating the basic file and a configuration file of the embedded controller to obtain a corresponding integrated file; a sending unit for sending the integrated file to the embedded controller for flashing; a storage unit for inputting the integrated file into the memory for storage and obtaining a corresponding memory mapping address; The interface function configuration unit is configured to read the integrated file corresponding to the memory mapping address from the memory and perform interface function configuration through the integrated file if the controller detects re-powering.
7. The memory sharing application apparatus for a mainboard system according to claim 6, wherein, The base file reading unit comprises: The instruction sending unit is configured to send a memory information sharing instruction to the embedded controller to control the embedded controller to perform memory sharing setting. The reading unit is configured to read the corresponding base file from the memory according to the base address of the embedded controller.
8. The memory sharing application apparatus for a mainboard system according to claim 6, wherein, The integration unit comprises: The splicing combination unit is configured to splice and combine the base file and the configuration file to obtain corresponding combined information. The format adjustment unit is configured to perform format adjustment on the combined information according to a preset file format to obtain the integrated file.
9. A computer device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus; The memory is configured to store a computer program; The processor is configured to execute the program stored on the memory to implement the steps of the memory sharing application method for the mainboard system according to any one of claims 1-5.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the memory sharing application method for the mainboard system according to any one of claims 1-5.
Citation Information
Patent Citations
System and method for realizing interface by using memory window
CN102375787A
Firmware upgrading method and device, equipment and storage medium
CN116009918A
Data recording method and device, electronic equipment and medium
CN117873853A
Upgrading method and device of substrate management controller, storage medium and electronic equipment
CN117891485A
Interaction method and device for memory sharing between BIOS and BMC
CN119166391A