These files and directories are what turn a regular distribution of OpenWrt into the "ShellyWRT"
Here is how to compile a .bin image of openWRT for the ZBT WG108 router
-
Download the OpenWRT from github found here
Run:
gh repo clone openwrt/openwrt
-
cd into /openWrt and git checkout into v19.07.10
This is the only version that has worked
Run:
cd openWrt
git checkout v19.07.10
-
Run:
./scripts/feeds update -a
./scripts/feeds install -a
-
Add the modules you see into their respect places in /openWrt/feeds/luci:
/openwrt/feeds/luci/applications/luci-app-shelly-utilities
/openwrt/feeds/luci/modules/luci-mod-network
/openwrt/feeds/luci/themes/luci-theme-shelly
/openwrt/package/base-files/files/etc/shadow
/openWrt/.config
-
Run again:
./scripts/feeds update -a
./scripts/feeds install -a
-
Run:
make
-
Image cane be found here: /openwrt/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-zbt-we1326-squashfs-sysupgrade.bin
-
To flash firmware
a. Connect to ZBT-WG 108 router by ethernet or wifi (if able)
b. Go to browser enter into URL 192.168.1.1
i. If no response, clear cache and try again ii. If still no response, change the interface on your device that is connecting to the router, change to: IP address: 192.168.1.100 IP subnet mask: 255.255.255.0 IP gateway: 192.168.1.1 DNS server 8.8.8.8 and 1.1.1.1
c. In LuCi interface enter
Username: root Password: admin
d. Go to System > Backup/Flash Firmware > FLASH IMAGE
c. Upload image and uncheck "keep current configuration"
i. If asked, check "force upgrade"
f. Press upload to flash and DO NOT power off
-
If flash fails for any reason
a. Unplug power from router
b. Press and hold "reset" button on back of router neat power jack
c. While pressing and holding button, plug pwoer back on and hold for about 10 seconds
d. Connect to router through 192.168.1.1 and a minimal backup interface to flash router only will appear, use this to re-flash firmware
i. You may need to clear cache in your browser if you do not see the option to do this, be sure to set your interface settings to static like in step 8(b)(ii)