eth0 disappears

Started by frm, November 22, 2025, 02:15:28 AM

Previous topic - Next topic

frm

Hi all,
I just unboxed my shiny new A64, imaged with the "A64-OLinuXino-bullseye-base-20231106-081613.img" image (stored on SD card).
I do have also the MOD-WIFI-RTL8188EUS-ANT part, so I expect to have 2 ethernet interface: the wired RJ45 eth interface and the wireless one.

Surprisingly, the first one is what's giving me troubles (wired Eth interface).
On the first boot I actually did have "eth0". Then I think I rebooted after reading a message about the DTS tree initial setup being completed (IIRC).
After reboot eth0 was disappeared. I read some thread about Eth interface being multiplexed with the LCD display so I used the "olinuxino-display" utility to set LCD mode to DISABLED. Reboot. Eth0 was there.

Now after another reboot eth0 is gone again.
I tried again to set LCD to DISABLED with "olinuxino-display" and rebooted. Eth0 is still not there.
This is what I see in kernel log:

# dmesg | grep -i ethernet
[    1.309067] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    1.309076] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    1.309490] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.309513] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 1806 (expect 0)
[    1.309782] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.309790] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.309797] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.309803] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.309809] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.309816] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.418776] dwmac-sun8i 1c30000.ethernet: EMAC reset timeout
[    1.424451] dwmac-sun8i 1c30000.ethernet eth0: stmmac_dvr_remove: removing driver
[    1.440228] dwmac-sun8i: probe of 1c30000.ethernet failed with error -110

my kernel is:

# uname -a
Linux viesmann-olinuxino 5.10.180-olimex #092646 SMP Tue Jul 25 09:28:50 UTC 2023 aarch64 GNU/Linux

is this a known issue?

frm

I can copy here also the boot log taken from UART:

U-Boot SPL 2021.04+olimex-1-20231103.141125 (Nov 03 2023 - 14:12:49 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.0(debug):
NOTICE:  BL31: Built : 23:33:29, Nov 27 2018
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x40b18b8, model: Olimex A64-Olinuxino-eMMC
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  BL31: PMIC: Detected AXP803 on RSB.
INFO:    PMIC: AXP803: Enabling DRIVEVBUS
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2021.04+olimex-1-20231103.141125 (Nov 03 2023 - 14:12:49 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Olimex A64-Olinuxino-eMMC
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from EXT4... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
Could not get PHY for ethernet@1c30000: addr 1
eth1: usb_ether
starting USB...
Bus usb@1c1a000: USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1b000: USB EHCI 1.00
Bus usb@1c1b400: USB OHCI 1.0
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1b000 for devices... 2 USB Device(s) found
scanning bus usb@1c1b400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2274 bytes read in 3 ms (740.2 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
460 bytes read in 2 ms (224.6 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
30553463 bytes read in 1308 ms (22.3 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8367' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.180-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d4
     Data Size:    20115464 Bytes = 19.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   b03bc58f
     Hash algo:    sha1
     Hash value:   5e019dd581acd68089a70153bfd56c3f01bd1b47
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
....

I guess that "Could not get PHY for ethernet@1c30000: addr 1" might be a sign of an HW issue?
If that's the case I hope I can return the board and get a new one cause it's fresh new.