Rpi4 < $(community_build)

no risk at all... you will get better performance and reliability if you update... I recommend it...

thanks for the question tho'... had not yet placed these instructions in an easy to get to place... so you've helped others find this info more easily...

This works, thank you. Just to make sure people have all the info, there is a page describing ways to update Rapberry Pi to the new bootloader/eeprom here:

The changelog is here. Ton of improvements to the eeprom since Pi 4 came out for example, most noticibly the improvements to power draw and overheating. The latest stable should be used:

after an update 3.2.100-63 via luci

SatJul2404:07:592021 Could not find plugin "dns" in /usr/lib/collectd
SatJul2404:07:592021 is configuration for the `dns' plugin, but the plugin isn't loaded. Please check your conf
SatJul2404:07:592021 Parsing the config file failed!

did you forget to remove dns from collected cfg? I know it's not even a minor issue. I just want to mention it. thank you

1 Like

New user here, spent an hour searching as it must have been answered before, but...

While I'm waiting for my UE300 adapter, I wanted to get some configuration done and apply some updates. Cable modem is in the basement, so wired isn't exactly convenient. I'd like to enable wifi and connect to my existing SSID as a DHCP client so I can continue with setup. Pointers to some existing docs?

Have anyone using adblock function? Whenever I upgrade to new version, the adblock becomes unusable. I need to remove and install it again. Often, I need to erase and reinstall OpenWRT to make the fucntion work. Have anyone got the same problem?

1 Like

https://forum.openwrt.org/search?q=ENABLEDSERVICES%20topic:69998

fwiw... this is the current sanitized(commonstuffstripped) set of options i'm using...

ENABLEDSERVICES="sqm adblock banip"
DLWRAPPER=1
DLWRAPPER_CHECKPERIOD="weekly"
#################################
ROOTFSEXPAND=1
#################################
POWERPROFILE="quicker"
#################################
UPDATECHECKPERIOD="twicedaily"
UPGRADEsFLAVOUR="stable"
OPKGFEEDS_USEHTTP=1
OPKGFEEDS_DOMAIN="downloads.cdn.openwrt.org"
#################################
WWW_EXTRAS="ytdl editor ttyd"
LUCIQRCODES=1
YOUTUBEDL="/usbstick/downloads_usb"
YOUTUBEDL_NOAUTH=1
#################################
COLORASH="random"
COLORBASH="random"
RCSHBASH=1
RCSHDDIR="/usbstick"
#################################
RPIUARTALT=1
RPICASEGPIO=1
RPI4_STATUSLED="led18"
#################################
ttyDEV="/dev/ttyACM0"
#################################
RPI4QOS_VERBOSE=1
RPI4QOS_IPSETPERSIST=1
#################################
PACKETSTEERING=1
PERFTWEAKS="default"
#################################
SMBUSER="kedicik"
SMBPASSWD="FAKEPASS"
SMBUID="1000"
SMBSERVER="10.2.3.6"
SMBSHARE="downloads"
SMBMNTPNT="/downloads"
#################################
GSSWITCH_IFACE="br-lan"
GSSWITCH_MAC="9C:MACADDR"
GSSWITCH_PASS="FAKEPASS"
#################################
HARDENING_LEVEL="medium"
DWC2_GADGET="g_ether"
#################################
CHROOT_BASEDIR="/usbstick/_z_chroots"
NET_DUMMY_NUM=2
defaultwificountry="AU"

I am using simple ad block instead of adblock. It is working fine so far.

1 Like

thanks neil1...

this is the whole reason ENABLEDSERVICES exists with stuff default disabled...

without it... it's not possible (reasonably) to include conflicting or resource consuming packages within the build...

I know it creates doubts/confustion for many... and puts them off using the build... but embracing these options allow for seamless sysupgrades

by conservative calculations...

2 hours x 30 users x 3 reinstalls = 180hours

approx 7 days of human life

saved :scream_cat: ... not bad at all...

(although not intially... I now semi make use of @vgaetera s opkg-script logic (thankyou) which has probably saved in excess of 3 months of human life cumulative!)
example-from-current-devel
[ /usbstick 47°] uci show opkg; uci show servicestate

opkg.rwm=rwm
opkg.rwm.added='luci-theme-argon' 'taskwarrior' 'tvheadend'
opkg.rwm.removed='wipe'

servicestate.current=current
servicestate.current.enabled='/etc/init.d/adblock' '/etc/init.d/banip' '/etc/init.d/boot' '/etc/init.d/bootstatus' '/etc/init.d/collectd' '/etc/init.d/cron' '/etc/init.d/dnsmasq' '/etc/init.d/done' '/etc/init.d/dropbear' '/etc/init.d/firewall' '/etc/init.d/fstab' '/etc/init.d/led' '/etc/init.d/log' '/etc/init.d/luci_statistics' '/etc/init.d/network' '/etc/init.d/nlbwmon' '/etc/init.d/odhcpd' '/etc/init.d/openvpn' '/etc/init.d/persistentdata' '/etc/init.d/persistentlucistatistics' '/etc/init.d/persistentnlbwmon' '/etc/init.d/rngd' '/etc/init.d/rpcd' '/etc/init.d/sqm' '/etc/init.d/sysctl' '/etc/init.d/sysfixtime' '/etc/init.d/sysntpd' '/etc/init.d/system' '/etc/init.d/ucitrack' '/etc/init.d/uhttpd' '/etc/init.d/umount' '/etc/init.d/urandom_seed' '/etc/init.d/wpad'
servicestate.current.disabled='/etc/init.d/acme' '/etc/init.d/alpine1' '/etc/init.d/atd' '/etc/init.d/atftpd' '/etc/init.d/darkstat' '/etc/init.d/dbus' '/etc/init.d/ddns' '/etc/init.d/eoip' '/etc/init.d/etherwake' '/etc/init.d/fakeinternet' '/etc/init.d/gpio_switch' '/etc/init.d/grafana' '/etc/init.d/https-dns-proxy' '/etc/init.d/irqbalance' '/etc/init.d/modemmanager' '/etc/init.d/mosquitto' '/etc/init.d/mwan3' '/etc/init.d/netserver' '/etc/init.d/ntop' '/etc/init.d/open-iscsi' '/etc/init.d/pservice' '/etc/init.d/quagga' '/etc/init.d/rssileds' '/etc/init.d/simple-adblock' '/etc/init.d/snmpd' '/etc/init.d/snort' '/etc/init.d/socat' '/etc/init.d/travelmate' '/etc/init.d/usbmode' '/etc/init.d/vpn-policy-routing' '/etc/init.d/watchcat' '/etc/init.d/wireshark-helper' '/etc/init.d/xinetd'
1 Like

Thank you so much, :innocent:

I just upgraded to latest build without any issues and I have added services to
SYSTEM > STARTUP > LOCALSTARTUP

 ENABLEDSERVICES="sqm simple-adblock https-dns-proxy"

it just upgraded without any issues and these services are working without making any changes or starting them manually after every update

1 Like

I think you've upgraded twice... since ROOTFSEXPAND was enabled...

did your disk get expanded?

df -h | grep root; dmesg | grep -i expand

( thanks to @oskari.rauta for adding parted to OpenWrt packages repo... made this task alot easier )

3 Likes

yes, now it is 29GB

1 Like

in brief steps;

  • set your wireless radio0 country (after you set it in raspbi(an|OS))
  • enable and restart wpad
  • fire up travelmate and see how you go

other than that... you'll have to poke around or ask on the general forum...

collectd-mod-dns has been in my packagesremove.txt for the last few months as I found it would put collectd into a crash loop every few days.

I’d vote it to be removed unless there are active users :slight_smile:

2 Likes

o cool... i didn't think it would startup if you just remove the package edit: spoke too soon ( it does )... so I wont have to push a script to [ conditionally :frowning: ] remove the config lines...

Sun Jul 25 05:11:25 2021 daemon.err collectd[6902]: There is configuration for the `dns' plugin, but the plugin isn't loaded. Please check your configuration.

my guess is it's got something to do with some patches that made busybox more ipv6 aware a few weeks ago... as i'm pretty sure it was working for 3-5months...

I also vote to remove it... it as added when dnsmasq was getting all those fixes to keep an eye on it...

it's easy enough for someone to add to /etc/packagesinstall.txt if they want it as it's not really required for firstboot... ( I have not had issues with it though... so my suspicion is that it's failing for those that don't have ipv6 )

thanks for the info

when masq is chugging along ok... you do get a teency amount of query distribution info from it... but once you've seen it... for the resources it uses... it's not really worth running 24/7 anyways imho...
moddns

edit: removed and reported refs:

1 Like

:+1: Iirc this was the reason why when we dug into it. My isp doesn’t hand out IPV6 addresses yet.

1 Like

Almost all isp in my country not using ipv6. Maybe jn the future.

1 Like

Hello there, been using your build and enjoying it a lot!

Just wanted to say thanks for all the effort in getting it to work, and also a few questions.

Up until SNAPSHOT r17189-1ed9fc663e, I was able to use dockerd from Entware and host several containers from within the router, but after upgrading yesterday it seems that the kernel hash started mismatching between the installed version and the GitHub/OpenWRT opkg repositories,as trying to install the dependencies for dockerd now (I have no idea why them and several other packages uinstalled themselves) reports the following error log:

