Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Jan 11, 2025
1 parent 15d7aba commit d2aa9e8
Show file tree
Hide file tree
Showing 11 changed files with 167 additions and 28 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/Openwrt-AutoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
fi
- name: Free disk space
uses: jlumbroso/free-disk-space@main
uses: coder-xiaomo/free-disk-space@main
with:
tool-cache: false
android: true
Expand All @@ -129,10 +129,9 @@ jobs:
python3-setuptools rsync swig unzip zlib1g-dev file wget \
llvm python3-pyelftools libpython3-dev aria2 jq qemu-utils ccache rename \
libelf-dev device-tree-compiler libgmp3-dev libmpc-dev libfuse-dev
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo -E apt-get -qq autoremove --purge
sudo -E apt-get -qq clean
sudo timedatectl set-timezone "$TZ"
sudo timedatectl set-timezone "Asia/Shanghai"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand All @@ -152,8 +151,8 @@ jobs:
-X POST -d '{ "query": "query {repository(owner: \"openwrt\", name: \"openwrt\") {refs(refPrefix: \"refs/tags/\", first: 4, orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {nodes {name target { ... on Tag {tagger {date}}}}}}}"}' https://api.github.com/graphql)"
TAG_DATE="$( echo ${TAG_INFO} | jq -r '.data.repository.refs.nodes[] | select(.name | startswith("v24")) | .target.tagger.date' | head -n 1)"
if [[ $(( ($(date +%s) - $(date -d "$TAG_DATE" +%s)) / 86400 )) -lt 30 ]]; then
#REPO_BRANCH="$( echo ${TAG_INFO} | jq -r '.data.repository.refs.nodes[].name' | grep v24 | head -n 1)"
REPO_BRANCH="openwrt-24.10"
REPO_BRANCH="$( echo ${TAG_INFO} | jq -r '.data.repository.refs.nodes[].name' | grep v24 | head -n 1)"
#REPO_BRANCH="openwrt-24.10"
else
REPO_BRANCH="openwrt-24.10"
fi
Expand Down Expand Up @@ -252,7 +251,7 @@ jobs:
make defconfig
if [[ ! "${{matrix.target}}" =~ (amlogic_*|armsr_armv8|bcm27xx_*|rockchip_armv8|sunxi_*|x86_*) ]]; then
sed -n '/# Wireless Drivers/,/# end of Wireless Drivers/p' .config | sed -e 's/=m/=n/' >>.config
sed -i "s/\(kmod-qca.*\)=m/\1=n/" .config
#sed -i "s/\(kmod-qca.*\)=m/\1=n/" .config
if [[ "${{matrix.target}}" == "rockchip_rk35xx" ]]; then
sed -n '/# Video Support/,/# end of Video Support/p' .config | sed -e 's/=m/=n/' >>.config
fi
Expand Down
12 changes: 12 additions & 0 deletions devices/common/patches/getcwd-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/include/host-build.mk
+++ b/include/host-build.mk
@@ -61,7 +61,8 @@ HOST_CONFIGURE_VARS = \
CPPFLAGS="$(HOST_CPPFLAGS)" \
CXXFLAGS="$(HOST_CXXFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
- CONFIG_SHELL="$(SHELL)"
+ CONFIG_SHELL="$(SHELL)" \
+ gl_cv_func_getcwd_path_max=yes

HOST_CONFIGURE_ARGS = \
--target=$(GNU_HOST_NAME) \
35 changes: 34 additions & 1 deletion devices/common/patches/syncdial.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,43 @@

