Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize official source code #118

Merged
merged 70 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
b67b3a6
uboot-mediatek: add support for JDCloud RE-CP-03
1715173329 Nov 1, 2023
2a25de2
mediatek: add support for JDCloud RE-CP-03
1715173329 Nov 1, 2023
7bfdc4e
uboot-mediatek: add Netcore N60 support
aiamadeus Nov 2, 2023
5632227
mediatek: filogic: add Netcore N60 support
aiamadeus Nov 3, 2023
feb5b07
mediatek: add missing SPDX header
blocktrron Jul 22, 2023
bed2272
mac80211: fix flush during station removal
oldium Oct 6, 2023
c145f0f
mac80211: add fix for receiving STP frames on mesh
nbd168 Jul 11, 2023
e82759f
mac80211: add missing config for third 160MHz width for 5GHz radio
testuser7 Mar 18, 2024
1f701c9
kernel: Extract kmod-nf-dup-inet
hauke Jun 29, 2024
7f833b8
kernel: Fix kmod-lib-lz4 packaging
hauke Jun 29, 2024
03299b3
kernel: Add kmod-crypto-blake2b
hauke Jun 29, 2024
9bf1089
kernel: Add kmod-crypto-xxhash
hauke Jun 29, 2024
ffe97a6
kernel: Add kmod-mfd
hauke Jun 29, 2024
aa27bd7
kernel: crypto: remove FCRYPT from miscellany
nwf Jun 20, 2024
80a3659
hostapd: use strdup on string passed to hostapd_add_iface
nbd168 Jun 14, 2024
287e256
hostapd: fix crash on interface setup failure
nbd168 Jun 14, 2024
f8690ca
scripts/ext-toolchain: add missing libc library specs
Ansuel Jun 17, 2024
6928faa
tools/sparse: fix compilation with GCC14
neheb Jun 14, 2024
0fb2ee4
firmware: intel-microcode: update to 20240531
chunkeey Jun 2, 2024
9f3f5cf
mt76: mt7996: select required kernel and hostap options
dangowrt Jun 10, 2024
04b0f1e
config: kernel: remove KASAN_EXTRA
LGA1150 Jun 7, 2024
5a42318
tegra: Activate CONFIG_SND_DRIVERS
hauke May 31, 2024
4df592f
scripts: Add GNU ftp mirror redirector for GNU and Savannah
May 25, 2024
add63dd
linux-firmware: realtek: update rtl8821ae firmware
rsalvaterra May 8, 2024
ccac75a
base-files: fix uid/gid auto-enumeration to avoid 16-bit limit
tew42 Nov 10, 2023
3941633
uencrypt: Fix compile warnings
hauke Apr 7, 2024
dee4309
mbedtls: Update to 2.28.8
hauke Apr 21, 2024
d0c7b19
hostapd: fix a crash corner case
nbd168 Apr 10, 2024
7d135dc
libxml2: add host build dependency on libiconv-full
nbd168 Apr 4, 2024
7448f7a
config: Enable ext4 journaling by default.
jordan-woyak Mar 26, 2024
242f193
linux-firmware: package Intel AX201 firmware
ynezz Mar 4, 2024
7764d48
kernel: bump 5.15 to 5.15.162
hauke Jul 7, 2024
1dd9f26
mediatek: filogic: set wan label in preinit
bmork May 18, 2023
cb2cda2
mediatek: filogic: avoid sub-shell invovation in netdev rename loop
dangowrt May 30, 2024
c439003
filogic: Add LED driver for GCA230718
RolandoMagico Dec 26, 2023
08f95e8
mediatek: Moved recovery image creation to include/image-commands.mk
RolandoMagico Mar 30, 2024
6e51ff8
filogic: Add support for D-Link AQUILA PRO AI M30
RolandoMagico Dec 24, 2023
d53f1ca
image: exclude initramfs-images dependency with IB
Ansuel Jul 9, 2024
e573b6b
ramips: add support for D-Link DIR-806A B1 router
41exey May 31, 2023
b20da12
ramips: add wan2 support for MQmaker WiTi
arinc9 Jun 17, 2023
2928063
ramips: add support for Netgear EAX12 series
looi Mar 30, 2023
07742a7
ramips: add Edimax BR-6208AC V2 support
stweil Mar 2, 2023
a812b70
image: make images and artifacts dependent of initramfs
Ansuel Jul 8, 2024
ca9b71c
generic: move accepted patches for mtk_eth_soc to backport-5.15
dangowrt May 28, 2024
e4d4715
kernel: backport mtd_wed/mtk_eth_soc patch for devices with more than…
Jul 9, 2024
93ce299
generic: 6.6: backport upstream commits for mtk_eth_soc
dangowrt Jun 16, 2024
8c46dd1
generic: 5.15: mtk_eth_soc: import accepted patches
dangowrt Jul 6, 2024
97e6cc4
generic: 6.6: mtk_eth_soc: add support for flow-control settings
dangowrt Jul 4, 2024
7382943
mediatek: fix WED + wifi reset
nbd168 Jan 19, 2024
5c21ab2
ramips: Refresh kernel patches
hauke Jul 10, 2024
42dada5
wireless-regdb: add missing license information
feckert Mar 19, 2024
9b12d41
ca-certificates: add missing license information
feckert Mar 13, 2024
f5d64e3
mac80211: add missing license information
feckert Mar 15, 2024
6f72d62
kernel: update deprecated license information
feckert Mar 21, 2024
437d198
linux-firmware: add LICENSE_FILES and LICENSE file handling
feckert Mar 13, 2024
130aa67
linux-firmware: add missing LICENSE_FILES info
feckert Mar 13, 2024
2b1ed7b
mac80211: fix mesh id corruption on 32 bit systems
nbd168 Sep 12, 2023
78858e5
ramips: limit max spi clock frequency to 50 MHz
DragonBluep Jul 7, 2024
0cdbbd8
wireless-regdb: Update to version 2024.07.04
hauke Jul 10, 2024
553a7a3
ucode: update to Git 1a8a0bcf725520820802ad433db22d8f64fbed6c (2024-0…
jow- Jul 13, 2024
9276bb1
ath79: replace "mac-address-ascii" with "mac-base"
Jul 21, 2023
84ecd7c
mediatek: fix lan/wan macaddr for jdcloud re-cp-03
1715173329 Jun 6, 2024
9f739da
uboot-mediatek: fix patch order
dangowrt Mar 10, 2024
a064567
uboot-mediatek: enable rootwait for jdcloud re-cp-03
1715173329 Apr 2, 2024
74df6ce
mediatek: filogic: add support for Cudy M3000 v1
yogo1212 Jan 12, 2024
d3552cc
mediatek: filogic: prevent faulty mac address assignment
yogo1212 May 17, 2024
84b000e
wolfssl: Update to version 5.7.2
hauke Jul 14, 2024
d8dd03c
build: include tests/Makefile if available
aparcar Jun 6, 2024
b951066
OpenWrt v23.05.4: adjust config defaults
hauke Jul 16, 2024
76a0c29
OpenWrt v23.05.4: revert to branch defaults
hauke Jul 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ else
include tools/Makefile
include toolchain/Makefile

# Include the test suite Makefile if it exists
-include tests/Makefile

$(toolchain/stamp-compile): $(tools/stamp-compile) $(if $(CONFIG_BUILDBOT),toolchain_rebuild_check)
$(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared
$(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup)
Expand Down
1 change: 1 addition & 0 deletions config/Config-images.in
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ menu "Target Images"
config TARGET_EXT4_JOURNAL
bool "Create a journaling filesystem"
depends on TARGET_ROOTFS_EXT4FS
default y
help
Create an ext4 filesystem with a journal.

Expand Down
10 changes: 0 additions & 10 deletions config/Config-kernel.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@ config KERNEL_KASAN
Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
(the resulting kernel does not boot).

config KERNEL_KASAN_EXTRA
bool "KAsan: extra checks"
depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL
help
This enables further checks in the kernel address sanitizer, for now
it only includes the address-use-after-scope check that can lead
to excessive kernel stack usage, frame size warnings and longer
compile time.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more

config KERNEL_KASAN_VMALLOC
bool "Back mappings in vmalloc space with real shadow memory"
depends on KERNEL_KASAN
Expand Down
37 changes: 37 additions & 0 deletions include/image-commands.mk
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,43 @@ define Build/copy-file
cat "$(1)" > "$@"
endef

# Create a header for a D-Link AI series recovery image and add it at the beginning of the image
# Currently supported: AQUILA M30, EAGLE M32 and R32
# Arguments:
# 1: Start string of the header
# 2: Firmware version
# 3: Block start address
# 4: Block length
# 5: Device FMID
define Build/dlink-ai-recovery-header
$(eval header_start=$(word 1,$(1)))
$(eval firmware_version=$(word 2,$(1)))
$(eval block_start=$(word 3,$(1)))
$(eval block_length=$(word 4,$(1)))
$(eval device_fmid=$(word 5,$(1)))
# create [email protected] without the checksum
echo -en "$(header_start)\x00\x00" > "[email protected]"
# Calculate checksum over data area ($@) and append it to the header.
# The checksum is the 2byte-sum over the whole data area.
# Every overflow during the checksum calculation must increment the current checksum value by 1.
od -v -w2 -tu2 -An --endian little "$@" | awk '{ s+=$$1; } END { s%=65535; printf "%c%c",s%256,s/256; }' >> "[email protected]"
echo -en "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" >> "[email protected]"
echo -en "$(firmware_version)" >> "[email protected]"
# Only one block supported: Erase start/length is identical to data start/length
echo -en "$(block_start)$(block_length)$(block_start)$(block_length)" >> "[email protected]"
# Only zeros
echo -en "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" >> "[email protected]"
# Last 16 bytes, but without checksum
echo -en "\x42\x48\x02\x00\x00\x00\x08\x00\x00\x00\x00\x00" >> "[email protected]"
echo -en "$(device_fmid)" >> "[email protected]"
# Calculate and append checksum: The checksum must be set so that the 2byte-sum of the whole header is 0.
# Every overflow during the checksum calculation must increment the current checksum value by 1.
od -v -w2 -tu2 -An --endian little "[email protected]" | awk '{s+=65535-$$1;}END{s%=65535;printf "%c%c",s%256,s/256;}' >> "[email protected]"
cat "[email protected]" "$@" > "[email protected]"
mv "[email protected]" "$@"
rm "[email protected]"
endef

define Build/dlink-sge-image
$(STAGING_DIR_HOST)/bin/dlink-sge-image $(1) $@ [email protected]
mv [email protected] $@
Expand Down
6 changes: 3 additions & 3 deletions include/image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ define Device/Build/initramfs
$$(if $$(CONFIG_JSON_OVERVIEW_IMAGE_INFO), $(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json,))

$(KDIR)/$$(KERNEL_INITRAMFS_NAME):: image_prepare
$(1)-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE))
$(1)-initramfs-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE))
$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)
cp $$^ $$@

