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.

LubOlimex

1. What is the state of the PHYRST1 PTH jumper? Is it closed or open? You also need to open that jumper in conjunction with running the script.

2. What exactly is the name and variant of the A64 board that you got (as printed on the box)? So I can test it myself.
Technical support and documentation manager at Olimex

frm

> 1. What is the state of the PHYRST1 PTH jumper? Is it closed or open? You also need to open that jumper in conjunction with running the script.

It's open


> 2. What exactly is the name and variant of the A64 board that you got (as printed on the box)? So I can test it myself.

This is an A64-Olinuxino-1G board, PN 88575


Thanks!

LubOlimex

It behaves the similarly up to a point here. On first boot Ethernet works just fine, after a reboot settings for LCD output get loaded and Ethernet stops. However, here when I run "olinuxino-display" and select the bottom option - "DISABLE" and perform a reboot, the Ethernet starts working.

This is my bootlog after running "DISABLE" and rebooting:

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
eth0: ethernet@1c30000, 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... 1 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 ...
  Using 'config-8367' configuration
  Trying 'ramdisk-1' ramdisk subimage
    Description:  Ramdisk for kernel 5.10.180-olimex
    Type:        RAMDisk Image
    Compression:  Unknown Compression
    Data Start:  0x5932f214
    Data Size:    10231694 Bytes = 9.8 MiB
    Architecture: AArch64
    OS:          Linux
    Load Address: 0x4fe00000
    Entry Point:  0x4fe00000
    Hash algo:    crc32
    Hash value:  d85ae050
    Hash algo:    sha1
    Hash value:  142ccf6425ab1d88cd83d10c57f2d22fcc57789a
  Verifying Hash Integrity ... crc32+ sha1+ OK
  Loading ramdisk from 0x5932f214 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
  Using 'config-8367' configuration
  Trying 'fdt-1' fdt subimage
    Description:  unavailable
    Type:        Flat Device Tree
    Compression:  uncompressed
    Data Start:  0x59cf1294
    Data Size:    40945 Bytes = 40 KiB
    Architecture: AArch64
    Load Address: 0x4fa00000
    Hash algo:    crc32
    Hash value:  e61e59cb
    Hash algo:    sha1
    Hash value:  f309d34a7a9cdd4dc961ae36695404c71954f48b
  Verifying Hash Integrity ... crc32+ sha1+ OK
  Loading fdt from 0x59cf1294 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
  Trying 'overlay-1' fdt subimage
    Description:  unavailable
    Type:        Flat Device Tree
    Compression:  uncompressed
    Data Start:  0x59d2279c
    Data Size:    330 Bytes = 330 Bytes
    Architecture: AArch64
    Load Address: 0x4fa10000
    Hash algo:    crc32
    Hash value:  4feb8819
    Hash algo:    sha1
    Hash value:  5a2294834f1bb2916cdbcde98423a535ef16022f
  Verifying Hash Integrity ... crc32+ sha1+ OK
  Loading fdt from 0x59d2279c to 0x4fa10000
  Booting using the fdt blob at 0x4fa00000
  Loading Kernel Image
  Loading Ramdisk to 4963e000, end 49ffff8e ... OK
  Loading Device Tree to 0000000049631000, end 000000004963dfec ... OK
Applying overlay: '/usr/lib/olinuxino-overlays/sun50i-a64/sun50i-a64-i2c0.dtbo'...
330 bytes read in 5 ms (64.5 KiB/s)

Starting kernel ...

[    0.859198] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
[    0.859775] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    1.186127] sun8i-dw-hdmi 1ee0000.hdmi: Couldn't get regulator
[    1.186569] sun4i-drm display-engine: Couldn't bind all pipelines components
[    1.204207] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
Loading, please wait...
Starting version 247.3-7+deb11u4
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk2p1] fsck.ext4 -a -C0 /dev/mmcblk2p1
/dev/mmcblk2p1: clean, 136815/955808 files, 849621/3886976 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Debian GNU/Linux 11 (bullseye)!

