ZHCAAP7A April   2020  – July 2021 DP83825I

 

  1.   商标
  2. 1引言
  3. 2器件概述
  4. 3将 DP83825 合并到 Sitara 上的步骤
    1. 3.1  第 1 步 – DP83825 与 DP83822
    2. 3.2  第 2 步 – 检查 8710A 引脚与 AM335
    3. 3.3  第 3 步 – 从 AM335 EVM - BBB 上取出 LAN8710A
    4. 3.4  第 4 步 – 检查 AM335 (BBB) RMII 连接引脚
    5. 3.5  第 5 步 – 检查 DP83825 连接引脚
    6. 3.6  第 6 步 – 使用 PinMux 工具生成 DTS/DTSI 文件。
    7. 3.7  第 7 步 – DP83822 代码库审查
    8. 3.8  第 8 步 – DP83825 代码库审查/补丁修改
    9. 3.9  第 9 步 – 修补 Linux uboot/内核
    10. 3.10 第 10 步 – 更改菜单配置
    11. 3.11 第 11 步 – 构建元件 (menuconfig/dtb/zimage)
    12. 3.12 第 12 步 –(可选)用于 DTS 构建的重要修复
    13. 3.13 第 13 步 – 将构建文件复制到 SD 卡上
    14. 3.14 第 14 步 – 检查 DP83825 的寄存器。
    15. 3.15 第 15 步 – 协助进行调试的 Linux 命令
    16. 3.16 第 16 步 – Linux ethtool 命令转储(示例)
    17. 3.17 第 17 步 – 用 Linux dmesg 检查以太网驱动程序状态。
    18. 3.18 第 18 步 – 包含详细日志分析的测试结果(成功情况)。
    19. 3.19 第 19 步 – YouTube 演示视频
  5. 4需要的硬件和软件
    1. 4.1 硬件
    2. 4.2 软件
  6. 5参考文献
  7. 6修订历史记录

第 18 步 – 包含详细日志分析的测试结果(成功情况)。

内核的成功情况转储如下。此处按不同的部分列出。当 DP83825 驱动程序已完成初始化后,您将拥有这样的 dmesg(又名:内核日志)

[    1.093845] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83825
[   19.692992] TI DP83825 4a101000.mdio:00: attached PHY driver [TI DP83825] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
When issuing “dmesg | cpsw”, log will like this: 
root@am335x-evm:~# dmesg | grep "cpsw"
[    1.310922] cpsw 4a100000.ethernet: Detected MACID = 50:8c:b1:0f:7e:c8 Rio: it’s MAC ID.
[    1.317580] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    1.324016] cpsw 4a100000.ethernet: ALE Table size 1024
[    1.329300] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[   24.986407] net eth0: initializing cpsw version 1.12 (0)
[   26.081848] cpsw 4a100000.ethernet eth0: Link is Up – 10/100Mbps/Full - flow control rx/tx Rio: Link is up.
root@am335x-evm:~# dmesg | grep "link"
[   20.815722] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.850443] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Rio: This will lead success.
[   27.484687] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
root@am335x-evm:~# dmesg | grep "cpsw"
[    1.321037] cpsw 4a100000.ethernet: Detected MACID = 50:8c:b1:0f:7e:c8
[    1.327701] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    1.334114] cpsw 4a100000.ethernet: ALE Table size 1024
[    1.339411] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[   19.231743] net eth0: initializing cpsw version 1.12 (0)
[   21.842513] cpsw 4a100000.ethernet eth0: Link is Up – 10/100Mbps/Full - flow control off 
[   53.402750] cpsw 4a100000.ethernet eth0: Link is Up – 10/100Mbps/Full - flow control off
root@am335x-evm:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 50:8C:B1:0F:7E:C8
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::528c:b1ff:fe0f:7ec8%3068425624/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:238 (238.0 B)  TX bytes:10806 (10.5 KiB)  Rio: When linked, it will have RX/TX packets
          Interrupt:45
Ping result is okay.
(Because we are using the blue wire soldering, so, the signal quality is not good.
 You can see the “sequence number” is not continued.
 The base case is to have the real PCB that mounted with the DP83825, not blue-wired.)
root@am335x-evm:~# ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101): 56 data bytes
64 bytes from 192.168.1.101: seq=6 ttl=128 time=113.975 ms
64 bytes from 192.168.1.101: seq=10 ttl=128 time=2.090 ms
64 bytes from 192.168.1.101: seq=13 ttl=128 time=1.708 ms
64 bytes from 192.168.1.101: seq=20 ttl=128 time=2.120 ms
64 bytes from 192.168.1.101: seq=22 ttl=128 time=2.055 ms
64 bytes from 192.168.1.101: seq=24 ttl=128 time=1.752 ms
64 bytes from 192.168.1.101: seq=31 ttl=128 time=2.167 ms
64 bytes from 192.168.1.101: seq=32 ttl=128 time=2.106 ms
64 bytes from 192.168.1.101: seq=34 ttl=128 time=1.910 ms
64 bytes from 192.168.1.101: seq=35 ttl=128 time=2.101 ms