Expand Down Expand Up @@ -639,7 +639,7 @@ define Device/Build/image
ifndef IB
$$(ROOTFS/$(1)/$(3)): $(if $(TARGET_PER_DEVICE_ROOTFS),target-dir-$$(ROOTFS_ID/$(3)))
endif
$(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)): $$(KDIR_KERNEL_IMAGE) $$(ROOTFS/$(1)/$(3))
$(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)): $$(KDIR_KERNEL_IMAGE) $$(ROOTFS/$(1)/$(3)) $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(if $(IB),,$(3)-initramfs-images))
@rm -f $$@
[ -f $$(word 1,$$^) -a -f $$(word 2,$$^) ]
$$(call concat_cmd,$(if $(IMAGE/$(2)/$(1)),$(IMAGE/$(2)/$(1)),$(IMAGE/$(2))))
Expand Down Expand Up @@ -695,7 +695,7 @@ define Device/Build/artifact
$(BUILD_DIR)/json_info_files/$(DEVICE_IMG_PREFIX)-$(1).json, \
$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1))
$(eval $(call Device/Export,$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1)))
$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE) $(2)-images
$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE) $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(if $(IB),,$(2)-initramfs-images)) $(2)-images
@rm -f $$@
$$(call concat_cmd,$(ARTIFACT/$(1)))

