Hi.
Thanks for great work. ๐
I have an error in the process of writing firmware to SPI, maybe you could help me to solve it.
mtd -e uboot write sun8i-h2-plus_orangepi-zero-lts-boot.bin uboot
mtd -e dtb write sun8i-h2-plus-orangepi-zero-lts-dtb dtb
mtd -e firmware write sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin firmware
I have also tried using the files from the classic Orange Pi Zero as described on the main repository page. I did not get success, which is expected. ๐
root@OpenWrt:/tmp# mtd -e uboot write sun8i-h2-plus_orangepi-zero-lts-boot.bin uboot
Unlocking uboot ...
Erasing uboot ...
Writing from sun8i-h2-plus_orangepi-zero-lts-boot.bin to uboot ...
root@OpenWrt:/tmp# mtd -e dtb write sun8i-h2-plus-orangepi-zero-lts-dtb dtb
Unlocking dtb ...
Erasing dtb ...
Writing from sun8i-h2-plus-orangepi-zero-lts-dtb to dtb ...
root@OpenWrt:/tmp# mtd -e firmware write sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin firmware
Unlocking firmware ...
Erasing firmware ...
Writing from sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin to firmware ... [e]Failed to erase block
root@OpenWrt:/tmp# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00010000 "uboot"
mtd1: 00010000 00010000 "dtb"
mtd2: 00170000 00010000 "firmware"
root@OpenWrt:/tmp# ls -l
-rw-r--r-- 1 root root 4 Feb 15 15:22 TZ
-rw-r--r-- 1 root root 173 Jan 1 1970 board.json
-rw-r--r-- 1 root root 69 Feb 15 15:23 dhcp.leases
drwxr-xr-x 2 root root 40 Feb 15 15:22 dnsmasq.d
drwxr-xr-x 3 root root 80 Feb 15 15:22 etc
drwxr-xr-x 2 root root 60 Feb 15 15:22 hosts
drwxr-xr-x 3 root root 60 Feb 15 15:22 lib
drwxr-xr-x 2 root root 380 Feb 15 15:33 lock
drwxr-xr-x 2 root root 80 Feb 15 15:22 log
-rw-r--r-- 1 root root 32 Feb 15 15:22 resolv.conf
-rw-r--r-- 1 root root 0 Feb 15 15:22 resolv.conf.auto
drwxr-xr-x 4 root root 220 Feb 15 15:23 run
drwxrwxrwt 2 root root 40 Jan 1 1970 shm
drwxr-xr-x 2 root root 60 Feb 15 15:22 state
-rwxr-xr-x 1 root root 24576 Feb 15 15:23 sun8i-h2-plus-orangepi-zero-lts-dtb
-rwxr-xr-x 1 root root 15286546 Feb 15 15:23 sun8i-h2-plus-orangepi-zero-lts-squashfs-sysupgrade.bin
-rwxr-xr-x 1 root root 475136 Feb 15 15:23 sun8i-h2-plus_orangepi-zero-lts-boot.bin
drwxr-xr-x 2 root root 80 Jan 1 1970 sysinfo
drwxr-xr-x 2 root root 40 Feb 15 15:22 tmp
Tried twice. Files reloaded and overwritten.