Rpi4 < $(community_build)

PACKAGELIST: see git > builds > ABC > packages.txt

out-of-tree: ARGON THEME git


CUSTOM FEATURES(optional):

  • The file /root/wrt.ini is intended to be used to enable/disable built in script functionality.
  • add this to your /etc/sysupgrade.conf (automatic)
  • when you re-flash check the newer one in /etc/custom/wrt.ini
  • or manually add desired options from the list below

perftweaks and packetsteering notes 2.9.17-30+ 21st/April disabled due to lack of input

available options
####################################################### @/bin/*-sysup*<git<*sysup.sh stable current testing
# UPGRADEsFLAVOUR="stable"
# NO_ONECLICKFLASH=1 #20210715onwards
############### NOTE: sysupgrade -R (once off or post install packagesrestore.sh are preferred to the two options below search the thread for packagesrestore.sh ) the longer between builds the more likely youll hit a bug with this feature...
# AUTORESTOREAPPLY=1                     #resinstallspackages on firstboot
# NOAUTORESTORE=1                           #disables application of diff from previous installed_packages.txt
###################################################################################
PERFTWEAKS="default" #from 2.9.30+ (used to be =1 which now means we provide single options here)
##### 20211227 for users with connections over 650Mb/s and small latency hit
PERFTWEAKS_Gbs=1
################### quick quicker quickest
POWERPROFILE="quick"
################ single options no longer implemented
### PFAFFINITY="32:c 33:c"  #KEY-IRQAFFINITY
### PFSERVICECPU=1 #TASKSET
### PFRENICE=1
########
PACKETSTEERING=1 ##from 2.9.30+
###################################################################################
# NORCCUSTOM=1					#rc.local negates most options here
###################################################################################
# EXPERIMENTAL=1				#enables tweaks that are non-standard+may result in unexpected results
###################################################################################
# ENABLEDSERVICES="banip adblock sqm"            #enable and start
########################/bin/updatecheck.sh (luci>bootstrap-only||profile.d)
# NOUPDATECHECK=1                            
# LUCIDEFAULTTHEME="bootstrap"
# LUCIQRCODES=1                                    #bootstraponly add external SSID PASSWORDS to /etc/luciqrcodes.txt
# LUCISSHON=1
# NOLUCIMODS=1
# NOBANNERMOD=1
# NOOPKGSNAPSHOTFIX=1				         #~ core|base|luci># in distfeeds.conf as customfeeds.conf replaces... only useful on same day releases
# NOHOTPLUGNTPLOG=1				             #do not log ntp stratum to syslog
###################################################################################
# RPIUARTALT=1
# RPICASEGPIO=1
###################################### post 2021-02-21 note no validation is performed only led0 and led1 are available without custom dtbo or RPICASEGPIO which would likely take effect after the first reboot / second upgrade
# RPI4_STATUSLED="led1"
################################################################################### NOTE: PERF TWEAKS ARE EXPERIMENTAL 1.1.50-13+ 1.2.11-39+
# POWERPROFILE="quick"                     # default quick quicker quickest reduced
# OLDISH-NEEDS-RETESTING IRQMANAGEMENT="irqbalance"                 # irqbalance none
###################################################################################
# RCSHBASH=1
# RCSHDDIR="/usbstick"
###################################################################################
# COLORBASH="monominimal"
# COLORBASH="mono"
# COLORBASH="gandalf"
#######################
# COLORASH="ocean"
# COLORASH="unix"
################################################################################### NOTE ALL OPTIONS BELOW ARE EXPERIMENTAL AND LIKELY IMPERFECT 1.1.50-13+ 1.2.11-39+
# FWCUSTOM=1
# i.e. FWCUSTOMGEO="TR,IL,EG,BE,KY,ZM,SN,SO,NG,LR,KZ,KG"
### NOTE rfc1918 needs logic for ppp please post in the thread before enabling this
# FWCUSTOMRFC1918=1
# FWCUSTOMRFC1918LOG=1
#################### the two below require you to have a functioning cake-sqm
#################OLD SQMDSCPMARKS=1
#################OLD DSCPCONSOLEMACS="aa:bb:cc 11:22:33" #optional you probably dont need it
# RPI4QOS_GAMING_MACS="ab:cd 11:22" #should-work
# RPI4QOS_GAMING_LEARNCONNECTIONS=1 #DEBUGGINGONLY
# RPI4QOS_LOGGER=1 #maywork
# RPI4QOS_GAMING_IPS_4="192.x 10.x"  #maywork
# RPI4QOS_GAMING_IPS_6="24::0 fe::2" #notsure
### post 2.7.51
# RPI4QOS_IPSETPERSIST=1
# IPSET_BACKUPd="/etc/custom/firewall/dscp/backup"
### post 2.7.51-50
# RPI4QOS_RECLASSIFY_SH="/bin/reclassify.sh"
# RPI4QOS_VOIP_MACS="11:33"
#########################################################
RPI4CMDLINEOPTS="fsckparts" #20210207_2.7.33-15
# ROOTFSEXPAND=1 #sysupgrade stretch rootfs partition
###################################################################################
# ttyDEV="/dev/ttyACM0" #20210321+ uC+LCD+? over serial WIP
##################################################################################
# SQMUPDEFAULT=17000
# SQMDOWNDEFAULT=45000
##################################################################################
######################### attempt to enable non-vanilla + disabled wifi at boottime for this duration
# WIFIADMINBOOT=1
# WIFIADMINBOOTTIME=300
#########################
# WIFIDEFAULTFORCE=1                        # if config is non-vanilla or force these values WIFIAUTOSETUP is off
# WIFIAUTOSETUP=1                           # setup ac ap default off
# WIFIDEFAULTENABLED=1                      # enable this ap
########################
# WIFIDEFAULTSSID="ap101"
# WIFIDEFAULTPWD="somerandomlongpassword" #!!!must be 9 characters
# WIFIDEFAULTCHANNEL="auto" #36
# WIFIDEFAULTMODE="ap"
# WIFIDEFAULTHWMODE="11a"
# WIFIDEFAULTCOUNTRY="AU"
################################################################################### OPTIONS for USB backup PARTITION ( note: keep a space partition only for this purpose and not a common partition used for other things )
bmnt="/mnt/snapback"                            # where to mount the 'usb' partition
blabel="wrtboot"                                 #use one of either blabel or bpart
#bpart="a3a32eba-96b3-4d3a-9f73-cdb165476117"             #uuid or /dev/sdX