Expand Down
4 changes: 2 additions & 2 deletions include/kernel-5.15
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.15 = .161
LINUX_KERNEL_HASH-5.15.161 = d629f78680dc4b65e3d78b61406fb7757b960c83c206e63ad8c2606b3e3c474c
LINUX_VERSION-5.15 = .162
LINUX_KERNEL_HASH-5.15.162 = 91bfc0ea152ce7b102a0b79d35a7c92843874ebf085c99d2ba8b4d85e62b1a7c
2 changes: 0 additions & 2 deletions include/netfilter.mk
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ $(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED))
# tee

$(eval $(call nf_add,IPT_TEE,CONFIG_NETFILTER_XT_TARGET_TEE, $(P_XT)xt_TEE))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_TEE,CONFIG_NF_DUP_IPV4, $(P_V4)nf_dup_ipv4),))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_TEE,CONFIG_NF_DUP_IPV6, $(P_V6)nf_dup_ipv6),))

# u32

Expand Down
4 changes: 2 additions & 2 deletions package/base-files/files/lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ group_add_next() {
return
fi
gids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/group)
gid=65536
gid=32768
while echo "$gids" | grep -q "^$gid$"; do
gid=$((gid + 1))
done
Expand Down Expand Up @@ -402,7 +402,7 @@ user_add() {
local rc
[ -z "$uid" ] && {
uids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/passwd)
uid=65536
uid=32768
while echo "$uids" | grep -q "^$uid$"; do
uid=$((uid + 1))
done
Expand Down
9 changes: 9 additions & 0 deletions package/boot/uboot-envtools/files/mediatek_filogic
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ zbtlink,zbt-z8102ax|\
zbtlink,zbt-z8103ax)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
dlink,aquila-pro-ai-m30-a1)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
;;
h3c,magic-nx30-pro|\
jcg,q30-pro|\
netcore,n60|\
qihoo,360t7|\
tplink,tl-xdr4288|\
tplink,tl-xdr6086|\
Expand All @@ -89,6 +93,11 @@ glinet,gl-mt6000)
local envdev=$(find_mmc_part "u-boot-env")
ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
;;
jdcloud,re-cp-03)
local envdev=$(find_mmc_part "ubootenv" "mmcblk0")
ubootenv_add_uci_config "$envdev" "0x0" "0x40000" "0x40000" "1"
ubootenv_add_uci_config "$envdev" "0x40000" "0x40000" "0x40000" "1"
;;
mercusys,mr90x-v1|\
routerich,ax3000)
local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
Expand Down
4 changes: 3 additions & 1 deletion package/boot/uboot-envtools/files/ramips
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ allnet,all5002|\
yuncore,ax820)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
;;
arcadyan,we420223-99)
arcadyan,we420223-99|\
dlink,dir-806a-b1)
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x1000" "0x1000"
;;
ampedwireless,ally-00x19k|\
Expand Down Expand Up @@ -74,6 +75,7 @@ h3c,tx1801-plus|\
h3c,tx1806|\
jcg,q20|\
linksys,e7350|\
netgear,eax12|\
netgear,wax202|\
zyxel,wsm20)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
Expand Down
26 changes: 26 additions & 0 deletions package/boot/uboot-mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,30 @@ define U-Boot/mt7986_glinet_gl-mt6000
DEPENDS:=+trusted-firmware-a-mt7986-emmc-ddr4
endef

