├── devices
├── qualcommax_ipq60xx
│ ├── README.md
│ ├── .config
│ ├── diy
│ │ └── package
│ │ │ └── firmware
│ │ │ └── ipq-wifi
│ │ │ └── src
│ │ │ └── board-jdc_ax1800-pro.ipq6018
│ ├── patches
│ │ └── 01-zn-m2.patch
│ └── diy.sh
├── mediatek_mt7981
│ ├── README.md
│ ├── settings.ini
│ ├── feeds.conf
│ ├── patches
│ │ ├── kernel-defaults.patch
│ │ ├── base-files.patch
│ │ ├── iptables-mod-socket.patch
│ │ ├── targets.patch
│ │ └── fix.patch
│ ├── diy.sh
│ └── .config
├── rockchip_armv8
│ ├── README.md
│ ├── diy
│ │ ├── package
│ │ │ └── boot
│ │ │ │ ├── uboot-envtools
│ │ │ │ └── files
│ │ │ │ │ └── rockchip
│ │ │ │ └── uboot-rockchip
│ │ │ │ └── patches
│ │ │ │ ├── 306-rockchip-rk3399-Add-support-for-Rongpin-king3399.patch
│ │ │ │ ├── 316-rockchip-rk3566-Add-support-for-panther-x2.patch
│ │ │ │ ├── 317-rockchip-rk3566-Add-support-for-seewo-sv21-3568.patch
│ │ │ │ └── 316-rockchip-rk3568-Add-support-for-lyt_t68m.patch
│ │ └── target
│ │ │ └── linux
│ │ │ └── rockchip
│ │ │ └── files
│ │ │ └── arch
│ │ │ └── arm64
│ │ │ └── boot
│ │ │ └── dts
│ │ │ └── rockchip
│ │ │ ├── rk3568-xgp-v3.dts
│ │ │ └── rk3568-mrkaio-m68s-plus.dts
│ ├── .config
│ ├── patches
│ │ ├── add_extra_CPU_FLAGS.patch
│ │ ├── 55-xgp.patch
│ │ ├── 44-m68s-plus.patch
│ │ ├── pico3399.patch.b
│ │ ├── 01-hinlink.patch
│ │ └── 22-H3399PC.patch
│ └── diy.sh
├── mvebu_cortexa9
│ ├── diy.sh
│ └── .config
├── ath79_nand
│ ├── diy.sh
│ └── .config
├── ipq50xx_arm
│ ├── settings.ini
│ ├── .config
│ └── diy.sh
├── ipq806x_generic
│ ├── diy.sh
│ └── .config
├── armsr_armv8
│ ├── diy.sh
│ ├── patches
│ │ ├── enable_wifi.patch
│ │ └── rootfs.patch
│ └── .config
├── ramips_mt7620
│ ├── diy.sh
│ ├── patches
│ │ └── tblsection.patch
│ └── .config
├── bcm27xx_bcm2709
│ ├── .config
│ └── diy.sh
├── bcm27xx_bcm2710
│ ├── .config
│ ├── patches
│ │ └── Zero-2.patch
│ └── diy.sh
├── meson_meson8b
│ ├── .config
│ ├── diy.sh
│ └── patches
│ │ └── onecloud.patch
├── bcm27xx_bcm2711
│ ├── .config
│ └── diy.sh
├── bcm27xx_bcm2712
│ ├── .config
│ └── diy.sh
├── common
│ ├── info.mk
│ ├── patches
│ │ ├── package.patch
│ │ ├── rootfs.patch
│ │ ├── download.patch.b
│ │ ├── seccomp.patch
│ │ ├── usb-audio.patch
│ │ ├── feeds.patch
│ │ ├── disable_flock.patch
│ │ ├── kernel-defaults.patch
│ │ ├── use_json_object_new_int64.patch.b
│ │ ├── kernel6.1.patch.b
│ │ ├── targets.patch
│ │ ├── LINUX_VERSION.patch
│ │ ├── kernel_version.patch
│ │ ├── iptables.patch
│ │ ├── luci_mk.patch
│ │ ├── nginx-fancyindex.patch.bak
│ │ ├── rootfstargz.patch
│ │ ├── rootfstargz.patch.b
│ │ ├── china_mirrors.patch.b
│ │ ├── compressed-memory.patch.b
│ │ ├── imagebuilder.patch
│ │ └── netfilter.patch.b
│ ├── settings.ini
│ ├── diy
│ │ └── package
│ │ │ └── network
│ │ │ └── utils
│ │ │ └── iptables
│ │ │ └── patches
│ │ │ └── 900-bcm-fullconenat.patch
│ ├── kernel_6.1.sh
│ ├── .config
│ └── diy.sh
├── bcm27xx_bcm2708
│ ├── .config
│ └── diy.sh
├── sunxi_cortexa53
│ ├── diy.sh
│ └── .config
├── sunxi_cortexa7
│ ├── diy.sh
│ └── .config
├── mediatek_mt7622
│ ├── diy.sh
│ └── .config
├── ramips_mt7621
│ ├── diy.sh
│ ├── patches
│ │ ├── tblsection.patch
│ │ ├── 03-4a-breed-fix.patch
│ │ ├── jcg_q20-pb-boot.patch
│ │ ├── k2p_32m.patch
│ │ ├── luban.patch
│ │ ├── ht-jsh_0211.patch
│ │ └── 01-small_flash.patch
│ └── .config
├── ramips_mt76x8
│ ├── patches
│ │ ├── small_flash.patch
│ │ └── tblsection.patch
│ ├── .config
│ └── diy.sh
├── bcm53xx
│ ├── .config
│ └── diy.sh
├── ipq40xx_generic
│ ├── diy.sh
│ ├── patches
│ │ ├── target.patch
│ │ └── cm520.patch
│ └── .config
├── mediatek_filogic
│ ├── diy
│ │ └── target
│ │ │ └── linux
│ │ │ └── mediatek
│ │ │ └── dts
│ │ │ ├── mt7981b-xiaomi-mi-router-wr30u.dts
│ │ │ ├── mt7981b-cmcc-rax3000m-emmc.dts
│ │ │ └── mt7981b-cmcc-rax3000m-nand.dts
│ ├── patches
│ │ ├── 19-ct3003.patch
│ │ ├── 18-wr30u.patch
│ │ ├── 03-nx30.patch
│ │ ├── 10-re-cp-03.patch
│ │ ├── 09-jcg_q30-pro.patch
│ │ ├── 01-360t7.patch
│ │ ├── 02-ax6000.patch
│ │ └── 08-cmcc_rax3000m.patch
│ ├── diy.sh
│ └── .config
├── x86_generic
│ ├── .config
│ ├── patches
│ │ ├── def_set_interfaces_lan_wan.patch
│ │ ├── image-commands.patch
│ │ └── image.patch
│ └── diy.sh
├── qualcommax_ipq807x
│ ├── .config
│ ├── diy.sh
│ ├── diy
│ │ └── target
│ │ │ └── linux
│ │ │ └── qualcommax
│ │ │ └── files
│ │ │ └── arch
│ │ │ └── arm64
│ │ │ └── boot
│ │ │ └── dts
│ │ │ └── qcom
│ │ │ ├── ipq8071-ax6.dts
│ │ │ └── ipq8071-ax3600.dts
│ └── patches
│ │ └── 04-stock.patch
└── x86_64
│ ├── patches
│ ├── def_set_interfaces_lan_wan.patch
│ ├── image-commands.patch
│ └── image.patch
│ ├── .config
│ └── diy.sh
└── LICENSE
/devices/qualcommax_ipq60xx/README.md:
--------------------------------------------------------------------------------
1 | 源码来源 https://github.com/coolsnowwolf/lede 感谢
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/README.md:
--------------------------------------------------------------------------------
1 | 源码来源 https://github.com/hanwckf/immortalwrt-mt798x 感谢
--------------------------------------------------------------------------------
/devices/rockchip_armv8/README.md:
--------------------------------------------------------------------------------
1 | Kernel等部分源码来源 https://github.com/immortalwrt/immortalwrt 感谢
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/settings.ini:
--------------------------------------------------------------------------------
1 | REPO_URL="https://github.com/hanwckf/immortalwrt-mt798x"
2 | REPO_BRANCH="openwrt-21.02"
3 |
--------------------------------------------------------------------------------
/devices/mvebu_cortexa9/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 |
8 |
--------------------------------------------------------------------------------
/devices/ath79_nand/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/devices/ipq50xx_arm/settings.ini:
--------------------------------------------------------------------------------
1 | REPO_URL="https://github.com/hzyitc/openwrt-redmi-ax3000"
2 | REPO_BRANCH="ipq50xx-mainline-kernel-5.15-openwrt-23.05"
3 |
--------------------------------------------------------------------------------
/devices/ipq806x_generic/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/devices/armsr_armv8/diy.sh:
--------------------------------------------------------------------------------
1 |
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | rm -rf package/feeds/kiddin9/rtl8188eu package/feeds/kiddin9/rtl8192eu package/feeds/kiddin9/rtl8812au-ac
6 |
7 |
8 |
--------------------------------------------------------------------------------
/devices/ipq50xx_arm/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ipq50xx=y
3 | CONFIG_TARGET_ipq50xx_arm=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_ALL_PROFILES=y
6 |
7 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
8 |
9 |
--------------------------------------------------------------------------------
/devices/qualcommax_ipq60xx/.config:
--------------------------------------------------------------------------------
1 | CONFIG_TARGET_qualcommax=y
2 | CONFIG_TARGET_qualcommax_ipq60xx=y
3 | CONFIG_TARGET_MULTI_PROFILE=y
4 | CONFIG_TARGET_ALL_PROFILES=y
5 |
6 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
--------------------------------------------------------------------------------
/devices/qualcommax_ipq60xx/diy/package/firmware/ipq-wifi/src/board-jdc_ax1800-pro.ipq6018:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LunaticTian/OpenWrt_x86-r2s-r4s-r5s-N1/master/devices/qualcommax_ipq60xx/diy/package/firmware/ipq-wifi/src/board-jdc_ax1800-pro.ipq6018
--------------------------------------------------------------------------------
/devices/ramips_mt7620/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/2e6d19ee32399e37c7545aefc57d41541a406d55.patch | patch -d './' -p1 --forward" || true
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2709/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm27xx=y
3 | CONFIG_TARGET_bcm27xx_bcm2709=y
4 | CONFIG_TARGET_bcm27xx_bcm2709_DEVICE_rpi-2=y
5 |
6 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
7 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2710/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm27xx=y
3 | CONFIG_TARGET_bcm27xx_bcm2710=y
4 | CONFIG_TARGET_bcm27xx_bcm2710_DEVICE_rpi-3=y
5 |
6 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
7 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/devices/meson_meson8b/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_meson=y
3 | CONFIG_TARGET_meson_meson8b=y
4 | CONFIG_TARGET_meson_meson8b_DEVICE_thunder-onecloud=y
5 |
6 | CONFIG_TARGET_ROOTFS_SQUASHFS=n
7 | CONFIG_TARGET_ROOTFS_EXT4FS=y
8 |
9 | CONFIG_PACKAGE_perf=n
10 |
--------------------------------------------------------------------------------
/devices/meson_meson8b/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
8 |
9 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/meson
10 |
11 |
12 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2711/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm27xx=y
3 | CONFIG_TARGET_bcm27xx_bcm2711=y
4 | CONFIG_TARGET_bcm27xx_bcm2711_DEVICE_rpi-4=y
5 |
6 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
7 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
8 |
9 | CONFIG_PACKAGE_kmod-of-mdio=n
10 |
11 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2712/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm27xx=y
3 | CONFIG_TARGET_bcm27xx_bcm2712=y
4 | CONFIG_TARGET_bcm27xx_bcm2712_DEVICE_rpi-5=y
5 |
6 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
7 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
8 |
9 | CONFIG_PACKAGE_kmod-of-mdio=n
10 |
11 |
--------------------------------------------------------------------------------
/devices/ipq50xx_arm/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | sed -i "s/PKG_SOURCE_DATE:=.*/PKG_SOURCE_DATE:=2099-12-06/" package/network/config/netifd/Makefile
8 |
9 | rm -rf package/kernel/mt76 devices/common/patches/mt7922.patch
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2712/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
8 |
--------------------------------------------------------------------------------
/devices/common/info.mk:
--------------------------------------------------------------------------------
1 | # SPDX-License-Identifier: GPL-2.0-only
2 | #
3 | # Copyright (C) 2007 OpenWrt.org
4 |
5 | TOPDIR:=${CURDIR}
6 | export OPENWRT_VERBOSE=s
7 |
8 | include rules.mk
9 | include $(INCLUDE_DIR)/target.mk
10 |
11 | kernel_version: FORCE
12 | @echo "$(LINUX_VERSION)"
13 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2708/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm27xx=y
3 | CONFIG_TARGET_bcm27xx_bcm2708=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_bcm27xx_bcm2708_DEVICE_rpi=y
6 |
7 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
8 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2711/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
8 |
9 |
10 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2708/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/feeds.conf:
--------------------------------------------------------------------------------
1 | src-git-full packages https://github.com/immortalwrt/packages.git;openwrt-21.02
2 | src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
3 | src-git-full routing https://github.com/openwrt/routing.git;openwrt-21.02
4 | src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master
5 |
--------------------------------------------------------------------------------
/devices/common/patches/package.patch:
--------------------------------------------------------------------------------
1 | --- a/include/package.mk
2 | +++ b/include/package.mk
3 | @@ -354,3 +354,11 @@ dist:
4 |
5 | distcheck:
6 | $(Build/DistCheck)
7 | +
8 | +ifndef Package/$(PKG_NAME)/conffiles
9 | +define Package/$(PKG_NAME)/conffiles
10 | +/etc/config/
11 | +/etc/$(PKG_NAME)/
12 | +endef
13 | +endif
14 | +
15 |
--------------------------------------------------------------------------------
/devices/armsr_armv8/patches/enable_wifi.patch:
--------------------------------------------------------------------------------
1 | --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
2 | +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
3 | @@ -213,5 +213,6 @@ detect_mac80211() {
4 | set wireless.default_${name}.encryption=none
5 | EOF
6 | uci -q commit wireless
7 | + wifi reload
8 | done
9 | }
10 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/patches/kernel-defaults.patch:
--------------------------------------------------------------------------------
1 | --- a/include/kernel-defaults.mk
2 | +++ b/include/kernel-defaults.mk
3 | @@ -115,6 +115,7 @@ endef
4 |
5 | define Kernel/CompileModules/Default
6 | rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map
7 | + +$(KERNEL_MAKE) olddefconfig
8 | +$(KERNEL_MAKE) modules
9 | endef
10 |
11 |
--------------------------------------------------------------------------------
/devices/common/patches/rootfs.patch:
--------------------------------------------------------------------------------
1 | --- a/include/rootfs.mk
2 | +++ b/include/rootfs.mk
3 | @@ -73,7 +73,6 @@ define prepare_rootfs
4 | ret=$$?; \
5 | if [ $$ret -ne 0 ]; then \
6 | echo "postinst script $$script has failed with exit code $$ret" >&2; \
7 | - exit 1; \
8 | fi; \
9 | done; \
10 | for script in ./etc/init.d/*; do \
11 |
--------------------------------------------------------------------------------
/devices/sunxi_cortexa53/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
8 |
9 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152 kmod-rtl8189es/' target/linux/sunxi/Makefile
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/devices/sunxi_cortexa7/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
8 |
9 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152 kmod-rtl8189es/' target/linux/sunxi/Makefile
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/devices/common/settings.ini:
--------------------------------------------------------------------------------
1 | REPO_URL="https://github.com/openwrt/openwrt"
2 | REPO_BRANCH=""
3 | CONFIG_FILE=".config"
4 | DIY_SH="diy.sh"
5 | FREE_UP_DISK="false"
6 | UPLOAD_BIN_DIR_FOR_ARTIFACT="false"
7 | UPLOAD_FIRMWARE_FOR_ARTIFACT="true"
8 | UPLOAD_FIRMWARE_FOR_RELEASE="false"
9 | UPLOAD_FIRMWARE_TO_COWTRANSFER="false"
10 | UPLOAD_FIRMWARE_TO_WETRANSFER="true"
11 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2709/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
3 |
4 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
5 |
6 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
7 |
8 | sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7622/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 |
8 | #curl -sfL https://raw.githubusercontent.com/x-wrt/x-wrt/master/target/linux/mediatek/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch -o target/linux/mediatek/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch
9 |
10 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 |
8 | sed -i "s/DEVICE_MODEL := HC5962$/DEVICE_MODEL := HC5962 \/ B70/" target/linux/ramips/image/mt7621.mk
9 |
10 | sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/2e6d19ee32399e37c7545aefc57d41541a406d55.patch | patch -d './' -p1 --forward" || true
11 |
--------------------------------------------------------------------------------
/devices/common/patches/download.patch.b:
--------------------------------------------------------------------------------
1 | --- a/scripts/download.pl
2 | +++ b/scripts/download.pl
3 | @@ -82,11 +82,11 @@ ($)
4 | }
5 |
6 | return $have_curl
7 | - ? (qw(curl -f --connect-timeout 20 --retry 5 --location),
8 | + ? (qw(curl -f --connect-timeout 5 --retry 3 -m 30 --location),
9 | $check_certificate ? () : '--insecure',
10 | shellwords($ENV{CURL_OPTIONS} || ''),
11 | $url)
--------------------------------------------------------------------------------
/devices/qualcommax_ipq60xx/patches/01-zn-m2.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/qualcommax/image/ipq60xx.mk
2 | +++ b/target/linux/qualcommax/image/ipq60xx.mk
3 | @@ -28,6 +28,8 @@ define Device/cmiot_ax18
4 | $(call Device/UbiFit)
5 | DEVICE_VENDOR := CMIOT
6 | DEVICE_MODEL := AX18
7 | + DEVICE_ALT0_VENDOR := ZN
8 | + DEVICE_ALT0_MODEL := M2
9 | BLOCKSIZE := 128k
10 | PAGESIZE := 2048
11 | DEVICE_DTS_CONFIG := config@cp03-c1
--------------------------------------------------------------------------------
/devices/common/patches/seccomp.patch:
--------------------------------------------------------------------------------
1 | --- a/package/system/procd/files/procd.sh
2 | +++ b/package/system/procd/files/procd.sh
3 | @@ -260,7 +260,7 @@ _procd_set_param() {
4 | reload_signal)
5 | json_add_int "$type" $(kill -l "$1")
6 | ;;
7 | - pidfile|user|group|seccomp|capabilities|facility|\
8 | + pidfile|user|group|capabilities|facility|\
9 | extroot|overlaydir|tmpoverlaysize)
10 | json_add_string "$type" "$1"
11 | ;;
12 |
--------------------------------------------------------------------------------
/devices/armsr_armv8/.config:
--------------------------------------------------------------------------------
1 | CONFIG_TARGET_armsr=y
2 | CONFIG_TARGET_armsr_armv8=y
3 | CONFIG_TARGET_armsr_armv8_DEVICE_generic=y
4 | CONFIG_PACKAGE_kmod-brcmfmac=y
5 | CONFIG_BRCMFMAC_SDIO=y
6 | CONFIG_TARGET_ROOTFS_TARGZ=y
7 |
8 | CONFIG_TARGET_ROOTFS_EXT4FS=y
9 | CONFIG_TARGET_ROOTFS_SQUASHFS=n
10 |
11 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
12 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
13 |
14 | CONFIG_PACKAGE_kmod-switch-ar8xxx=n
15 |
16 |
17 |
--------------------------------------------------------------------------------
/devices/common/patches/usb-audio.patch:
--------------------------------------------------------------------------------
1 | --- a/package/kernel/linux/modules/usb.mk
2 | +++ b/package/kernel/linux/modules/usb.mk
3 | @@ -576,6 +576,7 @@ define KernelPackage/usb-audio
4 | CONFIG_SND_USB_AUDIO
5 | $(call AddDepends/usb)
6 | $(call AddDepends/sound)
7 | + DEPENDS += +LINUX_6_1:kmod-media-core +LINUX_6_6:kmod-media-core
8 | FILES:= \
9 | $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
10 | $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2710/patches/Zero-2.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/bcm27xx/image/Makefile
2 | +++ b/target/linux/bcm27xx/image/Makefile
3 | @@ -122,7 +122,7 @@ define Device/rpi-3
4 | DEVICE_MODEL := 3B/3B+/CM3
5 | DEVICE_VARIANT := (64bit)
6 | DEVICE_ALT0_VENDOR := Raspberry Pi
7 | - DEVICE_ALT0_MODEL := 2B-1.2
8 | + DEVICE_ALT0_MODEL := 2B-1.2/Zero 2/Zero 2W
9 | DEVICE_ALT0_VARIANT := (64bit)
10 | KERNEL_IMG := kernel8.img
11 | DEVICE_DTS := \
--------------------------------------------------------------------------------
/devices/ramips_mt76x8/patches/small_flash.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/ramips/Makefile
2 | +++ b/target/linux/ramips/Makefile
3 | @@ -17,6 +17,6 @@ define Target/Description
4 | endef
5 |
6 | include $(INCLUDE_DIR)/target.mk
7 | -DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug
8 | +DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
9 |
10 | $(eval $(call BuildTarget))
--------------------------------------------------------------------------------
/devices/bcm53xx/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_bcm53xx=y
3 | CONFIG_TARGET_bcm53xx_generic=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_bcm53xx_generic_DEVICE_phicomm_k3=y
6 | CONFIG_TARGET_DEVICE_bcm53xx_generic_DEVICE_asus_rt-ac88u=y
7 | CONFIG_TARGET_DEVICE_bcm53xx_generic_DEVICE_dlink_dir-885l=y
8 |
9 | CONFIG_PACKAGE_perf=n
10 |
11 | CONFIG_KERNEL_DEVMEM=y
12 | CONFIG_BUSYBOX_CONFIG_ARPING=y
13 |
14 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/devices/common/patches/feeds.patch:
--------------------------------------------------------------------------------
1 | --- a/include/feeds.mk
2 | +++ b/include/feeds.mk
3 | @@ -6,7 +6,7 @@
4 | -include $(TMP_DIR)/.packageauxvars
5 |
6 | FEEDS_INSTALLED:=$(notdir $(wildcard $(TOPDIR)/package/feeds/*))
7 | -FEEDS_AVAILABLE:=$(sort $(FEEDS_INSTALLED) $(shell $(SCRIPT_DIR)/feeds list -n 2>/dev/null))
8 | +FEEDS_AVAILABLE:=$(shell $(SCRIPT_DIR)/feeds list -n 2>/dev/null)
9 |
10 | PACKAGE_SUBDIRS=$(PACKAGE_DIR)
11 | ifneq ($(CONFIG_PER_FEED_REPO),)
12 |
13 |
--------------------------------------------------------------------------------
/devices/ipq40xx_generic/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | #sh -c "curl -sfL https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/10778.patch | git apply -p1"
8 |
9 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/ipq40xx/patches-5.10/999-ipq40xx-unlock-cpu-frequency.patch -o target/linux/ipq40xx/patches-5.15/999-ipq40xx-unlock-cpu-frequency.patch
10 |
11 |
12 |
--------------------------------------------------------------------------------
/devices/common/patches/disable_flock.patch:
--------------------------------------------------------------------------------
1 | --- a/package/system/procd/files/procd.sh
2 | +++ b/package/system/procd/files/procd.sh
3 | @@ -50,11 +50,2 @@
4 | local service_name="$(basename ${basescript:-$initscript})"
5 | -
6 | - flock -n 1000 &> /dev/null
7 | - if [ "$?" != "0" ]; then
8 | - exec 1000>"$IPKG_INSTROOT/var/lock/procd_${service_name}.lock"
9 | - flock 1000
10 | - if [ "$?" != "0" ]; then
11 | - logger "warning: procd flock for $service_name failed"
12 | - fi
13 | - fi
14 | }
15 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/package/boot/uboot-envtools/files/rockchip:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2023 OpenWrt.org
3 | #
4 | [ -e /etc/config/ubootenv ] && exit 0
5 |
6 | touch /etc/config/ubootenv
7 |
8 | . /lib/uboot-envtools.sh
9 | . /lib/functions.sh
10 |
11 | board=$(board_name)
12 |
13 | case "$board" in
14 | lyt,t68m)
15 | ubootenv_add_uci_config "/dev/mmcblk0" "0x3f8000" "0x8000"
16 | ;;
17 | esac
18 |
19 | config_load ubootenv
20 | config_foreach ubootenv_add_app_config
21 |
22 | exit 0
23 |
--------------------------------------------------------------------------------
/devices/common/patches/kernel-defaults.patch:
--------------------------------------------------------------------------------
1 | --- a/include/kernel-defaults.mk
2 | +++ b/include/kernel-defaults.mk
3 | @@ -127,6 +127,7 @@ endef
4 |
5 | define Kernel/CompileModules/Default
6 | rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map
7 | + +$(KERNEL_MAKE) olddefconfig
8 | +$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules
9 | # If .config did not change, use the previous timestamp to avoid package rebuilds
10 | cmp -s $(LINUX_DIR)/.config $(LINUX_DIR)/.config.modules.save && \
11 |
--------------------------------------------------------------------------------
/devices/common/patches/use_json_object_new_int64.patch.b:
--------------------------------------------------------------------------------
1 | --- a/package/feeds/luci/luci-lib-jsonc/src/jsonc.c
2 | +++ b/package/feeds/luci/luci-lib-jsonc/src/jsonc.c
3 | @@ -366,9 +366,7 @@
4 | case LUA_TNUMBER:
5 | nd = lua_tonumber(L, index);
6 | - ni = lua_tointeger(L, index);
7 | -
8 | - if (nd == ni)
9 | - return json_object_new_int(nd);
10 | -
11 | + if(nd >= INT64_MIN && nd <= INT64_MAX)
12 | + return json_object_new_int64(nd);
13 | + else
14 | return json_object_new_double(nd);
15 |
16 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7622/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_mediatek=y
3 | CONFIG_TARGET_mediatek_mt7622=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_mediatek_mt7622_DEVICE_xiaomi_redmi-router-ax6s=y
6 | CONFIG_TARGET_DEVICE_mediatek_mt7622_DEVICE_linksys_e8450=y
7 | CONFIG_TARGET_DEVICE_mediatek_mt7622_DEVICE_linksys_e8450-ubi=y
8 | CONFIG_TARGET_DEVICE_mediatek_mt7622_DEVICE_ruijie_rg-ew3200gx-pro=y
9 | CONFIG_TARGET_DEVICE_mediatek_mt7622_DEVICE_bananapi_bpi-r64=y
10 |
11 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/diy/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 |
3 | /dts-v1/;
4 | #include "mt7981b-xiaomi-mi-router-wr30u.dtsi"
5 |
6 | / {
7 | model = "Xiaomi Mi Router WR30U";
8 | compatible = "xiaomi,mi-router-wr30u", "mediatek,mt7981";
9 | };
10 |
11 | &spi_nand {
12 | mediatek,nmbm;
13 | mediatek,bmt-max-ratio = <1>;
14 | mediatek,bmt-max-reserved-blocks = <64>;
15 | };
16 |
17 | &partitions {
18 | partition@600000 {
19 | label = "ubi";
20 | reg = <0x600000 0x7000000>;
21 | };
22 | };
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/19-ct3003.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
2 | +++ b/target/linux/mediatek/dts/mt7981b-cetron-ct3003.dts
3 | @@ -159,18 +159,9 @@
4 |
5 | partition@580000 {
6 | label = "ubi";
7 | - reg = <0x0580000 0x2000000>;
8 | + reg = <0x0580000 0x7000000>;
9 | };
10 |
11 | - partition@2580000 {
12 | - label = "ubi_backup";
13 | - reg = <0x2580000 0x2000000>;
14 | - };
15 | -
16 | - partition@4580000 {
17 | - label = "Config_backup";
18 | - reg = <0x4580000 0x0400000>;
19 | - };
20 | };
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/devices/ramips_mt7620/patches/tblsection.patch:
--------------------------------------------------------------------------------
1 | --- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
2 | +++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
3 | @@ -123,6 +123,7 @@
<%=self.title%>
4 |
5 | local isempty, section, i, k = true, nil, nil
6 | for i, k in ipairs(self:cfgsections()) do
7 | + if i <= 100 then
8 | isempty = false
9 | section = k
10 |
11 | @@ -165,6 +166,8 @@ <%=self.title%>
12 |
13 | <%- end -%>
14 |
15 | + <%- i=i+1 -%>
16 | + <%- end -%>
17 | <%- end -%>
18 |
19 | <%- if isempty then -%>
20 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/tblsection.patch:
--------------------------------------------------------------------------------
1 | --- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
2 | +++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
3 | @@ -123,6 +123,7 @@ <%=self.title%>
4 |
5 | local isempty, section, i, k = true, nil, nil
6 | for i, k in ipairs(self:cfgsections()) do
7 | + if i <= 100 then
8 | isempty = false
9 | section = k
10 |
11 | @@ -165,6 +166,8 @@ <%=self.title%>
12 |
13 | <%- end -%>
14 |
15 | + <%- i=i+1 -%>
16 | + <%- end -%>
17 | <%- end -%>
18 |
19 | <%- if isempty then -%>
20 |
--------------------------------------------------------------------------------
/devices/ramips_mt76x8/patches/tblsection.patch:
--------------------------------------------------------------------------------
1 | --- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
2 | +++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
3 | @@ -123,6 +123,7 @@ <%=self.title%>
4 |
5 | local isempty, section, i, k = true, nil, nil
6 | for i, k in ipairs(self:cfgsections()) do
7 | + if i <= 100 then
8 | isempty = false
9 | section = k
10 |
11 | @@ -165,6 +166,8 @@ <%=self.title%>
12 |
13 | <%- end -%>
14 |
15 | + <%- i=i+1 -%>
16 | + <%- end -%>
17 | <%- end -%>
18 |
19 | <%- if isempty then -%>
20 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
5 |
6 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
7 |
8 | sed -i "s/mi-router-wr30u-stock/mi-router-wr30u/" package/boot/uboot-envtools/files/mediatek_filogic
9 | sed -i "s/mi-router-wr30u-stock/mi-router-wr30u/" target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
10 | sed -i "s/mi-router-wr30u-stock/mi-router-wr30u/" target/linux/mediatek/filogic/base-files/etc/board.d/02_network
11 | sed -i "s/mi-router-wr30u-stock/mi-router-wr30u/" target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
12 |
13 |
--------------------------------------------------------------------------------
/devices/mvebu_cortexa9/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_mvebu=y
3 | CONFIG_TARGET_mvebu_cortexa9=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt1200ac=y
6 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt1900ac-v2=y
7 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt1900ac-v1=y
8 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt3200acm=y
9 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt1900acs=y
10 | CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys_wrt32x=y
11 |
12 | CONFIG_TARGET_ROOTFS_TARGZ=n
13 |
14 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/devices/qualcommax_ipq60xx/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
8 |
9 | rm -rf target/linux/qualcommax package/boot/uboot-envtools package/firmware/ipq-wifi
10 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/qualcommax
11 | git_clone_path master https://github.com/coolsnowwolf/lede package/boot/uboot-envtools
12 | git_clone_path master https://github.com/coolsnowwolf/lede package/firmware/ipq-wifi
13 |
14 | sed -i "s/wpad-openssl/wpad-basic-mbedtls/" target/linux/qualcommax/Makefile
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/devices/x86_generic/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_x86=y
3 | CONFIG_TARGET_x86_generic=y
4 | CONFIG_TARGET_ROOTFS_TARGZ=y
5 |
6 | # EFI支持:
7 | CONFIG_GRUB_IMAGES=y
8 | CONFIG_GRUB_EFI_IMAGES=y
9 | CONFIG_VMDK_IMAGES=n
10 |
11 | # daed
12 | CONFIG_DEVEL=y
13 | CONFIG_BPF_TOOLCHAIN_HOST=y
14 | # CONFIG_BPF_TOOLCHAIN_NONE is not set
15 | CONFIG_KERNEL_BPF_EVENTS=y
16 | CONFIG_KERNEL_CGROUP_BPF=y
17 | CONFIG_KERNEL_DEBUG_INFO=y
18 | CONFIG_KERNEL_DEBUG_INFO_BTF=y
19 | # CONFIG_KERNEL_DEBUG_INFO_REDUCED is not set
20 | CONFIG_KERNEL_XDP_SOCKETS=y
21 |
22 | # 其他需要安装的软件包:
23 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
24 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
25 |
26 | CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=n
27 |
28 |
--------------------------------------------------------------------------------
/devices/qualcommax_ipq807x/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_qualcommax=y
3 | CONFIG_TARGET_qualcommax_ipq807x=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_buffalo_wxr-5950ax12=y
6 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_cmcc_rm2-6=y
7 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_qnap_301w=y
8 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_redmi_ax6=y
9 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_xiaomi_ax3600=y
10 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_xiaomi_ax9000=y
11 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_zte_mf269=y
12 | CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_zyxel_nbg7815=y
13 |
14 | CONFIG_PACKAGE_luci-ssl=y uhttpd服务
15 |
16 |
--------------------------------------------------------------------------------
/devices/x86_64/patches/def_set_interfaces_lan_wan.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/x86/base-files/etc/board.d/02_network
2 | +++ b/target/linux/x86/base-files/etc/board.d/02_network
3 | @@ -22,6 +22,9 @@ traverse-technologies-geos)
4 | macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
5 | [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
6 | ;;
7 | +*)
8 | + [ "$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -cvE "(@|\.)")" -gt 2 ] && ucidef_set_interfaces_lan_wan "$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -vE "(@|\.|eth1)" | tr "\n" " " | sed "s/ $//")" "eth1"
9 | + ;;
10 | esac
11 | board_config_flush
12 |
13 |
--------------------------------------------------------------------------------
/devices/x86_64/patches/image-commands.patch:
--------------------------------------------------------------------------------
1 | --- a/include/image-commands.mk
2 | +++ b/include/image-commands.mk
3 | @@ -419,6 +419,17 @@ endef
4 |
5 | # Convert a raw image into a $1 type image.
6 | # E.g. | qemu-image vdi
7 | +define Build/qemu-exsi
8 | + if command -v qemu-img; then \
9 | + name="$(subst .vmdk.zip,,$@)"; \
10 | + qemu-img convert -f raw -O $1 $@ $$name.vmdk; \
11 | + rm -f $@; \
12 | + zip -jm $@ $$name*.vmdk; \
13 | + else \
14 | + echo "WARNING: Install qemu-img to create VDI/VMDK images" >&2; exit 1; \
15 | + fi
16 | +endef
17 | +
18 | define Build/qemu-image
19 | if command -v qemu-img; then \
20 | qemu-img convert -f raw -O $1 $@ $@.new; \
--------------------------------------------------------------------------------
/devices/x86_generic/patches/def_set_interfaces_lan_wan.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/x86/base-files/etc/board.d/02_network
2 | +++ b/target/linux/x86/base-files/etc/board.d/02_network
3 | @@ -22,6 +22,9 @@ traverse-technologies-geos)
4 | macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
5 | [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
6 | ;;
7 | +*)
8 | + [ "$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -cvE "(@|\.)")" -gt 2 ] && ucidef_set_interfaces_lan_wan "$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -vE "(@|\.|eth1)" | tr "\n" " " | sed "s/ $//")" "eth1"
9 | + ;;
10 | esac
11 | board_config_flush
12 |
13 |
--------------------------------------------------------------------------------
/devices/x86_generic/patches/image-commands.patch:
--------------------------------------------------------------------------------
1 | --- a/include/image-commands.mk
2 | +++ b/include/image-commands.mk
3 | @@ -419,6 +419,17 @@ endef
4 |
5 | # Convert a raw image into a $1 type image.
6 | # E.g. | qemu-image vdi
7 | +define Build/qemu-exsi
8 | + if command -v qemu-img; then \
9 | + name="$(subst .vmdk.zip,,$@)"; \
10 | + qemu-img convert -f raw -O $1 $@ $$name.vmdk; \
11 | + rm -f $@; \
12 | + zip -jm $@ $$name*.vmdk; \
13 | + else \
14 | + echo "WARNING: Install qemu-img to create VDI/VMDK images" >&2; exit 1; \
15 | + fi
16 | +endef
17 | +
18 | define Build/qemu-image
19 | if command -v qemu-img; then \
20 | qemu-img convert -f raw -O $1 $@ $@.new; \
--------------------------------------------------------------------------------
/devices/ipq40xx_generic/patches/target.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/ipq40xx/image/generic.mk
2 | +++ b/target/linux/ipq40xx/image/generic.mk
3 | @@ -694,7 +694,7 @@ TARGET_DEVICES += meraki_mr33
4 | define Device/mobipromo_cm520-79f
5 | $(call Device/FitzImage)
6 | $(call Device/UbiFit)
7 | - DEVICE_VENDOR := MobiPromo
8 | + DEVICE_VENDOR := MobiPromo星际宝盒
9 | DEVICE_MODEL := CM520-79F
10 | SOC := qcom-ipq4019
11 | BLOCKSIZE := 128k
12 | @@ -834,7 +834,7 @@ TARGET_DEVICES += openmesh_a62
13 | define Device/p2w_r619ac
14 | $(call Device/FitzImage)
15 | $(call Device/UbiFit)
16 | - DEVICE_VENDOR := P&W
17 | + DEVICE_VENDOR := P&W竞斗云
18 | DEVICE_MODEL := R619AC
19 | SOC := qcom-ipq4019
20 | DEVICE_DTS_CONFIG := config@10
--------------------------------------------------------------------------------
/devices/qualcommax_ipq807x/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | shopt -s extglob
3 |
4 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
5 |
6 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
7 |
8 | git_clone_path master https://github.com/openwrt/openwrt target/linux/qualcommax
9 |
10 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.6
11 |
12 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch
13 |
14 | rm -rf target/linux/generic/hack-6.6/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}
--------------------------------------------------------------------------------
/devices/x86_64/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_x86=y
3 | CONFIG_TARGET_x86_64=y
4 | CONFIG_TARGET_ROOTFS_TARGZ=y
5 |
6 | # EFI支持:
7 | CONFIG_GRUB_IMAGES=y
8 | CONFIG_GRUB_EFI_IMAGES=y
9 | CONFIG_VMDK_IMAGES=n
10 |
11 | # daed
12 | CONFIG_DEVEL=y
13 | CONFIG_BPF_TOOLCHAIN_HOST=y
14 | # CONFIG_BPF_TOOLCHAIN_NONE is not set
15 | CONFIG_KERNEL_BPF_EVENTS=y
16 | CONFIG_KERNEL_CGROUP_BPF=y
17 | CONFIG_KERNEL_DEBUG_INFO=y
18 | CONFIG_KERNEL_DEBUG_INFO_BTF=y
19 | # CONFIG_KERNEL_DEBUG_INFO_REDUCED is not set
20 | CONFIG_KERNEL_XDP_SOCKETS=y
21 |
22 | # 其他需要安装的软件包:
23 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
24 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
25 |
26 | CONFIG_PACKAGE_kmod-pcie_mhi=m
27 |
28 | CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=n
29 |
30 |
--------------------------------------------------------------------------------
/devices/common/patches/kernel6.1.patch.b:
--------------------------------------------------------------------------------
1 | --- a/package/kernel/qca-ssdk/Makefile
2 | +++ b/package/kernel/qca-ssdk/Makefile
3 | @@ -32,11 +32,17 @@ endef
4 |
5 | GCC_VERSION=$(shell echo "$(CONFIG_GCC_VERSION)" | sed 's/[^0-9.]*\([0-9.]*\).*/\1/')
6 |
7 | +ifdef CONFIG_TOOLCHAIN_BIN_PATH
8 | +TOOLCHAIN_BIN_PATH=$(CONFIG_TOOLCHAIN_BIN_PATH)
9 | +else
10 | +TOOLCHAIN_BIN_PATH=$(TOOLCHAIN_DIR)/bin
11 | +endif
12 | +
13 | LNX_CONFIG_OPTS = LNX_MAKEOPTS='$(KERNEL_MAKEOPTS)' PRJ_PATH=$(PKG_BUILD_DIR) MODULE_TYPE=KSLIB modules
14 |
15 | MAKE_FLAGS+= \
16 | TARGET_NAME=$(CONFIG_TARGET_NAME) \
17 | - TOOL_PATH=$(firstword $(TOOLCHAIN_BIN_DIRS)) \
18 | + TOOL_PATH=$(TOOLCHAIN_BIN_PATH) \
19 | SYS_PATH=$(LINUX_DIR) \
20 | TOOLPREFIX=$(TARGET_CROSS) \
21 | KVER=$(LINUX_VERSION) \
--------------------------------------------------------------------------------
/devices/rockchip_armv8/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_rockchip=y
3 | CONFIG_TARGET_rockchip_armv8=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_ALL_PROFILES=y
6 |
7 | CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_radxa_rock-pi-4a=n
8 | CONFIG_TARGET_DEVICE_rockchip_armv8_DEVICE_nlnet_xgp=n
9 |
10 | CONFIG_TARGET_KERNEL_PARTSIZE=32
11 |
12 | # daed
13 | CONFIG_DEVEL=y
14 | CONFIG_BPF_TOOLCHAIN_HOST=y
15 | # CONFIG_BPF_TOOLCHAIN_NONE is not set
16 | CONFIG_KERNEL_BPF_EVENTS=y
17 | CONFIG_KERNEL_CGROUP_BPF=y
18 | CONFIG_KERNEL_DEBUG_INFO=y
19 | CONFIG_KERNEL_DEBUG_INFO_BTF=y
20 | # CONFIG_KERNEL_DEBUG_INFO_REDUCED is not set
21 | CONFIG_KERNEL_XDP_SOCKETS=y
22 |
23 | CONFIG_PACKAGE_kmod-pcie_mhi=m
24 |
25 | CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
26 | CONFIG_PACKAGE_luci-ssl-nginx=y # nginx
27 |
28 |
--------------------------------------------------------------------------------
/devices/meson_meson8b/patches/onecloud.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/meson/image/Makefile
2 | +++ b/target/linux/meson/image/Makefile
3 | @@ -46,7 +46,8 @@ endef
4 |
5 | define Device/thunder-onecloud
6 | DEVICE_DTS := meson8b-onecloud
7 | - DEVICE_TITLE := Thunder OneCloud
8 | + DEVICE_TITLE := OneCloud 玩客云
9 | + DEVICE_PACKAGES += kmod-usb-net-rtl8152
10 | KERNEL_LOADADDR := 0x00208000
11 | IMAGE/emmc.img := boot-script onecloud | emmc-common $$(DEVICE_NAME)
12 | endef
13 | @@ -54,4 +55,10 @@ ifeq ($(SUBTARGET),meson8b)
14 | TARGET_DEVICES += thunder-onecloud
15 | endif
16 |
17 | +define Image/Build
18 | + export BIN_DIR=$(BIN_DIR); \
19 | + cd /data/packit/openwrt-onecloud || true; \
20 | + . ~/packit/packit_onecloud1.sh || true;
21 | +endef
22 | +
23 | $(eval $(call BuildImage))
24 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/patches/base-files.patch:
--------------------------------------------------------------------------------
1 | --- a/package/feeds/kiddin9/base-files/Makefile
2 | +++ b/package/feeds/kiddin9/base-files/Makefile
3 | @@ -205,6 +205,9 @@ define Package/base-files/install
4 |
5 | $(if $(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE), \
6 | rm -f $(1)/etc/banner.failsafe,)
7 | +
8 | + $(if $(CONFIG_PACKAGE_wifi-profile), \
9 | + rm -f $(1)/sbin/wifi)
10 | endef
11 |
12 | ifneq ($(DUMP),1)
13 |
14 | --- a/package/feeds/kiddin9/base-files/files/etc/hotplug.d/net/00-sysctl
15 | +++ b/package/feeds/kiddin9/base-files/files/etc/hotplug.d/net/00-sysctl
16 | @@ -6,4 +6,6 @@ if [ "$ACTION" = add ]; then
17 | sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" "$CONF" | \
18 | sysctl -e -p - | logger -t sysctl
19 | done
20 | +
21 | + [ -f /sbin/smp.sh ] && /sbin/smp.sh
22 | fi
23 |
--------------------------------------------------------------------------------
/devices/sunxi_cortexa53/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_sunxi=y
3 | CONFIG_TARGET_sunxi_cortexa53=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_friendlyarm_nanopi-neo-plus2=y
6 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_friendlyarm_nanopi-neo2=y
7 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_friendlyarm_nanopi-r1s-h5=y
8 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_xunlong_orangepi-one-plus=y
9 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_xunlong_orangepi-pc2=y
10 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_xunlong_orangepi-zero-plus=y
11 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_xunlong_orangepi-zero2=y
12 | CONFIG_TARGET_DEVICE_sunxi_cortexa53_DEVICE_xunlong_orangepi-zero3=y
13 |
14 | CONFIG_PACKAGE_kmod-rtl8189es=y
15 |
16 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/devices/bcm53xx/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | sh -c curl -sfL https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/11542.patch | git apply -p1
8 |
9 | sed -i "s/^TARGET_DEVICES /# TARGET_DEVICES /" target/linux/bcm53xx/image/Makefile
10 | sed -i "s/# TARGET_DEVICES += phicomm_k3/TARGET_DEVICES += phicomm_k3/" target/linux/bcm53xx/image/Makefile
11 | sed -i "s/# TARGET_DEVICES += asus_rt-ac88u/TARGET_DEVICES += asus_rt-ac88u/" target/linux/bcm53xx/image/Makefile
12 | sed -i "s/# TARGET_DEVICES += dlink_dir-885l/TARGET_DEVICES += dlink_dir-885l/" target/linux/bcm53xx/image/Makefile
13 | sed -i "s/DEVICE_PACKAGES := \$(BRCMFMAC_4366C0) \$(USB3_PACKAGES)/DEVICE_PACKAGES := \$(BRCMFMAC_4366C0) \$(USB3_PACKAGES) k3screenctrl/" target/linux/bcm53xx/image/Makefile
--------------------------------------------------------------------------------
/devices/ramips_mt76x8/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ramips=y
3 | CONFIG_TARGET_ramips_mt76x8=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_ROOTFS_INITRAMFS=y
6 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_asus_rt-ac1200=y
7 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_asus_rt-ac1200-v2=y
8 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_glinet_gl-mt300n-v2=y
9 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_glinet_microuter-n300=y
10 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5661a=y
11 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5761a=y
12 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5861b=y
13 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5611=y
14 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_netgear_r6120=y
15 | CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_xiaomi_miwifi-nano=y
16 |
17 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
18 |
19 | CONFIG_PACKAGE_kmod-fs-ntfs3-oot=n
20 |
21 |
22 |
--------------------------------------------------------------------------------
/devices/bcm27xx_bcm2710/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
8 |
9 | mkdir -p files/lib/firmware/brcm
10 | wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436-sdio.bin
11 | wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436-sdio.txt
12 | wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436s-sdio.bin
13 | wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436s-sdio.txt
14 |
--------------------------------------------------------------------------------
/devices/common/patches/targets.patch:
--------------------------------------------------------------------------------
1 | --- a/include/target.mk
2 | +++ b/include/target.mk
3 | @@ -53,10 +53,10 @@ DEFAULT_PACKAGES.nas:=\
4 | mdadm
5 | # For router targets
6 | DEFAULT_PACKAGES.router:=\
7 | - dnsmasq \
8 | - firewall4 \
9 | - nftables \
10 | - kmod-nft-offload \
11 | + dnsmasq-full \
12 | + firewall \
13 | + kmod-ipt-nat \
14 | + kmod-ipt-nat6 \
15 | odhcp6c \
16 | odhcpd-ipv6only \
17 | ppp \
18 | @@ -93,6 +93,18 @@ else
19 | endif
20 | endif
21 |
22 | +ifneq ($(CONFIG_SMALL_FLASH),)
23 | +DEFAULT_PACKAGES+=-coremark -htop -bash -openssh-sftp-server
24 | +endif
25 | +
26 | +ifeq ($(ARCH),arm)
27 | +DEFAULT_PACKAGES+=luci-app-cpufreq
28 | +endif
29 | +
30 | +ifeq ($(ARCH),aarch64)
31 | +DEFAULT_PACKAGES+=luci-app-cpufreq
32 | +endif
33 | +
34 | # Add device specific packages (here below to allow device type set from subtarget)
35 | DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE))
36 |
37 |
--------------------------------------------------------------------------------
/devices/common/patches/LINUX_VERSION.patch:
--------------------------------------------------------------------------------
1 | --- a/Makefile
2 | +++ b/Makefile
3 | @@ -33,6 +33,7 @@ ifneq ($(OPENWRT_BUILD),1)
4 | include $(TOPDIR)/include/toplevel.mk
5 | else
6 | include rules.mk
7 | + include $(INCLUDE_DIR)/target.mk
8 | include $(INCLUDE_DIR)/depends.mk
9 | include $(INCLUDE_DIR)/subdir.mk
10 | include target/Makefile
11 | @@ -131,6 +132,10 @@ world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-
12 | $(_SINGLE)$(SUBMAKE) -r package/index
13 | $(_SINGLE)$(SUBMAKE) -r json_overview_image_info
14 | $(_SINGLE)$(SUBMAKE) -r checksum
15 | + cp -f $(BIN_DIR)/packages/Packages.manifest $(BIN_DIR)/
16 | + rm -rf $(BIN_DIR)/$(LINUX_VERSION)
17 | + mv -f $(BIN_DIR)/packages $(BIN_DIR)/$(LINUX_VERSION) 2>/dev/null
18 | + mv -f $(BIN_DIR)/profiles.json $(BIN_DIR)/profiles.json.b 2>/dev/null
19 | ifneq ($(CONFIG_CCACHE),)
20 | $(STAGING_DIR_HOST)/bin/ccache -s
21 | endif
22 |
--------------------------------------------------------------------------------
/devices/ramips_mt76x8/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/2e6d19ee32399e37c7545aefc57d41541a406d55.patch | patch -d './' -p1 --forward" || true
8 |
9 |
10 | #sh -c "curl -sfL https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/11287.patch | patch -d './' -p1 --forward"
11 |
12 | #curl -sfL https://raw.githubusercontent.com/x-wrt/x-wrt/master/target/linux/mediatek/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch -o target/linux/ramips/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch
13 |
14 | #svn export --force https://github.com/x-wrt/x-wrt/trunk/target/linux/ramips/files/drivers/net/ethernet/ralink target/linux/ramips/files/drivers/net/ethernet/ralink
15 |
16 | #sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += luci-app-natflow-users natflow-boot/' target/linux/ramips/Makefile
17 |
18 |
--------------------------------------------------------------------------------
/devices/ramips_mt7620/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ramips=y
3 | CONFIG_TARGET_ramips_mt7620=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_glinet_gl-mt300a=y
6 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_glinet_gl-mt750=y
7 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_hiwifi_hc5661=y
8 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_hiwifi_hc5761=y
9 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_hiwifi_hc5861=y
10 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_hiwifi_r33=y
11 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_lenovo_newifi-y1=y
12 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_lenovo_newifi-y1s=y
13 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_xiaomi_miwifi-mini=y
14 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_youku_yk-l1=y
15 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_youku_yk-l1c=y
16 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_xiaomi_miwifi-r3=y
17 | CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_zbtlink_zbt-we826-32m=y
18 |
19 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
20 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/diy/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-emmc.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 |
3 | /dts-v1/;
4 | #include "mt7981b-cmcc-rax3000m.dts"
5 |
6 | / {
7 | model = "CMCC RAX3000M (eMMC version)";
8 | compatible = "cmcc,rax3000m-emmc", "mediatek,mt7981";
9 |
10 | chosen {
11 | bootargs = "root=PARTLABEL=rootfs rootwait rootfstype=squashfs,f2fs";
12 | };
13 | };
14 |
15 | &mmc0 {
16 | bus-width = <8>;
17 | max-frequency = <26000000>;
18 | no-sd;
19 | no-sdio;
20 | non-removable;
21 | pinctrl-names = "default", "state_uhs";
22 | pinctrl-0 = <&mmc0_pins_default>;
23 | pinctrl-1 = <&mmc0_pins_uhs>;
24 | vmmc-supply = <®_3p3v>;
25 | status = "okay";
26 | };
27 |
28 | &pio {
29 | mmc0_pins_default: mmc0-pins {
30 | mux {
31 | function = "flash";
32 | groups = "emmc_45";
33 | };
34 | };
35 |
36 | mmc0_pins_uhs: mmc0-uhs-pins {
37 | mux {
38 | function = "flash";
39 | groups = "emmc_45";
40 | };
41 | };
42 | };
43 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/add_extra_CPU_FLAGS.patch:
--------------------------------------------------------------------------------
1 | --- a/include/target.mk
2 | +++ b/include/target.mk
3 | @@ -259,9 +259,18 @@ ifeq ($(DUMP),1)
4 | CPU_CFLAGS_arc700 = -mcpu=arc700
5 | CPU_CFLAGS_archs = -mcpu=archs
6 | endif
7 | + ifeq ($(BOARD),rockchip)
8 | + CPU_CFLAGS = -O3 -pipe
9 | + CPU_CFLAGS_cortex-a53 = -mcpu=cortex-a53
10 | + CPU_CFLAGS_cortex-a55 = -march=armv8-a+crypto+crc -mcpu=cortex-a55+crypto+crc -mtune=cortex-a55
11 | + CPU_CFLAGS_cortex-a73 = -march=armv8-a+crypto+crc -mcpu=cortex-a73.cortex-a53+crypto+crc -mtune=cortex-a73.cortex-a53
12 | + ifneq ($(SOC_CFLAGS),)
13 | + CPU_CFLAGS_generic = $(SOC_CFLAGS)
14 | + endif
15 | + endif
16 | ifneq ($(CPU_TYPE),)
17 | ifndef CPU_CFLAGS_$(CPU_TYPE)
18 | - $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type)
19 | + $(warning CPU_TYPE "$(CPU_TYPE)" "doesn't correspond to a known type")
20 | endif
21 | endif
22 | DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))
--------------------------------------------------------------------------------
/devices/ath79_nand/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ath79=y
3 | CONFIG_TARGET_ath79_nand=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-ar300m-nand=y
6 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-ar750s-nor-nand=y
7 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-e750=y
8 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-xe300=y
9 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_r6100=y
10 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr3700-v4=y
11 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300=y
12 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300-v2=y
13 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300sw=y
14 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300tn=y
15 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4500-v3=y
16 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_zte_mf286=y
17 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_zte_mf281=y
18 | CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_domywifi_dw33d=y
19 |
20 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/devices/ipq806x_generic/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ipq806x=y
3 | CONFIG_TARGET_ipq806x_generic=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_linksys_ea7500-v1=y
6 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_linksys_ea8500=y
7 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_d7800=y
8 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7500=y
9 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7500v2=y
10 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7800=y
11 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_xr500=y
12 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_ad7200=y
13 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_c2600=y
14 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_vr2600v=y
15 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_buffalo_wxr-2533dhp=y
16 | CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_xiaomi_r3d=y
17 |
18 | CONFIG_PACKAGE_MAC80211_NSS_SUPPORT=y
19 |
20 | CONFIG_PACKAGE_kmod-ipsec=n
21 |
22 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/devices/ipq40xx_generic/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ipq40xx=y
3 | CONFIG_TARGET_ipq40xx_generic=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_asus_rt-ac42u=y
6 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_asus_rt-ac58u=y
7 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_p2w_r619ac-128m=y
8 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_p2w_r619ac-64m=y
9 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_zte_mf286d=y
10 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_glinet_gl-b1300=y
11 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_glinet_gl-a1300=y
12 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_glinet_gl-s1300-emmc=y
13 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_linksys_ea6350v3=y
14 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_glinet_gl-ap1300=y
15 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_linksys_ea8300=y
16 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_linksys_mr8300=y
17 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_mobipromo_cm520-79f=y
18 | CONFIG_TARGET_DEVICE_ipq40xx_generic_DEVICE_zte_mf289f=y
19 |
20 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/devices/common/patches/kernel_version.patch:
--------------------------------------------------------------------------------
1 | --- a/scripts/json_overview_image_info.py
2 | +++ b/scripts/json_overview_image_info.py
3 | @@ -47,7 +47,7 @@ def get_initial_output(image_info):
4 |
5 |
6 | if output:
7 | - default_packages, output["arch_packages"] = run(
8 | + default_packages, output["arch_packages"], output["kernel_version"] = run(
9 | [
10 | "make",
11 | "--no-print-directory",
12 | @@ -55,6 +55,7 @@ def get_initial_output(image_info):
13 | "target/linux/",
14 | "val.DEFAULT_PACKAGES",
15 | "val.ARCH_PACKAGES",
16 | + "val.LINUX_VERSION",
17 | ],
18 | stdout=PIPE,
19 | stderr=PIPE,
20 |
21 | --- a/scripts/json_add_image_info.py
22 | +++ b/scripts/json_add_image_info.py
23 | @@ -55,6 +55,7 @@ def get_titles():
24 | "profiles": {
25 | device_id: {
26 | "image_prefix": getenv("DEVICE_IMG_PREFIX"),
27 | + "image_initramfs": getenv("KERNEL_INITRAMFS_IMAGE"),
28 | "images": [
29 | {
30 | "type": getenv("FILE_TYPE"),
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 P3TERX
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/03-4a-breed-fix.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-common.dtsi
2 | +++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-common.dtsi
3 | @@ -54,40 +54,16 @@
4 | read-only;
5 | };
6 |
7 | - partition@40000 {
8 | - label = "Bdata";
9 | - reg = <0x40000 0x10000>;
10 | - read-only;
11 | - };
12 | -
13 | - factory: partition@50000 {
14 | + factory: partition@40000 {
15 | label = "factory";
16 | - reg = <0x50000 0x10000>;
17 | - read-only;
18 | - };
19 | -
20 | - partition@60000 {
21 | - label = "crash";
22 | - reg = <0x60000 0x10000>;
23 | - read-only;
24 | - };
25 | -
26 | - partition@70000 {
27 | - label = "cfg_bak";
28 | - reg = <0x70000 0x10000>;
29 | - read-only;
30 | - };
31 | -
32 | - partition@80000 {
33 | - label = "overlay";
34 | - reg = <0x80000 0x100000>;
35 | + reg = <0x40000 0x10000>;
36 | read-only;
37 | };
38 |
39 | - firmware: partition@180000 {
40 | + partition@50000 {
41 | compatible = "denx,uimage";
42 | label = "firmware";
43 | - reg = <0x180000 0xe80000>;
44 | + reg = <0x50000 0xfb0000>;
45 | };
46 | };
47 | };
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/18-wr30u.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/image/filogic.mk
2 | +++ b/target/linux/mediatek/image/filogic.mk
3 | @@ -1036,22 +1036,22 @@ endif
4 | endef
5 | TARGET_DEVICES += xiaomi_mi-router-ax3000t-ubootmod
6 |
7 | -define Device/xiaomi_mi-router-wr30u-stock
8 | +define Device/xiaomi_mi-router-wr30u
9 | DEVICE_VENDOR := Xiaomi
10 | - DEVICE_MODEL := Mi Router WR30U (stock layout)
11 | - DEVICE_DTS := mt7981b-xiaomi-mi-router-wr30u-stock
12 | + DEVICE_MODEL := Mi Router WR30U
13 | + DEVICE_DTS := mt7981b-xiaomi-mi-router-wr30u
14 | DEVICE_DTS_DIR := ../dts
15 | UBINIZE_OPTS := -E 5
16 | BLOCKSIZE := 128k
17 | PAGESIZE := 2048
18 | + IMAGE_SIZE := 114688k
19 | + KERNEL_IN_UBI := 1
20 | + IMAGES += factory.bin
21 | + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
22 | DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
23 | -ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
24 | - ARTIFACTS := initramfs-factory.ubi
25 | - ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-kernel.bin | ubinize-kernel
26 | -endif
27 | IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
28 | endef
29 | -TARGET_DEVICES += xiaomi_mi-router-wr30u-stock
30 | +TARGET_DEVICES += xiaomi_mi-router-wr30u
31 |
32 | define Device/xiaomi_mi-router-wr30u-ubootmod
33 | DEVICE_VENDOR := Xiaomi
34 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/patches/iptables-mod-socket.patch:
--------------------------------------------------------------------------------
1 | --- a/package/network/utils/iptables/Makefile
2 | +++ b/package/network/utils/iptables/Makefile
3 | @@ -388,6 +388,19 @@ iptables extension for triggering a LED.
4 |
5 | endef
6 |
7 | +define Package/iptables-mod-socket
8 | +$(call Package/iptables/Module, +kmod-ipt-socket)
9 | + TITLE:=Socket match iptables extensions
10 | +endef
11 | +
12 | +define Package/iptables-mod-socket/description
13 | +Socket match iptables extensions.
14 | +
15 | + Matches:
16 | + - socket
17 | +
18 | +endef
19 | +
20 | define Package/iptables-mod-tproxy
21 | $(call Package/iptables/Module, +kmod-ipt-tproxy)
22 | TITLE:=Transparent proxy iptables extensions
23 | @@ -396,9 +409,6 @@ endef
24 | define Package/iptables-mod-tproxy/description
25 | Transparent proxy iptables extensions.
26 |
27 | - Matches:
28 | - - socket
29 | -
30 | Targets:
31 | - TPROXY
32 |
33 | @@ -721,6 +731,7 @@ $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
34 | $(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
35 | $(eval $(call BuildPlugin,iptables-mod-rpfilter,$(IPT_RPFILTER-m)))
36 | $(eval $(call BuildPlugin,iptables-mod-led,$(IPT_LED-m)))
37 | +$(eval $(call BuildPlugin,iptables-mod-socket,$(IPT_SOCKET-m)))
38 | $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
39 | $(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
40 | $(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 |
5 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
6 |
7 | rm -rf feeds/kiddin9/{rtl*,fullconenat-nft} package/feeds/luci/rpcd-mod-luci toolchain/musl package/feeds/packages/gptfdisk package/utils/f2fs-tools package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl package/feeds/packages/libevdev
8 |
9 | rm -rf devices/common/patches/{rootfstargz.patch,kernel_version.patch,seccomp.patch,iptables.patch,kernel-defaults.patch,targets.patch}
10 |
11 | #sed -i "/KernelPackage,sound-soc-core/d" package/kernel/linux/modules/sound.mk
12 | #sed -i "/KernelPackage,multimedia-input/d" package/kernel/linux/modules/video.mk
13 |
14 | git_clone_path openwrt-23.05 https://github.com/openwrt/openwrt toolchain/musl
15 | git_clone_path openwrt-23.05 https://github.com/openwrt/openwrt package/utils/e2fsprogs
16 | git_clone_path openwrt-23.05 https://github.com/openwrt/openwrt package/utils/ucode
17 | git_clone_path openwrt-23.05 https://github.com/openwrt/openwrt package/libs/libselinux
18 | #ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
19 |
20 | sed -i "s/PKG_SOURCE_DATE:=.*/PKG_SOURCE_DATE:=2099-12-06/" package/network/config/netifd/Makefile
21 |
22 | sed -i "s/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += luci-app-mtk mii_mgr wifi-profile mtkhqos_util wireless-regdb switch regs kmod-warp kmod-mt_wifi kmod-mediatek_hnat kmod-conninfra datconf-lua/" target/linux/mediatek/Makefile
23 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/patches/targets.patch:
--------------------------------------------------------------------------------
1 | --- a/include/target.mk
2 | +++ b/include/target.mk
3 | @@ -46,27 +46,27 @@ DEFAULT_PACKAGES.router:=\
4 | dnsmasq-full \
5 | firewall \
6 | iptables \
7 | - ipv6helper \
8 | + ip6tables \
9 | + kmod-ipt-nat \
10 | + kmod-ipt-nat6 \
11 | + kmod-ipt-offload \
12 | + odhcp6c \
13 | + odhcpd-ipv6only \
14 | ppp \
15 | ppp-mod-pppoe
16 | -# For easy usage
17 | -DEFAULT_PACKAGES.tweak:=\
18 | - block-mount \
19 | - default-settings-chn \
20 | - kmod-ipt-raw \
21 | - kmod-nf-nathelper \
22 | - kmod-nf-nathelper-extra \
23 | - luci \
24 | - luci-app-filetransfer \
25 | - luci-compat \
26 | - luci-lib-base \
27 | - luci-lib-fs \
28 | - luci-lib-ipkg
29 |
30 | ifneq ($(DUMP),)
31 | all: dumpinfo
32 | endif
33 |
34 | +ifeq ($(ARCH),arm)
35 | + DEFAULT_PACKAGES+=luci-app-cpufreq
36 | +endif
37 | +
38 | +ifeq ($(ARCH),aarch64)
39 | + DEFAULT_PACKAGES+=luci-app-cpufreq
40 | +endif
41 | +
42 | target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
43 | ifeq ($(DUMP),)
44 | PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD)
45 |
46 | --- a/target/linux/mediatek/image/mt7981.mk
47 | +++ b/target/linux/mediatek/image/mt7981.mk
48 | @@ -2,7 +2,6 @@ KERNEL_LOADADDR := 0x48080000
49 |
50 | MT7981_USB_PKGS := automount blkid blockdev fdisk \
51 | kmod-nls-cp437 kmod-nls-iso8859-1 kmod-usb2 kmod-usb3 \
52 | - luci-app-usb-printer luci-i18n-usb-printer-zh-cn \
53 | kmod-usb-net-rndis usbutils
54 |
55 | define Device/mt7981-spim-nor-rfb
56 |
--------------------------------------------------------------------------------
/devices/sunxi_cortexa7/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_sunxi=y
3 | CONFIG_TARGET_sunxi_cortexa7=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_friendlyarm_nanopi-m1-plus=y
6 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_friendlyarm_nanopi-neo=y
7 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_friendlyarm_nanopi-neo-air=y
8 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_friendlyarm_nanopi-r1=y
9 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_friendlyarm_zeropi=y
10 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-2=y
11 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-one=y
12 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-pc=y
13 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-pc-plus=y
14 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-plus=y
15 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-r1=y
16 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_xunlong_orangepi-zero=y
17 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_sinovoip_bananapi-p2-zero=y
18 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_sinovoip_bananapi-m3=y
19 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_sinovoip_bananapi-m2-plus=y
20 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_sinovoip_bananapi-m2-berry=y
21 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_sinovoip_bananapi-m2-ultra=y
22 | CONFIG_TARGET_DEVICE_sunxi_cortexa7_DEVICE_mele_m9=y
23 |
24 | CONFIG_PACKAGE_kmod-rtl8189es=y
25 |
26 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/devices/x86_generic/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/x86/files
8 |
9 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/x86/patches-5.15
10 |
11 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/x86/base-files/etc/board.d/02_network -o target/linux/x86/base-files/etc/board.d/02_network
12 |
13 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += kmod-usb-hid kmod-mmc kmod-sdhci usbutils pciutils lm-sensors-detect kmod-alx kmod-vmxnet3 kmod-igbvf kmod-iavf kmod-bnx2x kmod-pcnet32 kmod-tulip kmod-r8125 kmod-r8101 kmod-8139cp kmod-8139too kmod-i40e kmod-drm-i915 kmod-drm-amdgpu kmod-mlx4-core kmod-mlx5-core fdisk lsblk/' target/linux/x86/Makefile
14 |
15 | mv -f tmp/r81* feeds/kiddin9/
16 |
17 | sed -i 's/256/1024/g' target/linux/x86/image/Makefile
18 |
19 | echo '
20 | CONFIG_ACPI=y
21 | CONFIG_X86_ACPI_CPUFREQ=y
22 | CONFIG_NR_CPUS=512
23 | CONFIG_MMC=y
24 | CONFIG_MMC_BLOCK=y
25 | CONFIG_SDIO_UART=y
26 | CONFIG_MMC_TEST=y
27 | CONFIG_MMC_DEBUG=y
28 | CONFIG_MMC_SDHCI=y
29 | CONFIG_MMC_SDHCI_ACPI=y
30 | CONFIG_MMC_SDHCI_PCI=y
31 | CONFIG_DRM_I915=y
32 | ' >> ./target/linux/x86/config-5.15
33 |
34 | sed -i "s/DEVICE_MODEL := x86/DEVICE_MODEL := x86\/32/" target/linux/x86/image/generic.mk
35 |
36 | sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config
37 |
38 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/03-nx30.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
2 | +++ b/target/linux/mediatek/dts/mt7981b-h3c-magic-nx30-pro.dts
3 | @@ -107,6 +107,10 @@
4 | spi-tx-buswidth = <4>;
5 | spi-rx-buswidth = <4>;
6 |
7 | + mediatek,nmbm;
8 | + mediatek,bmt-max-ratio = <1>;
9 | + mediatek,bmt-max-reserved-blocks = <64>;
10 | +
11 | partitions {
12 | compatible = "fixed-partitions";
13 | #address-cells = <1>;
14 |
15 | --- a/target/linux/mediatek/image/filogic.mk
16 | +++ b/target/linux/mediatek/image/filogic.mk
17 | @@ -208,19 +208,9 @@ define Device/h3c_magic-nx30-pro
18 | BLOCKSIZE := 128k
19 | PAGESIZE := 2048
20 | KERNEL_IN_UBI := 1
21 | - UBOOTENV_IN_UBI := 1
22 | IMAGE_SIZE := 65536k
23 | - IMAGES := sysupgrade.itb
24 | - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
25 | - KERNEL := kernel-bin | gzip
26 | - KERNEL_INITRAMFS := kernel-bin | lzma | \
27 | - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
28 | - IMAGE/sysupgrade.itb := append-kernel | \
29 | - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
30 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
31 | DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
32 | - ARTIFACTS := preloader.bin bl31-uboot.fip
33 | - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
34 | - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot h3c_magic-nx30-pro
35 | endef
36 | TARGET_DEVICES += h3c_magic-nx30-pro
37 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/10-re-cp-03.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/image/filogic.mk
2 | +++ b/target/linux/mediatek/image/filogic.mk
3 | @@ -611,27 +611,12 @@ TARGET_DEVICES += jcg_q30-pro
4 |
5 | define Device/jdcloud_re-cp-03
6 | DEVICE_VENDOR := JDCloud
7 | - DEVICE_MODEL := RE-CP-03
8 | + DEVICE_MODEL := AX6000 Baili(RE-CP-03)
9 | DEVICE_DTS := mt7986a-jdcloud-re-cp-03
10 | DEVICE_DTS_DIR := ../dts
11 | - DEVICE_DTC_FLAGS := --pad 4096
12 | - DEVICE_DTS_LOADADDR := 0x43f00000
13 | DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware \
14 | - e2fsprogs f2fsck mkf2fs
15 | - KERNEL_LOADADDR := 0x44000000
16 | - KERNEL := kernel-bin | gzip
17 | - KERNEL_INITRAMFS := kernel-bin | lzma | \
18 | - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
19 | - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
20 | - IMAGES := sysupgrade.itb
21 | - IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m
22 | - IMAGE/sysupgrade.itb := append-kernel | \
23 | - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | \
24 | - pad-rootfs | append-metadata
25 | - ARTIFACTS :=gpt.bin preloader.bin bl31-uboot.fip
26 | - ARTIFACT/gpt.bin := mt798x-gpt emmc
27 | - ARTIFACT/preloader.bin := mt7986-bl2 emmc-ddr4
28 | - ARTIFACT/bl31-uboot.fip := mt7986-bl31-uboot jdcloud_re-cp-03
29 | + e2fsprogs f2fsck mkf2fs losetup kmod-mmc kmod-nls-cp437 kmod-nls-iso8859-1 blkid blockdev
30 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
31 | endef
32 | TARGET_DEVICES += jdcloud_re-cp-03
33 |
--------------------------------------------------------------------------------
/devices/x86_64/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
4 |
5 | #bash $SHELL_FOLDER/../common/kernel_6.1.sh
6 |
7 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/x86/files
8 |
9 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/x86/patches-5.15
10 |
11 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/x86/base-files/etc/board.d/02_network -o target/linux/x86/base-files/etc/board.d/02_network
12 |
13 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/x86/64/config-5.15 -o target/linux/x86/64/config-5.15
14 |
15 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += kmod-usb-hid kmod-mmc kmod-sdhci usbutils pciutils lm-sensors-detect kmod-alx kmod-vmxnet3 kmod-igbvf kmod-iavf kmod-bnx2x kmod-pcnet32 kmod-tulip kmod-r8101 kmod-r8125 kmod-8139cp kmod-8139too kmod-i40e kmod-drm-i915 kmod-drm-amdgpu kmod-mlx4-core kmod-mlx5-core fdisk lsblk kmod-phy-broadcom/' target/linux/x86/Makefile
16 |
17 | mv -f tmp/r81* feeds/kiddin9/
18 |
19 | sed -i 's/256/1024/g' target/linux/x86/image/Makefile
20 |
21 | echo '
22 | CONFIG_ACPI=y
23 | CONFIG_X86_ACPI_CPUFREQ=y
24 | CONFIG_NR_CPUS=512
25 | CONFIG_MMC=y
26 | CONFIG_MMC_BLOCK=y
27 | CONFIG_SDIO_UART=y
28 | CONFIG_MMC_TEST=y
29 | CONFIG_MMC_DEBUG=y
30 | CONFIG_MMC_SDHCI=y
31 | CONFIG_MMC_SDHCI_ACPI=y
32 | CONFIG_MMC_SDHCI_PCI=y
33 | CONFIG_DRM_I915=y
34 | ' >> ./target/linux/x86/config-5.15
35 |
36 | sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config
37 |
38 |
--------------------------------------------------------------------------------
/devices/common/patches/iptables.patch:
--------------------------------------------------------------------------------
1 | --- a/package/network/utils/iptables/Makefile
2 | +++ b/package/network/utils/iptables/Makefile
3 | @@ -111,7 +111,6 @@ define Package/arptables-nft
4 | $(call Package/iptables/Default)
5 | DEPENDS:=+kmod-nft-arp +xtables-nft +kmod-arptables
6 | TITLE:=ARP firewall administration tool nft
7 | - PROVIDES:=arptables
8 | ALTERNATIVES:=\
9 | 300:/usr/sbin/arptables:/usr/sbin/xtables-nft-multi \
10 | 300:/usr/sbin/arptables-restore:/usr/sbin/xtables-nft-multi \
11 | @@ -122,7 +121,6 @@ define Package/ebtables-nft
12 | $(call Package/iptables/Default)
13 | DEPENDS:=+kmod-nft-bridge +xtables-nft +kmod-ebtables
14 | TITLE:=Bridge firewall administration tool nft
15 | - PROVIDES:=ebtables
16 | ALTERNATIVES:=\
17 | 300:/usr/sbin/ebtables:/usr/sbin/xtables-nft-multi \
18 | 300:/usr/sbin/ebtables-restore:/usr/sbin/xtables-nft-multi \
19 | @@ -133,7 +131,6 @@ define Package/iptables-nft
20 | $(call Package/iptables/Default)
21 | TITLE:=IP firewall administration tool nft
22 | DEPENDS:=+kmod-ipt-core +xtables-nft
23 | - PROVIDES:=iptables
24 | ALTERNATIVES:=\
25 | 300:/usr/sbin/iptables:/usr/sbin/xtables-nft-multi \
26 | 300:/usr/sbin/iptables-restore:/usr/sbin/xtables-nft-multi \
27 | @@ -486,7 +483,6 @@ define Package/ip6tables-nft
28 | $(call Package/iptables/Default)
29 | DEPENDS:=@IPV6 +kmod-ip6tables +xtables-nft
30 | TITLE:=IP firewall administration tool nft
31 | - PROVIDES:=ip6tables
32 | ALTERNATIVES:=\
33 | 300:/usr/sbin/ip6tables:/usr/sbin/xtables-nft-multi \
34 | 300:/usr/sbin/ip6tables-restore:/usr/sbin/xtables-nft-multi \
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/09-jcg_q30-pro.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/image/filogic.mk
2 | +++ b/target/linux/mediatek/image/filogic.mk
3 | @@ -381,19 +381,12 @@ define Device/jcg_q30-pro
4 | UBINIZE_OPTS := -E 5
5 | BLOCKSIZE := 128k
6 | PAGESIZE := 2048
7 | + IMAGE_SIZE := 114816k
8 | KERNEL_IN_UBI := 1
9 | - UBOOTENV_IN_UBI := 1
10 | - IMAGES := sysupgrade.itb
11 | - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
12 | - KERNEL := kernel-bin | gzip
13 | - KERNEL_INITRAMFS := kernel-bin | lzma | \
14 | - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
15 | - IMAGE/sysupgrade.itb := append-kernel | \
16 | - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
17 | DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
18 | - ARTIFACTS := preloader.bin bl31-uboot.fip
19 | - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
20 | - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot jcg_q30-pro
21 | + IMAGES += factory.bin
22 | + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
23 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
24 | endef
25 | TARGET_DEVICES += jcg_q30-pro
26 |
27 |
28 | --- a/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
29 | +++ b/target/linux/mediatek/dts/mt7981b-jcg-q30-pro.dts
30 | @@ -98,6 +98,10 @@
31 | spi-tx-bus-width = <4>;
32 | spi-rx-bus-width = <4>;
33 |
34 | + mediatek,nmbm;
35 | + mediatek,bmt-max-ratio = <1>;
36 | + mediatek,bmt-max-reserved-blocks = <64>;
37 | +
38 | partitions {
39 | compatible = "fixed-partitions";
40 | #address-cells = <1>;
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/01-360t7.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
2 | +++ b/target/linux/mediatek/dts/mt7981b-qihoo-360t7.dts
3 | @@ -100,6 +100,10 @@
4 | spi-tx-buswidth = <4>;
5 | spi-rx-buswidth = <4>;
6 |
7 | + mediatek,nmbm;
8 | + mediatek,bmt-max-ratio = <1>;
9 | + mediatek,bmt-max-reserved-blocks = <64>;
10 | +
11 | partitions {
12 | compatible = "fixed-partitions";
13 | #address-cells = <1>;
14 | @@ -147,7 +151,7 @@
15 |
16 | partition@7300000 {
17 | label = "log";
18 | - reg = <0x7300000 0x0700000>;
19 | + reg = <0x7300000 0x0400000>;
20 | read-only;
21 | };
22 | };
23 |
24 | --- a/target/linux/mediatek/image/filogic.mk
25 | +++ b/target/linux/mediatek/image/filogic.mk
26 | @@ -320,19 +320,12 @@ define Device/qihoo_360t7
27 | UBINIZE_OPTS := -E 5
28 | BLOCKSIZE := 128k
29 | PAGESIZE := 2048
30 | + IMAGE_SIZE := 112640k
31 | KERNEL_IN_UBI := 1
32 | - UBOOTENV_IN_UBI := 1
33 | - IMAGES := sysupgrade.itb
34 | - KERNEL_INITRAMFS_SUFFIX := -recovery.itb
35 | - KERNEL := kernel-bin | gzip
36 | - KERNEL_INITRAMFS := kernel-bin | lzma | \
37 | - fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
38 | - IMAGE/sysupgrade.itb := append-kernel | \
39 | - fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
40 | + IMAGES += factory.bin
41 | + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
42 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
43 | DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
44 | - ARTIFACTS := preloader.bin bl31-uboot.fip
45 | - ARTIFACT/preloader.bin := mt7981-bl2 spim-nand-ddr3
46 | - ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot qihoo_360t7
47 | endef
48 | TARGET_DEVICES += qihoo_360t7
49 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shopt -s extglob
4 | SHELL_FOLDER=$(dirname $(readlink -f "$0"))
5 |
6 | bash $SHELL_FOLDER/../common/kernel_6.1.sh
7 |
8 | rm -rf package/boot
9 |
10 | git_clone_path master https://github.com/immortalwrt/immortalwrt package/boot
11 |
12 | rm -rf target/linux/generic target/linux/rockchip
13 |
14 | git_clone_path master https://github.com/immortalwrt/immortalwrt target/linux/generic
15 | git_clone_path master https://github.com/immortalwrt/immortalwrt target/linux/rockchip
16 |
17 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.6
18 |
19 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch
20 |
21 | rm -rf target/linux/generic/hack-6.6/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}
22 |
23 | sed -i "/KernelPackage,ptp/d" package/kernel/linux/modules/other.mk
24 |
25 | mv -f tmp/r8125 feeds/kiddin9/
26 |
27 | rm -rf target/linux/rockchip/armv8/base-files/etc/uci-defaults/13_opkg_update
28 |
29 | sed -i -e 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/armv8.mk
30 | sed -i -e 's,wpad-openssl,wpad-basic-mbedtls,g' target/linux/rockchip/image/armv8.mk
31 |
32 | curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
33 |
34 | sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-drm-rockchip/' target/linux/rockchip/Makefile
35 |
36 | cp -Rf $SHELL_FOLDER/diy/* ./
37 |
38 | sed -i 's/Ariaboard/光影猫/' target/linux/rockchip/image/armv8.mk
39 | sed -i 's,NanoPi R2S$,NanoPi R2S / R2S Plus,' target/linux/rockchip/image/armv8.mk
40 |
41 | echo '
42 | CONFIG_SENSORS_PWM_FAN=y
43 | ' >> ./target/linux/rockchip/armv8/config-6.6
44 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-xgp-v3.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 |
3 | /dts-v1/;
4 |
5 | #include "rk3568-xgp.dts"
6 |
7 | /delete-node/ &backlight;
8 | /delete-node/ &spi_gpio;
9 |
10 | / {
11 | model = "NLnet XiGuaPi Board V3";
12 |
13 | leds {
14 | pinctrl-0 = <&sys_led &net_led_pin>;
15 |
16 | net_led: net-led {
17 | gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
18 | label = "blue:net";
19 | };
20 | };
21 |
22 | led-controller {
23 | compatible = "pwm-leds";
24 |
25 | backlight: backlight {
26 | label = "lcd:backlight";
27 | pwms = <&pwm14 0 1000000 0>;
28 | max-brightness = <255>;
29 | linux,default-trigger = "default-on";
30 | };
31 | };
32 | };
33 |
34 | &pmu_io_domains {
35 | vccio5-supply = <&vcc_3v3>;
36 | };
37 |
38 | &spi3 {
39 | status = "okay";
40 | };
41 |
42 | &pinctrl {
43 | /delete-property/ spi_gpio;
44 | leds {
45 | net_led_pin: net-led-pin {
46 | rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
47 | };
48 | };
49 |
50 | display {
51 | /delete-property/ display_dc_pin;
52 | spi3_display_dc_pin: spi3_display_dc_pin {
53 | rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
54 | };
55 |
56 | display_reset_pin: display_reset_pin {
57 | rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
58 | };
59 | };
60 |
61 | spi3 {
62 | spi3_sck: spi3_sck {
63 | rockchip,pins = <4 RK_PC2 2 &pcfg_pull_none>;
64 | };
65 | spi3_mosi: spi3_mosi {
66 | rockchip,pins = <4 RK_PC3 2 &pcfg_pull_none>;
67 | };
68 | };
69 |
70 | modem {
71 | modem_reset_pins: modem-reset-pins {
72 | rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_down>;
73 | };
74 | };
75 | };
76 |
77 | &pwm14 {
78 | pinctrl-0 = <&pwm14m0_pins>;
79 | pinctrl-names = "default";
80 | status = "okay";
81 | };
82 |
83 | &usb2phy0_host {
84 | pinctrl-0 = <&modem_reset_pins>;
85 | pinctrl-names = "default";
86 | };
87 |
--------------------------------------------------------------------------------
/devices/qualcommax_ipq807x/diy/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax6.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 | /* Copyright (c) 2021, Zhijun You */
3 |
4 | /dts-v1/;
5 |
6 | #include "ipq8071-ax3600.dtsi"
7 |
8 | / {
9 | model = "Redmi AX6";
10 | compatible = "redmi,ax6", "qcom,ipq8074";
11 |
12 | aliases {
13 | /* Aliases as required by u-boot to patch MAC addresses */
14 | ethernet1 = &dp2;
15 | ethernet2 = &dp3;
16 | ethernet3 = &dp4;
17 | ethernet4 = &dp5;
18 | };
19 |
20 | chosen {
21 | bootargs-append = " root=/dev/ubiblock0_1";
22 | };
23 |
24 | leds {
25 | compatible = "gpio-leds";
26 |
27 | led_system_blue: system-blue {
28 | label = "blue:system";
29 | gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
30 | };
31 |
32 | led_system_yellow: system-yellow {
33 | label = "yellow:system";
34 | gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
35 | };
36 |
37 | network-blue {
38 | label = "blue:network";
39 | gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
40 | };
41 |
42 | network-yellow {
43 | label = "yellow:network";
44 | gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
45 | };
46 | };
47 | };
48 |
49 | /* AX6 can both have NAND of 256MiB or 128MiB.
50 | * To be on the safe side, assume 128MiB of NAND.
51 | */
52 | &rootfs {
53 | reg = <0x2dc0000 0x5220000>;
54 | };
55 |
56 | &wifi {
57 | qcom,ath11k-calibration-variant = "Redmi-AX6";
58 | };
59 |
60 | &qpic_nand {
61 | /delete-node/ partitions;
62 |
63 | nand@0 {
64 | /delete-node/ partitions;
65 |
66 | partitions {
67 | compatible = "qcom,smem-part";
68 | };
69 | };
70 | };
71 |
72 | &dp2 {
73 | /delete-property/ nvmem-cells;
74 | /delete-property/ nvmem-cell-names;
75 | };
76 |
77 | &dp3 {
78 | /delete-property/ nvmem-cells;
79 | /delete-property/ nvmem-cell-names;
80 | };
81 |
82 | &dp4 {
83 | /delete-property/ nvmem-cells;
84 | /delete-property/ nvmem-cell-names;
85 | };
86 |
87 | &dp5 {
88 | /delete-property/ nvmem-cells;
89 | /delete-property/ nvmem-cell-names;
90 | };
91 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/diy/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 |
3 | /dts-v1/;
4 | #include "mt7981b-cmcc-rax3000m.dts"
5 |
6 | / {
7 | model = "CMCC RAX3000M (NAND version)";
8 | compatible = "cmcc,rax3000m-nand", "mediatek,mt7981";
9 |
10 | aliases {
11 | label-mac-device = &gmac1;
12 | };
13 | };
14 |
15 | &spi0 {
16 | pinctrl-names = "default";
17 | pinctrl-0 = <&spi0_flash_pins>;
18 | status = "okay";
19 |
20 | spi_nand: flash@0 {
21 | #address-cells = <1>;
22 | #size-cells = <1>;
23 | compatible = "spi-nand";
24 | reg = <0>;
25 |
26 | spi-max-frequency = <52000000>;
27 | spi-tx-bus-width = <4>;
28 | spi-rx-bus-width = <4>;
29 | mediatek,nmbm;
30 | mediatek,bmt-max-ratio = <1>;
31 | mediatek,bmt-max-reserved-blocks = <64>;
32 |
33 | partitions {
34 | compatible = "fixed-partitions";
35 | #address-cells = <1>;
36 | #size-cells = <1>;
37 |
38 | partition@0 {
39 | label = "bl2";
40 | reg = <0x00000 0x0100000>;
41 | read-only;
42 | };
43 |
44 | partition@100000 {
45 | label = "u-boot-env";
46 | reg = <0x100000 0x80000>;
47 | };
48 |
49 | factory: partition@180000 {
50 | label = "factory";
51 | reg = <0x180000 0x200000>;
52 | read-only;
53 | };
54 |
55 | partition@380000 {
56 | label = "fip";
57 | reg = <0x380000 0x200000>;
58 | read-only;
59 | };
60 |
61 | partition@580000 {
62 | label = "ubi";
63 | reg = <0x580000 0x7200000>;
64 | };
65 | };
66 | };
67 | };
68 |
69 | &pio {
70 | spi0_flash_pins: spi0-pins {
71 | mux {
72 | function = "spi";
73 | groups = "spi0", "spi0_wp_hold";
74 | };
75 |
76 | conf-pu {
77 | pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
78 | drive-strength = <8>;
79 | mediatek,pull-up-adv = <0>; /* bias-disable */
80 | };
81 |
82 | conf-pd {
83 | pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
84 | drive-strength = <8>;
85 | mediatek,pull-up-adv = <0>; /* bias-disable */
86 | };
87 | };
88 | };
89 |
90 | &wifi {
91 | mediatek,mtd-eeprom = <&factory 0x0>;
92 | };
93 |
--------------------------------------------------------------------------------
/devices/ipq40xx_generic/patches/cm520.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
2 | +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
3 | @@ -9,6 +9,10 @@
4 | model = "MobiPromo CM520-79F";
5 | compatible = "mobipromo,cm520-79f";
6 |
7 | + chosen {
8 | + bootargs-append = " ubi.block=0,1 root=/dev/ubiblock0_1";
9 | + };
10 | +
11 | aliases {
12 | led-boot = &led_sys;
13 | led-failsafe = &led_sys;
14 | @@ -218,65 +222,8 @@
15 | #size-cells = <1>;
16 |
17 | partition@0 {
18 | - label = "SBL1";
19 | - reg = <0x0 0x100000>;
20 | - read-only;
21 | - };
22 | -
23 | - partition@100000 {
24 | - label = "MIBIB";
25 | - reg = <0x100000 0x100000>;
26 | - read-only;
27 | - };
28 | -
29 | - partition@200000 {
30 | - label = "BOOTCONFIG";
31 | - reg = <0x200000 0x100000>;
32 | - };
33 | -
34 | - partition@300000 {
35 | - label = "QSEE";
36 | - reg = <0x300000 0x100000>;
37 | - read-only;
38 | - };
39 | -
40 | - partition@400000 {
41 | - label = "QSEE_1";
42 | - reg = <0x400000 0x100000>;
43 | - read-only;
44 | - };
45 | -
46 | - partition@500000 {
47 | - label = "CDT";
48 | - reg = <0x500000 0x80000>;
49 | - read-only;
50 | - };
51 | -
52 | - partition@580000 {
53 | - label = "CDT_1";
54 | - reg = <0x580000 0x80000>;
55 | - read-only;
56 | - };
57 | -
58 | - partition@600000 {
59 | - label = "BOOTCONFIG1";
60 | - reg = <0x600000 0x80000>;
61 | - };
62 | -
63 | - partition@680000 {
64 | - label = "APPSBLENV";
65 | - reg = <0x680000 0x80000>;
66 | - };
67 | -
68 | - partition@700000 {
69 | - label = "APPSBL";
70 | - reg = <0x700000 0x200000>;
71 | - read-only;
72 | - };
73 | -
74 | - partition@900000 {
75 | - label = "APPSBL_1";
76 | - reg = <0x900000 0x200000>;
77 | + label = "Bootloader";
78 | + reg = <0x0 0xb00000>;
79 | read-only;
80 | };
81 |
82 | @@ -306,7 +253,7 @@
83 | };
84 |
85 | partition@b80000 {
86 | - label = "ubi";
87 | + label = "rootfs";
88 | reg = <0xb80000 0x7480000>;
89 | };
90 | };
--------------------------------------------------------------------------------
/devices/common/diy/package/network/utils/iptables/patches/900-bcm-fullconenat.patch:
--------------------------------------------------------------------------------
1 | --- a/extensions/libipt_MASQUERADE.c
2 | +++ b/extensions/libipt_MASQUERADE.c
3 | @@ -11,6 +11,7 @@
4 | enum {
5 | O_TO_PORTS = 0,
6 | O_RANDOM,
7 | + O_MODE,
8 | O_RANDOM_FULLY,
9 | };
10 |
11 | @@ -23,13 +24,16 @@ static void MASQUERADE_help(void)
12 | " --random\n"
13 | " Randomize source port.\n"
14 | " --random-fully\n"
15 | -" Fully randomize source port.\n");
16 | +" Fully randomize source port.\n"
17 | +" --mode \n"
18 | +" NAT mode.\n");
19 | }
20 |
21 | static const struct xt_option_entry MASQUERADE_opts[] = {
22 | {.name = "to-ports", .id = O_TO_PORTS, .type = XTTYPE_STRING},
23 | {.name = "random", .id = O_RANDOM, .type = XTTYPE_NONE},
24 | {.name = "random-fully", .id = O_RANDOM_FULLY, .type = XTTYPE_NONE},
25 | + {.name = "mode", .id = O_MODE, .type = XTTYPE_STRING},
26 | XTOPT_TABLEEND,
27 | };
28 |
29 | @@ -90,6 +94,8 @@ static void MASQUERADE_parse(struct xt_o
30 | else
31 | portok = 0;
32 |
33 | + mr->range[0].min_ip = 0;
34 | +
35 | xtables_option_parse(cb);
36 | switch (cb->entry->id) {
37 | case O_TO_PORTS:
38 | @@ -104,6 +110,15 @@ static void MASQUERADE_parse(struct xt_o
39 | case O_RANDOM_FULLY:
40 | mr->range[0].flags |= NF_NAT_RANGE_PROTO_RANDOM_FULLY;
41 | break;
42 | + case O_MODE:
43 | + if (strcasecmp(cb->arg, "fullcone") == 0)
44 | + mr->range[0].min_ip = 1;
45 | + else if (strcasecmp(cb->arg, "symmetric") == 0)
46 | + mr->range[0].min_ip = 0;
47 | + else
48 | + xtables_error(PARAMETER_PROBLEM,
49 | + "Unknown mode %s", cb->arg);
50 | + break;
51 | }
52 | }
53 |
54 | @@ -126,6 +141,9 @@ MASQUERADE_print(const void *ip, const s
55 |
56 | if (r->flags & NF_NAT_RANGE_PROTO_RANDOM_FULLY)
57 | printf(" random-fully");
58 | +
59 | + if (r->min_ip == 1)
60 | + printf(" mode: fullcone");
61 | }
62 |
63 | static void
64 | @@ -145,6 +163,9 @@ MASQUERADE_save(const void *ip, const st
65 |
66 | if (r->flags & NF_NAT_RANGE_PROTO_RANDOM_FULLY)
67 | printf(" --random-fully");
68 | +
69 | + if (r->min_ip == 1)
70 | + printf(" --mode fullcone");
71 | }
72 |
73 | static int MASQUERADE_xlate(struct xt_xlate *xl,
74 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_mediatek=y
3 | CONFIG_TARGET_mediatek_filogic=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_asus_tuf-ax4200=y
6 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_asus_rt-ax59u=y
7 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_asus_tuf-ax6000=y
8 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_bananapi_bpi-r3=y
9 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_tplink_tl-xdr4288=y
10 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_tplink_tl-xdr6086=y
11 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_tplink_tl-xdr6088=y
12 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_glinet_gl-mt3000=y
13 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_h3c_magic-nx30-pro=y
14 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-wr30u=y
15 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_redmi-router-ax6000=y
16 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_qihoo_360t7=y
17 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-ax3000t=y
18 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_jcg_q30-pro=y
19 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_cetron_ct3003=y
20 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_glinet_gl-mt6000=y
21 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_glinet_gl-mt2500=y
22 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_cmcc_rax3000m-nand=y
23 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_cmcc_rax3000m-emmc=y
24 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_jdcloud_re-cp-03=y
25 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_abt_asr3000=y
26 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_ruijie_rg-x60-pro=y
27 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_netcore_n60=y
28 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_cmcc_a10=y
29 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_konka_komi-a31=y
30 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_imou_lc-hx3001=y
31 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_bananapi_bpi-r3-mini=y
32 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_bananapi_bpi-r4=y
33 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_glinet_gl-x3000=y
34 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_glinet_gl-xe3000=y
35 | CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_comfast_cf-e393ax=y
36 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
37 |
38 |
--------------------------------------------------------------------------------
/devices/armsr_armv8/patches/rootfs.patch:
--------------------------------------------------------------------------------
1 | --- a/include/image.mk
2 | +++ b/include/image.mk
3 | @@ -728,8 +769,10 @@ endef
4 | define Device
5 | $(call Device/InitProfile,$(1))
6 | $(call Device/Init,$(1))
7 | + $(call Device/Init,$(PROFILE_SANITIZED))
8 | $(call Device/Default,$(1))
9 | $(call Device/$(1),$(1))
10 | + $(call Device/$(PROFILE_SANITIZED),$(1))
11 | $(call Device/Check,$(1))
12 | $(call Device/$(if $(DUMP),Dump,Build),$(1))
13 |
14 | --- a/include/image.mk
15 | +++ b/include/image.mk
16 | @@ -599,7 +599,7 @@ define Device/Build/kernel
17 | $$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE))
18 | $(call Device/Export,$$(KDIR_KERNEL_IMAGE),$(1))
19 | $(BIN_DIR)/$$(KERNEL_IMAGE): $$(KDIR_KERNEL_IMAGE)
20 | - cp $$^ $$@
21 | + cp $(KDIR)/generic-kernel.bin $$@
22 | ifndef IB
23 | ifdef CONFIG_IB
24 | install: $$(KDIR_KERNEL_IMAGE)
25 |
26 | --- a/target/linux/armsr/image/Makefile
27 | +++ b/target/linux/armsr/image/Makefile
28 | @@ -81,10 +81,8 @@ define Device/efi-default
29 | IMAGE/combined.img.gz := grub-config efi | combined efi | grub-install efi | gzip | append-metadata
30 | IMAGE/combined.vmdk := grub-config efi | combined efi | grub-install efi | qemu-image vmdk
31 | ifeq ($(CONFIG_TARGET_IMAGES_GZIP),y)
32 | - IMAGES-y := rootfs.img.gz
33 | IMAGES-y += combined.img.gz
34 | else
35 | - IMAGES-y := rootfs.img
36 | IMAGES-y += combined.img
37 | endif
38 | ifeq ($(CONFIG_VMDK_IMAGES),y)
39 | @@ -116,4 +114,21 @@ define Device/generic
40 | endef
41 | TARGET_DEVICES += generic
42 |
43 | +define Device/box
44 | + DEVICE_TITLE := 电视盒子全系列 / N1
45 | + DEVICE_PACKAGES := perlbase-base perlbase-utf8 perlbase-time perlbase-xsloader perlbase-file btrfs-progs luci-app-amlogic kmod-brcmfmac wpad-basic-mbedtls iw fdisk lsblk automount
46 | +endef
47 | +TARGET_DEVICES += box
48 | +
49 | +define Image/Build
50 | + if [ "$(PROFILE_SANITIZED)" == "box" ]; then \
51 | + export BIN_DIR=$(BIN_DIR); \
52 | + export DATE=$(DATE); \
53 | + export MORE=$(MORE); \
54 | + export ROOTFS_PARTSIZE=$(shell echo $$(($(ROOTFS_PARTSIZE)/1024/1024))); \
55 | + cd /data/packit/amlogic-s9xxx-openwrt; \
56 | + . ~/packit/packit_amlogic.sh; \
57 | + fi
58 | +endef
59 | +
60 | $(eval $(call BuildImage))
61 |
--------------------------------------------------------------------------------
/devices/common/patches/luci_mk.patch:
--------------------------------------------------------------------------------
1 | --- a/feeds/luci/luci.mk
2 | +++ b/feeds/luci/luci.mk
3 | @@ -82,7 +82,7 @@ define findrev
4 | set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- $(if $(1),. ':(exclude)po',po)); \
5 | if [ -n "$$1" ]; then
6 | secs="$$(($$1 % 86400))"; \
7 | - yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
8 | + yday="$$(date --utc --date="@$$(($$1 + 365*24*60*60))" "+%y.%j")"; \
9 | printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
10 | else \
11 | echo "unknown"; \
12 | @@ -207,9 +207,20 @@ define Package/$(PKG_NAME)/install
13 | $(call Build/Install/Default)
14 | $(CP) $(PKG_INSTALL_DIR)/* $(1)/
15 | endif
16 | + ifneq ($(wildcard ${CURDIR}/po),)
17 | + $(INSTALL_DIR) $(1)/etc/uci-defaults
18 | + echo "uci set luci.languages.zh_cn='$(LUCI_LANG.zh_Hans)'; uci commit luci" \
19 | + > $(1)/etc/uci-defaults/luci-i18n-$(LUCI_BASENAME)-zh-cn
20 | + $(INSTALL_DIR) $(1)$(LUCI_LIBRARYDIR)/i18n
21 | + $(foreach po,$(wildcard ${CURDIR}/po/zh_Hans/*.po), \
22 | + po2lmo $(po) \
23 | + $(1)$(LUCI_LIBRARYDIR)/i18n/$(basename $(notdir $(po))).zh-cn.lmo;)
24 | + endif
25 | +
26 | endef
27 |
28 | ifndef Package/$(PKG_NAME)/postinst
29 | +ifneq ($(wildcard ${CURDIR}/htdocs/luci-static/resources/view),)
30 | define Package/$(PKG_NAME)/postinst
31 | [ -n "$${IPKG_INSTROOT}" ] || { \
32 | rm -f /tmp/luci-indexcache.*
33 | @@ -218,6 +229,16 @@ define Package/$(PKG_NAME)/postinst
34 | exit 0
35 | }
36 | endef
37 | +else
38 | +define Package/$(PKG_NAME)/postinst
39 | +[ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS),
40 | + (. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script))
41 | + rm -f /tmp/luci-indexcache.*
42 | + rm -rf /tmp/luci-modulecache/
43 | + exit 0
44 | +}
45 | +endef
46 | +endif
47 | endif
48 |
49 | # some generic macros that can be used by all packages
50 | @@ -334,5 +355,5 @@ define LuciTranslation
51 |
52 | endef
53 |
54 | -$(foreach lang,$(LUCI_LANGUAGES),$(if $(LUCI_LANG.$(lang)),$(eval $(call LuciTranslation,$(firstword $(LUCI_LC_ALIAS.$(lang)) $(lang)),$(lang)))))
55 | +# $(foreach lang,$(LUCI_LANGUAGES),$(if $(LUCI_LANG.$(lang)),$(eval $(call LuciTranslation,$(firstword $(LUCI_LC_ALIAS.$(lang)) $(lang)),$(lang)))))
56 | $(foreach pkg,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(pkg))))
57 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/jcg_q20-pb-boot.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/ramips/dts/mt7621_jcg_q20.dts
2 | +++ b/target/linux/ramips/dts/mt7621_jcg_q20.dts
3 | @@ -50,22 +50,6 @@
4 | linux,code = ;
5 | };
6 | };
7 | -
8 | - ubi-concat {
9 | - compatible = "mtd-concat";
10 | - devices = <&ubiconcat0 &ubiconcat1>;
11 | -
12 | - partitions {
13 | - compatible = "fixed-partitions";
14 | - #address-cells = <1>;
15 | - #size-cells = <1>;
16 | -
17 | - partition@0 {
18 | - label = "ubi";
19 | - reg = <0x0 0x5900000>;
20 | - };
21 | - };
22 | - };
23 | };
24 |
25 | &nand {
26 | @@ -79,12 +63,18 @@
27 | partition@0 {
28 | label = "Bootloader";
29 | reg = <0x0 0x80000>;
30 | - read-only;
31 | };
32 |
33 | partition@80000 {
34 | - label = "Config";
35 | - reg = <0x80000 0x80000>;
36 | + label = "Nvram";
37 | + reg = <0x80000 0x40000>;
38 | + read-only;
39 | + };
40 | +
41 | + partition@c0000 {
42 | + label = "Bdata";
43 | + reg = <0xc0000 0x40000>;
44 | + read-only;
45 | };
46 |
47 | factory: partition@100000 {
48 | @@ -94,40 +84,26 @@
49 | };
50 |
51 | partition@180000 {
52 | - label = "kernel";
53 | - reg = <0x180000 0x400000>;
54 | - };
55 | -
56 | - ubiconcat0: partition@580000 {
57 | - label = "ubiconcat0";
58 | - reg = <0x580000 0x1c00000>;
59 | - };
60 | -
61 | - partition@2180000 {
62 | - label = "firmware_backup";
63 | - reg = <0x2180000 0x2000000>;
64 | - };
65 | -
66 | - partition@4180000 {
67 | - label = "rootfs_data_back";
68 | - reg = <0x4180000 0x80000>;
69 | + label = "crash";
70 | + reg = <0x180000 0x40000>;
71 | read-only;
72 | };
73 |
74 | - partition@4200000 {
75 | - label = "nvram_config";
76 | - reg = <0x4200000 0x80000>;
77 | + partition@1c0000 {
78 | + label = "crash_log";
79 | + reg = <0x1c0000 0x40000>;
80 | read-only;
81 | };
82 |
83 | - ubiconcat1: partition@4280000 {
84 | - label = "ubiconcat1";
85 | - reg = <0x4280000 0x3d00000>;
86 | + partition@200000 {
87 | + label = "kernel";
88 | + reg = <0x200000 0x400000>;
89 | };
90 |
91 | - /*
92 | - * last 512 KiB are for the bad block table
93 | - */
94 | + partition@600000 {
95 | + label = "ubi";
96 | + reg = <0x600000 0x7980000>;
97 | + };
98 | };
99 | };
100 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/55-xgp.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/rockchip/image/Makefile
2 | +++ b/target/linux/rockchip/image/Makefile
3 | @@ -20,6 +20,23 @@ define Build/boot-common
4 | $(CP) $(IMAGE_KERNEL) $@.boot/kernel.img
5 | endef
6 |
7 | +define Build/boot-combined
8 | + # This creates a new folder copies the dtbs (as rockchip*.dtb)
9 | + # and the kernel image (as kernel.img)
10 | + rm -fR $@.boot
11 | + mkdir -p $@.boot
12 | +
13 | + i=0; \
14 | + for dts in $(DEVICE_DTS); do \
15 | + dts=$$(echo $${dts} | cut -d'/' -f2); \
16 | + $(CP) $(KDIR)/image-$$(echo $${dts} | cut -d'/' -f2).dtb $@.boot/rockchip$$(perl -e 'printf "%b\n",'$$i).dtb; \
17 | + let i+=1; \
18 | + done
19 | +
20 | + $(LN) rockchip0.dtb $@.boot/rockchip.dtb
21 | + $(CP) $(IMAGE_KERNEL) $@.boot/kernel.img
22 | +endef
23 | +
24 | define Build/boot-script
25 | # Make an U-boot image and copy it to the boot partition
26 | mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d $(if $(1),$(1),mmc).bootscript $@.boot/boot.scr
27 | diff --git a/target/linux/rockchip/image/nlnet-xgp.bootscript b/target/linux/rockchip/image/nlnet-xgp.bootscript
28 | new file mode 100644
29 | index 0000000000000..80df26f6c1520
30 | --- /dev/null
31 | +++ b/target/linux/rockchip/image/nlnet-xgp.bootscript
32 | @@ -0,0 +1,38 @@
33 | +# nlnet-xgp rk3568 combined image, board detected by ADC
34 | +
35 | +env delete hwrev
36 | +env delete coreboard_adc_value
37 | +env delete motherboard_adc_value
38 | +
39 | +# using SARADC CH1 to detect coreboard hwrev
40 | +# using SARADC CH7 to detect motherboard hwrev
41 | +
42 | +adc single saradc@fe720000 1 coreboard_adc_value
43 | +adc single saradc@fe720000 7 motherboard_adc_value
44 | +
45 | +if test -n "$coreboard_adc_value"; then
46 | + if test "$coreboard_adc_value" -lt 225000; then
47 | + echo coreboard rev02
48 | + fi
49 | +fi
50 | +
51 | +if test -n "$motherboard_adc_value"; then
52 | + if test "$motherboard_adc_value" -lt 225000; then
53 | + echo motherboard rev03
54 | + setenv hwrev 1
55 | + fi
56 | +fi
57 | +
58 | +env delete coreboard_adc_value
59 | +env delete motherboard_adc_value
60 | +
61 | +part uuid mmc ${devnum}:2 uuid
62 | +
63 | +setenv bootargs "console=ttyS2,1500000 earlycon=uart8250,mmio32,0xfe660000 root=PARTUUID=${uuid} rw rootwait"
64 | +
65 | +load mmc ${devnum}:1 ${fdt_addr_r} rockchip${hwrev}.dtb
66 | +load mmc ${devnum}:1 ${kernel_addr_r} kernel.img
67 | +
68 | +env delete hwrev
69 | +
70 | +booti ${kernel_addr_r} - ${fdt_addr_r}
71 |
--------------------------------------------------------------------------------
/devices/common/patches/nginx-fancyindex.patch.bak:
--------------------------------------------------------------------------------
1 | --- package/feeds/packages/nginx/Makefile
2 | +++ package/feeds/packages/nginx/Makefile
3 | @@ -28,6 +28,7 @@ PKG_CONFIG_DEPENDS := \
4 | CONFIG_NGINX_DAV \
5 | CONFIG_NGINX_FLV \
6 | CONFIG_NGINX_UBUS \
7 | + CONFIG_NGINX_FANCYINDEX \
8 | CONFIG_NGINX_STUB_STATUS \
9 | CONFIG_NGINX_HTTP_CHARSET \
10 | CONFIG_NGINX_HTTP_GZIP \
11 | @@ -242,6 +243,9 @@ ifneq ($(BUILD_VARIANT),all-module)
12 | ifeq ($(CONFIG_NGINX_UBUS),y)
13 | ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-ubus-module
14 | endif
15 | + ifeq ($(CONFIG_NGINX_FANCYINDEX),y)
16 | + ADDITIONAL_MODULES += --with-http_addition_module --add-module=$(PKG_BUILD_DIR)/nginx-fancyindex-module
17 | + endif
18 | ifeq ($(CONFIG_NGINX_HTTP_AUTH_REQUEST),y)
19 | ADDITIONAL_MODULES += --with-http_auth_request_module
20 | endif
21 | @@ -398,6 +402,7 @@ define Build/Prepare
22 | $(Prepare/nginx-ts)
23 | $(Prepare/nginx-dav-ext-module)
24 | $(Prepare/nginx-ubus-module)
25 | + $(Prepare/nginx-fancyindex-module)
26 | endef
27 |
28 |
29 | @@ -545,6 +550,22 @@ ifeq ($(CONFIG_NGINX_UBUS),y)
30 | endef
31 | endif
32 |
33 | +ifeq ($(CONFIG_NGINX_FANCYINDEX),y)
34 | + define Download/nginx-fancyindex-module
35 | + VERSION:=56934db14ccfb89d6cb452ea1b4c76225c89b8c1
36 | + SUBDIR:=nginx-fancyindex-module
37 | + FILE:=ngx-fancyindex-$$(VERSION).tar.xz
38 | + URL:=https://github.com/aperezdc/ngx-fancyindex.git
39 | + PROTO:=git
40 | + endef
41 | + $(eval $(call Download,nginx-fancyindex-module))
42 | +
43 | + define Prepare/nginx-fancyindex-module
44 | + $(eval $(Download/nginx-fancyindex-module))
45 | + xzcat $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
46 | + endef
47 | +endif
48 | +
49 | # TODO: remove after a transition period (together with pkg nginx-util):
50 | # It is for smoothly substituting nginx and nginx-mod-luci-ssl (by nginx-ssl
51 | # respectively nginx-mod-luci). Add above commented PROVIDES when removing.
52 |
53 | --- package/feeds/packages/nginx/Config_ssl.in
54 | +++ package/feeds/packages/nginx/Config_ssl.in
55 | @@ -36,6 +36,13 @@ config NGINX_STUB_STATUS
56 | Enable the stub status module which gives some status from the server.
57 | default n
58 |
59 | +config NGINX_FANCYINDEX
60 | + bool
61 | + prompt "Enable FANCYINDEX module"
62 | + help
63 | + Enable FANCYINDEX module.
64 | + default y
65 | +
66 | config NGINX_HTTP_CHARSET
67 | bool
68 | prompt "Enable HTTP charset module"
69 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/patches/fix.patch:
--------------------------------------------------------------------------------
1 | --- a/include/image.mk
2 | +++ b/include/image.mk
3 | @@ -609,6 +609,7 @@ define Device/Build/image
4 | IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
5 | IMAGE_FILESYSTEM="$(1)" \
6 | IMAGE_PREFIX="$(IMAGE_PREFIX)" \
7 | + KERNEL_INITRAMFS_IMAGE="$(subst $(IMG_PREFIX_EXTRA),,$(KERNEL_INITRAMFS_IMAGE))" \
8 | DEVICE_VENDOR="$(DEVICE_VENDOR)" \
9 | DEVICE_MODEL="$(DEVICE_MODEL)" \
10 | DEVICE_VARIANT="$(DEVICE_VARIANT)" \
11 |
12 | --- a/scripts/json_add_image_info.py
13 | +++ b/scripts/json_add_image_info.py
14 | @@ -48,6 +48,7 @@ def get_titles():
15 | "profiles": {
16 | device_id: {
17 | "image_prefix": getenv("IMAGE_PREFIX"),
18 | + "image_initramfs": getenv("KERNEL_INITRAMFS_IMAGE"),
19 | "images": [
20 | {
21 | "type": getenv("IMAGE_TYPE"),
22 |
23 | --- a/scripts/json_overview_image_info.py
24 | +++ b/scripts/json_overview_image_info.py
25 | @@ -47,7 +47,7 @@ def get_initial_output(image_info):
26 |
27 |
28 | if output:
29 | - default_packages, output["arch_packages"] = run(
30 | + default_packages, output["arch_packages"], output["kernel_version"] = run(
31 | [
32 | "make",
33 | "--no-print-directory",
34 | @@ -55,6 +55,7 @@ def get_initial_output(image_info):
35 | "target/linux/",
36 | "val.DEFAULT_PACKAGES",
37 | "val.ARCH_PACKAGES",
38 | + "val.LINUX_VERSION",
39 | ],
40 | stdout=PIPE,
41 | stderr=PIPE,
42 |
43 | --- a/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
44 | +++ b/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
45 | @@ -581,9 +581,7 @@ <%:Interface Configurations%> - <%=vifname and devname.."@"..vifname or devn
46 |
47 | <%:Access control MAC address list%>
48 |
52 | + local list = cfgs["AccessControlList"..(vifidx-1)] or "" %><%=table.concat(list:split(";"), "\n")%>
53 |
54 |
55 | <% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %>
56 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/package/boot/uboot-rockchip/patches/306-rockchip-rk3399-Add-support-for-Rongpin-king3399.patch:
--------------------------------------------------------------------------------
1 | --- /dev/null
2 | +++ b/configs/rongpin-king3399-rk3399_defconfig
3 | @@ -0,0 +1,73 @@
4 | +CONFIG_ARM=y
5 | +CONFIG_SKIP_LOWLEVEL_INIT=y
6 | +CONFIG_COUNTER_FREQUENCY=24000000
7 | +CONFIG_ARCH_ROCKCHIP=y
8 | +CONFIG_TEXT_BASE=0x00200000
9 | +CONFIG_NR_DRAM_BANKS=1
10 | +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
11 | +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
12 | +CONFIG_ENV_OFFSET=0x3F8000
13 | +CONFIG_DEFAULT_DEVICE_TREE="rk3399-nanopi-r4se"
14 | +CONFIG_ROCKCHIP_RK3399=y
15 | +CONFIG_TARGET_EVB_RK3399=y
16 | +CONFIG_SPL_STACK=0x400000
17 | +CONFIG_DEBUG_UART_BASE=0xFF1A0000
18 | +CONFIG_DEBUG_UART_CLOCK=24000000
19 | +CONFIG_SYS_LOAD_ADDR=0x800800
20 | +CONFIG_DEBUG_UART=y
21 | +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-nanopi-r4se.dtb"
22 | +CONFIG_DISPLAY_BOARDINFO_LATE=y
23 | +CONFIG_SPL_MAX_SIZE=0x2e000
24 | +CONFIG_SPL_PAD_TO=0x7f8000
25 | +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
26 | +CONFIG_SPL_BSS_START_ADDR=0x400000
27 | +CONFIG_SPL_BSS_MAX_SIZE=0x2000
28 | +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
29 | +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
30 | +CONFIG_SPL_STACK_R=y
31 | +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000
32 | +CONFIG_TPL=y
33 | +CONFIG_CMD_BOOTZ=y
34 | +CONFIG_CMD_GPT=y
35 | +CONFIG_CMD_MMC=y
36 | +CONFIG_CMD_USB=y
37 | +# CONFIG_CMD_SETEXPR is not set
38 | +CONFIG_CMD_TIME=y
39 | +CONFIG_SPL_OF_CONTROL=y
40 | +CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
41 | +CONFIG_ENV_IS_IN_MMC=y
42 | +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
43 | +CONFIG_ROCKCHIP_GPIO=y
44 | +CONFIG_SYS_I2C_ROCKCHIP=y
45 | +CONFIG_MMC_DW=y
46 | +CONFIG_MMC_DW_ROCKCHIP=y
47 | +CONFIG_MMC_SDHCI=y
48 | +CONFIG_MMC_SDHCI_ROCKCHIP=y
49 | +CONFIG_ETH_DESIGNWARE=y
50 | +CONFIG_GMAC_ROCKCHIP=y
51 | +CONFIG_PMIC_RK8XX=y
52 | +CONFIG_REGULATOR_PWM=y
53 | +CONFIG_REGULATOR_RK8XX=y
54 | +CONFIG_PWM_ROCKCHIP=y
55 | +CONFIG_RAM_ROCKCHIP_LPDDR4=y
56 | +CONFIG_BAUDRATE=1500000
57 | +CONFIG_DEBUG_UART_SHIFT=2
58 | +CONFIG_SYS_NS16550_MEM32=y
59 | +CONFIG_SYSRESET=y
60 | +CONFIG_USB=y
61 | +CONFIG_USB_XHCI_HCD=y
62 | +CONFIG_USB_XHCI_DWC3=y
63 | +CONFIG_USB_EHCI_HCD=y
64 | +CONFIG_USB_EHCI_GENERIC=y
65 | +CONFIG_USB_HOST_ETHER=y
66 | +CONFIG_USB_ETHER_ASIX=y
67 | +CONFIG_USB_ETHER_ASIX88179=y
68 | +CONFIG_USB_ETHER_MCS7830=y
69 | +CONFIG_USB_ETHER_RTL8152=y
70 | +CONFIG_USB_ETHER_SMSC95XX=y
71 | +CONFIG_VIDEO=y
72 | +CONFIG_DISPLAY=y
73 | +CONFIG_VIDEO_ROCKCHIP=y
74 | +CONFIG_DISPLAY_ROCKCHIP_HDMI=y
75 | +CONFIG_SPL_TINY_MEMSET=y
76 | +CONFIG_ERRNO_STR=y
77 |
--------------------------------------------------------------------------------
/devices/common/kernel_6.1.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | rm -rf target/linux package/kernel package/boot package/firmware package/network/config/wifi-scripts
4 |
5 | mkdir new; cp -rf .git new/.git
6 | cd new
7 | git reset --hard origin/master
8 |
9 | cp -rf --parents target/linux package/kernel package/boot package/firmware include/kernel* package/network/config/wifi-scripts config/Config-images.in include/image*.mk scripts/ubinize-image.sh package/utils/bcm27xx-utils package/devel/perf ../
10 | cd -
11 |
12 | sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk
13 |
14 | #sed -i "s/\$(PKG_VERSION)-\$(PKG_RELEASE)/\$(PKG_VERSION)-r\$(PKG_RELEASE)/" include/package-defaults.mk
15 |
16 | cp -rf devices/common/patches/rootfstargz.patch.b devices/common/patches/rootfstargz.patch
17 | cp -rf devices/common/patches/kernel6.1.patch.b devices/common/patches/kernel6.1.patch
18 |
19 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.1
20 |
21 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch
22 |
23 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
24 |
25 | rm -rf target/linux/generic/hack-6.1/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}
26 |
27 | curl -sfL https://raw.githubusercontent.com/openwrt/openwrt/main/include/u-boot.mk -o include/u-boot.mk
28 |
29 | mkdir package/kernel/mt76/patches
30 | curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
31 |
32 | cd feeds/packages
33 | rm -rf libs net/coova-chilli net/xtables-addons net/jool kernel
34 | git_clone_path master https://github.com/openwrt/packages libs
35 | git_clone_path master https://github.com/openwrt/packages net/coova-chilli
36 | git_clone_path master https://github.com/openwrt/packages net/xtables-addons
37 | git_clone_path master https://github.com/openwrt/packages net/jool
38 | git_clone_path master https://github.com/openwrt/packages kernel
39 | cd ../../
40 |
41 | rm -rf package/feeds/kiddin9/quectel_Gobinet package/feeds/kiddin9/fibocom_MHI package/feeds/packages/libpfring
42 |
43 | sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf
44 |
45 | sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab
46 |
47 | sed -i "s/no-lto,/no-lto no-mold,/" include/package.mk
48 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/k2p_32m.patch:
--------------------------------------------------------------------------------
1 | diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dtsi
2 | similarity index 94%
3 | rename from target/linux/ramips/dts/mt7621_phicomm_k2p.dts
4 | rename to target/linux/ramips/dts/mt7621_phicomm_k2p.dtsi
5 | index b18d12608acc7..8f72ac2a48280 100644
6 | --- a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
7 | +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dtsi
8 | @@ -4,9 +4,6 @@
9 | #include
10 |
11 | / {
12 | - compatible = "phicomm,k2p", "mediatek,mt7621-soc";
13 | - model = "Phicomm K2P";
14 | -
15 | aliases {
16 | led-boot = &led_blue;
17 | led-failsafe = &led_blue;
18 | @@ -47,7 +44,7 @@
19 | &spi0 {
20 | status = "okay";
21 |
22 | - flash@0 {
23 | + flash: flash@0 {
24 | compatible = "jedec,spi-nor";
25 | reg = <0>;
26 | spi-max-frequency = <50000000>;
27 | @@ -81,10 +78,9 @@
28 | read-only;
29 | };
30 |
31 | - partition@a0000 {
32 | + firmware: partition@a0000 {
33 | compatible = "denx,uimage";
34 | label = "firmware";
35 | - reg = <0xa0000 0xf60000>;
36 | };
37 | };
38 | };
39 | diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
40 | new file mode 100644
41 | index 0000000000000..5bad6f2d9562d
42 | --- /dev/null
43 | +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
44 | @@ -0,0 +1,10 @@
45 | +#include "mt7621_phicomm_k2p.dtsi"
46 | +
47 | +/ {
48 | + compatible = "phicomm,k2p", "mediatek,mt7621-soc";
49 | + model = "Phicomm K2P";
50 | +};
51 | +
52 | +&firmware {
53 | + reg = <0xa0000 0x1f60000>;
54 | +};
55 | diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p-32m.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p-32m.dts
56 | new file mode 100644
57 | index 0000000000000..5bad6f2d9562d
58 | --- /dev/null
59 | +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p-32m.dts
60 | @@ -0,0 +1,14 @@
61 | +#include "mt7621_phicomm_k2p.dtsi"
62 | +
63 | +/ {
64 | + compatible = "phicomm,k2p-32m", "mediatek,mt7621-soc";
65 | + model = "Phicomm K2P (32M)";
66 | +};
67 | +
68 | +&firmware {
69 | + reg = <0xa0000 0x1f60000>;
70 | +};
71 | +
72 | +&flash {
73 | + broken-flash-reset;
74 | +};
75 | --- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
76 | +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
77 | @@ -28,7 +28,8 @@ case "$board" in
78 | > /sys${DEVPATH}/macaddress
79 | ;;
80 | dlink,dir-853-r1|\
81 | - phicomm,k2p)
82 | + phicomm,k2p|\
83 | + phicomm,k2p-32m)
84 | if [ "$PHYNBR" = "0" ]; then
85 | base_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" -1)
86 | macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
87 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/44-m68s-plus.patch:
--------------------------------------------------------------------------------
1 | --- a/package/boot/uboot-rockchip/Makefile
2 | +++ b/package/boot/uboot-rockchip/Makefile
3 | @@ -186,7 +186,8 @@ define U-Boot/mrkaio-m68s-rk3568
4 | $(U-Boot/Default/rk3568)
5 | NAME:=Mrkaio M68S
6 | BUILD_DEVICES:= \
7 | - ezpro_mrkaio-m68s
8 | + ezpro_mrkaio-m68s \
9 | + ezpro_mrkaio-m68s-plus
10 | endef
11 |
12 | define U-Boot/nanopi-r5c-rk3568
13 |
14 | --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
15 | +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
16 | @@ -8,7 +8,7 @@ rockchip_setup_interfaces()
17 |
18 | case "$board" in
19 | ariaboard,photonicat|\
20 | - ezpro,mrkaio-m68s|\
21 | + ezpro,mrkaio-m68s*|\
22 | firefly,rk3568-roc-pc|\
23 | friendlyarm,nanopi-r2c|\
24 | friendlyarm,nanopi-r2c-plus|\
25 | @@ -54,7 +54,7 @@ rockchip_setup_macs()
26 | local label_mac=""
27 |
28 | case "$board" in
29 | - ezpro,mrkaio-m68s|\
30 | + ezpro,mrkaio-m68s*|\
31 | friendlyarm,nanopc-t6|\
32 | friendlyarm,nanopi-r2c|\
33 | friendlyarm,nanopi-r2s|\
34 |
35 | --- a/target/linux/rockchip/image/armv8.mk
36 | +++ b/target/linux/rockchip/image/armv8.mk
37 | @@ -30,6 +30,16 @@ define Device/ezpro_mrkaio-m68s
38 | endef
39 | TARGET_DEVICES += ezpro_mrkaio-m68s
40 |
41 | +define Device/ezpro_mrkaio-m68s-plus
42 | + DEVICE_VENDOR := EZPRO
43 | + DEVICE_MODEL := Mrkaio M68S Plus
44 | + SOC := rk3568
45 | + UBOOT_DEVICE_NAME := mrkaio-m68s-rk3568
46 | + BOOT_FLOW := pine64-img
47 | + DEVICE_PACKAGES := kmod-r8125 kmod-ata-ahci kmod-ata-ahci-platform kmod-nvme kmod-scsi-core
48 | +endef
49 | +TARGET_DEVICES += ezpro_mrkaio-m68s-plus
50 | +
51 | define Device/firefly_roc-rk3328-cc
52 | DEVICE_VENDOR := Firefly
53 | DEVICE_MODEL := ROC-RK3328-CC
54 |
55 | --- a/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
56 | +++ b/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
57 | @@ -19,11 +19,12 @@
58 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-r4s-enterprise.dtb
59 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-orangepi.dtb
60 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb
61 | -@@ -90,9 +92,19 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bp
62 | +@@ -90,9 +92,20 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bp
63 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
64 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
65 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r68s.dtb
66 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-mrkaio-m68s.dtb
67 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-mrkaio-m68s-plus.dtb
68 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
69 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
70 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
71 |
--------------------------------------------------------------------------------
/devices/qualcommax_ipq807x/diy/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8071-ax3600.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 | /* Copyright (c) 2021, Robert Marko */
3 |
4 | /dts-v1/;
5 |
6 | #include "ipq8071-ax3600.dtsi"
7 |
8 | / {
9 | model = "Xiaomi AX3600";
10 | compatible = "xiaomi,ax3600", "qcom,ipq8074";
11 |
12 | aliases {
13 | /* Aliases as required by u-boot to patch MAC addresses */
14 | ethernet1 = &dp2;
15 | ethernet2 = &dp3;
16 | ethernet3 = &dp4;
17 | ethernet4 = &dp5;
18 | };
19 |
20 | chosen {
21 | bootargs-append = " root=/dev/ubiblock0_1";
22 | };
23 |
24 | leds {
25 | compatible = "gpio-leds";
26 |
27 | led_system_blue: system-blue {
28 | label = "blue:system";
29 | gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
30 | };
31 |
32 | led_system_yellow: system-yellow {
33 | label = "yellow:system";
34 | gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
35 | };
36 |
37 | network-yellow {
38 | label = "yellow:network";
39 | gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
40 | };
41 |
42 | network-blue {
43 | label = "blue:network";
44 | gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
45 | };
46 |
47 | aiot {
48 | label = "blue:aiot";
49 | gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
50 | linux,default-trigger = "phy0tpt";
51 | };
52 | };
53 | };
54 |
55 | &pcie_qmp0 {
56 | status = "okay";
57 | };
58 |
59 | &pcie0 {
60 | status = "okay";
61 |
62 | perst-gpio = <&tlmm 52 GPIO_ACTIVE_HIGH>;
63 |
64 | bridge@0,0 {
65 | reg = <0x00000000 0 0 0 0>;
66 | #address-cells = <3>;
67 | #size-cells = <2>;
68 | ranges;
69 |
70 | wifi0: wifi@1,0 {
71 | status = "okay";
72 |
73 | compatible = "qcom,ath10k";
74 | reg = <0x00010000 0 0 0 0>;
75 |
76 | qcom,ath10k-calibration-variant = "Xiaomi-AX3600";
77 | nvmem-cell-names = "calibration";
78 | nvmem-cells = <&caldata_qca9889>;
79 | };
80 | };
81 | };
82 |
83 | &wifi {
84 | qcom,ath11k-calibration-variant = "Xiaomi-AX3600";
85 | };
86 |
87 | &qpic_nand {
88 | /delete-node/ partitions;
89 |
90 | nand@0 {
91 | /delete-node/ partitions;
92 |
93 | partitions {
94 | compatible = "qcom,smem-part";
95 | };
96 | };
97 | };
98 |
99 | &dp2 {
100 | /delete-property/ nvmem-cells;
101 | /delete-property/ nvmem-cell-names;
102 | };
103 |
104 | &dp3 {
105 | /delete-property/ nvmem-cells;
106 | /delete-property/ nvmem-cell-names;
107 | };
108 |
109 | &dp4 {
110 | /delete-property/ nvmem-cells;
111 | /delete-property/ nvmem-cell-names;
112 | };
113 |
114 | &dp5 {
115 | /delete-property/ nvmem-cells;
116 | /delete-property/ nvmem-cell-names;
117 | };
118 |
119 | &wifi0 {
120 | /delete-property/ nvmem-cells;
121 | /delete-property/ nvmem-cell-names;
122 | };
--------------------------------------------------------------------------------
/devices/common/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_GRUB_TIMEOUT="0"
3 | CONFIG_GRUB_CONSOLE=n
4 | CONFIG_TARGET_ROOTFS_EXT4FS=n
5 |
6 | CONFIG_TARGET_ROOTFS_CPIOGZ=n
7 | CONFIG_LUCI_CSSTIDY=n
8 | CONFIG_SIGNED_PACKAGES=n
9 | CONFIG_SIGNATURE_CHECK=n
10 |
11 | # 设置固件大小:
12 | CONFIG_TARGET_ROOTFS_PARTSIZE=1004
13 |
14 | CONFIG_ALL_NONSHARED=y
15 |
16 | CONFIG_IB=y
17 | CONFIG_IB_STANDALONE=y
18 | CONFIG_JSON_OVERVIEW_IMAGE_INFO=y
19 |
20 | CONFIG_FEED_telephony=n
21 |
22 | CONFIG_KERNEL_WERROR=n
23 |
24 | # IPv6支持:
25 | CONFIG_IPV6=y
26 |
27 | # Applications
28 |
29 |
30 | # Themes
31 |
32 | CONFIG_PACKAGE_luci-theme-bootstrap=y
33 |
34 |
35 | # 其他需要安装的软件包:
36 |
37 | CONFIG_PACKAGE_dnsmasq=n
38 | CONFIG_PACKAGE_dnsmasq-full=y
39 | CONFIG_PACKAGE_dnsmasq_full_dhcp=y
40 | CONFIG_PACKAGE_dnsmasq_full_ipset=y
41 |
42 | CONFIG_NGINX_DAV=y
43 | CONFIG_PACKAGE_luci-base=y
44 | CONFIG_PACKAGE_luci-compat=y
45 | CONFIG_PACKAGE_luci-lib-ipkg=y
46 | CONFIG_LUCI_LANG_zh_Hans=y
47 | CONFIG_LUCI_LANG_en=y
48 | CONFIG_PACKAGE_coremark=y
49 | CONFIG_DEVEL=y
50 | CONFIG_CCACHE=n
51 | CONFIG_TOOLCHAINOPTS=y
52 | CONFIG_COREMARK_OPTIMIZE_O3=y
53 | CONFIG_COREMARK_ENABLE_MULTITHREADING=y
54 | CONFIG_COREMARK_NUMBER_OF_THREADS=16
55 | CONFIG_PACKAGE_zoneinfo-asia=y
56 | CONFIG_PACKAGE_my-default-settings=y
57 | CONFIG_PACKAGE_wget-ssl=y
58 | CONFIG_PACKAGE_curl=y
59 | CONFIG_PACKAGE_htop=y
60 | CONFIG_PACKAGE_nano=y
61 | CONFIG_XRAY_PROVIDE_V2RAY=y
62 | CONFIG_V2RAY_CORE_COMPRESS_UPX=n
63 | CONFIG_XRAY_CORE_COMPRESS_UPX=n
64 | CONFIG_PACKAGE_zram-swap=y
65 | CONFIG_PACKAGE_kmod-lib-lz4=y
66 | CONFIG_PACKAGE_kmod-lib-zstd=y
67 | CONFIG_NODEJS_14=y
68 |
69 | CONFIG_OPENSSL_OPTIMIZE_SPEED=y
70 | CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
71 | CONFIG_OPENSSL_ENGINE_BUILTIN=y
72 | CONFIG_OPENSSL_ENGINE_BUILTIN_AFALG=y
73 | CONFIG_OPENSSL_ENGINE_BUILTIN_DEVCRYPTO=y
74 |
75 | CONFIG_BUSYBOX_CUSTOM=y
76 | CONFIG_BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_REPL_STR=y
77 | CONFIG_BUSYBOX_CONFIG_FEATURE_CROND_SPECIAL_TIMES=y
78 | CONFIG_BUSYBOX_CONFIG_FEATURE_SYSLOG_INFO=y
79 |
80 | CONFIG_PACKAGE_bash=y
81 | CONFIG_PACKAGE_ca-bundle=y
82 |
83 | CONFIG_KERNEL_CGROUP_DEVICE=y
84 | CONFIG_KERNEL_CGROUP_FREEZER=y
85 | CONFIG_KERNEL_NET_CLS_CGROUP=y
86 | CONFIG_KERNEL_CGROUP_NET_PRIO=y
87 | CONFIG_KERNEL_MEMCG_SWAP_ENABLED=y
88 | CONFIG_KERNEL_CFQ_GROUP_IOSCHED=y
89 | CONFIG_KERNEL_CGROUP_PERF=y
90 | CONFIG_KERNEL_CGROUP_HUGETLB=y
91 | CONFIG_KERNEL_EXT4_FS_POSIX_ACL=y
92 | CONFIG_KERNEL_EXT4_FS_SECURITY=y
93 | CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y
94 |
95 | CONFIG_PACKAGE_kmod-sprd_pcie=n
96 | CONFIG_PACKAGE_kmod-drm-nouveau=n
97 |
98 | CONFIG_IMAGEOPT=y
99 | CONFIG_VERSIONOPT=y
100 |
101 | CONFIG_VERSION_MANUFACTURER="Kiddin'"
102 | CONFIG_VERSION_FILENAMES=n
103 | CONFIG_VERSION_CODE_FILENAMES=n
104 |
105 |
106 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/package/boot/uboot-rockchip/patches/316-rockchip-rk3566-Add-support-for-panther-x2.patch:
--------------------------------------------------------------------------------
1 | --- /dev/null
2 | +++ b/configs/panther-x2-rk3566_defconfig
3 | @@ -0,0 +1,87 @@
4 | +CONFIG_ARM=y
5 | +CONFIG_SKIP_LOWLEVEL_INIT=y
6 | +CONFIG_COUNTER_FREQUENCY=24000000
7 | +CONFIG_ARCH_ROCKCHIP=y
8 | +CONFIG_TEXT_BASE=0x00a00000
9 | +CONFIG_SPL_LIBCOMMON_SUPPORT=y
10 | +CONFIG_SPL_LIBGENERIC_SUPPORT=y
11 | +CONFIG_NR_DRAM_BANKS=2
12 | +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
13 | +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc00000
14 | +CONFIG_DEFAULT_DEVICE_TREE="rk3568-evb"
15 | +CONFIG_ROCKCHIP_RK3568=y
16 | +CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
17 | +CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y
18 | +CONFIG_SPL_MMC=y
19 | +CONFIG_SPL_SERIAL=y
20 | +CONFIG_SPL_STACK_R_ADDR=0x600000
21 | +CONFIG_TARGET_EVB_RK3568=y
22 | +CONFIG_SPL_STACK=0x400000
23 | +CONFIG_DEBUG_UART_BASE=0xFE660000
24 | +CONFIG_DEBUG_UART_CLOCK=24000000
25 | +CONFIG_SYS_LOAD_ADDR=0xc00800
26 | +CONFIG_DEBUG_UART=y
27 | +CONFIG_FIT=y
28 | +CONFIG_FIT_VERBOSE=y
29 | +CONFIG_SPL_LOAD_FIT=y
30 | +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-evb.dtb"
31 | +# CONFIG_DISPLAY_CPUINFO is not set
32 | +CONFIG_DISPLAY_BOARDINFO_LATE=y
33 | +CONFIG_SPL_MAX_SIZE=0x40000
34 | +CONFIG_SPL_PAD_TO=0x7f8000
35 | +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
36 | +CONFIG_SPL_BSS_START_ADDR=0x4000000
37 | +CONFIG_SPL_BSS_MAX_SIZE=0x4000
38 | +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
39 | +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
40 | +CONFIG_SPL_STACK_R=y
41 | +CONFIG_SPL_ATF=y
42 | +CONFIG_CMD_GPIO=y
43 | +CONFIG_CMD_GPT=y
44 | +CONFIG_CMD_I2C=y
45 | +CONFIG_CMD_MMC=y
46 | +CONFIG_CMD_USB=y
47 | +CONFIG_CMD_REGULATOR=y
48 | +# CONFIG_CMD_SETEXPR is not set
49 | +# CONFIG_SPL_DOS_PARTITION is not set
50 | +CONFIG_SPL_OF_CONTROL=y
51 | +CONFIG_OF_LIVE=y
52 | +CONFIG_NET_RANDOM_ETHADDR=y
53 | +CONFIG_SPL_REGMAP=y
54 | +CONFIG_SPL_SYSCON=y
55 | +CONFIG_SPL_CLK=y
56 | +CONFIG_CLK_SCMI=y
57 | +CONFIG_RESET_SCMI=y
58 | +CONFIG_ROCKCHIP_GPIO=y
59 | +CONFIG_SYS_I2C_ROCKCHIP=y
60 | +CONFIG_MISC=y
61 | +CONFIG_SUPPORT_EMMC_RPMB=y
62 | +CONFIG_MMC_DW=y
63 | +CONFIG_MMC_DW_ROCKCHIP=y
64 | +CONFIG_MMC_SDHCI=y
65 | +CONFIG_MMC_SDHCI_SDMA=y
66 | +CONFIG_MMC_SDHCI_ROCKCHIP=y
67 | +CONFIG_ETH_DESIGNWARE=y
68 | +CONFIG_GMAC_ROCKCHIP=y
69 | +CONFIG_DM_PMIC=y
70 | +CONFIG_PMIC_RK8XX=y
71 | +CONFIG_SPL_PMIC_RK8XX=y
72 | +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
73 | +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
74 | +CONFIG_REGULATOR_PWM=y
75 | +CONFIG_REGULATOR_RK8XX=y
76 | +CONFIG_PWM_ROCKCHIP=y
77 | +CONFIG_SPL_RAM=y
78 | +CONFIG_DM_RESET=y
79 | +CONFIG_BAUDRATE=1500000
80 | +CONFIG_DEBUG_UART_SHIFT=2
81 | +CONFIG_SYS_NS16550_MEM32=y
82 | +CONFIG_SYSRESET=y
83 | +CONFIG_USB=y
84 | +CONFIG_USB_XHCI_HCD=y
85 | +CONFIG_USB_XHCI_DWC3=y
86 | +CONFIG_USB_EHCI_HCD=y
87 | +CONFIG_USB_EHCI_GENERIC=y
88 | +CONFIG_USB_DWC3=y
89 | +CONFIG_USB_DWC3_GENERIC=y
90 | +CONFIG_ERRNO_STR=y
91 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/package/boot/uboot-rockchip/patches/317-rockchip-rk3566-Add-support-for-seewo-sv21-3568.patch:
--------------------------------------------------------------------------------
1 | --- /dev/null
2 | +++ b/configs/seewo-sv21-rk3568_defconfig
3 | @@ -0,0 +1,87 @@
4 | +CONFIG_ARM=y
5 | +CONFIG_SKIP_LOWLEVEL_INIT=y
6 | +CONFIG_COUNTER_FREQUENCY=24000000
7 | +CONFIG_ARCH_ROCKCHIP=y
8 | +CONFIG_TEXT_BASE=0x00a00000
9 | +CONFIG_SPL_LIBCOMMON_SUPPORT=y
10 | +CONFIG_SPL_LIBGENERIC_SUPPORT=y
11 | +CONFIG_NR_DRAM_BANKS=2
12 | +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
13 | +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc00000
14 | +CONFIG_DEFAULT_DEVICE_TREE="rk3568-evb"
15 | +CONFIG_ROCKCHIP_RK3568=y
16 | +CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
17 | +CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y
18 | +CONFIG_SPL_MMC=y
19 | +CONFIG_SPL_SERIAL=y
20 | +CONFIG_SPL_STACK_R_ADDR=0x600000
21 | +CONFIG_TARGET_EVB_RK3568=y
22 | +CONFIG_SPL_STACK=0x400000
23 | +CONFIG_DEBUG_UART_BASE=0xFE660000
24 | +CONFIG_DEBUG_UART_CLOCK=24000000
25 | +CONFIG_SYS_LOAD_ADDR=0xc00800
26 | +CONFIG_DEBUG_UART=y
27 | +CONFIG_FIT=y
28 | +CONFIG_FIT_VERBOSE=y
29 | +CONFIG_SPL_LOAD_FIT=y
30 | +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-evb.dtb"
31 | +# CONFIG_DISPLAY_CPUINFO is not set
32 | +CONFIG_DISPLAY_BOARDINFO_LATE=y
33 | +CONFIG_SPL_MAX_SIZE=0x40000
34 | +CONFIG_SPL_PAD_TO=0x7f8000
35 | +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
36 | +CONFIG_SPL_BSS_START_ADDR=0x4000000
37 | +CONFIG_SPL_BSS_MAX_SIZE=0x4000
38 | +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
39 | +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
40 | +CONFIG_SPL_STACK_R=y
41 | +CONFIG_SPL_ATF=y
42 | +CONFIG_CMD_GPIO=y
43 | +CONFIG_CMD_GPT=y
44 | +CONFIG_CMD_I2C=y
45 | +CONFIG_CMD_MMC=y
46 | +CONFIG_CMD_USB=y
47 | +CONFIG_CMD_REGULATOR=y
48 | +# CONFIG_CMD_SETEXPR is not set
49 | +# CONFIG_SPL_DOS_PARTITION is not set
50 | +CONFIG_SPL_OF_CONTROL=y
51 | +CONFIG_OF_LIVE=y
52 | +CONFIG_NET_RANDOM_ETHADDR=y
53 | +CONFIG_SPL_REGMAP=y
54 | +CONFIG_SPL_SYSCON=y
55 | +CONFIG_SPL_CLK=y
56 | +CONFIG_CLK_SCMI=y
57 | +CONFIG_RESET_SCMI=y
58 | +CONFIG_ROCKCHIP_GPIO=y
59 | +CONFIG_SYS_I2C_ROCKCHIP=y
60 | +CONFIG_MISC=y
61 | +CONFIG_SUPPORT_EMMC_RPMB=y
62 | +CONFIG_MMC_DW=y
63 | +CONFIG_MMC_DW_ROCKCHIP=y
64 | +CONFIG_MMC_SDHCI=y
65 | +CONFIG_MMC_SDHCI_SDMA=y
66 | +CONFIG_MMC_SDHCI_ROCKCHIP=y
67 | +CONFIG_ETH_DESIGNWARE=y
68 | +CONFIG_GMAC_ROCKCHIP=y
69 | +CONFIG_DM_PMIC=y
70 | +CONFIG_PMIC_RK8XX=y
71 | +CONFIG_SPL_PMIC_RK8XX=y
72 | +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
73 | +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
74 | +CONFIG_REGULATOR_PWM=y
75 | +CONFIG_REGULATOR_RK8XX=y
76 | +CONFIG_PWM_ROCKCHIP=y
77 | +CONFIG_SPL_RAM=y
78 | +CONFIG_DM_RESET=y
79 | +CONFIG_BAUDRATE=1500000
80 | +CONFIG_DEBUG_UART_SHIFT=2
81 | +CONFIG_SYS_NS16550_MEM32=y
82 | +CONFIG_SYSRESET=y
83 | +CONFIG_USB=y
84 | +CONFIG_USB_XHCI_HCD=y
85 | +CONFIG_USB_XHCI_DWC3=y
86 | +CONFIG_USB_EHCI_HCD=y
87 | +CONFIG_USB_EHCI_GENERIC=y
88 | +CONFIG_USB_DWC3=y
89 | +CONFIG_USB_DWC3_GENERIC=y
90 | +CONFIG_ERRNO_STR=y
91 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/02-ax6000.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/image/filogic.mk
2 | +++ b/target/linux/mediatek/image/filogic.mk
3 | @@ -442,6 +442,24 @@ endif
4 | endef
5 | TARGET_DEVICES += xiaomi_mi-router-wr30u-ubootmod
6 |
7 | +define Device/xiaomi_redmi-router-ax6000
8 | + DEVICE_VENDOR := Xiaomi
9 | + DEVICE_MODEL := Redmi Router AX6000
10 | + DEVICE_DTS := mt7986a-xiaomi-redmi-router-ax6000
11 | + DEVICE_DTS_DIR := ../dts
12 | + DEVICE_PACKAGES := kmod-leds-ws2812b kmod-mt7986-firmware mt7986-wo-firmware
13 | + SUPPORTED_DEVICES := xiaomi,redmi-router-ax6000
14 | + UBINIZE_OPTS := -E 5
15 | + BLOCKSIZE := 128k
16 | + PAGESIZE := 2048
17 | + IMAGE_SIZE := 112640k
18 | + KERNEL_IN_UBI := 1
19 | + IMAGES += factory.bin
20 | + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
21 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
22 | +endef
23 | +TARGET_DEVICES += xiaomi_redmi-router-ax6000
24 | +
25 | define Device/xiaomi_redmi-router-ax6000-stock
26 | DEVICE_VENDOR := Xiaomi
27 | DEVICE_MODEL := Redmi Router AX6000 (stock layout)
28 |
29 | new file mode 100644
30 | index 0000000000000..759baae3aeb18
31 | --- /dev/null
32 | +++ b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dts
33 | @@ -0,0 +1,32 @@
34 | +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
35 | +
36 | +/dts-v1/;
37 | +#include "mt7986a-xiaomi-redmi-router-ax6000.dtsi"
38 | +
39 | +/ {
40 | + model = "Xiaomi Redmi Router AX6000";
41 | + compatible = "xiaomi,redmi-router-ax6000-ubootmod", "mediatek,mt7986a";
42 | +};
43 | +
44 | +&spi_nand_flash {
45 | + mediatek,nmbm;
46 | + mediatek,bmt-max-ratio = <1>;
47 | + mediatek,bmt-max-reserved-blocks = <64>;
48 | +};
49 | +
50 | +&partitions {
51 | + partition@580000 {
52 | + label = "crash";
53 | + reg = <0x580000 0x40000>;
54 | + };
55 | +
56 | + partition@5c0000 {
57 | + label = "crash_log";
58 | + reg = <0x5c0000 0x40000>;
59 | + };
60 | +
61 | + partition@600000 {
62 | + label = "ubi";
63 | + reg = <0x600000 0x6e00000>;
64 | + };
65 | +};
66 |
67 | --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
68 | +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
69 | @@ -26,6 +26,7 @@ xiaomi,mi-router-wr30u-ubootmod)
70 | ucidef_set_led_netdev "wan" "wan" "blue:network" "wan"
71 | ;;
72 | xiaomi,redmi-router-ax6000-stock|\
73 | +xiaomi,redmi-router-ax6000|\
74 | xiaomi,redmi-router-ax6000-ubootmod)
75 | ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
76 | ;;
77 |
78 | --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
79 | +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
80 | @@ -56,6 +56,7 @@ mediatek_setup_interfaces()
81 | xiaomi,mi-router-wr30u|\
82 | xiaomi,mi-router-wr30u-ubootmod|\
83 | xiaomi,redmi-router-ax6000-stock|\
84 | + xiaomi,redmi-router-ax6000|\
85 | xiaomi,redmi-router-ax6000-ubootmod)
86 | ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" wan
87 | ;;
--------------------------------------------------------------------------------
/devices/x86_64/patches/image.patch:
--------------------------------------------------------------------------------
1 | From c7bc056650227ba6003414356f57b33cdb2603b7 Mon Sep 17 00:00:00 2001
2 | From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
3 | Date: Sat, 23 Apr 2022 18:38:12 +0800
4 | Subject: [PATCH] Update Makefile
5 |
6 | ---
7 | target/linux/x86/image/Makefile | 12 ++++--------
8 | 1 file changed, 4 insertions(+), 8 deletions(-)
9 |
10 | diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile
11 | index 322131c2a488..0b4ed1d272eb 100644
12 | --- a/target/linux/x86/image/Makefile
13 | +++ b/target/linux/x86/image/Makefile
14 | @@ -108,22 +108,18 @@ define Device/Default
15 | IMAGE/combined.img := grub-config pc | combined | grub-install | append-metadata
16 | IMAGE/combined.img.gz := grub-config pc | combined | grub-install | gzip | append-metadata
17 | IMAGE/combined.vdi := grub-config pc | combined | grub-install | qemu-image vdi
18 | - IMAGE/combined.vmdk := grub-config pc | combined | grub-install | qemu-image vmdk
19 | + IMAGE/combined.vmdk.zip := grub-config pc | combined | grub-install | qemu-exsi vmdk -o adapter_type=lsilogic -o subformat=monolithicFlat
20 | IMAGE/combined.vhdx := grub-config pc | combined | grub-install | qemu-image vhdx -o subformat=dynamic
21 | - IMAGE/rootfs.img := append-rootfs | pad-to $(ROOTFS_PARTSIZE)
22 | - IMAGE/rootfs.img.gz := append-rootfs | pad-to $(ROOTFS_PARTSIZE) | gzip
23 | ARTIFACT/image-efi.iso := grub-config iso | iso efi
24 | IMAGE/combined-efi.img := grub-config efi | combined efi | grub-install efi | append-metadata
25 | IMAGE/combined-efi.img.gz := grub-config efi | combined efi | grub-install efi | gzip | append-metadata
26 | IMAGE/combined-efi.vdi := grub-config efi | combined efi | grub-install efi | qemu-image vdi
27 | - IMAGE/combined-efi.vmdk := grub-config efi | combined efi | grub-install efi | qemu-image vmdk
28 | + IMAGE/combined-efi.vmdk.zip := grub-config efi | combined efi | grub-install efi | qemu-exsi vmdk -o adapter_type=lsilogic -o subformat=monolithicFlat
29 | IMAGE/combined-efi.vhdx := grub-config efi | combined efi | grub-install efi | qemu-image vhdx -o subformat=dynamic
30 | ifeq ($(CONFIG_TARGET_IMAGES_GZIP),y)
31 | - IMAGES-y := rootfs.img.gz
32 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.img.gz
33 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.img.gz
34 | else
35 | - IMAGES-y := rootfs.img
36 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.img
37 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.img
38 | endif
39 | @@ -139,8 +135,8 @@ define Device/Default
40 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vdi
41 | endif
42 | ifeq ($(CONFIG_VMDK_IMAGES),y)
43 | - IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vmdk
44 | - IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vmdk
45 | + IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vmdk.zip
46 | + IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vmdk.zip
47 | endif
48 | ifeq ($(CONFIG_VHDX_IMAGES),y)
49 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vhdx
50 |
--------------------------------------------------------------------------------
/devices/x86_generic/patches/image.patch:
--------------------------------------------------------------------------------
1 | From c7bc056650227ba6003414356f57b33cdb2603b7 Mon Sep 17 00:00:00 2001
2 | From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
3 | Date: Sat, 23 Apr 2022 18:38:12 +0800
4 | Subject: [PATCH] Update Makefile
5 |
6 | ---
7 | target/linux/x86/image/Makefile | 12 ++++--------
8 | 1 file changed, 4 insertions(+), 8 deletions(-)
9 |
10 | diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile
11 | index 322131c2a488..0b4ed1d272eb 100644
12 | --- a/target/linux/x86/image/Makefile
13 | +++ b/target/linux/x86/image/Makefile
14 | @@ -108,22 +108,18 @@ define Device/Default
15 | IMAGE/combined.img := grub-config pc | combined | grub-install | append-metadata
16 | IMAGE/combined.img.gz := grub-config pc | combined | grub-install | gzip | append-metadata
17 | IMAGE/combined.vdi := grub-config pc | combined | grub-install | qemu-image vdi
18 | - IMAGE/combined.vmdk := grub-config pc | combined | grub-install | qemu-image vmdk
19 | + IMAGE/combined.vmdk.zip := grub-config pc | combined | grub-install | qemu-exsi vmdk -o adapter_type=lsilogic -o subformat=monolithicFlat
20 | IMAGE/combined.vhdx := grub-config pc | combined | grub-install | qemu-image vhdx -o subformat=dynamic
21 | - IMAGE/rootfs.img := append-rootfs | pad-to $(ROOTFS_PARTSIZE)
22 | - IMAGE/rootfs.img.gz := append-rootfs | pad-to $(ROOTFS_PARTSIZE) | gzip
23 | ARTIFACT/image-efi.iso := grub-config iso | iso efi
24 | IMAGE/combined-efi.img := grub-config efi | combined efi | grub-install efi | append-metadata
25 | IMAGE/combined-efi.img.gz := grub-config efi | combined efi | grub-install efi | gzip | append-metadata
26 | IMAGE/combined-efi.vdi := grub-config efi | combined efi | grub-install efi | qemu-image vdi
27 | - IMAGE/combined-efi.vmdk := grub-config efi | combined efi | grub-install efi | qemu-image vmdk
28 | + IMAGE/combined-efi.vmdk.zip := grub-config efi | combined efi | grub-install efi | qemu-exsi vmdk -o adapter_type=lsilogic -o subformat=monolithicFlat
29 | IMAGE/combined-efi.vhdx := grub-config efi | combined efi | grub-install efi | qemu-image vhdx -o subformat=dynamic
30 | ifeq ($(CONFIG_TARGET_IMAGES_GZIP),y)
31 | - IMAGES-y := rootfs.img.gz
32 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.img.gz
33 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.img.gz
34 | else
35 | - IMAGES-y := rootfs.img
36 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.img
37 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.img
38 | endif
39 | @@ -139,8 +135,8 @@ define Device/Default
40 | IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vdi
41 | endif
42 | ifeq ($(CONFIG_VMDK_IMAGES),y)
43 | - IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vmdk
44 | - IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vmdk
45 | + IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vmdk.zip
46 | + IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vmdk.zip
47 | endif
48 | ifeq ($(CONFIG_VHDX_IMAGES),y)
49 | IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vhdx
50 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-mrkaio-m68s-plus.dts:
--------------------------------------------------------------------------------
1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 | // Copyright (c) 2023 mleaf
3 |
4 | /dts-v1/;
5 |
6 | #include "rk3568-mrkaio-m68s.dtsi"
7 |
8 | / {
9 | model = "EZPRO Mrkaio M68S PLUS";
10 | compatible = "ezpro,mrkaio-m68s-plus", "rockchip,rk3568";
11 |
12 | aliases {
13 | led-boot = &led_sys;
14 | led-failsafe = &led_sys;
15 | led-running = &led_sys;
16 | led-upgrade = &led_sys;
17 | };
18 |
19 | leds {
20 | compatible = "gpio-leds";
21 | pinctrl-names = "default";
22 | pinctrl-0 = <&led_sys_en>;
23 |
24 | led_sys: sys {
25 | label = "red:sys";
26 | gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
27 | };
28 | };
29 |
30 | switch_otg: switch-otg {
31 | compatible = "regulator-fixed";
32 | gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
33 | pinctrl-names = "default";
34 | pinctrl-0 = <&usb_otg_switch_en>;
35 | regulator-name = "switch_otg";
36 | regulator-always-on;
37 | };
38 |
39 | vcc3v3_pcie: vcc3v3-pcie {
40 | compatible = "regulator-fixed";
41 | enable-active-high;
42 | gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
43 | regulator-name = "vcc3v3_pcie";
44 | regulator-min-microvolt = <3300000>;
45 | regulator-max-microvolt = <3300000>;
46 | startup-delay-us = <5000>;
47 | vin-supply = <&dc_12v>;
48 | };
49 | };
50 |
51 | &pcie2x1 {
52 | num-viewport = <4>;
53 | reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
54 | status = "okay";
55 |
56 | pcie@0,0 {
57 | reg = <0x00000000 0 0 0 0>;
58 | #address-cells = <3>;
59 | #size-cells = <2>;
60 |
61 | r8125_1: pcie@01,0 {
62 | reg = <0x000000 0 0 0 0>;
63 | };
64 | };
65 | };
66 |
67 | &pcie30phy {
68 | data-lanes = <1 2>;
69 | status = "okay";
70 | };
71 |
72 | &pcie3x1 {
73 | num-viewport = <4>;
74 | reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
75 | status = "okay";
76 |
77 | pcie@0,0 {
78 | reg = <0x00100000 0 0 0 0>;
79 | #address-cells = <3>;
80 | #size-cells = <2>;
81 |
82 | r8125_2: pcie@10,0 {
83 | reg = <0x000000 0 0 0 0>;
84 | };
85 | };
86 | };
87 |
88 | &pcie3x2 {
89 | num-lanes = <1>;
90 | max-link-speed = <2>;
91 | num-ib-windows = <8>;
92 | num-ob-windows = <8>;
93 | num-viewport = <4>;
94 | reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
95 | vpcie3v3-supply = <&vcc3v3_pcie>;
96 | status = "okay";
97 | };
98 |
99 | &pinctrl {
100 | leds {
101 | led_sys_en: led_sys_en {
102 | rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
103 | };
104 | };
105 |
106 | usb {
107 | vcc5v0_usb_host_en: vcc5v0_usb_host_en {
108 | rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
109 | };
110 |
111 | vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
112 | rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
113 | };
114 |
115 | usb_otg_switch_en: usb-otg-switch_en {
116 | rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
117 | };
118 | };
119 | };
120 |
--------------------------------------------------------------------------------
/devices/mediatek_filogic/patches/08-cmcc_rax3000m.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
2 | +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
3 | @@ -41,7 +41,7 @@ mediatek_setup_interfaces()
4 | bananapi,bpi-r4)
5 | ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 eth1" "wan eth2"
6 | ;;
7 | - cmcc,rax3000m|\
8 | + cmcc,rax3000m*|\
9 | h3c,magic-nx30-pro|\
10 | zbtlink,zbt-z8103ax)
11 | ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
12 |
13 | --- a/target/linux/mediatek/image/filogic.mk
14 | +++ b/target/linux/mediatek/image/filogic.mk
15 | @@ -280,7 +280,38 @@ define Device/cmcc_rax3000m
16 | ARTIFACT/nand-preloader.bin := mt7981-bl2 spim-nand-ddr4
17 | ARTIFACT/nand-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-nand
18 | endef
19 | -TARGET_DEVICES += cmcc_rax3000m
20 | +
21 | +define Device/cmcc_rax3000m-nand
22 | + DEVICE_VENDOR := CMCC
23 | + DEVICE_MODEL := RAX3000M NAND
24 | + DEVICE_DTS := mt7981b-cmcc-rax3000m-nand
25 | + DEVICE_DTS_DIR := ../dts
26 | + DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
27 | + e2fsprogs f2fsck mkf2fs
28 | + UBINIZE_OPTS := -E 5
29 | + BLOCKSIZE := 128k
30 | + PAGESIZE := 2048
31 | + IMAGE_SIZE := 116736k
32 | + KERNEL_IN_UBI := 1
33 | + IMAGES += factory.bin
34 | + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
35 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
36 | +endef
37 | +TARGET_DEVICES += cmcc_rax3000m-nand
38 | +
39 | +define Device/cmcc_rax3000m-emmc
40 | + DEVICE_VENDOR := CMCC
41 | + DEVICE_MODEL := RAX3000M eMMC
42 | + DEVICE_DTS := mt7981b-cmcc-rax3000m-emmc
43 | + DEVICE_DTS_DIR := ../dts
44 | + DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
45 | + e2fsprogs f2fsck mkf2fs losetup kmod-fs-f2fs kmod-mmc
46 | + KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
47 | + KERNEL_INITRAMFS := kernel-bin | lzma | \
48 | + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
49 | + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
50 | +endef
51 | +TARGET_DEVICES += cmcc_rax3000m-emmc
52 |
53 | define Device/confiabits_mt7981
54 | DEVICE_VENDOR := Confiabits
55 |
56 | --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
57 | +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
58 | @@ -119,6 +119,7 @@ platform_do_upgrade() {
59 | yuncore,ax835)
60 | default_do_upgrade "$1"
61 | ;;
62 | + cmcc,rax3000m-emmc|\
63 | glinet,gl-mt2500|\
64 | glinet,gl-mt6000|\
65 | glinet,gl-x3000|\
66 | @@ -215,6 +216,7 @@ platform_copy_config() {
67 | ;;
68 | esac
69 | ;;
70 | + cmcc,rax3000m-emmc|\
71 | acer,predator-w6|\
72 | glinet,gl-mt2500|\
73 | glinet,gl-mt6000|\
74 |
75 | --- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/firmware/11-mt76-caldata
76 | +++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/firmware/11-mt76-caldata
77 | @@ -31,6 +31,7 @@ case "$FIRMWARE" in
78 | ;;
79 | esac
80 | ;;
81 | + cmcc,rax3000m-emmc|\
82 | ubnt,unifi-6-plus)
83 | caldata_extract_mmc "factory" 0x0 0x1000
84 | ;;
--------------------------------------------------------------------------------
/devices/qualcommax_ipq807x/patches/04-stock.patch:
--------------------------------------------------------------------------------
1 | --- a/target/linux/qualcommax/image/ipq807x.mk
2 | +++ b/target/linux/qualcommax/image/ipq807x.mk
3 | @@ -256,12 +256,7 @@ define Device/xiaomi_ax3600
4 | PAGESIZE := 2048
5 | DEVICE_DTS_CONFIG := config@ac04
6 | SOC := ipq8071
7 | - KERNEL_SIZE := 36608k
8 | DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
9 | -ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
10 | - ARTIFACTS := initramfs-factory.ubi
11 | - ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
12 | -endif
13 | endef
14 | TARGET_DEVICES += xiaomi_ax3600
15 |
16 | @@ -274,13 +269,8 @@ define Device/xiaomi_ax9000
17 | PAGESIZE := 2048
18 | DEVICE_DTS_CONFIG := config@hk14
19 | SOC := ipq8072
20 | - KERNEL_SIZE := 57344k
21 | DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
22 | kmod-ath10k-ct ath10k-firmware-qca9887-ct
23 | -ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
24 | - ARTIFACTS := initramfs-factory.ubi
25 | - ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
26 | -endif
27 | endef
28 | TARGET_DEVICES += xiaomi_ax9000
29 |
30 |
31 | --- a/target/linux/qualcommax/ipq807x/base-files/etc/init.d/bootcount
32 | +++ b/target/linux/qualcommax/ipq807x/base-files/etc/init.d/bootcount
33 | @@ -9,5 +9,13 @@ boot() {
34 | # Unset changed flag after sysupgrade complete
35 | fw_setenv changed
36 | ;;
37 | + redmi,ax6|\
38 | + xiaomi,ax3600|\
39 | + xiaomi,ax9000)
40 | + # OTA handling should not be used. Reset it just in case.
41 | + fw_setenv flag_ota_reboot 0
42 | + # Not strictly needed but useful to handle partition crash condition
43 | + fw_setenv flag_boot_success 1
44 | + ;;
45 | esac
46 | }
47 |
48 |
49 | --- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
50 | +++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
51 | @@ -83,20 +83,29 @@ platform_do_upgrade() {
52 | redmi,ax6|\
53 | xiaomi,ax3600|\
54 | xiaomi,ax9000)
55 | - # Make sure that UART is enabled
56 | - fw_setenv boot_wait on
57 | - fw_setenv uart_en 1
58 | + part_num="$(fw_printenv -n flag_boot_rootfs)"
59 | + if [ "$part_num" -eq "1" ]; then
60 | + CI_UBIPART="rootfs_1"
61 | + target_num=1
62 | + # Reset fail flag for the current partition
63 | + # With both partition set to fail, the partition 2 (bit 1)
64 | + # is loaded
65 | + fw_setenv flag_try_sys2_failed 0
66 | + else
67 | + CI_UBIPART="rootfs"
68 | + target_num=0
69 | + # Reset fail flag for the current partition
70 | + # or uboot will skip the loading of this partition
71 | + fw_setenv flag_try_sys1_failed 0
72 | + fi
73 | +
74 | + # Tell uboot to switch partition
75 | + fw_setenv flag_boot_rootfs "$target_num"
76 | + fw_setenv flag_last_success "$target_num"
77 |
78 | - # Enforce single partition.
79 | - fw_setenv flag_boot_rootfs 0
80 | - fw_setenv flag_last_success 0
81 | - fw_setenv flag_boot_success 1
82 | - fw_setenv flag_try_sys1_failed 8
83 | - fw_setenv flag_try_sys2_failed 8
84 | + # Reset success flag
85 | + fw_setenv flag_boot_success 0
86 |
87 | - # Kernel and rootfs are placed in 2 different UBI
88 | - CI_KERN_UBIPART="ubi_kernel"
89 | - CI_ROOT_UBIPART="rootfs"
90 | nand_do_upgrade "$1"
91 | ;;
92 | *)
93 |
94 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/diy/package/boot/uboot-rockchip/patches/316-rockchip-rk3568-Add-support-for-lyt_t68m.patch:
--------------------------------------------------------------------------------
1 | --- /dev/null
2 | +++ b/arch/arm/dts/rk3568-lyt-t68m-u-boot.dtsi
3 | @@ -0,0 +1,16 @@
4 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 | +
6 | +#include "rk356x-u-boot.dtsi"
7 | +
8 | +/ {
9 | + chosen {
10 | + stdout-path = &uart2;
11 | + u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
12 | + };
13 | +};
14 | +
15 | +&uart2 {
16 | + clock-frequency = <24000000>;
17 | + bootph-pre-ram;
18 | + status = "okay";
19 | +};
20 | --- /dev/null
21 | +++ b/arch/arm/dts/rk3568-lyt-t68m.dts
22 | @@ -0,0 +1,8 @@
23 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
24 | +
25 | +#include "rk3568-evb.dts"
26 | +
27 | +/ {
28 | + model = "LYT T68M";
29 | + compatible = "lyt,t68m", "rockchip,rk3568";
30 | +};
31 | --- /dev/null
32 | +++ b/configs/lyt-t68m-rk3568_defconfig
33 | @@ -0,0 +1,83 @@
34 | +CONFIG_ARM=y
35 | +CONFIG_SKIP_LOWLEVEL_INIT=y
36 | +CONFIG_COUNTER_FREQUENCY=24000000
37 | +CONFIG_ARCH_ROCKCHIP=y
38 | +CONFIG_TEXT_BASE=0x00a00000
39 | +CONFIG_SPL_LIBCOMMON_SUPPORT=y
40 | +CONFIG_SPL_LIBGENERIC_SUPPORT=y
41 | +CONFIG_NR_DRAM_BANKS=2
42 | +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
43 | +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc00000
44 | +CONFIG_DEFAULT_DEVICE_TREE="rk3568-lyt-t68m"
45 | +CONFIG_ROCKCHIP_RK3568=y
46 | +CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y
47 | +CONFIG_SPL_SERIAL=y
48 | +CONFIG_SPL_STACK_R_ADDR=0x600000
49 | +CONFIG_SPL_STACK=0x400000
50 | +CONFIG_DEBUG_UART_BASE=0xFE660000
51 | +CONFIG_DEBUG_UART_CLOCK=24000000
52 | +CONFIG_SYS_LOAD_ADDR=0xc00800
53 | +CONFIG_DEBUG_UART=y
54 | +CONFIG_FIT=y
55 | +CONFIG_FIT_VERBOSE=y
56 | +CONFIG_SPL_LOAD_FIT=y
57 | +CONFIG_LEGACY_IMAGE_FORMAT=y
58 | +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-lyt-t68m.dtb"
59 | +# CONFIG_DISPLAY_CPUINFO is not set
60 | +CONFIG_DISPLAY_BOARDINFO_LATE=y
61 | +CONFIG_SPL_MAX_SIZE=0x40000
62 | +CONFIG_SPL_PAD_TO=0x7f8000
63 | +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
64 | +CONFIG_SPL_BSS_START_ADDR=0x4000000
65 | +CONFIG_SPL_BSS_MAX_SIZE=0x4000
66 | +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
67 | +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
68 | +CONFIG_SPL_STACK_R=y
69 | +CONFIG_SPL_ATF=y
70 | +CONFIG_CMD_GPIO=y
71 | +CONFIG_CMD_GPT=y
72 | +CONFIG_CMD_I2C=y
73 | +CONFIG_CMD_MMC=y
74 | +CONFIG_CMD_USB=y
75 | +# CONFIG_CMD_SETEXPR is not set
76 | +CONFIG_CMD_PMIC=y
77 | +CONFIG_CMD_REGULATOR=y
78 | +# CONFIG_SPL_DOS_PARTITION is not set
79 | +CONFIG_SPL_OF_CONTROL=y
80 | +CONFIG_OF_LIVE=y
81 | +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
82 | +CONFIG_SPL_REGMAP=y
83 | +CONFIG_SPL_SYSCON=y
84 | +CONFIG_SPL_CLK=y
85 | +CONFIG_ROCKCHIP_GPIO=y
86 | +CONFIG_SYS_I2C_ROCKCHIP=y
87 | +CONFIG_MISC=y
88 | +CONFIG_SUPPORT_EMMC_RPMB=y
89 | +CONFIG_MMC_DW=y
90 | +CONFIG_MMC_DW_ROCKCHIP=y
91 | +CONFIG_MMC_SDHCI=y
92 | +CONFIG_MMC_SDHCI_SDMA=y
93 | +CONFIG_MMC_SDHCI_ROCKCHIP=y
94 | +CONFIG_ETH_DESIGNWARE=y
95 | +CONFIG_GMAC_ROCKCHIP=y
96 | +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
97 | +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
98 | +CONFIG_SPL_PINCTRL=y
99 | +CONFIG_DM_PMIC=y
100 | +CONFIG_PMIC_RK8XX=y
101 | +CONFIG_REGULATOR_RK8XX=y
102 | +CONFIG_PWM_ROCKCHIP=y
103 | +CONFIG_SPL_RAM=y
104 | +CONFIG_BAUDRATE=1500000
105 | +CONFIG_DEBUG_UART_SHIFT=2
106 | +CONFIG_SYS_NS16550_MEM32=y
107 | +CONFIG_SYSRESET=y
108 | +CONFIG_USB=y
109 | +CONFIG_USB_XHCI_HCD=y
110 | +CONFIG_USB_XHCI_DWC3=y
111 | +CONFIG_USB_EHCI_HCD=y
112 | +CONFIG_USB_EHCI_GENERIC=y
113 | +CONFIG_USB_OHCI_HCD=y
114 | +CONFIG_USB_OHCI_GENERIC=y
115 | +CONFIG_USB_DWC3=y
116 | +CONFIG_ERRNO_STR=y
117 |
--------------------------------------------------------------------------------
/devices/common/patches/rootfstargz.patch:
--------------------------------------------------------------------------------
1 | --- a/include/image.mk
2 | +++ b/include/image.mk
3 | @@ -300,6 +300,44 @@ ifdef CONFIG_TARGET_ROOTFS_TARGZ
4 | endef
5 | endif
6 |
7 | +define Device/Build/targz
8 | + $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
9 | + $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json, \
10 | + $(BIN_DIR)/$$(ROOTFSTZ))
11 | +
12 | + $(call Device/Export,$(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json,$(1))
13 | +
14 | + $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json: $(BIN_DIR)/$$(ROOTFSTZ)
15 | + @mkdir -p $$(shell dirname $$@)
16 | + DEVICE_ID="$(1)" \
17 | + SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
18 | + FILE_NAME="$$(notdir $$^)" \
19 | + FILE_DIR="$(BIN_DIR)" \
20 | + FILE_TYPE="rootfs" \
21 | + FILE_FILESYSTEM="rootfs" \
22 | + DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \
23 | + DEVICE_VENDOR="$$(DEVICE_VENDOR)" \
24 | + DEVICE_MODEL="$$(DEVICE_MODEL)" \
25 | + DEVICE_VARIANT="$$(DEVICE_VARIANT)" \
26 | + DEVICE_ALT0_VENDOR="$$(DEVICE_ALT0_VENDOR)" \
27 | + DEVICE_ALT0_MODEL="$$(DEVICE_ALT0_MODEL)" \
28 | + DEVICE_ALT0_VARIANT="$$(DEVICE_ALT0_VARIANT)" \
29 | + DEVICE_ALT1_VENDOR="$$(DEVICE_ALT1_VENDOR)" \
30 | + DEVICE_ALT1_MODEL="$$(DEVICE_ALT1_MODEL)" \
31 | + DEVICE_ALT1_VARIANT="$$(DEVICE_ALT1_VARIANT)" \
32 | + DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
33 | + DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
34 | + DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
35 | + DEVICE_TITLE="$$(DEVICE_TITLE)" \
36 | + DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
37 | + TARGET="$(BOARD)" \
38 | + SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \
39 | + VERSION_NUMBER="$(VERSION_NUMBER)" \
40 | + VERSION_CODE="$(VERSION_CODE)" \
41 | + SUPPORTED_DEVICES="$$(SUPPORTED_DEVICES)" \
42 | + $(TOPDIR)/scripts/json_add_image_info.py $$@
43 | +endef
44 | +
45 | ifdef CONFIG_TARGET_ROOTFS_CPIOGZ
46 | define Image/Build/cpiogz
47 | ( cd $(TARGET_DIR); find . | $(STAGING_DIR_HOST)/bin/cpio -o -H newc -R 0:0 | gzip -9n >$(BIN_DIR)/$(IMG_ROOTFS).cpio.gz )
48 | @@ -367,6 +405,7 @@ define Device/Init
49 | DEVICE_IMG_PREFIX := $(IMG_PREFIX)-$(1)
50 | DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1)-$$(2)
51 | IMAGE_SIZE :=
52 | + ROOTFSTZ = $$(DEVICE_IMG_PREFIX)-rootfs.tar.gz
53 | KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX)
54 | KERNEL_SUFFIX := -kernel.bin
55 | KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
56 | @@ -568,7 +607,7 @@ define Device/Build/kernel
57 | endef
58 |
59 | define Device/Build/image
60 | - GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
61 | + GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(findstring img,$(2)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
62 | $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
63 | $(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json, \
64 | $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX))
65 | @@ -606,6 +645,7 @@ define Device/Build/image
66 | FILE_TYPE=$(word 1,$(subst ., ,$(2))) \
67 | FILE_FILESYSTEM="$(1)" \
68 | DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \
69 | + KERNEL_INITRAMFS_IMAGE="$(subst $(IMG_PREFIX_EXTRA),,$(KERNEL_INITRAMFS_IMAGE))" \
70 | DEVICE_VENDOR="$(DEVICE_VENDOR)" \
71 | DEVICE_MODEL="$(DEVICE_MODEL)" \
72 | DEVICE_VARIANT="$(DEVICE_VARIANT)" \
73 | @@ -678,6 +718,8 @@ define Device/Build
74 | $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Device/Build/initramfs,$(1)))
75 | $(call Device/Build/kernel,$(1))
76 |
77 | + $(if $(CONFIG_TARGET_ROOTFS_TARGZ),$(call Device/Build/targz,$(PROFILE_SANITIZED)))
78 | +
79 | $$(eval $$(foreach compile,$$(COMPILE), \
80 | $$(call Device/Build/compile,$$(compile),$(1))))
81 |
82 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/.config:
--------------------------------------------------------------------------------
1 |
2 | CONFIG_TARGET_ramips=y
3 | CONFIG_TARGET_ramips_mt7621=y
4 | CONFIG_TARGET_MULTI_PROFILE=y
5 | CONFIG_TARGET_ROOTFS_INITRAMFS=y
6 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-cr660x=y
7 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-3g=y
8 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-3-pro=y
9 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-4=y
10 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-4a-gigabit=y
11 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-4a-gigabit-v2=y
12 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_redmi-router-ac2100=y
13 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-ac2100=y
14 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaoyu_xy-c5=y
15 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_lenovo_newifi-d1=y
16 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_d-team_newifi-d2=y
17 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jdcloud_re-sp-01b=y
18 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_glinet_gl-mt1300=y
19 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_phicomm_k2p=y
20 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_phicomm_k2p-32m=y
21 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_asus_rt-ac85p=y
22 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6220=y
23 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6260=y
24 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6700-v2=y
25 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6800=y
26 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6850=y
27 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6900-v2=y
28 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r7450=y
29 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_wndr3700-v5=y
30 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_oraybox_x3a=y
31 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_thunder_timecloud=y
32 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt_edgerouter-x-sfp=y
33 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt_edgerouter-x=y
34 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-3g-v2=y
35 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_youhua_wr1200js=y
36 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_youku_yk-l2=y
37 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jcg_y2=y
38 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jcg_q20=y
39 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_hiwifi_hc5962=y
40 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_asus_rt-n56u-b1=y
41 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_gehua_ghl-r-001=y
42 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_raisecom_msg1500-x-00=y
43 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_zte_e8820s=y
44 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_zte_e8820v2=y
45 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea7500-v2=y
46 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea8100-v1=y
47 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea8100-v2=y
48 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea7300-v1=y
49 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea7300-v2=y
50 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_ea6350-v4=y
51 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_linksys_e5600=y
52 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jdcloud_luban=y
53 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1800-plus=y
54 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1801-plus=y
55 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1806=y
56 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_zbtlink_zbt-wg3526-32m=y
57 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ht-jsh_0211=y
58 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_c-life_xg1=y
59 | CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_hatlab_gateboard-one=y
60 |
61 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
62 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/luban.patch:
--------------------------------------------------------------------------------
1 | diff --git a/target/linux/ramips/dts/mt7621_jdcloud_luban.dts b/target/linux/ramips/dts/mt7621_jdcloud_luban.dts
2 | new file mode 100644
3 | index 0000000..ed1ebed
4 | --- /dev/null
5 | +++ b/target/linux/ramips/dts/mt7621_jdcloud_luban.dts
6 | @@ -0,0 +1,171 @@
7 | +#include "mt7621.dtsi"
8 | +
9 | +#include
10 | +#include
11 | +
12 | +/ {
13 | + compatible = "jdcloud,luban", "mediatek,mt7621-soc";
14 | + model = "JDCloud luban";
15 | +
16 | + aliases {
17 | + led-boot = &led_r1;
18 | + led-failsafe = &led_r1;
19 | + led-running = &led_g1;
20 | + led-upgrade = &led_b1;
21 | + label-mac-device = &gmac0;
22 | + };
23 | +
24 | + chosen {
25 | + bootargs = "console=ttyS0,115200n8";
26 | + };
27 | +
28 | + leds {
29 | + compatible = "gpio-leds";
30 | +
31 | + led_r1: led_r1 {
32 | + label = "led_r1";
33 | + gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
34 | + default-state = "on";
35 | + };
36 | +
37 | + led_b1: led_b1 {
38 | + label = "led_b1";
39 | + gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 | + };
41 | +
42 | + led_g1: led_g1 {
43 | + label = "led_g1";
44 | + gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
45 | + };
46 | + };
47 | +
48 | + keys {
49 | + compatible = "gpio-keys";
50 | +
51 | + reset {
52 | + label = "reset";
53 | + gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
54 | + linux,code = ;
55 | + };
56 | +
57 | + wps {
58 | + label = "wps";
59 | + gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 | + linux,code = ;
61 | + };
62 | + };
63 | +};
64 | +
65 | +&spi0 {
66 | + status = "okay";
67 | +
68 | + flash@0 {
69 | + compatible = "jedec,spi-nor";
70 | + reg = <0>;
71 | + spi-max-frequency = <10000000>;
72 | + broken-flash-reset;
73 | +
74 | + partitions {
75 | + compatible = "fixed-partitions";
76 | + #address-cells = <1>;
77 | + #size-cells = <1>;
78 | +
79 | + partition@0 {
80 | + label = "u-boot";
81 | + reg = <0x0 0x40000>;
82 | + read-only;
83 | + };
84 | +
85 | + partition@40000 {
86 | + label = "u-boot-env";
87 | + reg = <0x40000 0x10000>;
88 | + read-only;
89 | + };
90 | +
91 | + factory: partition@50000 {
92 | + label = "factory";
93 | + reg = <0x50000 0x40000>;
94 | + read-only;
95 | + };
96 | +
97 | + partition@90000 {
98 | + compatible = "denx,uimage";
99 | + label = "firmware";
100 | + reg = <0x90000 0xf70000>;
101 | + };
102 | + };
103 | + };
104 | +};
105 | +
106 | +&state_default {
107 | + gpio {
108 | + groups = "i2c", "uart2", "uart3";
109 | + function = "gpio";
110 | + };
111 | +};
112 | +
113 | +&sdhci {
114 | + status = "okay";
115 | +};
116 | +
117 | +&gmac0 {
118 | + nvmem-cells = <&macaddr_factory_3fff4>;
119 | + nvmem-cell-names = "mac-address";
120 | +};
121 | +
122 | +&switch0 {
123 | + ports {
124 | + port@0 {
125 | + status = "okay";
126 | + label = "lan4";
127 | + };
128 | +
129 | + port@1 {
130 | + status = "okay";
131 | + label = "lan3";
132 | + };
133 | +
134 | + port@2 {
135 | + status = "okay";
136 | + label = "lan2";
137 | + };
138 | +
139 | + port@3 {
140 | + status = "okay";
141 | + label = "lan1";
142 | + };
143 | +
144 | + port@4 {
145 | + status = "okay";
146 | + label = "wan";
147 | + nvmem-cells = <&macaddr_factory_3fffa>;
148 | + nvmem-cell-names = "mac-address";
149 | + };
150 | + };
151 | +};
152 | +
153 | +&pcie {
154 | + status = "okay";
155 | +};
156 | +
157 | +&pcie1 {
158 | + wifi@0,0 {
159 | + compatible = "mediatek,mt76";
160 | + reg = <0x0000 0 0 0 0>;
161 | + mediatek,mtd-eeprom = <&factory 0x0>;
162 | + };
163 | +};
164 | +
165 | +&factory {
166 | + compatible = "nvmem-cells";
167 | + #address-cells = <1>;
168 | + #size-cells = <1>;
169 | +
170 | + macaddr_factory_3fff4: macaddr@3fff4 {
171 | + reg = <0x3fff4 0x6>;
172 | + };
173 | +
174 | + macaddr_factory_3fffa: macaddr@3fffa {
175 | + reg = <0x3fffa 0x6>;
176 | + };
177 | +};
178 |
--------------------------------------------------------------------------------
/devices/common/patches/rootfstargz.patch.b:
--------------------------------------------------------------------------------
1 | From 467ef0219a65a3dd63ce27f41e54f09bf1f2ad64 Mon Sep 17 00:00:00 2001
2 | From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
3 | Date: Mon, 4 Mar 2024 08:01:42 +0800
4 | Subject: [PATCH] Update image.mk
5 |
6 | Signed-off-by: kiddin9 <48883331+kiddin9@users.noreply.github.com>
7 | ---
8 | include/image.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
9 | 1 file changed, 43 insertions(+)
10 |
11 | diff --git a/include/image.mk b/include/image.mk
12 | index 4b6acbe1aad6a..f307dea1ca9a3 100644
13 | --- a/include/image.mk
14 | +++ b/include/image.mk
15 | @@ -313,6 +313,44 @@ ifdef CONFIG_TARGET_ROOTFS_TARGZ
16 | endef
17 | endif
18 |
19 | +define Device/Build/targz
20 | + $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
21 | + $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json, \
22 | + $(BIN_DIR)/$$(ROOTFSTZ))
23 | +
24 | + $(call Device/Export,$(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json,$(1))
25 | +
26 | + $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json: $(BIN_DIR)/$$(ROOTFSTZ)
27 | + @mkdir -p $$(shell dirname $$@)
28 | + DEVICE_ID="$(1)" \
29 | + SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
30 | + FILE_NAME="$$(notdir $$^)" \
31 | + FILE_DIR="$(BIN_DIR)" \
32 | + FILE_TYPE="rootfs" \
33 | + FILE_FILESYSTEM="rootfs" \
34 | + DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \
35 | + DEVICE_VENDOR="$$(DEVICE_VENDOR)" \
36 | + DEVICE_MODEL="$$(DEVICE_MODEL)" \
37 | + DEVICE_VARIANT="$$(DEVICE_VARIANT)" \
38 | + DEVICE_ALT0_VENDOR="$$(DEVICE_ALT0_VENDOR)" \
39 | + DEVICE_ALT0_MODEL="$$(DEVICE_ALT0_MODEL)" \
40 | + DEVICE_ALT0_VARIANT="$$(DEVICE_ALT0_VARIANT)" \
41 | + DEVICE_ALT1_VENDOR="$$(DEVICE_ALT1_VENDOR)" \
42 | + DEVICE_ALT1_MODEL="$$(DEVICE_ALT1_MODEL)" \
43 | + DEVICE_ALT1_VARIANT="$$(DEVICE_ALT1_VARIANT)" \
44 | + DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
45 | + DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
46 | + DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
47 | + DEVICE_TITLE="$$(DEVICE_TITLE)" \
48 | + DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
49 | + TARGET="$(BOARD)" \
50 | + SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \
51 | + VERSION_NUMBER="$(VERSION_NUMBER)" \
52 | + VERSION_CODE="$(VERSION_CODE)" \
53 | + SUPPORTED_DEVICES="$$(SUPPORTED_DEVICES)" \
54 | + $(TOPDIR)/scripts/json_add_image_info.py $$@
55 | +endef
56 | +
57 | ifdef CONFIG_TARGET_ROOTFS_CPIOGZ
58 | define Image/Build/cpiogz
59 | ( cd $(TARGET_DIR); find . | $(STAGING_DIR_HOST)/bin/cpio -o -H newc -R 0:0 | gzip -9n >$(BIN_DIR)/$(IMG_ROOTFS).cpio.gz )
60 | @@ -394,6 +432,7 @@ define Device/Init
61 | FACTORY_IMG_NAME :=
62 | IMAGE_SIZE :=
63 | NAND_SIZE :=
64 | + ROOTFSTZ = $$(DEVICE_IMG_PREFIX)-rootfs.tar.gz
65 | KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX)
66 | KERNEL_SUFFIX := -kernel.bin
67 | KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
68 | @@ -631,6 +670,7 @@ endef
69 |
70 | define Device/Build/image
71 | GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
72 | + GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(findstring img,$(2)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
73 | $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
74 | $(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json, \
75 | $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX))
76 | @@ -667,6 +707,7 @@ define Device/Build/image
77 | FILE_DIR="$(KDIR)/tmp" \
78 | FILE_TYPE=$(word 1,$(subst ., ,$(2))) \
79 | FILE_FILESYSTEM="$(1)" \
80 | + KERNEL_INITRAMFS_IMAGE="$(subst $(IMG_PREFIX_EXTRA),,$(KERNEL_INITRAMFS_IMAGE))" \
81 | DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \
82 | DEVICE_VENDOR="$(DEVICE_VENDOR)" \
83 | DEVICE_MODEL="$(DEVICE_MODEL)" \
84 | @@ -758,6 +799,8 @@ define Device/Build
85 | $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Device/Build/initramfs,$(1)))
86 | $(call Device/Build/kernel,$(1))
87 |
88 | + $(if $(CONFIG_TARGET_ROOTFS_TARGZ),$(call Device/Build/targz,$(PROFILE_SANITIZED)))
89 | +
90 | $$(eval $$(foreach compile,$$(COMPILE), \
91 | $$(call Device/Build/compile,$$(compile),$(1))))
92 |
93 |
--------------------------------------------------------------------------------
/devices/common/patches/china_mirrors.patch.b:
--------------------------------------------------------------------------------
1 | --- a/scripts/download.pl
2 | +++ b/scripts/download.pl
3 | @@ -201,6 +201,10 @@ sub cleanup
4 | push @mirrors, "https://mirror.leaseweb.com/debian/$1";
5 | push @mirrors, "https://mirror.netcologne.de/debian/$1";
6 | } elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
7 | + push @mirrors, "https://mirrors.tencent.com/apache/$1";
8 | + push @mirrors, "https://mirrors.aliyun.com/apache/$1";
9 | + push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/apache/$1";
10 | + push @mirrors, "https://mirrors.ustc.edu.cn/apache/$1";
11 | push @mirrors, "https://mirror.netcologne.de/apache.org/$1";
12 | push @mirrors, "https://mirror.aarnet.edu.au/pub/apache/$1";
13 | push @mirrors, "https://mirror.csclub.uwaterloo.ca/apache/$1";
14 | @@ -211,11 +215,35 @@ sub cleanup
15 | push @mirrors, "ftp://apache.cs.utah.edu/apache.org/$1";
16 | push @mirrors, "ftp://apache.mirrors.ovh.net/ftp.apache.org/dist/$1";
17 | } elsif ($mirror =~ /^\@GITHUB\/(.+)$/) {
18 | + my $dir = $1;
19 | + my $i = 0;
20 | + # replace the 2nd '/' with '@' for jsDelivr mirror
21 | + push @mirrors, "https://cdn.jsdelivr.net/gh/". $dir =~ s{\/}{++$i == 2 ? '@' : $&}ger;
22 | + push @mirrors, "https://raw.sevencdn.com/$dir";
23 | + push @mirrors, "https://raw.fastgit.org/$dir";
24 | + push @mirrors, "https://pd.zwc365.com/seturl/https://raw.githubusercontent.com/$dir";
25 | + push @mirrors, "https://ghproxy.com/https://raw.githubusercontent.com/$dir";
26 | + push @mirrors, "https://pd.zwc365.com/cfworker/https://raw.githubusercontent.com/$dir";
27 | # give github a few more tries (different mirrors)
28 | for (1 .. 5) {
29 | - push @mirrors, "https://raw.githubusercontent.com/$1";
30 | + push @mirrors, "https://raw.githubusercontent.com/$dir";
31 | }
32 | + } elsif ($mirror =~ /^\@GHCODELOAD\/(.+)$/) {
33 | + push @mirrors, "https://pd.zwc365.com/seturl/https://codeload.github.com/$1";
34 | + push @mirrors, "https://ghproxy.com/https://codeload.github.com/$1";
35 | + push @mirrors, "https://pd.zwc365.com/cfworker/https://codeload.github.com/$1";
36 | + push @mirrors, "https://codeload.github.com/$1";
37 | + } elsif ($mirror =~ /^\@GHREPO\/(.+)$/) {
38 | + push @mirrors, "https://pd.zwc365.com/seturl/https://github.com/$1";
39 | + push @mirrors, "https://github.com.cnpmjs.org/$1";
40 | + push @mirrors, "https://ghproxy.com/https://github.com/$1";
41 | + push @mirrors, "https://hub.fastgit.org/$1";
42 | + push @mirrors, "https://github.com/$1";
43 | } elsif ($mirror =~ /^\@GNU\/(.+)$/) {
44 | + push @mirrors, "https://mirrors.tencent.com/gnu/$1";
45 | + push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/gnu/$1";
46 | + push @mirrors, "https://mirrors.cqu.edu.cn/gnu/$1";
47 | + push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1";
48 | push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1";
49 | push @mirrors, "https://mirror.netcologne.de/gnu/$1";
50 | push @mirrors, "http://ftp.kddilabs.jp/GNU/gnu/$1";
51 | @@ -240,6 +268,8 @@ sub cleanup
52 | push @extra, "$extra[0]/longterm/v$1";
53 | }
54 | foreach my $dir (@extra) {
55 | + push @mirrors, "https://mirrors.cqu.edu.cn/kernel/$dir";
56 | + push @mirrors, "https://mirrors.ustc.edu.cn/kernel.org/$dir";
57 | push @mirrors, "https://cdn.kernel.org/pub/$dir";
58 | push @mirrors, "https://download.xs4all.nl/ftp.kernel.org/pub/$dir";
59 | push @mirrors, "https://mirrors.mit.edu/kernel/$dir";
60 | @@ -250,6 +280,7 @@ sub cleanup
61 | }
62 | } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
63 | push @mirrors, "https://download.gnome.org/sources/$1";
64 | + push @mirrors, "https://mirrors.ustc.edu.cn/gnome/sources/$1";
65 | push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1";
66 | push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1";
67 | push @mirrors, "http://ftp.kaist.ac.kr/gnome/sources/$1";
68 | @@ -263,6 +294,7 @@ sub cleanup
69 | }
70 | }
71 |
72 | +unshift @mirrors, "http://182.140.223.146";
73 | push @mirrors, 'https://sources.cdn.openwrt.org';
74 | push @mirrors, 'https://sources.openwrt.org';
75 | push @mirrors, 'https://mirror2.openwrt.org/sources';
76 | @@ -296,4 +328,3 @@ sub cleanup
77 | }
78 |
79 | $SIG{INT} = \&cleanup;
80 | -
81 |
--------------------------------------------------------------------------------
/devices/common/patches/compressed-memory.patch.b:
--------------------------------------------------------------------------------
1 | --- a/package/kernel/linux/modules/crypto.mk
2 | +++ b/package/kernel/linux/modules/crypto.mk
3 | @@ -809,3 +809,18 @@ endef
4 |
5 | $(eval $(call KernelPackage,crypto-xts))
6 |
7 | +
8 | +define KernelPackage/crypto-zstd
9 | + TITLE:=zstd compression CryptoAPI module
10 | + DEPENDS:=+kmod-lib-zstd +kmod-crypto-acompress
11 | + KCONFIG:=CONFIG_CRYPTO_ZSTD
12 | + FILES:=$(LINUX_DIR)/crypto/zstd.ko
13 | + AUTOLOAD:=$(call AutoLoad,09,zstd)
14 | + $(call AddDepends/crypto)
15 | +endef
16 | +
17 | +define KernelPackage/crypto-zstd/description
18 | + Kernel module for the CryptoAPI to support Zstandard
19 | +endef
20 | +
21 | +$(eval $(call KernelPackage,crypto-zstd))
22 |
23 | --- a/package/kernel/linux/modules/lib.mk
24 | +++ b/package/kernel/linux/modules/lib.mk
25 | @@ -166,6 +166,27 @@ endef
26 | $(eval $(call KernelPackage,lib-lz4))
27 |
28 |
29 | +define KernelPackage/lib-lz4hc
30 | + SUBMENU:=$(LIB_MENU)
31 | + TITLE:=LZ4HC support
32 | + DEPENDS:=+kmod-lib-lz4 +kmod-crypto-acompress
33 | + HIDDEN:=1
34 | + KCONFIG:= \
35 | + CONFIG_CRYPTO_LZ4HC \
36 | + CONFIG_LZ4HC_COMPRESS
37 | + FILES:= \
38 | + $(LINUX_DIR)/crypto/lz4hc.ko \
39 | + $(LINUX_DIR)/lib/lz4/lz4hc_compress.ko
40 | + AUTOLOAD:=$(call AutoProbe,lz4hc lz4hc_compress)
41 | +endef
42 | +
43 | +define KernelPackage/lib-lz4hc/description
44 | + Kernel module for LZ4HC compression/decompression support
45 | +endef
46 | +
47 | +$(eval $(call KernelPackage,lib-lz4hc))
48 | +
49 | +
50 | define KernelPackage/lib-raid6
51 | SUBMENU:=$(LIB_MENU)
52 | TITLE:=RAID6 algorithm support
53 |
54 | --- a/package/kernel/linux/modules/other.mk
55 | +++ b/package/kernel/linux/modules/other.mk
56 | @@ -869,6 +869,85 @@ endef
57 | $(eval $(call KernelPackage,zram))
58 |
59 |
60 | +define KernelPackage/zsmalloc
61 | + SUBMENU:=$(OTHER_MENU)
62 | + TITLE:=ZSMALLOC support
63 | + DEPENDS:=+kmod-crypto-deflate \
64 | + +kmod-lib-lz4 \
65 | + @!PACKAGE_kmod-zram
66 | + KCONFIG:= \
67 | + CONFIG_ZSMALLOC \
68 | + CONFIG_ZSMALLOC_STAT=n
69 | + FILES:= $(LINUX_DIR)/mm/zsmalloc.ko
70 | + AUTOLOAD:=$(call AutoLoad,19,zsmalloc)
71 | +endef
72 | +
73 | +define KernelPackage/zsmalloc/description
74 | + Special purpose memory allocator for compressed memory pages
75 | +endef
76 | +
77 | +define KernelPackage/zsmalloc/config
78 | + if PACKAGE_kmod-zsmalloc
79 | + config KERNEL_PGTABLE_MAPPING
80 | + bool "zsmalloc: enable CONFIG_PGTABLE_MAPPING"
81 | + default y if arm
82 | + default n
83 | + help
84 | + Enable CONFIG_PGTABLE_MAPPING in the kernel for faster memory
85 | + allocations when using ZSMALLOC, in some architectures. Enabled
86 | + by default for the ARM architecture because it may be a huge
87 | + performance boost.
88 | + endif
89 | +endef
90 | +
91 | +$(eval $(call KernelPackage,zsmalloc))
92 | +
93 | +
94 | +define KernelPackage/zram-writeback
95 | + SUBMENU:=$(OTHER_MENU)
96 | + TITLE:=zram with writeback support
97 | + DEPENDS:=+kmod-zsmalloc
98 | + KCONFIG:= \
99 | + CONFIG_ZRAM \
100 | + CONFIG_ZRAM_DEBUG=n \
101 | + CONFIG_ZRAM_MEMORY_TRACKING=n \
102 | + CONFIG_ZRAM_WRITEBACK=y
103 | + FILES:= \
104 | + $(LINUX_DIR)/drivers/block/zram/zram.ko
105 | + AUTOLOAD:=$(call AutoLoad,20,zram)
106 | +endef
107 | +
108 | +define KernelPackage/zram-writeback/description
109 | + Compressed RAM disk with support for page writeback
110 | +endef
111 | +
112 | +$(eval $(call KernelPackage,zram-writeback))
113 | +
114 | +
115 | +define KernelPackage/zswap
116 | + SUBMENU:=$(OTHER_MENU)
117 | + TITLE:=zswap compressed swapping cache
118 | + DEPENDS:=+kmod-zsmalloc
119 | + KCONFIG:= \
120 | + CONFIG_FRONTSWAP=y \
121 | + CONFIG_Z3FOLD \
122 | + CONFIG_ZBUD \
123 | + CONFIG_ZPOOL \
124 | + CONFIG_ZSWAP=y
125 | + FILES:= \
126 | + $(LINUX_DIR)/mm/z3fold.ko \
127 | + $(LINUX_DIR)/mm/zbud.ko \
128 | + $(LINUX_DIR)/mm/zpool.ko
129 | + AUTOLOAD:=$(call AutoLoad,20,z3fold zbud zpool)
130 | +endef
131 | +
132 | +define KernelPackage/zswap/description
133 | + Compressed swap cache and compressed memory allocator support
134 | +endef
135 | +
136 | +$(eval $(call KernelPackage,zswap))
137 | +
138 | +
139 | define KernelPackage/pps
140 | SUBMENU:=$(OTHER_MENU)
141 | TITLE:=PPS support
142 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/pico3399.patch.b:
--------------------------------------------------------------------------------
1 | From f847e36bfe9d24f6bd86dc52ebf17f0025118cd6 Mon Sep 17 00:00:00 2001
2 | From: icevel
3 | Date: Wed, 1 Feb 2023 17:20:59 +0800
4 | Subject: [PATCH] add support
5 |
6 | ---
7 | package/boot/uboot-rockchip/Makefile | 12 +
8 | ...99-Add-support-for-rockchip-pico3399.patch | 749 ++++++++++++++++++
9 | .../armv8/base-files/etc/board.d/02_network | 1 +
10 | .../boot/dts/rockchip/rk3399-pico3399.dts | 668 ++++++++++++++++
11 | target/linux/rockchip/image/armv8.mk | 10 +
12 | ...99-add-support-for-rockchip-pico3399.patch | 11 +
13 | 7 files changed, 1462 insertions(+)
14 | create mode 100644 package/boot/uboot-rockchip/patches/308-rockchip-rk3399-Add-support-for-rockchip-pico3399.patch
15 | create mode 100644 target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3399-pico3399.dts
16 | create mode 100644 target/linux/rockchip/patches-5.15/213-rockchip-rk3399-add-support-for-rockchip-pico3399.patch
17 |
18 | diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile
19 | index 69ce25dae..283f4821b 100644
20 | --- a/package/boot/uboot-rockchip/Makefile
21 | +++ b/package/boot/uboot-rockchip/Makefile
22 | @@ -72,6 +72,17 @@ endef
23 |
24 | # RK3399 boards
25 |
26 | +define U-Boot/rockchip-pico3399-rk3399
27 | + BUILD_SUBTARGET:=armv8
28 | + NAME:=rockchip pico3399
29 | + BUILD_DEVICES:= \
30 | + rockchip_pico3399
31 | + DEPENDS:=+PACKAGE_u-boot-rockchip-pico3399-rk3399:arm-trusted-firmware-rk3399
32 | + PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor
33 | + ATF:=rk3399_bl31_v1.35.elf
34 | + USE_RKBIN:=1
35 | +endef
36 | +
37 | define U-Boot/guangmiao-g4c-rk3399
38 | BUILD_SUBTARGET:=armv8
39 | NAME:=GuangMiao G4C
40 | @@ -308,6 +319,7 @@ UBOOT_TARGETS := \
41 | r66s-rk3568 \
42 | station-p2-rk3568 \
43 | panther-x2-rk3566 \
44 | + rockchip-pico3399-rk3399 \
45 | sharevdi-h3399pc-rk3399 \
46 | guangmiao-g4c-rk3399 \
47 | nanopi-r4s-rk3399 \
48 | diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
49 | index 8bdefcbb6..5c0aa413a 100755
50 | --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
51 | +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
52 | @@ -39,6 +39,11 @@ rockchip_setup_interfaces()
53 | friendlyarm,nanopi-r5s)
54 | ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
55 | ;;
56 | + ockchip,pico3399)
57 | + ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
58 | + ucidef_add_switch "switch0" \
59 | + "0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
60 | + ;;
61 | *)
62 | ucidef_set_interface_lan 'eth0'
63 | ;;
64 | @@ -88,6 +93,7 @@ rockchip_setup_macs()
65 | hinlink,opc-h68k|\
66 | hinlink,opc-h69k|\
67 | rocktech,mpc1903|\
68 | + rockchip,pico3399|\
69 | sharevdi,h3399pc)
70 | wan_mac=$(macaddr_generate_from_mmc_cid mmcblk0)
71 | lan_mac=$(macaddr_add "$wan_mac" +1)
72 | diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk
73 | index f15f8f26b..19d1eba72 100644
74 | --- a/target/linux/rockchip/image/armv8.mk
75 | +++ b/target/linux/rockchip/image/armv8.mk
76 | @@ -192,6 +192,16 @@ define Device/rocktech_mpc1903
77 | endef
78 | TARGET_DEVICES += rocktech_mpc1903
79 |
80 | +define Device/rockchip_pico3399
81 | + DEVICE_VENDOR := rockchip
82 | + DEVICE_MODEL := pico3399
83 | + SOC := rk3399
84 | + UBOOT_DEVICE_NAME := rockchip-pico3399-rk3399
85 | + IMAGE/sysupgrade.img.gz := boot-common | boot-script | pine64-bin | gzip | append-metadata
86 | + DEVICE_PACKAGES := kmod-r8169 kmod-r8125 kmod-nvme -urngd
87 | +endef
88 | +TARGET_DEVICES += rockchip_pico3399
89 | +
90 | define Device/sharevdi_guangmiao-g4c
91 | DEVICE_VENDOR := SHAREVDI
92 | DEVICE_MODEL := GuangMiao G4C
93 | diff --git a/target/linux/rockchip/patches-5.15/213-rockchip-rk3399-add-support-for-rockchip-pico3399.patch b/target/linux/rockchip/patches-5.15/213-rockchip-rk3399-add-support-for-rockchip-pico3399.patch
94 | new file mode 100644
95 | index 000000000..ddfa7f575
96 | --- /dev/null
97 | +++ b/target/linux/rockchip/patches-5.15/213-rockchip-rk3399-add-support-for-rockchip-pico3399.patch
98 | @@ -0,0 +1,8 @@
99 | +--- a/arch/arm64/boot/dts/rockchip/Makefile
100 | ++++ b/arch/arm64/boot/dts/rockchip/Makefile
101 | +@@ -58,6 +58,7 @@
102 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb
103 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb
104 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399pro-rock-pi-n10.dtb
105 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pico3399.dtb
106 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-king3399.dtb
107 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-mpc1903.dtb
108 | + dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-h3399pc.dtb
109 |
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/ht-jsh_0211.patch:
--------------------------------------------------------------------------------
1 | From e56218bff2d67efe4192f7b8d87525b101861194 Mon Sep 17 00:00:00 2001
2 | From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
3 | Date: Fri, 2 Jun 2023 23:03:25 +0800
4 | Subject: [PATCH] ramips: add HT-JSH-0211 support
5 |
6 | Replace the boot loader to the breed of K2P.
7 | ---
8 | target/linux/ramips/Makefile | 2 +-
9 | .../linux/ramips/dts/mt7621_ht-jsh_0211.dts | 105 ++++++++++++++++++
10 | target/linux/ramips/image/mt7621.mk | 9 ++
11 | .../mt7621/base-files/etc/board.d/02_network | 4 +
12 | 4 files changed, 119 insertions(+), 1 deletion(-)
13 | create mode 100644 target/linux/ramips/dts/mt7621_ht-jsh_0211.dts
14 |
15 | diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile
16 | index 3053906f68496..b336489f4da00 100644
17 | --- a/target/linux/ramips/Makefile
18 | +++ b/target/linux/ramips/Makefile
19 | @@ -18,6 +18,6 @@ define Target/Description
20 | endef
21 |
22 | include $(INCLUDE_DIR)/target.mk
23 | -DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug
24 | +DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug -procd-ujail
25 |
26 | $(eval $(call BuildTarget))
27 | diff --git a/target/linux/ramips/dts/mt7621_ht-jsh_0211.dts b/target/linux/ramips/dts/mt7621_ht-jsh_0211.dts
28 | new file mode 100644
29 | index 0000000000000..fa4d209e80e20
30 | --- /dev/null
31 | +++ b/target/linux/ramips/dts/mt7621_ht-jsh_0211.dts
32 | @@ -0,0 +1,105 @@
33 | +// SPDX-License-Identifier: GPL-2.0-only
34 | +
35 | +#include "mt7621.dtsi"
36 | +
37 | +#include
38 | +#include
39 | +
40 | +/ {
41 | + compatible = "ht-jsh,0211", "mediatek,mt7621-soc";
42 | + model = "HT-JSH-0211";
43 | +
44 | + keys {
45 | + compatible = "gpio-keys";
46 | +
47 | + reset {
48 | + label = "reset";
49 | + gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
50 | + linux,code = ;
51 | + };
52 | + };
53 | +};
54 | +
55 | +&spi0 {
56 | + status = "okay";
57 | +
58 | + flash@0 {
59 | + compatible = "jedec,spi-nor";
60 | + reg = <0>;
61 | + spi-max-frequency = <50000000>;
62 | +
63 | + partitions {
64 | + compatible = "fixed-partitions";
65 | + #address-cells = <1>;
66 | + #size-cells = <1>;
67 | +
68 | + partition@0 {
69 | + label = "Bootloader";
70 | + reg = <0x0 0x30000>;
71 | + read-only;
72 | + };
73 | +
74 | + partition@30000 {
75 | + label = "Config";
76 | + reg = <0x30000 0x10000>;
77 | + read-only;
78 | + };
79 | +
80 | + factory: partition@40000 {
81 | + label = "Factory";
82 | + reg = <0x40000 0x10000>;
83 | + read-only;
84 | + };
85 | +
86 | + partition@50000 {
87 | + compatible = "denx,uimage";
88 | + label = "firmware";
89 | + reg = <0x50000 0xfb0000>;
90 | + };
91 | + };
92 | + };
93 | +};
94 | +
95 | +&pcie {
96 | + status = "okay";
97 | +};
98 | +
99 | +&pcie0 {
100 | + mt76@0,0 {
101 | + reg = <0x0000 0 0 0 0>;
102 | + mediatek,mtd-eeprom = <&factory 0x0>;
103 | + };
104 | +};
105 | +
106 | +&gmac0 {
107 | + mtd-mac-address = <&factory 0xe000>;
108 | +};
109 | +
110 | +&gmac1 {
111 | + mtd-mac-address = <&factory 0xe006>;
112 | + status = "okay";
113 | +};
114 | +
115 | +&gsw {
116 | + mediatek,portmap = "wllll";
117 | + status = "okay";
118 | +};
119 | +
120 | +&hnat {
121 | + mtketh-wan = "eth1";
122 | + mtketh-ppd = "eth0";
123 | + mtketh-lan = "eth0";
124 | + mtketh-max-gmac = <2>;
125 | + /delete-property/ mtkdsa-wan-port;
126 | +};
127 | +
128 | +&switch0 {
129 | + status = "disabled";
130 | +};
131 | +
132 | +&state_default {
133 | + gpio {
134 | + groups = "i2c";
135 | + function = "gpio";
136 | + };
137 | +};
138 | diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
139 | index 1908f60bc37bc..bc6a3ac05ae3a 100644
140 | --- a/target/linux/ramips/image/mt7621.mk
141 | +++ b/target/linux/ramips/image/mt7621.mk
142 | @@ -802,6 +802,15 @@ define Device/hiwifi_hc5962
143 | endef
144 | TARGET_DEVICES += hiwifi_hc5962
145 |
146 | +define Device/ht-jsh_0211
147 | + $(Device/dsa-migration)
148 | + IMAGE_SIZE := 16064k
149 | + DEVICE_VENDOR := HT-JSH
150 | + DEVICE_MODEL := 0211
151 | + DEVICE_PACKAGES := kmod-mt7603
152 | +endef
153 | +TARGET_DEVICES += ht-jsh_0211
154 | +
155 | define Device/iodata_wn-ax1167gr
156 | $(Device/dsa-migration)
157 | $(Device/uimage-lzma-loader)
158 | diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
159 | index 37037c666d980..816e7c3dd2f4b 100644
160 | --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
161 | +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
162 | @@ -65,6 +65,10 @@ ramips_setup_interfaces()
163 | hatlab,gateboard-one)
164 | ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth4" "eth5"
165 | ;;
166 | + ht-jsh,0211)
167 | + ucidef_add_switch "switch0" \
168 | + "0:wan" "2:lan" "3:lan" "6u@eth0" "5u@eth1"
169 | + ;;
170 | linksys,re6500|\
171 | netgear,wac104)
172 | ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
173 |
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/01-hinlink.patch:
--------------------------------------------------------------------------------
1 | --- a/package/boot/uboot-rockchip/Makefile
2 | +++ b/package/boot/uboot-rockchip/Makefile
3 | @@ -202,7 +202,28 @@
4 | BUILD_DEVICES:= \
5 | friendlyarm_nanopi-r5s
6 | endef
7 | +
8 | +define U-Boot/opc-h66k-rk3568
9 | + $(U-Boot/Default/rk3568)
10 | + NAME:=OPC-H66K
11 | + BUILD_DEVICES:= \
12 | + hinlink_opc-h66k
13 | +endef
14 |
15 | +define U-Boot/opc-h68k-rk3568
16 | + $(U-Boot/Default/rk3568)
17 | + NAME:=OPC-H68K
18 | + BUILD_DEVICES:= \
19 | + hinlink_opc-h68k
20 | +endef
21 | +
22 | +define U-Boot/opc-h69k-rk3568
23 | + $(U-Boot/Default/rk3568)
24 | + NAME:=OPC-H69K
25 | + BUILD_DEVICES:= \
26 | + hinlink_opc-h69k
27 | +endef
28 | +
29 | define U-Boot/photonicat-rk3568
30 | $(U-Boot/Default/rk3568)
31 | NAME:=Photonicat
32 | @@ -335,6 +356,9 @@
33 | mrkaio-m68s-rk3568 \
34 | nanopi-r5c-rk3568 \
35 | nanopi-r5s-rk3568 \
36 | + opc-h66k-rk3568 \
37 | + opc-h68k-rk3568 \
38 | + opc-h69k-rk3568 \
39 | photonicat-rk3568 \
40 | radxa-e25-rk3568 \
41 | roc-pc-rk3568 \
42 |
43 | --- a/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch
44 | +++ b/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch
45 | @@ -16,7 +16,7 @@
46 | rk3399-orangepi.dtb \
47 | rk3399-pinebook-pro.dtb \
48 | rk3399-pinephone-pro.dtb \
49 | -@@ -182,12 +184,17 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
50 | +@@ -182,12 +184,20 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
51 | rk3566-soquartz-model-a.dtb \
52 | rk3568-bpi-r2-pro.dtb \
53 | rk3568-evb.dtb \
54 | @@ -27,6 +27,9 @@
55 | rk3568-nanopi-r5c.dtb \
56 | rk3568-nanopi-r5s.dtb \
57 | rk3568-odroid-m1.dtb \
58 | ++ rk3568-opc-h66k.dtb \
59 | ++ rk3568-opc-h68k.dtb \
60 | ++ rk3568-opc-h69k.dtb \
61 | + rk3568-photonicat.dtb \
62 | rk3568-radxa-e25.dtb \
63 | + rk3568-roc-pc.dtb \
64 |
65 | --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
66 | +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
67 | @@ -17,6 +17,7 @@
68 | friendlyarm,nanopi-r4se|\
69 | friendlyarm,nanopi-r4s-enterprise|\
70 | friendlyarm,nanopi-r6c|\
71 | + hinlink,opc-h66k|\
72 | radxa,rockpi-e|\
73 | xunlong,orangepi-r1-plus|\
74 | xunlong,orangepi-r1-plus-lts)
75 | @@ -34,7 +35,8 @@
76 | friendlyarm,nanopi-r5s)
77 | ucidef_set_interfaces_lan_wan 'eth1 eth2' 'eth0'
78 | ;;
79 | - friendlyarm,nanopi-r6s)
80 | + friendlyarm,nanopi-r6s|\
81 | + hinlink,opc-h69k)
82 | ucidef_set_interfaces_lan_wan 'eth0 eth1' 'eth2'
83 | ;;
84 | hinlink,opc-h68k|\
85 | @@ -67,7 +69,10 @@
86 | friendlyarm,nanopi-r2c-plus|\
87 | friendlyarm,nanopi-r4s|\
88 | friendlyarm,nanopi-r5s|\
89 | - friendlyarm,nanopi-r6s)
90 | + friendlyarm,nanopi-r6s|\
91 | + hinlink,opc-h66k|\
92 | + hinlink,opc-h68k|\
93 | + hinlink,opc-h69k)
94 | wan_mac=$(macaddr_generate_from_mmc_cid mmcblk1)
95 | lan_mac=$(macaddr_add "$wan_mac" 1)
96 | ;;
97 |
98 | --- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
99 | +++ b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
100 | @@ -34,6 +34,7 @@
101 | firefly,rk3568-roc-pc|\
102 | friendlyarm,nanopi-r5c|\
103 | friendlyarm,nanopi-r6c|\
104 | +hinlink,opc-h66k|\
105 | lunzn,fastrhino-r66s|\
106 | radxa,e25|\
107 | xunlong,orangepi-5-plus)
108 | @@ -60,15 +61,17 @@
109 | set_interface_core 20 "eth1"
110 | ;;
111 | friendlyarm,nanopi-r5s|\
112 | -friendlyarm,nanopi-r6s)
113 | +friendlyarm,nanopi-r6s|\
114 | +hinlink,opc-h69k)
115 | set_interface_core 2 "eth0"
116 | set_interface_core 4 "eth1"
117 | set_interface_core 8 "eth2"
118 | ;;
119 | -lunzn,fastrhino-r68s)
120 | +lunzn,fastrhino-r68s|\
121 | +hinlink,opc-h68k)
122 | set_interface_core 1 "eth0"
123 | set_interface_core 2 "eth1"
124 | set_interface_core 4 "eth2"
125 | set_interface_core 8 "eth3"
126 | ;;
127 | esac
128 |
129 | --- a/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
130 | +++ b/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
131 | @@ -16,7 +16,7 @@
132 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-r4s-enterprise.dtb
133 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-orangepi.dtb
134 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb
135 | -@@ -90,9 +92,11 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bp
136 | +@@ -90,9 +92,14 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bp
137 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
138 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
139 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r68s.dtb
140 | @@ -24,6 +24,9 @@
141 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
142 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
143 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
144 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-opc-h66k.dtb
145 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-opc-h68k.dtb
146 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-opc-h69k.dtb
147 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-photonicat.dtb
148 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-odroid-m1.dtb
149 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-radxa-e25.dtb
150 |
--------------------------------------------------------------------------------
/devices/common/diy.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #=================================================
3 | shopt -s extglob
4 |
5 | sed -i '$a src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master' feeds.conf.default
6 | sed -i "/telephony/d" feeds.conf.default
7 |
8 | sed -i "s?targets/%S/packages?targets/%S/\$(LINUX_VERSION)?" include/feeds.mk
9 |
10 | sed -i '/ refresh_config();/d' scripts/feeds
11 |
12 | ./scripts/feeds update -a
13 | ./scripts/feeds install -a -p kiddin9 -f
14 | ./scripts/feeds install -a
15 |
16 | echo "$(date +"%s")" >version.date
17 | sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
18 | sed -i 's/$(TARGET_DIR)) install/$(TARGET_DIR)) install --force-overwrite --force-depends/' package/Makefile
19 | sed -i "s/DEFAULT_PACKAGES:=/DEFAULT_PACKAGES:=luci-app-advancedplus luci-app-firewall luci-app-opkg luci-app-upnp luci-app-autoreboot \
20 | luci-app-wizard luci-base luci-compat luci-lib-ipkg luci-lib-fs \
21 | coremark wget-ssl curl autocore htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash openssh-sftp-server block-mount resolveip ds-lite swconfig luci-app-fan luci-app-filebrowser /" include/target.mk
22 | sed -i "s/procd-ujail//" include/target.mk
23 |
24 | sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk
25 |
26 | status=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status')
27 | echo "$status"
28 | while [[ "$status" == "in_progress" || "$status" == "queued" ]];do
29 | echo "wait 5s"
30 | sleep 5
31 | status=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status')
32 | done
33 |
34 |
35 | mv -f feeds/kiddin9/r81* tmp/
36 |
37 | sed -i "s/192.168.1/10.0.0/" package/feeds/kiddin9/base-files/files/bin/config_generate
38 | sed -i "s/192.168.1/10.0.0/" package/base-files/files/bin/config_generate
39 |
40 | #sed -i "/call Build\/check-size,\$\$(KERNEL_SIZE)/d" include/image.mk
41 |
42 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
43 |
44 | git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-5.15
45 | curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch
46 |
47 | sed -i "s/CONFIG_WERROR=y/CONFIG_WERROR=n/" target/linux/generic/config-5.15
48 |
49 | sed -i "s/no-lto,$/no-lto no-mold,$/" include/package.mk
50 |
51 | [ -d package/kernel/mt76 ] && {
52 | mkdir package/kernel/mt76/patches
53 | curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
54 | }
55 |
56 | cd feeds/packages
57 | rm -rf libs/libpfring
58 | git_clone_path master https://github.com/openwrt/packages libs/libpfring
59 | cd ../../
60 |
61 | rm -rf package/network/utils/xdp-tools package/feeds/kiddin9/quectel_MHI package/feeds/packages/v4l2loopback
62 |
63 | grep -q 'PKG_RELEASE:=9' package/libs/openssl/Makefile && {
64 | sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/a48d0bdb77eb93f7fba6e055dace125c72755b6a.patch | patch -d './' -p1 --forward"
65 | }
66 |
67 | sed -i "/wireless.\${name}.disabled/d" package/kernel/mac80211/files/lib/wifi/mac80211.sh || sed -i "/wireless.\${name}.disabled/d" package/network/config/wifi-scripts/files/lib/wifi/mac80211.sh
68 |
69 | sed -i 's/Os/O2/g' include/target.mk
70 | sed -i "/mediaurlbase/d" package/feeds/*/luci-theme*/root/etc/uci-defaults/*
71 | sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf
72 |
73 | # find target/linux/x86 -name "config*" -exec bash -c 'cat kernel.conf >> "{}"' \;
74 | sed -i 's/max_requests 3/max_requests 20/g' package/network/services/uhttpd/files/uhttpd.config
75 | #rm -rf ./feeds/packages/lang/{golang,node}
76 | sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab
77 |
78 | date=`date +%m.%d.%Y`
79 | sed -i -e "/\(# \)\?REVISION:=/c\REVISION:=$date" -e '/VERSION_CODE:=/c\VERSION_CODE:=$(REVISION)' include/version.mk
80 |
81 | sed -i \
82 | -e "s/+\(luci\|luci-ssl\|uhttpd\)\( \|$\)/\2/" \
83 | -e "s/+nginx\( \|$\)/+nginx-ssl\1/" \
84 | -e 's/+python\( \|$\)/+python3/' \
85 | -e 's?../../lang?$(TOPDIR)/feeds/packages/lang?' \
86 | package/feeds/kiddin9/*/Makefile
87 |
88 | (
89 | if [ -f sdk.tar.xz ]; then
90 | sed -i 's,$(STAGING_DIR_HOST)/bin/upx,upx,' package/feeds/kiddin9/*/Makefile
91 | mkdir sdk
92 | tar -xJf sdk.tar.xz -C sdk
93 | cp -rf sdk/*/staging_dir/* ./staging_dir/
94 | rm -rf sdk.tar.xz sdk
95 | sed -i '/\(tools\|toolchain\)\/Makefile/d' Makefile
96 | if [ -f /usr/bin/python ]; then
97 | ln -sf /usr/bin/python staging_dir/host/bin/python
98 | else
99 | ln -sf /usr/bin/python3 staging_dir/host/bin/python
100 | fi
101 | ln -sf /usr/bin/python3 staging_dir/host/bin/python3
102 | fi
103 | ) &
104 |
--------------------------------------------------------------------------------
/devices/mediatek_mt7981/.config:
--------------------------------------------------------------------------------
1 | CONFIG_TARGET_mediatek=y
2 | CONFIG_TARGET_mediatek_mt7981=y
3 | CONFIG_TARGET_MULTI_PROFILE=y
4 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_glinet_gl-x3000=y
5 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_glinet_gl-xe3000=y
6 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_livinet_zr-3020=y
7 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_mt7981-clt-r30b1-112M=y
8 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_nradio_wt9103=y
9 | CONFIG_TARGET_DEVICE_mediatek_mt7981_DEVICE_nradio_wt9103_512m=y
10 |
11 |
12 | CONFIG_VERSION_DIST="OpenWrt"
13 |
14 | CONFIG_PACKAGE_dnsmasq_full_nftset=n
15 |
16 | CONFIG_DEVEL=y
17 | CONFIG_TOOLCHAINOPTS=y
18 | CONFIG_BUSYBOX_CUSTOM=y
19 | CONFIG_TARGET_PER_DEVICE_ROOTFS=n
20 | CONFIG_AFALG_UPDATE_CTR_IV=y
21 | CONFIG_BUSYBOX_CONFIG_BLKID=y
22 | CONFIG_BUSYBOX_CONFIG_FEATURE_BLKID_TYPE=y
23 | CONFIG_BUSYBOX_CONFIG_VOLUMEID=y
24 | CONFIG_CONNINFRA_AUTO_UP=y
25 | CONFIG_CONNINFRA_EMI_SUPPORT=y
26 | # CONFIG_GDB is not set
27 | # CONFIG_KERNEL_BLK_DEV_THROTTLING is not set
28 | # CONFIG_KERNEL_CFS_BANDWIDTH is not set
29 | CONFIG_KERNEL_CGROUP_DEVICE=y
30 | CONFIG_KERNEL_CGROUP_FREEZER=y
31 | CONFIG_KERNEL_DEVMEM=y
32 | # CONFIG_KERNEL_KEYS is not set
33 | # CONFIG_KERNEL_MEMCG_SWAP is not set
34 | CONFIG_KERNEL_NET_CLS_CGROUP=y
35 | CONFIG_MTK_ACK_CTS_TIMEOUT_SUPPORT=y
36 | CONFIG_MTK_AIR_MONITOR=y
37 | CONFIG_MTK_AMPDU_CONF_SUPPORT=y
38 | CONFIG_MTK_ANTENNA_CONTROL_SUPPORT=y
39 | CONFIG_MTK_APCLI_SUPPORT=y
40 | CONFIG_MTK_ATE_SUPPORT=y
41 | CONFIG_MTK_BACKGROUND_SCAN_SUPPORT=y
42 | CONFIG_MTK_CAL_BIN_FILE_SUPPORT=y
43 | CONFIG_MTK_CFG_SUPPORT_FALCON_MURU=y
44 | CONFIG_MTK_CFG_SUPPORT_FALCON_PP=y
45 | CONFIG_MTK_CFG_SUPPORT_FALCON_SR=y
46 | CONFIG_MTK_CFG_SUPPORT_FALCON_TXCMD_DBG=y
47 | CONFIG_MTK_CHIP_MT7981=y
48 | CONFIG_MTK_CONNINFRA_APSOC=y
49 | CONFIG_MTK_CONNINFRA_APSOC_MT7981=y
50 | CONFIG_MTK_CON_WPS_SUPPORT=y
51 | CONFIG_MTK_DBDC_MODE=y
52 | CONFIG_MTK_DOT11K_RRM_SUPPORT=y
53 | CONFIG_MTK_DOT11R_FT_SUPPORT=y
54 | CONFIG_MTK_DOT11W_PMF_SUPPORT=y
55 | CONFIG_MTK_DOT11_HE_AX=y
56 | CONFIG_MTK_DOT11_N_SUPPORT=y
57 | CONFIG_MTK_DOT11_VHT_AC=y
58 | CONFIG_MTK_FAST_NAT_SUPPORT=y
59 | CONFIG_MTK_FIRST_IF_EEPROM_FLASH=y
60 | CONFIG_MTK_FIRST_IF_IPAILNA=y
61 | CONFIG_MTK_FIRST_IF_MT7981=y
62 | CONFIG_MTK_GREENAP_SUPPORT=y
63 | CONFIG_MTK_G_BAND_256QAM_SUPPORT=y
64 | CONFIG_MTK_HDR_TRANS_RX_SUPPORT=y
65 | CONFIG_MTK_HDR_TRANS_TX_SUPPORT=y
66 | CONFIG_MTK_ICAP_SUPPORT=y
67 | CONFIG_MTK_IGMP_SNOOP_SUPPORT=y
68 | CONFIG_MTK_INTERWORKING=y
69 | CONFIG_MTK_MAP_R2_VER_SUPPORT=y
70 | CONFIG_MTK_MAP_R3_VER_SUPPORT=y
71 | CONFIG_MTK_MAP_SUPPORT=y
72 | CONFIG_MTK_MBSS_DTIM_SUPPORT=y
73 | CONFIG_MTK_MBSS_SUPPORT=y
74 | CONFIG_MTK_MCAST_RATE_SPECIFIC=y
75 | CONFIG_MTK_MEMORY_SHRINK=y
76 | CONFIG_MTK_MEMORY_SHRINK_AGGRESS=y
77 | CONFIG_MTK_MGMT_TXPWR_CTRL=y
78 | CONFIG_MTK_MLME_MULTI_QUEUE_SUPPORT=y
79 | CONFIG_MTK_MT7981_NEW_FW=y
80 | CONFIG_MTK_MT_AP_SUPPORT=m
81 | CONFIG_MTK_MT_DFS_SUPPORT=y
82 | CONFIG_MTK_MT_MAC=y
83 | CONFIG_MTK_MT_WIFI=m
84 | CONFIG_MTK_MT_WIFI_PATH="mt_wifi"
85 | CONFIG_MTK_MUMIMO_SUPPORT=y
86 | CONFIG_MTK_MU_RA_SUPPORT=y
87 | CONFIG_MTK_OFFCHANNEL_SCAN_FEATURE=y
88 | CONFIG_MTK_OWE_SUPPORT=y
89 | CONFIG_MTK_QOS_R1_SUPPORT=y
90 | CONFIG_MTK_RA_PHY_RATE_SUPPORT=y
91 | CONFIG_MTK_RED_SUPPORT=y
92 | CONFIG_MTK_RTMP_FLASH_SUPPORT=y
93 | CONFIG_MTK_RT_FIRST_CARD_EEPROM="flash"
94 | CONFIG_MTK_RT_FIRST_IF_RF_OFFSET=0xc0000
95 | CONFIG_MTK_SCS_FW_OFFLOAD=y
96 | CONFIG_MTK_SECOND_IF_NONE=y
97 | CONFIG_MTK_SMART_CARRIER_SENSE_SUPPORT=y
98 | CONFIG_MTK_SPECTRUM_SUPPORT=y
99 | CONFIG_MTK_SUPPORT_OPENWRT=y
100 | CONFIG_MTK_THIRD_IF_NONE=y
101 | CONFIG_MTK_TPC_SUPPORT=y
102 | CONFIG_MTK_TXBF_SUPPORT=y
103 | CONFIG_MTK_UAPSD=y
104 | CONFIG_MTK_VLAN_SUPPORT=y
105 | CONFIG_MTK_VOW_SUPPORT=y
106 | CONFIG_MTK_WARP_V2=y
107 | CONFIG_MTK_WDS_SUPPORT=y
108 | CONFIG_MTK_WHNAT_SUPPORT=m
109 | CONFIG_MTK_WIFI_BASIC_FUNC=y
110 | CONFIG_MTK_WIFI_DRIVER=y
111 | CONFIG_MTK_WIFI_EAP_FEATURE=y
112 | CONFIG_MTK_WIFI_FW_BIN_LOAD=y
113 | CONFIG_MTK_WIFI_MODE_AP=m
114 | CONFIG_MTK_WIFI_MT_MAC=y
115 | CONFIG_MTK_WIFI_TWT_SUPPORT=y
116 | CONFIG_MTK_WLAN_HOOK=y
117 | CONFIG_MTK_WLAN_SERVICE=y
118 | CONFIG_MTK_WNM_SUPPORT=y
119 | CONFIG_MTK_WPA3_SUPPORT=y
120 | CONFIG_MTK_WSC_INCLUDED=y
121 | CONFIG_MTK_WSC_V2_SUPPORT=y
122 |
123 | # CONFIG_PKG_CHECK_FORMAT_SECURITY is not set
124 | # CONFIG_PKG_FORTIFY_SOURCE_1 is not set
125 | CONFIG_PKG_FORTIFY_SOURCE_2=y
126 | CONFIG_WARP_CHIPSET="mt7981"
127 | CONFIG_WARP_DBG_SUPPORT=y
128 | CONFIG_WARP_NEW_FW=y
129 | CONFIG_WARP_VERSION=2
130 | CONFIG_WED_HW_RRO_SUPPORT=y
131 | CONFIG_WIFI_NORMAL_SETTING=y
132 | # CONFIG_WOLFSSL_HAS_ECC25519 is not set
133 | CONFIG_first_card=y
134 | CONFIG_first_card_name="MT7981"
135 | # CONFIG_AFALG_FALLBACK is not set
136 | # CONFIG_MTK_BAND_STEERING is not set
137 | # CONFIG_MTK_DEFAULT_5G_PROFILE is not set
138 | # CONFIG_MTK_MAC_REPEATER_SUPPORT is not set
139 | # CONFIG_MTK_MULTI_PROFILE_SUPPORT is not set
140 | # CONFIG_MTK_PCIE_ASPM_DYM_CTRL_SUPPORT is not set
141 | # CONFIG_MTK_PRE_CAL_TRX_SET1_SUPPORT is not set
142 | # CONFIG_MTK_PRE_CAL_TRX_SET2_SUPPORT is not set
143 | # CONFIG_MTK_RLM_CAL_CACHE_SUPPORT is not set
144 | # CONFIG_MTK_SNIFFER_RADIOTAP_SUPPORT is not set
145 |
146 | CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
--------------------------------------------------------------------------------
/devices/common/patches/imagebuilder.patch:
--------------------------------------------------------------------------------
1 | --- a/target/imagebuilder/Makefile
2 | +++ b/target/imagebuilder/Makefile
3 | @@ -38,13 +38,15 @@ $(BIN_DIR)/$(IB_NAME).tar.xz: clean
4 | ./files/repositories.conf \
5 | $(TMP_DIR)/.targetinfo \
6 | $(TMP_DIR)/.packageinfo \
7 | - $(PKG_BUILD_DIR)/
8 | + $(TOPDIR)/files \
9 | + $(PKG_BUILD_DIR)/ || true
10 |
11 | -ifeq ($(CONFIG_IB_STANDALONE),)
12 | echo '## Remote package repositories' >> $(PKG_BUILD_DIR)/repositories.conf
13 | $(call FeedSourcesAppend,$(PKG_BUILD_DIR)/repositories.conf)
14 | $(VERSION_SED_SCRIPT) $(PKG_BUILD_DIR)/repositories.conf
15 | -endif
16 | + $(SED) 's/^src\/gz \(.*\) https.*ai\/\(.*packages.*\)/src \1 file:\/\/www\/wwwroot\/dl.openwrt.ai\/\2/' $(PKG_BUILD_DIR)/repositories.conf
17 | + $(SED) 's/^src\/gz \(.*\) https.*ai\/\(.*targets.*\)/src \1 file:\/\/www\/wwwroot\/dl.openwrt.ai\/\2/' $(PKG_BUILD_DIR)/repositories.conf
18 | + $(SED) '/openwrt_core/d' $(PKG_BUILD_DIR)/repositories.conf
19 |
20 | $(INSTALL_DIR) $(PKG_BUILD_DIR)/packages
21 | # create an empty package index so `opkg` doesn't report an error
22 |
23 | --- a/target/imagebuilder/files/Makefile
24 | +++ b/target/imagebuilder/files/Makefile
25 | @@ -135,17 +135,32 @@ BUILD_PACKAGES:=$(filter-out $(filter -%,$(BUILD_PACKAGES)) $(patsubst -%,%,$(fi
26 | PACKAGES:=
27 |
28 | _call_image: staging_dir/host/.prereq-build
29 | + [ "$(DATE)" ] && DATE="$(DATE)" || DATE="`date +'%m.%d.%Y'`"; \
30 | + mkdir -p $(USER_FILES)/etc/uci-defaults || true; \
31 | + echo -e " \
32 | + sed -i \"s/[0-9]\+.[0-9]\+.[0-9]\{4\}/$$DATE/\" /etc/openwrt_release \n \
33 | + sed -i \"s/DISTRIB_ID=.*/DISTRIB_ID='$(ROOTFS_PARTSIZE)'/\" /etc/openwrt_release \n \
34 | + sed -i \"s/OpenWrt .* by/OpenWrt $$DATE by/\" /etc/banner \n \
35 | + echo \"$$DATE\" >/etc/openwrt_version \n \
36 | + "> $(USER_FILES)/etc/uci-defaults/99-version; \
37 | echo 'Building images for $(BOARD)$(if $($(USER_PROFILE)_NAME), - $($(USER_PROFILE)_NAME))'
38 | echo 'Packages: $(BUILD_PACKAGES)'
39 | echo
40 | rm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG)
41 | mkdir -p $(TARGET_DIR) $(BIN_DIR) $(TMP_DIR) $(DL_DIR)
42 | + if [[ "$(USER_PROFILE)" =~ (DEVICE_phicomm_k2p|DEVICE_asus_rt-n56u-b1|DEVICE_thunder_timecloud|DEVICE_youku_yk-l2|DEVICE_youhua_wr1200js|DEVICE_oraybox_x3a|DEVICE_netgear_wndr3700-v5|DEVICE_xiaomi_mi-router-4a-gigabit|DEVICE_xiaomi_mi-router-4a-gigabit-v2|DEVICE_xiaomi_mi-router-3g-v2|DEVICE_jcg_y2|DEVICE_glinet_gl-mt300a|DEVICE_glinet_gl-mt750|DEVICE_hiwifi_hc5661|DEVICE_hiwifi_hc5761|DEVICE_hiwifi_hc5861|DEVICE_lenovo_newifi-y1|DEVICE_lenovo_newifi-y1s|DEVICE_xiaomi_miwifi-mini|DEVICE_youku_yk-l1c|DEVICE_jdcloud_luban|DEVICE_zte_e8820v2) || "$(TARGETID)" == "ramips/mt76x8" ]]; then \
43 | + echo "src/gz openwrt_smflash https://dl.openwrt.ai/packages/small_flash" >>$(TOPDIR)/repositories.conf; \
44 | + else \
45 | + sed -i "/smflash/d" $(TOPDIR)/repositories.conf; \
46 | + fi
47 | $(MAKE) package_reload
48 | $(MAKE) package_install
49 | $(MAKE) -s prepare_rootfs
50 | $(MAKE) -s build_image
51 | $(MAKE) -s json_overview_image_info
52 | $(MAKE) -s checksum
53 | + rm -rf $(KERNEL_BUILD_DIR)/tmp
54 | + rm -rf $(KERNEL_BUILD_DIR)/root.*
55 |
56 | _call_manifest: FORCE
57 | rm -rf $(TARGET_DIR)
58 | @@ -186,7 +201,17 @@ package_install: FORCE
59 | @echo Installing packages...
60 | $(OPKG) install $(firstword $(wildcard $(LINUX_DIR)/libc_*.ipk $(PACKAGE_DIR)/libc_*.ipk))
61 | $(OPKG) install $(firstword $(wildcard $(LINUX_DIR)/kernel_*.ipk $(PACKAGE_DIR)/kernel_*.ipk))
62 | - $(OPKG) install $(BUILD_PACKAGES)
63 | + for p in $(BUILD_PACKAGES); do \
64 | + if [[ $$p == luci-app-* && "`$(OPKG) list | grep luci-i18n-\`echo $$p | cut -d - -f 3-\`-zh-cn`" ]]; then \
65 | + packages+="luci-i18n-`echo $$p | cut -d - -f 3-`-zh-cn "; \
66 | + fi \
67 | + done; \
68 | + if [[ "`echo "$(BUILD_PACKAGES)" | grep "usb"`" ]]; then \
69 | + packages+="automount "; \
70 | + fi; \
71 | + $(OPKG) install --force-overwrite --force-checksum --force-depends $(BUILD_PACKAGES) luci-i18n-base-zh-cn luci-i18n-base-en; \
72 | + $(OPKG) install $$packages || true
73 | + $(OPKG) install --force-overwrite --force-checksum --force-depends --force-maintainer --force-reinstall my-default-settings
74 |
75 | prepare_rootfs: FORCE
76 | @echo
77 | @@ -200,12 +225,15 @@ prepare_rootfs: FORCE
78 | ) \
79 | )
80 | $(call prepare_rootfs,$(TARGET_DIR),$(USER_FILES),$(DISABLED_SERVICES))
81 | + if [[ "$(USER_PROFILE)" =~ (DEVICE_phicomm_k2p|DEVICE_asus_rt-n56u-b1|DEVICE_thunder_timecloud|DEVICE_youku_yk-l2|DEVICE_youhua_wr1200js|DEVICE_oraybox_x3a|DEVICE_netgear_wndr3700-v5|DEVICE_xiaomi_mi-router-4a-gigabit|DEVICE_xiaomi_mi-router-3g-v2|DEVICE_jcg_y2|DEVICE_glinet_gl-mt300a|DEVICE_glinet_gl-mt750|DEVICE_hiwifi_hc5661|DEVICE_hiwifi_hc5761|DEVICE_hiwifi_hc5861|DEVICE_lenovo_newifi-y1|DEVICE_lenovo_newifi-y1s|DEVICE_xiaomi_miwifi-mini|DEVICE_youku_yk-l1c|DEVICE_jdcloud_luban) || "$(TARGETID)" == "ramips/mt76x8" ]]; then \
82 | + echo "src/gz openwrt_smflash https://dl.openwrt.ai/packages/mipsel_24kc/small_flash" >>$(BUILD_DIR)/root-ramips/etc/opkg/distfeeds.conf; \
83 | + fi
84 |
85 | build_image: FORCE
86 | @echo
87 | @echo Building images...
88 | rm -rf $(BUILD_DIR)/json_info_files/
89 | - $(NO_TRACE_MAKE) -C target/linux/$(BOARD)/image install TARGET_BUILD=1 IB=1 EXTRA_IMAGE_NAME="$(EXTRA_IMAGE_NAME)" \
90 | + nice -n 19 $(NO_TRACE_MAKE) -C target/linux/$(BOARD)/image install TARGET_BUILD=1 IB=1 EXTRA_IMAGE_NAME="$(EXTRA_IMAGE_NAME)" \
91 | $(if $(USER_PROFILE),PROFILE="$(USER_PROFILE)")
92 |
93 | $(BIN_DIR)/profiles.json: FORCE
--------------------------------------------------------------------------------
/devices/ramips_mt7621/patches/01-small_flash.patch:
--------------------------------------------------------------------------------
1 | From f4b61c1960aa885d7de2953a36d9efacbf6e5406 Mon Sep 17 00:00:00 2001
2 | From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
3 | Date: Sat, 27 May 2023 03:53:49 +0800
4 | Subject: [PATCH] Update mt7621.mk
5 |
6 | Signed-off-by: kiddin9 <48883331+kiddin9@users.noreply.github.com>
7 | ---
8 | target/linux/ramips/image/mt7621.mk | 18 +++++++++---------
9 | 1 file changed, 9 insertions(+), 9 deletions(-)
10 |
11 | diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
12 | index 2697f84bf7684..df8c7d233cf1e 100644
13 | --- a/target/linux/ramips/image/mt7621.mk
14 | +++ b/target/linux/ramips/image/mt7621.mk
15 | @@ -330,7 +330,7 @@ define Device/asus_rt-n56u-b1
16 | DEVICE_VARIANT := B1
17 | IMAGE_SIZE := 16064k
18 | DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
19 | - kmod-usb-ledtrig-usbport -uboot-envtools
20 | + kmod-usb-ledtrig-usbport -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
21 | endef
22 | TARGET_DEVICES += asus_rt-n56u-b1
23 |
24 | @@ -1327,7 +1327,7 @@ define Device/jcg_y2
25 | JCG_MAXSIZE := 16064k
26 | DEVICE_VENDOR := JCG
27 | DEVICE_MODEL := Y2
28 | - DEVICE_PACKAGES := kmod-mt7615-firmware kmod-usb3 -uboot-envtools
29 | + DEVICE_PACKAGES := kmod-mt7615-firmware kmod-usb3 -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
30 | endef
31 | TARGET_DEVICES += jcg_y2
32 |
33 | @@ -1784,7 +1784,7 @@ define Device/netgear_wndr3700-v5
34 | SERCOMM_SWVER := 0x1054
35 | SERCOMM_PAD := 320k
36 | DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
37 | - kmod-usb-ledtrig-usbport -uboot-envtools
38 | + kmod-usb-ledtrig-usbport -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
39 | SUPPORTED_DEVICES += wndr3700v5
40 | endef
41 | TARGET_DEVICES += netgear_wndr3700-v5
42 | @@ -1812,7 +1812,7 @@ define Device/oraybox_x3a
43 | IMAGE_SIZE := 15360k
44 | DEVICE_VENDOR := OrayBox
45 | DEVICE_MODEL := X3A
46 | - DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools
47 | + DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
48 | endef
49 | TARGET_DEVICES += oraybox_x3a
50 |
51 | @@ -1824,7 +1824,7 @@ define Device/phicomm_k2p
52 | DEVICE_ALT0_VENDOR := Phicomm
53 | DEVICE_ALT0_MODEL := KE 2P
54 | SUPPORTED_DEVICES += k2p
55 | - DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools
56 | + DEVICE_PACKAGES := kmod-mt7615-firmware -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
57 | endef
58 | TARGET_DEVICES += phicomm_k2p
59 |
60 | @@ -1988,7 +1988,7 @@ define Device/thunder_timecloud
61 | IMAGE_SIZE := 16064k
62 | DEVICE_VENDOR := Thunder
63 | DEVICE_MODEL := Timecloud
64 | - DEVICE_PACKAGES := kmod-usb3 -wpad-basic-mbedtls -uboot-envtools
65 | + DEVICE_PACKAGES := kmod-usb3 -wpad-basic-mbedtls -uboot-envtools -bash -openssh-sftp-server -coremark -htop
66 | SUPPORTED_DEVICES += timecloud
67 | endef
68 | TARGET_DEVICES += thunder_timecloud
69 | @@ -2445,11 +2445,11 @@ TARGET_DEVICES += xiaomi_mi-router-3g
70 | define Device/xiaomi_mi-router-3g-v2
71 | $(Device/dsa-migration)
72 | $(Device/uimage-lzma-loader)
73 | - IMAGE_SIZE := 14848k
74 | + IMAGE_SIZE := 16064k
75 | DEVICE_VENDOR := Xiaomi
76 | DEVICE_MODEL := Mi Router 3G
77 | DEVICE_VARIANT := v2
78 | - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 -uboot-envtools
79 | + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
80 | SUPPORTED_DEVICES += xiaomi,mir3g-v2
81 | endef
82 | TARGET_DEVICES += xiaomi_mi-router-3g-v2
83 | @@ -2479,23 +2479,23 @@ TARGET_DEVICES += xiaomi_mi-router-4
84 | define Device/xiaomi_mi-router-4a-gigabit
85 | $(Device/dsa-migration)
86 | $(Device/uimage-lzma-loader)
87 | - IMAGE_SIZE := 14848k
88 | + IMAGE_SIZE := 16064k
89 | DEVICE_VENDOR := Xiaomi
90 | DEVICE_MODEL := Mi Router 4A
91 | DEVICE_VARIANT := Gigabit Edition
92 | - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 -uboot-envtools
93 | + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
94 | endef
95 | TARGET_DEVICES += xiaomi_mi-router-4a-gigabit
96 |
97 | define Device/xiaomi_mi-router-4a-gigabit-v2
98 | $(Device/dsa-migration)
99 | $(Device/uimage-lzma-loader)
100 | - IMAGE_SIZE := 14784k
101 | + IMAGE_SIZE := 16064k
102 | DEVICE_VENDOR := Xiaomi
103 | DEVICE_MODEL := Mi Router 4A
104 | DEVICE_VARIANT := Gigabit Edition v2
105 | DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap \
106 | - -uboot-envtools
107 | + -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
108 | endef
109 | TARGET_DEVICES += xiaomi_mi-router-4a-gigabit-v2
110 |
111 | @@ -2570,7 +2570,7 @@ define Device/youhua_wr1200js
112 | DEVICE_VENDOR := YouHua
113 | DEVICE_MODEL := WR1200JS
114 | DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
115 | - kmod-usb-ledtrig-usbport -uboot-envtools
116 | + kmod-usb-ledtrig-usbport -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
117 | endef
118 | TARGET_DEVICES += youhua_wr1200js
119 |
120 | @@ -2580,7 +2580,7 @@ define Device/youku_yk-l2
121 | DEVICE_VENDOR := Youku
122 | DEVICE_MODEL := YK-L2
123 | DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
124 | - kmod-usb-ledtrig-usbport -uboot-envtools
125 | + kmod-usb-ledtrig-usbport -uboot-envtools wpad-mini -wpad-basic-mbedtls -coremark -htop -bash -openssh-sftp-server
126 | UIMAGE_MAGIC := 0x12291000
127 | UIMAGE_NAME := 400000000000000000003000
128 | endef
--------------------------------------------------------------------------------
/devices/rockchip_armv8/patches/22-H3399PC.patch:
--------------------------------------------------------------------------------
1 | diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile
2 | index 096692f4214..54df60aa350 100644
3 | --- a/package/boot/uboot-rockchip/Makefile
4 | +++ b/package/boot/uboot-rockchip/Makefile
5 | @@ -51,7 +51,8 @@ define U-Boot/nanopi-r2s-rk3328
6 | $(U-Boot/Default/rk3328)
7 | NAME:=NanoPi R2S
8 | BUILD_DEVICES:= \
9 | - friendlyarm_nanopi-r2s
10 | + friendlyarm_nanopi-r2s \
11 | + friendlyarm_nanopi-neo3
12 | endef
13 |
14 | define U-Boot/orangepi-r1-plus-rk3328
15 | @@ -141,6 +141,27 @@ define U-Boot/rockpro64-rk3399
16 | pine64_rockpro64
17 | endef
18 |
19 | +define U-Boot/rongpin-king3399-rk3399
20 | + $(U-Boot/Default/rk3399)
21 | + NAME:=Rongpin King3399
22 | + BUILD_DEVICES:= \
23 | + rongpin_king3399
24 | +endef
25 | +
26 | +define U-Boot/rocktech-mpc1903-rk3399
27 | + $(U-Boot/Default/rk3399)
28 | + NAME:=Rocktech MPC1903
29 | + BUILD_DEVICES:= \
30 | + rocktech_mpc1903
31 | +endef
32 | +
33 | +define U-Boot/sharevdi-h3399pc-rk3399
34 | + $(U-Boot/Default/rk3399)
35 | + NAME:=SHAREVDI H3399PC
36 | + BUILD_DEVICES:= \
37 | + sharevdi_h3399pc
38 | +endef
39 | +
40 |
41 | # RK3566 boards
42 |
43 | @@ -300,6 +307,9 @@ UBOOT_TARGETS := \
44 | nanopi-r4se-rk3399 \
45 | rock-pi-4-rk3399 \
46 | rockpro64-rk3399 \
47 | + rongpin-king3399-rk3399 \
48 | + rocktech-mpc1903-rk3399 \
49 | + sharevdi-h3399pc-rk3399 \
50 | nanopi-r2c-rk3328 \
51 | nanopi-r2c-plus-rk3328 \
52 | nanopi-r2s-rk3328 \
53 | diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
54 | index 7eb99ade652..92ede0f46e6 100644
55 | --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
56 | +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
57 | @@ -18,6 +18,9 @@ rockchip_setup_interfaces()
58 | friendlyarm,nanopi-r4s-enterprise|\
59 | friendlyarm,nanopi-r6c|\
60 | radxa,rockpi-e|\
61 | + rocktech,mpc1903|\
62 | + sharevdi,h3399pc|\
63 | + nlnet,xgp|\
64 | xunlong,orangepi-r1-plus|\
65 | xunlong,orangepi-r1-plus-lts)
66 | ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
67 | @@ -59,7 +60,10 @@ rockchip_setup_macs()
68 | friendlyarm,nanopi-r2c|\
69 | friendlyarm,nanopi-r2s|\
70 | lunzn,fastrhino-r66s|\
71 | - lunzn,fastrhino-r68s)
72 | + lunzn,fastrhino-r68s|\
73 | + rocktech,mpc1903|\
74 | + nlnet,xgp|\
75 | + sharevdi,h3399pc)
76 | wan_mac=$(macaddr_generate_from_mmc_cid mmcblk0)
77 | lan_mac=$(macaddr_add "$wan_mac" 1)
78 |
79 | --- a/target/linux/rockchip/image/armv8.mk
80 | +++ b/target/linux/rockchip/image/armv8.mk
81 | @@ -280,6 +280,46 @@
82 | endef
83 | TARGET_DEVICES += radxa_rock-pi-e
84 |
85 | +define Device/friendlyarm_nanopi-neo3
86 | + DEVICE_VENDOR := FriendlyARM
87 | + DEVICE_MODEL := NanoPi NEO3
88 | + SOC := rk3328
89 | + UBOOT_DEVICE_NAME := nanopi-r2s-rk3328
90 | + BOOT_FLOW := pine64-bin
91 | +endef
92 | +TARGET_DEVICES += friendlyarm_nanopi-neo3
93 | +
94 | +define Device/rongpin_king3399
95 | + DEVICE_VENDOR := Rongpin
96 | + DEVICE_MODEL := King3399
97 | + SOC := rk3399
98 | + UBOOT_DEVICE_NAME := rongpin-king3399-rk3399
99 | + BOOT_FLOW := pine64-bin
100 | + DEVICE_PACKAGES := kmod-r8169 -urngd kmod-brcmfmac cypress-firmware-4356-sdio rongpin-king3399-firmware wpad-basic-mbedtls
101 | +endef
102 | +TARGET_DEVICES += rongpin_king3399
103 | +
104 | +define Device/rocktech_mpc1903
105 | + DEVICE_VENDOR := Rocktech
106 | + DEVICE_MODEL := MPC1903
107 | + SOC := rk3399
108 | + SUPPORTED_DEVICES := rocktech,mpc1903
109 | + UBOOT_DEVICE_NAME := rocktech-mpc1903-rk3399
110 | + BOOT_FLOW := pine64-bin
111 | + DEVICE_PACKAGES := kmod-usb-net-smsc75xx kmod-usb-serial-cp210x -urngd
112 | +endef
113 | +TARGET_DEVICES += rocktech_mpc1903
114 | +
115 | +define Device/sharevdi_h3399pc
116 | + DEVICE_VENDOR := SHAREVDI
117 | + DEVICE_MODEL := H3399PC
118 | + SOC := rk3399
119 | + UBOOT_DEVICE_NAME := sharevdi-h3399pc-rk3399
120 | + BOOT_FLOW := pine64-bin
121 | + DEVICE_PACKAGES := kmod-r8169 -urngd
122 | +endef
123 | +TARGET_DEVICES += sharevdi_h3399pc
124 | +
125 | define Device/xunlong_orangepi-5
126 | DEVICE_VENDOR := Xunlong
127 | DEVICE_MODEL := Orange Pi 5
128 | diff --git a/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch b/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
129 | index 231bca2b544..441ce2f4e59 100644
130 | --- a/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
131 | +++ b/target/linux/rockchip/patches-6.6/900-arm64-boot-add-dts-files.patch
132 | @@ -1,10 +1,13 @@
133 | --- a/arch/arm64/boot/dts/rockchip/Makefile
134 | +++ b/arch/arm64/boot/dts/rockchip/Makefile
135 | -@@ -38,6 +38,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
136 | +@@ -38,6 +38,10 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
137 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-dumo.dtb
138 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb
139 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb
140 | +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-guangmiao-g4c.dtb
141 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-king3399.dtb
142 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-mpc1903.dtb
143 | ++dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-h3399pc.dtb
144 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-hugsun-x99.dtb
145 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-khadas-edge.dtb
146 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-khadas-edge-captain.dtb
147 | diff --git a/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch b/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch
148 | index ac01f8bb352..6f08c2d1190 100644
149 | --- a/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch
150 | +++ b/package/boot/uboot-rockchip/patches/900-arm-add-dts-files.patch
151 | @@ -1,10 +1,12 @@
152 | --- a/arch/arm/dts/Makefile
153 | +++ b/arch/arm/dts/Makefile
154 | -@@ -148,6 +148,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \
155 | +@@ -148,6 +148,9 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \
156 | rk3399-firefly.dtb \
157 | rk3399-gru-bob.dtb \
158 | rk3399-gru-kevin.dtb \
159 | + rk3399-guangmiao-g4c.dtb \
160 | ++ rk3399-h3399pc.dtb \
161 | ++ rk3399-mpc1903.dtb \
162 | rk3399-khadas-edge.dtb \
163 | rk3399-khadas-edge-captain.dtb \
164 | rk3399-khadas-edge-v.dtb \
--------------------------------------------------------------------------------
/devices/common/patches/netfilter.patch.b:
--------------------------------------------------------------------------------
1 | --- a/package/kernel/linux/modules/netfilter.mk
2 | +++ b/package/kernel/linux/modules/netfilter.mk
3 | @@ -458,15 +458,100 @@
4 | $(eval $(call KernelPackage,ipt-nat))
5 |
6 | +define KernelPackage/ipt-cgroup
7 | + SUBMENU:=$(NF_MENU)
8 | + TITLE:=cgroup netfilter module
9 | + KCONFIG:=$(KCONFIG_IPT_CGROUP)
10 | + FILES:=$(LINUX_DIR)/net/netfilter/*cgroup*.$(LINUX_KMOD_SUFFIX)
11 | + AUTOLOAD:=$(call AutoLoad,$(notdir $(IPT_CGROUP-m)))
12 | + DEPENDS:= kmod-ipt-core
13 | +endef
14 |
15 | +$(eval $(call KernelPackage,ipt-cgroup))
16 | +
17 | +define KernelPackage/ipt-cgroup/description
18 | + Kernel support for cgroup netfilter module
19 | + Include:
20 | + - cgroup
21 | +endef
22 | +
23 | define KernelPackage/ipt-raw
24 | TITLE:=Netfilter IPv4 raw table support
25 | KCONFIG:=CONFIG_IP_NF_RAW
26 | FILES:=$(LINUX_DIR)/net/ipv4/netfilter/iptable_raw.ko
27 | AUTOLOAD:=$(call AutoProbe,iptable_raw)
28 | $(call AddDepends/ipt)
29 | endef
30 |
31 | $(eval $(call KernelPackage,ipt-raw))
32 | +
33 | +
34 | +define KernelPackage/ipt-imq
35 | + TITLE:=Intermediate Queueing support
36 | + KCONFIG:= \
37 | + CONFIG_IMQ \
38 | + CONFIG_IMQ_BEHAVIOR_BA=y \
39 | + CONFIG_IMQ_NUM_DEVS=2 \
40 | + CONFIG_NETFILTER_XT_TARGET_IMQ
41 | + FILES:= \
42 | + $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX) \
43 | + $(foreach mod,$(IPT_IMQ-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
44 | + AUTOLOAD:=$(call AutoProbe,$(notdir imq $(IPT_IMQ-m)))
45 | + $(call AddDepends/ipt)
46 | +endef
47 | +
48 | +define KernelPackage/ipt-imq/description
49 | + Kernel support for Intermediate Queueing devices
50 | +endef
51 | +
52 | +$(eval $(call KernelPackage,ipt-imq))
53 | +
54 | +
55 | +define KernelPackage/ipt-bandwidth
56 | + SUBMENU:=$(NF_MENU)
57 | + TITLE:=bandwidth
58 | + KCONFIG:=$(KCONFIG_IPT_BANDWIDTH)
59 | + FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*bandwidth*.$(LINUX_KMOD_SUFFIX)
60 | + AUTOLOAD:=$(call AutoLoad,$(notdir $(IPT_BANDWIDTH-m)))
61 | + DEPENDS:=@!LINUX_5_4 kmod-ipt-core
62 | +endef
63 | +
64 | +$(eval $(call KernelPackage,ipt-bandwidth))
65 | +
66 | +
67 | +define KernelPackage/ipt-timerange
68 | + SUBMENU:=$(NF_MENU)
69 | + TITLE:=timerange
70 | + KCONFIG:=$(KCONFIG_IPT_TIMERANGE)
71 | + FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*timerange*.$(LINUX_KMOD_SUFFIX)
72 | + AUTOLOAD:=$(call AutoLoad,$(notdir $(IPT_TIMERANGE-m)))
73 | + DEPENDS:=@!LINUX_5_4 kmod-ipt-core
74 | +endef
75 | +
76 | +$(eval $(call KernelPackage,ipt-timerange))
77 | +
78 | +
79 | +define KernelPackage/ipt-webmon
80 | + SUBMENU:=$(NF_MENU)
81 | + TITLE:=webmon
82 | + KCONFIG:=$(KCONFIG_IPT_WEBMON)
83 | + FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*webmon*.$(LINUX_KMOD_SUFFIX)
84 | + AUTOLOAD:=$(call AutoLoad,$(notdir $(IPT_WEBMON-m)))
85 | + DEPENDS:=@!LINUX_5_4 kmod-ipt-core
86 | +endef
87 | +
88 | +$(eval $(call KernelPackage,ipt-webmon))
89 | +
90 | +
91 | +define KernelPackage/ipt-weburl
92 | + SUBMENU:=$(NF_MENU)
93 | + TITLE:=weburl
94 | + KCONFIG:=$(KCONFIG_IPT_WEBURL)
95 | + FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*weburl*.$(LINUX_KMOD_SUFFIX)
96 | + AUTOLOAD:=$(call AutoLoad,$(notdir $(IPT_WEBURL-m)))
97 | + DEPENDS:=@!LINUX_5_4 kmod-ipt-core
98 | +endef
99 | +
100 | +$(eval $(call KernelPackage,ipt-weburl))
101 |
102 |
103 | define KernelPackage/ipt-raw6
104 |
105 | --- a/include/netfilter.mk
106 | +++ b/include/netfilter.mk
107 | @@ -111,3 +111,14 @@
108 |
109 | +# imq
110 | +
111 | +$(eval $(call nf_add,IPT_IMQ,CONFIG_IP_NF_TARGET_IMQ, $(P_V4)ipt_IMQ))
112 | +$(eval $(call nf_add,IPT_IMQ,CONFIG_NETFILTER_XT_TARGET_IMQ, $(P_XT)xt_IMQ))
113 | +
114 | +# gargoyle-qos
115 | +
116 | +$(eval $(call nf_add,IPT_BANDWIDTH,CONFIG_IP_NF_MATCH_BANDWIDTH, $(P_V4)ipt_bandwidth))
117 | +$(eval $(call nf_add,IPT_TIMERANGE,CONFIG_IP_NF_MATCH_TIMERANGE, $(P_V4)ipt_timerange))
118 | +$(eval $(call nf_add,IPT_WEBMON,CONFIG_IP_NF_MATCH_WEBMON, $(P_V4)ipt_webmon))
119 | +$(eval $(call nf_add,IPT_WEBURL,CONFIG_IP_NF_MATCH_WEBURL, $(P_V4)ipt_weburl))
120 |
121 | # ipopt
122 | @@ -151,3 +162,6 @@
123 | $(eval $(call nf_add,IPT_FLOW,CONFIG_NETFILTER_XT_TARGET_FLOWOFFLOAD, $(P_XT)xt_FLOWOFFLOAD))
124 | +
125 | +# cgroup
126 | +$(eval $(call nf_add,IPT_CGROUP,CONFIG_NETFILTER_XT_MATCH_CGROUP, $(P_XT)xt_cgroup))
127 |
128 | # IPv6
129 |
130 | --- a/package/network/utils/iptables/Makefile
131 | +++ b/package/network/utils/iptables/Makefile
132 | @@ -170,3 +170,49 @@
133 | endef
134 |
135 | +define Package/iptables-mod-cgroup
136 | +$(call Package/iptables/Module, +kmod-ipt-cgroup)
137 | + TITLE:=cgroup extension
138 | + endef
139 | +
140 | +define Package/iptables-mod-cgroup/description
141 | +iptables extension for cgroup support.
142 | +
143 | + Matches:
144 | + - cgroup
145 | +
146 | +endef
147 | +
148 | +define Package/iptables-mod-imq
149 | +$(call Package/iptables/Module, +kmod-ipt-imq)
150 | + TITLE:=IMQ support
151 | +endef
152 | +
153 | +define Package/iptables-mod-imq/description
154 | +iptables extension for IMQ support.
155 | +
156 | + Targets:
157 | + - IMQ
158 | +
159 | +endef
160 | +
161 | +define Package/iptables-mod-bandwidth
162 | +$(call Package/iptables/Module, +kmod-ipt-bandwidth)
163 | + TITLE:=bandwidth option extensions
164 | +endef
165 | +
166 | +define Package/iptables-mod-timerange
167 | +$(call Package/iptables/Module, +kmod-ipt-timerange)
168 | + TITLE:=timerange option extensions
169 | +endef
170 | +
171 | +define Package/iptables-mod-webmon
172 | +$(call Package/iptables/Module, +kmod-ipt-webmon)
173 | + TITLE:=webmon option extensions
174 | +endef
175 | +
176 | +define Package/iptables-mod-weburl
177 | +$(call Package/iptables/Module, +kmod-ipt-weburl)
178 | + TITLE:=weburl option extensions
179 | +endef
180 | +
181 | define Package/iptables-mod-ipopt
182 | @@ -666,2 +712,8 @@
183 | $(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
184 | +$(eval $(call BuildPlugin,iptables-mod-cgroup,$(IPT_CGROUP-m)))
185 | +$(eval $(call BuildPlugin,iptables-mod-imq,$(IPT_IMQ-m)))
186 | +$(eval $(call BuildPlugin,iptables-mod-bandwidth,$(IPT_BANDWIDTH-m)))
187 | +$(eval $(call BuildPlugin,iptables-mod-timerange,$(IPT_TIMERANGE-m)))
188 | +$(eval $(call BuildPlugin,iptables-mod-webmon,$(IPT_WEBMON-m)))
189 | +$(eval $(call BuildPlugin,iptables-mod-weburl,$(IPT_WEBURL-m)))
190 | $(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
191 |
192 |
--------------------------------------------------------------------------------