[root@RPi4-OpenWRT /]$ opkg install kmod-lib-lzo kmod-lib-zlib-inflate kmod-lib-zlib-inflate kmod-lib-zlib-deflate kmod-lib-raid6 kmod-lib-xor kmod-lib-zstd kmod-fs-btrfs  kmod-dax kmod-random-core kmod-tpm kmod-keys-trusted kmod-keys-encrypted kmod-dm kmod-br-netfilter kmod-nf-ipvs
Unknown package 'kmod-lib-lzo'.
Unknown package 'kmod-lib-zlib-inflate'.
Installing kmod-lib-zlib-inflate (5.4.132-1) to root...
Downloading https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-8c34d2a86d75b793acaec716ad3d8596/kmod-lib-zlib-inflate_5.4.132-1_aarch64_cortex-a72.ipk
Unknown package 'kmod-lib-zlib-deflate'.
Unknown package 'kmod-lib-raid6'.
Unknown package 'kmod-lib-xor'.
Unknown package 'kmod-lib-zstd'.
Unknown package 'kmod-fs-btrfs'.
Unknown package 'kmod-dax'.
Unknown package 'kmod-random-core'.
Unknown package 'kmod-tpm'.
Unknown package 'kmod-keys-trusted'.
Unknown package 'kmod-keys-encrypted'.
Unknown package 'kmod-dm'.
Unknown package 'kmod-br-netfilter'.
Unknown package 'kmod-nf-ipvs'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-lzo
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-lzo found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-lzo.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-zlib-inflate
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-zlib-inflate found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-zlib-inflate.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-lib-zlib-inflate:
 *      kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596)
 * opkg_install_cmd: Cannot install package kmod-lib-zlib-inflate.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-zlib-deflate
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-zlib-deflate found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-zlib-deflate.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-raid6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-raid6 found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-raid6.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-xor
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-xor found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-xor.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-lib-zstd
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-zstd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-lib-zstd.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-fs-btrfs
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-fs-btrfs found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-fs-btrfs.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-dax
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dax found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-dax.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-random-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-random-core found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-random-core.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-tpm
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-tpm found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-tpm.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-keys-trusted
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-keys-trusted found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-keys-trusted.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-keys-encrypted
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-keys-encrypted found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-keys-encrypted.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-dm
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-dm found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-dm.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-br-netfilter
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-br-netfilter found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-br-netfilter.
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.132-1-8c34d2a86d75b793acaec716ad3d8596) for kmod-nf-ipvs
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipvs found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-nf-ipvs.

Given that seemingly nothing else changed, I'm not sure how I should go about debugging this particular problem.

If there's anything I forgot to add, please let me know.

Kudos!

1 Like

glad I was able to help..

1 Like

on openwrt an upgrade is a "flash"... so it's likely nothing was uninstalled... just not re-installed automatically for you...

as for the other stuff... its possible there is some anomaly with the repo versioning or something... but as you mention entware... i'm wondering if I understand whats going on properly...

i've never had issue with opkg install before... so i'll test your install command and double check the repo consistency... after that we may look further into the use case and what else may be going on...

edit: works fine for me

kmods-install-ok
opkg install kmod-lib-lzo kmod-lib-zlib-inflate kmod-lib-zlib-inflate kmod-lib-zlib-deflate kmod-lib-raid6 kmod-lib-xor kmod-lib-zstd kmod-fs-btrfs  kmod-dax kmod-random-core kmod-tpm kmod-keys-trusted kmod-keys-encrypted kmod-dm kmod-br-netfilter kmod-nf-ipvs
Package opkg (2021-06-13-1bf042dd-3) installed in root is up to date.
Installing kmod-lib-lzo (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-lzo_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-lib-zlib-inflate (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-zlib-inflate_5.4.132-1_aarch64_cortex-a72.ipk
Package kmod-lib-zlib-inflate (5.4.132-1) installed in root is up to date.
Installing kmod-lib-zlib-deflate (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-zlib-deflate_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-lib-raid6 (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-raid6_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-lib-xor (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-xor_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-lib-zstd (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-lib-zstd_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-fs-btrfs (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-fs-btrfs_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-dax (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-dax_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-random-core (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-random-core_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-tpm (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-tpm_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-keys-trusted (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-keys-trusted_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-keys-encrypted (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-keys-encrypted_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-dm (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-dm_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-br-netfilter (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-br-netfilter_5.4.132-1_aarch64_cortex-a72.ipk
Installing kmod-nf-ipvs (5.4.132-1) to root...
Downloading http://downloads.cdn.openwrt.org/snapshots/targets/bcm27xx/bcm2711/kmods/5.4.132-1-272d8d859b9c04efc790e7b6c91cc80f/kmod-nf-ipvs_5.4.132-1_aarch64_cortex-a72.ipk
Configuring kmod-lib-zlib-deflate.
Configuring kmod-br-netfilter.
Configuring kmod-lib-xor.
Configuring kmod-dax.
Configuring kmod-random-core.
Configuring kmod-tpm.
Configuring kmod-keys-trusted.
Configuring kmod-keys-encrypted.
Configuring kmod-dm.
Configuring kmod-lib-zlib-inflate.
Configuring kmod-lib-raid6.
Configuring kmod-lib-lzo.
Configuring kmod-lib-zstd.
Configuring kmod-fs-btrfs.
Configuring kmod-nf-ipvs.

based on the above... i'd say you possibly have an entware related dependency issue... ( i.e. 'kernel dependant package on extroot syndrome' )... typically... entware should not be needed... and if I were doing the same... i'd just be using regular opkg for anything docker related...

just out of curiosity... how many times in total have you upgraded so far? what version did you upgrade from?

rpi4-installhistory.sh
rpi-support.sh | grep -A30 'restore-actions'
dmesg | grep -C2 -i expand

Hey, thanks for the quick reply!

To the current installation, I have upgraded just once coming from Snapshot-26567-3.2.61-70-r17073, the only unusual change I made to the image was before the ROOTFSEXPAND variable was supported was to manually expand the filesystem using the following commands:

mount -o remount,ro / #Remount root as ReadOnly
tune2fs -O^resize_inode /dev/mmcblk0p2 #Remove reserved GDT blocks
fsck.ext4 /dev/mmcblk0p2 #Fix part, answer yes to remove GDT blocks remnants
fdisk /dev/mmcblk0
fdisk > p #list partitions
fdisk > d #delete the second partition, keeping track of sector start
fdisk > n 
fdisk > p
#create new primary partition from previous sector start and end at disk end
fdisk > w #write new partition table to disk
reboot
resize2fs /dev/mmcblk0p2

Also, I added the variable to rc.local before the upgrade just to be sure, and took a backup for safekeeping.

The mSD card I'm using as a boot device is the following one:
SanDisk Extreme microSDXC UHS-I SDSQXA2-064G-GN6MA

Thanks for the help and Kudos!

1 Like