Merge Official Source

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-03-27 20:05:04 +08:00
commit 422673d434
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
32 changed files with 619 additions and 85 deletions

View File

@ -124,13 +124,6 @@ ifneq ($(filter libtool-abiver,$(PKG_FIXUP)),)
Hooks/Configure/Post += set_libtool_abiver
endif
ifneq ($(filter libtool-ucxx,$(PKG_FIXUP)),)
PKG_BUILD_DEPENDS += libtool
ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),)
Hooks/Configure/Pre += autoreconf_target
endif
endif
ifneq ($(filter autoreconf,$(PKG_FIXUP)),)
ifeq ($(filter autoreconf,$(Hooks/Configure/Pre)),)
Hooks/Configure/Pre += autoreconf_target
@ -166,12 +159,6 @@ ifneq ($(filter libtool,$(HOST_FIXUP)),)
endif
endif
ifneq ($(filter libtool-ucxx,$(HOST_FIXUP)),)
ifeq ($(filter no-autoreconf,$(HOST_FIXUP)),)
Hooks/HostConfigure/Pre += autoreconf_host
endif
endif
ifneq ($(filter autoreconf,$(HOST_FIXUP)),)
ifeq ($(filter autoreconf,$(Hooks/HostConfigure/Pre)),)
Hooks/HostConfigure/Pre += autoreconf_host

View File

@ -88,6 +88,18 @@ ziking,cpe46b|\
zyxel,nbg6616)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
aruba,ap-105|\
aruba,ap-175|\
dongwon,dw02-412h-64m|\
dongwon,dw02-412h-128m|\
glinet,gl-ar300m-lite|\
glinet,gl-ar300m-nand|\
glinet,gl-ar300m-nor|\
glinet,gl-ar300m16)
idx="$(find_mtd_index u-boot-env)"
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
;;
buffalo,wzr-hp-ag300h)
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
;;
@ -99,16 +111,6 @@ linksys,ea4500-v3)
domywifi,dw33d)
ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
;;
dongwon,dw02-412h-64m|\
dongwon,dw02-412h-128m|\
glinet,gl-ar300m-lite|\
glinet,gl-ar300m-nand|\
glinet,gl-ar300m-nor|\
glinet,gl-ar300m16)
idx="$(find_mtd_index u-boot-env)"
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
;;
glinet,gl-ar150)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
;;

View File

@ -19,7 +19,8 @@ alfa-network,r36m-e4g|\
alfa-network,tube-e4g|\
engenius,epg600|\
engenius,esr600h|\
sitecom,wlr-4100-v1-002)
sitecom,wlr-4100-v1-002|\
zyxel,keenetic-lite-iii-a)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
;;
arcadyan,we420223-99)

View File

@ -0,0 +1,50 @@
From: Felix Fietkau <nbd@nbd.name>
Date: Sun, 26 Mar 2023 17:11:34 +0200
Subject: [PATCH] wifi: mac80211: fix receiving mesh packets in forwarding=0
networks
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When forwarding is set to 0, frames are typically sent with ttl=1.
Move the ttl decrement check below the check for local receive in order to
fix packet drops.
Reported-by: Thomas Hühn <thomas.huehn@hs-nordhausen.de>
Reported-by: Nick Hainke <vincent@systemli.org>
Fixes: 986e43b19ae9 ("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2828,14 +2828,6 @@ ieee80211_rx_mesh_data(struct ieee80211_
if (sdata->crypto_tx_tailroom_needed_cnt)
tailroom = IEEE80211_ENCRYPT_TAILROOM;
- if (!--mesh_hdr->ttl) {
- if (multicast)
- goto rx_accept;
-
- IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
- return RX_DROP_MONITOR;
- }
-
if (mesh_hdr->flags & MESH_FLAGS_AE) {
struct mesh_path *mppath;
char *proxied_addr;
@@ -2874,6 +2866,14 @@ ieee80211_rx_mesh_data(struct ieee80211_
if (ether_addr_equal(sdata->vif.addr, eth->h_dest))
goto rx_accept;
+ if (!--mesh_hdr->ttl) {
+ if (multicast)
+ goto rx_accept;
+
+ IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, dropped_frames_ttl);
+ return RX_DROP_MONITOR;
+ }
+
if (!ifmsh->mshcfg.dot11MeshForwarding) {
if (is_multicast_ether_addr(eth->h_dest))
goto rx_accept;

View File

@ -252,6 +252,7 @@ TARGET_NM:=$(TARGET_CROSS)gcc-nm
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_CXX:=$(TARGET_CROSS)g++
KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
FILECMD:=$(STAGING_DIR_HOST)/bin/file
SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
ESED:=$(STAGING_DIR_HOST)/bin/sed -E -i -e
MKHASH:=$(STAGING_DIR_HOST)/bin/mkhash

View File

@ -51,7 +51,7 @@ define Device/meraki_mx60
IMAGES := sysupgrade.bin
DTB_SIZE := 20480
IMAGE_SIZE := 1021m
KERNEL := kernel-bin | gzip | dtb | MuImage-initramfs gzip
KERNEL := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
UBINIZE_OPTS := -E 5
DEVICE_COMPAT_VERSION := 2.0
@ -70,7 +70,7 @@ define Device/netgear_wndap6x0
IMAGE_SIZE := 27392k
IMAGES := sysupgrade.bin factory.img
KERNEL_SIZE := 6080k
KERNEL := dtb | kernel-bin | gzip | MuImage-initramfs gzip
KERNEL := dtb | kernel-bin | libdeflate-gzip | MuImage-initramfs gzip
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
UBINIZE_OPTS := -E 5
@ -114,7 +114,7 @@ define Device/netgear_wndr4700
# CHECK_DNI_FIRMWARE_ROOTFS_INTEGRITY in do_chk_dniimg()
KERNEL := kernel-bin | lzma -d16 | uImage lzma | pad-offset $$(BLOCKSIZE) 64 | \
append-uImage-fakehdr filesystem | dtb | create-uImage-dtb | prepend-dtb
KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip
KERNEL_INITRAMFS := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
netgear-dni | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata

View File

@ -12,14 +12,14 @@ define Device/wd_mybooklive
SUPPORTED_DEVICES += mbl wd,mybooklive-duo
BLOCKSIZE := 1k
DTB_SIZE := 16384
KERNEL := kernel-bin | dtb | gzip | uImage gzip
KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip
KERNEL := kernel-bin | dtb | libdeflate-gzip | uImage gzip
KERNEL_INITRAMFS := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGES := factory.img.gz sysupgrade.img.gz
ARTIFACTS := apollo3g.dtb
DEVICE_DTB := apollo3g.dtb
FILESYSTEMS := ext4 squashfs
IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | gzip
IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | gzip | append-metadata
IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip
IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip | append-metadata
ARTIFACT/apollo3g.dtb := export-dtb
endef

View File

@ -0,0 +1,244 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "ar7100.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "aruba,ap-175", "qca,ar7161";
model = "Aruba AP-175";
chosen {
bootargs = "console=ttyS0,115200";
};
aliases {
led-boot = &led_power_amber;
led-failsafe = &led_power_amber;
led-upgrade = &led_power_amber;
label-mac-device = &eth0;
};
leds {
compatible = "gpio-leds";
/* These internal LEDs cannot be seen when case is closed */
internal_2g_green {
label = "green:internal_2g";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
};
internal_5g_green {
label = "green:internal_5g";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
/* These external LEDs are visible from the bottom panel */
led_power_amber: power_amber {
label = "amber:power";
gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
r1_act_blue {
label = "blue:r1_act";
gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
};
r1_rssi1_blue {
label = "blue:r1_rssi1";
gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
};
r1_rssi2_blue {
label = "blue:r1_rssi2";
gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
};
r1_rssi3_blue {
label = "blue:r1_rssi3";
gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
};
r1_rssi4_blue {
label = "blue:r1_rssi4";
gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
};
r0_act_amber {
label = "amber:r0_act";
gpios = <&gpio_ext 8 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
r0_rssi1_amber {
label = "amber:r0_rssi1";
gpios = <&gpio_ext 9 GPIO_ACTIVE_HIGH>;
};
r0_rssi2_amber {
label = "amber:r0_rssi2";
gpios = <&gpio_ext 10 GPIO_ACTIVE_HIGH>;
};
r0_rssi3_amber {
label = "amber:r0_rssi3";
gpios = <&gpio_ext 11 GPIO_ACTIVE_HIGH>;
};
r0_rssi4_amber {
label = "amber:r0_rssi4";
gpios = <&gpio_ext 12 GPIO_ACTIVE_HIGH>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
};
i2c0: i2c {
compatible = "i2c-gpio";
i2c-gpio,delay-us = <10>;
i2c-gpio,timeout-ms = <1>;
sda-gpios = <&gpio 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio 2 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
#address-cells = <1>;
#size-cells = <0>;
};
};
&pcie0 {
status = "okay";
ath9k0: wifi@0,11 {
compatible = "pci168c,0029";
nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
reg = <0x8800 0 0 0 0>;
#gpio-cells = <2>;
gpio-controller;
};
ath9k1: wifi@0,12 {
compatible = "pci168c,0029";
nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
reg = <0x9000 0 0 0 0>;
#gpio-cells = <2>;
gpio-controller;
};
};
&mdio0 {
status = "okay";
phy1: ethernet-phy@1 {
reg = <0x1>;
};
};
&eth0 {
status = "okay";
nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
&spi {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x40000>;
read-only;
};
partition@40000 {
label = "firmware";
reg = <0x40000 0xfa0000>;
compatible = "denx,uimage";
};
hwinfo: partition@fe0000 {
label = "hwinfo";
reg = <0xfe0000 0x10000>;
read-only;
};
partition@ff0000 {
label = "u-boot-env";
reg = <0xff0000 0x10000>;
read-only;
};
};
};
};
&hwinfo {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_hwinfo_1c: macaddr@1c {
reg = <0x1c 0x6>;
};
};
&i2c0 {
gpio_ext: gpio@21 {
status = "okay";
compatible = "ti,tca6416";
reg = <0x21>;
#address-cells = <1>;
#size-cells = <0>;
gpio-controller;
#gpio-cells = <2>;
};
temp-sensor@4a {
compatible = "national,lm75";
reg = <0x4a>;
};
eeprom@50 { /* 24lc2561 */
compatible = "atmel,24c256","at24";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x50>;
size = <256>;
};
ds1374c: rtc@68 {
status = "okay";
compatible = "dallas,ds1374";
reg = <0x68>;
};
};

View File

@ -139,7 +139,8 @@
ath9k0: wifi@0,11 {
compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>;
qca,no-eeprom;
nvmem-cells = <&macaddr_lan>, <&cal_art_1000>;
nvmem-cell-names = "mac-address-ascii", "calibration";
#gpio-cells = <2>;
gpio-controller;
};
@ -147,7 +148,9 @@
ath9k1: wifi@0,12 {
compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>;
qca,no-eeprom;
nvmem-cells = <&macaddr_wan>, <&cal_art_5000>;
nvmem-cell-names = "mac-address-ascii", "calibration";
mac-address-increment = <1>;
#gpio-cells = <2>;
gpio-controller;
};
@ -184,9 +187,28 @@
};
partition@660000 {
compatible = "nvmem-cells";
label = "caldata";
reg = <0x660000 0x010000>;
read-only;
#address-cells = <1>;
#size-cells = <1>;
cal_art_1000: cal@1000 {
reg = <0x1000 0xeb8>;
};
cal_art_5000: cal@5000 {
reg = <0x5000 0xeb8>;
};
macaddr_lan: macaddr@ffa0 {
reg = <0xffa0 0x11>;
};
macaddr_wan: macaddr@ffb4 {
reg = <0xffb4 0x11>;
};
};
fwconcat1: partition@670000 {
@ -202,6 +224,9 @@
pll-data = <0x11110000 0x00001099 0x00991099>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address-ascii";
fixed-link {
speed = <1000>;
full-duplex;
@ -213,5 +238,9 @@
pll-data = <0x11110000 0x00001099 0x00991099>;
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address-ascii";
phy-handle = <&phy4>;
};

View File

@ -19,6 +19,7 @@ ath79_setup_interfaces()
araknis,an-700-ap-i-ac|\
arduino,yun|\
aruba,ap-105|\
aruba,ap-175|\
asus,rp-ac51|\
asus,rp-ac66|\
avm,fritz1750e|\
@ -634,7 +635,6 @@ ath79_setup_macs()
dlink,dir-629-a1)
wan_mac=$(mtd_get_mac_text "mfcdata" 0x6a)
;;
dlink,dir-825-b1|\
trendnet,tew-673gru)
lan_mac=$(mtd_get_mac_text "caldata" 0xffa0)
wan_mac=$(mtd_get_mac_text "caldata" 0xffb4)

View File

@ -124,7 +124,6 @@ case "$FIRMWARE" in
buffalo,wzr-hp-ag300h)
caldata_extract "art" 0x1000 0xeb8
;;
dlink,dir-825-b1|\
trendnet,tew-673gru)
caldata_extract "caldata" 0x1000 0xeb8
ath9k_patch_mac_crc $(mtd_get_mac_text "caldata" 0xffa0) 0x20c
@ -143,7 +142,6 @@ case "$FIRMWARE" in
buffalo,wzr-hp-ag300h)
caldata_extract "art" 0x5000 0xeb8
;;
dlink,dir-825-b1|\
trendnet,tew-673gru)
caldata_extract "caldata" 0x5000 0xeb8
ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_text "caldata" 0xffb4) 1) 0x20c

