当前位置:网站首页>Marvell 88E1515 PHY loopback模式测试
Marvell 88E1515 PHY loopback模式测试
2022-07-05 06:28:00 【恩来贺】
Xavier 平台上的88E1512 PHY芯片,88E1512芯片寄存器手册描述比较详细。
先了解下基本概念:
千兆以太网的物理层
千兆以太网的物理层分为物理编码子层PCS(Physical Coding Sublayer)、物理介质连接子层PMA(Physical Medium Attachment)和物理介质相关子层PMD(Physical Medium Dependent)三层,如下图所示:
其中PCS子层负责8b10b编码,它可以把从GMII口接收到的8位并行的数据转换成10位并行的数据输出。因为10比特的数据能有效地减小直流分量,降低误码率,另外采用8b10b编码便于在数据中提取时钟和进行首发同步。可以把PCS两头看成GMII接口和TBI接口。
PMA子层进一步将PCS子层的编码结果向各种物理媒体传送,主要是负责完成串并转换。PCS层以125M的速率并行传送10位代码到PMA层,由PMA层转换为1.25Gbps的串行数据流进行发送,以便实际能得到1Gbps的千兆以太网传送速率。可以把PMA子层的两头分别看做TBI接口和SGMII接口。
PMD子层将对各种实际的物理媒体完成接口,完成真正的物理连接。由于1000BASE-X支持多种物理媒介,如光纤和屏蔽双绞线,它们的物理接口显然不会相同。有的要进行光电转换,有的要完成从不平衡到平衡的转换。PMD层将对这些具体的连接器作出规定。
88E1512的四种loopback模式
1.System Interface Loopback
2.Synchronous SERDES Loopback
3.Line Loopback
4.External Loopback
先来使用System Interface Loopback,比较简单直接配置 0_0.14 = 1

我使用开源phytool工具配置BMCR 的bit14 GitHub - wkz/phytool: Linux MDIO register access
https://github.com/wkz/phytool这款工具同时支持C45和C42协议
先使用ethtool查看下当前状态:

读取phy当前寄存器的值

设置成loopback模式

| Loopback speed is determined by Registers 21_2.{6,13} |
边栏推荐
- vsCode创建自己的代码模板
- [Chongqing Guangdong education] 1185t administrative leadership reference test of National Open University in autumn 2018
- Winter vacation water test 1 Summary
- 博弈论 AcWing 892. 台阶-Nim游戏
- NVM Downloading npm version 6.7.0... Error
- 4. Oracle redo log file management
- CGroup CPU group source code analysis
- How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
- Written examination notes
- 5. Oracle tablespace
猜你喜欢

4. Oracle redo log file management

Find the combination number acwing 888 Find the combination number IV

Design specification for mobile folding screen

Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
![[Gaode map POI stepping pit] amap Placesearch cannot be used](/img/4c/55586ffcc2267c477a4532ab51a0c1.png)
[Gaode map POI stepping pit] amap Placesearch cannot be used

‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

how to understand the “model independent.“

Paper reading report

Game theory acwing 894 Split Nim game

ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
随机推荐
ollvm编译出现的问题纪录
区间问题 AcWing 906. 区间分组
PR automatically moves forward after deleting clips
Page type
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
SolidWorks template and design library are convenient for designers to call
‘mongoexport‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
A brief introduction to heading/pitch/roll and omega/phi/kappa
Game theory acwing 894 Split Nim game
TypeScript入门
Vant Weapp SwipeCell設置多個按鈕
[QT] QT multithreading development qthread
What's wrong with this paragraph that doesn't work? (unresolved)
Vant weapp swippecell set multiple buttons
[Chongqing Guangdong education] National Open University 2018 autumn 0702-22t contemporary Chinese political system reference questions
cgroup_ memcg
There are three kinds of SQL connections: internal connection, external connection and cross connection
P3265 [jloi2015] equipment purchase
Chinese remainder theorem acwing 204 Strange way of expressing integers