[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-modprobe.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Forward Password R...uests to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary...s File System Automount Point.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slices.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
        Mounting Huge Pages File System...
        Mounting POSIX Message Queue File System...
        Mounting Kernel Debug File System...
        Mounting Kernel Trace File System...
        Starting Restore / save the current clock...
        Starting Set the console keyboard layout...
        Starting Create list of st...odes for the current kernel...
        Starting Load Kernel Module configfs...
        Starting Load Kernel Module drm...
        Starting Load Kernel Module fuse...
[  OK  ] Started Nameserver information manager.
[  OK  ] Reached target Network (Pre).
        Starting Journal Service...
        Starting Load Kernel Modules...
        Starting Remount Root and Kernel File Systems...
        Starting Coldplug All udev Devices...
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Finished Restore / save the current clock.
[  OK  ] Finished Create list of st... nodes for the current kernel.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Modules.
[  OK  ] Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Set the console keyboard layout.
        Mounting FUSE Control File System...
        Mounting Kernel Configuration File System...
        Starting Load/Save Random Seed...
        Starting Apply Kernel Variables...
        Starting Create System Users...
[  OK  ] Started Journal Service.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create System Users.
        Starting Flush Journal to Persistent Storage...
        Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
        Starting Set console font and keymap...
        Starting Tell Plymouth To Write Out Runtime Data...
        Starting Create Volatile Files and Directories...
        Starting Rule-based Manage...for Device Events and Files...
[  OK  ] Finished Set console font and keymap.
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Finished Coldplug All udev Devices.
        Starting Helper to synchronize boot up for ifupdown...
        Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
        Starting Raise network interfaces...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Started Rule-based Manager for Device Events and Files.
        Starting Show Plymouth Boot Screen...
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password R...s to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target System Initialization.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Onli...ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Run system activit...ounting tool every 10 minutes.
[  OK  ] Started Generate summary o...esterday's process accounting.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
        Starting Avahi mDNS/DNS-SD Stack...
        Starting Bluetooth management mechanism...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
        Starting Network Manager...
        Starting Remove Stale Onli...t4 Metadata Check Snapshots...
        Starting Initialize hardware monitoring sensors...
        Starting LSB: Load kernel ...d to enable cpufreq scaling...
[  OK  ] Started Realtek H5 bluetooth support.
        Starting LCD-OLinuXino RTP calibrabion...
        Starting Authorization Manager...
        Starting System Logging Service...
        Starting Resets System Activity Logs...
        Starting User Login Management...
        Starting Disk Manager...
        Starting WPA supplicant...
[  OK  ] Finished Initialize hardware monitoring sensors.
[  OK  ] Finished Resets System Activity Logs.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Reached target Hardware activated USB gadget.
[  OK  ] Finished LCD-OLinuXino RTP calibrabion.
[  OK  ] Finished Remove Stale Onli...ext4 Metadata Check Snapshots.
[  OK  ] Started System Logging Service.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started LSB: Load kernel m...ded to enable cpufreq scaling.
        Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Started User Login Management.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
        Starting LSB: Set sysfs variables from /etc/sysfs.conf...
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Started ifup for eth0.
[  OK  ] Started Authorization Manager.
        Starting Modem Manager...
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
        Starting Network Manager Wait Online...
        Starting CUPS Scheduler...
        Starting Network Time Service...
        Starting OpenVPN service...
        Starting OpenBSD Secure Shell server...
        Starting Permit User Sessions...
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Finished OpenVPN service.
        Starting Hostname Service...
[  OK  ] Finished Permit User Sessions.
        Starting Light Display Manager...
        Starting Hold until boot process finishes up...
[  OK  ] Started Network Time Service.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Finished Hold until boot process finishes up.

Debian GNU/Linux 11 a64-olinuxino ttyS0

a64-olinuxino login:

That line is indeed different. Can you try a different LAN cable? Also try re-writing the card and check if it works again before rebooting.

Maybe also test with the Armbian image (root/1234) from our FTP: https://ftp.olimex.com/Allwinner_Images/a64-olinuxino/linux/1.latest_images/bionic/images/Armbian_5.92.1_Olinuxino-a64_Ubuntu_bionic_next_5.2.5_desktop_emmc_fix.img.7z
Technical support and documentation manager at Olimex