View File

@ -395,6 +395,15 @@ define Device/aruba_ap-105
endef
TARGET_DEVICES += aruba_ap-105
define Device/aruba_ap-175
SOC := ar7161
DEVICE_VENDOR := Aruba
DEVICE_MODEL := AP-175
IMAGE_SIZE := 16000k
DEVICE_PACKAGES := kmod-gpio-pca953x kmod-hwmon-lm75 kmod-i2c-gpio kmod-rtc-ds1374
endef
TARGET_DEVICES += aruba_ap-175
define Device/asus_pl-ac56
SOC := qca9563
DEVICE_VENDOR := ASUS

View File

@ -1,4 +1,3 @@
CONFIG_ADM6996_PHY=y
CONFIG_ARCH_BINFMT_ELF_STATE=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_ARCH_DISCARD_MEMBLOCK=y

View File

@ -1,4 +1,3 @@
CONFIG_ADM6996_PHY=y
CONFIG_ARCH_32BIT_OFF_T=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_KEEP_MEMBLOCK=y

View File

@ -1,8 +1,8 @@
CONFIG_ADM6996_PHY=y
CONFIG_B44=y
CONFIG_B44_PCI=y
CONFIG_B44_PCICORE_AUTOSELECT=y
CONFIG_B44_PCI_AUTOSELECT=y
# CONFIG_BCM47XX_BCMA is not set
# CONFIG_BCMA is not set
# CONFIG_MTD_NAND is not set
# CONFIG_SSB_DRIVER_GIGE is not set

