CN113254087A - Method and system for rapidly switching Expander configuration - Google Patents

Method and system for rapidly switching Expander configuration Download PDF

Info

Publication number
CN113254087A
CN113254087A CN202110525742.6A CN202110525742A CN113254087A CN 113254087 A CN113254087 A CN 113254087A CN 202110525742 A CN202110525742 A CN 202110525742A CN 113254087 A CN113254087 A CN 113254087A
Authority
CN
China
Prior art keywords
expander
main
firmware
field
configuration
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
CN202110525742.6A
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110525742.6A priority Critical patent/CN113254087A/en
Publication of CN113254087A publication Critical patent/CN113254087A/en
Pending legal-status Critical Current

Links

Images

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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

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

Abstract

The invention relates to a method and a system for rapidly switching Expander configuration, which comprises the following steps: s1: firmware with different configurations is pre-recorded in different partitions of the EMMC; s2: modifying the FRU DATA of the baseboard management controller; s3: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field; s4: changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field; s5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC; s6: and powering on the main IC, and finishing the Expander configuration switching.

Description

Method and system for rapidly switching Expander configuration
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a method and a system for quickly switching Expander configuration.
Background
In the design of the server SAS Expander, in order to adapt to different application scenarios, a plurality of firmware versions of different versions are designed and developed in the same hardware system, and different functions are realized by swiping different firmware. The SAS expanders collocated with firmware of different versions cannot be distinguished from the appearance because of sharing a hardware design scheme, and in order to avoid mixed use in production and use, the SAS expanders of each firmware version can independently correspond to one PCBA number.
The SAS Expander firmware is burned in a memory named as EMMC, an internal memory space of the EMMC can be divided into a plurality of partitions, and the partitions can be used for burning the same firmware as backup. Two burning modes are usually adopted, and the SAS Expander is usually produced by using the offline mode, so that the burning mode is simple and convenient for large-scale processing; the other is online burning, and the SAS Expander installed in the server can burn new firmware in band through Host, or burn new firmware out of band through debug interface carried by the main IC of the SAS Expander.
For the finished SAS Expander needing to switch configuration, new firmware is generally burned in the following two ways, the first way is an in-band burning way, the SAS Expander in the server is installed with relevant tools under an OS, and then corresponding firmware files are selected to be burned in an instruction way, so that the burning speed is high; the second mode is an out-of-band burning mode, and new firmware is burned by connecting the firmware of the notebook computer through a debug interface of the SAS Expander main IC and a debug tool. Although the two burning modes can realize firmware burning of the finished product SAS Expander, the efficiency is too low compared with the method for burning offline in batch; for the sold server, if the client wants to modify the configuration without replacing the Expander, the online burning mode will affect the time efficiency of modifying the configuration, so that the client satisfaction is reduced, and the large-scale one-time deployment cannot be realized. This is a technical problem in the prior art.
In view of this, the invention provides a technical scheme of a method and a system for rapidly switching the Expander configuration; to solve the defects and problems in the prior art.
Disclosure of Invention
Aiming at the problems that in the prior art, the configuration of the finished product SAS Expander is switched, the efficiency is low by adopting an online burning mode compared with the batch offline burning, and the aging of configuration modification is greatly influenced by the online burning mode under the condition that the Expander is not replaced for a sold server, so that large-scale one-time deployment cannot be realized; the invention provides a method and a system for rapidly switching Expander configuration, which aim to solve the technical problem.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a method for fast switching Expander configuration, including the following steps:
s1: firmware with different configurations is pre-recorded in different partitions of the EMMC;
s2: modifying the FRU DATA of the baseboard management controller;
s3: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
s4: changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field;
s5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC;
s6: and powering on the main IC, and finishing the Expander configuration switching.
Preferably, in the step S2, the FRU DATA of the baseboard management controller is modified by an ipmitool instruction.
Preferably, in step S3, after the server is powered on, the CPLD reads and recognizes the Expander field in the server FRU DATA through the baseboard management controller.
Preferably, in said step S3, the SAS Expander configuration is indicated by the Expander field in the FRU DATA; the required SAS Expander configuration is judged by the Expander field.
Preferably, in step S5, when the main IC preset selection pin is at a low level, the main IC loads the firmware from Partition 0 of the EMMC;
when the main IC presets the select pin high, the main IC loads the firmware from Partition 1 of the EMMC.
In a second aspect, the present invention provides a system for fast switching Expander configuration, including:
a firmware burning module: pre-recording firmware with different configurations in different partitions of the EMMC;
and a modification module: modifying an FRU DATA of the baseboard management controller through an ipmitool instruction;
read and identify Expander field module: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
loading a firmware module: and loading the firmware in the corresponding EMMC Partition according to the level state of the pin preset and selected by the main IC.
Preferably, in the module for reading and identifying the Expander field, the GPIO level state of the preset selection pin of the CPLD connected with the main IC is changed according to the read Expander field.
Preferably, in the read and identify Expander field module, the SAS Expander configuration is represented by the Expander field in the FRU DATA; the required SAS Expander configuration is judged by the Expander field.
Preferably, in the firmware loading module, when the preset selection pin of the main IC is in a low level, the main IC loads the firmware from Partition 0 of the EMMC; when the main IC presets the select pin high, the main IC loads the firmware from Partition 1 of the EMMC.
The method and the system for rapidly switching the configuration of the Expander have the advantages that the problems that the switching configuration of the finished product SAS Expander is low in burning efficiency by adopting an online burning mode, and the aging of configuration modification is greatly influenced by the online burning mode under the condition that the Expander is not replaced for a sold server, and large-scale one-time deployment cannot be realized are solved; the FRU DATA only needs to be modified through the ipmitool, configuration switching can be achieved, the operation instruction is simple, and batch operation can be achieved. In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for quickly switching an Expander configuration according to embodiment 1 of the present invention.
Fig. 2 is a schematic block diagram of a system for quickly switching the Expander configuration according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of a one-time Expander configuration switching process provided in embodiment 3 of the present invention.
The system comprises a 1-system for rapidly switching the configuration of the Expander, a 2-burning firmware module, a 3-modifying module, a 4-reading and identifying field module and a 5-loading firmware module.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
CPLD, Complex Programmable Logic Device (English: Complex Programmable Logic Device, abbreviation: CPLD).
SAS Expander, for expanding SAS signals to connect more hard disks.
FRU DATA: the system comprises information such as a manufacturer, a product model number, a product serial number, an asset serial number and the like, and provides asset information management for manufacturers and customers.
The EMMC, Embedded Multi Media Card, is the standard specification of Embedded memory that is established by the MMC association and mainly aims at products such as mobile phones or tablet computers.
Example 1:
as shown in fig. 1, the present embodiment provides a method for quickly switching the Expander configuration, including the following steps:
s1: different configurations of firmware are pre-recorded in different partitions of the EMMC.
S2: modifying the FRU DATA of the baseboard management controller;
in the step S2, the FRU DATA of the baseboard management controller is modified by the ipmitool instruction.
S3: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
in step S3, after the server is powered on, the CPLD reads and identifies the Expander field in the server FRU DATA through the baseboard management controller. SAS Expander configuration is represented in FRU DATA by the Expander field; the required SAS Expander configuration is judged by the Expander field.
S4: and changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field.
S5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC;
in step S5, when the main IC presets the select pin at the low level, the main IC loads the firmware from Partition 0 of the EMMC;
when the main IC presets the select pin high, the main IC loads the firmware from Partition 1 of the EMMC.
S6: and powering on the main IC, and finishing the Expander configuration switching.
Example 2:
the present embodiment provides a system 1 for quickly switching the Expander configuration, including:
the firmware burning module 2: recording firmware with different configurations in Part i/on of different EMMC in advance;
and a modification module 3: modifying FRU DATA of the baseboard management controller through an ipmi tool instruction;
read and identify Expander field module 4: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
in the read and identify Expander field module 4, the Expander field is used to represent the SAS Expander configuration in FRU DATA; judging the required SAS Expander configuration through the Expander field; changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field;
loading the firmware module 5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC; when the main IC presets and selects the pin to be in a low level, the main IC loads firmware from Partition 0 of the EMMC; when the main IC presets the select pin high, the main IC loads the firmware from Partition 1 of the EMMC.
Example 3:
the embodiment provides a method for quickly switching Expander configuration, which includes the following steps:
s1: firmware with different configurations is pre-recorded in different partitions of the EMMC;
s2: modifying the FRU DATA of the baseboard management controller;
s3: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
s4: changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field;
s5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC;
s6: and powering on the main IC, and finishing the Expander configuration switching.
In step S1, Partition 0 of the EMMC stores the firmware required for configuration 1, and selects pin as low level corresponding to the main IC, Partition 1 stores the firmware required for configuration 2, and selects pin as high level corresponding to the main IC.
SAS Expander configuration 1 is represented in the Expander field of FRU DATA as 0x00, and SAS Expander configuration 2 is represented in the Expander field of FRU DATA as 0x 01.
In the step S2, the Expander field in the FRU DATA is modified from 0x00 to 0x01 by using an ipmitool instruction, and the server is powered off.
In step S3, the server is powered on again, and the modified FRU DATA becomes valid; the CPLD recognizes from the baseboard management controller that the Expander field in the FRU DATA is 0x 01.
In step S4, the GPIO of the preset selection pin of the CPLD connection main IC is changed to 1 according to the read Expander field.
In step S5, the master IC presets the level state selection pin to load firmware from Partition 1 of the EMMC.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method for rapidly switching the Expander configuration is characterized by comprising the following steps:
s1: firmware with different configurations is pre-recorded in different partitions of the EMMC;
s2: modifying the FRU DATA of the baseboard management controller;
s3: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
s4: changing the GPIO level state of a preset selection pin of the CPLD connected with the main IC according to the read Expander field;
s5: loading firmware in corresponding EMMC Partition according to the level state of a pin preset and selected by a main IC;
s6: and powering on the main IC, and finishing the Expander configuration switching.
2. The method of claim 1, wherein in step S2, the FRU DATA of the bmc is modified by ipmitool command.
3. The method of claim 2, wherein in step S3, after the server is powered on, the CPLD reads and identifies the Expander field in the server FRU DATA through the baseboard management controller.
4. The method for switching Expander configuration quickly as claimed in claim 3, wherein in step S3, SAS Expander configuration is represented by the Expander field in FRU DATA; the required SAS Expander configuration is judged by the Expander field.
5. The method of claim 4, wherein in step S5, when the main IC preset selection pin is low, the main IC loads firmware from Partition 0 of EMMC; when the main IC presets the select pin high, the main IC loads the firmware from Partition 1 of the EMMC.
6. A system for fast switching Expander configuration, comprising:
a firmware burning module: pre-recording firmware with different configurations in different partitions of the EMMC;
and a modification module: modifying an FRU DATA of the baseboard management controller through an ipmitool instruction;
read and identify Expander field module: after the modified FRU DATA takes effect, the CPLD reads and identifies the Expander field;
loading a firmware module: and loading the firmware in the corresponding EMMC Partition according to the level state of the pin preset and selected by the main IC.
7. The system according to claim 6, wherein the GPIO level status of the preset selection pin of the CPLD connected to the main IC is changed in the module for reading and identifying the Expander field according to the read Expander field.
8. The system according to claim 7, wherein the GPIO level status of the preset selection pin of the CPLD connected to the main IC is changed in the module for reading and identifying the Expander field according to the read Expander field.
9. The system of claim 8, wherein in the read and identify Expander field module, the Expander field is used to indicate the SAS Expander configuration in FRU DATA; the required SAS Expander configuration is judged by the Expander field.
CN202110525742.6A 2021-05-14 2021-05-14 Method and system for rapidly switching Expander configuration Pending CN113254087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110525742.6A CN113254087A (en) 2021-05-14 2021-05-14 Method and system for rapidly switching Expander configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110525742.6A CN113254087A (en) 2021-05-14 2021-05-14 Method and system for rapidly switching Expander configuration

