gluon/targets/ar71xx-generic

338 lines
7.2 KiB
Plaintext
Raw Normal View History

config 'CONFIG_GLUON_SPECIALIZE_KERNEL=y'
ar71xx-generic: Reduce SquashFS blocksize to 64K (#1455) Some 32 MB devices like the Nanostation M2 suffer from sudden high loads combined with a squashfs related OOM reboot: logd invoked oom-killer: gfp_mask=0x2420848, order=0, oom_score_adj=0 CPU: 0 PID: 774 Comm: logd Not tainted 4.4.135 #0 Stack : 804214dc 00000000 00000001 80480000 8182fa3c 80474803 804028d0 00000306 804e378c 00001ade 00000040 00000000 00000000 800a7f10 00000006 00000000 00000000 00000000 804063e0 80c69994 804e6542 800a5e8c 02420848 00000000 00000001 801fd600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ... Call Trace: [<800721cc>] show_stack+0x54/0x88 [<800d5468>] dump_header.isra.4+0x48/0x130 [<800d5c38>] check_panic_on_oom+0x48/0x84 [<800d5d64>] out_of_memory+0xf0/0x324 [<800d9888>] __alloc_pages_nodemask+0x6b8/0x724 [<800d2960>] pagecache_get_page+0x154/0x270 [<80134cb0>] __getblk_slow+0x15c/0x374 [<80160418>] squashfs_read_data+0x1c8/0x6e8 [<80164628>] squashfs_readpage_block+0x32c/0x4d8 [<801622a4>] squashfs_readpage+0x5bc/0x6d0 [<800dd030>] __do_page_cache_readahead+0x1f8/0x264 [<800d479c>] filemap_fault+0x1a8/0x458 [<800efc1c>] __do_fault+0x64/0xd0 [<800f2824>] handle_mm_fault+0x4a4/0xb40 [<80076e98>] __do_page_fault+0x134/0x470 [<80060820>] ret_from_exception+0x0/0x10 Reduction of the SquashFS blocksize should reduce the problem slightly on these nodes. The image size will increase slightly but this should be no problem for ar71xx-generic (in contrast to ar71xx-tiny).
2018-09-23 12:34:14 +00:00
config 'CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=64'
ATH10K_PACKAGES=
ATH10K_PACKAGES_QCA9887=
if [ "$GLUON_WLAN_MESH" = 'ibss' ]; then
2017-01-18 16:21:43 +00:00
ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca988x ath10k-firmware-qca988x-ct'
ATH10K_PACKAGES_QCA9887='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca9887 ath10k-firmware-qca9887-ct'
2017-01-18 16:21:43 +00:00
fi
# 8devices
device 8devices-carambola2-board carambola2
factory
# ALFA NETWORK
device alfa-network-ap121f ap121f ap121f
factory
2017-01-18 16:21:43 +00:00
device alfa-network-hornet-ub hornet-ub HORNETUB
alias alfa-network-ap121
alias alfa-network-ap121u
device alfa-network-tube2h tube2h-8M TUBE2H8M
device alfa-network-n2-n5 alfa-nx ALFANX
# Allnet
device allnet-all0315n all0315n ALL0315N
factory
# AVM
device avm-fritz-box-4020 fritz4020 fritz4020
factory
device avm-fritz-wlan-repeater-300e fritz300e
factory
device avm-fritz-wlan-repeater-450e fritz450e
factory
2017-01-18 16:21:43 +00:00
# Buffalo
device buffalo-wzr-hp-g300nh wzr-hp-g300nh WZRHPG300NH
device buffalo-wzr-hp-g300nh2 wzr-hp-g300nh2 WZRHPG300NH2
device buffalo-wzr-hp-g450h wzr-hp-g450h WZRHPG450H
device buffalo-wzr-hp-ag300h wzr-hp-ag300h WZRHPAG300H
sysupgrade
device buffalo-wzr-600dhp wzr-600dhp WZR600DHP
sysupgrade
sysupgrade_image buffalo-wzr-hp-ag300h-wzr-600dhp wzr-hp-ag300h-squashfs-sysupgrade .bin
# D-Link
device d-link-dap-1330-rev-a1 dap-1330-a1
factory .img
2017-01-18 16:21:43 +00:00
device d-link-dir-505-rev-a1 dir-505-a1 DIR505A1
alias d-link-dir-505-rev-a2
device d-link-dir-825-rev-b1 dir-825-b1 DIR825B1
factory
2017-01-18 16:21:43 +00:00
# GL Innovations
device gl-inet-6408a-v1 gl-inet-6408A-v1
2017-01-18 16:21:43 +00:00
device gl-inet-6416a-v1 gl-inet-6416A-v1
device gl.inet-gl-ar150 gl-ar150
manifest_alias gl-ar150
2017-01-18 16:21:43 +00:00
factory
device gl.inet-gl-ar300m gl-ar300m
manifest_alias gl-ar300m
factory
2017-01-18 16:21:43 +00:00
device gl.inet-gl-ar750 gl-ar750
manifest_alias gl-ar750
packages $ATH10K_PACKAGES
factory
2017-01-18 16:21:43 +00:00
# Linksys by Cisco
device linksys-wrt160nl wrt160nl WRT160NL
# Meraki
if [ "$BROKEN" ]; then
device meraki-mr12 mr12 # BROKEN: MAC address uniqueness issues
2017-01-18 16:21:43 +00:00
alias meraki-mr62
factory
device meraki-mr16 mr16 # BROKEN: MAC address uniqueness issues
2017-01-18 16:21:43 +00:00
alias meraki-mr66
factory
fi
# Netgear
device netgear-wndr3700 wndr3700
factory .img
device netgear-wndr3700v2 wndr3700v2
factory .img
device netgear-wndr3800 wndr3800
factory .img
device netgear-wndrmacv2 wndrmacv2
factory .img
if [ "$BROKEN" ]; then
device netgear-wndrmac wndrmac # BROKEN: Untested
2017-01-18 16:21:43 +00:00
factory .img
device netgear-wnr2200 wnr2200 WNR2200 # BROKEN: Untested
2017-01-18 16:21:43 +00:00
factory .img
fi
# OCEDO
device ocedo-koala koala
factory
2017-01-18 16:21:43 +00:00
# Onion
device onion-omega onion-omega
# OpenMesh
device openmesh-a60 a60 A60
alias openmesh-a40
packages $ATH10K_PACKAGES
2017-01-18 16:21:43 +00:00
device openmesh-mr1750 mr1750 MR1750
alias openmesh-mr1750v2
packages $ATH10K_PACKAGES
device openmesh-mr600 mr600 MR600
alias openmesh-mr600v2
device openmesh-mr900 mr900 MR900
alias openmesh-mr900v2
device openmesh-om2p om2p OM2P
alias openmesh-om2pv2
alias openmesh-om2pv4
2017-01-18 16:21:43 +00:00
alias openmesh-om2p-hs
alias openmesh-om2p-hsv2
alias openmesh-om2p-hsv3
alias openmesh-om2p-hsv4
2017-01-18 16:21:43 +00:00
alias openmesh-om2p-lc
device openmesh-om5p om5p OM5P
alias openmesh-om5p-an
device openmesh-om5p-ac om5pac OM5PAC
alias openmesh-om5p-acv2
packages $ATH10K_PACKAGES
# TP-Link
2018-07-10 20:57:40 +00:00
device tp-link-cpe210-v1.0 cpe210-220-v1
2017-01-18 16:21:43 +00:00
alias tp-link-cpe210-v1.1
alias tp-link-cpe220-v1.1
device tp-link-cpe210-v2.0 cpe210-v2
2018-07-10 20:57:40 +00:00
device tp-link-cpe510-v1.0 cpe510-520-v1
2017-01-18 16:21:43 +00:00
alias tp-link-cpe510-v1.1
alias tp-link-cpe520-v1.1
2018-07-10 20:57:40 +00:00
device tp-link-wbs210-v1.20 wbs210-v1
device tp-link-wbs510-v1.20 wbs510-v1
2017-01-18 16:21:43 +00:00
device tp-link-tl-wr710n-v1 tl-wr710n-v1
device tp-link-tl-wr710n-v2.1 tl-wr710n-v2.1
device tp-link-tl-wr810n-v1 tl-wr810n-v1
2017-01-18 16:21:43 +00:00
device tp-link-tl-wr842n-nd-v1 tl-wr842n-v1
device tp-link-tl-wr842n-nd-v2 tl-wr842n-v2
device tp-link-tl-wr842n-nd-v3 tl-wr842n-v3
device tp-link-tl-wr1043n-nd-v1 tl-wr1043nd-v1
device tp-link-tl-wr1043n-nd-v2 tl-wr1043nd-v2
device tp-link-tl-wr1043n-nd-v3 tl-wr1043nd-v3
device tp-link-tl-wr1043n-nd-v4 tl-wr1043nd-v4
device tp-link-tl-wr1043n-v5 tl-wr1043n-v5
2017-01-18 16:21:43 +00:00
device tp-link-tl-wdr3500-v1 tl-wdr3500-v1
device tp-link-tl-wdr3600-v1 tl-wdr3600-v1
device tp-link-tl-wdr4300-v1 tl-wdr4300-v1
device tp-link-tl-wr2543n-nd-v1 tl-wr2543-v1
device tp-link-archer-c5-v1 archer-c5-v1
packages $ATH10K_PACKAGES
device tp-link-archer-c7-v2 archer-c7-v2
packages $ATH10K_PACKAGES
factory -squashfs-factory${GLUON_REGION:+-${GLUON_REGION}} .bin
device tp-link-archer-c7-v4 archer-c7-v4
packages $ATH10K_PACKAGES
2018-10-03 10:53:02 +00:00
device tp-link-archer-c7-v5 archer-c7-v5
packages $ATH10K_PACKAGES
if [ "$BROKEN" ]; then
device tp-link-archer-c25-v1 archer-c25-v1 # BROKEN: OOM with 5GHz enabled in most environments
packages $ATH10K_PACKAGES_QCA9887
fi
if [ "$BROKEN" ]; then
device tp-link-archer-c58-v1 archer-c58-v1 # BROKEN: OOM with 5GHz enabled in most environments
fi
if [ "$BROKEN" ] || [ "$GLUON_WLAN_MESH" = '11s' ]; then
device tp-link-archer-c59-v1 archer-c59-v1 # BROKEN: IBSS meshing not working
fi
if [ "$BROKEN" ]; then
device tp-link-archer-c60-v1 archer-c60-v1 # BROKEN: OOM with 5GHz enabled in most environments
fi
if [ "$BROKEN" ]; then
device tp-link-re355 re355-v1 # BROKEN: OOM with 5GHz enabled in most environments if device is 64M RAM variant
fi
if [ "$BROKEN" ]; then
device tp-link-tl-wr902ac-v1 tl-wr902ac-v1 # BROKEN: OOM due to insufficient RAM for ath10k expected
fi
2018-07-10 20:57:40 +00:00
device tp-link-re450 re450-v1
packages $ATH10K_PACKAGES
2017-01-18 16:21:43 +00:00
# Ubiquiti
device ubiquiti-airgateway ubnt-air-gateway
alias ubiquiti-airgateway-lr
device ubiquiti-airgateway-pro ubnt-air-gateway-pro
2017-01-18 16:21:43 +00:00
device ubiquiti-airrouter ubnt-airrouter
device ubiquiti-bullet-m ubnt-bullet-m
alias ubiquiti-nanostation-loco-m2
alias ubiquiti-nanostation-loco-m5
alias ubiquiti-bullet-m2
alias ubiquiti-bullet-m5
alias ubiquiti-picostation-m2
device ubiquiti-rocket-m ubnt-rocket-m
alias ubiquiti-rocket-m2
alias ubiquiti-rocket-m5
2017-01-18 16:21:43 +00:00
device ubiquiti-nanostation-m ubnt-nano-m
alias ubiquiti-nanostation-m2
alias ubiquiti-nanostation-m5
device ubiquiti-loco-m-xw ubnt-loco-m-xw
alias ubiquiti-nanostation-loco-m2-xw
alias ubiquiti-nanostation-loco-m5-xw
if [ "$BROKEN" ]; then
alias ubiquiti-nanobeam-m5 # BROKEN: Untested
fi
2017-01-18 16:21:43 +00:00
device ubiquiti-nanostation-m-xw ubnt-nano-m-xw
alias ubiquiti-nanostation-m2-xw
alias ubiquiti-nanostation-m5-xw
device ubiquiti-rocket-m-xw ubnt-rocket-m-xw
alias ubiquiti-rocket-m2-xw
alias ubiquiti-rocket-m5-xw
device ubiquiti-rocket-m-ti ubnt-rocket-m-ti
alias ubiquiti-rocket-m2-ti
alias ubiquiti-rocket-m5-ti
2017-01-18 16:21:43 +00:00
device ubiquiti-unifi ubnt-unifi
alias ubiquiti-unifi-ap
alias ubiquiti-unifi-ap-lr
device ubiquiti-unifi-ap-pro ubnt-uap-pro
device ubiquiti-unifiap-outdoor ubnt-unifi-outdoor
device ubiquiti-unifiap-outdoor+ ubnt-unifi-outdoor-plus
if [ "$BROKEN" ]; then
device ubiquiti-ls-sr71 ubnt-ls-sr71 # BROKEN: Untested
fi
device ubiquiti-unifi-ac-lite ubnt-unifiac-lite
alias ubiquiti-unifi-ac-lr
2017-01-18 16:21:43 +00:00
packages $ATH10K_PACKAGES
factory
device ubiquiti-unifi-ac-pro ubnt-unifiac-pro
packages $ATH10K_PACKAGES
factory
2018-07-10 20:57:40 +00:00
device ubiquiti-unifi-ac-mesh ubnt-unifiac-mesh
packages $ATH10K_PACKAGES
factory
device ubiquiti-unifi-ac-mesh-pro ubnt-unifiac-mesh-pro
packages $ATH10K_PACKAGES
factory
2017-01-18 16:21:43 +00:00
# Western Digital
device wd-my-net-n600 mynet-n600
device wd-my-net-n750 mynet-n750
# ZyXEL
device zyxel-nbg6616 NBG6616
packages $ATH10K_PACKAGES