View File

@ -1,20 +1,16 @@
# CONFIG_ADM6996_PHY is not set
# CONFIG_BCM47XX_SSB is not set
CONFIG_BGMAC=y
CONFIG_BGMAC_BCMA=y
CONFIG_BOUNCE=y
CONFIG_CPU_HAS_DIEI=y
CONFIG_CPU_HAS_RIXI=y
# CONFIG_CPU_MIPS32_R1 is not set
# CONFIG_CPU_MIPSR1 is not set
CONFIG_CPU_MIPS32_R2=y
CONFIG_CPU_MIPSR2=y
# CONFIG_FIXED_PHY is not set
CONFIG_CPU_SUPPORTS_MSA=y
# CONFIG_GPIO_WDT is not set
CONFIG_HIGHMEM=y
CONFIG_KMAP_LOCAL=y
CONFIG_MIPS_SPRAM=y
# CONFIG_SSB is not set
# CONFIG_SSB_DRIVER_EXTIF is not set
# CONFIG_SSB_DRIVER_GIGE is not set
# CONFIG_SSB_DRIVER_MIPS is not set
# CONFIG_SSB_EMBEDDED is not set
# CONFIG_SSB_PCICORE_HOSTMODE is not set
# CONFIG_SSB_SERIAL is not set
# CONFIG_SSB_SFLASH is not set
CONFIG_TARGET_ISA_REV=2

View File

@ -100,7 +100,12 @@ platform_do_upgrade_linksys() {
fi
# complete std upgrade
nand_upgrade_tar "$1"
if nand_upgrade_tar "$1" ; then
nand_do_upgrade_success
else
nand_do_upgrade_failure
fi
}
[ "$magic_long" = "27051956" ] && {

View File

@ -42,6 +42,18 @@
label = "urlader";
reg = <0x00000 0x20000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
cal_urlader_985: cal@985 {
reg = <0x985 0x440>;
};
macaddr_urlader_a91: macaddr@a91 {
reg = <0xa91 0x6>;
};
};
partition@20000 {
@ -78,12 +90,8 @@
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
&urlader {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_urlader_a91: macaddr@a91 {
reg = <0xa91 0x6>;
};
&wifi {
/delete-property/ qca,no-eeprom;
nvmem-cells = <&cal_urlader_985>;
nvmem-cell-names = "calibration";
};

View File

@ -151,7 +151,7 @@
#address-cells = <2>;
device_type = "pci";
wifi@168c,002e {
wifi: wifi@168c,002e {
compatible = "pci168c,002e";
reg = <0 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */

View File

@ -17,6 +17,8 @@ define Device/avm_fritz7320
DEVICE_MODEL := FRITZ!Box 7320
DEVICE_ALT0_VENDOR := 1&1
DEVICE_ALT0_MODEL := HomeServer
DEVICE_ALT1_VENDOR := AVM
DEVICE_ALT1_MODEL := Fritz!box 7330
SOC := ar9
IMAGE_SIZE := 15744k
LOADER_FLASH_OFFS := 0x31000

View File

@ -19,8 +19,7 @@ case "$FIRMWARE" in
avm,fritz3390)
caldata_extract_reverse "urlader" 0x2546 0x440
;;
avm,fritz7360sl|\
avm,fritz7360-v2)
avm,fritz7360sl)
caldata_extract "urlader" 0x985 0x1000
;;
avm,fritz7412|\

View File

@ -0,0 +1,144 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
compatible = "zyxel,keenetic-lite-iii-a", "ralink,mt7620n-soc";
model = "ZyXEL Keenetic Lite III (rev. A)";
aliases {
led-boot = &led_wan;
led-failsafe = &led_wan;
led-running = &led_wan;
led-upgrade = &led_wan;
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; // #GPIO1
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; // #GPIO2
linux,code = <KEY_WPS_BUTTON>;
};
sw0 {
label = "sw0";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; // #GPIO17
linux,code = <BTN_0>;
};
sw1 {
label = "sw1";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; // #GPIO20
linux,code = <BTN_1>;
};
sw2 {
label = "sw2";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; // #GPIO21
linux,code = <BTN_2>;
};
};
leds {
compatible = "gpio-leds";
led_wan: wan {
label = "green:wan";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // #GPIO38
};
wifi {
label = "green:wifi";
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; // #GPIO72
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <48000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "U-Boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "U-Config";
reg = <0x30000 0x10000>;
};
factory: partition@40000 {
label = "RF-EEPROM";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x7a0000>;
};
partition@7f0000 {
label = "Config";
reg = <0x7f0000 0x10000>;
};
partition@0_1 {
label = "Full";
reg = <0x0 0x800000>;
};
};
};
};
&state_default {
gpio {
groups = "i2c";
function = "gpio";
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};

View File

@ -138,10 +138,6 @@
};
};
&pcie2 {
status = "disabled";
};
&state_default {
gpio {
groups = "jtag";

View File

@ -152,10 +152,6 @@
};
};
&pcie2 {
status = "disabled";
};
&state_default {
gpio {
groups = "i2c", "uart3", "wdt";

View File

@ -217,10 +217,6 @@
};
};
&pcie2 {
status = "disabled";
};
&state_default {
gpio {
groups = "uart3", "uart2", "jtag", "wdt";

View File

@ -148,10 +148,6 @@
};
};
&pcie2 {
status = "disabled";
};
&gmac0 {
nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";

View File

@ -1473,6 +1473,18 @@ define Device/zte_q7
endef
TARGET_DEVICES += zte_q7
define Device/zyxel_keenetic-lite-iii-a
SOC := mt7620n
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Lite III
DEVICE_VARIANT := A
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size | \
zyimage -d 2102018 -v "ZyXEL Keenetic Lite III"
endef
TARGET_DEVICES += zyxel_keenetic-lite-iii-a
define Device/zyxel_keenetic-omni
SOC := mt7620n
IMAGE_SIZE := 7872k

View File

@ -55,6 +55,7 @@ planex,mzk-ex300np|\
zbtlink,zbt-we826-16m|\
zbtlink,zbt-we826-32m|\
zbtlink,zbt-wr8305rt|\
zyxel,keenetic-lite-iii-a|\
zyxel,keenetic-omni|\
zyxel,keenetic-omni-ii|\
zyxel,keenetic-viva)

