使用硬件:

荔枝派V3S Lichee Pi Zero with Dock

QCA7000HomePlugGreen PHY模块

 

开发环境:

Ubuntu18.04.6 LTS

buildroot:2022.02

U-Boot :2019.10

kernel:Linux version 5.3.5

gcc version 10.3.0

部分打印信息:

[    0.773832] qcaspi spi0.0: ver=0.2.7-i, clkspeed=12000000, burst_len=5000, pluggable=0
[    0.781863] qcaspi spi0.0: Using random MAC address: 86:bb:e0:d6:8a:07

查看驱动:

# dmesg | grep qca
[    0.773832] qcaspi spi0.0: ver=0.2.7-i, clkspeed=12000000, burst_len=5000, pluggable=0
[    0.781863] qcaspi spi0.0: Using random MAC address: 86:bb:e0:d6:8a:07
[  175.109563] qcaspi spi0.0 eth0: SPI thread created

加载QCA7000HomePlugGreen PHY

# ifconfig eth0 up
# [  134.406658] qcaspi spi0.0 eth0: SPI thread created

查看qca7000配置:

# plctool -i eth0 -I
        PIB 0-0 8836 bytes
        MAC 70:20:22:03:16:02
        DAK 68:9F:07:4B:8B:02:75:A2:71:0B:0B:57:79:AD:16:30 (HomePlugAV)
        NMK B5:93:19:D7:E8:15:7B:A0:01:B0:18:66:9C:CE:E3:0D (HomePlugAV0123)
        NID 02:6B:CB:A5:35:4E:08
        Security level 0
        NET TEL_+8618212075575
        MFG guibin_Zou
        USR PEV
        CCo Never
        MDU N/A

未完,待续。。。。

Logo

更多推荐