ESPRESSOBin V5 Non-eMMC Frozen on 21.02 Stable Release

ESPRESSOBin V5 would freeze after around a minute since boot. However I couldn't see any error message shown up in UART console. Is there any way to check the crash log after reboot?

This board works fine with OpenWrt 19.07.5.

Full boot log:

TIM-1.0
WTMI-armada-17.10.1-4809244
ENTER init_ddrgen
DDR_TOPOLOGY is 2 :	DDR3, 2CS 512M + 512M
WTMI_CLOCK=3

Fill memory before self refresh...done

Fill memory before self refresh...done

Now in Self-refresh Mode
Restore CAS Read and Write Latency
Restore termination values to original values
Exited self-refresh ...

DLL TUNING
==============
   DLL 0xc0001050[21:16]: [0,2c,16]
   DLL 0xc0001050[29:24]: [6,33,1c]
   DLL 0xc0001054[21:16]: [0,2d,16]
   DLL 0xc0001054[29:24]: [7,36,1e]
   DLL 0xc0001074[21:16]: [0,3f,1f]
   DLL 0xc0001074NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v1.3(release):armada-17.10.2:13f2984
NOTICE:  BL1: Built : 14:29:29, Oct  4 2NOTICE:  BL2: v1.3(release):armada-17.10.2:13f2984
NOTICE:  BL2: Built : 14:29:29, Oct  4 2017
NNOTICE:  BL31: v1.3(release):armada-17.10.2:13f2984
NOTICE:  BL31:

U-Boot 2017.03-armada-17.10.1-g440395a (Sep 25 2017 - 15:43:51 +0200)

Model: Marvell Armada 3720 Community Board ESPRESSOBin
       CPU    @ 1200 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 750 [MHz]
DRAM:  1 GiB
U-Boot DT blob at : 000000003f7182d8
Comphy-0: USB3          5 Gbps
Comphy-1: PEX0          2.5 Gbps
Comphy-2: SATA0         6 Gbps
SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: ncq led only pmp fbss pio slum part sxs
PCIE-0: Link down
MMC:   sdhci@d0000: 0
SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Net:   eth0: neta@30000 [PRIME]
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
9543688 bytes read in 411 ms (22.1 MiB/s)
11368 bytes read in 8 ms (1.4 MiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Using Device Tree in place at 0000000001000000, end 0000000001005c67

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.143 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16279-5cc0535800)) #0 SMP Tue Aug 31 22:20:08 2021
[    0.000000] Machine model: Globalscale Marvell ESPRESSOBin Board
[    0.000000] earlycon: ar3700_uart0 at MMIO 0x00000000d0012000 (options '')
[    0.000000] printk: bootconsole [ar3700_uart0] enabled
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 16 pages/cpu s26648 r8192 d30696 u65536
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 257536
[    0.000000] Kernel command line: console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/mmcblk0p2 rw rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1016736K/1046528K available (7230K kernel code, 424K rwdata, 1156K rodata, 448K init, 280K bss, 29792K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 192 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000d1d40000
[    0.000000] random: get_random_bytes called from 0xffffffc0108c0bf0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008355] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.018943] pid_max: default: 32768 minimum: 301
[    0.023791] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.031338] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.040491] ASID allocator initialised with 32768 entries
[    0.046069] rcu: Hierarchical SRCU implementation.
[    0.051234] smp: Bringing up secondary CPUs ...
[    0.056201] Detected VIPT I-cache on CPU1
[    0.056228] GICv3: CPU1: found redistributor 1 region 0:0x00000000d1d60000
[    0.056258] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.056333] smp: Brought up 1 node, 2 CPUs
[    0.078387] SMP: Total of 2 processors activated.
[    0.083222] CPU features: detected: 32-bit EL0 Support
[    0.088512] CPU features: detected: CRC32 instructions
[    0.093826] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.102402] CPU: All CPU(s) started at EL2
[    0.106614] alternatives: patching kernel code
[    0.113498] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.123580] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.130650] pinctrl core: initialized pinctrl subsystem
[    0.136710] NET: Registered protocol family 16
[    0.141492] DMA: preallocated 256 KiB pool for atomic allocations
[    0.148410] cpuidle: using governor ladder
[    0.165125] cryptd: max_cpu_qlen set to 1000
[    0.171226] SCSI subsystem initialized
[    0.175393] usbcore: registered new interface driver usbfs
[    0.181049] usbcore: registered new interface driver hub
[    0.186478] usbcore: registered new device driver usb
[    0.192001] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.203301] clocksource: Switched to clocksource arch_sys_counter
[    0.210067] thermal_sys: Registered thermal governor 'step_wise'
[    0.210311] NET: Registered protocol family 2
[    0.221142] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.229300] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.237860] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.245861] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.253383] TCP: Hash tables configured (established 8192 bind 8192)
[    0.259985] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.266740] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.274135] NET: Registered protocol family 1
[    0.278553] PCI: CLS 0 bytes, default 64
[    0.283614] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.294341] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.300272] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.311631] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.322976] advk-pcie d0070000.pcie: host bridge /soc/pcie@d0070000 ranges:
[    0.330129] advk-pcie d0070000.pcie:   MEM 0xe8000000..0xe8ffffff -> 0xe8000000
[    0.337652] advk-pcie d0070000.pcie:    IO 0xe9000000..0xe900ffff -> 0xe9000000
[    0.345223] mvebu-a3700-comphy d0018300.phy: unsupported SMC call, try updating your firmware
[    0.353932] phy phy-d0018300.phy.1: phy poweron failed --> -95
[    0.359926] advk-pcie d0070000.pcie: PHY unsupported by firmware
[    0.366114] advk-pcie d0070000.pcie: issuing PERST via reset GPIO for 10ms
[    2.503282] advk-pcie d0070000.pcie: link never came up
[    2.508722] advk-pcie d0070000.pcie: PCI host bridge to bus 0000:00
[    2.515112] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.520738] pci_bus 0000:00: root bus resource [mem 0xe8000000-0xe8ffffff]
[    2.527824] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xe9000000-0xe900ffff])
[    2.537611] pci 0000:00:00.0: [11ab:0100] type 01 class 0x060400
[    2.543787] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    2.551439] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.560271] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.567030] pci 0000:00:00.0: BAR 6: assigned [mem 0xe8000000-0xe80007ff pref]
[    2.574447] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.580989] mv_xor d0060900.xor: Marvell shared XOR driver
[    2.643811] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.713812] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.721686] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.729531] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.738690] loop: module loaded
[    2.741842] Loading iSCSI transport class v2.0-870.
[    2.747777] ahci-mvebu d00e0000.sata: d00e0000.sata supply ahci not found, using dummy regulator
[    2.756867] ahci-mvebu d00e0000.sata: d00e0000.sata supply phy not found, using dummy regulator
[    2.765813] ahci-mvebu d00e0000.sata: d00e0000.sata supply target not found, using dummy regulator
[    2.775027] mvebu-a3700-comphy d0018300.phy: unsupported SMC call, try updating your firmware
[    2.783765] phy phy-d0018300.phy.2: phy poweron failed --> -95
[    2.789822] ahci-mvebu d00e0000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    2.799089] ahci-mvebu d00e0000.sata: flags: ncq sntf led only pmp fbs pio slum part sxs
[    2.808113] scsi host0: ahci-mvebu
[    2.811818] ata1: SATA max UDMA/133 mmio [mem 0xd00e0000-0xd00e0177] port 0x100 irq 22
[    2.824209] random: fast init done
[    2.834681] spi-nor spi0.0: w25q32dw (4096 Kbytes)
[    2.840836] libphy: Fixed MDIO Bus: probed
[    2.845536] libphy: orion_mdio_bus: probed
[    2.850247] mv88e6085 d0032004.mdio-mii:01: switch 0x3410 detected: Marvell 88E6341, revision 0
[    2.870842] libphy: mdio: probed
[    2.893725] mvneta d0030000.ethernet eth0: Using device tree mac address 00:51:82:11:22:00
[    2.902317] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.908979] ehci-pci: EHCI PCI platform driver
[    2.913596] ehci-platform: EHCI generic platform driver
[    2.919040] ehci-orion: EHCI orion driver
[    2.923258] orion-ehci d005e000.usb: EHCI Host Controller
[    2.928763] orion-ehci d005e000.usb: new USB bus registered, assigned bus number 1
[    2.936638] orion-ehci d005e000.usb: irq 13, io mem 0xd005e000
[    2.973456] orion-ehci d005e000.usb: USB 2.0 started, EHCI 1.00
[    2.979849] hub 1-0:1.0: USB hub found
[    2.983695] hub 1-0:1.0: 1 port detected
[    2.988301] mvebu-a3700-comphy d0018300.phy: unsupported SMC call, try updating your firmware
[    2.997032] phy phy-d0018300.phy.0: phy poweron failed --> -95
[    3.003010] xhci-hcd d0058000.usb: PHY unsupported by firmware
[    3.009021] xhci-hcd d0058000.usb: xHCI Host Controller
[    3.014416] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 2
[    3.022114] xhci-hcd d0058000.usb: hcc params 0x0a000998 hci version 0x100 quirks 0x0000002000010090
[    3.031492] xhci-hcd d0058000.usb: irq 12, io mem 0xd0058000
[    3.037797] hub 2-0:1.0: USB hub found
[    3.041599] hub 2-0:1.0: 1 port detected
[    3.045808] xhci-hcd d0058000.usb: xHCI Host Controller
[    3.051113] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 3
[    3.058775] xhci-hcd d0058000.usb: Host supports USB 3.0 SuperSpeed
[    3.065232] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.073872] hub 3-0:1.0: USB hub found
[    3.077672] hub 3-0:1.0: 1 port detected
[    3.082073] usbcore: registered new interface driver usb-storage
[    3.088429] i2c /dev entries driver
[    3.092479] sdhci: Secure Digital Host Controller Interface driver
[    3.098778] sdhci: Copyright(c) Pierre Ossman
[    3.103353] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.109382] xenon-sdhci d00d0000.sdhci: Got CD GPIO
[    3.115499] NET: Registered protocol family 10
[    3.120785] Segment Routing with IPv6
[    3.124547] NET: Registered protocol family 17
[    3.129091] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.142502] 8021q: 802.1Q VLAN Support v1.8
[    3.144663] ata1: SATA liB�Mх��́0 SControl 300)
[    3.149382] d0012000.serial: ttyMV0 at MMIO 0xd0012000 (irq = 0, base_baud = 1562500) is a mvebu-uart
[    3.161243] printk: console [ttyMV0] enabled
[    3.161243] printk: console [ttyMV0] enabled
[    3.169985] printk: bootconsole [ar3700_uart0] disabled
[    3.169985] printk: bootconsole [ar3700_uart0] disabled
[    3.181553] mv88e6085 d0032004.mdio-mii:01: switch 0x3410 detected: Marvell 88E6341, revision 0
[    3.202130] libphy: mdio: probed
[    3.809741] mv88e6085 d0032004.mdio-mii:01: configuring for fixed/rgmii-id link mode
[    3.819984] mv88e6085 d0032004.mdio-mii:01 wan (uninitialized): PHY [!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:11] driver [Marvell 88E6341 Family]
[    3.835581] mv88e6085 d0032004.mdio-mii:01: Link is Up - 1Gbps/Full - flow control off
[    3.847566] mv88e6085 d0032004.mdio-mii:01 lan0 (uninitialized): PHY [!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:12] driver [Marvell 88E6341 Family]
[    3.866164] mv88e6085 d0032004.mdio-mii:01 lan1 (uninitialized): PHY [!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:13] driver [Marvell 88E6341 Family]
[    3.888102] DSA: tree 0 setup
[    3.891643] xenon-sdhci d00d0000.sdhci: Got CD GPIO
[    3.923625] mmc0: SDHCI controller on d00d0000.sdhci [d00d0000.sdhci] using ADMA
[    3.931585] hctosys: unable to open rtc device (rtc0)
[    3.937051] Unsupported CPU frequency 1200 MHz
[    3.942120] Waiting for root device /dev/mmcblk0p2...
[    3.980204] mmc0: new high speed SDHC card at address 59b4
[    3.986533] mmcblk0: mmc0:59b4 USD   14.2 GiB
[    3.992169]  mmcblk0: p1 p2
[    4.055925] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    4.063726] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    4.070227] Freeing unused kernel memory: 448K
[    4.113322] Run /sbin/init as init process
[    4.172588] init: Console is alive
[    4.243248] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.253740] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.271507] init: - preinit -
[    4.411809] random: jshn: uninitialized urandom read (4 bytes read)
[    4.431840] random: jshn: uninitialized urandom read (4 bytes read)
[    4.450503] random: jshn: uninitialized urandom read (4 bytes read)
[    4.497451] mvneta d0030000.ethernet eth0: configuring for fixed/rgmii-id link mode
[    4.506631] device eth0 entered promiscuous mode
[    4.511533] mvneta d0030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    4.513769] mv88e6085 d0032004.mdio-mii:01 lan0: configuring for phy/ link mode
[    4.528375] 8021q: adding VLAN 0 to HW filter on device lan0
[    4.534249] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.230964] mv88e6085 d0032004.mdio-mii:01 lan0: Link is Up - 1Gbps/Full - flow control rx/tx
[    8.239795] IPv6: ADDRCONF(NETDEV_CHANGE): lan0: link becomes ready
[    8.599791] mount_root: mounting /dev/root
[    8.646518] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    8.717635] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null)
[    8.772847] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.803393] mv88e6085 d0032004.mdio-mii:01 lan0: Link is Down
[    8.812947] device eth0 left promiscuous mode
[    8.820943] procd: - early -
[    9.342510] procd: - ubus -
[    9.352868] urandom_read: 2 callbacks suppressed
[    9.352873] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.395171] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.401925] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.409329] procd: - init -
Please press Enter to activate this console.
[    9.568659] urngd: v1.0.2 started.
[    9.599030] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.600228] random: crng init done
[    9.609169] random: 2 urandom warning(s) missed due to ratelimiting
[    9.639600] xt_time: kernel timezone is -0000
[    9.651629] PPP generic driver version 2.4.2
[    9.657127] NET: Registered protocol family 24
[    9.668858] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.044430] mvneta d0030000.ethernet eth0: Link is Down
[   18.072382] mvneta d0030000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   18.080597] mvneta d0030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   18.092326] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.099269] device eth0 entered promiscuous mode
[   18.108255] mv88e6085 d0032004.mdio-mii:01 lan0: configuring for phy/ link mode
[   18.122056] 8021q: adding VLAN 0 to HW filter on device lan0
[   18.129473] br-lan: port 1(lan0) entered blocking state
[   18.134972] br-lan: port 1(lan0) entered disabled state
[   18.155356] device lan0 entered promiscuous mode
[   18.313770] mv88e6085 d0032004.mdio-mii:01 lan1: configuring for phy/ link mode
[   18.329609] 8021q: adding VLAN 0 to HW filter on device lan1
[   18.336350] br-lan: port 2(lan1) entered blocking state
[   18.341774] br-lan: port 2(lan1) entered disabled state
[   18.353871] device lan1 entered promiscuous mode
[   18.381212] mv88e6085 d0032004.mdio-mii:01: p0: already a member of VLAN 1
[   18.426186] mv88e6085 d0032004.mdio-mii:01 wan: configuring for phy/ link mode
[   18.437106] 8021q: adding VLAN 0 to HW filter on device wan
[   20.470983] mv88e6085 d0032004.mdio-mii:01 lan1: Link is Up - 100Mbps/Full - flow control off
[   20.479823] br-lan: port 2(lan1) entered blocking state
[   20.485224] br-lan: port 2(lan1) entered forwarding state
[   20.492506] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   21.390960] mv88e6085 d0032004.mdio-mii:01 lan0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.399799] br-lan: port 1(lan0) entered blocking state
[   21.405197] br-lan: port 1(lan0) entered forwarding state
[   21.730989] mv88e6085 d0032004.mdio-mii:01 wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.739730] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready

This is good to know as I have the same board and was about to try upgrading.

Did you also have to do a factory reset due to the DSA change? I see that the mvebu target was affected, but the Espressobin v5 doesn't have a switch anyway. Well it does, but it's not exposed as a switch in OpenWRT 19.07.

Did you also have to do a factory reset due to the DSA change?

I believe the old configuration stays as I could check most of them carries over upon direct firmware upgrade via Luci before the board freezes.

For 19.07 I have an automated image builder that fetches a subset (essential) configurations from the live router for easy re-deployment. However just to remove extra debugging layer, the board would still freeze with the fresh image downloaded from OpenWrt Firmware Selector

I see that the mvebu target was affected, but the Espressobin v5 doesn't have a switch anyway. Well it does, but it's not exposed as a switch in OpenWRT 19.07.

I didn't know that. That's interesting and could be to culprit behind the freeze, but I wonder how can I collect the crash log to verify.

It's a purely user-space/configuration issue and won't be causing the freezes. Sorry, my question was off-topic for yours but you are the only one posting about Espressobin v5 on 21.02.

Found a few hints from boot log:

mvebu-a3700-comphy d0018300.phy: unsupported SMC call, try updating your firmware 
advk-pcie d0070000.pcie: PHY unsupported by firmware
xhci-hcd d0058000.usb: PHY unsupported by firmware
Unsupported CPU frequency 1200 MHz

Looks like I need to update U-Boot as described in the following links:
GitHub PR
Official Wiki: Update the Bootloader

Where the flash-able binaries can be found under supplementary files.

1 Like

Thanks, I see the binaries are also included with the 21.02 release - https://downloads.openwrt.org/releases/21.02.0/targets/mvebu/cortexa53/

I don't know if I have the 1CS or 2CS variant though. Do you know how to find out?

I don't know if I have the 1CS or 2CS variant though. Do you know how to find out?

You could find them in the first few lines in U-Boot console message. For example mine has 2CS (512M + 512M):

TIM-1.0
WTMI-armada-17.10.1-4809244
ENTER init_ddrgen
DDR_TOPOLOGY is 2 :	DDR3, 2CS 512M + 512M

Don't know if there's other way to pull out this info without serial console.

2 Likes

Thanks. I dumped the boot loader and looked for DDR strings and found it:

# dd if=/dev/mtdblock0 | strings | grep DDR3
	DDR3, 1CS 1G
	DDR3, 1CS 1G

I'll have to use the serial console to flash it anyway so I'll check before doing it.

1 Like

Take care about this unresolved issue (for now) of 1.2 GHz CPU !

You can also from OpenWrt :

Thanks, but the instructions are also to reset the boot environment to defaults and then reconfigure the MAC address. I did it in U-Boot via tftp and it worked fine. Now booting 19.07.7 from the new U-Boot.

I can't get the new version to install with sysupgrade. I've tried both the stock image and also mine from the imagebuilder, which is how I normally do it.

I'm running off SD card using the ext4 image (as I always have).

When I test the new image I get

root@router:/tmp# sysupgrade -T openwrt-21.02.0-mvebu-cortexa53-globalscale_espressobin-ext4-sdcard.img.gz 
Reading partition table from bootdisk...
Invalid partition table on /dev/mmcblk0p2
Failed to parse message data
sh: out of range

Hmm I can't even reinstall 19.07.8 now. It seems to be something to do with the U-Boot upgrade. I think it is trying to look at /dev/mmcblk0p2 as the target device but it should be /dev/mmcblk0.

/proc/cmdline now says:

root=PARTUUID=00000000-02 rw rootwait console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000

and looking at the behaviour of validate_firmware in sh -x, it's not finding the right partition.

known issue: still unresolved : [Solved] 19.07.xx own build unflashable

modify your env for setting bootcmd as this :

You may also prefer load and use the boot.scr.

It is better to use boot.scr with the default env values !

I did reset the environment and boot.scr is booting OK except the cmdline now says:

root=PARTUUID=00000000-02 rw rootwait console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000

and sysupgrade refuses to work, I think it is confused by the PARTUUID....?

You must force sysupgrade with force option.

The rootfs is the second partition of the device.

The UUID from boot.scr is the same as the rootfs partition of the image.

This wasn't necessary with the cmdline root specifying the mmcblk0p2 service (before I reset the uboot environment). Upgrade always worked fine even with custom images.

PARTUUID is the partition UUID, not the file system UUID. But DOS partition tables don't have UUIDs, so all the partition UUIDs are zero according to U-Boot.

I think I need to revert the boot environment to specify the cmdline there with the explicit device instead.

Maybe...

Okay, I was talking also of PARTUUID, just did a short word !

Why not modifying the bootcmd as it was before !?

The old boot environment will work also with the new uboot...

I will. The instructions in the GitHub discussion linked above said to reset the environment after flashing the new version so I did.

I think it’s a bug though that OpenWRT provides a boot.scr that uses GPT partition UUIDs but the images don’t use GPT partitions.

It doesn't boot; I guess I need to reset some of the other parameters too.

=> setenv bootargs console=ttyMV0,115200 root=/dev/mmcblk0p2 rw rootwait
=> setenv bootcmd ext4load mmc 0:1 0x4f00000 armada-3720-espressobin.dtb; ext4load mmc 0:1 0x5000000 Image; booti 0x5000000 - 0x4f00000
7655432 bytes read in 650 ms (11.2 MiB/s)
Moving Image from 0x5000000 to 0x5080000, end=5819000
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree