Skip to content

Commit

Permalink
Merge branch 'immortalwrt:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Doanduy09 authored Dec 27, 2024
2 parents e024e9c + ed5459d commit 135e825
Show file tree
Hide file tree
Showing 483 changed files with 7,203 additions and 6,572 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* -text
*.patch whitespace=-indent-with-non-tab,-space-before-tab,-tab-in-indent,-trailing-space
2 changes: 1 addition & 1 deletion config/Config-build.in
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ menu "Global build settings"
config USE_SECCOMP
bool "Enable SECCOMP"
select KERNEL_SECCOMP
depends on (aarch64 || arm || armeb || mips || mipsel || mips64 || mips64el || i386 || powerpc || x86_64)
depends on (aarch64 || arm || armeb || mips || mipsel || mips64 || mips64el || i386 || loongarch64 || powerpc || x86_64)
depends on !TARGET_uml
default y
help
Expand Down
7 changes: 7 additions & 0 deletions config/Config-kernel.in
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,13 @@ config KERNEL_MPTCP_IPV6
default KERNEL_MPTCP
endif

config KERNEL_NF_CONNTRACK_TIMEOUT
bool "Per-connection connection tracking timeout"
default y if !SMALL_FLASH
help
Select this option to enable support for per-connection conntrack timeouts.
Increases the (uncompressed) size of nf_conntrack.ko by ~8kB.

#
# NFS related symbols
#
Expand Down
4 changes: 2 additions & 2 deletions include/kernel-6.6
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.6 = .63
LINUX_KERNEL_HASH-6.6.63 = d1054ab4803413efe2850f50f1a84349c091631ec50a1cf9e891d1b1f9061835
LINUX_VERSION-6.6 = .67
LINUX_KERNEL_HASH-6.6.67 = e41da482ec42a3b0e2b8ed2574c1d327e3dcf95cdf025c55a356b04307113e1a
1 change: 0 additions & 1 deletion include/trusted-firmware-a.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ define Build/Compile/Trusted-Firmware-A
$(if $(DTC),DTC="$(DTC)") \
PLAT=$(PLAT) \
BUILD_STRING="ImmortalWrt v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
$(TFA_MAKE_FLAGS)
endef

