From 26b5764c748c5d44cb7e6d368a55ef8a58b8a751 Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Tue, 26 Apr 2022 13:27:58 +0200 Subject: [PATCH 1/2] gluon-setup-mode: add fallback led-boot as status for devices in targets that do no implement `get_status_led` in /etc/diag.sh and do not have an led-running in their dts --- .../gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led index 7242451c..c3ac6681 100755 --- a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led +++ b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led @@ -12,6 +12,9 @@ start() { if [ -z $status_led ]; then status_led="$running" fi + if [ -z $status_led ]; then + status_led="$boot" + fi status_led_set_timer 1000 300 } From 4cbd748e5284fd2b913db44753bb129162873332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20L=C3=BCssing?= Date: Thu, 7 Jul 2022 23:26:48 +0200 Subject: [PATCH 2/2] ath79-generic: (re)add support for ALFA Network AP121F MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gone due to commit 45c84a1 ("ar71xx: drop target") Note that it was wrongly marked as device class tiny in commit 7fd7116e2a86 ("targets: add device-class flags") in the past, the device has 64MB RAM and not 32MB. Also, the device has no "led-running" assigned in DTS. The device has three LEDs: "green:vpn", "green:lan" and "green:wlan". The first LED, "green:vpn", has a "V" icon and was used to show the VPN connection status in the vendor firmware. This LED will be used via the newly added "led-boot" fallback in gluon-setup-mode. But will be unused during normal operation due to the unassigned "led-running" in DTS. Signed-off-by: Linus Lüssing --- docs/user/supported_devices.rst | 4 ++++ targets/ath79-generic | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index feb8a978..8fe3f22f 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -4,6 +4,10 @@ Supported Devices & Architectures ath79-generic -------------- +* ALFA Network + + - AP121F + * AVM - FRITZ!WLAN Repeater 300E [#avmflash]_ diff --git a/targets/ath79-generic b/targets/ath79-generic index 88ba28eb..74eda3e8 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -16,6 +16,12 @@ local ATH10K_PACKAGES_QCA9887 = { local ATH10K_PACKAGES_QCA9888 = {} +-- ALFA NETWORK + +device('alfa-network-ap121f', 'alfa-network_ap121f', { + factory = false, +}) + -- AVM device('avm-fritz-box-4020', 'avm_fritz4020', {