Ethernet Interface Not Showing Up

Started by afancher, November 09, 2020, 05:37:21 am

Previous topic - Next topic

afancher

Using current Buster Base image:
http://images.olimex.com/release/a64/A64-OLinuXino-buster-base-20201029-135151.img.7z

Ethernet interface does not seem detected properly any longer.

At boot the following is shown:
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether

Then, 

root@a64-olinuxino:~# ifconfig -a

dummy0: flags=130<BROADCAST,NOARP>  mtu 1500
        ether f6:a7:9b:a0:86:bb  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 204  bytes 16508 (16.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 204  bytes 16508 (16.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Perhaps something to be rectified in next release?

afancher

November 09, 2020, 06:15:23 am #1 Last Edit: November 09, 2020, 06:27:09 am by afancher
Update:

This issue is resolved in A64-OLinuXino-buster-base-20201105-143953.img

Good work guys!

afancher

Arrrrg.....After a reboot ethernet interface is not accessible :(

LubOlimex

We are no longer maintaining the Armbian-based images, try the Olimages from here:

http://images.olimex.com/release/a64/
Technical support and documentation manager at Olimex

afancher

Lub,

I've abandoned ship on Armbian as well, the releases I mentioned above are the ones from http://images.olimex.com/release/a64/

afancher

Here is a boot log, if this helps at all...

U-Boot SPL 2020.04+olimex-2-20201004.114205 (Jan 30 2020 - 11:10:18 +0000)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.2(debug):v2.2-8-g51ce3c6-dirty
NOTICE:  BL31: Built : 19:42:23, Mar 20 2020
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x40ab7c0, 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:    PMIC: AXP803: dcdc1 voltage: 3.300V
INFO:    PMIC: AXP803: dcdc5 voltage: 1.360V
INFO:    PMIC: AXP803: dcdc6 voltage: 1.100V
INFO:    PMIC: AXP803: dldo1 voltage: 3.300V
INFO:    PMIC: AXP803: dldo4 voltage: 3.300V
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 2020.04+olimex-2-20201004.114205 (Jan 30 2020 - 11:10:18 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Olimex A64-Olinuxino-eMMC
DRAM:  2 GiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from EXT4... OK
In:    serial
Out:   vidconsole
Err:   vidconsole
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, 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... 5 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...
528 bytes read in 3 ms (171.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
33034755 bytes read in 1418 ms (22.2 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.8.18-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    25585672 Bytes = 24.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   a42e6b8d
     Hash algo:    sha1
     Hash value:   284210c2f857fc6e08b10503552aaceb5e2b4c64
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.8.18-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x59866a10
     Data Size:    7246275 Bytes = 6.9 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   3258db19
     Hash algo:    sha1
     Hash value:   a8336158bc1bd7a97dc54b9b7183c303642ff246
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x59866a10 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'fdt-3' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x59f6356c
     Data Size:    38785 Bytes = 37.9 KiB
     Architecture: AArch64
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   7ab14f2c
     Hash algo:    sha1
     Hash value:   0f961de83cd0c41220ec150cee9e293382e7ea48
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x59f6356c to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x59f8042c
     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 0x59f8042c to 0x4fa10000
   Booting using the fdt blob at 0x4fa00000
   Loading Kernel Image
   Loading Ramdisk to 49916000, end 49fff1c3 ... OK
   Loading Device Tree to 0000000049909000, end 000000004991577c ... OK
Applying overlay: '/usr/lib/olinuxino-overlays/sun50i-a64/sun50i-a64-i2c0.dtbo'...
330 bytes read in 7 ms (45.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun50i-a64/sun50i-a64-lcd-olinuxino.dtbo'...
2305 bytes read in 8 ms (281.3 KiB/s)

Starting kernel ...

[    3.023804] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
[    3.024368] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    3.275432] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
Loading, please wait...
Starting version 241
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.
Warning: fsck not present, so skipping root file system
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Debian GNU/Linux 10 (buster)!

[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Set up automount Arbitrary...s File System Automount Point.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket.
         Starting Create list of re...odes for the current kernel...
         Starting File System Check on Root Device...
         Mounting Kernel Debug File System...
         Starting Restore / save the current clock...
         Starting Set the console keyboard layout...
         Mounting Huge Pages File System...
         Mounting POSIX Message Queue File System...
         Starting Nameserver information manager...
         Starting Load Kernel Modules...
         Starting Journal Service...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting udev Coldplug all Devices...
[  OK  ] Started Forward Password R...uests to Wall Directory Watch.
[  OK  ] Started Create list of req... nodes for the current kernel.
[  OK  ] Started File System Check on Root Device.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Restore / save the current clock.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started File System Check Daemon to report status.
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Create System Users...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
[  OK  ] Started Create System Users.
[  OK  ] Started Load/Save Random Seed.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
         Starting Set console font and keymap...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Set console font and keymap.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started udev Kernel Device Manager.
         Starting Show Plymouth Boot Screen...
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password R...s to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Reached target Paths.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Realtek H5 bluetooth support.
         Starting Restore /etc/reso... the ppp link was shut down...
[  OK  ] Started D-Bus System Message Bus.
         Starting WPA supplicant...
         Starting Disk Manager...
[  OK  ] Started CUPS Scheduler.
         Starting LCD-OLinuXino RTP calibrabion...
         Starting System Logging Service...
         Starting Network Manager...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Daily apt download activities.
[    8.384227] lcd_olinuxino 0-0050: error reading from device at 00
[  OK  ] Started Daily apt upgrade and clean activities.
         Starting Initialize hardware monitoring sensors...
         Starting Login Service...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting LSB: Load kernel ...d to enable cpufreq scaling...
         Starting Resets System Activity Data Collector...
         Starting Modem Manager...
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Restore /etc/resol...re the ppp link was shut down.
[  OK  ] Started LCD-OLinuXino RTP calibrabion.
[  OK  ] Started Resets System Activity Data Collector.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: Load kernel m...ded to enable cpufreq scaling.
[  OK  ] Started Network Manager.
         Starting Hostname Service...
         Starting Network Manager Wait Online...
         Starting Authorization Manager...
[  OK  ] Started Manage Sound Card State (restore and store).
         Starting Save/Restore Sound Card State...
[  OK  ] Created slice system-systemd\x2dbacklight.slice.
         Starting Load/Save Screen ...ness of backlight:backlight...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started WPA supplicant.
[  OK  ] Started Login Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Make remote CUPS printers available locally.
[  OK  ] Reached target Network.
         Starting OpenVPN service...
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Load/Save Screen B...htness of backlight:backlight.
[  OK  ] Started OpenVPN service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Hostname Service.
         Starting Light Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Authorization Manager.
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
[  OK  ] Listening on Load/Save RF ...itch Status /dev/rfkill Watch.
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Disk Manager.
[  OK  ] Started OpenBSD Secure Shell server.

LubOlimex

What is the position of PHYRST jumper? Is it open?
Technical support and documentation manager at Olimex

afancher

Yes the jumper is open as I'm not using the LCD at this time.

On board ethernet worked fine until first reboot, then was hosed.

I was still able to use a USB ethernet interface to download packages, but the on-board doesn't seem to work consistently.

LubOlimex

You have A64-OLinuXino-2Ge8G-IND right?
Technical support and documentation manager at Olimex


LubOlimex

It seems that the display auto detection LCD script interferes with the Ethernet setup.

Please, run:

olinuxino-display

Scroll down to option "DISABLE" and reboot.

The Ethernet should now work.

We are considering what are our options to automate this.
Technical support and documentation manager at Olimex

greypilgrim

Quote from: LubOlimex on November 12, 2020, 11:21:17 amIt seems that the display auto detection LCD script interferes with the Ethernet setup.

Please, run:

olinuxino-display

Scroll down to option "DISABLE" and reboot.

The Ethernet should now work.

We are considering what are our options to automate this.
If the scripts ran as one-shot systemd services, couldn't one depend (wait) on the other?

afancher

Thanks Lub.

I forgot there was a command line utility for LCD selection, I was looking at olinuxino monitor in the u-boot menu and didn't see an option for none/disabled, this does the trick.  Thanks again!

gDanix

Hi!

I'm suffering this issue, too. Can confirm that it happens both for:
 * A64-OLinuXino-buster-minimal-20201105-143953.img
 * A64-OLinuXino-focal-minimal-20201105-143953.img
I think I've tried bionic too, but I'm not 100% sure (I was trying to solve another issue)

Th solution provided by Lub also worked for me (Thank you!)

My board model is 1Ge4GW.