I've made some advancement in debugging "armbian-ramlog & armbian-truncate-log" complex.
Your /usr/lib/armbian/armbian-ramlog has a syntax error in the array expression
${XTRA_RSYNC_TO[@]+"${XTRA_RSYNC_TO[@]}"}
The 1st array lacks a closing } curly braces. Secondly, I can't figure out, why the same array is duplicated.
Even if you parse a variable XTRA_RSYNC_TO=(--delete) from /etc/default/armbian-ramlog, it will result in :
--delete+--delete
Another problem comes, when you call
/usr/lib/armbian/armbian-ramlog write >/dev/null 2>&1
from /usr/lib/armbian/armbian-truncate-logs. It actually produces the error:
# /usr/lib/armbian/armbian-truncate-logs
/usr/lib/armbian/armbian-truncate-logs: 23: /etc/default/armbian-ramlog: Syntax error: "(" unexpected
I believe there is a syntax error in the way the call is made, where the XTRA_RSYNC_TO=(--delete) variable is not accounted for.
Could you give it a glance?
Otherwise, if the XTRA_RSYNC_TO=(--delete) variable is remarked in /etc/default/armbian-ramlog
and "--delete" option is hard coded in /usr/lib/armbian/armbian-ramlog, the complex starts running without raising exceptions.
bubt u-boot/181226.flash-image-ddr3-2g-2cs-1000_800.bin spi usb
Marvell>> bubt u-boot/181226.flash-image-ddr3-2g-2cs-1000_800.bin spi usb
Burning U-BOOT image "u-boot/181226.flash-image-ddr3-2g-2cs-1000_800.bin" from "usb" to "spi"
USB0: Register 2000104 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB1: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
reading u-boot/181226.flash-image-ddr3-2g-2cs-1000_800.bin
Image checksum...OK!
SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB
676040 bytes written, 212992 bytes skipped in 12.491s, speed 72876 B/s
Done!
Marvell>> reset
WTMI-devel-18.12.0-a0a1cb8
WTMI: system early-init
SVC REV: 3, CPU VDD voltage: 1.155V
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.5(release):1f8ca7e (Marvell-devel-18.12.2)
NOTICE: BL1: Built : 13:48:02, Dec 26 2018
NOTICE: BL1: Booting BL2
NOTICE: BL2: v1.5(release):1f8ca7e (Marvell-devel-18.12.2)
NOTICE: BL2: Built : 13:48:04, Dec 26 2018
NOTICE: BL1: Booting BL31
NOTICE: BL31: v1.5(release):1f8ca7e (Marvell-devel-18.12.2)
NOTICE: BL31: Built : 13:4
U-Boot 2018.03-devel-18.12.3-gc9aa92c-armbian (Dec 26 2018 - 13:45:06 +0100)
Model: Marvell Armada 3720 Community Board ESPRESSOBin
CPU 1000 [MHz]
L2 800 [MHz]
TClock 200 [MHz]
DDR 800 [MHz]
DRAM: 2 GiB
Comphy chip #0:
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
Loading Environment from SPI Flash... SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB
OK
Model: Marvell Armada 3720 Community Board ESPRESSOBin
Net: eth0: neta@30000 [PRIME]
Hit any key to stop autoboot: 0
1119 bytes read in 14 ms (77.1 KiB/s)
## Executing script at 06d00000
243 bytes read in 5 ms (46.9 KiB/s)
15690240 bytes read in 673 ms (22.2 MiB/s)
5981154 bytes read in 270 ms (21.1 MiB/s)
** File not found /boot/dtb/marvell/armada-3720-community.dtb **
8607 bytes read in 10 ms (839.8 KiB/s)
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 5981090 Bytes = 5.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 06000000
Booting using the fdt blob at 0x6000000
Loading Ramdisk to 7f076000, end 7f62a3a2 ... OK
Using Device Tree in place at 0000000006000000, end 000000000600519e
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.18.8-mvebu64 (root@nightly) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #259 SMP PREEMPT Wed Sep 19 11:14:00 CEST 2018
[ 0.000000] Machine model: Globalscale Marvell ESPRESSOBin Board
[ 0.000000] earlycon: ar3700_uart0 at MMIO 0x00000000d0012000 (options '')
[ 0.000000] bootconsole [ar3700_uart0] enabled
Loading, please wait...
starting version 239
Thanks to the Armbian team for the headers scripts generation bug fixing and the minor version 5.11 release. I was able upgrading the 5.10 image to 5.11 and building the 5 october .
Here is a recipe : root@orangepiplus:~# apt-get update && apt-get upgrade
root@orangepiplus:~# cd /usr/src/linux-headers-$(uname -r) root@orangepiplus:/usr/src/linux-headers-3.4.112-sun8i# make scripts
root@orangepiplus:~# cd /usr/src
root@orangepiplus:/usr/src# git clone https://github.com/jwrdegoede/rtl8189ES_linux/
root@orangepiplus:/usr/src# cd rtl8189ES_linux root@orangepiplus:/usr/src/rtl8189ES_linux# git checkout 080f2aaf6bc8e08eeb3b51f0b8c377eae1ea7ed7
root@orangepiplus:/usr/src/rtl8189ES_linux#
wget https://raw.githubusercontent.com/jernejsk/OpenELEC-OPi2/openelec-7.0/packages/linux-drivers/RTL8189ES/patches/RTL8189ES-000-change-build-settings.patch
root@orangepiplus:/usr/src/rtl8189ES_linux# patch -p1 < RTL8189ES-000-change-build-settings.patch
root@orangepiplus:/usr/src/rtl8189ES_linux#
make ARCH=arm KSRC=/usr/src/linux-headers-$(uname -r) CROSS_COMPILE=
The "make install" doesn't run. I copied it manually :
cp -a 8189es.ko /lib/modules/3.4.112-sun8i/kernel/drivers/net/wireless/rtl8189es/