Build configuration tips - ferboiar/wrt32x GitHub Wiki

Netdata SQM char

You can edit the github repo file to include your configuration in the build, or edit the file directly on your router once the firmware is installed.

  • GitHub file: configs/files/etc/netdata/charts.d/sqm.conf
  • Router file: /etc/netdata/charts.d/sqm.conf

edit it to specify your WAN interface (my example is shown below):

declare -a sqm_ifc=("eth0" "wan.20")

These necessary packages are included by default: bash, coreutils-timeout, curl, netdata; these files are added with default values:

https://github.com/ferboiar/wrt32x/blob/linksys/configs/files/etc/netdata/charts.d.conf 
https://github.com/ferboiar/wrt32x/blob/linksys/configs/files/etc/netdata/charts.d/sqm.conf
https://github.com/ferboiar/wrt32x/blob/linksys/configs/files/usr/lib/netdata/charts.d/sqm.chart.sh

and edited https://github.com/ferboiar/wrt32x/blob/linksys/configs/files/etc/netdata/netdata.conf changing "charts.d" to "yes"

autoSQM script

A cron task configured in the firmware periodically checks the upload and download speeds to adjust the bandwidth of our WAN interface.

But if you restore your configuration backup after installing the firmware you will lose this setting, so you must edit your cron scheduler in this way:

0 6,14,22 * * * /usr/lib/OpenWrtScripts/autoSQM.sh

To learn more about how to configure SQM on your router you can check this thread in the OpenWRT forum.

Network interfaces ports status

Add to the LuCiI "Overview" page a section with information on the status of the router ports as shown in the following image (required package luabitop is included):

Edit the github repo file to set up your configuration in the build, or edit the file directly on your router once the firmware is installed.

  • GitHub file: configs/files/etc/config/luci_netports
  • Router file: /etc/config/luci_netports

Here are detailed instructions on how to do this configuration.

Troubleshooting

  • If no data is displayed, check if output is ok. From CLI do:
'echo '{}' | /usr/libexec/rpcd/netports call getPortsInfo' 
  • If not, do /etc/init.d/rpcd restart and check again.
  • If nothing works:
/etc/init.d/uhttpd stop; rm -rf /tmp/luci-*; /etc/init.d/uhttpd start