Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riptidewave93/de24f4995762bbfda1db2cf06a7eaeac to your computer and use it in GitHub Desktop.
Save riptidewave93/de24f4995762bbfda1db2cf06a7eaeac to your computer and use it in GitHub Desktop.
root@debian:~# dmesg | grep dwmac-sun8i
[ 1.267777] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.765817] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.882146] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 50006 (expect 58000)
[ 1.891477] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.898700] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.905927] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.910894] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.917681] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.923342] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.933080] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.942862] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.949211] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.968430] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
[ 7.054435] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.2:07] driver [RTL8211E Gigabit Ethernet]
[ 7.065949] dwmac-sun8i 1c30000.ethernet eth0: phy: setting supported 00,00000000,000062cf advertising 00,00000000,000062cf
[ 7.067022] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 7.074473] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 7.082187] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 7.088819] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode
[ 7.096461] dwmac-sun8i 1c30000.ethernet eth0: phylink_mac_config: mode=phy/rgmii/Unknown/Unknown adv=00,00000000,000062cf pause=10 link=0 an=1
[ 7.098235] dwmac-sun8i 1c30000.ethernet eth0: phy link down rgmii/Unknown/Unknown
[ 11.198884] dwmac-sun8i 1c30000.ethernet eth0: phy link up rgmii/100Mbps/Full
[ 11.199020] dwmac-sun8i 1c30000.ethernet eth0: phylink_mac_config: mode=phy/rgmii/100Mbps/Full adv=00,00000000,00000000 pause=0e link=1 an=0
[ 11.199124] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
root@debian:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 7
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes
root@debian:~# ethtool -i eth0
driver: st_mac100
version: Jan_2016
firmware-version:
expansion-rom-version:
bus-info:
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
root@debian:~# ethtool -d eth0
ST MAC 10/100 Registers
control reg 0x0000000D
addr HI 0x08000000
addr LO 0x40000000
multicast hash HI 0x00000101
multicast hash LO 0x80000000
MII addr 0x40000006
MII data 00000000
flow control 0x00000001
VLAN1 tag 0x5D874000
VLAN2 tag 0x88010000
mac wakeup frame 0x40000002
mac wakeup crtl 0x00000000
DMA Registers
CSR0 0x00000000
CSR1 0x5E26A000
CSR2 0x00002000
CSR3 0x00000000
CSR4 0x00000000
CSR5 0x00000000
CSR6 0x00307010
CSR7 0x0000796D
CSR8 0x0000E3FC
DMA cur tx buf addr 0x79740102
DMA cur rx buf addr 0x80000100
root@debian:~# uname -a
Linux debian 5.3.0-rc1-00021-gbd859df3c-dirty #1 SMP Tue Jul 23 20:19:56 CDT 2019 aarch64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment