CN117369903A - Configuration processing method, device, equipment and storage medium of target equipment - Google Patents

Configuration processing method, device, equipment and storage medium of target equipment Download PDF

Info

Publication number
CN117369903A
CN117369903A CN202311396420.1A CN202311396420A CN117369903A CN 117369903 A CN117369903 A CN 117369903A CN 202311396420 A CN202311396420 A CN 202311396420A CN 117369903 A CN117369903 A CN 117369903A
Authority
CN
China
Prior art keywords
configuration
configuration information
information
expansion card
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311396420.1A
Other languages
Chinese (zh)
Inventor
袁迎春
向国源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN202311396420.1A priority Critical patent/CN117369903A/en
Publication of CN117369903A publication Critical patent/CN117369903A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

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

Abstract

The application provides a configuration processing method, device and equipment of target equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card; storing the configuration information in the nonvolatile region; starting target equipment, and reading configuration information on a nonvolatile area through a Basic Input Output System (BIOS) in the starting process of the target equipment; and according to the read configuration information, performing system resource allocation. The configuration and the firmware configuration identification are decoupled, the expandability of the firmware is improved, the difficulty of updating the configuration is reduced, the visual configuration or the modification of the equipment configuration can be visually and conveniently carried out through the visual configuration tool, and the configuration processing efficiency is improved.

Description