Expand Down
3 changes: 2 additions & 1 deletion package/base-files/files/bin/config_generate
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ generate_static_system() {
delete system.@system[0]
add system system
set system.@system[-1].hostname='ImmortalWrt'
set system.@system[-1].timezone='UTC'
set system.@system[-1].timezone='GMT0'
set system.@system[-1].zonename='UTC'
set system.@system[-1].ttylogin='0'
set system.@system[-1].log_size='128'
set system.@system[-1].urandom_seed='0'
Expand Down
1 change: 1 addition & 0 deletions package/base-files/files/etc/init.d/done
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ START=95
boot() {
mount_root done
rm -f /sysupgrade.tgz && sync
rm -f /tmp/sysupgrade.tar && sync

# process user commands
[ -f /etc/rc.local ] && {
Expand Down
8 changes: 6 additions & 2 deletions package/base-files/files/etc/init.d/led
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ load_led() {
local delayon
local delayoff
local interval
local brightness

config_get sysfs $1 sysfs
config_get name $1 name "$sysfs"
Expand All @@ -67,6 +68,7 @@ load_led() {
config_get message $1 message ""
config_get gpio $1 gpio "0"
config_get_bool inverted $1 inverted "0"
config_get brightness $1 brightness

[ "$2" ] && [ "$sysfs" != "$2" ] && return

Expand Down Expand Up @@ -104,8 +106,10 @@ load_led() {
[ "$default" = 0 ] &&
echo 0 >/sys/class/leds/${sysfs}/brightness

[ $default = 1 ] &&
cat /sys/class/leds/${sysfs}/max_brightness > /sys/class/leds/${sysfs}/brightness
[ "$default" = 1 ] && {
[ -z "$brightness" ] && brightness="$(cat /sys/class/leds/${sysfs}/max_brightness)"
echo "$brightness" > /sys/class/leds/${sysfs}/brightness
}

led_color_set "$1" "$sysfs"

Expand Down
4 changes: 2 additions & 2 deletions package/base-files/files/etc/init.d/system
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ validate_system_section() {
'hostname:string:OpenWrt' \
'conloglevel:uinteger' \
'buffersize:uinteger' \
'timezone:string:UTC' \
'zonename:string'
'timezone:string:GMT0' \
'zonename:string:UTC'
}

system_config() {
Expand Down
4 changes: 0 additions & 4 deletions package/base-files/files/etc/rc.common
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ service_triggers() {
return 0
}

service_data() {
return 0
}

service_running() {
local instance="${1:-*}"

Expand Down
1 change: 1 addition & 0 deletions package/boot/arm-trusted-firmware-bcm63xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ TFA_TARGETS:= \
bcm4908

TFA_MAKE_FLAGS += \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
BRCM_CHIP=$(BRCM_CHIP)

define Package/trusted-firmware-a/install
Expand Down
1 change: 1 addition & 0 deletions package/boot/arm-trusted-firmware-mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ TFA_TARGETS:= \
mt7988-spim-nand-ubi-comb

TFA_MAKE_FLAGS += \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
BOOT_DEVICE=$(BOOT_DEVICE) \
USE_MKIMAGE=1 MKIMAGE=$(STAGING_DIR_HOST)/bin/mkimage \
$(if $(findstring ddr4,$(DDR_TYPE)),DRAM_USE_DDR4=1) \
Expand Down
1 change: 1 addition & 0 deletions package/boot/arm-trusted-firmware-mvebu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ TFA_TARGETS:= \
edpu

TFA_MAKE_FLAGS += \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
CROSS_CM3=$(BUILD_DIR)/$(CM3_GCC_NAME)-$(CM3_GCC_RELEASE)-$(CM3_GCC_VERSION)/bin/arm-none-eabi- \
BL33=$(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot.bin \
MV_DDR_PATH=$(BUILD_DIR)/$(MV_DDR_NAME) \
Expand Down
7 changes: 5 additions & 2 deletions package/boot/arm-trusted-firmware-stm32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

include $(TOPDIR)/rules.mk

PKG_VERSION:=2.10
PKG_VERSION:=2.12
PKG_RELEASE:=1

PKG_HASH:=88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ARM-software/arm-trusted-firmware.git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=51b2022baa25df7fd8f2e6d2709c9351c14b17447cda64759a8a1d432f9d1c11
PKG_MAINTAINER:=Thomas Richard <[email protected]>

include $(INCLUDE_DIR)/kernel.mk
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
From 0e1a71d84585ec33b479c2cb8c8d65a4f6734dbe Mon Sep 17 00:00:00 2001
From: Thomas Richard <[email protected]>
Date: Wed, 4 Dec 2024 14:26:52 +0100
Subject: [PATCH] Revert "feat(stm32mp1-fdts): remove RTC clock configuration"

This reverts commit 703a581e2522bffe21b421c98994dc02aed2934c.
---
fdts/stm32mp135f-dk.dts | 2 ++
fdts/stm32mp157c-ed1.dts | 2 ++
fdts/stm32mp15xx-dkx.dtsi | 2 ++
3 files changed, 6 insertions(+)

--- a/fdts/stm32mp135f-dk.dts
+++ b/fdts/stm32mp135f-dk.dts
@@ -190,6 +190,7 @@
CLK_AXI_PLL2P
CLK_MLAHBS_PLL3
CLK_CKPER_HSE
+ CLK_RTC_LSE
CLK_SDMMC1_PLL4P
CLK_SDMMC2_PLL4P
CLK_STGEN_HSE
@@ -211,6 +212,7 @@
DIV(DIV_APB4, 1)
DIV(DIV_APB5, 2)
DIV(DIV_APB6, 1)
+ DIV(DIV_RTC, 0)
>;

st,pll_vco {
--- a/fdts/stm32mp157c-ed1.dts
+++ b/fdts/stm32mp157c-ed1.dts
@@ -194,6 +194,7 @@
CLK_MPU_PLL1P
CLK_AXI_PLL2P
CLK_MCU_PLL3P
+ CLK_RTC_LSE
CLK_MCO1_DISABLED
CLK_MCO2_DISABLED
CLK_CKPER_HSE
@@ -242,6 +243,7 @@
DIV(DIV_APB3, 1)
DIV(DIV_APB4, 1)
DIV(DIV_APB5, 2)
+ DIV(DIV_RTC, 23)
DIV(DIV_MCO1, 0)
DIV(DIV_MCO2, 0)
>;
--- a/fdts/stm32mp15xx-dkx.dtsi
+++ b/fdts/stm32mp15xx-dkx.dtsi
@@ -198,6 +198,7 @@
CLK_MPU_PLL1P
CLK_AXI_PLL2P
CLK_MCU_PLL3P
+ CLK_RTC_LSE
CLK_MCO1_DISABLED
CLK_MCO2_DISABLED
CLK_CKPER_HSE
@@ -246,6 +247,7 @@
DIV(DIV_APB3, 1)
DIV(DIV_APB4, 1)
DIV(DIV_APB5, 2)
+ DIV(DIV_RTC, 23)
DIV(DIV_MCO1, 0)
DIV(DIV_MCO2, 0)
>;
3 changes: 3 additions & 0 deletions package/boot/arm-trusted-firmware-sunxi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ TFA_TARGETS:= \
sunxi-h6 \
sunxi-h616

TFA_MAKE_FLAGS+= \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments")

define Package/trusted-firmware-a/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/$(PLAT)/release/bl31.bin $(STAGING_DIR_IMAGE)/bl31_$(BUILD_VARIANT).bin
Expand Down
4 changes: 2 additions & 2 deletions package/boot/optee-os-stm32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

include $(TOPDIR)/rules.mk

PKG_VERSION:=4.3.0
PKG_VERSION:=4.4.0
PKG_RELEASE:=1

PKG_HASH:=390b271905c828d6def9fa6a77bbaa425f3b434d733c8eb18f582ccbc6896096
PKG_HASH:=b13c65ff2abcd21a9200cb0131f34d61bde7c31eb0427fa761d27c3b87c7fec8
PKG_MAINTAINER:=Thomas Richard <[email protected]>

OPTEE_USE_INTREE_DTC:=1
Expand Down
1 change: 1 addition & 0 deletions package/boot/tfa-layerscape/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ TFA_TARGETS := \
lx2160a-rdb-sdboot

TFA_MAKE_FLAGS += \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
fip pbl \
BOOT_MODE=$(BOOT_MODE) \
RCW=$(STAGING_DIR_IMAGE)/fsl_$(BUILD_VARIANT)-rcw.bin \
Expand Down
10 changes: 5 additions & 5 deletions package/boot/uboot-d1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,31 @@ define U-Boot/dongshan_nezha_stu
OPENSBI:=generic
DEPENDS:=+opensbi_generic
UBOOT_DTS:=sun20i-d1-dongshan-nezha-stu.dtb
BUILD_DEVICES:=dongshan_nezha_stu
BUILD_DEVICES:=100ask_dongshan-nezha-stu
endef

define U-Boot/lichee_rv_dock
NAME:=LicheePi RV (dock)
OPENSBI:=generic
DEPENDS:=+opensbi_generic
UBOOT_DTS:=sun20i-d1-lichee-rv-dock.dtb
BUILD_DEVICES:=lichee_rv_dock
BUILD_DEVICES:=sipeed_lichee-rv-dock
endef

define U-Boot/mangopi_mq_pro
NAME:=MangoPi MQ Pro
OPENSBI:=generic
DEPENDS:=+opensbi_generic
UBOOT_DTS:=sun20i-d1-mangopi-mq-pro.dtb
BUILD_DEVICES:=mangopi_mq_pro
BUILD_DEVICES:=widora_mangopi-mq-pro
endef

define U-Boot/nezha
NAME:=Nezha D1
OPENSBI:=generic
DEPENDS:=+opensbi_generic
UBOOT_DTS:=sun20i-d1-nezha.dtb
BUILD_DEVICES:=nezha
BUILD_DEVICES:=allwinner_d1-nezha
endef

UBOOT_TARGETS := \
Expand All @@ -74,7 +74,7 @@ endef
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(DTS_DIR)/$(UBOOT_DTS) $(STAGING_DIR_IMAGE)/$(UBOOT_DTS)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-$(UBOOT_IMAGE)
mkimage -C none -A riscv -T script -d uEnv-$(UENV).txt \
$(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)-boot.scr
endef
Expand Down
1 change: 1 addition & 0 deletions package/boot/uboot-envtools/files/ath79
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ asus,rt-ac59u-v2|\
asus,zenwifi-cd6n|\
asus,zenwifi-cd6r|\
buffalo,bhr-4grv2|\
buffalo,wzr-450hp2|\
devolo,magic-2-wifi|\
engenius,eap300-v2|\
engenius,eap350-v1|\
Expand Down
7 changes: 5 additions & 2 deletions package/boot/uboot-envtools/files/mediatek_filogic
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ acer,vero-w6m|\
glinet,gl-mt2500|\
glinet,gl-mt6000|\
glinet,gl-x3000|\
glinet,gl-xe3000)
glinet,gl-xe3000|\
nradio,c8-668gl)
local envdev=$(find_mmc_part "u-boot-env")
ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
;;
Expand Down Expand Up @@ -101,7 +102,8 @@ zbtlink,zbt-z8103ax)
comfast,cf-e393ax)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x80000"
;;
dlink,aquila-pro-ai-m30-a1)
dlink,aquila-pro-ai-m30-a1|\
dlink,aquila-pro-ai-m60-a1)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
;;
gatonetworks,gdsp)
Expand All @@ -115,6 +117,7 @@ livinet,zr-3020)
;;
mercusys,mr90x-v1|\
routerich,ax3000|\
tenbay,wr3000k|\
tplink,re6000xd)
local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
ubootenv_add_uci_config "$envdev" "0x0" "0x20000" "0x20000" "1"
Expand Down
1 change: 1 addition & 0 deletions package/boot/uboot-envtools/files/qualcommax_ipq807x
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ linksys,mx8500)
;;
netgear,sxr80|\
netgear,sxs80|\
tplink,eap620hd-v1|\
tplink,eap660hd-v1)
idx="$(find_mtd_index 0:appsblenv)"
[ -n "$idx" ] && \
Expand Down
1 change: 1 addition & 0 deletions package/boot/uboot-envtools/files/ramips
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ zte,mf283plus)
;;
asus,rt-ax53u|\
asus,rt-ax54|\
asus,4g-ax56|\
belkin,rt1800|\
elecom,wrc-x1800gs|\
h3c,tx1800-plus|\
Expand Down
8 changes: 8 additions & 0 deletions package/boot/uboot-rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ define U-Boot/lyt-t68m-rk3568
lyt_t68m
endef

define U-Boot/mmbox-anas3035-rk3568
$(U-Boot/rk3568/Default)
NAME:=MMBOX ANAS3035
BUILD_DEVICES:= \
mmbox_anas3035
endef

define U-Boot/mrkaio-m68s-rk3568
$(U-Boot/rk3568/Default)
NAME:=Mrkaio M68S
Expand Down Expand Up @@ -401,6 +408,7 @@ UBOOT_TARGETS := \
fastrhino-r66s-rk3568 \
fastrhino-r68s-rk3568 \
lyt-t68m-rk3568 \
mmbox-anas3035-rk3568 \
mrkaio-m68s-rk3568 \
nanopi-r5c-rk3568 \
nanopi-r5s-rk3568 \
Expand Down
Loading

0 comments on commit 135e825

Please sign in to comment.