View File

@ -28,6 +28,7 @@ ramips_setup_interfaces()
zbtlink,zbt-we826-32m|\
zbtlink,zbt-we826-e|\
zbtlink,zbt-wr8305rt|\
zyxel,keenetic-lite-iii-a|\
zyxel,keenetic-omni)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
@ -404,6 +405,11 @@ ramips_setup_macs()
zbtlink,zbt-we1026-5g-16m)
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
zyxel,keenetic-lite-iii-a)
lan_mac=$(mtd_get_mac_binary RF-EEPROM 0x4)
wan_mac=$(mtd_get_mac_binary RF-EEPROM 0x28)
label_mac=$wan_mac
;;
zyxel,keenetic-omni|\
zyxel,keenetic-omni-ii|\
zyxel,keenetic-viva)

View File

@ -152,6 +152,10 @@ case "$board" in
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr "0x100000" > /sys${DEVPATH}/macaddress
;;
totolink,x5000r)
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 4 > /sys${DEVPATH}/macaddress
;;
tplink,eap615-wall-v1)
hw_mac_addr="$(mtd_get_mac_binary product-info 0x8)"
macaddr_add "$hw_mac_addr" "$PHYNBR" > "/sys${DEVPATH}/macaddress"

View File

@ -0,0 +1,59 @@
From: Bogdan Drozdowski <bogdandr AT op.pl>
Date: Sat, 31 Dec 2022 20:17:35 +0100
Subject: [PATCH] Allow other V values for verbosity
---
m4/silent.m4 | 2 +-
t/silent-gen.sh | 24 ++++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
--- a/m4/silent.m4
+++ b/m4/silent.m4
@@ -43,7 +43,7 @@ else
fi])
if test $am_cv_make_support_nested_variables = yes; then
dnl Using '$V' instead of '$(V)' breaks IRIX make.
- AM_V='$(V)'
+ AM_V='$(shell if ( test "x$(V)" = "x0" ); then echo 0; elif ( test "x$(V)" = "x" ); then echo $(AM_DEFAULT_VERBOSITY); else echo 1; fi)'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
AM_V=$AM_DEFAULT_VERBOSITY
--- a/t/silent-gen.sh
+++ b/t/silent-gen.sh
@@ -54,6 +54,18 @@ grep 'cp ' stdout
grep 'echo ' stdout
$MAKE clean
+run_make -O V=99
+grep 'GEN ' stdout && exit 1
+grep 'cp ' stdout
+grep 'echo ' stdout
+
+$MAKE clean
+run_make -O V=vvv
+grep 'GEN ' stdout && exit 1
+grep 'cp ' stdout
+grep 'echo ' stdout
+
+$MAKE clean
run_make -O V=0
grep 'GEN .*foo' stdout
grep 'cp ' stdout && exit 1
@@ -78,5 +90,17 @@ run_make -O V=1
grep 'GEN ' stdout && exit 1
grep 'cp ' stdout
grep 'echo ' stdout
+
+$MAKE clean
+run_make -O V=99
+grep 'GEN ' stdout && exit 1
+grep 'cp ' stdout
+grep 'echo ' stdout
+
+$MAKE clean
+run_make -O V=v
+grep 'GEN ' stdout && exit 1
+grep 'cp ' stdout
+grep 'echo ' stdout
:

View File

@ -23,7 +23,7 @@ HOST_CONFIGURE_VARS += \
define Host/Prepare
$(call Host/Prepare/Default)
(cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
$(call Host/Uninstall)
$(if $(QUILT),,(cd $(HOST_BUILD_DIR); touch README-release; $(AM_TOOL_PATHS) ./bootstrap --skip-git --skip-po --force))
endef
@ -33,18 +33,13 @@ define Host/Configure
endef
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) install
$(call Host/Compile/Default,install)
$(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
$(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
$(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
endef
define Host/Uninstall
-$(call Host/Compile/Default,uninstall)
endef
define Host/Clean
$(call Host/Clean/Default)
(cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
endef
$(eval $(call HostBuild))