--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -233,7 +233,15 @@ proto_pppoe_setup() {
@@ -74,7 +74,7 @@ ppp_generic_init_config() {
proto_config_add_string pppd_options
proto_config_add_string 'connect:file'
proto_config_add_string 'disconnect:file'
- [ -e /proc/sys/net/ipv6 ] && proto_config_add_string ipv6
+ proto_config_add_string ipv6
proto_config_add_boolean authfail
proto_config_add_int mtu
proto_config_add_string pppname
@@ -90,9 +90,7 @@ ppp_generic_setup() {
local config="$1"; shift
local localip

- json_get_vars ip6table demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff peerdns sourcefilter delegate
-
- [ ! -e /proc/sys/net/ipv6 ] && ipv6=0 || json_get_var ipv6 ipv6
+ json_get_vars ipv6 ip6table demand keepalive keepalive_adaptive username password pppd_options pppname unnumbered persist maxfail holdoff peerdns sourcefilter delegate

if [ "$ipv6" = 0 ]; then
ipv6=""
@@ -157,9 +155,9 @@ ppp_generic_setup() {
${connect:+connect "$connect"} \
${disconnect:+disconnect "$disconnect"} \
ip-up-script /lib/netifd/ppp-up \
- ${ipv6:+ipv6-up-script /lib/netifd/ppp6-up} \
+ ipv6-up-script /lib/netifd/ppp6-up \
ip-down-script /lib/netifd/ppp-down \
- ${ipv6:+ipv6-down-script /lib/netifd/ppp-down} \
+ ipv6-down-script /lib/netifd/ppp-down \
${mtu:+mtu $mtu mru $mtu} \
"$@" $pppd_options
}
@@ -237,7 +235,16 @@ proto_pppoe_setup() {
json_get_var padi_attempts padi_attempts
json_get_var padi_timeout padi_timeout

+#By 蝈蝈:并发拨号同步的前期准备
+ syncppp_option=""
+ [ "$(uci get syncdial.config.enabled)" -eq "1" ] && {
+ ppp_if_cnt=$(uci show network | grep -c "\.proto=\'pppoe\'$")
Expand Down
2 changes: 1 addition & 1 deletion devices/common/patches/wifi-scripts.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
+++ b/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
@@ -98,13 +98,13 @@ set ${s}.channel='${channel}'
@@ -98,7 +98,7 @@ set ${s}.channel='${channel}'
set ${s}.htmode='${htmode}'
set ${s}.country='${country || ''}'
set ${s}.num_global_macaddr='${num_global_macaddr || ''}'
Expand Down
12 changes: 6 additions & 6 deletions devices/mediatek_filogic/patches/tr3000-mod.patch
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@

--- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
+++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
@@ -73,7 +73,7 @@ case "$board" in
addr=$(mtd_get_mac_binary "Factory" 0x8000)
[ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
;;
@@ -77,7 +77,7 @@ case "$board" in
cudy,ap3000-v1|\
cudy,m3000-v1|\
cudy,re3000-v1|\
- cudy,tr3000-v1|\
+ cudy,tr3000*|\
cudy,re3000-v1)
cudy,wr3000s-v1|\
cudy,wr3000-v1)
addr=$(mtd_get_mac_binary bdinfo 0xde00)
[ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
29 changes: 29 additions & 0 deletions devices/qualcommax_ipq60xx/.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
CONFIG_TARGET_qualcommax=y
CONFIG_TARGET_qualcommax_ipq60xx=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
CONFIG_TARGET_ALL_PROFILES=y
CONFIG_TARGET_DEVICE_qualcommax_ipq60xx_DEVICE_8devices_mango-dvk=n
CONFIG_NSS_FIRMWARE_VERSION_12_2=y
CONFIG_ATH11K_MEM_PROFILE_512M=y
CONFIG_IPQ_MEM_PROFILE_512=y
CONFIG_KERNEL_IPQ_MEM_PROFILE=512
CONFIG_NSS_DRV_IGS_ENABLE=y
CONFIG_NSS_DRV_L2TP_ENABLE=y
CONFIG_NSS_DRV_LAG_ENABLE=y
CONFIG_NSS_DRV_MAPT_ENABLE=y
CONFIG_NSS_DRV_PPTP_ENABLE=y
CONFIG_NSS_DRV_PVXLAN_ENABLE=y
CONFIG_NSS_DRV_SHAPER_ENABLE=y
CONFIG_NSS_DRV_VXLAN_ENABLE=y
CONFIG_PACKAGE_kmod-qca-mcs=y
CONFIG_PACKAGE_kmod-qca-nss-drv-igs=y
CONFIG_PACKAGE_kmod-qca-nss-drv-l2tpv2=y
CONFIG_PACKAGE_kmod-qca-nss-drv-lag-mgr=y
CONFIG_PACKAGE_kmod-qca-nss-drv-map-t=y
CONFIG_PACKAGE_kmod-qca-nss-drv-pppoe=y
CONFIG_PACKAGE_kmod-qca-nss-drv-pptp=y
CONFIG_PACKAGE_kmod-qca-nss-drv-qdisc=y
CONFIG_PACKAGE_kmod-qca-nss-macsec=y
CONFIG_PACKAGE_kmod-qca-nss-drv-tunipip6=n
CONFIG_PACKAGE_kmod-qca-nss-drv-mirror=n
CONFIG_PACKAGE_kmod-qca-nss-drv-eogremgr=n
CONFIG_PACKAGE_kmod-qca-nss-drv-gre=n
CONFIG_PACKAGE_kmod-qca-nss-drv-match=n

CONFIG_PACKAGE_perf=n

22 changes: 16 additions & 6 deletions devices/qualcommax_ipq60xx/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ shopt -s extglob

SHELL_FOLDER=$(dirname $(readlink -f "$0"))

rm -rf package/firmware package/boot/uboot-envtools package/kernel/mac80211 target/linux/qualcommax

git_clone_path openwrt-24.10 https://github.com/LiBwrt-op/openwrt-6.x package/firmware package/boot/uboot-envtools package/kernel/mac80211 target/linux/qualcommax
rm -rf devices/common/patches/{wifi-scripts.patch,curl.patch}

git clone https://github.com/qosmio/nss-packages package/feeds/nss-packages
git clone https://github.com/qosmio/sqm-scripts-nss package/feeds/sqm-scripts-nss
wget -N https://raw.githubusercontent.com/openwrt/openwrt/refs/heads/openwrt-24.10/target/imagebuilder/files/Makefile -P target/imagebuilder/files/
wget -N https://raw.githubusercontent.com/openwrt/openwrt/refs/heads/openwrt-24.10/package/base-files/files/sbin/sysupgrade -P package/base-files/files/sbin/
wget -N https://github.com/openwrt/openwrt/raw/refs/heads/openwrt-24.10/package/network/config/firewall/Makefile -P package/network/config/firewall/

rm -rf feeds/kiddin9/shortcut-fe
git clone https://github.com/LiBwrt/nss-packages nss-packages

rm -rf target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch target/linux/generic/hack-6.6/{952-add-net-conntrack-events-support-multiple-registrant.patch,953-net-patch-linux-kernel-to-support-shortcut-fe.patch}
mv -f nss-packages/* package/feeds/kiddin9/

rm -rf feeds/kiddin9/shortcut-fe feeds/kiddin9/fibocom_QMI_WWAN feeds/kiddin9/quectel_QMI_WWAN feeds/kiddin9/xtables-wgobfs feeds/kiddin9/fullconenat-nft/

rm -rf package/feeds/packages/ovpn-dco package/feeds/packages/xr_usb_serial_common package/feeds/packages/openvswitch package/feeds/packages/xtables-addons

rm -rf package/libs/libnftnl/patches/001-libnftnl-add-fullcone-expression-support.patch package/network/config/firewall4/patches/001-firewall4-Add-fullcone-support.patch

sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += kmod-qca-mcs kmod-qca-nss-drv-igs kmod-qca-nss-drv-l2tpv2 kmod-qca-nss-drv-lag-mgr kmod-qca-nss-drv-map-t kmod-qca-nss-drv-pppoe kmod-qca-nss-drv-pptp kmod-qca-nss-drv-qdisc kmod-qca-nss-macsec/' target/linux/qualcommax/Makefile

sed -i "s/LiBwrt/Kwrt/Ig" package/base-files/files/bin/config_generate package/base-files/image-config.in package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc config/Config-images.in Config.in include/u-boot.mk include/version.mk || true
4 changes: 4 additions & 0 deletions devices/qualcommax_ipq60xx/feeds.conf.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-24.10
src-git luci https://git.openwrt.org/project/luci.git;openwrt-24.10
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-24.10
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-24.10
11 changes: 11 additions & 0 deletions devices/qualcommax_ipq60xx/patches/default-packages.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/include/target.mk
+++ b/include/target.mk
@@ -52,8 +52,6 @@ DEFAULT_PACKAGES.nas:=\
DEFAULT_PACKAGES.router:=\
dnsmasq-full \
firewall4 \
- nftables \
- kmod-nft-offload \
odhcp6c \
odhcpd-ipv6only \
ppp \
47 changes: 39 additions & 8 deletions devices/qualcommax_ipq60xx/patches/fix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,47 @@
$(call AddDepends/crypto)
endef

--- a/package/feeds/nss-packages/qca-nss-ecm/Makefile
+++ b/package/feeds/nss-packages/qca-nss-ecm/Makefile
@@ -160,10 +160,6 @@ ifneq ($(CONFIG_PACKAGE_kmod-bonding),)
ECM_MAKE_OPTS+=ECM_INTERFACE_BOND_ENABLE=y
--- a/package/feeds/kiddin9/qca-nss-ecm/Makefile
+++ b/package/feeds/kiddin9/qca-nss-ecm/Makefile
@@ -119,10 +119,6 @@ ifneq ($(CONFIG_PACKAGE_kmod-nat46),)
ECM_MAKE_OPTS+=ECM_INTERFACE_MAP_T_ENABLE=y
endif

-ifneq ($(CONFIG_PACKAGE_kmod-qmi_wwan_q),)
-ECM_MAKE_OPTS+=ECM_INTERFACE_RAWIP_ENABLE=y
-ifneq ($(CONFIG_PACKAGE_kmod-ipsec),)
-ECM_MAKE_OPTS+=ECM_INTERFACE_IPSEC_ENABLE=y
-endif
-
ifneq ($(CONFIG_NSS_FIRMWARE_VERSION_12_5),)
EXTRA_CFLAGS+=-DNSS_FIRMWARE_VERSION_12_5
ifneq ($(CONFIG_PACKAGE_kmod-pppoe),)
ECM_MAKE_OPTS+=ECM_INTERFACE_PPPOE_ENABLE=y \
ECM_INTERFACE_PPTP_ENABLE=y \

--- a/package/feeds/kiddin9/qca-nss-drv/Makefile
+++ b/package/feeds/kiddin9/qca-nss-drv/Makefile
@@ -186,10 +186,8 @@ ifndef CONFIG_NSS_DRV_IGS_ENABLE
endif

ifndef CONFIG_NSS_DRV_IPSEC_ENABLE
-ifndef CONFIG_PACKAGE_kmod-ipsec
DRV_MAKE_OPTS += NSS_DRV_IPSEC_ENABLE=n
endif
-endif

ifndef CONFIG_NSS_DRV_IPV4_REASM_ENABLE
DRV_MAKE_OPTS += NSS_DRV_IPV4_REASM_ENABLE=n

new file mode 100644
index 0000000000..2456fad245
--- /dev/null
+++ b/target/linux/qualcommax/patches-6.12/9999-fix-net_dev_struct_check.patch
@@ -0,0 +1,11 @@
+--- a/net/core/dev.c
++++ b/net/core/dev.c
+@@ -12105,7 +12105,7 @@ static void __init net_dev_struct_check(void)
+ #ifdef CONFIG_NET_XGRESS
+ CACHELINE_ASSERT_GROUP_MEMBER(struct net_device, net_device_read_tx, tcx_egress);
+ #endif
+- CACHELINE_ASSERT_GROUP_SIZE(struct net_device, net_device_read_tx, 160);
++ CACHELINE_ASSERT_GROUP_SIZE(struct net_device, net_device_read_tx, 256);
+
+ /* TXRX read-mostly hotpath */
+ CACHELINE_ASSERT_GROUP_MEMBER(struct net_device, net_device_read_txrx, lstats);
10 changes: 10 additions & 0 deletions devices/qualcommax_ipq60xx/settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
REPO_URL="https://github.com/LiBwrt-op/openwrt-6.x"
REPO_BRANCH="kernel-6.12"
CONFIG_FILE=".config"
DIY_SH="diy.sh"
FREE_UP_DISK="false"
UPLOAD_BIN_DIR_FOR_ARTIFACT="false"
UPLOAD_FIRMWARE_FOR_ARTIFACT="true"
UPLOAD_FIRMWARE_FOR_RELEASE="false"
UPLOAD_FIRMWARE_TO_COWTRANSFER="false"
UPLOAD_FIRMWARE_TO_WETRANSFER="true"

0 comments on commit d2aa9e8

Please sign in to comment.