Merge Official Source
This commit is contained in:
commit
0cde7f5801
@ -382,15 +382,20 @@ endef
|
||||
compat_version=$(if $(DEVICE_COMPAT_VERSION),$(DEVICE_COMPAT_VERSION),1.0)
|
||||
json_quote=$(subst ','\'',$(subst ",\",$(1)))
|
||||
#")')
|
||||
|
||||
legacy_supported_message=$(SUPPORTED_DEVICES) - Image version mismatch: image $(compat_version), \
|
||||
device 1.0. Please wipe config during upgrade (force required) or reinstall. \
|
||||
$(if $(DEVICE_COMPAT_MESSAGE),Reason: $(DEVICE_COMPAT_MESSAGE),Please check documentation ...)
|
||||
|
||||
metadata_devices=$(if $(1),$(subst "$(space)","$(comma)",$(strip $(foreach v,$(1),"$(call json_quote,$(v))"))))
|
||||
metadata_json = \
|
||||
'{ $(if $(IMAGE_METADATA),$(IMAGE_METADATA)$(comma)) \
|
||||
"metadata_version": "1.1", \
|
||||
"compat_version": "$(call json_quote,$(compat_version))", \
|
||||
$(if $(DEVICE_COMPAT_MESSAGE),"compat_message": "$(call json_quote,$(DEVICE_COMPAT_MESSAGE))"$(comma)) \
|
||||
$(if $(filter-out 1.0,$(compat_version)),"new_supported_devices":[$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma)) \
|
||||
$(if $(filter-out 1.0,$(compat_version)),"supported_devices": \
|
||||
["$(call json_quote,Image version $(compat_version) incompatible to device: $(if $(DEVICE_COMPAT_MESSAGE),$(DEVICE_COMPAT_MESSAGE),Please check documentation ...))"]$(comma)) \
|
||||
$(if $(filter-out 1.0,$(compat_version)),"new_supported_devices": \
|
||||
[$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma) \
|
||||
"supported_devices": ["$(call json_quote,$(legacy_supported_message))"]$(comma)) \
|
||||
$(if $(filter 1.0,$(compat_version)),"supported_devices":[$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma)) \
|
||||
"version": { \
|
||||
"dist": "$(call json_quote,$(VERSION_DIST))", \
|
||||
|
||||
@ -59,7 +59,7 @@ endif
|
||||
DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))
|
||||
|
||||
filter_packages = $(filter-out -% $(patsubst -%,%,$(filter -%,$(1))),$(1))
|
||||
extra_packages = $(if $(filter wpad-mini wpad-basic wpad nas,$(1)),iwinfo)
|
||||
extra_packages = $(if $(filter wpad-mini wpad-basic wpad-basic-wolfssl wpad nas,$(1)),iwinfo)
|
||||
|
||||
define ProfileDefault
|
||||
NAME:=
|
||||
|
||||
@ -36,7 +36,7 @@ define KernelPackage/fs-exfat
|
||||
TITLE:=exFAT kernel module
|
||||
FILES:=$(PKG_BUILD_DIR)/exfat.ko
|
||||
AUTOLOAD:=$(call AutoProbe,exfat)
|
||||
DEPENDS:=+kmod-nls-base
|
||||
DEPENDS:= +kmod-nls-base
|
||||
endef
|
||||
|
||||
define KernelPackage/exfat/description
|
||||
|
||||
@ -0,0 +1,64 @@
|
||||
From 65ad3ef9fced4062dfd74e2f89443fb5ce184321 Mon Sep 17 00:00:00 2001
|
||||
From: Rajkumar Manoharan <rmanohar@codeaurora.org>
|
||||
Date: Wed, 1 Jul 2020 19:20:24 -0700
|
||||
Subject: mac80211: fix warning in 6 GHz IE addition in mesh mode
|
||||
|
||||
The commit 24a2042cb22f ("mac80211: add HE 6 GHz Band Capability
|
||||
element") failed to check device capability before adding HE 6 GHz
|
||||
capability element. Below warning is reported in 11ac device in mesh.
|
||||
Fix that by checking device capability at HE 6 GHz cap IE addition
|
||||
in mesh beacon and association request.
|
||||
|
||||
WARNING: CPU: 1 PID: 1897 at net/mac80211/util.c:2878
|
||||
ieee80211_ie_build_he_6ghz_cap+0x149/0x150 [mac80211]
|
||||
[ 3138.720358] Call Trace:
|
||||
[ 3138.720361] ieee80211_mesh_build_beacon+0x462/0x530 [mac80211]
|
||||
[ 3138.720363] ieee80211_start_mesh+0xa8/0xf0 [mac80211]
|
||||
[ 3138.720365] __cfg80211_join_mesh+0x122/0x3e0 [cfg80211]
|
||||
[ 3138.720368] nl80211_join_mesh+0x3d3/0x510 [cfg80211]
|
||||
|
||||
Fixes: 24a2042cb22f ("mac80211: add HE 6 GHz Band Capability element")
|
||||
Reported-by: Markus Theil <markus.theil@tu-ilmenau.de>
|
||||
Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
|
||||
Link: https://lore.kernel.org/r/1593656424-18240-1-git-send-email-rmanohar@codeaurora.org
|
||||
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
||||
---
|
||||
net/mac80211/mesh.c | 13 +++++++++++++
|
||||
net/mac80211/util.c | 4 ++++
|
||||
2 files changed, 17 insertions(+)
|
||||
|
||||
--- a/net/mac80211/mesh.c
|
||||
+++ b/net/mac80211/mesh.c
|
||||
@@ -617,6 +617,19 @@ int mesh_add_he_oper_ie(struct ieee80211
|
||||
int mesh_add_he_6ghz_cap_ie(struct ieee80211_sub_if_data *sdata,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
+ struct ieee80211_supported_band *sband;
|
||||
+ const struct ieee80211_sband_iftype_data *iftd;
|
||||
+
|
||||
+ sband = ieee80211_get_sband(sdata);
|
||||
+ if (!sband)
|
||||
+ return -EINVAL;
|
||||
+
|
||||
+ iftd = ieee80211_get_sband_iftype_data(sband,
|
||||
+ NL80211_IFTYPE_MESH_POINT);
|
||||
+ /* The device doesn't support HE in mesh mode or at all */
|
||||
+ if (!iftd)
|
||||
+ return 0;
|
||||
+
|
||||
ieee80211_ie_build_he_6ghz_cap(sdata, skb);
|
||||
return 0;
|
||||
}
|
||||
--- a/net/mac80211/util.c
|
||||
+++ b/net/mac80211/util.c
|
||||
@@ -2878,6 +2878,10 @@ void ieee80211_ie_build_he_6ghz_cap(stru
|
||||
if (WARN_ON(!iftd))
|
||||
return;
|
||||
|
||||
+ /* Check for device HE 6 GHz capability before adding element */
|
||||
+ if (!iftd->he_6ghz_capa.capa)
|
||||
+ return;
|
||||
+
|
||||
cap = le16_to_cpu(iftd->he_6ghz_capa.capa);
|
||||
cap &= ~IEEE80211_HE_6GHZ_CAP_SM_PS;
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
From db6d1e942f5a2828e1245e16ceb997f537a2d1a4 Mon Sep 17 00:00:00 2001
|
||||
From: David Bauer <mail@david-bauer.net>
|
||||
Date: Sat, 25 Jul 2020 01:43:26 +0200
|
||||
Subject: [PATCH] mac80211: util: don't warn on missing sband iftype data
|
||||
|
||||
The kernel currently floods the ringbuffer with warnings when adding a
|
||||
mesh interface for a device not support HE 6GHz modes.
|
||||
|
||||
Return without warning in this case, as mesh_add_he_6ghz_cap_ie calls
|
||||
ieee80211_ie_build_he_6ghz_cap regardless of the supported interface
|
||||
modes.
|
||||
|
||||
Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
---
|
||||
net/mac80211/util.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/net/mac80211/util.c
|
||||
+++ b/net/mac80211/util.c
|
||||
@@ -2875,7 +2875,7 @@ void ieee80211_ie_build_he_6ghz_cap(stru
|
||||
return;
|
||||
|
||||
iftd = ieee80211_get_sband_iftype_data(sband, iftype);
|
||||
- if (WARN_ON(!iftd))
|
||||
+ if (!iftd)
|
||||
return;
|
||||
|
||||
cap = le16_to_cpu(iftd->he_6ghz_capa.capa);
|
||||
@ -3,11 +3,11 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=nat46
|
||||
|
||||
PKG_MIRROR_HASH:=24a22c8cb38983b55e7ad55c796f3835aa8702ad6f868953448e3b5e61ab6991
|
||||
PKG_MIRROR_HASH:=d0bc80038cadeb7e857118e8d6bae242670ab27377af49f74bad494e0e5da598
|
||||
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
|
||||
PKG_SOURCE_DATE:=2020-07-16
|
||||
PKG_SOURCE_DATE:=2020-08-06
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=ac712ad2bedf107329285af1909310675afe872d
|
||||
PKG_SOURCE_VERSION:=71e9f0941a666c7010bb6d31d45bb795439038fa
|
||||
|
||||
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
--- a/nat46/modules/nat46-core.c
|
||||
+++ b/nat46/modules/nat46-core.c
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <net/route.h>
|
||||
+#include <linux/version.h>
|
||||
|
||||
#include "nat46-glue.h"
|
||||
#include "nat46-core.h"
|
||||
@@ -1601,7 +1602,11 @@ void nat46_ipv6_input(struct sk_buff *ol
|
||||
/* Remove any debris in the socket control block */
|
||||
memset(IPCB(new_skb), 0, sizeof(struct inet_skb_parm));
|
||||
/* Remove netfilter references to IPv6 packet, new netfilter references will be created based on IPv4 packet */
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||
nf_reset(new_skb);
|
||||
+#else
|
||||
+ nf_reset_ct(new_skb);
|
||||
+#endif
|
||||
|
||||
/* modify packet: actual IPv6->IPv4 transformation */
|
||||
truncSize = v6packet_l3size - sizeof(struct iphdr); /* chop first 20 bytes */
|
||||
@@ -1806,7 +1811,11 @@ void nat46_ipv4_input(struct sk_buff *ol
|
||||
/* Remove any debris in the socket control block */
|
||||
memset(IPCB(new_skb), 0, sizeof(struct inet_skb_parm));
|
||||
/* Remove netfilter references to IPv4 packet, new netfilter references will be created based on IPv6 packet */
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||
nf_reset(new_skb);
|
||||
+#else
|
||||
+ nf_reset_ct(new_skb);
|
||||
+#endif
|
||||
|
||||
/* expand header (add 20 extra bytes at the beginning of sk_buff) */
|
||||
pskb_expand_head(new_skb, IPV6V4HDRDELTA + (add_frag_header?8:0), 0, GFP_ATOMIC);
|
||||
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=om-watchdog
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ get_gpio() {
|
||||
return 17
|
||||
;;
|
||||
esac
|
||||
elif [ "$board" = "teltonika_rut5xx" ]; then
|
||||
elif [ "$board" = "teltonika,rut5xx" ]; then
|
||||
# ramips
|
||||
return 11
|
||||
else
|
||||
|
||||
@ -13,6 +13,7 @@ config WPA_RFKILL_SUPPORT
|
||||
PACKAGE_wpad-openssl || \
|
||||
PACKAGE_wpad-wolfssl || \
|
||||
PACKAGE_wpad-basic || \
|
||||
PACKAGE_wpad-basic-wolfssl || \
|
||||
PACKAGE_wpad-mini || \
|
||||
PACKAGE_wpad-mesh-openssl || \
|
||||
PACKAGE_wpad-mesh-wolfssl
|
||||
@ -32,6 +33,7 @@ config WPA_MSG_MIN_PRIORITY
|
||||
PACKAGE_wpad-openssl || \
|
||||
PACKAGE_wpad-wolfssl || \
|
||||
PACKAGE_wpad-basic || \
|
||||
PACKAGE_wpad-basic-wolfssl || \
|
||||
PACKAGE_wpad-mini || \
|
||||
PACKAGE_wpad-mesh-openssl || \
|
||||
PACKAGE_wpad-mesh-wolfssl
|
||||
@ -49,6 +51,7 @@ config WPA_WOLFSSL
|
||||
bool
|
||||
default PACKAGE_wpa-supplicant-wolfssl ||\
|
||||
PACKAGE_wpad-wolfssl ||\
|
||||
PACKAGE_wpad-basic-wolfssl || \
|
||||
PACKAGE_wpad-mesh-wolfssl ||\
|
||||
PACKAGE_eapol-test-wolfssl
|
||||
select WOLFSSL_HAS_AES_CCM
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hostapd
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE_URL:=http://w1.fi/hostap.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
@ -250,6 +250,17 @@ define Package/wpad-basic/description
|
||||
This package contains a basic IEEE 802.1x/WPA Authenticator and Supplicant with WPA-PSK, 802.11r and 802.11w support.
|
||||
endef
|
||||
|
||||
define Package/wpad-basic-wolfssl
|
||||
$(call Package/wpad/Default,$(1))
|
||||
TITLE+= (wolfSSL, 11r, 11w)
|
||||
VARIANT:=wpad-basic-wolfssl
|
||||
DEPENDS+=+libwolfssl
|
||||
endef
|
||||
|
||||
define Package/wpad-basic-wolfssl/description
|
||||
This package contains a basic IEEE 802.1x/WPA Authenticator and Supplicant with WPA-PSK, SAE (WPA3-Personal), 802.11r and 802.11w support.
|
||||
endef
|
||||
|
||||
define Package/wpad-mini
|
||||
$(call Package/wpad/Default,$(1))
|
||||
TITLE+= (WPA-PSK only)
|
||||
@ -575,6 +586,7 @@ define Package/wpad/install
|
||||
$(LN) wpad $(1)/usr/sbin/wpa_supplicant
|
||||
endef
|
||||
Package/wpad-basic/install = $(Package/wpad/install)
|
||||
Package/wpad-basic-wolfssl/install = $(Package/wpad/install)
|
||||
Package/wpad-mini/install = $(Package/wpad/install)
|
||||
Package/wpad-openssl/install = $(Package/wpad/install)
|
||||
Package/wpad-wolfssl/install = $(Package/wpad/install)
|
||||
@ -630,6 +642,7 @@ $(eval $(call BuildPackage,wpad))
|
||||
$(eval $(call BuildPackage,wpad-mesh-openssl))
|
||||
$(eval $(call BuildPackage,wpad-mesh-wolfssl))
|
||||
$(eval $(call BuildPackage,wpad-basic))
|
||||
$(eval $(call BuildPackage,wpad-basic-wolfssl))
|
||||
$(eval $(call BuildPackage,wpad-mini))
|
||||
$(eval $(call BuildPackage,wpad-openssl))
|
||||
$(eval $(call BuildPackage,wpad-wolfssl))
|
||||
|
||||
@ -198,7 +198,7 @@ hostapd_common_add_bss_config() {
|
||||
config_add_int eapol_version
|
||||
|
||||
config_add_string 'auth_server:host' 'server:host'
|
||||
config_add_string auth_secret
|
||||
config_add_string auth_secret key
|
||||
config_add_int 'auth_port:port' 'port:port'
|
||||
|
||||
config_add_string acct_server
|
||||
@ -404,13 +404,13 @@ hostapd_set_bss_options() {
|
||||
;;
|
||||
psk|sae|psk-sae)
|
||||
json_get_vars key wpa_psk_file
|
||||
if [ ${#key} -lt 8 ]; then
|
||||
if [ ${#key} -eq 64 ]; then
|
||||
append bss_conf "wpa_psk=$key" "$N"
|
||||
elif [ ${#key} -ge 8 ] && [ ${#key} -le 63 ]; then
|
||||
append bss_conf "wpa_passphrase=$key" "$N"
|
||||
elif [ -n "$key" ] || [ -z "$wpa_psk_file" ]; then
|
||||
wireless_setup_vif_failed INVALID_WPA_PSK
|
||||
return 1
|
||||
elif [ ${#key} -eq 64 ]; then
|
||||
append bss_conf "wpa_psk=$key" "$N"
|
||||
else
|
||||
append bss_conf "wpa_passphrase=$key" "$N"
|
||||
fi
|
||||
[ -z "$wpa_psk_file" ] && set_default wpa_psk_file /var/run/hostapd-$ifname.psk
|
||||
[ -n "$wpa_psk_file" ] && {
|
||||
|
||||
52
target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts
Normal file
52
target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts
Normal file
@ -0,0 +1,52 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar9341_tplink_tl-wa.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TP-Link TL-WA901ND v3";
|
||||
compatible = "tplink,tl-wa901nd-v3", "qca,ar9341";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_system;
|
||||
led-failsafe = &led_system;
|
||||
led-running = &led_system;
|
||||
led-upgrade = &led_system;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
lan {
|
||||
label = "tp-link:green:lan";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wlan {
|
||||
label = "tp-link:green:wlan";
|
||||
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
|
||||
qss {
|
||||
label = "tp-link:green:qss";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_system: system {
|
||||
label = "tp-link:green:system";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -367,7 +367,7 @@ define Device/comfast_cf-e110n-v2
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E110N
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
|
||||
DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
|
||||
IMAGE_SIZE := 16192k
|
||||
endef
|
||||
TARGET_DEVICES += comfast_cf-e110n-v2
|
||||
@ -377,7 +377,7 @@ define Device/comfast_cf-e120a-v3
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E120A
|
||||
DEVICE_VARIANT := v3
|
||||
DEVICE_PACKAGES := rssileds kmod-leds-gpio -uboot-envtools
|
||||
DEVICE_PACKAGES := rssileds -uboot-envtools
|
||||
IMAGE_SIZE := 8000k
|
||||
endef
|
||||
TARGET_DEVICES += comfast_cf-e120a-v3
|
||||
@ -387,7 +387,7 @@ define Device/comfast_cf-e130n-v2
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E130N
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
|
||||
DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
|
||||
IMAGE_SIZE := 7936k
|
||||
endef
|
||||
TARGET_DEVICES += comfast_cf-e130n-v2
|
||||
@ -396,7 +396,7 @@ define Device/comfast_cf-e313ac
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E313AC
|
||||
DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-ath10k-ct-smallbuffers \
|
||||
DEVICE_PACKAGES := rssileds kmod-ath10k-ct-smallbuffers \
|
||||
ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
|
||||
IMAGE_SIZE := 7936k
|
||||
endef
|
||||
@ -416,7 +416,7 @@ define Device/comfast_cf-e5
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E5/E7
|
||||
DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-usb2 kmod-usb-net \
|
||||
DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net \
|
||||
kmod-usb-net-qmi-wwan -swconfig -uboot-envtools
|
||||
IMAGE_SIZE := 16192k
|
||||
endef
|
||||
@ -426,8 +426,7 @@ define Device/comfast_cf-e560ac
|
||||
SOC := qca9531
|
||||
DEVICE_VENDOR := COMFAST
|
||||
DEVICE_MODEL := CF-E560AC
|
||||
DEVICE_PACKAGES := kmod-leds-gpio kmod-usb2 kmod-ath10k-ct \
|
||||
ath10k-firmware-qca9888-ct
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
||||
IMAGE_SIZE := 16128k
|
||||
endef
|
||||
TARGET_DEVICES += comfast_cf-e560ac
|
||||
|
||||
@ -191,6 +191,16 @@ define Device/tplink_tl-wa901nd-v2
|
||||
endef
|
||||
TARGET_DEVICES += tplink_tl-wa901nd-v2
|
||||
|
||||
define Device/tplink_tl-wa901nd-v3
|
||||
$(Device/tplink-4mlzma)
|
||||
SOC := ar9341
|
||||
DEVICE_MODEL := TL-WA901ND
|
||||
DEVICE_VARIANT := v3
|
||||
TPLINK_HWID := 0x09010003
|
||||
SUPPORTED_DEVICES += tl-wa901nd-v3
|
||||
endef
|
||||
TARGET_DEVICES += tplink_tl-wa901nd-v3
|
||||
|
||||
define Device/tplink_tl-wa901nd-v4
|
||||
$(Device/tplink-4mlzma)
|
||||
SOC := tp9343
|
||||
|
||||
@ -50,6 +50,7 @@ tplink,tl-wa801nd-v4|\
|
||||
tplink,tl-wa830re-v1|\
|
||||
tplink,tl-wa860re-v1|\
|
||||
tplink,tl-wa901nd-v1|\
|
||||
tplink,tl-wa901nd-v3|\
|
||||
tplink,tl-wa901nd-v4|\
|
||||
tplink,tl-wa901nd-v5)
|
||||
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
|
||||
|
||||
@ -43,6 +43,7 @@ ath79_setup_interfaces()
|
||||
tplink,tl-wa860re-v1|\
|
||||
tplink,tl-wa901nd-v1|\
|
||||
tplink,tl-wa901nd-v2|\
|
||||
tplink,tl-wa901nd-v3|\
|
||||
tplink,tl-wa901nd-v4|\
|
||||
tplink,tl-wa901nd-v5|\
|
||||
tplink,tl-wr703n|\
|
||||
|
||||
@ -1,79 +0,0 @@
|
||||
From 2034addc7e193dc81d7ca60d8884832751b76758 Mon Sep 17 00:00:00 2001
|
||||
From: Ajay Kishore <akisho@codeaurora.org>
|
||||
Date: Tue, 24 Jan 2017 14:14:16 +0530
|
||||
Subject: pinctrl: qcom: use scm_call to route GPIO irq to Apps
|
||||
|
||||
For IPQ806x targets, TZ protects the registers that are used to
|
||||
configure the routing of interrupts to a target processor.
|
||||
To resolve this, this patch uses scm call to route GPIO interrupts
|
||||
to application processor. Also the scm call interface is changed.
|
||||
|
||||
Change-Id: Ib6c06829d04bc8c20483c36e63da92e26cdef9ce
|
||||
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
|
||||
---
|
||||
|
||||
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
|
||||
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
|
||||
@@ -22,7 +22,8 @@
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/log2.h>
|
||||
-
|
||||
+#include <linux/qcom_scm.h>
|
||||
+#include <linux/io.h>
|
||||
#include "../core.h"
|
||||
#include "../pinconf.h"
|
||||
#include "pinctrl-msm.h"
|
||||
@@ -706,6 +707,9 @@ static void msm_gpio_irq_mask(struct irq
|
||||
const struct msm_pingroup *g;
|
||||
unsigned long flags;
|
||||
u32 val;
|
||||
+ u32 addr;
|
||||
+ int ret;
|
||||
+ const __be32 *reg;
|
||||
|
||||
g = &pctrl->soc->groups[d->hwirq];
|
||||
|
||||
@@ -819,6 +823,7 @@ static int msm_gpio_irq_set_type(struct
|
||||
const struct msm_pingroup *g;
|
||||
unsigned long flags;
|
||||
u32 val;
|
||||
+ int ret;
|
||||
|
||||
g = &pctrl->soc->groups[d->hwirq];
|
||||
|
||||
@@ -832,11 +837,30 @@ static int msm_gpio_irq_set_type(struct
|
||||
else
|
||||
clear_bit(d->hwirq, pctrl->dual_edge_irqs);
|
||||
|
||||
+ ret = of_device_is_compatible(pctrl->dev->of_node,
|
||||
+ "qcom,ipq8064-pinctrl");
|
||||
/* Route interrupts to application cpu */
|
||||
- val = msm_readl_intr_target(pctrl, g);
|
||||
- val &= ~(7 << g->intr_target_bit);
|
||||
- val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
- msm_writel_intr_target(val, pctrl, g);
|
||||
+ if (!ret) {
|
||||
+ val = msm_readl_intr_target(pctrl, g);
|
||||
+ val &= ~(7 << g->intr_target_bit);
|
||||
+ val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
+ msm_writel_intr_target(val, pctrl, g);
|
||||
+ } else {
|
||||
+ const __be32 *reg = of_get_property(pctrl->dev->of_node, "reg", NULL);
|
||||
+ if (reg) {
|
||||
+ u32 addr = be32_to_cpup(reg) + g->intr_target_reg;
|
||||
+ qcom_scm_io_readl(addr, &val);
|
||||
+ __iormb();
|
||||
+
|
||||
+ val &= ~(7 << g->intr_target_bit);
|
||||
+ val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
+
|
||||
+ __iowmb();
|
||||
+ ret = qcom_scm_io_writel(addr, val);
|
||||
+ if (ret)
|
||||
+ pr_err("\n Routing interrupts to Apps proc failed");
|
||||
+ }
|
||||
+ }
|
||||
|
||||
/* Update configuration for gpio.
|
||||
* RAW_STATUS_EN is left on for all gpio irqs. Due to the
|
||||
@ -0,0 +1,104 @@
|
||||
From 13bec8d49bdf10aab4e1570ef42417f6bfbb6126 Mon Sep 17 00:00:00 2001
|
||||
From: Ajay Kishore <akisho@codeaurora.org>
|
||||
Date: Fri, 27 Mar 2020 23:32:08 +0100
|
||||
Subject: pinctrl: qcom: use scm_call to route GPIO irq to Apps
|
||||
|
||||
For IPQ806x targets, TZ protects the registers that are used to
|
||||
configure the routing of interrupts to a target processor.
|
||||
To resolve this, this patch uses scm call to route GPIO interrupts
|
||||
to application processor. Also the scm call interface is changed.
|
||||
|
||||
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Link: https://lore.kernel.org/r/20200327223209.20409-1-ansuelsmth@gmail.com
|
||||
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
|
||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
||||
---
|
||||
drivers/pinctrl/qcom/pinctrl-msm.c | 43 ++++++++++++++++++++++++++++++++------
|
||||
1 file changed, 37 insertions(+), 6 deletions(-)
|
||||
|
||||
(limited to 'drivers/pinctrl/qcom/pinctrl-msm.c')
|
||||
|
||||
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
|
||||
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/log2.h>
|
||||
+#include <linux/qcom_scm.h>
|
||||
+#include <linux/io.h>
|
||||
|
||||
#include "../core.h"
|
||||
#include "../pinconf.h"
|
||||
@@ -57,6 +59,8 @@ struct msm_pinctrl {
|
||||
struct irq_chip irq_chip;
|
||||
int irq;
|
||||
|
||||
+ bool intr_target_use_scm;
|
||||
+
|
||||
raw_spinlock_t lock;
|
||||
|
||||
DECLARE_BITMAP(dual_edge_irqs, MAX_NR_GPIO);
|
||||
@@ -64,6 +68,7 @@ struct msm_pinctrl {
|
||||
|
||||
const struct msm_pinctrl_soc_data *soc;
|
||||
void __iomem *regs[MAX_NR_TILES];
|
||||
+ u32 phys_base[MAX_NR_TILES];
|
||||
};
|
||||
|
||||
#define MSM_ACCESSOR(name) \
|
||||
@@ -832,11 +837,30 @@ static int msm_gpio_irq_set_type(struct
|
||||
else
|
||||
clear_bit(d->hwirq, pctrl->dual_edge_irqs);
|
||||
|
||||
- /* Route interrupts to application cpu */
|
||||
- val = msm_readl_intr_target(pctrl, g);
|
||||
- val &= ~(7 << g->intr_target_bit);
|
||||
- val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
- msm_writel_intr_target(val, pctrl, g);
|
||||
+ /* Route interrupts to application cpu.
|
||||
+ * With intr_target_use_scm interrupts are routed to
|
||||
+ * application cpu using scm calls.
|
||||
+ */
|
||||
+ if (pctrl->intr_target_use_scm) {
|
||||
+ u32 addr = pctrl->phys_base[0] + g->intr_target_reg;
|
||||
+ int ret;
|
||||
+
|
||||
+ qcom_scm_io_readl(addr, &val);
|
||||
+
|
||||
+ val &= ~(7 << g->intr_target_bit);
|
||||
+ val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
+
|
||||
+ ret = qcom_scm_io_writel(addr, val);
|
||||
+ if (ret)
|
||||
+ dev_err(pctrl->dev,
|
||||
+ "Failed routing %lu interrupt to Apps proc",
|
||||
+ d->hwirq);
|
||||
+ } else {
|
||||
+ val = msm_readl_intr_target(pctrl, g);
|
||||
+ val &= ~(7 << g->intr_target_bit);
|
||||
+ val |= g->intr_target_kpss_val << g->intr_target_bit;
|
||||
+ msm_writel_intr_target(val, pctrl, g);
|
||||
+ }
|
||||
|
||||
/* Update configuration for gpio.
|
||||
* RAW_STATUS_EN is left on for all gpio irqs. Due to the
|
||||
@@ -1138,6 +1162,9 @@ int msm_pinctrl_probe(struct platform_de
|
||||
pctrl->dev = &pdev->dev;
|
||||
pctrl->soc = soc_data;
|
||||
pctrl->chip = msm_gpio_template;
|
||||
+ pctrl->intr_target_use_scm = of_device_is_compatible(
|
||||
+ pctrl->dev->of_node,
|
||||
+ "qcom,ipq8064-pinctrl");
|
||||
|
||||
raw_spin_lock_init(&pctrl->lock);
|
||||
|
||||
@@ -1154,6 +1181,8 @@ int msm_pinctrl_probe(struct platform_de
|
||||
pctrl->regs[0] = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(pctrl->regs[0]))
|
||||
return PTR_ERR(pctrl->regs[0]);
|
||||
+
|
||||
+ pctrl->phys_base[0] = res->start;
|
||||
}
|
||||
|
||||
msm_pinctrl_setup_pm_reset(pctrl);
|
||||
@ -1,9 +1,15 @@
|
||||
From a3488aa9bed37c56e405967d44e821c484b5d6b9 Mon Sep 17 00:00:00 2001
|
||||
From: Ram Chandra Jangir <rjangir@codeaurora.org>
|
||||
Date: Fri, 28 Sep 2018 15:19:50 +0530
|
||||
Subject: [PATCH] ipq8064: pinctrl: Fixed missing RGMII pincontrol definitions
|
||||
From 8d8cec9bf6e9260397872785f249dfb59a417d08 Mon Sep 17 00:00:00 2001
|
||||
From: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Date: Wed, 19 Feb 2020 18:59:39 +0100
|
||||
Subject: ipq8064: pinctrl: Fixed missing RGMII pincontrol definitions
|
||||
|
||||
Add missing gpio definition for mdio and rgmii2.
|
||||
|
||||
Signed-off-by: Ram Chandra Jangir <rjangir@codeaurora.org>
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Link: https://lore.kernel.org/r/20200219175940.744-1-ansuelsmth@gmail.com
|
||||
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
|
||||
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
||||
---
|
||||
drivers/pinctrl/qcom/pinctrl-ipq8064.c | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
@ -1,7 +1,7 @@
|
||||
From 53ae145a7afa7686e03332d61eed90b7fa7c2529 Mon Sep 17 00:00:00 2001
|
||||
From 000de5417107623925a4cf0310579f744ff43c28 Mon Sep 17 00:00:00 2001
|
||||
From: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Date: Tue, 4 Feb 2020 19:38:06 +0100
|
||||
Subject: [PATCH v2] watchdog: qcom-wdt: disable pretimeout on timer platform
|
||||
Date: Tue, 4 Feb 2020 20:56:48 +0100
|
||||
Subject: watchdog: qcom-wdt: disable pretimeout on timer platform
|
||||
|
||||
Some platform like ipq806x doesn't support pretimeout and define
|
||||
some interrupts used by qcom,msm-timer. Change the driver to check
|
||||
@ -9,6 +9,11 @@ and use pretimeout only on qcom,kpss-wdt as it's the only platform
|
||||
that actually supports it.
|
||||
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
|
||||
Link: https://lore.kernel.org/r/20200204195648.23350-1-ansuelsmth@gmail.com
|
||||
[groeck: Conflict resolution]
|
||||
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
||||
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
|
||||
---
|
||||
drivers/watchdog/qcom-wdt.c | 31 +++++++++++++++++++++++--------
|
||||
1 file changed, 23 insertions(+), 8 deletions(-)
|
||||
@ -1,13 +1,16 @@
|
||||
From a16fcf911a020e46439a3bb3e702463fc3159831 Mon Sep 17 00:00:00 2001
|
||||
From 1aec193ea41d672d11592714cdda8167eb3b38fc Mon Sep 17 00:00:00 2001
|
||||
From: Abhishek Sahu <absahu@codeaurora.org>
|
||||
Date: Wed, 18 Nov 2015 12:38:56 +0530
|
||||
Subject: [PATCH 62/69] ipq806x: gcc: Added the enable regs and mask for PRNG
|
||||
Date: Wed, 18 Mar 2020 14:16:56 +0100
|
||||
Subject: ipq806x: gcc: Added the enable regs and mask for PRNG
|
||||
|
||||
kernel got hanged while reading from /dev/hwrng at the
|
||||
Kernel got hanged while reading from /dev/hwrng at the
|
||||
time of PRNG clock enable
|
||||
|
||||
Change-Id: I89856c7e19e6639508e6a2774304583a3ec91172
|
||||
Fixes: 24d8fba44af3 "clk: qcom: Add support for IPQ8064's global clock controller (GCC)"
|
||||
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Link: https://lkml.kernel.org/r/20200318131657.345-1-ansuelsmth@gmail.com
|
||||
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
||||
---
|
||||
drivers/clk/qcom/gcc-ipq806x.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
@ -1,9 +1,16 @@
|
||||
From d30840e2b1cf79d90392e6051b0c0b6006d29d8b Mon Sep 17 00:00:00 2001
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Thu, 9 Mar 2017 09:32:40 +0100
|
||||
Subject: [PATCH 64/69] clk: clk-rpm fixes
|
||||
From eec152734be10c72d2d413a27ca9d282c28cdb61 Mon Sep 17 00:00:00 2001
|
||||
From: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Date: Tue, 10 Mar 2020 15:37:56 +0100
|
||||
Subject: clk: qcom: clk-rpm: add missing rpm clk for ipq806x
|
||||
|
||||
Add missing definition of rpm clk for ipq806x soc
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Acked-by: John Crispin <john@phrozen.org>
|
||||
Reviewed-by: Rob Herring <robh@kernel.org>
|
||||
Link: https://lkml.kernel.org/r/20200310143756.244-1-ansuelsmth@gmail.com
|
||||
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
||||
---
|
||||
.../devicetree/bindings/clock/qcom,rpmcc.txt | 1 +
|
||||
drivers/clk/qcom/clk-rpm.c | 35 ++++++++++++++++++++++
|
||||
@ -12,32 +19,19 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
|
||||
--- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
|
||||
+++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt
|
||||
@@ -16,6 +16,7 @@ Required properties :
|
||||
@@ -15,6 +15,7 @@ Required properties :
|
||||
"qcom,rpmcc-msm8916", "qcom,rpmcc"
|
||||
"qcom,rpmcc-msm8974", "qcom,rpmcc"
|
||||
"qcom,rpmcc-apq8064", "qcom,rpmcc"
|
||||
"qcom,rpmcc-msm8996", "qcom,rpmcc"
|
||||
+ "qcom,rpmcc-ipq806x", "qcom,rpmcc"
|
||||
"qcom,rpmcc-msm8996", "qcom,rpmcc"
|
||||
"qcom,rpmcc-msm8998", "qcom,rpmcc"
|
||||
"qcom,rpmcc-qcs404", "qcom,rpmcc"
|
||||
|
||||
--- a/include/dt-bindings/clock/qcom,rpmcc.h
|
||||
+++ b/include/dt-bindings/clock/qcom,rpmcc.h
|
||||
@@ -37,6 +37,10 @@
|
||||
#define RPM_XO_A0 27
|
||||
#define RPM_XO_A1 28
|
||||
#define RPM_XO_A2 29
|
||||
+#define RPM_NSS_FABRIC_0_CLK 30
|
||||
+#define RPM_NSS_FABRIC_0_A_CLK 31
|
||||
+#define RPM_NSS_FABRIC_1_CLK 32
|
||||
+#define RPM_NSS_FABRIC_1_A_CLK 33
|
||||
|
||||
/* SMD RPM clocks */
|
||||
#define RPM_SMD_XO_CLK_SRC 0
|
||||
--- a/drivers/clk/qcom/clk-rpm.c
|
||||
+++ b/drivers/clk/qcom/clk-rpm.c
|
||||
@@ -512,6 +512,16 @@ DEFINE_CLK_RPM_XO_BUFFER(apq8064, xo_a0_
|
||||
DEFINE_CLK_RPM_XO_BUFFER(apq8064, xo_a1_clk, xo_a1_a_clk, 24);
|
||||
DEFINE_CLK_RPM_XO_BUFFER(apq8064, xo_a2_clk, xo_a2_a_clk, 28);
|
||||
@@ -543,10 +543,45 @@ static const struct rpm_clk_desc rpm_clk
|
||||
.num_clks = ARRAY_SIZE(apq8064_clks),
|
||||
};
|
||||
|
||||
+/* ipq806x */
|
||||
+DEFINE_CLK_RPM(ipq806x, afab_clk, afab_a_clk, QCOM_RPM_APPS_FABRIC_CLK);
|
||||
@ -49,13 +43,6 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
+DEFINE_CLK_RPM(ipq806x, nss_fabric_0_clk, nss_fabric_0_a_clk, QCOM_RPM_NSS_FABRIC_0_CLK);
|
||||
+DEFINE_CLK_RPM(ipq806x, nss_fabric_1_clk, nss_fabric_1_a_clk, QCOM_RPM_NSS_FABRIC_1_CLK);
|
||||
+
|
||||
static struct clk_rpm *apq8064_clks[] = {
|
||||
[RPM_APPS_FABRIC_CLK] = &apq8064_afab_clk,
|
||||
[RPM_APPS_FABRIC_A_CLK] = &apq8064_afab_a_clk,
|
||||
@@ -538,15 +548,40 @@ static struct clk_rpm *apq8064_clks[] =
|
||||
[RPM_XO_A2] = &apq8064_xo_a2_clk,
|
||||
};
|
||||
|
||||
+static struct clk_rpm *ipq806x_clks[] = {
|
||||
+ [RPM_APPS_FABRIC_CLK] = &ipq806x_afab_clk,
|
||||
+ [RPM_APPS_FABRIC_A_CLK] = &ipq806x_afab_a_clk,
|
||||
@ -75,11 +62,6 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
+ [RPM_NSS_FABRIC_1_A_CLK] = &ipq806x_nss_fabric_1_a_clk,
|
||||
+};
|
||||
+
|
||||
static const struct rpm_clk_desc rpm_clk_apq8064 = {
|
||||
.clks = apq8064_clks,
|
||||
.num_clks = ARRAY_SIZE(apq8064_clks),
|
||||
};
|
||||
|
||||
+static const struct rpm_clk_desc rpm_clk_ipq806x = {
|
||||
+ .clks = ipq806x_clks,
|
||||
+ .num_clks = ARRAY_SIZE(ipq806x_clks),
|
||||
@ -93,3 +75,16 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rpm_clk_match_table);
|
||||
--- a/include/dt-bindings/clock/qcom,rpmcc.h
|
||||
+++ b/include/dt-bindings/clock/qcom,rpmcc.h
|
||||
@@ -37,6 +37,10 @@
|
||||
#define RPM_XO_A0 27
|
||||
#define RPM_XO_A1 28
|
||||
#define RPM_XO_A2 29
|
||||
+#define RPM_NSS_FABRIC_0_CLK 30
|
||||
+#define RPM_NSS_FABRIC_0_A_CLK 31
|
||||
+#define RPM_NSS_FABRIC_1_CLK 32
|
||||
+#define RPM_NSS_FABRIC_1_A_CLK 33
|
||||
|
||||
/* SMD RPM clocks */
|
||||
#define RPM_SMD_XO_CLK_SRC 0
|
||||
@ -1,9 +1,17 @@
|
||||
From ef10381ca4d01848ebedb4afb2c78feb8052f103 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Panella <ianchi74@outlook.com>
|
||||
Date: Thu, 9 Mar 2017 08:26:54 +0100
|
||||
Subject: [PATCH 53/69] regulator: add smb208 support
|
||||
From b5f25304aece9f2e7eaab275bbb5461c666bf38c Mon Sep 17 00:00:00 2001
|
||||
From: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Date: Wed, 19 Feb 2020 17:37:11 +0100
|
||||
Subject: regulator: add smb208 support
|
||||
|
||||
Smb208 regulators are used on some ipq806x soc.
|
||||
Add support for it to make it avaiable on some routers
|
||||
that use it.
|
||||
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Signed-off-by: Adrian Panella <ianchi74@outlook.com>
|
||||
Acked-by: Lee Jones <lee.jones@linaro.org>
|
||||
Link: https://lore.kernel.org/r/20200219163711.479-1-ansuelsmth@gmail.com
|
||||
Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
---
|
||||
Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 4 ++++
|
||||
drivers/regulator/qcom_rpm-regulator.c | 9 +++++++++
|
||||
@ -1,14 +1,21 @@
|
||||
From 5de1da6c862de6a92ac9aed521f21fd5a180f22b Mon Sep 17 00:00:00 2001
|
||||
From: Christian Lamparter <chunkeey@gmail.com>
|
||||
Date: Sat, 2 Feb 2019 02:48:35 +0100
|
||||
Subject: [PATCH] net: mdio: add ipq8064 mdio driver
|
||||
From caaa71fac36ec8c19145dbf8262a9b77ab09f1a1 Mon Sep 17 00:00:00 2001
|
||||
From: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Date: Wed, 4 Mar 2020 22:38:32 +0100
|
||||
Subject: net: mdio: add ipq8064 mdio driver
|
||||
|
||||
Currently ipq806x soc use generic bitbang driver to
|
||||
comunicate with the gmac ethernet interface.
|
||||
Add a dedicated driver created by chunkeey to fix this.
|
||||
|
||||
Co-developed-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
||||
Signed-off-by: David S. Miller <davem@davemloft.net>
|
||||
---
|
||||
drivers/net/phy/Kconfig | 8 ++
|
||||
drivers/net/phy/Makefile | 1 +
|
||||
drivers/net/phy/mdio-ipq8064.c | 163 +++++++++++++++++++++++++++++++++
|
||||
3 files changed, 172 insertions(+)
|
||||
drivers/net/phy/mdio-ipq8064.c | 166 +++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 175 insertions(+)
|
||||
create mode 100644 drivers/net/phy/mdio-ipq8064.c
|
||||
|
||||
--- a/drivers/net/phy/Kconfig
|
||||
@ -40,12 +47,13 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
obj-$(CONFIG_MDIO_OCTEON) += mdio-octeon.o
|
||||
--- /dev/null
|
||||
+++ b/drivers/net/phy/mdio-ipq8064.c
|
||||
@@ -0,0 +1,163 @@
|
||||
@@ -0,0 +1,166 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+//
|
||||
+// Qualcomm IPQ8064 MDIO interface driver
|
||||
+//
|
||||
+// Copyright (C) 2019 Christian Lamparter <chunkeey@gmail.com>
|
||||
+/* Qualcomm IPQ8064 MDIO interface driver
|
||||
+ *
|
||||
+ * Copyright (C) 2019 Christian Lamparter <chunkeey@gmail.com>
|
||||
+ * Copyright (C) 2020 Ansuel Smith <ansuelsmth@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+#include <linux/delay.h>
|
||||
+#include <linux/kernel.h>
|
||||
@ -74,8 +82,8 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+
|
||||
+#define MII_DATA_REG_ADDR 0x14
|
||||
+
|
||||
+#define MII_MDIO_DELAY (1000)
|
||||
+#define MII_MDIO_RETRY (10)
|
||||
+#define MII_MDIO_DELAY_USEC (1000)
|
||||
+#define MII_MDIO_RETRY_MSEC (10)
|
||||
+
|
||||
+struct ipq8064_mdio {
|
||||
+ struct regmap *base; /* NSS_GMAC0_BASE */
|
||||
@ -84,34 +92,30 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+static int
|
||||
+ipq8064_mdio_wait_busy(struct ipq8064_mdio *priv)
|
||||
+{
|
||||
+ int i;
|
||||
+ u32 busy;
|
||||
+
|
||||
+ for (i = 0; i < MII_MDIO_RETRY; i++) {
|
||||
+ unsigned int busy;
|
||||
+
|
||||
+ regmap_read(priv->base, MII_ADDR_REG_ADDR, &busy);
|
||||
+ if (!(busy & MII_BUSY))
|
||||
+ return 0;
|
||||
+
|
||||
+ udelay(MII_MDIO_DELAY);
|
||||
+ }
|
||||
+
|
||||
+ return -ETIMEDOUT;
|
||||
+ return regmap_read_poll_timeout(priv->base, MII_ADDR_REG_ADDR, busy,
|
||||
+ !(busy & MII_BUSY), MII_MDIO_DELAY_USEC,
|
||||
+ MII_MDIO_RETRY_MSEC * USEC_PER_MSEC);
|
||||
+}
|
||||
+
|
||||
+static int
|
||||
+ipq8064_mdio_read(struct mii_bus *bus, int phy_addr, int reg_offset)
|
||||
+{
|
||||
+ struct ipq8064_mdio *priv = bus->priv;
|
||||
+ u32 miiaddr = MII_BUSY | MII_CLKRANGE_250_300M;
|
||||
+ struct ipq8064_mdio *priv = bus->priv;
|
||||
+ u32 ret_val;
|
||||
+ int err;
|
||||
+
|
||||
+ /* Reject clause 45 */
|
||||
+ if (reg_offset & MII_ADDR_C45)
|
||||
+ return -EOPNOTSUPP;
|
||||
+
|
||||
+ miiaddr |= ((phy_addr << MII_ADDR_SHIFT) & MII_ADDR_MASK) |
|
||||
+ ((reg_offset << MII_REG_SHIFT) & MII_REG_MASK);
|
||||
+
|
||||
+ regmap_write(priv->base, MII_ADDR_REG_ADDR, miiaddr);
|
||||
+ udelay(10);
|
||||
+ usleep_range(8, 10);
|
||||
+
|
||||
+ err = ipq8064_mdio_wait_busy(priv);
|
||||
+ if (err)
|
||||
@ -124,8 +128,12 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+static int
|
||||
+ipq8064_mdio_write(struct mii_bus *bus, int phy_addr, int reg_offset, u16 data)
|
||||
+{
|
||||
+ struct ipq8064_mdio *priv = bus->priv;
|
||||
+ u32 miiaddr = MII_WRITE | MII_BUSY | MII_CLKRANGE_250_300M;
|
||||
+ struct ipq8064_mdio *priv = bus->priv;
|
||||
+
|
||||
+ /* Reject clause 45 */
|
||||
+ if (reg_offset & MII_ADDR_C45)
|
||||
+ return -EOPNOTSUPP;
|
||||
+
|
||||
+ regmap_write(priv->base, MII_DATA_REG_ADDR, data);
|
||||
+
|
||||
@ -133,7 +141,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+ ((reg_offset << MII_REG_SHIFT) & MII_REG_MASK);
|
||||
+
|
||||
+ regmap_write(priv->base, MII_ADDR_REG_ADDR, miiaddr);
|
||||
+ udelay(10);
|
||||
+ usleep_range(8, 10);
|
||||
+
|
||||
+ return ipq8064_mdio_wait_busy(priv);
|
||||
+}
|
||||
@ -157,13 +165,14 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+ bus->parent = &pdev->dev;
|
||||
+
|
||||
+ priv = bus->priv;
|
||||
+ priv->base = syscon_node_to_regmap(np);
|
||||
+ if (IS_ERR_OR_NULL(priv->base)) {
|
||||
+ priv->base = syscon_regmap_lookup_by_phandle(np, "master");
|
||||
+ if (IS_ERR_OR_NULL(priv->base)) {
|
||||
+ pr_err("master phandle not found\n");
|
||||
+ return -EINVAL;
|
||||
+ }
|
||||
+ priv->base = device_node_to_regmap(np);
|
||||
+ if (IS_ERR(priv->base)) {
|
||||
+ if (priv->base == ERR_PTR(-EPROBE_DEFER))
|
||||
+ return -EPROBE_DEFER;
|
||||
+
|
||||
+ dev_err(&pdev->dev, "error getting device regmap, error=%pe\n",
|
||||
+ priv->base);
|
||||
+ return PTR_ERR(priv->base);
|
||||
+ }
|
||||
+
|
||||
+ ret = of_mdiobus_register(bus, np);
|
||||
@ -203,4 +212,5 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
|
||||
+
|
||||
+MODULE_DESCRIPTION("Qualcomm IPQ8064 MDIO interface driver");
|
||||
+MODULE_AUTHOR("Christian Lamparter <chunkeey@gmail.com>");
|
||||
+MODULE_AUTHOR("Ansuel Smith <ansuelsmth@gmail.com>");
|
||||
+MODULE_LICENSE("GPL");
|
||||
@ -0,0 +1,16 @@
|
||||
#
|
||||
# Copyright (C) 2020 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
case "$(board_name)" in
|
||||
linksys,e4200-v2|\
|
||||
linksys,ea3500|\
|
||||
linksys,ea4500)
|
||||
uci set system.@system[0].compat_version="1.1"
|
||||
uci commit system
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@ -12,7 +12,8 @@ KERNEL_LOADADDR:=0x8000
|
||||
|
||||
define Device/dsa-migration
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA \
|
||||
(early adopters with DSA already set up may just force-flash keeping existing config)
|
||||
endef
|
||||
|
||||
define Device/Default
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Copyright (C) 2020 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
case "$(board_name)" in
|
||||
linksys,wrt1200ac|\
|
||||
linksys,wrt1900ac-v1|\
|
||||
linksys,wrt1900ac-v2|\
|
||||
linksys,wrt1900acs|\
|
||||
linksys,wrt3200acm|\
|
||||
linksys,wrt32x|\
|
||||
solidrun,clearfog-base-a1|\
|
||||
solidrun,clearfog-pro-a1)
|
||||
uci set system.@system[0].compat_version="1.1"
|
||||
uci commit system
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@ -8,7 +8,8 @@
|
||||
|
||||
define Device/dsa-migration
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA \
|
||||
(early adopters with DSA already set up may just force-flash keeping existing config)
|
||||
endef
|
||||
|
||||
define Device/buffalo_ls421de
|
||||
|
||||
@ -124,7 +124,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "llllw";
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -134,7 +134,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4000>;
|
||||
|
||||
mediatek,portmap = "llllw";
|
||||
mediatek,portmap = "wllll";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
|
||||
port@5 {
|
||||
status = "okay";
|
||||
|
||||
@ -46,6 +46,4 @@
|
||||
pinctrl-0 = <&ephy_pins>;
|
||||
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
@ -171,7 +171,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -110,7 +110,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
ðernet {
|
||||
mtd-mac-address = <&factory 0x4>;
|
||||
|
||||
mediatek,portmap = "wllll";
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
|
||||
@ -64,7 +64,7 @@ define Build/loader-common
|
||||
PKG_BUILD_DIR="$@.src" \
|
||||
TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \
|
||||
BOARD="$(BOARDNAME)" PLATFORM="$(LOADER_PLATFORM)" \
|
||||
LZMA_TEXT_START=0x82000000 LOADADDR=$(KERNEL_LOADADDR) \
|
||||
LZMA_TEXT_START=0x81800000 LOADADDR=$(KERNEL_LOADADDR) \
|
||||
$(1) compile loader.$(LOADER_TYPE)
|
||||
mv "$@.$(LOADER_TYPE)" "$@"
|
||||
rm -rf $@.src
|
||||
|
||||
@ -105,58 +105,72 @@ define Build/ubnt-erx-factory-image
|
||||
fi
|
||||
endef
|
||||
|
||||
define Device/dsa-migration
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA \
|
||||
(early adopters with DSA already set up may just force-flash keeping existing config)
|
||||
endef
|
||||
|
||||
define Device/adslr_g7
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := ADSLR
|
||||
DEVICE_MODEL := G7
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += adslr_g7
|
||||
|
||||
define Device/afoundry_ew1200
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := AFOUNDRY
|
||||
DEVICE_MODEL := EW1200
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += ew1200
|
||||
endef
|
||||
TARGET_DEVICES += afoundry_ew1200
|
||||
|
||||
define Device/alfa-network_quad-e4g
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := ALFA Network
|
||||
DEVICE_MODEL := Quad-E4G
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 uboot-envtools \
|
||||
-wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += alfa-network_quad-e4g
|
||||
|
||||
define Device/asiarf_ap7621-001
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16000k
|
||||
DEVICE_VENDOR := AsiaRF
|
||||
DEVICE_MODEL := AP7621-001
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += asiarf_ap7621-001
|
||||
|
||||
define Device/asiarf_ap7621-nv1
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16000k
|
||||
DEVICE_VENDOR := AsiaRF
|
||||
DEVICE_MODEL := AP7621-NV1
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += asiarf_ap7621-nv1
|
||||
|
||||
define Device/asus_rt-ac57u
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := ASUS
|
||||
DEVICE_MODEL := RT-AC57U
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac57u
|
||||
|
||||
define Device/asus_rt-ac65p
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := ASUS
|
||||
DEVICE_MODEL := RT-AC65P
|
||||
IMAGE_SIZE := 51200k
|
||||
@ -168,11 +182,12 @@ define Device/asus_rt-ac65p
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac65p
|
||||
|
||||
define Device/asus_rt-ac85p
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := ASUS
|
||||
DEVICE_MODEL := RT-AC85P
|
||||
IMAGE_SIZE := 51200k
|
||||
@ -184,22 +199,24 @@ define Device/asus_rt-ac85p
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac85p
|
||||
|
||||
define Device/buffalo_wsr-1166dhp
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
|
||||
IMAGE_SIZE := 15936k
|
||||
DEVICE_VENDOR := Buffalo
|
||||
DEVICE_MODEL := WSR-1166DHP
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
|
||||
SUPPORTED_DEVICES += wsr-1166
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-1166dhp
|
||||
|
||||
define Device/buffalo_wsr-2533dhpl
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 7936k
|
||||
DEVICE_VENDOR := Buffalo
|
||||
@ -207,23 +224,25 @@ define Device/buffalo_wsr-2533dhpl
|
||||
DEVICE_ALT0_VENDOR := Buffalo
|
||||
DEVICE_ALT0_MODEL := WSR-2533DHP
|
||||
IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-2533dhpl
|
||||
|
||||
define Device/buffalo_wsr-600dhp
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Buffalo
|
||||
DEVICE_MODEL := WSR-600DHP
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci
|
||||
SUPPORTED_DEVICES += wsr-600
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-600dhp
|
||||
|
||||
define Device/dlink_dir-8xx-a1
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16000k
|
||||
DEVICE_VENDOR := D-Link
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
KERNEL_INITRAMFS := $$(KERNEL) | uimage-padhdr 96
|
||||
IMAGES += factory.bin
|
||||
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | uimage-padhdr 96 |\
|
||||
@ -233,14 +252,15 @@ define Device/dlink_dir-8xx-a1
|
||||
endef
|
||||
|
||||
define Device/dlink_dir-xx60-a1
|
||||
$(Device/dsa-migration)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
IMAGE_SIZE := 40960k
|
||||
UBINIZE_OPTS := -E 5
|
||||
DEVICE_VENDOR := D-Link
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
KERNEL := $$(KERNEL) | uimage-padhdr 96
|
||||
IMAGES += factory.bin
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
@ -256,6 +276,7 @@ endef
|
||||
TARGET_DEVICES += dlink_dir-1960-a1
|
||||
|
||||
define Device/dlink_dir-860l-b1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/seama)
|
||||
BLOCKSIZE := 64k
|
||||
SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
|
||||
@ -266,7 +287,7 @@ define Device/dlink_dir-860l-b1
|
||||
DEVICE_VENDOR := D-Link
|
||||
DEVICE_MODEL := DIR-860L
|
||||
DEVICE_VARIANT := B1
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += dir-860l-b1
|
||||
endef
|
||||
TARGET_DEVICES += dlink_dir-860l-b1
|
||||
@ -294,26 +315,29 @@ endef
|
||||
TARGET_DEVICES += dlink_dir-882-a1
|
||||
|
||||
define Device/d-team_newifi-d2
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := Newifi
|
||||
DEVICE_MODEL := D2
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport luci-app-mtwifi
|
||||
kmod-usb-ledtrig-usbport luci-app-mtwifi -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += d-team_newifi-d2
|
||||
|
||||
define Device/d-team_pbr-m1
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := PandoraBox
|
||||
DEVICE_MODEL := PBR-M1
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += pbr-m1
|
||||
endef
|
||||
TARGET_DEVICES += d-team_pbr-m1
|
||||
|
||||
define Device/edimax_ra21s
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Edimax
|
||||
@ -323,11 +347,12 @@ define Device/edimax_ra21s
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 02020040 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += edimax_ra21s
|
||||
|
||||
define Device/edimax_re23s
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 15680k
|
||||
DEVICE_VENDOR := Edimax
|
||||
@ -341,11 +366,12 @@ define Device/edimax_re23s
|
||||
IMAGE/factory.bin := append-kernel | append-rootfs | \
|
||||
edimax-header -s CSYS -m RN76 -f 0x70000 -S 0x01100000 | pad-rootfs | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += edimax_re23s
|
||||
|
||||
define Device/edimax_rg21s
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Edimax
|
||||
@ -353,28 +379,30 @@ define Device/edimax_rg21s
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 02020038 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += edimax_rg21s
|
||||
|
||||
define Device/elecom_wrc-1167ghbk2-s
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 15488k
|
||||
DEVICE_VENDOR := ELECOM
|
||||
DEVICE_MODEL := WRC-1167GHBK2-S
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-wrc-factory WRC-1167GHBK2-S 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += elecom_wrc-1167ghbk2-s
|
||||
|
||||
define Device/elecom_wrc-gs
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
DEVICE_VENDOR := ELECOM
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-wrc-gs-factory $$$$(ELECOM_HWNAME) 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
|
||||
define Device/elecom_wrc-1750gs
|
||||
@ -418,40 +446,45 @@ endef
|
||||
TARGET_DEVICES += elecom_wrc-2533gst2
|
||||
|
||||
define Device/firefly_firewrt
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Firefly
|
||||
DEVICE_MODEL := FireWRT
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += firewrt
|
||||
endef
|
||||
TARGET_DEVICES += firefly_firewrt
|
||||
|
||||
define Device/gehua_ghl-r-001
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := GeHua
|
||||
DEVICE_MODEL := GHL-R-001
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += gehua_ghl-r-001
|
||||
|
||||
define Device/gnubee_gb-pc1
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := GnuBee
|
||||
DEVICE_MODEL := Personal Cloud One
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 -wpad-basic
|
||||
IMAGE_SIZE := 32448k
|
||||
endef
|
||||
TARGET_DEVICES += gnubee_gb-pc1
|
||||
|
||||
define Device/gnubee_gb-pc2
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := GnuBee
|
||||
DEVICE_MODEL := Personal Cloud Two
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620 -wpad-basic
|
||||
IMAGE_SIZE := 32448k
|
||||
endef
|
||||
TARGET_DEVICES += gnubee_gb-pc2
|
||||
|
||||
define Device/hiwifi_hc5962
|
||||
$(Device/dsa-migration)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
@ -463,22 +496,24 @@ define Device/hiwifi_hc5962
|
||||
check-size
|
||||
DEVICE_VENDOR := HiWiFi
|
||||
DEVICE_MODEL := HC5962
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3
|
||||
endef
|
||||
TARGET_DEVICES += hiwifi_hc5962
|
||||
|
||||
define Device/iodata_wn-ax1167gr
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 15552k
|
||||
KERNEL_INITRAMFS := $$(KERNEL) | \
|
||||
iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
DEVICE_MODEL := WN-AX1167GR
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax1167gr
|
||||
|
||||
define Device/iodata_nand
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -496,7 +531,7 @@ define Device/iodata_wn-ax1167gr2
|
||||
DEVICE_MODEL := WN-AX1167GR2
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(XBC.1)b10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax1167gr2
|
||||
|
||||
@ -506,7 +541,7 @@ define Device/iodata_wn-ax2033gr
|
||||
DEVICE_MODEL := WN-AX2033GR
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(VST.1)C10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax2033gr
|
||||
|
||||
@ -516,20 +551,22 @@ define Device/iodata_wn-dx1167r
|
||||
DEVICE_MODEL := WN-DX1167R
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(XIK.1)b10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-dx1167r
|
||||
|
||||
define Device/iodata_wn-gx300gr
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 7616k
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
DEVICE_MODEL := WN-GX300GR
|
||||
DEVICE_PACKAGES := kmod-mt7603 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-gx300gr
|
||||
|
||||
define Device/iodata_wnpr2600g
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
DEVICE_MODEL := WNPR2600G
|
||||
@ -537,58 +574,65 @@ define Device/iodata_wnpr2600g
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 0104003a 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wnpr2600g
|
||||
|
||||
define Device/iptime_a6ns-m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16128k
|
||||
UIMAGE_NAME := a6nm
|
||||
DEVICE_VENDOR := ipTIME
|
||||
DEVICE_MODEL := A6ns-M
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += iptime_a6ns-m
|
||||
|
||||
define Device/iptime_a8004t
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16128k
|
||||
UIMAGE_NAME := a8004t
|
||||
DEVICE_VENDOR := ipTIME
|
||||
DEVICE_MODEL := A8004T
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
|
||||
endef
|
||||
TARGET_DEVICES += iptime_a8004t
|
||||
|
||||
define Device/jcg_jhr-ac876m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 89.1
|
||||
JCG_MAXSIZE := 16064k
|
||||
DEVICE_VENDOR := JCG
|
||||
DEVICE_MODEL := JHR-AC876M
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += jcg_jhr-ac876m
|
||||
|
||||
define Device/lenovo_newifi-d1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := Newifi
|
||||
DEVICE_MODEL := D1
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += newifi-d1
|
||||
endef
|
||||
TARGET_DEVICES += lenovo_newifi-d1
|
||||
|
||||
define Device/linksys_ea7xxx
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
IMAGE_SIZE := 36864k
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic \
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware \
|
||||
uboot-envtools
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGES := sysupgrade.bin factory.bin
|
||||
@ -614,32 +658,37 @@ endef
|
||||
TARGET_DEVICES += linksys_ea7500-v2
|
||||
|
||||
define Device/linksys_re6500
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := RE6500
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2
|
||||
SUPPORTED_DEVICES += re6500
|
||||
endef
|
||||
TARGET_DEVICES += linksys_re6500
|
||||
|
||||
define Device/mediatek_ap-mt7621a-v60
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := Mediatek
|
||||
DEVICE_MODEL := AP-MT7621A-V60 EVB
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620 -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += mediatek_ap-mt7621a-v60
|
||||
|
||||
define Device/mediatek_mt7621-eval-board
|
||||
$(Device/dsa-migration)
|
||||
BLOCKSIZE := 64k
|
||||
IMAGE_SIZE := 15104k
|
||||
DEVICE_VENDOR := MediaTek
|
||||
DEVICE_MODEL := MT7621 EVB
|
||||
DEVICE_PACKAGES := -wpad-basic
|
||||
SUPPORTED_DEVICES += mt7621
|
||||
endef
|
||||
TARGET_DEVICES += mediatek_mt7621-eval-board
|
||||
|
||||
define Device/MikroTik
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := MikroTik
|
||||
BLOCKSIZE := 64k
|
||||
IMAGE_SIZE := 16128k
|
||||
@ -654,7 +703,7 @@ endef
|
||||
define Device/mikrotik_routerboard-750gr3
|
||||
$(Device/MikroTik)
|
||||
DEVICE_MODEL := RouterBOARD 750Gr3
|
||||
DEVICE_PACKAGES += kmod-gpio-beeper
|
||||
DEVICE_PACKAGES += kmod-gpio-beeper -wpad-basic
|
||||
SUPPORTED_DEVICES += mikrotik,rb750gr3
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-750gr3
|
||||
@ -662,6 +711,7 @@ TARGET_DEVICES += mikrotik_routerboard-750gr3
|
||||
define Device/mikrotik_routerboard-m11g
|
||||
$(Device/MikroTik)
|
||||
DEVICE_MODEL := RouterBOARD M11G
|
||||
DEVICE_PACKAGES := -wpad-basic
|
||||
SUPPORTED_DEVICES += mikrotik,rbm11g
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-m11g
|
||||
@ -669,34 +719,38 @@ TARGET_DEVICES += mikrotik_routerboard-m11g
|
||||
define Device/mikrotik_routerboard-m33g
|
||||
$(Device/MikroTik)
|
||||
DEVICE_MODEL := RouterBOARD M33G
|
||||
DEVICE_PACKAGES := -wpad-basic
|
||||
SUPPORTED_DEVICES += mikrotik,rbm33g
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-m33g
|
||||
|
||||
define Device/mqmaker_witi
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := MQmaker
|
||||
DEVICE_MODEL := WiTi
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
|
||||
endef
|
||||
TARGET_DEVICES += mqmaker_witi
|
||||
|
||||
define Device/mtc_wr1201
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16000k
|
||||
DEVICE_VENDOR := MTC
|
||||
DEVICE_MODEL := Wireless Router WR1201
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += mtc_wr1201
|
||||
|
||||
define Device/netgear_ex6150
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := NETGEAR
|
||||
DEVICE_MODEL := EX6150
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2
|
||||
NETGEAR_BOARD_ID := U12H318T00_NETGEAR
|
||||
IMAGE_SIZE := 14848k
|
||||
IMAGES += factory.chk
|
||||
@ -705,6 +759,7 @@ endef
|
||||
TARGET_DEVICES += netgear_ex6150
|
||||
|
||||
define Device/netgear_sercomm_nand
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -718,7 +773,7 @@ define Device/netgear_sercomm_nand
|
||||
IMAGE/kernel.bin := append-kernel
|
||||
IMAGE/rootfs.bin := append-ubi | check-size
|
||||
DEVICE_VENDOR := NETGEAR
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
|
||||
define Device/netgear_r6220
|
||||
@ -827,6 +882,7 @@ endef
|
||||
TARGET_DEVICES += netgear_wac124
|
||||
|
||||
define Device/netgear_wndr3700-v5
|
||||
$(Device/dsa-migration)
|
||||
$(Device/netgear_sercomm_nor)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 15232k
|
||||
@ -838,12 +894,13 @@ define Device/netgear_wndr3700-v5
|
||||
SERCOMM_SWVER := 0x1054
|
||||
SERCOMM_PAD := 320k
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += wndr3700v5
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndr3700-v5
|
||||
|
||||
define Device/netis_wf2881
|
||||
$(Device/dsa-migration)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
FILESYSTEMS := squashfs
|
||||
@ -858,80 +915,88 @@ define Device/netis_wf2881
|
||||
check-size
|
||||
DEVICE_VENDOR := NETIS
|
||||
DEVICE_MODEL := WF2881
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += netis_wf2881
|
||||
|
||||
define Device/phicomm_k2p
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 15744k
|
||||
DEVICE_VENDOR := Phicomm
|
||||
DEVICE_MODEL := K2P
|
||||
SUPPORTED_DEVICES += k2p
|
||||
DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi
|
||||
DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += phicomm_k2p
|
||||
|
||||
define Device/planex_vr500
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 65216k
|
||||
DEVICE_VENDOR := Planex
|
||||
DEVICE_MODEL := VR500
|
||||
DEVICE_PACKAGES := kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-usb3 -wpad-basic
|
||||
SUPPORTED_DEVICES += vr500
|
||||
endef
|
||||
TARGET_DEVICES += planex_vr500
|
||||
|
||||
define Device/samknows_whitebox-v8
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := SamKnows
|
||||
DEVICE_MODEL := Whitebox 8
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
|
||||
kmod-usb-ledtrig-usbport uboot-envtools
|
||||
SUPPORTED_DEVICES += sk-wb8
|
||||
endef
|
||||
TARGET_DEVICES += samknows_whitebox-v8
|
||||
|
||||
define Device/storylink_sap-g3200u3
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := STORYLiNK
|
||||
DEVICE_MODEL := SAP-G3200U3
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += sap-g3200u3
|
||||
endef
|
||||
TARGET_DEVICES += storylink_sap-g3200u3
|
||||
|
||||
define Device/telco-electronics_x1
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Telco Electronics
|
||||
DEVICE_MODEL := X1
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt76
|
||||
endef
|
||||
TARGET_DEVICES += telco-electronics_x1
|
||||
|
||||
define Device/thunder_timecloud
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Thunder
|
||||
DEVICE_MODEL := Timecloud
|
||||
DEVICE_PACKAGES := kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-usb3 -wpad-basic
|
||||
SUPPORTED_DEVICES += timecloud
|
||||
endef
|
||||
TARGET_DEVICES += thunder_timecloud
|
||||
|
||||
define Device/totolink_a7000r
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
UIMAGE_NAME := C8340R1C-9999
|
||||
DEVICE_VENDOR := TOTOLINK
|
||||
DEVICE_MODEL := A7000R
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += totolink_a7000r
|
||||
|
||||
define Device/tplink_re350-v1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/tplink-safeloader)
|
||||
DEVICE_MODEL := RE350
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2
|
||||
TPLINK_BOARD_ID := RE350-V1
|
||||
IMAGE_SIZE := 6016k
|
||||
SUPPORTED_DEVICES += re350-v1
|
||||
@ -939,26 +1004,29 @@ endef
|
||||
TARGET_DEVICES += tplink_re350-v1
|
||||
|
||||
define Device/tplink_re500-v1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/tplink-safeloader)
|
||||
DEVICE_MODEL := RE500
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
TPLINK_BOARD_ID := RE500-V1
|
||||
IMAGE_SIZE := 14208k
|
||||
endef
|
||||
TARGET_DEVICES += tplink_re500-v1
|
||||
|
||||
define Device/tplink_re650-v1
|
||||
$(Device/dsa-migration)
|
||||
$(Device/tplink-safeloader)
|
||||
DEVICE_MODEL := RE650
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
|
||||
TPLINK_BOARD_ID := RE650-V1
|
||||
IMAGE_SIZE := 14208k
|
||||
endef
|
||||
TARGET_DEVICES += tplink_re650-v1
|
||||
|
||||
define Device/ubnt_edgerouter_common
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
IMAGE_SIZE := 256768k
|
||||
@ -967,6 +1035,7 @@ define Device/ubnt_edgerouter_common
|
||||
KERNEL_INITRAMFS := $$(KERNEL) | \
|
||||
ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
DEVICE_PACKAGES += -wpad-basic
|
||||
endef
|
||||
|
||||
define Device/ubnt_edgerouter-x
|
||||
@ -985,57 +1054,63 @@ endef
|
||||
TARGET_DEVICES += ubnt_edgerouter-x-sfp
|
||||
|
||||
define Device/ubnt_unifi-nanohd
|
||||
$(Device/dsa-migration)
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
DEVICE_MODEL := UniFi nanoHD
|
||||
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
|
||||
IMAGE_SIZE := 15552k
|
||||
endef
|
||||
TARGET_DEVICES += ubnt_unifi-nanohd
|
||||
|
||||
define Device/unielec_u7621-06-16m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := UniElec
|
||||
DEVICE_MODEL := U7621-06
|
||||
DEVICE_VARIANT := 16M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic
|
||||
SUPPORTED_DEVICES += u7621-06-256M-16M unielec,u7621-06-256m-16m
|
||||
endef
|
||||
TARGET_DEVICES += unielec_u7621-06-16m
|
||||
|
||||
define Device/unielec_u7621-06-64m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 65216k
|
||||
DEVICE_VENDOR := UniElec
|
||||
DEVICE_MODEL := U7621-06
|
||||
DEVICE_VARIANT := 64M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3 -wpad-basic
|
||||
SUPPORTED_DEVICES += unielec,u7621-06-512m-64m
|
||||
endef
|
||||
TARGET_DEVICES += unielec_u7621-06-64m
|
||||
|
||||
define Device/wevo_11acnas
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
|
||||
DEVICE_VENDOR := WeVO
|
||||
DEVICE_MODEL := 11AC NAS Router
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += 11acnas
|
||||
endef
|
||||
TARGET_DEVICES += wevo_11acnas
|
||||
|
||||
define Device/wevo_w2914ns-v2
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
UIMAGE_NAME := W2914NS-V2(0.0.0)
|
||||
DEVICE_VENDOR := WeVO
|
||||
DEVICE_MODEL := W2914NS
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += w2914nsv2
|
||||
endef
|
||||
TARGET_DEVICES += wevo_w2914ns-v2
|
||||
|
||||
define Device/winstars_ws-wn583a6
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := Winstars
|
||||
@ -1043,11 +1118,12 @@ define Device/winstars_ws-wn583a6
|
||||
DEVICE_ALT0_VENDOR := Gemeita
|
||||
DEVICE_ALT0_MODEL := AC2100
|
||||
KERNEL_INITRAMFS_SUFFIX := -WN583A6$$(KERNEL_SUFFIX)
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
|
||||
endef
|
||||
TARGET_DEVICES += winstars_ws-wn583a6
|
||||
|
||||
define Device/xiaomi-ac2100
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -1059,7 +1135,7 @@ define Device/xiaomi-ac2100
|
||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt7615d luci-app-mtwifi uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt7615d luci-app-mtwifi uboot-envtools -wpad-basic
|
||||
endef
|
||||
|
||||
define Device/xiaomi_mi-router-ac2100
|
||||
@ -1069,6 +1145,7 @@ endef
|
||||
TARGET_DEVICES += xiaomi_mi-router-ac2100
|
||||
|
||||
define Device/xiaomi_mir3g
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -1084,11 +1161,12 @@ define Device/xiaomi_mir3g
|
||||
SUPPORTED_DEVICES += R3G
|
||||
SUPPORTED_DEVICES += mir3g
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport luci-app-mtwifi uboot-envtools
|
||||
kmod-usb-ledtrig-usbport luci-app-mtwifi uboot-envtools -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir3g
|
||||
|
||||
define Device/xiaomi_mir3g-v2
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 14848k
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
@ -1097,11 +1175,12 @@ define Device/xiaomi_mir3g-v2
|
||||
DEVICE_ALT0_VENDOR := Xiaomi
|
||||
DEVICE_ALT0_MODEL := Mi Router 4A
|
||||
DEVICE_ALT0_VARIANT := Gigabit Edition
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e luci-app-mtwifi
|
||||
DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e luci-app-mtwifi -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir3g-v2
|
||||
|
||||
define Device/xiaomi_mir3p
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -1126,101 +1205,111 @@ endef
|
||||
TARGET_DEVICES += xiaomi_redmi-router-ac2100
|
||||
|
||||
define Device/xiaoyu_xy-c5
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := XiaoYu
|
||||
DEVICE_MODEL := XY-C5
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-usb3 -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += xiaoyu_xy-c5
|
||||
|
||||
define Device/xzwifi_creativebox-v1
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := CreativeBox
|
||||
DEVICE_MODEL := v1
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
|
||||
kmod-usb3
|
||||
kmod-usb3 -wpad-basic
|
||||
endef
|
||||
TARGET_DEVICES += xzwifi_creativebox-v1
|
||||
|
||||
define Device/youhua_wr1200js
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := YouHua
|
||||
DEVICE_MODEL := WR1200JS
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += youhua_wr1200js
|
||||
|
||||
define Device/youku_yk-l2
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Youku
|
||||
DEVICE_MODEL := YK-L2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l2
|
||||
|
||||
define Device/zbtlink_zbt-we1326
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WE1326
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
|
||||
wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620
|
||||
SUPPORTED_DEVICES += zbt-we1326
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-we1326
|
||||
|
||||
define Device/zbtlink_zbt-we3526
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WE3526
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-we3526
|
||||
|
||||
define Device/zbtlink_zbt-wg2626
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WG2626
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += zbt-wg2626
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg2626
|
||||
|
||||
define Device/zbtlink_zbt-wg3526-16m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WG3526
|
||||
DEVICE_VARIANT := 16M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg3526-16m
|
||||
|
||||
define Device/zbtlink_zbt-wg3526-32m
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WG3526
|
||||
DEVICE_VARIANT := 32M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport
|
||||
SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg3526-32m
|
||||
|
||||
define Device/zio_freezio
|
||||
$(Device/dsa-migration)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := ZIO
|
||||
DEVICE_MODEL := FREEZIO
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport
|
||||
endef
|
||||
TARGET_DEVICES += zio_freezio
|
||||
|
||||
define Device/zyxel_wap6805
|
||||
$(Device/dsa-migration)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
@ -1228,7 +1317,7 @@ define Device/zyxel_wap6805
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := ZyXEL
|
||||
DEVICE_MODEL := WAP6805
|
||||
DEVICE_PACKAGES := kmod-mt7603 wpad-basic kmod-mt7621-qtn-rgmii
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7621-qtn-rgmii
|
||||
KERNEL := $(KERNEL_DTB) | uImage lzma | uimage-padhdr 160
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
endef
|
||||
|
||||
@ -767,6 +767,7 @@ endef
|
||||
TARGET_DEVICES += nixcore_x1-8m
|
||||
|
||||
define Device/olimex_rt5350f-olinuxino
|
||||
$(Device/uimage-lzma-loader)
|
||||
SOC := rt5350
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := OLIMEX
|
||||
@ -777,6 +778,7 @@ endef
|
||||
TARGET_DEVICES += olimex_rt5350f-olinuxino
|
||||
|
||||
define Device/olimex_rt5350f-olinuxino-evb
|
||||
$(Device/uimage-lzma-loader)
|
||||
SOC := rt5350
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := OLIMEX
|
||||
|
||||
19
target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version
Executable file
19
target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2020 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$(board_name)" in
|
||||
*)
|
||||
ucidef_set_compat_version "1.1"
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2020 OpenWrt.org
|
||||
#
|
||||
|
||||
uci set system.@system[0].compat_version="1.1"
|
||||
uci commit system
|
||||
|
||||
exit 0
|
||||
@ -7,7 +7,7 @@ BOARDNAME:=MT7621 based boards
|
||||
FEATURES+=nand ramdisk rtc usb minor
|
||||
CPU_TYPE:=24kc
|
||||
|
||||
DEFAULT_PACKAGES += kmod-crypto-hw-eip93
|
||||
DEFAULT_PACKAGES += wpad-basic
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Ralink MT7621 based boards.
|
||||
|
||||
@ -9,8 +9,6 @@ CPU_TYPE:=24kc
|
||||
|
||||
DEFAULT_PACKAGES += kmod-rt2800-soc wpad-mini swconfig
|
||||
|
||||
KERNEL_PATCHVER:=4.14
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Ralink RT288x based boards.
|
||||
endef
|
||||
|
||||
Loading…
Reference in New Issue
Block a user