CN117376126A - Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment - Google Patents
Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment Download PDFInfo
- Publication number
- CN117376126A CN117376126A CN202311290499.XA CN202311290499A CN117376126A CN 117376126 A CN117376126 A CN 117376126A CN 202311290499 A CN202311290499 A CN 202311290499A CN 117376126 A CN117376126 A CN 117376126A
- Authority
- CN
- China
- Prior art keywords
- fixed
- phy
- gmac
- link
- acpi
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004891 communication Methods 0.000 title claims abstract description 8
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0853—Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method for realizing forced communication of GMAC ports based on a domestic Feiteng platform and electronic equipment, wherein the method comprises the following steps: acquiring ACPI nodes corresponding to the network interfaces when the PHY is configured in a GMAC drive loading mode, and detecting whether fixed-link nodes exist or not; if a fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY; and when the PHY is initialized, detecting whether a fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed-PHY according to the acquired parameters, and associating the registered fixed-PHY with a corresponding GMAC. According to the invention, the uboot firmware is not required to be fixedly selected for development, and the UEFI firmware is also required to be selected, so that the selection diversity is realized, and different scenes are suitable; the method is matched with the switch which can be managed by the method, and in the debugging stage, the initialization configuration of the switch can be realized by upgrading the bin file of the switch without changing the uefi firmware every time.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for realizing forced communication of GMAC ports based on a domestic Feiteng platform and electronic equipment.
Background
The domestic Feiteng platform uboot firmware collocation system can realize forced initialization of a GMAC controller under the system according to the description of equipment nodes, but the UEFI ACPI description does not support functions.
Specifically, the system driver now does not support acquiring UEFI ACPI descriptions at all to implement GMAC (Gigabit Media Access Controller) mandatory link gigabit full duplex functionality. The prior art can only realize the GMAC forced link under the uboot device tree description, and if UEFI firmware is used, the forced GMAC link cannot be supported, so that development is blocked.
Disclosure of Invention
In view of the technical problems, the invention provides a method for realizing forced communication of a GMAC port based on a domestic Feiteng platform and electronic equipment, so as to solve the problem of firmware update of a complex system in the prior art.
Other features and advantages of the invention will be apparent from the following detailed description, or may be learned by the practice of the invention.
Based on one aspect of the invention, a method for realizing forced communication of GMAC ports based on a domestic Feiteng platform is provided, and the method comprises the following steps:
acquiring ACPI nodes corresponding to the network interfaces when the PHY is configured in a GMAC drive loading mode, and detecting whether fixed-link nodes exist or not;
if the fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY;
and when the PHY is initialized, detecting whether the fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed_PHY according to the acquired parameters, and associating the registered fixed_PHY with the corresponding GMAC.
Further, the parameters include half full duplex, rate.
In accordance with another aspect of the present invention, there is provided an electronic apparatus including:
the processor is used for acquiring ACPI nodes corresponding to the network interfaces and detecting whether fixed-link nodes exist or not when the GMAC drives load the configuration PHY;
if the fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY;
and when the PHY is initialized, detecting whether the fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed_PHY according to the acquired parameters, and associating the registered fixed_PHY with the corresponding GMAC.
Further, the parameters include half full duplex, rate.
The technical scheme of the invention has the following beneficial effects:
by adopting the method, the uboot firmware can be selected as development without fixing, and the UEFI firmware can be selected, so that the method has selection diversity to be suitable for different scenes;
the method is matched with the switch which can be managed by the method, and in the debugging stage, the initialization configuration of the switch can be realized by upgrading the bin file of the switch without changing the uefi firmware every time;
further, the developer can inform the system of the method of the invention through the UEFI firmware ACPI description according to the requirement, so that the system can correctly load the corresponding PHY driver according to the description to realize forced link connection.
Drawings
Fig. 1 is a schematic flow chart of a method according to an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
As shown in fig. 1, the embodiment of the present disclosure provides a method for implementing GMAC port forced communication based on a domestic Feiteng platform, which specifically includes steps S101 to S103:
in step S101, when the GMAC driver loads the configuration PHY, an ACPI node corresponding to the network interface is acquired, and whether a fixed-link node exists is detected.
Among them, GMAC (Gigabit Media Access Controller) refers to an ethernet physical layer interface, and in an operating system, an ACPI node is a hierarchical structure for representing and organizing hardware devices and functions thereof, and by analyzing the ACPI node, information and configuration of the devices can be obtained. The fixed-link node is a node in the ACPI description and is used to represent a network card with a fixed link characteristic, specifically to indicate that the network card does not need to determine link modes and parameters through auto-negotiation.
In step S102, if the fixed-link node exists under the ACPI node, MII bus registration of the PHY is suspended.
Specifically, if a fixed-link node exists in the ACPI description of the network card, this indicates that the network card has a fixed link characteristic. At this time, MII (Media Independent Interface) bus registration of ordinary PHY (PHYsical Layer) is not required. Among these, PHY is a converter between a network interface controller and a physical medium, and MII is an interface standard for connecting PHY and MAC (Media Access Control).
In step S103, when initializing the PHY, it is detected whether the fixed-link node exists, if so, parameters related to forcibly setting a fixed link mode under ACPI description are obtained, registration of the fixed_phy is performed according to the obtained parameters, and the registered fixed_phy is associated with the corresponding GMAC.
Specifically, at the time of PHY initialization, it is also determined whether or not there is a fixed-link node. Relevant forced link parameters, such as half full duplex mode, rate, etc., are obtained from the ACPI description, if any. Then, the respective fixed_phy is correctly registered according to the acquired parameters and associated with the corresponding GMAC (Gigabit Media Access Controller). fixed_phy refers to a fixed PHY, which is a hard-coded PHY instance in a driver, and may represent a PHY device with fixed link characteristics. In half duplex mode, it means that both parties can alternately transmit and receive data, but cannot simultaneously transmit and receive. The rate refers to the transmission rate of the network interface.
Based on the method, the uboot firmware can be selected as development without fixation, and the UEFI firmware can be selected so as to have selection diversity to be suitable for different scenes; the method is matched with the switch which can be managed by the method, and in the debugging stage, the initialization configuration of the switch can be realized by upgrading the bin file of the switch without changing the uefi firmware every time; further, the developer can inform the system of the method through the UEFI firmware ACPI description according to the requirement, so that the system correctly loads the corresponding PHY driver according to the description to realize forced link connection.
Based on the same, in one embodiment, an electronic device is provided, comprising:
the processor is used for acquiring ACPI nodes corresponding to the network interfaces and detecting whether fixed-link nodes exist or not when the GMAC drives load the configuration PHY;
if the fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY;
and when the PHY is initialized, detecting whether the fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed_PHY according to the acquired parameters, and associating the registered fixed_PHY with the corresponding GMAC.
The non-explanation content of the device embodiment may refer to the method embodiment, and the non-disclosure details may refer to the implementation content of the method section, so that a description is not repeated.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention. Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination. The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Claims (4)
1. A method for realizing forced communication of GMAC ports based on a domestic Feiteng platform is characterized by comprising the following steps:
acquiring ACPI nodes corresponding to the network interfaces when the PHY is configured in a GMAC drive loading mode, and detecting whether fixed-link nodes exist or not;
if the fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY;
and when the PHY is initialized, detecting whether the fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed_PHY according to the acquired parameters, and associating the registered fixed_PHY with the corresponding GMAC.
2. A method for implementing GMAC port forced connectivity based on a domestic flyaway platform as claimed in claim 1, wherein said parameters include half full duplex, rate.
3. An electronic device, comprising.
The processor is used for acquiring ACPI nodes corresponding to the network interfaces and detecting whether fixed-link nodes exist or not when the GMAC drives load the configuration PHY;
if the fixed-link node exists under the ACPI node, suspending MII bus registration of the PHY;
and when the PHY is initialized, detecting whether the fixed-link node exists, if so, acquiring parameters related to forced setting of a fixed link mode under ACPI description, registering the fixed_PHY according to the acquired parameters, and associating the registered fixed_PHY with the corresponding GMAC.
4. The electronic device of claim 3, wherein the parameter comprises a half-full duplex, rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311290499.XA CN117376126A (en) | 2023-09-28 | 2023-09-28 | Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311290499.XA CN117376126A (en) | 2023-09-28 | 2023-09-28 | Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117376126A true CN117376126A (en) | 2024-01-09 |
Family
ID=89406938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311290499.XA Pending CN117376126A (en) | 2023-09-28 | 2023-09-28 | Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117376126A (en) |
-
2023
- 2023-09-28 CN CN202311290499.XA patent/CN117376126A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10461999B2 (en) | Methods and systems for managing interconnection of virtual network functions | |
US7222339B2 (en) | Method for distributed update of firmware across a clustered platform infrastructure | |
US8301818B2 (en) | Virtual hot plugging of devices and virtual devices | |
US8819708B2 (en) | System and method to abstract hardware routing via a correlatable identifier | |
US20060230125A1 (en) | System and method for SAS PHY dynamic configuration | |
US20110320640A1 (en) | Discovery and configuration of device configurations | |
WO2009049325A1 (en) | System and method for automatic configuration and management of home network devices | |
US8321617B1 (en) | Method and apparatus of server I/O migration management | |
US20040034764A1 (en) | Methods and apparatus for event based console variable coherence maintenance in a pre-boot environment | |
US10425287B2 (en) | Systems and methods for network topology discovery | |
US20050114853A1 (en) | Software upgrade and downgrade in systems with persistent data | |
US8671228B1 (en) | System and methods for managing virtual adapter instances | |
CN108141378A (en) | Suspend mode VDU in VNFD | |
US20150006700A1 (en) | Establishing connectivity of modular nodes in a pre-boot environment | |
CN110048875A (en) | A kind of method and apparatus of upgrading driving | |
CN107111568A (en) | System and method for driver installation file to be presented when enabling USB equipment | |
CN111327475A (en) | Method, system and device for upgrading embedded equipment | |
JP5361564B2 (en) | Flexible approach showing different bus protocols | |
US7734902B2 (en) | Addition of a hardware component to a running system | |
US7627789B2 (en) | Polymorphic management of embedded devices using web interfaces | |
CN111637079B (en) | Mainboard, fan control system and method | |
CN117376126A (en) | Method for realizing forced communication of GMAC ports based on domestic Feiteng platform and electronic equipment | |
US7996359B2 (en) | Managing multi-node multi-version systems | |
CN103793180A (en) | Disk collocation method and server rack system | |
CN105827467B (en) | A kind of registration center's upgrade method, relevant device and system |
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 |