No eth0 with latest image, older A20 Micro board

Started by gregh, May 09, 2022, 10:19:21 PM

Previous topic - Next topic

gregh

Hi,

I have download the latest https://images.olimex.com/release/a20/A20-OLinuXino-bullseye-base-20220413-094751.img.7z to a sd-card, booted it in an 2 years old A20 MICRO board with a a serial cable and have no eth0 device.

$ dmesg | grep mac
[    2.524475] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    2.524502] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    2.524766] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    2.524799] sun7i-dwmac 1c50000.ethernet: no reset control found
[    2.524877] sun7i-dwmac 1c50000.ethernet: no regulator found
[    2.525478] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    2.525517] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    2.525540] sun7i-dwmac 1c50000.ethernet: No HW DMA feature register supported
[    2.525560] sun7i-dwmac 1c50000.ethernet: TX Checksum insertion supported
[    2.525578] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    2.525598] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    2.527509] mdio_bus stmmac-0: MDIO device at address 1 is missing.
[   42.361981] sun7i-dwmac 1c50000.ethernet eth0: no phy at addr -1
[   42.368161] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

Thank you for your help.

--
Greg

LubOlimex

Is the board and board revision properly recognized at start of boot? What does the board prints during u-boot?
Technical support and documentation manager at Olimex

gregh

Below is the output during boot and dmesg. It is a hw revision J board.
Thank you.

boot dmesg olimex a20 micro latest image

LubOlimex

It is a strange issue that I can't confirm. I tried to replicate it and it doesn't happen here. Can't speculate what can cause it at the moment, but I've seen same error reported a couple of times. Did the Ethernet work before? Does it work with another Linux image? Can you try testing with one of the older images to check how the Ethernet would behave, this would lower the possibilities, for example try with this old Linux image:

https://ftp.olimex.com/Allwinner_Images/A20-OLinuXino-MICRO/Debian/sd/A20_OLinuxino_Micro_debian_Jessie_34_103_2G_eMMC_release_18.zip
Technical support and documentation manager at Olimex

gregh

It worked without an issue for years with an oldstable Debian install.
I can try if you want with other images and report back.


gregh

I also tried with the debian installer image

The installer runs but ethernet is not working.

dmesg:

[   50.255087] sun7i-dwmac 1c50000.ethernet eth0: PHY [stmmac-0:01] driver [SMSC LAN8710/LAN8720] (irq=POLL)
[   50.468587] sun7i-dwmac 1c50000.ethernet: Failed to reset the dma
[   50.468622] sun7i-dwmac 1c50000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[   50.468645] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Hw setup failed
[   52.791064] sun7i-dwmac 1c50000.ethernet eth0: PHY [stmmac-0:01] driver [SMSC LAN8710/LAN8720] (irq=POLL)
[   52.997988] sun7i-dwmac 1c50000.ethernet: Failed to reset the dma
[   52.998024] sun7i-dwmac 1c50000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[   52.998048] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Hw setup failed
[   59.471079] sun7i-dwmac 1c50000.ethernet eth0: PHY [stmmac-0:01] driver [SMSC LAN8710/LAN8720] (irq=POLL)
[   59.677635] sun7i-dwmac 1c50000.ethernet: Failed to reset the dma
[   59.677673] sun7i-dwmac 1c50000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[   59.677697] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Hw setup failed

LubOlimex

That is not good, probably some hardware damage if it no longer works with the image it used to work. Can you take two pictures - one of the top and another of the bottom of the board and upload them somewhere and share the links?
Technical support and documentation manager at Olimex

gregh

Oldstable Debian worked until the sd card died, therefore I want to make a reinstall.
The LED's from the network adapter are working.
Here are the pictures.

https://data.argo.coop/s/ifw2qCad95bf2Wg
https://data.argo.coop/s/D8Hn3tnMTHZ3D62

gregh

#9
This is really strange.
When I boot without a serial cable attached, I can ping the board and ssh into it with that image:
https://images.olimex.com/release/a20/A20-OLinuXino-bullseye-base-20220413-094751.img.7z

gregh

When the 3.3V pin of the uart0 is not connected to the usb/serial cable it works, when it is connected it does not work.

LubOlimex

Do not connect the 3.3V of the cable!!! This way you are causing a short-circuit! Only RX, TX and GND are required!
Technical support and documentation manager at Olimex

gregh

yes, thank you. A warning in the docs would be good.

donwynne