[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#947449: networking on Olimex Lime2 (Allwinner A20)



On Fri, Dec 27, 2019 at 11:32:00AM +0200, Marek Nečada wrote:
> 
> See dmesg_install.out for the dmesg output obtained at the end of
> installation and dmesg_postinstall.out for the output of dmesg in the
> installed system. It seems the system does not attempt to bring eth0 up
> during the boot; the following lines appear only after manually running
> ip link set eth0 up (with ethernet cable connected):
> 
> [  671.988940] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  671.992969] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
> [  671.992989] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
> [  671.993003] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
> [  671.993013] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
> [  671.993972] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  674.023384] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
> [  674.023444] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> 
> Then I get the Link is down / up messages correctly after the cable is
> disconnected / connected, but the network does not work nevertheless
> (dhclient does not get any response; I didn't try wireshark on the other
> end of the cable with the installed system, but I assume it's the same
> as with the installer).
> 
> Marek

> [    0.000000] Booting Linux on physical CPU 0x0
         ... about three hundred lines ...
> [   59.033184] EXT4-fs (sda3): mounted filesystem without journal. Opts: (null)
> [   59.081628] ISO 9660 Extensions: Microsoft Joliet Level 3
> [   59.087948] ISO 9660 Extensions: RRIP_1991A
> [  130.574044] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
> [  130.574071] sun7i-dwmac 1c50000.ethernet: no reset control found
> [  130.574139] sun7i-dwmac 1c50000.ethernet: no regulator found
> [  130.579193] sun7i-dwmac 1c50000.ethernet: Version ID not available
> [  130.579218] sun7i-dwmac 1c50000.ethernet: 	DWMAC1000
> [  130.579230] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
> [  130.579238] sun7i-dwmac 1c50000.ethernet: Normal descriptors
> [  130.579245] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
> [  130.614299] libphy: stmmac: probed
> [  130.614334] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  134.855343] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  134.858330] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
> [  134.858348] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
> [  134.858362] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
> [  134.858371] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
> [  134.859201] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  138.491344] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  138.494285] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
> [  138.494304] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
> [  138.494317] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
> [  138.494326] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
> [  138.494701] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  142.598048] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
> [  142.598127] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

> [  671.988940] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  671.992969] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
> [  671.992989] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
> [  671.993003] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
> [  671.993013] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
> [  671.993972] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  674.023384] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
> [  674.023444] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [  738.624810] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> [  738.628507] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
> [  738.628525] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
> [  738.628540] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
> [  738.628549] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
> [  738.628999] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [  756.039301] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
> [  756.039359] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Quoting https://linux-sunxi.org/Olimex_A20-OLinuXino-Lime2#GMAC_u-boot_config

 GMAC u-boot config

 From Revision H onward, the Lime2 comes with a Microchip KSZ9031
 gigabit ethernet phyceiver. These need the following line added to the
 u-boot config (in configs/A20-OLinuXino-Lime2_defconfig):

 CONFIG_GMAC_TX_DELAY=3

 Do not set this to another value but 3.

 This Microchip PHY chip is also getting significantly hotter than the
 old Realtek RTL8201CP PHY. 


Please report back how usefull this message was.


Groeten
Geert Stappers
-- 
Leven en laten leven


Reply to: