I just reboot to u-boot and save env... boot again in OpenWrt 21.02-RC3 and still get the same CRC checksum error message on fw_printenv !
The problem in that case is that fw_saveenv will broke the u-boot env...
Link : already reported in the master 21.02-RC3 topic :
sorry, no problem, nor corruption by saving and booting from uboot...
The problem IS that OpenWrt do not take care correctly of the uboot env, as it will in standard EspressoBin v7 with OpenWrt 19.07.x !
The problem IS on EspresoBin Ultra on OpenWrt 21.02-RC3 !
Not tested EspressoBin v7 on OpenWrt 21.02-RC3 for now... to see if they have the problems also...
The problem is :
ENV settings not managed correctly, and it may results in broking the system if writing env from OpenWrt !
Sounds likely. If u-boot doesn't store the enviroment in /dev/mtd2 then it should not come as a suprise that there is nothing in there...
Is this the default configuration for these boards? If so, then I guess the uboot-envtools definition should be updated. Or ideally, it should be fixed to auto-detect this on first boot.
figure out where the env is stored on the mmc and update /etc/fw_env.config accordingly. When you have it working, submit a patch to fix the defaults in package/boot/uboot-envtools/files/mvebu
This is a bug with the SPI-NOR config in the DTS.
I have patches that I will start sending soon for the Ultra as its pretty much fully broken at this point,
waiting on some more info from Globalscale
I just attempted to flash the latest stable openwrt onto a new espressobin-ultra and it's not booting. The internal flash had linux on it. Does the uboot env need to be updated to work with the openwrt image?
TIM-1.0
WTMI-devel-18.12.0-1421e17
WTMI: system early-init
SVC REV: 5, CPU VDD voltage: 1.213V
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.5(release):26d6b50f (Marvell-devel-18.12.2)
NOTICE: BL1: Built : 15:51:12, Mar 4 2021
NOTICE: BL1: Booting BL2
NOTICE: BL2: v1.5(release):26d6b50f (Marvell-devel-18.12.2)
NOTICE: BL2: Built : 15:51:17, Mar 4 2021
NOTICE: BL1: Booting BL31
NOTICE: BL31: v1.5(release):26d6b50f (Marvell-devel-18.12.2)
NOTICE: BL31: Built : 15
U-Boot 2018.03-devel-18.12.3-g551329ec74 (Mar 04 2021 - 15:48:05 +0800)
Model: gti cellular cpe board
CPU 1200 [MHz]
L2 800 [MHz]
TClock 200 [MHz]
DDR 750 [MHz]
DRAM: 1 GiB
SF: Detected mx25u3235f with page size 256 Bytes, erase size 64 KiB, total 4 MiB
Comphy chip #0:
Comphy-0: USB3_HOST0
Comphy-1: PEX0 2.5 Gbps
Comphy-2: SATA0
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 up
MMC: sdhci@d8000: 0
Loading Environment from SPI Flash... OK
Model: gti cellular cpe board
Net: eth0: neta@30000 [PRIME]
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
** File not found boot/Image **
** File not found boot/armada-3720-ccpe.dtb **
## Flattened Device Tree blob at 06f00000
Booting using the fdt blob at 0x6f00000
reserving fdt memory region: addr=6f00000 size=4000
Using Device Tree in place at 0000000006f00000, end 0000000006f06fff
Starting kernel ...
"Synchronous Abort" handler, esr 0x02000000
elr: ffffffffc7ab4000 lr : 0000000000001fe8 (reloc)
elr: 00000000079f0000 lr : 000000003ff3dfe8
x0 : 0000000006f00000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 0000000007000000 x5 : 0000000000000001
x6 : 0000000000000008 x7 : 0000000000000000
x8 : 000000003f900000 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 00000000000000c0
x14: 000000003f628a1c x15: 000000003ff3d42c
x16: 000000003ffbc4d0 x17: 000000003ffbc4d0
x18: 000000003f62bdb0 x19: 000000003ffd3b20
x20: 0000000000000000 x21: 0000000000000000
x22: 0000000000000003 x23: 000000003f6b28b8
x24: 000000003ffc2960 x25: 0000000000000000
x26: 000000003ff3e010 x27: 0000000000000000
x28: 0000000000000400 x29: 000000003f628b20
Resetting CPU ...
resetting ...
Also have you noticed that there is a .dts file called armada-3720-espressobin-ultra.dts in the linux mainline kernel now. I tried it and it also wasn't 100% working (wifi broken)