(note: 1.15.17-45+ you can edit in banip>advanced>wrt.ini builds later than 2.7.33 in system>startup )


/etc/packagesremove.txt ( in your sysupgrade.conf )

  • Package names to be auto uninstalled

/etc/packagesinstall.txt ( in your sysupgrade.conf )

  • Package names to be auto installed ( 2.3.11-29+ )

HOW SHOULD I UPGRADE?

  • add any extra services you enable to ENABLEDSERVICES="service1 service2" in /root/wrt.ini (system>startup>local startup)
  • add any special data files and folders to /etc/sysupgrade.conf
  • use the command line: 'rpi-sysup-online.sh -R current' or uploading into LUCI you also have to enable AUTORESTOREAPPLY=1 in wrt.ini ( if you do not wish to re-install packages... the remove the '-R' or disable AUTORESTOREAPPLY=1 )
  • note: the 'one-click-flash' within luci is equivalent to 'rpi-sysup-online.sh -R stable'
    (or whatever your have UPGRADEsFLAVOUR set to)
always make separate manual backups: you can use the updatecheck bar to dump 'clean' post-install restorable tar.gz
if you do not wish to use rpi-sysup-online.sh... regular 'sysupgrade -R /tmp/sysupgrade.img.gz' is also fine ( -k is automatic ) and the autorestore.sh script is still generated without -R ... just not applied

rpi4.qos: ldir hisham2630 dlakelan (and others) @SyntaxTerror


UTILITY SCRIPTS (beta):

expand

rpi4-official-opkg.sh

run opkg from official mirrors to check for bugfixes etc ( note: update not required ~ internal but likely needed afterwards to resync with regular repos before typical opkg usage )

opK

  • 'opK' command... wrapper for opkg... that primarily generates diffs (needs a rewrite / clean)

ntop

  • /etc/init.d/ntop.... be aware 150M+ for the chroot... insecured(local) out of the box... ( sets up a default password of admin, runs under root user, runs on all 3000 sockets - fw blocks wan )...

  • running as a 'once-off'... don't recommend you run it for 'days' without hardening / disk tweaks. script can be easily adapted to run most things from the alpine universe.


PINOUT


source: community.octoprint.org

1 Like