* On 2017 12 Oct 07:31 -0500, Adam Sampson wrote: > Hi Nate, > > Nate Bargmann <n...@n0nb.us> writes: > > > I just received a Olimex OLinuXino MICRO (A20) board [...] The > > problem is that the ethernet port simply isn't passing traffic (it > > works just fine with the Olimex official image). > > With the mainline kernel on an A20 (not Allwinner's custom kernel, which > the Olimex images used to use), you ought to see something like this in > dmesg if the right drivers are included: > > [ 2.858515] sun7i-dwmac 1c50000.ethernet: PTP uses main clock > [ 2.864342] sun7i-dwmac 1c50000.ethernet: no reset control found > [ 2.870426] sun7i-dwmac 1c50000.ethernet: no regulator found > [ 2.876188] sun7i-dwmac 1c50000.ethernet: Ring mode enabled > [ 2.881796] sun7i-dwmac 1c50000.ethernet: DMA HW capability register > supported > [ 2.889037] sun7i-dwmac 1c50000.ethernet: Normal descriptors > [ 2.903927] libphy: stmmac: probed > [ 2.907404] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver > [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1) > [ 2.919788] RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver > [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:01, irq=-1)
Up to the last line, mine is quite similar, but obviously is failing: [ 1.020777] sun7i-dwmac 1c50000.ethernet: PTP uses main clock [ 1.026532] sun7i-dwmac 1c50000.ethernet: no reset control found [ 1.032623] sun7i-dwmac 1c50000.ethernet: no regulator found [ 1.038338] sun7i-dwmac 1c50000.ethernet: Ring mode enabled [ 1.043908] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported [ 1.051141] sun7i-dwmac 1c50000.ethernet: Normal descriptors [ 1.064623] libphy: stmmac: probed [ 1.068081] sun7i-dwmac 1c50000.ethernet (unnamed net_device) (uninitialized): PHY ID 0007c0f1 at 1 IRQ POLL (stmmac-0:01) active > [ 19.287489] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver > [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1) > [ 19.302199] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload > disabled > [ 19.309560] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters > available > [ 19.317256] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW > [ 19.324710] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready > [ 20.330756] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - > flow control rx/tx > [ 20.339322] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 7.449305] Generic PHY stmmac-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:01, irq=-1) [ 7.460675] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled [ 7.468034] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available [ 7.475686] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW [ 8.488733] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 8.884664] NET: Registered protocol family 10 [ 8.940520] Segment Routing with IPv6 It looks like my device is not configured. > Your board has an RTL8201CP PHY rather than the RTL8211E above, but it > should still be using the GMAC controller (the A20 core has two > different Ethernet controllers, but GMAC's generally preferred over > EMAC). If there's no mention of the PHY, then the PHY driver is missing; > if there's no mention of sun7i-dwmac, then the Ethernet controller > driver is missing. > > With A20 boards in particular, there have been a couple of times when > responsibility for configuring something in the Ethernet controller has > shifted from the kernel to U-Boot. This means that using an older U-Boot > with a newer kernel (or vice versa) can cause problems, so it's worth > checking that you're using the latest U-Boot and mainline kernel. > > If you're really stuck, and have tried the latest U-Boot/kernel with no > success, a better place to ask might be the linux-sunxi mailing list. Well, I am stuck! This is new territory for me to some extent as my prior experience is on X86 hardware and with a couple of Raspberry Pis. I was hoping to get parazyd's attention who made these Devuan images back in May so we can sort this out for the project. I'm not sure if he monitors this list or not. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Ham radio, Linux, bikes, and more: http://www.n0nb.us
signature.asc
Description: Digital signature
_______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng