A20 quickstart

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

Previous topic - Next topic

maxwaldo

Hello!

I have built a board using the SOM204 and it is not booting correctly.

I have:
  • A20-SOM204-1G
  • A20-DEBIAN-SERVER-SD
  • custom carrier board (CCB)

The CCB is a derivative of the A20-SOM204-EVB and largely follows the provided schematic.
I am using the sdcard to boot from.
So far The board appears to boot but gets stuck.
Bellow is the debug output during boot:

\00\00\00
U-Boot SPL 2020.04+olimex-2-20201004.114205 (Jan 30 2020 - 11:10:18 +0000)

DRAM: 1024 MiB

CPU: 912000000Hz, AXI/AHB/APB: 3/2/2

Loading configuration from EEPROM: Error

Loading configuration from MMC: OK

Verifying data: Error

Error



WARNING: The board cannot be detected!

Please run:

'olinuxino config list' - Select your board

'olinuxino config write' - Store the board configuration

'reset' - Reset the board and load the configuration



Using 'A20-OLinuXino-LIME' as fallback configuration.



Trying to boot from MMC1





U-Boot 2020.04+olimex-2-20201004.114205 (Jan 30 2020 - 11:10:18 +0000) Allwinner Technology



CPU:   Allwinner A20 (SUN7I)

ID:    A20-OLinuXino-LIME Rev.A

SN:    00000000

MAC:   FF:FF:FF:FF:FF:FF

I2C:   ready

DRAM:  1 GiB

MMC:   mmc@1c0f000: 0

Loading Environment from EXT4... OK

DDC: timeout reading EDID

DDC: timeout reading EDID

DDC: timeout reading EDID

In:    serial

Out:   serial

Err:   serial

Allwinner mUSB OTG (Peripheral)

Net:   eth0: ethernet@1c50000

Warning: usb_ether using MAC address from ROM

, 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:  2  1  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 43100000

Boot script loaded from mmc

Checking for /uEnv.txt...

Checking for /boot/uEnv.txt...

400 bytes read in 3 ms (129.9 KiB/s)

Loaded environment from /boot/uEnv.txt

Loading FIT image...

14946095 bytes read in 2412 ms (5.9 MiB/s)

## Loading kernel from FIT Image at 58000000 ...

   Using 'config-7739' configuration

   Trying 'kernel-1' kernel subimage

     Description:  Linux kernel 5.8.18-olimex

     Type:         Kernel Image

     Compression:  uncompressed

     Data Start:   0x580000d0

     Data Size:    8345888 Bytes = 8 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x40080000

     Entry Point:  0x40080000

     Hash algo:    crc32

     Hash value:   3657ea3a

     Hash algo:    sha1

     Hash value:   1833ddc4d330657aab0ecf5e236569ab94977dd0

   Verifying Hash Integrity ... crc32+ sha1+ OK

## Loading ramdisk from FIT Image at 58000000 ...

   Using 'config-7739' configuration

   Trying 'ramdisk-1' ramdisk subimage

     Description:  Ramdisk for kernel 5.8.18-olimex

     Type:         RAMDisk Image

     Compression:  Unknown Compression

     Data Start:   0x587f5b24

     Data Size:    6150506 Bytes = 5.9 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x4fe00000

     Entry Point:  0x4fe00000

     Hash algo:    crc32

     Hash value:   9723bdc6

     Hash algo:    sha1

     Hash value:   fc4a7cb87ea7c62825f16de8f153a9ee1d89c852

   Verifying Hash Integrity ... crc32+ sha1+ OK

   Loading ramdisk from 0x587f5b24 to 0x4fe00000

WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!

## Loading fdt from FIT Image at 58000000 ...

   Using 'config-7739' configuration

   Trying 'fdt-1' fdt subimage

     Description:  unavailable

     Type:         Flat Device Tree

     Compression:  uncompressed

     Data Start:   0x58dd357c

     Data Size:    40734 Bytes = 39.8 KiB

     Architecture: ARM

     Load Address: 0x4fa00000

     Hash algo:    crc32

     Hash value:   bf222dcc

     Hash algo:    sha1

     Hash value:   b514113648ca778742daba6219bd003305c41259

   Verifying Hash Integrity ... crc32+ sha1+ OK

   Loading fdt from 0x58dd357c to 0x4fa00000

   Booting using the fdt blob at 0x4fa00000

EHCI failed to shut down host controller.

   Loading Kernel Image

   Loading Ramdisk to 49a22000, end 49fff96a ... OK

   Loading Device Tree to 49a15000, end 49a21f1d ... OK



Starting kernel ...



[    0.003179] /cpus/cpu@0 missing clock-frequency property

[    0.003212] /cpus/cpu@1 missing clock-frequency property

[    3.095686] 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.

Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

Begin: Running /scripts/local-block ... done.

done.

Gave up waiting for root file system device.  Common problems:

 - Boot args (cat /proc/cmdline)

   - Check rootdelay= (did the system wait long enough?)

 - Missing modules (cat /proc/modules; ls /dev)

ALERT!  PARTUUID=737e4a35-01 does not exist.  Dropping to a shell!

Rebooting automatically due to panic= boot argument

[   46.661408] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

[   46.669076] CPU: 0 PID: 1 Comm: init Not tainted 5.8.18-olimex #140443

[   46.675593] Hardware name: Allwinner sun7i (A20) Family

[   46.680841] [<c010cc71>] (unwind_backtrace) from [<c0109239>] (show_stack+0x11/0x14)

[   46.688584] [<c0109239>] (show_stack) from [<c060be2b>] (dump_stack+0x77/0x84)

[   46.695807] [<c060be2b>] (dump_stack) from [<c011ad49>] (panic+0xcd/0x24c)

[   46.702680] [<c011ad49>] (panic) from [<c011f327>] (do_exit+0x867/0x880)

[   46.709376] [<c011f327>] (do_exit) from [<c011f39b>] (do_group_exit+0x2f/0x84)

[   46.716593] [<c011f39b>] (do_group_exit) from [<c011f403>] (sys_exit_group+0x13/0x14)

[   46.724417] [<c011f403>] (sys_exit_group) from [<c0100061>] (ret_fast_syscall+0x1/0x62)

[   46.732408] Exception stack(0xef107fa8 to 0xef107ff0)

[   46.737456] 7fa0:                   00000004 02b06270 00000000 00000000 03e10150 00000000

[   46.745625] 7fc0: 00000004 02b06270 00000000 000000f8 00000002 00000000 02b059ac 00000000

[   46.753790] 7fe0: 000000f8 be835a0c b15fb389 b159d746

[   46.758846] CPU1: stopping

[   46.761558] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.8.18-olimex #140443

[   46.768506] Hardware name: Allwinner sun7i (A20) Family

[   46.773732] [<c010cc71>] (unwind_backtrace) from [<c0109239>] (show_stack+0x11/0x14)

[   46.781470] [<c0109239>] (show_stack) from [<c060be2b>] (dump_stack+0x77/0x84)

[   46.788688] [<c060be2b>] (dump_stack) from [<c010bbd3>] (handle_IPI+0x29f/0x2c8)

[   46.796080] [<c010bbd3>] (handle_IPI) from [<c061d16d>] (gic_handle_irq+0x69/0x6c)

[   46.803644] [<c061d16d>] (gic_handle_irq) from [<c0100b65>] (__irq_svc+0x65/0x94)

[   46.811114] Exception stack(0xef139f58 to 0xef139fa0)

[   46.816159] 9f40:                                                       00000000 035cd860

[   46.824328] 9f60: ef6a6030 c01156e1 ffffe000 00000000 c1005034 00000002 c1004fc8 00000000

[   46.832497] 9f80: c0f9a970 00000000 c1003d00 ef139fa8 c0106a93 c0106a94 40070033 ffffffff

[   46.840669] [<c0100b65>] (__irq_svc) from [<c0106a94>] (arch_cpu_idle+0x28/0x2c)

[   46.848064] [<c0106a94>] (arch_cpu_idle) from [<c0140693>] (do_idle+0x183/0x1f0)

[   46.855456] [<c0140693>] (do_idle) from [<c0140909>] (cpu_startup_entry+0x19/0x20)

[   46.863021] [<c0140909>] (cpu_startup_entry) from [<401015b1>] (0x401015b1)

[   46.869985] Rebooting in 10 seconds..

How do I solve this issue to get it to boot to command line?

Thanks in advance.

-- edit:
I have connected with a uart adapter. and am trying to follow https://www.olimex.com/wiki/ArmbianHowTo Manua board configuration but get the following error:

=> olinuxino config write 8991 k         
Erasing EEPROM configuration...
ERROR: Failed to init eeprom!
Erasing MMC configuration...
Writting EEPROM configuration...
ERROR: Failed to init eeprom!
Writting MMC configuration...
=>

LubOlimex

1) Can you test using the Olimex A20-SOM204-EVB instead of your custom board and confirm if the board boots? If it boots, it is something related to the hardware; if it still doesn't boot it is probably some problem in the software (or in the A20-SOM204 board)

2) We no longer support the Armbian images. We released our own Olimage images as announced here:

https://olimex.wordpress.com/2020/04/21/olimage-mainline-linux-images-building-script-for-all-of-our-olinuxino-and-som-boards/

Can you try how it goes if you re-write the card with latest Olimage:

http://images.olimex.com/release/a20/

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

maxwaldo

#2
Thank you for the reply.

Please update the link here:
https://www.olimex.com/Products/SOM204/A20-SOM204-EVB/
it links to:
ftp://staging.olimex.com/Allwinner_Images/A20-OLinuXino/

which differs from the link you mentioned.

I have removed everything from the custom board. It is now simply the SOM204 connector, 220uF cap (for 5v) and sd card.
I have added console=both and verbosity=7 to then uEnv

Bellow the boot log

A20-OLinuXino-buster-minimal-20210127-100834.img.log:
U-Boot SPL 2021.01+olimex-1-20210127.093516 (Jan 27 2021 - 09:36:18 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


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 Rev.K
SN:    FFFFFFFF
MAC:   02:C7:05:43:34:2F
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4... *** Warning - bad CRC, using default environment

Loading Environment from FAT... ** No device specified **
DDC: timeout reading EDID
DDC: timeout reading EDID
DDC: timeout reading EDID
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, 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 3 ms (740.2 KiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
424 bytes read in 3 ms (137.7 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15483987 bytes read in 2499 ms (5.9 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8991' 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-8991' 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-8991' 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

Starting kernel ...


The green STAT_LED lights up.
With other images I can even get some boot logs. What disables them in your image?

Armbian_5.92.4_Olinuxino-a20_Debian_buster_next_5.2.21.log.log:
U-Boot SPL 2019.04-armbian (Dec 12 2019 - 08:24:28 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
EEPROM: Ready
Config: Valid
Trying to boot from MMC1


U-Boot 2019.04-armbian (Dec 12 2019 - 08:24:28 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: A20-SOM204-1G Rev.K
Serial:FFFFFFFF
MAC:   02:C7:05:43:34:2F
I2C:   ready
DRAM:  1 GiB
NAND:  0 MiB
MMC:   mmc@1c0f000: 0, mmc@1c12000: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
DDC: timeout reading EDID
DDC: timeout reading EDID
DDC: timeout reading EDID
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 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
3798 bytes read in 2 ms (1.8 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
155 bytes read in 1 ms (151.4 KiB/s)
7106666 bytes read in 1152 ms (5.9 MiB/s)
7606112 bytes read in 1233 ms (5.9 MiB/s)
Found mainline kernel configuration
37528 bytes read in 10 ms (3.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 43200000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7106602 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
EHCI failed to shut down host controller.
   Loading Ramdisk to 49938000, end 49fff02a ... OK
   Loading Device Tree to 498c6000, end 49937fff ... OK
Device nand0 not found!

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.21-sunxi (root@ubuntu-development) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.92.4 SMP Thu D9
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=50c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: A20-SOM204-1G
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[-- REDACTED DUE TO FORUM MESSAGE LIMIT --]
[    5.633877] dcdc2: supplied by regulator-dummy
[    5.639032] dcdc3: supplied by regulator-dummy
[    5.645769] axp20x-i2c 1-0034: AXP20X driver loaded
[    5.654190] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    5.662947] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    5.674021] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[    5.683829] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    5.713996] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    5.724365] ledtrig-cpu: registered to indicate activity on CPUs
[    5.730523] hidraw: raw HID events driver (C) Jiri Kosina
[    5.736158] usbcore: registered new interface driver usbhid
[    5.741766] usbhid: USB HID core driver
[    5.746948] Initializing XFRM netlink socket
[    5.752127] NET: Registered protocol family 10
[    5.778646] random: fast init done
[    5.783964] mmc0: host does not support reading read-only switch, assuming write-enable
[    5.794252] mmc0: new high speed SDHC card at address 59b4
[    5.801847] mmcblk0: mmc0:59b4 SD    14.7 GiB
[    5.808208] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    5.847741] Segment Routing with IPv6
[    5.851563] NET: Registered protocol family 17
[    5.856067] NET: Registered protocol family 15
[    5.860600] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.873850] 8021q: 802.1Q VLAN Support v1.8
[    5.878139] Key type dns_resolver registered
[    5.882918] Registering SWP/SWPB emulation handler
[    5.888525] registered taskstats version 1
[    5.892658] Loading compiled-in X.509 certificates
[    5.897587] zswap: loaded using pool lzo/zbud
[    6.811523] sunxi-mmc 1c0f000.mmc: send stop command failed
[    6.819410] Btrfs loaded, crc32c=crc32c-generic
[    6.861983] Key type encrypted registered
[    6.935597] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    6.943114] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[    6.949009] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    6.957982] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc
[    6.967174] scsi host0: ahci-sunxi
[    6.971149] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 39
[    6.989351] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01T00:00:19 UTC (19)
[    7.293975] ata1: SATA link down (SStatus 0 SControl 300)
[    7.302844] Freeing unused kernel memory: 1024K
[    7.307695] Run /init as init process
Loading, please wait...
Starting version 241
[    8.068120] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq
[    8.107632] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    8.244573] axp20x-gpio axp20x-gpio: DMA mask not set
[    8.263085] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[    8.268397] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
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 ... Scanning for Btrfs filesystems
[   14.799712] [drm] Cannot find any crtc or sizes

I do not have an EVB yet. I'd like to test as much as I can before that.

Best Regards

maxwaldo

I have noticed one thing:
=> olinuxino config info
ID:    A20-SOM204-1G Rev.K
SN:    FFFFFFFF
MAC:   02:C7:05:43:34:2F
=>

The board has Rev.C printed on the silkscreen.
Does this make a difference?

LubOlimex

You made a mistake in the beginning that configured the EEPROM wrong, to be specific here:

olinuxino config write 8991 k

There is no revision K of that board, nor that MAC address belongs to us.
Technical support and documentation manager at Olimex

LubOlimex

You need to re-configure the EEPOM with olinuxino config.

What is the exact variant of the A20-SOM204 board that you have? A20-SOM204-1G?
Technical support and documentation manager at Olimex

maxwaldo

#6
It is the A20-SOM204-1G

I have reconfigured with
olinuxino config write 8991 c

Why should the wrong MAC cause the kernel not to boot?

Now I am getting some boot messages from the kernel but it stops at local-premount

U-Boot SPL 2021.01+olimex-1-20210127.093516 (Jan 27 2021 - 09:36:18 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


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 Rev.C
SN:    FFFFFFFF
MAC:   02:C7:05:43:34:2F
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4... OK
DDC: timeout reading EDID
DDC: timeout reading EDID
DDC: timeout reading EDID
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@1c50000, 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...
400 bytes read in 2 ms (195.3 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15483987 bytes read in 2499 ms (5.9 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8991' 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-8991' 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-8991' 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

Starting kernel ...

[    0.003928] /cpus/cpu@0 missing clock-frequency property
[    0.003972] /cpus/cpu@1 missing clock-frequency property
[    0.919970] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    2.238483] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    3.243805] sunxi-mmc 1c0f000.mmc: send stop command failed
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.

I noticed that I can type into the terminal and characters are echoed back. Which is not the case when uboot doesn't boot or the kernal hangs entirely.

If I understand correctly I should see a linux login prompt when the kernel boots completely. Correct?

Is there a way I can increase verbosity further to get an idea of what local premount might be having issues with?

maxwaldo

I have managed to increase debug output.

U-Boot SPL 2021.01+olimex-1-20210127.093516 (Jan 27 2021 - 09:36:18 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


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 Rev.C
SN:    FFFFFFFF
MAC:   02:C7:05:43:34:2F
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4... OK
DDC: timeout reading EDID
DDC: timeout reading EDID
DDC: timeout reading EDID
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@1c50000, 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 3 ms (740.2 KiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
400 bytes read in 3 ms (129.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15483987 bytes read in 2498 ms (5.9 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8991' 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-8991' 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-8991' 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

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.10-olimex (root@runner-cpbkaozn-project-1-concurrent-0) (arm-linux-gnueabihf-gcc (Debian 8.3.0-2) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #093716 SMP Wed Jan 27 09:38:41
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Olimex A20-SOM204-EVB
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000]   HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 20 pages/cpu s50444 r8192 d23284 u81920
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: root=PARTUUID=9cf846ff-01 rootwait console=ttyS0,115200 panic=10 loglevel=7
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] allocated 1048576 bytes of page_ext
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 914504K/1048576K available (10240K kernel code, 1207K rwdata, 2400K rodata, 1024K init, 297K bss, 35768K reserved, 98304K cma-reserved, 262144K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x30/0x3d8 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 35234 entries in 69 pages
[    0.000000] ftrace: allocated 69 pages with 3 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000026] Switching to timer-based delay loop, resolution 41ns
[    0.000654] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001055] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.001460] Console: colour dummy device 80x30
[    0.001548] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001572] pid_max: default: 32768 minimum: 301
[    0.001957] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001981] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003379] CPU: Testing write buffer coherency: ok
[    0.003959] /cpus/cpu@0 missing clock-frequency property
[    0.004000] /cpus/cpu@1 missing clock-frequency property
[    0.004016] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005039] Setting up static identity map for 0x40100000 - 0x40100060
[    0.005253] rcu: Hierarchical SRCU implementation.
[    0.006146] smp: Bringing up secondary CPUs ...
[    0.017226] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.017445] smp: Brought up 1 node, 2 CPUs
[    0.017472] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.017482] CPU: All CPU(s) started in HYP mode.
[    0.017491] CPU: Virtualization extensions available.
[    0.018652] devtmpfs: initialized
[    0.029657] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.030022] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.030064] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.034667] pinctrl core: initialized pinctrl subsystem
[    0.036342] NET: Registered protocol family 16
[    0.038280] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.039219] audit: initializing netlink subsys (disabled)
[    0.039676] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1
[    0.040347] thermal_sys: Registered thermal governor 'fair_share'
[    0.040359] thermal_sys: Registered thermal governor 'bang_bang'
[    0.040374] thermal_sys: Registered thermal governor 'step_wise'
[    0.040753] cpuidle: using governor ladder
[    0.040803] cpuidle: using governor menu
[    0.041095] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.041112] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.083895] iommu: Default domain type: Translated
[    0.084420] SCSI subsystem initialized
[    0.085168] usbcore: registered new interface driver usbfs
[    0.085237] usbcore: registered new interface driver hub
[    0.085301] usbcore: registered new device driver usb
[    0.085803] pps_core: LinuxPPS API ver. 1 registered
[    0.085819] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.085849] PTP clock support registered
[    0.086780] Advanced Linux Sound Architecture Driver Initialized.
[    0.088350] clocksource: Switched to clocksource arch_sys_counter
[    0.149135] VFS: Disk quotas dquot_6.6.0
[    0.149276] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.161356] NET: Registered protocol family 2
[    0.162412] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.162505] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.162589] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.162721] TCP: Hash tables configured (established 8192 bind 8192)
[    0.162893] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.162974] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.163324] NET: Registered protocol family 1
[    0.163832] Trying to unpack rootfs image as initramfs...
[    0.787442] Freeing initrd memory: 8364K
[    0.787952] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.788565] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.790388] Initialise system trusted keyrings
[    0.790839] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.797579] zbud: loaded
[    0.915940] Key type asymmetric registered
[    0.915978] Asymmetric key parser 'x509' registered
[    0.916072] bounce: pool size: 64 pages
[    0.916158] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.916520] io scheduler mq-deadline registered
[    0.916540] io scheduler kyber registered
[    0.916932] io scheduler bfq registered
[    0.918500] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.922982] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.003451] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.006317] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    1.007576] printk: console [ttyS0] disabled
[    1.007716] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 59, base_baud = 1500000) is a 16550A
[    1.730889] printk: console [ttyS0] enabled
[    1.736092] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.745644] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 60, base_baud = 1500000) is a 16550A
[    1.756182] 1c29000.serial: ttyS2 at MMIO 0x1c29000 (irq = 61, base_baud = 1500000) is a 16550A
[    1.765820] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pi not found, using dummy regulator
[    1.775316] 1c29c00.serial: ttyS3 at MMIO 0x1c29c00 (irq = 62, base_baud = 1500000) is a 16550A
[    1.785492] STM32 USART driver initialized
[    1.800887] brd: module loaded
[    1.814405] loop: module loaded
[    1.819120] ahci-sunxi 1c18000.sata: supply ahci not found, using dummy regulator
[    1.826945] ahci-sunxi 1c18000.sata: supply phy not found, using dummy regulator
[    1.837175] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.847875] libphy: Fixed MDIO Bus: probed
[    1.853345] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.861903] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.868328] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.874470] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.880268] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.886958] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.893236] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.898250] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    1.905492] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.911170] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    1.917698] libphy: stmmac: probed
[    2.992020] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.998719] ehci-platform: EHCI generic platform driver
[    3.004818] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.011094] ohci-platform: OHCI generic platform driver
[    3.017577] usbcore: registered new interface driver usb-storage
[    3.025544] sunxi-rtc 1c20d00.rtc: registered as rtc0
[    3.030706] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01T00:01:40 UTC (100)
[    3.039071] i2c /dev entries driver
[    3.044442] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    3.057880] input: axp20x-pek as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[    3.076740] vdd-rtc: supplied by regulator-dummy
[    3.082765] avcc: supplied by regulator-dummy
[    3.088740] vddio-csi0: supplied by regulator-dummy
[    3.094032] vcc-pg: supplied by regulator-dummy
[    3.099321] ldo5: supplied by regulator-dummy
[    3.104577] vdd-cpu: supplied by regulator-dummy
[    3.110056] vdd-int-dll: supplied by regulator-dummy
[    3.117633] axp20x-i2c 0-0034: AXP20X driver loaded
[    3.127828] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.137131] sdhci: Secure Digital Host Controller Interface driver
[    3.143360] sdhci: Copyright(c) Pierre Ossman
[    3.147742] Synopsys Designware Multimedia Card Interface Driver
[    3.154729] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.154935] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    3.169721] ledtrig-cpu: registered to indicate activity on CPUs
[    3.170654] random: fast init done
[    3.175931] hid: raw HID events driver (C) Jiri Kosina
[    3.184598] usbcore: registered new interface driver usbhid
[    3.190217] usbhid: USB HID core driver
[    3.196642] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    3.197526] Initializing XFRM netlink socket
[    3.205114] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    3.210021] NET: Registered protocol family 10
[    3.219450] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq
[    3.236934] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    3.248531] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    3.287573] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.296980] Segment Routing with IPv6
[    3.300875] NET: Registered protocol family 17
[    3.305419] NET: Registered protocol family 15
[    3.305468] mmc0: new high speed SDHC card at address 59b4
[    3.310113] 8021q: 802.1Q VLAN Support v1.8
[    3.316922] mmcblk0: mmc0:59b4 SD    14.7 GiB
[    3.319817] Key type dns_resolver registered
[    3.328604] Registering SWP/SWPB emulation handler
[    3.333682] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    3.340021] sunxi-mmc 1c0f000.mmc: send stop command failed
[    3.346020] registered taskstats version 1
[    3.350209] Loading compiled-in X.509 certificates
[    3.355190] zswap: loaded using pool lzo/zbud
[    3.359662] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    3.365989] sunxi-mmc 1c0f000.mmc: send stop command failed
[    3.372211] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    3.420643] Key type ._fscrypt registered
[    3.424693] Key type .fscrypt registered
[    3.428630] Key type fscrypt-provisioning registered
[    3.504900] Key type encrypted registered
[    3.528224] ahci-sunxi 1c18000.sata: supply ahci not found, using dummy regulator
[    3.536127] ahci-sunxi 1c18000.sata: supply phy not found, using dummy regulator
[    3.596390] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    3.603914] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[    3.609844] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    3.618824] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc
[    4.376320] sunxi-mmc 1c0f000.mmc: send stop command failed
[    4.383332] scsi host0: ahci-sunxi
[    4.387422] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 47
[    4.404104] ALSA device list:
[    4.407318]   No soundcards found.
[    4.710858] ata1: SATA link down (SStatus 0 SControl 300)
[    4.720265] Freeing unused kernel memory: 1024K
[    4.725169] Run /init as init process
Loading, please wait...
Starting version 241
[    5.947540] axp20x-gpio axp20x-gpio: DMA mask not set
[    5.950101] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[    5.961832] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
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.
[   35.820377] vcc3v0: disabling
[   35.823386] vcc5v0: disabling
[   35.826411] usb0-vbus: disabling
[   35.829662] usb1-vbus: disabling
[   35.832915] usb2-vbus: disabling

LubOlimex

Are you sure that you have A20-SOM204-1G and not A20-SOM204-1G-M? Looking at your e-mail in our database it seems you got 2 x A20-SOM204-1G-M.

Can you try configuring in u-boot with:

olinuxino config write 10257 c

saveenv

reboot

What are the results? Publish the log again.
Technical support and documentation manager at Olimex

maxwaldo

Sadly no change
I have tested a few times and added the env print output as well.
after 35 seconds some power rails are disabled !?

U-Boot SPL 2021.01+olimex-1-20210127.093516 (Jan 27 2021 - 09:36:18 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


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:    FFFFFFFF
MAC:  02:C7:05:43:34:2F
I2C:  ready
DRAM:  1 GiB
MMC:  mmc@1c0f000: 0
Loading Environment from EXT4... OK
DDC: timeout reading EDID
DDC: timeout reading EDID
DDC: timeout reading EDID
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
=> olinuxino config write 10257 c
Erasing EEPROM configuration...
Writting EEPROM configuration...
Writting MMC configuration...
=> olinuxino config info
ID:    A20-SOM204-1G-M Rev.C
SN:    FFFFFFFF
MAC:  02:C7:05:43:34:2F
=> boot
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 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
400 bytes read in 3 ms (129.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15483987 bytes read in 2499 ms (5.9 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

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.10-olimex (root@runner-cpbkaozn-project-1-concurrent-0) (arm-linux-gnueabihf-gcc (Debian 8.3.0-2) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #093716 SMP Wed Jan 27 09:38:41
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Olimex A20-SOM204-EVB
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]  Normal  [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000]  HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]  node  0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 20 pages/cpu s50444 r8192 d23284 u81920
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: root=PARTUUID=9cf846ff-01 rootwait console=ttyS0,115200 panic=10 loglevel=7
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] allocated 1048576 bytes of page_ext
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 914504K/1048576K available (10240K kernel code, 1207K rwdata, 2400K rodata, 1024K init, 297K bss, 35768K reserved, 98304K cma-reserved, 262144K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x30/0x3d8 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 35234 entries in 69 pages
[    0.000000] ftrace: allocated 69 pages with 3 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:    RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000025] Switching to timer-based delay loop, resolution 41ns
[    0.000641] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001044] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.001446] Console: colour dummy device 80x30
[    0.001536] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001560] pid_max: default: 32768 minimum: 301
[    0.001948] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001974] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003368] CPU: Testing write buffer coherency: ok
[    0.003947] /cpus/cpu@0 missing clock-frequency property
[    0.003987] /cpus/cpu@1 missing clock-frequency property
[    0.004004] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005016] Setting up static identity map for 0x40100000 - 0x40100060
[    0.005220] rcu: Hierarchical SRCU implementation.
[    0.006111] smp: Bringing up secondary CPUs ...
[    0.017194] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.017413] smp: Brought up 1 node, 2 CPUs
[    0.017441] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.017453] CPU: All CPU(s) started in HYP mode.
[    0.017461] CPU: Virtualization extensions available.
[    0.018627] devtmpfs: initialized
[    0.029610] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.029981] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.030020] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.034541] pinctrl core: initialized pinctrl subsystem
[    0.036242] NET: Registered protocol family 16
[    0.038061] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.039015] audit: initializing netlink subsys (disabled)
[    0.039436] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1
[    0.040136] thermal_sys: Registered thermal governor 'fair_share'
[    0.040149] thermal_sys: Registered thermal governor 'bang_bang'
[    0.040162] thermal_sys: Registered thermal governor 'step_wise'
[    0.040547] cpuidle: using governor ladder
[    0.040599] cpuidle: using governor menu
[    0.040922] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.040939] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.084046] iommu: Default domain type: Translated
[    0.084558] SCSI subsystem initialized
[    0.085292] usbcore: registered new interface driver usbfs
[    0.085357] usbcore: registered new interface driver hub
[    0.085420] usbcore: registered new device driver usb
[    0.085966] pps_core: LinuxPPS API ver. 1 registered
[    0.085986] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.086016] PTP clock support registered
[    0.086922] Advanced Linux Sound Architecture Driver Initialized.
[    0.088468] clocksource: Switched to clocksource arch_sys_counter
[    0.149105] VFS: Disk quotas dquot_6.6.0
[    0.149240] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.161034] NET: Registered protocol family 2
[    0.162132] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.162226] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.162310] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.162442] TCP: Hash tables configured (established 8192 bind 8192)
[    0.162621] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.162700] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.163048] NET: Registered protocol family 1
[    0.163676] Trying to unpack rootfs image as initramfs...
[    0.787780] Freeing initrd memory: 8364K
[    0.788293] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.788919] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.790722] Initialise system trusted keyrings
[    0.791196] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.797919] zbud: loaded
[    0.919199] Key type asymmetric registered

maxwaldo

I split it across two posts because of the character count limit
[    0.919239] Asymmetric key parser 'x509' registered
[    0.919333] bounce: pool size: 64 pages
[    0.919420] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.919694] io scheduler mq-deadline registered
[    0.919715] io scheduler kyber registered
[    0.920094] io scheduler bfq registered
[    0.921831] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.926315] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.006914] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.009791] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    1.011117] printk: console [ttyS0] disabled
[    1.011258] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 59, base_baud = 1500000) is a 16550A
[    1.734412] printk: console [ttyS0] enabled
[    1.739604] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.749212] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 60, base_baud = 1500000) is a 16550A
[    1.759782] 1c29000.serial: ttyS2 at MMIO 0x1c29000 (irq = 61, base_baud = 1500000) is a 16550A
[    1.769474] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pi not found, using dummy regulator
[    1.778979] 1c29c00.serial: ttyS3 at MMIO 0x1c29c00 (irq = 62, base_baud = 1500000) is a 16550A
[    1.789169] STM32 USART driver initialized
[    1.804110] brd: module loaded
[    1.817695] loop: module loaded
[    1.822343] ahci-sunxi 1c18000.sata: supply ahci not found, using dummy regulator
[    1.830146] ahci-sunxi 1c18000.sata: supply phy not found, using dummy regulator
[    1.840363] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.851210] libphy: Fixed MDIO Bus: probed
[    1.856627] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.865120] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.871542] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.877683] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.883467] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.890180] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.896476] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.901509] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    1.908754] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.914432] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    1.920991] libphy: stmmac: probed
[    2.988167] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.994870] ehci-platform: EHCI generic platform driver
[    3.000954] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.007232] ohci-platform: OHCI generic platform driver
[    3.013688] usbcore: registered new interface driver usb-storage
[    3.021666] sunxi-rtc 1c20d00.rtc: registered as rtc0
[    3.026836] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01T00:08:37 UTC (517)
[    3.035217] i2c /dev entries driver
[    3.040564] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[    3.053920] input: axp20x-pek as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[    3.072827] vdd-rtc: supplied by regulator-dummy
[    3.078766] avcc: supplied by regulator-dummy
[    3.084742] vddio-csi0: supplied by regulator-dummy
[    3.090009] vcc-pg: supplied by regulator-dummy
[    3.095305] ldo5: supplied by regulator-dummy
[    3.100557] vdd-cpu: supplied by regulator-dummy
[    3.106003] vdd-int-dll: supplied by regulator-dummy
[    3.113628] axp20x-i2c 0-0034: AXP20X driver loaded
[    3.123764] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.133094] sdhci: Secure Digital Host Controller Interface driver
[    3.139323] sdhci: Copyright(c) Pierre Ossman
[    3.143709] Synopsys Designware Multimedia Card Interface Driver
[    3.150680] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.150884] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    3.166361] ledtrig-cpu: registered to indicate activity on CPUs
[    3.166610] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    3.172590] hid: raw HID events driver (C) Jiri Kosina
[    3.180841] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    3.186050] usbcore: registered new interface driver usbhid
[    3.196007] random: fast init done
[    3.199600] usbhid: USB HID core driver
[    3.205940] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq
[    3.206821] Initializing XFRM netlink socket
[    3.216105] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    3.216581] NET: Registered protocol family 10
[    3.235640] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    3.267054] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.277472] mmc0: new high speed SDHC card at address 59b4
[    3.284677] mmcblk0: mmc0:59b4 SD    14.7 GiB
[    3.290871] Segment Routing with IPv6
[    3.291742] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    3.294791] NET: Registered protocol family 17
[    3.305466] NET: Registered protocol family 15
[    3.310190] 8021q: 802.1Q VLAN Support v1.8
[    3.314516] Key type dns_resolver registered
[    3.318957] Registering SWP/SWPB emulation handler
[    3.324315] registered taskstats version 1
[    3.328477] Loading compiled-in X.509 certificates
[    3.333440] zswap: loaded using pool lzo/zbud
[    4.300441] sunxi-mmc 1c0f000.mmc: send stop command failed
[    4.306939] Key type ._fscrypt registered
[    4.311020] Key type .fscrypt registered
[    4.314963] Key type fscrypt-provisioning registered
[    4.348422] Key type encrypted registered
[    4.371906] ahci-sunxi 1c18000.sata: supply ahci not found, using dummy regulator
[    4.379797] ahci-sunxi 1c18000.sata: supply phy not found, using dummy regulator
[    4.440521] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    4.448054] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[    4.453981] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    4.462971] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc
[    4.472423] scsi host0: ahci-sunxi
[    4.476405] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 47
[    4.492980] ALSA device list:
[    4.495978]  No soundcards found.
[    4.799004] ata1: SATA link down (SStatus 0 SControl 300)
[    4.808422] Freeing unused kernel memory: 1024K
[    4.813327] Run /init as init process
Loading, please wait...
Starting version 241
[    5.995067] axp20x-gpio axp20x-gpio: DMA mask not set
[    6.014041] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[    6.020002] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
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.
[  35.816510] vcc3v0: disabling
[  35.819517] vcc5v0: disabling
[  35.822547] usb0-vbus: disabling
[  35.825800] usb1-vbus: disabling
[  35.829051] usb2-vbus: disabling

ENV

=> env print
arch=arm
baudrate=115200
board=a20_olinuxino
board_id=10257
board_name=A20-SOM204-1G-M
board_revision=C
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtconti
boot_efi_bootmgr=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr;fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=fel mmc_auto scsi0 usb0 pxe dhcp
bootcmd=run distro_bootcmd
bootcmd_dhcp=setenv devtype dhcp; run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then set;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_mmc1=devnum=1; run mmc_boot
bootcmd_mmc_auto=if test ${mmc_bootdev} -eq 1; then run bootcmd_mmc1; run bootcmd_mmc0; elif test ${mmc_bootdev} -eq 0; then run bootcmd_mmc0; run bootcmd_mmc1; fi
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_scsi0=devnum=0; run scsi_boot
bootcmd_usb0=devnum=0; run usb_boot
bootdelay=2
bootm_size=0xa000000
console=serial
cpu=armv7
dfu_alt_info_ram=kernel ram 0x42000000 0x1000000;fdt ram 0x43000000 0x100000;ramdisk ram 0x43300000 0x4000000
distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
eth1addr=de:ad:be:ef:00:01
ethaddr=02:C7:05:43:34:2F
fdt_addr_r=0x43000000
fdtcontroladdr=7af41d90
fdtfile=sun7i-a20-olinuxino-micro.dtb
kernel_addr_r=0x42000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
mmc_bootdev=0
monitor=none
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};
preboot=usb start
pxefile_addr_r=0x43200000
ramdisk_addr_r=0x43300000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootft
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${e
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAIe
scriptaddr=0x43100000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then devtype=scsi; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then scsi_need_init=false; scsi scan; fi
serial#=12345678
soc=sunxi
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
usbnet_devaddr=de:ad:be:ef:00:01
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
uuid_gpt_system=69dad710-2ce4-4e3c-b16c-21a1d49abed3
vendor=olimex
verbosity=7

Environment size: 5033/131068 bytes

LubOlimex

Today I tested the same board A20-SOM204-1G-M with A20-SOM204-EVB.

Used latest Buster minimal and Buster base images from here:

http://images.olimex.com/release/a20/A20-OLinuXino-buster-minimal-20210203-221802.img.7z

http://images.olimex.com/release/a20/A20-OLinuXino-buster-base-20210203-221802.img.7z

This is the log with mininal:

https://textuploader.com/18qjp

This is the log with base:

https://justpaste.it/3ugeu

I think something is wrong with your bottom board, dunno what exactly but my advice is to get A20-SOM204-EVB and test with it. It will help you determine the problem.

Technical support and documentation manager at Olimex

maxwaldo

I have ordered the EVB. When it arrives I will test it and the previously purchased boards and see how it goes.

I can not think of what might be wrong with my custom board.

Do you have a minimum hardware requirements document for base boards?
Maybe it is power sequencing?

LubOlimex

#13
We don't have such document, but my advice is to try to replicate the base board as close as possible. A20-SOM204-EVB is open-hardware board and you can inspect the design files. An export of the schematic is here:

https://github.com/OLIMEX/SOM204/blob/master/SOM204-EVB/SOM204-EVB_Rev_B.pdf

The power supply circuit is at the bottom in the middle.
Technical support and documentation manager at Olimex

maxwaldo

Ok. With the EVB the boards are working (booting). So there must be an error on the custom PCB.

username : password was olimex : olimex not root : 1234 as the wiki says.

I am getting the reoccuring messages on the console:

[  264.174534] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[  266.222415] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[  273.390435] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)
[  280.558414] sun7i-dwmac 1c50000.ethernet eth0: No phy led trigger registered for speed(-1)

and am unable to get dhcp or static address to work for eth. Is there documentation on what must be done to configure networking?