Configuration processing method, device, equipment and storage medium of target equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing configuration of a target device.
Background
With the development of computer technology, in order to be compatible with and adapt to different business scene demands of different clients, the configuration of each device is also becoming more and more abundant.
In the prior art, the implementation of the configuration extension function of a server, a switch, etc. may be implemented in various ways, for example, depending on the package number content in a field replaceable unit (Field Replace Unit, abbreviated as FRU) of a motherboard, by setting a fixed configuration by a given frud, so as to meet the user configuration requirement. However, this approach is too dependent on the FRU, which needs to be refreshed if a reconfiguration is involved, while on-board devices must be guaranteed to match the configuration. That is, the processing mode has low multiplexing rate of software and hardware, long product delivery period and low efficiency of configuration processing, and can not meet the requirement that the same customer and the same mainboard have a plurality of configurations.
For this reason, a new configuration processing method is needed to improve the configuration processing efficiency.
Disclosure of Invention
The application provides a configuration processing method, device, equipment and storage medium of target equipment, which are used for solving the problem of how to improve the configuration processing efficiency.
In a first aspect, the present application provides a method for processing configuration of a target device, where the method includes:
acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card;
storing the configuration information in a nonvolatile area;
starting target equipment, wherein in the starting process of the target equipment, configuration information on the nonvolatile area is read through a Basic Input Output System (BIOS);
and according to the read configuration information, performing system resource allocation.
Optionally, the determining the configuration information includes:
inquiring a preset configuration table based on the expansion card in the configuration requirement, and determining the configuration corresponding to the expansion card in the preset configuration table as the configuration information; the preset configuration table comprises a mapping relation between the expansion card and the configuration information.
Optionally, the method further comprises:
if the configuration corresponding to the expansion card in the preset configuration table is determined not to meet the configuration requirement when the preset configuration table is queried, a new configuration table is generated according to the configuration requirement.
Optionally, the storing the configuration information in the nonvolatile area includes:
sequentially calling preset interfaces of a visual configuration tool according to a preset arrangement sequence, and filling the configuration information through the preset interfaces;
performing format conversion on the filled configuration information to obtain new configuration information; wherein the data format of the new configuration information is the same as the data format of the configuration information stored in the nonvolatile area;
storing the new configuration information in the nonvolatile region.
Optionally, before performing format conversion on the filled configuration information to obtain new configuration information, the method further includes:
and analyzing the stored configuration information in the nonvolatile area, and determining the data format of the stored configuration information.
Optionally, the allocating system resources according to the read configuration information includes:
identifying and analyzing the read configuration information to obtain analyzed configuration information;
and distributing system resources according to the analyzed configuration information.
Optionally, the configuration information includes one or more of: CPU subscript, PE subscript, bifurcation information, device silk screen, integrated circuit bus I2C information, virtual port pin VPP information.
In a second aspect, the present application provides a configuration processing apparatus of a target device, where the apparatus includes:
the acquisition unit is used for acquiring the configuration requirement of the user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card;
a processing unit for storing the configuration information in a nonvolatile area;
the reading unit is used for starting the target equipment, and in the starting process of the target equipment, the configuration information on the nonvolatile area is read through a Basic Input Output System (BIOS);
and the allocation unit is used for allocating system resources according to the read configuration information.
In a third aspect, the present application provides a computer device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method as described above.
In a fourth aspect, the present application provides a computer readable and writable storage medium having stored therein computer executable instructions that when executed by a processor are adapted to carry out the method as described above.
In a fifth aspect, the present application provides a computer program product comprising a computer program for implementing the method as described above when being executed by a processor.
The configuration processing method, device, equipment and storage medium of the target equipment provided by the application comprise the following steps: acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card; storing the configuration information in a nonvolatile area; starting target equipment, wherein in the starting process of the target equipment, configuration information on the nonvolatile area is read through a Basic Input Output System (BIOS); and according to the read configuration information, performing system resource allocation. The configuration and the firmware configuration identification are decoupled, the expandability of the firmware is improved, the difficulty of updating the configuration is reduced, and the efficiency of configuration processing is also improved, so that the research and development cost investment is reduced, the product development period is shortened, the applicable scene of the product is expanded, and the product competitiveness and the customer satisfaction are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flow chart of a configuration processing method of a target device according to an embodiment of the present application;
fig. 2 is a schematic configuration diagram of configuration information provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface of a visual configuration tool according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a configuration processing device of a target device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a configuration processing device of another target device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to be compatible with and adapt to different business scene requirements of different clients, various configurations of devices are required to meet user requirements, and for this purpose, research and development personnel also develop various configuration identification technologies to realize configuration expansion functions of devices such as servers, switches and the like. For example, the configuration processing of the server, switch, etc. may be implemented by a package number content in the motherboard FRU, or by a dial switch on the motherboard, or by a hardware general purpose input/output (General Purpose Input Output, GPIO) combination to determine the bandwidth allocation, or by reading complex programmable logic device (Complex Programmable Logic Device, CPLD) registers to obtain an automatic bandwidth identification result, or by a Board ID combination identification, or by a configuration identification technique such as backplane or Riser card FRU content identification, etc.
However, these approaches have their own drawbacks. By way of package number content in the motherboard FRU, the device is too dependent on the FRU, and if a reconfiguration is involved, the FRU needs to be refreshed again, while on-board devices must be guaranteed to match the configuration. The device depends on the dial switch in the way of the dial switch on the main board, if the dial switch is required to be manually adjusted, meanwhile, the matching of devices on the board and the configuration must be ensured, the cost is high, the operation is inconvenient, and the convenience is not high. In addition, the bandwidth allocation condition is judged by the hardware GPIO combination, the SKUID can be changed only by a resistor mode at the hardware level, and the same mainboard cannot be compatible with a plurality of SKUs. The CPLD register is read to obtain the automatic bandwidth identification result, the PIN of the bandwidth is identified on the backboard, if the hardware design is absent, the configuration expansion function cannot be completed, and the practicability is low. In the manner of identifying by the Board ID combination, the Board ID of a part of the backboard cannot be read before the Operating System (OS) is started, which causes erroneous judgment, but the Board ID of a part of the backboard cannot be obtained, the backboard combination has no monopolization, and a plurality of configurations correspond to one backboard combination, so that the user configuration requirement cannot be met. In the manner of identifying FRU content through a backboard or a Riser card, FRU cannot be changed at will, otherwise misjudgment is caused.
In summary, the above processing method has low multiplexing rate of software and hardware, so that the product lead time is long, the efficiency of configuration processing is too low, and the requirement of the same customer and the same motherboard for multiple configurations cannot be met. In particular, in a scenario where the configuration of the project is few in the early stage and the configuration of the newly added node is very many in the later stage and the newly added configuration cannot be predicted, the configuration update processing flow is complex, and the configuration requirement of the client cannot be rapidly and conveniently processed.
In order to solve the above problems, the present application provides a configuration processing method, after determining a configuration requirement of a user, the present application determines configuration information according to the configuration requirement of the user, writes the configuration information into a nonvolatile area through a visual configuration tool, and after starting up a device, reads the configuration information in the nonvolatile area through a basic input output system (Basic Input Output System, BIOS), so as to allocate system resources according to the read configuration information. The visual configuration tool is convenient for a user to intuitively modify the configuration; in addition, the configuration and the firmware configuration identification are decoupled, so that the difficulty of updating the configuration is reduced, the configuration requirement can be rapidly and conveniently processed, and the configuration processing efficiency is improved.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a configuration processing method of a target device according to an embodiment of the present application. The execution body of the embodiment of the application may be a configuration processing device of a target device, where the configuration processing device of the target device may be located on an electronic device, and the electronic device may be a mobile terminal, such as a mobile phone, a tablet, a computer, etc., which is not limited in this application. The embodiment of the present application will be described in detail with reference to a configuration processing apparatus in which an execution subject is a target device as an example.
As shown in fig. 1, the configuration processing method of the target device provided in this embodiment includes:
s101, acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card.
The target device may be a server, a switch, or the like, for example. When the configuration processing device of the target equipment performs configuration processing on the target equipment, the configuration processing device of the target equipment needs to acquire the configuration requirement of a user on the target equipment. The configuration requirement includes an expansion card which is desired to be configured on the target device by the user, and the expansion card can be a network card, a display card, etc., which is not limited in this application. Then, based on the configuration requirement of the user, configuration information for indicating the configuration of the expansion card is determined. When the configuration requirements are different, the corresponding configuration information is naturally different.
In one example, determining configuration information may include:
inquiring a preset configuration table based on the expansion card in the configuration requirement, and determining configuration information corresponding to the expansion card in the preset configuration table; the preset configuration table comprises a mapping relation between the expansion card and the configuration information.
The configuration processing device of the target device of the present application may query the preset configuration table in a traversal manner based on the expansion card in the configuration requirement of the user, and determine the configuration corresponding to the expansion card in the configuration requirement in the found preset configuration table as the configuration information when determining the configuration information.
The configuration information in the preset configuration table may be linearly arranged according to IIO (Integrated Input Output) PCIE PORT bifurcation minimum unit X4, and resources of one processing unit (processing element, PE) are described by four consecutive tables. In one example, the configuration information includes one or more of the following: the cpu CPU (Central Processing Unit) index, the processing element PE (processing element) index, the bifurcation information (IIO PCIE Port bifurcation), the device screen, the integrated circuit bus I2C information, and the virtual port pin VPP (Virtual Pod PIN) information.
Fig. 2 is an exemplary configuration diagram of configuration information according to an embodiment of the present application. As shown in fig. 2, the configuration information stored in the configuration space may include CPU index (CPU index), PE index (PE index), bifurcation info (Bifurcation information), device silkscreen (device screen printing), I2C info, VPP info, and the like. The baseboard management controller (Baseboard management controller, BMC) can determine the position information and the bandwidth of the device (namely the expansion card) according to the CPU subscript, the PE subscript, the bifurcation information and the device silk screen; the device temperature can be directly read according to the I2C bus information, and the device temperature is not required to be read in a mode of maximum collection; the NVME disk hot plug and lighting control can be performed according to the PE subscript and the VPP information; if the device silk screen is bound with the SEL sensor, when the device error reporting is monitored, the BMC can also receive error reporting information.
In some possible examples, the configuration corresponding to the expansion card in the preset configuration table does not meet the configuration requirement, and in order to enable the subsequent configuration processing to be continued, the configuration information is accurately stored in the nonvolatile area, and a new configuration table needs to be generated first. Thus, in one example, the method of the present application may further comprise:
if the configuration corresponding to the expansion card in the preset configuration table is determined to not meet the configuration requirement when the preset configuration table is queried, a new configuration table is generated according to the configuration requirement.
If, for example, when the preset configuration table is queried, it is determined that the configuration corresponding to the expansion card in the preset configuration table does not meet the configuration requirement, it indicates that the user introduces a new configuration, and at this time, the configuration table may be updated according to the configuration requirement of the user, and the new configuration information meeting the configuration requirement may be updated to the configuration table, so as to obtain a new configuration table for subsequent call.
According to the method and the device, the mapping relation between the expansion card and the configuration information is stored through the preset configuration table, the configuration table is decoupled from the subsequent firmware configuration identification, when the newly increased configuration requirement exists or the configuration needs to be modified, the software does not need to be modified and the new version of the software needs to be released, only the preset configuration table needs to be updated, the expandability of the firmware is improved, the user can operate the configuration conveniently, and the configuration processing efficiency is improved.
S102, storing the configuration information into a nonvolatile area.
For example, after the configuration processing device of the target device of the present application determines the configuration information, the configuration information may be stored in the nonvolatile area through a visual configuration tool.
In one example, storing configuration information in a nonvolatile region may include:
s1, sequentially calling preset interfaces of the visual configuration tool according to a preset arrangement sequence, and filling configuration information through the preset interfaces.
S2, performing format conversion on the filled configuration information to obtain new configuration information; wherein the data format of the new configuration information is the same as the data format of the configuration information stored in the nonvolatile area.
S3, storing the new configuration information into the nonvolatile area.
When the configuration information is stored in the nonvolatile area, the preset interfaces of the visual configuration tool are sequentially called according to a preset arrangement sequence, corresponding configuration information can be filled in through the preset interfaces, the data format of the filled configuration information is converted into the same data format as the data format of the stored configuration information in the nonvolatile area, and the configuration information is stored in the nonvolatile area.
In some examples, the data format of the configuration information stored in the nonvolatile region is not known, and therefore, before converting the format of the filled configuration information to obtain new configuration information, it is also necessary to: and analyzing the stored configuration information in the nonvolatile area, and determining the data format of the stored configuration information. Then, the data format of the filled configuration information can be converted into the data format of the stored configuration information obtained by analysis, so that the configuration information can be correctly stored in the nonvolatile area, and the correct and effective configuration information in the nonvolatile area can be ensured.
Fig. 3 is an interface schematic diagram of a visual configuration tool according to an embodiment of the present application. As shown in fig. 3, the visual configuration tool may provide preset interfaces for filling MCIO information, IIO Port topology location, board card type, board card bandwidth information, slot location for board card access, I2C information, VPP information, and the like, through which corresponding configuration information may be filled.
The visual configuration tool provided by the application can visually configure or change the equipment configuration by a visual configuration tool user, so that configuration requirements can be processed more conveniently.
S103, starting the target equipment, and reading configuration information on the nonvolatile area through a basic input output system BIOS in the starting process of the target equipment.
The BIOS is a set of programs that are solidified on a Read-Only Memory (ROM) chip of a motherboard in a computer, and stores the most important BIOS programs, system configuration information, a power-on self-test program, and a system-on self-test program of the computer. After the configuration information is stored in the nonvolatile area in the steps, the target device is controlled to start, and in the starting process of the target device, the configuration information on the nonvolatile area can be read through the BIOS (basic input output system) so as to enable the configuration information to be effective.
S104, distributing system resources according to the read configuration information.
For example, after the configuration information stored in the nonvolatile area is read, the configuration processing device of the target device of the present application may perform system resource allocation according to the read configuration information. The system resources mainly refer to resources such as PCIE, and the application is not limited.
In one example, performing system resource allocation according to the read configuration information may include:
s10, identifying and analyzing the read configuration information to obtain the analyzed configuration information.
S20, distributing system resources according to the analyzed configuration information.
For example, the configuration information determined according to the configuration requirement of the user, the configuration information stored in the nonvolatile area, and the configuration information that can be directly used for allocating system resources may have different data formats, so that in order to correctly allocate system resources, the read configuration information needs to be analyzed, and then the system resources are allocated according to the analyzed configuration information, so that the accuracy of resource allocation is improved.
The configuration processing method of the target equipment provided by the embodiment of the application comprises the following steps: acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and configuration information is used for indicating the configuration of the expansion card; storing the configuration information in the nonvolatile region; starting target equipment, and reading configuration information on a nonvolatile area through a Basic Input Output System (BIOS) in the starting process of the target equipment; and according to the read configuration information, performing system resource allocation. The configuration and the firmware configuration identification are decoupled, the expandability of the firmware is improved, the difficulty of updating the configuration is reduced, and the efficiency of configuration processing is also improved, so that the research and development cost investment is reduced, the product development period is shortened, the applicable scene of the product is expanded, and the product competitiveness and the customer satisfaction are improved.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 4 is a schematic structural diagram of a configuration processing device of a target device according to an embodiment of the present application. As shown in fig. 4, the configuration processing apparatus 40 of the target device provided in the present embodiment includes an acquisition unit 401, a processing unit 402, a reading unit 403, and an allocation unit 404.
The acquiring unit 401 is configured to acquire a configuration requirement of a user, and determine configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card.
The processing unit 402 is configured to store the configuration information in the nonvolatile area.
The reading unit 403 is configured to start the target device, and during the start-up process of the target device, read the configuration information on the nonvolatile area through the BIOS.
And the allocation unit 404 is configured to allocate system resources according to the read configuration information.
The device provided in this embodiment may be used to perform the method of the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
Fig. 5 is a schematic structural diagram of a configuration processing apparatus of another target device according to an embodiment of the present application. As shown in fig. 5, the configuration processing apparatus 50 of the target device provided in the present embodiment includes an acquisition unit 501, a processing unit 502, a reading unit 503, and an allocation unit 504.
The acquiring unit 501 is configured to acquire a configuration requirement of a user and determine configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card.
The processing unit 502 is configured to store the configuration information in the nonvolatile area.
The reading unit 503 is configured to start the target device, and during the start-up process of the target device, read the configuration information on the nonvolatile area through the BIOS.
And the allocation unit 504 is configured to allocate system resources according to the read configuration information.
In one example, the acquisition unit 501 includes a determination module 5011.
The determining module 5011 is configured to query a preset configuration table based on the expansion card in the configuration requirement, and determine configuration information corresponding to the expansion card in the preset configuration table; the preset configuration table comprises a mapping relation between the expansion card and the configuration information.
In one example, the determining module 5011 is further configured to, if it is determined that the configuration corresponding to the expansion card in the preset configuration table does not meet the configuration requirement when the preset configuration table is queried, generate a new configuration table according to the configuration requirement.
In one example, the processing unit 502 includes a filling module 5021, a conversion module 5022, and a storage module 5023.
The filling module 5021 is used for sequentially calling preset interfaces of the visual configuration tool according to a preset arrangement sequence and filling configuration information through the preset interfaces.
The conversion module 5022 is used for performing format conversion on the filled configuration information to obtain new configuration information; wherein the data format of the new configuration information is the same as the data format of the configuration information stored in the nonvolatile area.
A storage module 5023, configured to store new configuration information in the nonvolatile area.
In one example, the processing unit 502 further includes a parsing module 5024.
The parsing module 5024 is configured to parse the stored configuration information in the nonvolatile area and determine a data format of the stored configuration information before performing format conversion on the filled configuration information to obtain new configuration information.
In one example, the dispensing unit 504 includes an identification module 5041 and a dispensing module 5042.
The identifying module 5041 is configured to identify and analyze the read configuration information, and obtain the analyzed configuration information.
The allocation module 5042 is configured to allocate system resources according to the parsed configuration information.
In one example, the configuration information includes one or more of the following: CPU subscript, PE subscript, bifurcation information, device silk screen, integrated circuit bus I2C bus information and virtual port pin VPP information.
The device provided in this embodiment may be used to perform the method of the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. The functions of the above data processing module may be called and executed by a processing element of the above apparatus, and may be stored in a memory of the above apparatus in the form of program codes. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer device 60 includes: a processor 601, and a memory 602 communicatively coupled to the processor.
Wherein the memory 602 stores computer-executable instructions; processor 601 executes computer-executable instructions stored in memory 602 to implement a method as in any of the preceding claims.
In the specific implementation of the computer device described above, it should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The method disclosed in connection with the embodiments of the present application may be embodied directly in hardware processor execution or in a combination of hardware and software modules in a processor.
Embodiments of the present application also provide a computer-readable and writable storage medium having stored therein computer-executable instructions that when executed by a processor are configured to implement a method as in any of the preceding claims.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by computer instruction related hardware. The foregoing program may be stored in a computer readable and writable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Embodiments of the present application also provide a computer program product comprising a computer program for implementing a method as in any of the preceding claims when executed by a processor.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for processing configuration of a target device, the method comprising:
acquiring configuration requirements of a user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card;
storing the configuration information in a nonvolatile area;
starting target equipment, wherein in the starting process of the target equipment, configuration information on the nonvolatile area is read through a Basic Input Output System (BIOS);
and according to the read configuration information, performing system resource allocation.
2. The method of claim 1, wherein the determining configuration information comprises:
inquiring a preset configuration table based on the expansion card in the configuration requirement, and determining the configuration corresponding to the expansion card in the preset configuration table as the configuration information; the preset configuration table comprises a mapping relation between the expansion card and the configuration information.
3. The method according to claim 2, wherein the method further comprises:
if the configuration corresponding to the expansion card in the preset configuration table is determined not to meet the configuration requirement when the preset configuration table is queried, a new configuration table is generated according to the configuration requirement.
4. The method of claim 1, wherein storing the configuration information in a nonvolatile region comprises:
sequentially calling preset interfaces of a visual configuration tool according to a preset arrangement sequence, and filling the configuration information through the preset interfaces;
performing format conversion on the filled configuration information to obtain new configuration information; wherein the data format of the new configuration information is the same as the data format of the configuration information stored in the nonvolatile area;
storing the new configuration information in the nonvolatile region.
5. The method of claim 4, wherein prior to format converting the populated configuration information to obtain new configuration information, the method further comprises:
and analyzing the stored configuration information in the nonvolatile area, and determining the data format of the stored configuration information.
6. The method according to claim 1, wherein the allocating system resources according to the read configuration information includes:
identifying and analyzing the read configuration information to obtain analyzed configuration information;
and distributing system resources according to the analyzed configuration information.
7. The method of any one of claims 1-6, wherein the configuration information includes one or more of: CPU subscript, PE subscript, bifurcation information, device silk screen, integrated circuit bus I2C information, virtual port pin VPP information.
8. A configuration processing apparatus of a target device, the apparatus comprising:
the acquisition unit is used for acquiring the configuration requirement of the user and determining configuration information; the configuration requirement comprises an expansion card to be configured by a user, and the configuration information is used for indicating the configuration of the expansion card;
a processing unit for storing the configuration information in a nonvolatile area;
the reading unit is used for starting the target equipment, and in the starting process of the target equipment, the configuration information on the nonvolatile area is read through a Basic Input Output System (BIOS);
and the allocation unit is used for allocating system resources according to the read configuration information.
9. A computer device, the computer device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-7.
10. A computer readable and writable storage medium, characterized in that the computer readable and writable storage medium has stored therein computer executable instructions which when executed by a processor are adapted to implement the method of any one of claims 1-7.
CN202311396420.1A 2023-10-25 2023-10-25 Configuration processing method, device, equipment and storage medium of target equipment Pending CN117369903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311396420.1A CN117369903A (en) 2023-10-25 2023-10-25 Configuration processing method, device, equipment and storage medium of target equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311396420.1A CN117369903A (en) 2023-10-25 2023-10-25 Configuration processing method, device, equipment and storage medium of target equipment