Publications (1)

Publication Number Publication Date
CN113254087A true CN113254087A (en) 2021-08-13

Family

ID=77182002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110525742.6A Pending CN113254087A (en) 2021-05-14 2021-05-14 Method and system for rapidly switching Expander configuration

Country Status (1)

Country Link
CN (1) CN113254087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024103829A1 (en) * 2022-11-14 2024-05-23 苏州元脑智能科技有限公司 Port configuration method, component, and hard disk expansion apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683970A (en) * 2018-12-21 2019-04-26 广东浪潮大数据研究有限公司 A kind of amending method of server FRU information, modification system and relevant apparatus
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
CN111190849A (en) * 2019-12-31 2020-05-22 苏州浪潮智能科技有限公司 Selection device and method based on Expander FW configuration file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683970A (en) * 2018-12-21 2019-04-26 广东浪潮大数据研究有限公司 A kind of amending method of server FRU information, modification system and relevant apparatus
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
CN111190849A (en) * 2019-12-31 2020-05-22 苏州浪潮智能科技有限公司 Selection device and method based on Expander FW configuration file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024103829A1 (en) * 2022-11-14 2024-05-23 苏州元脑智能科技有限公司 Port configuration method, component, and hard disk expansion apparatus

Similar Documents

Publication Publication Date Title
CN108090006B (en) Method for switching PCIE Switch working mode by one key
TWI386852B (en) System for switching bios and method thereof
US10754408B2 (en) Power supply unit mismatch detection system
US20080109676A1 (en) Processing device and storage medium
CN110502462B (en) OCP adapter card and server
US8935567B1 (en) Network addressable storage controller with storage drive profile comparison
CN107844165A (en) Hard disk hot-plug realization device
CN115167647B (en) Power supply method, system, equipment and medium for server
CN112667066B (en) Method, system and medium for expanding hard disk storage capacity
WO2024103829A1 (en) Port configuration method, component, and hard disk expansion apparatus
CN113254087A (en) Method and system for rapidly switching Expander configuration
CN101923505A (en) Test system and method of peripheral component interconnection rapid slot
CN110399168B (en) System starting method, device and equipment for multiple data disk storage servers
CN115525486A (en) SSD SMBUS temperature alarm and low power consumption state test verification method and device
CN110764799A (en) Method, equipment and medium for optimizing and remotely updating FPGA (field programmable Gate array) accelerator card
WO2024109026A1 (en) Server interrupt operation execution method and apparatus, device, and storage medium
CN101893999A (en) System for virtually partitioning storage device into multiple devices
CN103853638A (en) Method for refreshing firmware and electronic equipment
US7590781B2 (en) Signal processing system for electronic systems having different types of input/output controllers
CN111221585A (en) Method and system for expanding hard disk backplane of management server
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN104834875A (en) Computer secondary mainboard system for physical isolation for information security and isolation method
CN115333968A (en) Network card batch test system and method with NCSI function
CN105446654A (en) Server control method and rack controller
CN111708688B (en) Method and device for assisting in analyzing shutdown charging abnormality

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210813