Rpi4 < $(community_build)

Seems there is some demand... so... let's get the ball rolling

DOWNLOAD: https://github.com/wulfy23/rpi4/tree/master/builds/

INSTALLATION:

  • sysupgrade -p ( when flashing over a build with smaller partitions. ), luci should work ok, if partitions are the same.
  • ext4 ( report back re: squashfs )
  • note: slow sdcards can take a good 6-7 minutes+ quick ones are closer to 3 and a half...

SAMPLE INSTALL COMMANDS
############################## SYSUPGRADE
scp <rpi4-abc123>-ext4-sysuprade.img.gz root@<routerip>:/tmp/latest.tar.gz
ssh root@<routerip> 'sysupgrade -p /tmp/latest.tar.gz'
(note: luci will work if partitions match i.e. you have used -p before or started with our factory )


############################## SDCARD FACTORY ( ! wipes drive ! )
zcat <rpi4-abc123>-ext4-factory.tar.gz | dd of=/dev/sdW; sync

#OR if you are not comfortable with linux

-LUCI>SYSTEM>BACKUP>GENERATE BACKUP
-Power down insert sdcard into pc and use win32diskimager and the ext4_factory ( may need to gunzip it first )
-Re-insert sdcard wait for it to boot ( 192.168.1.1 )
-LUCI>SYSTEM>BACKUP>RESTORE BACKUP ( normal ip will be restored )


GENERAL NOTES:

  1. BETA PHASE
  • advise beginners skip 1.0.x builds ... but gotta start somewhere
  1. USE COMMON SENSE / ESTABLISHED BASICS / GUIDES
  • manually backup your stuff or use a second sdcard etc. for the first build or three
  1. SAFETY / SECURITY
disclaimers and assurances
  • any community build is almost always marginally more risk than a default release. extra code / packages, custom features etc. all add stuff that you don't find on "vanilla" systems.

  • that said... I hereby vouch that there are no intentional "gremlins"... and anything of particular note will be mentioned ( i.e. /bin/updatecheck.sh does check if there are newer releases on the openwrt official http servers - this is the only 'active' feature and can be disabled )

  • at the end of the day, this is an unofficial build and not endorsed by OpenWrt, with no express liability, warranty or guarantees.


OPKG NOTES:

  • (base|core|luci) are git customfeeds ( report back on things )

  • mwan3 (default settings + enabled) seems to interfere with the regular repo's working... it's now disabled by default but if you know of a fix? :slight_smile:


ADDITIONS:

  • Users are encouraged to add customisations so, if you have any scripts / mods / ideas or (regulars) want commit access to the sources by all means! :dancer:
3 Likes

PACKAGELIST:

1.1.17-packagelist
##################################
watchcat
nano
##################################
bind-dig
bind-host
##################################
banip
luci-app-banip
##################################
openssh-sftp-server
##################################
kmod-wireguard
luci-app-wireguard
luci-proto-wireguard
wireguard
wireguard-tools
qrencode
##################################
6in4
acme
luci-app-acme
ddns-scripts
acme-dnsapi
ddns-scripts_cloudflare.com-v4
luci-app-ddns
##################################
wwan
usb-modeswitch
uqmi
luci-proto-qmi
luci-proto-ncm
kmod-usb-net-cdc-ether
kmod-usb-net-cdc-mbim
kmod-usb-net-cdc-ncm
kmod-usb-net-huawei-cdc-ncm
kmod-usb-net-qmi-wwan
###############################
mwan3
luci-app-mwan3
###############################
screen
snmpd
###############################
dosfstools
exfat-fsck
exfat-mkfs
kmod-fs-exfat
kmod-fs-vfat
ntfs-3g
ntfs-3g-utils
##################################
tmux
pservice
##################################
https-dns-proxy
luci-app-https-dns-proxy
##################################
#mc
#kmod-macvlan
wget
curl
xz
################################
file
blkid
######################################
dtc
ccrypt
######################################
kmod-leds-gpio                          ###+++
kmod-ledtrig-transient
kmod-usb-serial-ftdi
######################################
iptables-mod-geoip
######################################
atftpd
######################################
collectd-mod-thermal
collectd-mod-irq
collectd-mod-conntrack
######################################
conntrack
######################################
-wpad-basic
#wpad
wpad-openssl
zoneinfo-australia-nz
#######################################
kmod-usb-net-rtl8152                            #UE300 usb3 gigabit nic
kmod-usb-net-asix-ax88179
kmod-usb-net-pegasus                            #usb2 100M ethernet
#######################################
-dnsmasq
dnsmasq-full
#######################################
ipset
#######################################
at
#######################################
bash
lsof
htop
diffutils
vim-fuller
#######################################
unzip
unrar
rsync
block-mount
jq
#######################################
nmap
strace
tcpdump
usbutils
pciutils                                #lspci
openssl-util
inotifywatch
#######################################
iperf3
iptraf-ng
fdisk
losetup
######################################
irqbalance
#######################################
openssh-client                          #for cisco access
#######################################
luci
luci-theme-bootstrap
luci-theme-material
luci-theme-openwrt
#luci-theme-openwrt-2020
luci-app-commands
luci-app-uhttpd
luci-app-sqm
luci-app-travelmate
luci-app-adblock
adblock
#######################################
banip
luci-app-banip
#######################################
sqm-scripts
sqm-scripts-extra
luci-app-sqm
#######################################
nlbwmon
luci-app-nlbwmon
######################################
openvpn-openssl
kmod-tun
luci-app-openvpn
openvpn-easy-rsa
vpn-policy-routing
luci-app-vpn-policy-routing
#######################################
luci-app-wol
######################################
kmod-veth
#######################################
kmod-usb-net
kmod-usb-net-cdc-ether                          #android-tethering
kmod-usb-net-rndis                              #RNDIS-connections
#######################################
#kmod-usb-net-ipheth                             #AppleiPhoneUSBEthernetdriver
#usbmuxd
#libimobiledevice
#######################################
#cryptsetup
#######################################
kmod-sched-ctinfo
#######################################
-ip-tiny
ip-full
#######################################
atftpd
#######################################
collectd-mod-thermal
collectd-mod-irq
collectd-mod-conntrack
conntrack
#######################################
kmod-leds-gpio
kmod-ledtrig-default-on
kmod-ledtrig-gpio
kmod-ledtrig-heartbeat
kmod-ledtrig-netdev
kmod-ledtrig-oneshot
kmod-ledtrig-timer
kmod-ledtrig-transient
#######################################
luci-app-statistics
collectd-mod-network
collectd-mod-exec
collectd-mod-sqm
######################################## OTG - pi as an ethernet device
kmod-usb-dwc2
kmod-usb-gadget-eth

out-of-tree: ARGON THEME


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
  • when you re-flash check the newer one in /etc/custom/wrt.ini
  • or manually add desired options from the list below
###################################################################################
# NORCCUSTOM=1					#rc.local negates most options here
###################################################################################
# EXPERIMENTAL=1				#enables tweaks that are non-standard+may result in unexpected results
###################################################################################
# ENABLEDSERVICES="banip adblock"		#enable and start
# NOUPDATECHECK=1				#/bin/updatecheck.sh (luci>bootstrap-only||profile.d)
# LUCIDEFAULTTHEME="bootstrap"
# 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
###################################################################################
# RCSHBASH=1
# RCSHDDIR="/usbstick"
###################################################################################
# COLORBASH="monominimal"
# COLORBASH="mono"
# COLORBASH="gandalf"
#######################
# COLORASH="ocean"
# COLORASH="unix"

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

  • Package names to be auto uninstalled

UTILITY SCRIPTS:

rollback.sh

  • remote configuration / reboot timer... on expiry all config/* is reverted ( NOTE: no service restarts happen so you must use a reboot-on-expire with a sane timeout if you really don't want to be locked out )

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.

For my builds I add:

  • Acme
  • DDNS
  • Collectd
  • nlbwmon
  • USB drivers for storage and network adapters (RTL-8152/3)
  • 6in4 support
  • Wireguard
  • FAT32, NTFS, and Ext4 support
  • Luci (including any relevant luci apps for above packages)
  • banip
  • irqbalance
  • SQM
  • nano
2 Likes

mwan3
vpn-policy-routing
openvpn
wireguard
banip
bind-dig
bind-host
e2fsprogs
fdisk
ip-full
iptraf-ng
irqbalance
nmap
tcpdump
sqm
watchcat
+3G/LTE modules and luci protocols
+USBtoETH modules

1 Like

Here is a list of my packages that I think can be considered as general:

opkg install usbutils curl mc wget
opkg install kmod-usb-net-rtl8152
opkg install kmod-hwmon-rpi-poe-fan
opkg install luci-ssl-nginx
opkg install kmod-wireguard luci-app-wireguard luci-proto-wireguard wireguard wireguard-tools qrencode
opkg install luci-app-adblock
opkg install luci-app-statistics collectd-mod-thermal
opkg install block-mount kmod-fs-ext4 kmod-usb-storage e2fsprogs kmod-usb-ohci kmod-usb-uhci fdisk
opkg install openssh-sftp-server

Also I would suggest an 16GB SD card image, whoever has larger SD's can define an add'l partition.

1 Like

my current sloppy list

samples
wget
curl
kmod-leds-gpio ###+++
kmod-ledtrig-transient
dtc
kmod-usb-serial-ftdi
iptables-mod-geoip
xz
atftpd
collectd-mod-thermal
collectd-mod-irq
collectd-mod-conntrack
conntrack
file
blkid
-wpad-basic
wpad-openssl
zoneinfo-australia-nz
kmod-usb-net-rtl8152                            #UE300 usb3 gigabit nic
kmod-usb-net-pegasus                            #usb2 100M ethernet
-dnsmasq
dnsmasq-full
block-mount
ipset
at
bash
lsof
htop
diffutils
vim-fuller
unzip
unrar
rsync
nmap
strace
tcpdump
usbutils
pciutils            #lspci
openssl-util
inotifywatch
luci
luci-app-commands
luci-app-uhttpd
luci-app-sqm
luci-app-travelmate
luci-app-adblock
adblock
banip
luci-app-banip
sqm-scripts
sqm-scripts-extra
luci-app-sqm
nlbwmon
luci-app-nlbwmon
wireguard
kmod-wireguard
luci-app-wireguard
openvpn-openssl
kmod-tun
luci-app-openvpn
openvpn-easy-rsa
vpn-policy-routing
luci-app-vpn-policy-routing
kmod-veth
iperf3
iptraf-ng
block-mount
fdisk
losetup
ntfs-3g                   #dont really use these but good for a commonimg
ntfs-3g-utils
irqbalance
minicom
openssh-client #for cisco access
-ip-tiny
ip-full
file
atftpd
collectd-mod-thermal
collectd-mod-irq
collectd-mod-conntrack
conntrack
kmod-leds-gpio
kmod-ledtrig-default-on
kmod-ledtrig-gpio
kmod-ledtrig-heartbeat
kmod-ledtrig-netdev
kmod-ledtrig-oneshot
kmod-ledtrig-timer
kmod-ledtrig-transient
luci-app-statistics
collectd-mod-network
collectd-mod-exec
collectd-mod-sqm

I guess things like 'nlbwmon' can be disabled out of the box... should the make it to the final list...

what package names for these?

6in4, acme, ddns-scripts. I also add acme-dnsapi and ddns-scripts_cloudflare.com-v4.

1 Like

wwan
usbutils
usb-modeswitch
uqmi
luci-proto-qmi
luci-proto-ncm
kmod-usb-net-cdc-ether
kmod-usb-net-cdc-mbim
kmod-usb-net-cdc-ncm
kmod-usb-net-huawei-cdc-ncm
kmod-usb-net-qmi-wwan

also not to forget
screen
snmpd

1 Like
kmod-macvlan
kmod-tun
1 Like

can i use this to update my pi4 snapshot?
i have SQM, DNS over HTTPS and some other packages to monitor thermal and usage and network monitor
OpenWrt SNAPSHOT r13903-f206461153 / LuCI Master git-20.139.68368-4a378e6

is it ext4 or squashfs? are the packages you need for DNS over HTTPS included in the build already?

these are the commands i used

opkg install dnsmasq https-dns-proxy
opkg install luci-app-https-dns-proxy
opkg remove qos-scripts luci-app-qos
opkg update && opkg install luci-app-sqm

and these packages from luci
luci-app-statistics
collectd
collectd-mod-thermal
collectd-mod-sensors

hold off for a day... currently ironing out a bug

the build currently does not have

https-dns-proxy
luci-app-https-dns-proxy

the other apps you mention are included...

1 Like

ok sure thank you for building these images :slightly_smiling_face:

added to the build: 1.1.17+ [disabled]... thanks for the addition! :lab_coat:

Big fan of this community build.. however, I spent hours today wrestling with setting up Pi 4 WiFi in access point mode & just couldn’t get it to work. As soon as I loaded the regular OpenWrt vanilla/standard snapshot I was able to get ap mode working. So I’m not sure if there’s something in the community version that’s causing an issue or it’s just me.. & FYI also about the only way I could get Pi 4 WiFi working at all is to use legacy modes - if anyone has successfully got AC mode working I’d really appreciate someone sharing their config. My objective is to create a Pi 4 travel router with wireguard vpn enabled to different wireguard servers on different ssids. Thanks & please keep up the good work on this build.

1 Like

This is the main glaringly obvious wifi alteration... so you could try remove wpad-openssl and put back plain wpad.... edit: did some more testing and ap/ac works with sane settings...(doubt it's anything build specific) not sure how you managed to use stock-os fine and not this one... thanks for testing it out... unintended conflicts like these are expected with things like this... very useful information :lab_coat:

can you please tell how to install and update my current build? and how to save my configs files?

i've updated the section in the top post labelled 'sample install commands' (click the little triangle)

1 Like