diff --git a/README.md b/README.md index d6efdbb..a6f4c68 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ An AlpineLinux image targeted at raspberry pi zero W for sonoff-diy autoflashing Power on the raspberry with the microSD card you just created and wait a minute for the OS to load. +**It is imperative to have ewelink firmware >=3.1 !!!** +You can check current version in ewelink app. Sadly there's no way to overcome this, for now. We don't know if we need firmware >=3.1 AND ewelink registration OR firmware >=3.1 only. We haven't found a single sonoff mini with stock firmware >=3.1. + Disconnect all the cables from your brand new Sonoff-mini, open it and insert the "DIY jumper" in the proper place. Close it, reconnect the wires and power it on. In 2-3 minutes you should see a new wifi called "SONOFF-xxxx", this is created by the newly-tasmotized sonoff-mini. @@ -69,10 +72,14 @@ The IP address on the USB side is: **10.111.101.1** The IP address on the WIRELESS side is: **10.101.111.1** -You can find a log of the flashing script in **/root/flasher.log** +You can find a log of the flashing script in **/var/log/flasher.log** +You can find dnsmasq logs in **/var/log/messages** Everything is cleared at each reboot as the whole system is running from RAM. If you want to keep some modifications (e.g. an authorized_keys for ssh autologin) take a look at how it's done [here](https://wiki.alpinelinux.org/wiki/Alpine_local_backup) +ACF (Alpine Configuration Framework) is enabled and reachable via HTTPS (you must login with root credentials). From this web interface, you can restart services and take a look at the logs + + ## current limitations As of today, this is a very basic script. It has never been tested with two sonoff-mini at the same time, for example (and I'm very confident that this condition is not working). Maybe this works with Sonoff Basic R3 or Sonoff RF R3, it has never been tested. This tool is designed to work without internet connection so it hasn't got access to different firmwares other than the 6.7.1 that is loaded onboard. \ No newline at end of file diff --git a/rootfs/cache/APKINDEX.00740ba1.tar.gz b/rootfs/cache/APKINDEX.00740ba1.tar.gz old mode 100755 new mode 100644 index 25f2c7b..0b97fbd Binary files a/rootfs/cache/APKINDEX.00740ba1.tar.gz and b/rootfs/cache/APKINDEX.00740ba1.tar.gz differ diff --git a/rootfs/cache/acf-alpine-baselayout-0.13.2-r0.891f1a30.apk b/rootfs/cache/acf-alpine-baselayout-0.13.2-r0.891f1a30.apk new file mode 100644 index 0000000..d1779b4 Binary files /dev/null and b/rootfs/cache/acf-alpine-baselayout-0.13.2-r0.891f1a30.apk differ diff --git a/rootfs/cache/acf-apk-tools-0.11.0-r1.29b62eb1.apk b/rootfs/cache/acf-apk-tools-0.11.0-r1.29b62eb1.apk new file mode 100644 index 0000000..f2c5c94 Binary files /dev/null and b/rootfs/cache/acf-apk-tools-0.11.0-r1.29b62eb1.apk differ diff --git a/rootfs/cache/acf-core-0.21.3-r0.4131530a.apk b/rootfs/cache/acf-core-0.21.3-r0.4131530a.apk new file mode 100644 index 0000000..d06c7ee Binary files /dev/null and b/rootfs/cache/acf-core-0.21.3-r0.4131530a.apk differ diff --git a/rootfs/cache/acf-dnsmasq-0.7.1-r0.cf354d3e.apk b/rootfs/cache/acf-dnsmasq-0.7.1-r0.cf354d3e.apk new file mode 100644 index 0000000..1d29426 Binary files /dev/null and b/rootfs/cache/acf-dnsmasq-0.7.1-r0.cf354d3e.apk differ diff --git a/rootfs/cache/acf-jquery-0.4.3-r0.614e5561.apk b/rootfs/cache/acf-jquery-0.4.3-r0.614e5561.apk new file mode 100644 index 0000000..56dfabd Binary files /dev/null and b/rootfs/cache/acf-jquery-0.4.3-r0.614e5561.apk differ diff --git a/rootfs/cache/acf-lib-0.10.1-r0.815345fb.apk b/rootfs/cache/acf-lib-0.10.1-r0.815345fb.apk new file mode 100644 index 0000000..93c55e9 Binary files /dev/null and b/rootfs/cache/acf-lib-0.10.1-r0.815345fb.apk differ diff --git a/rootfs/cache/acf-lib-lua5.2-0.10.1-r0.bc9d8231.apk b/rootfs/cache/acf-lib-lua5.2-0.10.1-r0.bc9d8231.apk new file mode 100644 index 0000000..39aa2bd Binary files /dev/null and b/rootfs/cache/acf-lib-lua5.2-0.10.1-r0.bc9d8231.apk differ diff --git a/rootfs/cache/acf-openssh-0.11.2-r0.86bdb6d9.apk b/rootfs/cache/acf-openssh-0.11.2-r0.86bdb6d9.apk new file mode 100644 index 0000000..cc91db3 Binary files /dev/null and b/rootfs/cache/acf-openssh-0.11.2-r0.86bdb6d9.apk differ diff --git a/rootfs/cache/acf-skins-0.6.0-r1.121a47b8.apk b/rootfs/cache/acf-skins-0.6.0-r1.121a47b8.apk new file mode 100644 index 0000000..be2b19b Binary files /dev/null and b/rootfs/cache/acf-skins-0.6.0-r1.121a47b8.apk differ diff --git a/rootfs/cache/avahi-0.7-r2.a3dc179e.apk b/rootfs/cache/avahi-0.7-r2.a3dc179e.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/avahi-libs-0.7-r2.177fc1e4.apk b/rootfs/cache/avahi-libs-0.7-r2.177fc1e4.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/avahi-tools-0.7-r2.020df0f0.apk b/rootfs/cache/avahi-tools-0.7-r2.020df0f0.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/busybox-1.30.1-r3.b35db9b6.apk b/rootfs/cache/busybox-1.30.1-r3.b35db9b6.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/busybox-suid-1.30.1-r3.15fe6d34.apk b/rootfs/cache/busybox-suid-1.30.1-r3.15fe6d34.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/ca-certificates-20190108-r0.315c2619.apk b/rootfs/cache/ca-certificates-20190108-r0.315c2619.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/curl-7.66.0-r0.201f3a8e.apk b/rootfs/cache/curl-7.66.0-r0.201f3a8e.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/db-5.3.28-r1.09f78627.apk b/rootfs/cache/db-5.3.28-r1.09f78627.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/dbus-1.12.16-r0.7f58ab93.apk b/rootfs/cache/dbus-1.12.16-r0.7f58ab93.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/dbus-openrc-1.12.16-r0.fa4a2666.apk b/rootfs/cache/dbus-openrc-1.12.16-r0.fa4a2666.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/dnsmasq-2.80-r3.e14dc63c.apk b/rootfs/cache/dnsmasq-2.80-r3.e14dc63c.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/expat-2.2.8-r0.33f33731.apk b/rootfs/cache/expat-2.2.8-r0.33f33731.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/gamin-0.1.10-r10.14cc3b5b.apk b/rootfs/cache/gamin-0.1.10-r10.14cc3b5b.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/gdbm-1.13-r1.e5161d7a.apk b/rootfs/cache/gdbm-1.13-r1.e5161d7a.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/glib-2.60.4-r0.5234c2ca.apk b/rootfs/cache/glib-2.60.4-r0.5234c2ca.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/haserl-lua5.2-0.9.35-r1.452fbdd1.apk b/rootfs/cache/haserl-lua5.2-0.9.35-r1.452fbdd1.apk new file mode 100644 index 0000000..da941db Binary files /dev/null and b/rootfs/cache/haserl-lua5.2-0.9.35-r1.452fbdd1.apk differ diff --git a/rootfs/cache/hostapd-2.8-r2.59a54ef5.apk b/rootfs/cache/hostapd-2.8-r2.59a54ef5.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/hostapd-openrc-2.8-r2.a6446e36.apk b/rootfs/cache/hostapd-openrc-2.8-r2.a6446e36.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/installed b/rootfs/cache/installed old mode 100755 new mode 100644 diff --git a/rootfs/cache/iptables-1.8.3-r0.70a1d42d.apk b/rootfs/cache/iptables-1.8.3-r0.70a1d42d.apk deleted file mode 100755 index 3273877..0000000 Binary files a/rootfs/cache/iptables-1.8.3-r0.70a1d42d.apk and /dev/null differ diff --git a/rootfs/cache/iptables-openrc-1.8.3-r0.4e8cd267.apk b/rootfs/cache/iptables-openrc-1.8.3-r0.4e8cd267.apk deleted file mode 100755 index 3c3f150..0000000 Binary files a/rootfs/cache/iptables-openrc-1.8.3-r0.4e8cd267.apk and /dev/null differ diff --git a/rootfs/cache/libbz2-1.0.6-r7.44bc60a6.apk b/rootfs/cache/libbz2-1.0.6-r7.44bc60a6.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libcurl-7.66.0-r0.011fbf1b.apk b/rootfs/cache/libcurl-7.66.0-r0.011fbf1b.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libdaemon-0.14-r2.2917b3b8.apk b/rootfs/cache/libdaemon-0.14-r2.2917b3b8.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libev-4.25-r0.287bab53.apk b/rootfs/cache/libev-4.25-r0.287bab53.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libffi-3.2.1-r6.0276867d.apk b/rootfs/cache/libffi-3.2.1-r6.0276867d.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libgcc-8.3.0-r0.0ed7ed0d.apk b/rootfs/cache/libgcc-8.3.0-r0.0ed7ed0d.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libintl-0.19.8.1-r4.d68d6f31.apk b/rootfs/cache/libintl-0.19.8.1-r4.d68d6f31.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libldap-2.4.48-r0.ebf1622a.apk b/rootfs/cache/libldap-2.4.48-r0.ebf1622a.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libmagic-5.37-r0.f3c6d630.apk b/rootfs/cache/libmagic-5.37-r0.f3c6d630.apk deleted file mode 100755 index 1cb67db..0000000 Binary files a/rootfs/cache/libmagic-5.37-r0.f3c6d630.apk and /dev/null differ diff --git a/rootfs/cache/libmnl-1.0.4-r0.9776f8da.apk b/rootfs/cache/libmnl-1.0.4-r0.9776f8da.apk deleted file mode 100755 index eec716b..0000000 Binary files a/rootfs/cache/libmnl-1.0.4-r0.9776f8da.apk and /dev/null differ diff --git a/rootfs/cache/libmount-2.33.2-r0.26cd95b6.apk b/rootfs/cache/libmount-2.33.2-r0.26cd95b6.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libnftnl-libs-1.1.3-r0.b4d47511.apk b/rootfs/cache/libnftnl-libs-1.1.3-r0.b4d47511.apk deleted file mode 100755 index 8713374..0000000 Binary files a/rootfs/cache/libnftnl-libs-1.1.3-r0.b4d47511.apk and /dev/null differ diff --git a/rootfs/cache/libsasl-2.1.27-r3.4ded6f29.apk b/rootfs/cache/libsasl-2.1.27-r3.4ded6f29.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/libssh2-1.9.0-r1.a86bf347.apk b/rootfs/cache/libssh2-1.9.0-r1.a86bf347.apk deleted file mode 100755 index c757c9c..0000000 Binary files a/rootfs/cache/libssh2-1.9.0-r1.a86bf347.apk and /dev/null differ diff --git a/rootfs/cache/lighttpd-1.4.54-r0.0b297821.apk b/rootfs/cache/lighttpd-1.4.54-r0.0b297821.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/lighttpd-openrc-1.4.54-r0.eeda2057.apk b/rootfs/cache/lighttpd-openrc-1.4.54-r0.eeda2057.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/lua-json4-1.0.0-r3.7a848609.apk b/rootfs/cache/lua-json4-1.0.0-r3.7a848609.apk new file mode 100644 index 0000000..ea193fe Binary files /dev/null and b/rootfs/cache/lua-json4-1.0.0-r3.7a848609.apk differ diff --git a/rootfs/cache/lua-posix-33.4.0-r1.f4f1a8b5.apk b/rootfs/cache/lua-posix-33.4.0-r1.f4f1a8b5.apk new file mode 100644 index 0000000..17bdf4c Binary files /dev/null and b/rootfs/cache/lua-posix-33.4.0-r1.f4f1a8b5.apk differ diff --git a/rootfs/cache/lua-subprocess-0.0.20141229-r2.a12524b1.apk b/rootfs/cache/lua-subprocess-0.0.20141229-r2.a12524b1.apk new file mode 100644 index 0000000..682ce45 Binary files /dev/null and b/rootfs/cache/lua-subprocess-0.0.20141229-r2.a12524b1.apk differ diff --git a/rootfs/cache/lua5.2-5.2.4-r7.094eb1d6.apk b/rootfs/cache/lua5.2-5.2.4-r7.094eb1d6.apk new file mode 100644 index 0000000..4e2a017 Binary files /dev/null and b/rootfs/cache/lua5.2-5.2.4-r7.094eb1d6.apk differ diff --git a/rootfs/cache/lua5.2-libs-5.2.4-r7.383845e4.apk b/rootfs/cache/lua5.2-libs-5.2.4-r7.383845e4.apk new file mode 100644 index 0000000..4cc4736 Binary files /dev/null and b/rootfs/cache/lua5.2-libs-5.2.4-r7.383845e4.apk differ diff --git a/rootfs/cache/lua5.2-md5-1.2-r3.495e7c5d.apk b/rootfs/cache/lua5.2-md5-1.2-r3.495e7c5d.apk new file mode 100644 index 0000000..06bc526 Binary files /dev/null and b/rootfs/cache/lua5.2-md5-1.2-r3.495e7c5d.apk differ diff --git a/rootfs/cache/lua5.2-posix-33.4.0-r1.d1cd0a9d.apk b/rootfs/cache/lua5.2-posix-33.4.0-r1.d1cd0a9d.apk new file mode 100644 index 0000000..f7e26ca Binary files /dev/null and b/rootfs/cache/lua5.2-posix-33.4.0-r1.d1cd0a9d.apk differ diff --git a/rootfs/cache/lua5.2-subprocess-0.0.20141229-r2.84b23acb.apk b/rootfs/cache/lua5.2-subprocess-0.0.20141229-r2.84b23acb.apk new file mode 100644 index 0000000..9840bdf Binary files /dev/null and b/rootfs/cache/lua5.2-subprocess-0.0.20141229-r2.84b23acb.apk differ diff --git a/rootfs/cache/lua5.3-libs-5.3.5-r2.c5d72bd7.apk b/rootfs/cache/lua5.3-libs-5.3.5-r2.c5d72bd7.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/mc-4.8.22-r0.33871a5c.apk b/rootfs/cache/mc-4.8.22-r0.33871a5c.apk deleted file mode 100755 index 545ead5..0000000 Binary files a/rootfs/cache/mc-4.8.22-r0.33871a5c.apk and /dev/null differ diff --git a/rootfs/cache/mini_httpd-1.30-r0.72350c6a.apk b/rootfs/cache/mini_httpd-1.30-r0.72350c6a.apk new file mode 100644 index 0000000..e64b32c Binary files /dev/null and b/rootfs/cache/mini_httpd-1.30-r0.72350c6a.apk differ diff --git a/rootfs/cache/mini_httpd-openrc-1.30-r0.d16a68c5.apk b/rootfs/cache/mini_httpd-openrc-1.30-r0.d16a68c5.apk new file mode 100644 index 0000000..a5c4efc Binary files /dev/null and b/rootfs/cache/mini_httpd-openrc-1.30-r0.d16a68c5.apk differ diff --git a/rootfs/cache/nano-4.3-r0.aa270573.apk b/rootfs/cache/nano-4.3-r0.aa270573.apk deleted file mode 100755 index ff53234..0000000 Binary files a/rootfs/cache/nano-4.3-r0.aa270573.apk and /dev/null differ diff --git a/rootfs/cache/nghttp2-libs-1.39.2-r0.91445039.apk b/rootfs/cache/nghttp2-libs-1.39.2-r0.91445039.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/pcre-8.43-r0.dd42c3f9.apk b/rootfs/cache/pcre-8.43-r0.dd42c3f9.apk old mode 100755 new mode 100644 diff --git a/rootfs/cache/ssl_client-1.30.1-r3.0ea45bbf.apk b/rootfs/cache/ssl_client-1.30.1-r3.0ea45bbf.apk old mode 100755 new mode 100644 diff --git a/rootfs/sonoff-flasher.apkovl.tar.gz b/rootfs/sonoff-flasher.apkovl.tar.gz old mode 100755 new mode 100644 index 78ee309..4703eef Binary files a/rootfs/sonoff-flasher.apkovl.tar.gz and b/rootfs/sonoff-flasher.apkovl.tar.gz differ