A20 quickstart

Started by maxwaldo, January 29, 2021, 11:16:40 PM

Previous topic - Next topic

LubOlimex

Good progress on limiting down the possibilities.

Root username is root and password is olimex.

Make sure to perform a software restart after first boot, some configurations are performed and might require a soft restart.

You used the board with the Megabit Ethernet. Which Ethernet connector are you using?

I will test again, can you tell me which image exactly did you use, and post the log again (until it shows the "No phy led trigger registered for speed(-1)" message). Thanks.
Technical support and documentation manager at Olimex

maxwaldo

I used:
9b1e167e50bc225a6ad6048c12c3e762  A20-OLinuXino-buster-minimal-20210127-100834.img

I am no longer able to reproduce the "No phy led trigger registered for speed(-1)" message although I am sure I saw it even after firstboot.

I am using the LAN1, the connector left of the HDMI. The LEDs come on but I am unable to connect with my local network.

"ip link show" sometimes shows no carrier. Is it possible that these issues are power supply related?

LubOlimex

> I am no longer able to reproduce the "No phy led trigger registered for speed(-1)" message although I am sure I saw it even after firstboot.

During first boot some board recognition is performed and some of the settings get applied after the first reboot (power down). It is normal to have some extra error in the first boot after preparing the card and booting it for first time.

I tested that image and board and there is no software issue in the Linux related to the LAN. Board connects fine here.

> I am using the LAN1, the connector left of the HDMI. The LEDs come on but I am unable to connect with my local network.



> Is it possible that these issues are power supply related?

No. Something related to the network settings either in your network equipment or the A20 OLinuXino board.

Do you have DHCP enabled in both places? Try to play fiddle with the options and settings...
Technical support and documentation manager at Olimex

maxwaldo

OK. I have had some succes...

Using the EVB and the A20-SOM204-1Gs16Me16G-MC Rev.C3 eth is working on LAN2, the connector to the right of the VGA.

Using the EVB with the A20-SOM204-1G-M eth is not working on LAN2 or LAN1.
Interestingly LAN1 shows some LEDs when a cable is inserted but LAN2 does not...

I assume this is now just a configuration issue. How do I switch between LAN1 and LAN2?

Whe does the one board behave so much differently than the other? They are both supposed to have Gigabyte eth right?

LubOlimex

#19
> Whe does the one board behave so much differently than the other? They are both supposed to have Gigabyte eth right?

They are supposed to have BOTH MB and GB ethernet (-M flag in the name means extra MB ethernet). However, you can't use them both (MB and GB ethernet) at the same time - either one or the other. I don't think there is a script that allows to easly swtich between MB and GB ethernet in Olimage.

Check if the boards get properly recognized by the Linux at the start of the boot. This means that "A20-SOM204-1Gs16Me16G-MC" get listed at the start of boots as "A20-SOM204-1Gs16Me16G-MC" and "A20-SOM204-1G-M" gets listed as "A20-SOM204-1G-M".

Edit: It seems that A20-SOM204-1G-M has only MbE chip, no GbE chip at all. To enable it run "olinuxino-overlay" script.
Technical support and documentation manager at Olimex

maxwaldo

I read that using both GB and MB eth at the same time is not possible. This is not a problem. But I must have GB on the same port using both boards.

If there is no easy script to switch between them then how is it done? :)

I am using this to configure the board:

olinuxino config write 10257 C 00017144 30:1F:9A:D0:BD:BA

and am occasionally seeing the LED error again. But only when no ethernet cable is connected.

U-Boot 2021.01+olimex-1-20210127.093516 (Jan 27 2021 - 09:36:18 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    A20-SOM204-1G-M Rev.C
SN:    00017144
MAC:   30:1F:9A:D0:BD:BA
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4... OK
In:    serial
Out:   serial
Err:   serial
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c0b000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 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 2 ms (1.1 MiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
1039 bytes read in 4 ms (252.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15483987 bytes read in 847 ms (17.4 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-10257' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.10-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    6468064 Bytes = 6.2 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   18a43fe8
     Hash algo:    sha1
     Hash value:   e2744c1327b8835b9da88ec0ca5ab298a5565252
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-10257' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.10.10-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5862b3e4
     Data Size:    8561408 Bytes = 8.2 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   b7640afa
     Hash algo:    sha1
     Hash value:   6f7c55e613677cb9c8d4c9070c8b0c702a0d5aab
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5862b3e4 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-10257' configuration
   Trying 'fdt-9' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58eab2d0
     Data Size:    44042 Bytes = 43 KiB
     Architecture: ARM
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   051779e9
     Hash algo:    sha1
     Hash value:   a86ad290378f3b8c61ee802127ab0ee2b8eebc79
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58eab2d0 to 0x4fa00000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Kernel Image
   Loading Ramdisk to 497d5000, end 49fff300 ... OK
   Loading Device Tree to 497c7000, end 497d4c09 ... OK
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi1-spidev.dtbo'...
408 bytes read in 8 ms (49.8 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi2-spidev.dtbo'...
408 bytes read in 8 ms (49.8 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c2.dtbo'...
726 bytes read in 8 ms (87.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi0.dtbo'...
1001 bytes read in 9 ms (108.4 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi1.dtbo'...
1005 bytes read in 8 ms (122.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi2.dtbo'...
1005 bytes read in 8 ms (122.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart3.dtbo'...
863 bytes read in 8 ms (104.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart4.dtbo'...
867 bytes read in 8 ms (105.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart7.dtbo'...
867 bytes read in 8 ms (105.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-can.dtbo'...
732 bytes read in 8 ms (88.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/som204-lcd-olinuxino.dtbo'...
2229 bytes read in 8 ms (271.5 KiB/s)

Starting kernel ...

[    0.003962] /cpus/cpu@0 missing clock-frequency property
[    0.004009] /cpus/cpu@1 missing clock-frequency property
[    0.924003] sun4i-usb-phy 1c13400.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  ] Set up automount Arbitrary�...s File System Automount Point.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Reached target Slices.
[  OK  ] Started Forward Password R�...uests to Wall Directory Watch.
[  OK  ] Listening on Journal Socket.
         Starting Restore / save the current clock...
         Starting Create list of re�...odes for the current kernel...
         Starting File System Check on Root Device...
         Starting Nameserver information manager...
         Mounting Kernel Debug File System...
         Mounting POSIX Message Queue File System...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
         Starting Set the console keyboard layout...
[  OK  ] Listening on udev Control Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Started Dispatch Password �...ts to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Local Encrypted Volumes.
         Starting Load Kernel Modules...
[  OK  ] Started Restore / save the current clock.
[  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  ] Mounted POSIX Message Queue File System.
[  OK  ] Started File System Check Daemon to report status.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Nameserver information manager.
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Apply Kernel Variables.
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting Create System Users...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create System Users.
[  OK  ] Started Set the console keyboard layout.
         Starting Create Static Device Nodes in /dev...
[  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 Set console font and keymap...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started udev Kernel Device Manager.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily apt download activities.
[  OK  ] Reached target Basic System.
         Starting Login Service...
         Starting LSB: Load kernel �...d to enable cpufreq scaling...
[  OK  ] Started Daily Cleanup of Temporary Directories.
         Starting Restore /etc/reso�... the ppp link was shut down...
[  OK  ] Started Realtek H5 bluetooth support.
[  OK  ] Started Daily rotation of log files.
[   10.864502] debugfs: Directory '1c22c00.codec' with parent 'sun4i-codec' already present!
         Starting System Logging Service...
         Starting Modem Manager...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
[   11.390025] lcd_olinuxino 2-0050: error reading from device at 00
         Starting Network Manager...
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
         Starting WPA supplicant...
         Starting Resets System Activity Data Collector...
         Starting LCD-OLinuXino RTP calibrabion...
[  OK  ] Started System Logging Service.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Restore /etc/resol�...re the ppp link was shut down.
[  OK  ] Started Resets System Activity Data Collector.
[  OK  ] Started LCD-OLinuXino RTP calibrabion.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started LSB: Load kernel m�...ded to enable cpufreq scaling.
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Started Network Manager.
         Starting Hostname Service...
         Starting Authorization Manager...
[  OK  ] Reached target Bluetooth.
[  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...
[  OK  ] Listening on Load/Save RF �...itch Status /dev/rfkill Watch.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started ifup for eth0.
[  OK  ] Started Save/Restore Sound Card State.                                                                         
[  OK  ] Started Authorization Manager.                                                                                 
[  OK  ] Started Load/Save Screen B�...htness of backlight:backlight.                                                     |
[  OK  ] Started Hostname Service.                                                                                       
[  OK  ] Started Modem Manager.                                                                                         
         Starting Network Manager Script Dispatcher Service...
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Reached target Sound Card.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Login Service.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyGS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 10 a20-olinuxino ttyS0

a20-olinuxino login: root
Password:
Last login: Wed Feb 24 21:39:28 UTC 2021 on ttyS0
Linux a20-olinuxino 5.10.10-olimex #093716 SMP Wed Jan 27 09:38:40 UTC 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
[   70.826666] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[   82.090749] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[   96.426658] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)

root@a20-olinuxino:~# ip link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 02:07:04:81:a1:d4 brd ff:ff:ff:ff:ff:ff
3: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 58:b3:fc:29:06:f6 brd ff:ff:ff:ff:ff:ff
root@a20-olinuxino:~#
root@a20-olinuxino:~# ping google.com
ping: google.com: Temporary failure in name resolution
root@a20-olinuxino:~#
root@a20-olinuxino:~# [  796.842659] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[  831.658644] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)


maxwaldo

dmesg may be usefull.
...

[   13.068780] g_serial gadget: Gadget Serial v2.4
[   13.068807] g_serial gadget: g_serial ready
[   14.946443] cfg80211: failed to load regulatory.db
[   23.138165] random: crng init done
[   23.138194] random: 7 urandom warning(s) missed due to ratelimiting
[   23.402381] sun7i-dwmac 1c50000.ethernet eth0: PHY [stmmac-0:03] driver [Generic PHY] (irq=POLL)
[   23.404125] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
[   23.404145] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
[   23.404161] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
[   23.404174] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
[   23.405227] sun7i-dwmac 1c50000.ethernet eth0: configuring for phy/rgmii link mode
[   23.418394] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx
[   23.418466] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.651908] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[   33.642869] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   33.770164] vcc3v0: disabling
[   33.770191] vcc5v0: disabling
[   33.770209] usb0-vbus: disabling
[   34.666928] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx
[   46.954644] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   47.978897] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   59.242871] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   60.266930] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   61.290674] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   62.314916] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   64.362643] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   65.386902] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
[   66.410650] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   67.434898] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   68.458654] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   69.482894] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   71.530683] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   72.554903] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   79.722632] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   80.747013] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   81.770651] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   83.818929] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx
[   96.106679] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[   97.130912] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  109.418672] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[  110.442901] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  112.490648] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[  113.514921] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  115.562702] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[  116.586932] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
[  122.730635] sun7i-dwmac 1c50000.ethernet eth0: Link is Down
[  123.754898] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx
[  124.778644] sun7i-dwmac 1c50000.ethernet eth0: Link is Down

LubOlimex

Sorry for delay in response. Needed some time to evaluate everything again.

First to enable Megabit Ethernet for A20-SOM204-1G-M:

1. Use the Megabit connector of the EVB board. The Megabit connector is LAN1 (near to the HDMI port).

2. Start the board, login and execute script:

"olinuxino-overlay"

3. Navigate down and mark (using "space" key) the second option "som204-emac.dtbo" - this option enables the Megabit chip. Navigate down (using "TAB" key) then click ok to save the changes and reboot the board when prompted.

4. After the reboot the Megabit connection should work.

Using the same configuration option you can switch between GbE and MbE in A20-SOM204-1Gs16Me16G-MC.
Technical support and documentation manager at Olimex

LubOlimex

Notice that I was wrong and mislead you! It seems A20-SOM204-1G-M has only MbE chip, no GbE chip!
Technical support and documentation manager at Olimex

maxwaldo

#24
Just an update for anyone googling...

Check that the SOM has the GbE phy mounted before trying to use GbE.

LAN1 - MbE
LAN2 - GbE

To enable MbE use olinuxino-overlay and select som204-emac.dtbo.

The boot issue was resolved. It seems to be due to the sdcard traces.
If you see messages like this:
[    3.296814] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    4.301761] sunxi-mmc 1c0f000.mmc: send stop command failed

You can try using the eval board to instal to NAND. Then boot should work without the sd card.