define U-Boot/mt7986_jdcloud_re-cp-03
NAME:=JDCloud RE-CP-03
BUILD_SUBTARGET:=filogic
BUILD_DEVICES:=jdcloud_re-cp-03
UBOOT_CONFIG:=mt7986a_jdcloud_re-cp-03
UBOOT_IMAGE:=u-boot.fip
BL2_BOOTDEV:=emmc
BL2_SOC:=mt7986
BL2_DDRTYPE:=ddr4
DEPENDS:=+trusted-firmware-a-mt7986-emmc-ddr4
endef

define U-Boot/mt7986_netcore_n60
NAME:=Netcore N60
BUILD_SUBTARGET:=filogic
BUILD_DEVICES:=netcore_n60
UBOOT_CONFIG:=mt7986_netcore_n60
UBOOT_IMAGE:=u-boot.fip
BL2_BOOTDEV:=spim-nand
BL2_SOC:=mt7986
BL2_DDRTYPE:=ddr3
DEPENDS:=+trusted-firmware-a-mt7986-spim-nand-ddr3
endef

define U-Boot/mt7986_tplink_tl-xdr4288
NAME:=TP-LINK TL-XDR4288
BUILD_SUBTARGET:=filogic
Expand Down Expand Up @@ -573,6 +597,8 @@ UBOOT_TARGETS := \
mt7986_bananapi_bpi-r3-snand \
mt7986_bananapi_bpi-r3-nor \
mt7986_glinet_gl-mt6000 \
mt7986_jdcloud_re-cp-03 \
mt7986_netcore_n60 \
mt7986_tplink_tl-xdr4288 \
mt7986_tplink_tl-xdr6086 \
mt7986_tplink_tl-xdr6088 \
Expand Down
Loading
Loading