Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: gregh on May 09, 2022, 10:19:21 pm

Title: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 09, 2022, 10:19:21 pm
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
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: LubOlimex on May 10, 2022, 09:46:51 am
Is the board and board revision properly recognized at start of boot? What does the board prints during u-boot?
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 10:12:14 am
Below is the output during boot and dmesg. It is a hw revision J board.
Thank you.

boot dmesg olimex a20 micro latest image (https://data.argo.coop/s/Pa3MKPWx6TbbBTE)
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: LubOlimex on May 10, 2022, 02:21:57 pm
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
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 02:48:20 pm
It worked without an issue for years with an oldstable Debian install.
I can try if you want with other images and report back.
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 03:22:49 pm
your image did not boot properly:

https://data.argo.coop/s/ZEdqiiSmPaDiWHP
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 03:35:36 pm
I also tried with the debian installer image (https://deb.debian.org/debian/dists/stable/main/installer-armhf/current/images/netboot/SD-card-images/)

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
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: LubOlimex on May 10, 2022, 03:52:36 pm
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?
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 04:32:40 pm
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
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 06:26:36 pm
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
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 10, 2022, 06:53:58 pm
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.
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: LubOlimex on May 17, 2022, 10:16:26 am
Do not connect the 3.3V of the cable!!! This way you are causing a short-circuit! Only RX, TX and GND are required!
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: gregh on May 17, 2022, 10:24:17 am
yes, thank you. A warning in the docs would be good.
Title: Re: No eth0 with latest image, older A20 Micro board
Post by: donwynne on September 14, 2022, 06:04:04 am
Yes, Do not connect the 3.3V of the cable!!!