I would really appreciate some step by step guide, i have internet now, and some working dhcp lease, but need another config

Thanks! But i can also download those later on correct? Also, the forst link i linked that was for the motherboard. Are those settings also for ZBT routers? It does work now. I just had issues with openvpn earlier, but that could also work if i try later on. No big deal.. The settings i have now are maybe not optimal though with virtual dhcp and such, what do you experts think?

Everything is generic, except for the actual images, which are device specific.

1 Like

Correct, but adding packages rathar than including them into the image will take more flash space. Depending on your device's flash chip size, that could be a big consideration. I was also being mindful that you noted you had to install the packages thru separate downloads.

The information you've described regarding this has been unclear to me. I'm actually not sure what settings you're inquiring could be sub optimal because of "virtual DHCP" or the configuration you mention differs on the older Barrier Breaker firmware.

I had ideas as to why this may have occurred for you - but they all can be solved with updated software.

Best wishes on your progress.

Ok, but can you be more specific on how i create a fully working version that's tested maybe also.. That has openvpn, etc.. The right packages..
What package are needed then? And do i use the squashfs version, etc.. Thanks

Ok thanks. I might try to install openvpn again.. I don't think the "barrier breaker" firmware had any qmi or a virtual dhcp setting, but i'm not sure.

all / no images are tested, depending on your definition on tested.

perhaps you should skip openvpn for now, and focus on the modem ?

start with the qmi ones, mentioned earlier.

this option doesn't exist for your specific device.

ok thanks. Are these default for the router or overall then?

base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-gpio-button-hotplug kmod-leds-gpio kmod-mt76x2 kmod-nft-offload kmod-rt2800-soc kmod-sdhci-mt7620 kmod-usb-ohci kmod-usb2 libc libgcc libustream-wolfssl logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail swconfig uci uclient-fetch urandom-seed urngd wpad-basic-wolfssl

I got this build error..

ownloading file:packages/Packages
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Pseudo file "/dev" exists in source filesystem "/home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
Ignoring, exclude it (-e/-ef) to override.

I also posted this as the script..

# Beware! This script will be in /rom/etc/uci-defaults/ as part of the image.
# Uncomment lines to apply:
##
# wlan_name="OpenWrt"
# wlan_password="12345678"
#
# root_password=""
# lan_ip_address="192.168.1.1"
#
# pppoe_username=""
# pppoe_password=""

# log potential errors
exec >/tmp/setup.log 2>&1

if [ -n "$root_password" ]; then
  (echo "$root_password"; sleep 1; echo "$root_password") | passwd > /dev/null
fi

# Configure LAN
# More options: https://openwrt.org/docs/guide-user/base-system/basic-networking
if [ -n "$lan_ip_address" ]; then
  uci set network.lan.ipaddr="$lan_ip_address"
  uci commit network
fi

# Configure WLAN
# More options: https://openwrt.org/docs/guide-user/network/wifi/basic#wi-fi_interfaces
if [ -n "$wlan_name" -a -n "$wlan_password" -a ${#wlan_password} -ge 8 ]; then
  uci set wireless.@wifi-device[0].disabled='0'
  uci set wireless.@wifi-iface[0].encryption='psk2'
  uci set wireless.@wifi-iface[0].ssid="$wlan_name"
  uci set wireless.@wifi-iface[0].key="$wlan_password"
  uci commit wireless
fi

# Configure PPPoE
# More options: https://openwrt.org/docs/guide-user/network/wan/wan_interface_protocols#protocol_pppoe_ppp_over_ethernet
if [ -n "$pppoe_username" -a "$pppoe_password" ]; then
  uci set network.wan.proto=pppoe
  uci set network.wan.username="$pppoe_username"
  uci set network.wan.password="$pppoe_password"
  uci commit network
fi

echo "All done!"

And it did build, but with some signature error.. Does it still look ok? I used these packages:

qmi-utils luci-proto-qmi luci luci-ssl

But also the default ones:

base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-gpio-button-hotplug kmod-leds-gpio kmod-mt76x2 kmod-nft-offload kmod-rt2800-soc kmod-sdhci-mt7620 kmod-usb-ohci kmod-usb2 libc libgcc libustream-wolfssl logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail swconfig uci uclient-fetch urandom-seed urngd wpad-basic-wolfssl

Anyways i might keep the one version i have now if it's an ok setup..
But how do i connect DHCP to other routers, or to the computer, etc? Is that done automatically, or do people need to set adresses manually?

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output.
grafik
Please edit your post accordingly. Thank you! :slight_smile:

Yeah that's way better. thanks

1 Like

Now I can also spot that your script does nothing, because you did not uncomment any of the variables. I suggest that you do not use such a script at all, it's easy to configure your device after boot.

Ok i will leave it blank then! Thanks.

I just tried to build and I do not get any signature errors. I selected the Zbtlink ZBT-WE826 16M as device as I do not know (or remember) which device you had exactly. And used 22.03.5 as version, this is the package selection:

base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-gpio-button-hotplug kmod-leds-gpio kmod-mt76x2 kmod-nft-offload kmod-rt2800-soc kmod-sdhci-mt7620 kmod-usb-ohci kmod-usb2 libc libgcc libustream-wolfssl logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail swconfig uci uclient-fetch urandom-seed urngd wpad-basic-wolfssl luci-proto-qmi qmi-utils

luci should be included by default, so I did not add it to the list of packages.

1 Like

Yes i think you did... expand the STDERR. After build sucessful.
You got this:

Build successful

`STDERR`

Package list missing or not up-to-date, generating it.

Building package index...
Downloading https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt7620/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_core
Downloading https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt7620/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_packages
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../../../../../../home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Pseudo file "/dev" exists in source filesystem "/home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
Ignoring, exclude it (-e/-ef) to override.
4296+1 records in
4296+1 records out
2199625 bytes (2.2 MB, 2.1 MiB) copied, 0.0142156 s, 155 MB/s
9439+1 records in
9439+1 records out
4833074 bytes (4.8 MB, 4.6 MiB) copied, 0.0342708 s, 141 MB/s
padding image to 006b5000
padding image to 006b6000
padding image to 006b8000
padding image to 006c0000

``

The last part:


Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Pseudo file "/dev" exists in source filesystem "/home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
Ignoring, exclude it (-e/-ef) to override.
4296+1 records in
4296+1 records out
2199625 bytes (2.2 MB, 2.1 MiB) copied, 0.0142156 s, 155 MB/s
9439+1 records in
9439+1 records out
4833074 bytes (4.8 MB, 4.6 MiB) copied, 0.0342708 s, 141 MB/s
padding image to 006b5000
padding image to 006b6000
padding image to 006b8000
padding image to 006c0000

nobody answered about " The last part:


Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Pseudo file "/dev" exists in source filesystem "/home/aparcar/asu/worker1/cache/22.03.5/ramips/mt7620/build_dir/target-mipsel_24kc_musl/root-ramips/dev"."

Why was the signature wrong? Is the site hacked or something?