forked from freifunk-franken/firmware
Drop support for devices with less than 8/64 MB flash/memory
Memory consumption has increased enough with OpenWrt 21.02, that devices with 32 MB memory do not work reliably anymore. It might be possible to work around the 4 MB flash limitation, but reducing memory consumption is quite a bit harder. It is very likely that this is only possible with a signifcant reduction of feature. As we do not support any devices that have enough memory but only 4 MB of flash, drop support for devices with less than 8/64 MB alltogether. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
de9d4abf44
commit
5e7bdc0548
|
@ -14,19 +14,11 @@ images=("openwrt-${chipset}-${subtarget}-glinet_gl-ar150-squashfs-*"
|
|||
"openwrt-${chipset}-${subtarget}-tplink_tl-wdr3600-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wdr4300-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wdr4310-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v2-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v3-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr1043nd-v4-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr1043n-v5-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr710n-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr842n-v2-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_bullet-m-ar7240-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_bullet-m-ar7241-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_nanostation-loco-m-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_nanostation-loco-m-xw-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_nanostation-m-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_picostation-m-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_unifi-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-ubnt_unifiac-mesh-squashfs-*"
|
||||
)
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
chipset=ath79
|
||||
subtarget=tiny
|
||||
images=("openwrt-${chipset}-${subtarget}-tplink_tl-mr3020-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wa850re-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wa860re-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wa901nd-v2-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr740n-v4-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr741-v1-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr741nd-v4-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v7-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v8-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v9-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v10-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v11-squashfs-*"
|
||||
"openwrt-${chipset}-${subtarget}-tplink_tl-wr841-v12-squashfs-*"
|
||||
)
|
|
@ -1,56 +0,0 @@
|
|||
# Generated using "./buildscript config openwrt".
|
||||
# Do no edit manually
|
||||
#
|
||||
CONFIG_TARGET_ath79=y
|
||||
CONFIG_TARGET_ath79_tiny=y
|
||||
CONFIG_TARGET_MULTI_PROFILE=y
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-mr3020-v1=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-mr3020-v1="-uboot-envtools -kmod-usb-core -kmod-usb-chipidea2 -kmod-usb-ledtrig-usbport"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wa850re-v1=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wa850re-v1="-uboot-envtools -rssileds"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wa860re-v1=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wa860re-v1="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wa901nd-v2=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wa901nd-v2="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr740n-v4=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr740n-v4="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr741-v1=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr741-v1="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr741nd-v4=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr741nd-v4="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v7=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v7="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v8=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v8="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v9=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v9="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v10=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v10="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v11=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v11="-uboot-envtools"
|
||||
CONFIG_TARGET_DEVICE_ath79_tiny_DEVICE_tplink_tl-wr841-v12=y
|
||||
CONFIG_TARGET_DEVICE_PACKAGES_ath79_tiny_DEVICE_tplink_tl-wr841-v12="-uboot-envtools"
|
||||
CONFIG_BUSYBOX_CUSTOM=y
|
||||
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
|
||||
# CONFIG_BUSYBOX_CONFIG_BRCTL is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_CROND is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_CRONTAB is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set
|
||||
# CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set
|
||||
CONFIG_CLEAN_IPKG=y
|
||||
# CONFIG_DROPBEAR_CURVE25519 is not set
|
||||
# CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set
|
||||
# CONFIG_FASTD_ENABLE_MAC_GHASH is not set
|
||||
# CONFIG_FASTD_ENABLE_MAC_UHASH is not set
|
||||
# CONFIG_FASTD_ENABLE_METHOD_COMPOSED_GMAC is not set
|
||||
# CONFIG_FASTD_ENABLE_METHOD_COMPOSED_UMAC is not set
|
||||
# CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set
|
||||
# CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set
|
||||
CONFIG_KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE=1
|
||||
# CONFIG_PACKAGE_ALFRED_VIS is not set
|
||||
CONFIG_PACKAGE_hostapd-mini=y
|
||||
CONFIG_PACKAGE_iwinfo=m
|
||||
CONFIG_PACKAGE_libiwinfo=m
|
||||
CONFIG_PACKAGE_opkg=m
|
||||
CONFIG_PACKAGE_wpad-mini=m
|
||||
CONFIG_STRIP_KERNEL_EXPORTS=y
|
|
@ -18,27 +18,15 @@ get_cpu_port() {
|
|||
netgear,r6220|\
|
||||
tplink,cpe210-v2|\
|
||||
tplink,cpe210-v3|\
|
||||
tplink,tl-mr3020-v1|\
|
||||
tplink,tl-wa850re-v1|\
|
||||
tplink,tl-wa860re-v1|\
|
||||
tplink,tl-wa901nd-v2|\
|
||||
ubnt,bullet-m-ar7240|\
|
||||
ubnt,bullet-m-ar7241|\
|
||||
ubnt,edgerouter-4|\
|
||||
ubnt,edgerouter-x|\
|
||||
ubnt,edgerouter-x-sfp|\
|
||||
ubnt,nanostation-loco-m|\
|
||||
ubnt,nanostation-loco-m-xw|\
|
||||
ubnt,nanostation-m|\
|
||||
ubnt,picostation-m|\
|
||||
ubnt,unifi|\
|
||||
ubnt,unifiac-mesh|\
|
||||
xiaomi,mi-router-4a-gigabit)
|
||||
CPUPORT=""
|
||||
;;
|
||||
tplink,tl-wr1043nd-v1)
|
||||
CPUPORT="5t"
|
||||
;;
|
||||
*)
|
||||
CPUPORT="0t"
|
||||
;;
|
||||
|
|
|
@ -18,10 +18,7 @@ get_port_order() {
|
|||
;;
|
||||
tplink,archer-c25-v1|\
|
||||
tplink,archer-c60-v1|\
|
||||
tplink,archer-c60-v2|\
|
||||
tplink,tl-wr841-v10|\
|
||||
tplink,tl-wr841-v11|\
|
||||
tplink,tl-wr841-v12)
|
||||
tplink,archer-c60-v2)
|
||||
PORTORDER="4 3 2 1"
|
||||
;;
|
||||
tplink,archer-c50-v4|\
|
||||
|
@ -42,9 +39,6 @@ get_port_order() {
|
|||
tplink,cpe510-v1)
|
||||
PORTORDER="5 4"
|
||||
;;
|
||||
tplink,tl-wr841-v8)
|
||||
PORTORDER="2 3 4 1"
|
||||
;;
|
||||
xiaomi,mi-router-4a-100m)
|
||||
PORTORDER="0 2 4"
|
||||
;;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth0/address)
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,12 +0,0 @@
|
|||
. /lib/functions/fff/network
|
||||
|
||||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="3 4 5t"
|
||||
WAN_PORTS="0 5t"
|
||||
BATMAN_PORTS="1 2 5t"
|
||||
|
||||
# use mac address from phy0 with 'locally administered' bit set to '1'
|
||||
# only possible, because wXmesh is created first and therefore gets the 'universally administered address'
|
||||
|
||||
ETHMESHMAC=$(macFlipLocalBit "$(cat /sys/class/ieee80211/phy0/macaddress)")
|
|
@ -1,5 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="3 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="0t"
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 4 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="2 3 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth1
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth0/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 4 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="2 3 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 4 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 2 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 2 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 4 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,7 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS="1 4 0t"
|
||||
WAN_PORTS=
|
||||
BATMAN_PORTS="3 2 0t"
|
||||
|
||||
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth1
|
||||
SWITCHDEV=eth1
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -1,8 +0,0 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
ONE_PORT="YES"
|
||||
|
||||
. /etc/network.mode
|
|
@ -6,23 +6,10 @@ BOARD="$(uci get board.model.name)"
|
|||
|
||||
# antenna gain
|
||||
case "$BOARD" in
|
||||
tplink,tl-wr1043nd-v1)
|
||||
uci set wireless.radio0.antenna_gain=3
|
||||
uci commit wireless
|
||||
;;
|
||||
ubnt,nanostation-loco-m|\
|
||||
ubnt,nanostation-loco-m-xw)
|
||||
uci set wireless.radio0.antenna_gain=9
|
||||
uci commit wireless
|
||||
;;
|
||||
ubnt,nanostation-m)
|
||||
uci set wireless.radio0.antenna_gain=11
|
||||
uci commit wireless
|
||||
;;
|
||||
ubnt,picostation-m)
|
||||
uci set wireless.radio0.antenna_gain=12
|
||||
uci commit wireless
|
||||
;;
|
||||
ubnt,unifi)
|
||||
# No support for Unifi AP Pro!
|
||||
uci set wireless.radio0.antenna_gain=3
|
||||
|
|
Loading…
Reference in New Issue
Block a user