Rpi4 < $(community_build)

Hi and thanks for your contributions to the community.
got a question.
install the fac image for the first time. and every thing works just fine except the adblock service wont show any Information at the Information panel. after setting everything up.

howdy..., can you double check it's enabled;

luci > system > startup

( or /etc/init.d/adblock enable; /etc/init.d/adblock restart )

1 Like

let me try

it says disabled i guest that means it is enable right.

have to replay on this for been new to the forum
that did the trick i guest never assumed nothing. lol.
thanks a lot for your help.

since i can not post in here any more dont know for how long.
another question in here some times specially after and upgrade the usb adapter is not recognized and i have to unplugged it and plug it back . any clue as to why.

1 Like

click 'disabled' then click start ( kinda un-intuitive naming ), it specific to this build having to do that... normal openwrt you wouldn't have to...

builds after 1.9 have experimental(mainline-raspbian) 'boot/dat*-elf*' files... it could be that... could also be power... i've always put;

boot_delay=3

in /boot/config.txt which may have an influence over boot time device detection/power related... I know with the newer firmware or usb booting... alot of people needed to tweak similar values... otherwise it would be device specific...

the only things higher up in the OS that effect things like this are when you install drivers / have conflicting devices/drivers or re-plug while on... ( or plug into alternate ports while off )...

basically if no plugging is done, the os shouldn't have issues... ( excluding fancy stuff like otg/usbmode-qmi etc )

1 Like

thanks for so detailed information will try that tomorrow. any let you know.

1 Like

Did you manage to get IRQBalance working on this custom build for the Rpi4? I got nowhere on the official snapshots, IRQBalance as an automated solution doesn't work. Closest I got was manually setting them (the few that actually worked) in a boot-time script.

not sure what you mean... from the basic runtime function i've seen... irqbalance has always 'worked'... ( that said... i did run a few benchmarks once... and it seemed not running irqbalance helped )...

can you be more specific about the issues?

As in, there didn't seem to be anything fundamentally changed after having run IRQBalance. Everything was running the same without any adjustments.

1 Like

understood, yeah, don't have any build specific insight into this... ( but I'll keep that in mind when i poke around in my travels )... this arch has some specific vc/mailbox lowlevel peculiarities ... thanks for the tip...

possible reason
Not sure if this is applicable (non-pi4?)... as below taskset works for me... useful specifics anyway... 
#https://www.raspberrypi.org/forums/viewtopic.php?t=100714
"Hardware IRQ affinity isn't possible due to the way that the interrupt controller has been implemented.

Because the entirety of the hardware apart from the A7s is untouched, the BCM2835 interrupt routing is still in place. This exposes two lines (nIRQ and nFIQ) that go into the A7 interrupt routing. There is no vectored interrupt controller implemented for the A7s - a simple register-based interface is used to route the global top-level interrupt to a specific core, therefore a single core will get all interrupts and have to service them.

You could reconfigure this on-the-fly (for example, on entry to the top-level IRQ handler) to have some sort of distributed handling, servicing each successive interrupt on a different core, but the benefits of this are debatable."

( edit: although... i've included taskset for most of the builds and have used this to good effect for pinning applications )

$TASKSET -pc 3 $(pidof dnsmasq) 2>&1 >/dev/null
$TASKSET -pc 3 $(pidof nlbwmon) 2>&1 >/dev/null
1 Like

update check (post 2.3.7)

no point knowing that snapshot has 12 new versions, so updatecheck now tracks git... and hyperlinks directly to the sysupgrade file... ( you could also run 'rpi-sysup-online.sh -R FLAVOUR' to update )

changing;

UPGRADEsFLAVOUR="stable" # current

will track different release streams... ( although you'd have to 'rm /tmp/.update*' to force immediate change )

commenting it out should get you back to tracking snapshots or 20/21.x when it arrives...

2 Likes

r14779+~testing official changes

  • mwan3 update now in master ( slightly newer than previous build/s )
  • logd + ubusd run under own user accounts
  • adblock / banip bumps
  • date fixes / uci fixes / etc.
1 Like

if i upgrade my settings and packages will be transfered to new build?

1 Like

yes... ( all things going well )

  • -R will attempt to re-install your packages on firstboot ( or AUTORESTOREAPPLY=1 in wrt.ini )
  • SERVICESENABLED="serviceA serviceB" in wrt.ini
  • LUCIDEFAULTTHEME="bootstrap" #if you want it...

Now... ALWAYS MAKE A MANUAL BACKUP! anyway...
( note: as i've seen you mention using ftp and smb if any files are outside of /etc/config... then you need to check whether they are included or include them in sysupgrade.conf... this has nothing to do with the build per-se... 'sysupgrade -l' )

you probably also want to read: this

Did you edit files for those services outside of /etc/config? I/we can help you check / setup if you want...


If you are feeling really game, after your backup... you could try the auto update script... ( which just gets the .img from git to /tmp and runs sysupgrade (-R) )

curl -sSL "https://raw.github.com/wulfy23/rpi4/master/utilities/rpi-sysup-online.sh" > /bin/rpi-sysup-online.sh; sync; chmod +x /bin/rpi-sysup-online.sh; /bin/rpi-sysup-online.sh -R current

then if you need it again... you should be able to just run it without the curl stuff... i.e.;

/bin/rpi-sysup-online.sh -R current #change current to testing if you wanted the 'latest'
2 Likes

I don't remember editing files and please sure

yes i am using ftp and smb

well... you have to check your notes to see where you edited stuff...

quick check for vsftpd

#does not automatically add its conffiles ( sysupgrade -l )
/etc/vsftpd.conf # wont hurt to add /etc/vsftpd/ also...
# passwd / shadow / groups / shells are automatic as will be /etc/config/fstab
# /home/X or any dirs that are on NON-FSTAB/NON-LOCAL dirs

so far just the one(and dir) addition for vsftpd...

as above for smb...

# passwd / fstab are automatic
# need to check "sysupgrade -l | grep -E '(smb|samba)'" for db/templates etc.

what samba do you have installed?

go to LUCI > SYSTEM > BACKUP/FLASHFIRMWARE >> [configuration] and add...

/etc/vsftpd.conf
/etc/vsftpd/
#etc. etc. for all the custom files/folders you need to include... ( that are not already listed in 'sysupgrade -l' command )
#do not add the actual smb/ftp data directories if they are on external drives

I think i messed up and packages failed to install
settings are restored after update and internet is working
but i think packages failed to install automatically

this is the list i found in the section custom command >> restore packages
should i run these manually?


unsupported:  > show
/etc/custom/autorestore.sh [default:] add:36 rem:17
opkg remove --force-removal-of-dependent-packages adblock #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages ar #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages coreutils-sort #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages ddns-scripts-services #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages iptables-mod-extra #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-dummy #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-ipt-extra #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-ipt-hashlimit #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-lib-crc32c #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-loop #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages kmod-netem #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages libbfd #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages libmount1 #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages luci-app-adblock #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages minicom #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages openssh-client-utils #997-remtxt-removed-previously
opkg remove --force-removal-of-dependent-packages openssh-keygen #997-remtxt-removed-previously
opkg install igmpproxy #customapp
opkg install speedtest-netperf #customapp
opkg install ddns-scripts_cloudflare.com-v4 #customapp
opkg install libcap #customapp
opkg install libselinux #customapp
opkg install libsepol #customapp
opkg install libmbedtls12 #customapp
opkg install musl-fts #customapp
opkg install procd-selinux #customapp
opkg install libgnutls #customapp
opkg install libtasn1 #customapp
opkg install libpam #customapp
opkg install libattr #customapp
opkg install attr #customapp
opkg install libexpat #customapp
opkg install libdbus #customapp
opkg install dbus #customapp
opkg install libavahi-dbus-support #customapp
opkg install libdaemon #customapp
opkg install avahi-dbus-daemon #customapp
opkg install libavahi-client #customapp
opkg install samba4-libs #customapp
opkg install samba4-server #customapp
opkg install vsftpd #customapp
opkg install luci-app-samba4 #customapp
opkg install kmod-scsi-core #customapp
opkg install kmod-usb-storage #customapp
opkg install ca-certificates #customapp
opkg install simple-adblock #customapp
opkg install luci-app-simple-adblock #customapp
opkg install kmod-lib-crc16 #customapp
opkg install kmod-fs-ext4 #customapp
opkg install kmod-usb-ehci #customapp
opkg install kmod-usb2 #customapp
opkg install kmod-usb3 #customapp
opkg install kmod-fs-ntfs #customapp

1 Like

yes looks like you didn't use -R maybe... and that is probably a good thing...

there are alot of changes... ( thanks by the way... it's useful info to be able to improve the script logic for the future )

as there are so many changes you'd be better off... copying the package names you recognize from the 'install' lines...

start with these probably;

opkg remove --force-removal-of-dependent-packages adblock luci-app-adblock
opkg install igmpproxy samba4-server vsftpd  luci-app-samba4 ca-certificates simple-adblock luci-app-simple-adblock
1 Like

if anyone(several) gets a spare minute... can you test this command for me;

opK 1>/dev/null; echo "###INSTALLED"; cat /restorefiles/opkg.restore | grep -v 'luci-theme-argon'; echo "###REMOVED"; cat /restorefiles/opkg.removed.last
###INSTALLED
attr
avahi-dbus-daemon
ca-certificates
dbus
igmpproxy
libattr
libavahi-client
libavahi-dbus-support
libcap
libdaemon
libdbus
libexpat
libgnutls
libpam
libtasn1
luci-app-samba4
luci-app-simple-adblock
samba4-libs
samba4-server
simple-adblock
vsftpd
###REMOVED
adblock
luci-app-adblock
1 Like