Publications (1)

Publication Number Publication Date
CN117369903A true CN117369903A (en) 2024-01-09

Family

ID=89405525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311396420.1A Pending CN117369903A (en) 2023-10-25 2023-10-25 Configuration processing method, device, equipment and storage medium of target equipment

Country Status (1)

Country Link
CN (1) CN117369903A (en)

Similar Documents

Publication Publication Date Title
CA2046356C (en) Method and apparatus for improved initialization of computer system features
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN111143256B (en) Method and device for reading field replaceable unit information
CN105814541A (en) Computer device and memory starting method for computer device
US20230350831A1 (en) Bandwidth allocation method and apparatus for pcie external plug-in card, and device and storage medium
CN112306581B (en) Method and medium for managing Basic Input Output System (BIOS) configuration by baseboard management controller
CN114003538A (en) Intelligent network card and identification method thereof
CN112269584A (en) PCIe Switch firmware updating method, device, electronic equipment and medium
CN111158968A (en) BIOS configuration information self-checking method, device and storage medium
EP4060484A1 (en) Control method and control device for enabling operations of application program in multiple systems
CN111309353B (en) Method and equipment for updating operation board FPGA firmware based on server control board
CN110502282B (en) Loading method, device and equipment of multi-channel NTB card and readable storage medium
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
CN108985402B (en) RAID card information acquisition method and related device
CN117369903A (en) Configuration processing method, device, equipment and storage medium of target equipment
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN106293708B (en) Information processing method and storage device
US20180032351A1 (en) Information processing method and storage device
CN110119625A (en) A kind of trusted computing method
CN112527715B (en) Automatic configuration method for multi-IO expansion of server and related equipment
CN113238918A (en) Hard disk lighting method and device and related components
CN110119624A (en) A kind of security measure method
CN112988250B (en) Multi-mainboard USB service configuration method, system, terminal and storage medium
CN117873853B (en) Data recording method, device, electronic equipment and medium

Legal Events

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