# Configure system
uci set system.@system[0].hostname='z8102'
uci set system.@system[0].timezone='CET-1CEST,M3.5.0,M10.5.0/3'
uci set system.@system[0].zonename='Europe/Rome'
uci commit system
# Configure modem interface - rm551 in ECM mode
uci set network.wwan=interface
uci set network.wwan.proto='dhcp'
uci set network.wwan.device='usb0'
uci set network.globals.packet_steering='1'
uci commit network
# Configure modem interface firewall
uci add_list firewall.@zone[1].network='wwan'
uci commit firewall
# Configure WIFI
uci set wireless.radio0.channel='auto'
uci set wireless.radio0.htmode='HE40'
uci set wireless.radio0.country='IT'
uci set wireless.radio0.cell_density='0'
uci set wireless.default_radio0=wifi-iface
uci set wireless.default_radio0.device='radio0'
uci set wireless.default_radio0.network='lan'
uci set wireless.default_radio0.mode='ap'
uci set wireless.default_radio0.ssid='z8102-24'
uci set wireless.default_radio0.encryption='psk2'
uci set wireless.default_radio0.key='xxxxxxxx'
uci set wireless.default_radio0.disabled='0'
uci set wireless.radio1.channel='auto'
uci set wireless.radio1.htmode='HE160'
uci set wireless.radio1.cell_density='0'
uci set wireless.default_radio1=wifi-iface
uci set wireless.default_radio1.device='radio1'
uci set wireless.default_radio1.network='lan'
uci set wireless.default_radio1.mode='ap'
uci set wireless.default_radio1.ssid='z8102-50'
uci set wireless.default_radio1.encryption='psk2'
uci set wireless.default_radio1.key='xxxxxxxx'
uci set wireless.default_radio1.disabled='0'
uci commit wireless
# Restart services to apply changes
/etc/init.d/system reload
/etc/init.d/network reload
/etc/init.d/firewall reload
wifi reload
since the PR for my router is still to be reviewed (https://github.com/openwrt/openwrt/pull/21995) I can NOT test the online builder. I just tested the script via terminal on the fresh sysupgrade installation, and it works.
If you are building with the full toolchain, it should get integrated ok. Check the path & filename.
How are you evaluating that it does not get embedded?
Note that after a successful run, the ucii-defaults files are normally deleted from /etc/uci-defaults. But if should still be present in /rom/etc/uci-defaults.
(You can also see the final file system with those files included deep in the buildhost build directories.)
My point is that try to separate "it does not get included" from "it is included but does not work" case.
One question, there is another file (./build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/uci-defaults/99_fwenv-store-ethaddr.sh) in that folder, ending with "exit 0". Could be the reason of some issuues?
Regarding the router content after the fresh installation of
openwrt-mediatek-filogic-zbtlink_zbt-z8102ax-emmc-squashfs-sysupgrade.bin
@frollic@hnyman
I also just undestood that some packages (kmod-tun, tailscale, ttyd, etc) I selected during βmake menuconfigβ are not installed on the fresh installation. Ho do I investigate why the building process is missing some packs?
yes they are installing properly, but the probably get installed from the online repo. but kmod-tun package is not available nor in bin folder, nor online
For opkg you could change the source of the packages, I'm sure it can be done with apk too, but I have no idea how, probably a conf file somewhere in /etc.
make sure the script is executable, scripts inside the /files/* directory are not set as executable during build. You MUST do it manually. In ubuntu just right click on the file --> properties --> set permissions ..or from terminal
This is often overlooked. And one of the many reason i do not use the ./files dir approach. I usually create a package with a simple openwrt makefile, in which its only job is to install files where i want ..with the permissions I want.
That command is about cooking the image with the imagebuilder.
If you are using menuconfig, then you are using the full toolchain that has the package selection in the file .config (from make menuconfig or defconfig)