Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
d2f93ecedb
@ -215,10 +215,8 @@ $(eval $(call KernelPackage,ipsec))
|
||||
IPSEC4-m = \
|
||||
ipv4/ah4 \
|
||||
ipv4/esp4 \
|
||||
ipv4/xfrm4_tunnel \
|
||||
ipv4/ipcomp \
|
||||
|
||||
IPSEC4-m += $(ifeq ($$(strip $$(call CompareKernelPatchVer,$$(KERNEL_PATCHVER),le,5.2))),ipv4/xfrm4_mode_beet ipv4/xfrm4_mode_transport ipv4/xfrm4_mode_tunnel)
|
||||
ipv4/xfrm4_tunnel
|
||||
|
||||
define KernelPackage/ipsec4
|
||||
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||
@ -228,9 +226,6 @@ define KernelPackage/ipsec4
|
||||
CONFIG_INET_AH \
|
||||
CONFIG_INET_ESP \
|
||||
CONFIG_INET_IPCOMP \
|
||||
CONFIG_INET_XFRM_MODE_BEET \
|
||||
CONFIG_INET_XFRM_MODE_TRANSPORT \
|
||||
CONFIG_INET_XFRM_MODE_TUNNEL \
|
||||
CONFIG_INET_XFRM_TUNNEL \
|
||||
CONFIG_INET_ESP_OFFLOAD=n
|
||||
FILES:=$(foreach mod,$(IPSEC4-m),$(LINUX_DIR)/net/$(mod).ko)
|
||||
@ -255,10 +250,8 @@ $(eval $(call KernelPackage,ipsec4))
|
||||
IPSEC6-m = \
|
||||
ipv6/ah6 \
|
||||
ipv6/esp6 \
|
||||
ipv6/xfrm6_tunnel \
|
||||
ipv6/ipcomp6 \
|
||||
|
||||
IPSEC6-m += $(ifeq ($$(strip $$(call CompareKernelPatchVer,$$(KERNEL_PATCHVER),le,5.2))),ipv6/xfrm6_mode_beet ipv6/xfrm6_mode_transport ipv6/xfrm6_mode_tunnel)
|
||||
ipv6/xfrm6_tunnel
|
||||
|
||||
define KernelPackage/ipsec6
|
||||
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||
@ -268,9 +261,6 @@ define KernelPackage/ipsec6
|
||||
CONFIG_INET6_AH \
|
||||
CONFIG_INET6_ESP \
|
||||
CONFIG_INET6_IPCOMP \
|
||||
CONFIG_INET6_XFRM_MODE_BEET \
|
||||
CONFIG_INET6_XFRM_MODE_TRANSPORT \
|
||||
CONFIG_INET6_XFRM_MODE_TUNNEL \
|
||||
CONFIG_INET6_XFRM_TUNNEL \
|
||||
CONFIG_INET6_ESP_OFFLOAD=n
|
||||
FILES:=$(foreach mod,$(IPSEC6-m),$(LINUX_DIR)/net/$(mod).ko)
|
||||
|
||||
@ -12,9 +12,9 @@ PKG_RELEASE:=$(AUTORELEASE)
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
|
||||
PKG_SOURCE_DATE:=2022-03-22
|
||||
PKG_SOURCE_VERSION:=860ca900e41c5d0f98cc85e67b39977f6f2cb355
|
||||
PKG_MIRROR_HASH:=555712a1e25d197e52808a0d5e42bf0d48a8b61fe7c8aad1a02a7c09f0b8b8a3
|
||||
PKG_SOURCE_DATE:=2022-10-31
|
||||
PKG_SOURCE_VERSION:=a92c0a73d018cd6453dcf253d9617f97311becab
|
||||
PKG_MIRROR_HASH:=0752d500b4aa65290c46be89ac5c30a0d536f6695c04ee79201cbada0880ed9c
|
||||
|
||||
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
@ -2555,9 +2555,6 @@ CONFIG_INET=y
|
||||
# CONFIG_INET_TCP_DIAG is not set
|
||||
# CONFIG_INET_TUNNEL is not set
|
||||
# CONFIG_INET_UDP_DIAG is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_TUNNEL is not set
|
||||
# CONFIG_INFINIBAND is not set
|
||||
# CONFIG_INFTL is not set
|
||||
|
||||
@ -2656,9 +2656,6 @@ CONFIG_INET=y
|
||||
# CONFIG_INET_TCP_DIAG is not set
|
||||
# CONFIG_INET_TUNNEL is not set
|
||||
# CONFIG_INET_UDP_DIAG is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_TUNNEL is not set
|
||||
# CONFIG_INFINIBAND is not set
|
||||
# CONFIG_INFTL is not set
|
||||
|
||||
@ -131,7 +131,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
+ tmp = 100000 * 15 / 16 * 10000;
|
||||
+ tmp /= 4096 - 512 + mt->adc_ge;
|
||||
+ tmp /= 1490;
|
||||
+ tmp *= raw - mt->vts[sensno] - 2900;
|
||||
+ tmp *= raw - mt->vts[sensno] - 2900 - mt->adc_oe + 512;
|
||||
+
|
||||
+ return mt->degc_cali * 500 - tmp;
|
||||
+}
|
||||
|
||||
149
target/linux/ramips/dts/mt7621_yuncore_fap690.dts
Normal file
149
target/linux/ramips/dts/mt7621_yuncore_fap690.dts
Normal file
@ -0,0 +1,149 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "yuncore,fap690", "mediatek,mt7621-soc";
|
||||
model = "YunCore FAP690";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status_green;
|
||||
led-failsafe = &led_status_red;
|
||||
led-running = &led_status_green;
|
||||
led-upgrade = &led_status_red;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status_green: status_green {
|
||||
label = "green:status";
|
||||
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_red: status_red {
|
||||
label = "red:status";
|
||||
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_blue: status_blue {
|
||||
label = "blue:status";
|
||||
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
watchdog {
|
||||
compatible = "linux,wdt-gpio";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||||
hw_algo = "toggle";
|
||||
hw_margin_ms = <200>;
|
||||
always-running;
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
m25p,fast-read;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "Bootloader";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@30000 {
|
||||
label = "Config";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
/* range 0x40000 to 0x50000 is empty in vendor
|
||||
* firmware, so we do not use it either
|
||||
*/
|
||||
|
||||
factory: partition@50000 {
|
||||
label = "Factory";
|
||||
reg = <0x50000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x90000 0xf70000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_0004>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@4 {
|
||||
status = "okay";
|
||||
label = "lan";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "jtag", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_0004: macaddr@0004 {
|
||||
reg = <0x0004 0x6>;
|
||||
};
|
||||
};
|
||||
@ -2274,6 +2274,16 @@ define Device/yuncore_fap640
|
||||
endef
|
||||
TARGET_DEVICES += yuncore_fap640
|
||||
|
||||
define Device/yuncore_fap690
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 15808k
|
||||
DEVICE_VENDOR := YunCore
|
||||
DEVICE_MODEL := FAP690
|
||||
DEVICE_PACKAGES := kmod-mt7915e
|
||||
endef
|
||||
TARGET_DEVICES += yuncore_fap690
|
||||
|
||||
define Device/zbtlink_zbt-we1326
|
||||
$(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
|
||||
@ -170,6 +170,9 @@ xiaomi,redmi-router-ac2100)
|
||||
youhua,wr1200js)
|
||||
ucidef_set_led_netdev "internet" "INTERNET" "green:wan" "wan"
|
||||
;;
|
||||
yuncore,fap690)
|
||||
ucidef_set_led_netdev "eth_link" "LAN link" "blue:status" "lan" "link"
|
||||
;;
|
||||
yuncore,ax820)
|
||||
ucidef_set_led_netdev "lan" "LAN" "green:lan" "lan"
|
||||
ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
|
||||
|
||||
@ -24,6 +24,7 @@ ramips_setup_interfaces()
|
||||
ubnt,unifi-6-lite|\
|
||||
ubnt,unifi-flexhd|\
|
||||
ubnt,unifi-nanohd|\
|
||||
yuncore,fap690|\
|
||||
zyxel,nwa50ax|\
|
||||
zyxel,nwa55axe)
|
||||
ucidef_set_interface_lan "lan"
|
||||
|
||||
@ -126,7 +126,8 @@ case "$board" in
|
||||
[ "$PHYNBR" = "1" ] && \
|
||||
macaddr_setbit_la "$(mtd_get_mac_binary Factory 0xe000)" > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
yuncore,fap640)
|
||||
yuncore,fap640|\
|
||||
yuncore,fap690)
|
||||
hw_mac_addr="$(mtd_get_mac_binary Factory 0x4)"
|
||||
[ "$PHYNBR" = "0" ] && macaddr_setbit_la "$hw_mac_addr" > /sys${DEVPATH}/macaddress
|
||||
[ "$PHYNBR" = "1" ] && echo -n "$hw_mac_addr" > /sys${DEVPATH}/macaddress
|
||||
|
||||
@ -227,6 +227,7 @@ struct rttm_cs rttm_cs = {
|
||||
.name = "realtek_otto_timer",
|
||||
.rating = 400,
|
||||
.mask = CLOCKSOURCE_MASK(RTTM_BIT_COUNT),
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
.read = rttm_read_clocksource,
|
||||
.enable = rttm_enable_clocksource
|
||||
}
|
||||
|
||||
@ -1252,6 +1252,7 @@ static int rtl838x_hw_receive(struct net_device *dev, int r, int budget)
|
||||
struct rtl838x_eth_priv *priv = netdev_priv(dev);
|
||||
struct ring_b *ring = priv->membase;
|
||||
struct sk_buff *skb;
|
||||
LIST_HEAD(rx_list);
|
||||
unsigned long flags;
|
||||
int i, len, work_done = 0;
|
||||
u8 *data, *skb_data;
|
||||
@ -1329,7 +1330,7 @@ static int rtl838x_hw_receive(struct net_device *dev, int r, int budget)
|
||||
dev->stats.rx_packets++;
|
||||
dev->stats.rx_bytes += len;
|
||||
|
||||
netif_receive_skb(skb);
|
||||
list_add_tail(&skb->list, &rx_list);
|
||||
} else {
|
||||
if (net_ratelimit())
|
||||
dev_warn(&dev->dev, "low on memory - packet dropped\n");
|
||||
@ -1347,6 +1348,8 @@ static int rtl838x_hw_receive(struct net_device *dev, int r, int budget)
|
||||
last = (u32 *)KSEG1ADDR(sw_r32(priv->r->dma_if_rx_cur + r * 4));
|
||||
} while (&ring->rx_r[r][ring->c_rx[r]] != last && work_done < budget);
|
||||
|
||||
netif_receive_skb_list(&rx_list);
|
||||
|
||||
// Update counters
|
||||
priv->r->update_cntr(r, 0);
|
||||
|
||||
|
||||
@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/target.mk
|
||||
|
||||
PKG_NAME:=ccache
|
||||
PKG_VERSION:=4.6.3
|
||||
PKG_VERSION:=4.7.2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
|
||||
PKG_HASH:=1e3a251bb112632553b8255a78661fe526c3a16598496d51128c32b218fd8b22
|
||||
PKG_HASH:=17ca75a577d49c1e4f2ac86d53126859de52b789cfe85dd532758518db114eaf
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
--- a/src/ccache.cpp
|
||||
+++ b/src/ccache.cpp
|
||||
@@ -1756,6 +1756,7 @@ calculate_result_and_manifest_key(Contex
|
||||
"CPLUS_INCLUDE_PATH",
|
||||
"OBJC_INCLUDE_PATH",
|
||||
"OBJCPLUS_INCLUDE_PATH", // clang
|
||||
+ "GCC_HONOUR_COPTS",
|
||||
nullptr};
|
||||
for (const char** p = envvars; *p; ++p) {
|
||||
const char* v = getenv(*p);
|
||||
@@ -1762,6 +1762,7 @@ get_manifest_key(Context& ctx, Hash& hash)
|
||||
"CPLUS_INCLUDE_PATH",
|
||||
"OBJC_INCLUDE_PATH",
|
||||
"OBJCPLUS_INCLUDE_PATH", // clang
|
||||
+ "GCC_HONOUR_COPTS",
|
||||
nullptr};
|
||||
for (const char** p = envvars; *p; ++p) {
|
||||
const char* v = getenv(*p);
|
||||
|
||||
@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=expat
|
||||
PKG_CPE_ID:=cpe:/a:libexpat:expat
|
||||
PKG_VERSION:=2.4.9
|
||||
PKG_VERSION:=2.5.0
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_HASH:=6e8c0728fe5c7cd3f93a6acce43046c5e4736c7b4b68e032e9350daa0efc0354
|
||||
PKG_HASH:=ef2420f0232c087801abf705e89ae65f6257df6b7931d37846a193ef2e8cdcbe
|
||||
PKG_SOURCE_URL:=https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION))
|
||||
|
||||
HOST_BUILD_PARALLEL:=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user