diff --git a/.github/workflows/Openwrt-AutoBuild.yml b/.github/workflows/Openwrt-AutoBuild.yml index b58a7239739e..b5bcf4a80935 100644 --- a/.github/workflows/Openwrt-AutoBuild.yml +++ b/.github/workflows/Openwrt-AutoBuild.yml @@ -240,7 +240,12 @@ jobs: - name: Check space usage run: | shopt -s extglob - rm -rf openwrt/staging_dir/!(*${{ env.MTARGET }}*|host|hostpkg) openwrt/build_dir/!(*${{ env.MTARGET }}*|host|hostpkg) + cd openwrt + if [[ ! -f staging_dir/*${{ env.MTARGET }}*/bin ]]; then + make dirclean + else + rm -rf staging_dir/!(*${{ env.MTARGET }}*|host|hostpkg) build_dir/!(*${{ env.MTARGET }}*|host|hostpkg) + fi df -hT - name: SSH connection to Actions @@ -253,7 +258,7 @@ jobs: shopt -s extglob cd openwrt echo -e "$(($(nproc)+1)) thread compile" - make -j$(($(nproc)+1)) V=s 2>&1 | tee build.log | grep -i "Error 2" && tail -20 build.log && (curl -k --data chat_id="${{ env.TELEGRAM_CHAT_ID }}" --data "text=❌ OpenWrt ${{ env.VERSION }} ${{matrix.target}} 编译失败 😂" "https://api.telegram.org/bot${{ env.TELEGRAM_TOKEN }}/sendMessage";exit 1) + make -j$(($(nproc)+1)) || make V=s &>build.log || (tail -50 build.log; curl -k --data chat_id="${{ env.TELEGRAM_CHAT_ID }}" --data "text=❌ OpenWrt ${{ env.VERSION }} ${{matrix.target}} 编译失败 😂" "https://api.telegram.org/bot${{ env.TELEGRAM_TOKEN }}/sendMessage";exit 1) sed -i "s/# CONFIG_IB is not set/CONFIG_IB=y/" .config rm -rf staging_dir/toolchain-*/bin/*openwrt-linux-musl-lto-dump rm -rf staging_dir/toolchain-*/initial @@ -292,8 +297,8 @@ jobs: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} ARGS: "-avzr" SOURCE: openwrt/bin/targets - REMOTE_HOST: op.supes.top - REMOTE_PORT: '223' + REMOTE_HOST: ${{ secrets.SERVER_HOST }} + REMOTE_PORT: ${{ secrets.SERVER_PORT }} REMOTE_USER: root TARGET: "/www/wwwroot/op.supes.top/releases/tmp/" diff --git a/devices/armvirt_64/diy/target/linux/armvirt/image/Makefile b/devices/armvirt_64/diy/target/linux/armvirt/image/Makefile index 45efa4a6ccd7..3512460e2408 100644 --- a/devices/armvirt_64/diy/target/linux/armvirt/image/Makefile +++ b/devices/armvirt_64/diy/target/linux/armvirt/image/Makefile @@ -15,136 +15,19 @@ define Device/Default KERNEL := kernel-bin endef -define Device/n1 - DEVICE_VENDOR := Phicomm - DEVICE_MODEL := N1 - SOC := s905d +define Device/box + DEVICE_VENDOR := + DEVICE_MODEL := 电视盒子全系列 / N1 DEVICE_PACKAGES := endef -TARGET_DEVICES += n1 - -define Device/beikeyun - DEVICE_VENDOR := 贝壳云 - DEVICE_MODEL :=P1 - SOC := rk3328 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += beikeyun - -define Device/vplus - DEVICE_VENDOR := 微加云 - DEVICE_MODEL := V-Plus - SOC := h6 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += vplus - -define Device/l1pro - DEVICE_VENDOR := 我家云 - DEVICE_MODEL := lL Pro - SOC := rk3328 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += l1pro - -define Device/mxqpro - DEVICE_VENDOR := MXQ - DEVICE_MODEL := Pro+ - SOC := s905 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += mxqpro - -define Device/x96max - DEVICE_VENDOR := x96 Max - DEVICE_MODEL := s905x2 - SOC := s905x2 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += x96max - -define Device/hk1 - DEVICE_VENDOR := HK1 - DEVICE_MODEL := Box - SOC := s905x3 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += hk1 - -define Device/zyxq - DEVICE_VENDOR := 章鱼星球 - DEVICE_MODEL := ZYXQ - SOC := s912 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += zyxq - -define Device/gtking - DEVICE_VENDOR := Beelink - DEVICE_MODEL := GT-King - SOC := s922x - DEVICE_PACKAGES := -endef -TARGET_DEVICES += gtking - -define Device/odroid-n2 - DEVICE_VENDOR := Hardkernel - DEVICE_MODEL := Odroid-N2 - SOC := s922x - DEVICE_PACKAGES := -endef -TARGET_DEVICES += odroid-n2 - -define Device/rock5b - DEVICE_VENDOR := Radxa - DEVICE_MODEL := ROCK 5B - SOC := RK3588 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += rock5b - -define Device/h88k - DEVICE_VENDOR := HinLink - DEVICE_MODEL := H88K - SOC := RK3588 - DEVICE_PACKAGES := -endef -TARGET_DEVICES += h88k +TARGET_DEVICES += box define Image/Build - export IMG_PREFIX="$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))"; \ export BIN_DIR=$(BIN_DIR); \ - export PARTSIZE=$(CONFIG_TARGET_ROOTFS_PARTSIZE); \ - cd /www/wwwroot/op.supes.top/bcache/armvirt/64/openwrt_packit; \ - . ../modify_packit.sh; \ - if [ $(PROFILE_SANITIZED) == "n1" ]; then \ - ./mk_s905d_n1.sh; \ - elif [ $(PROFILE_SANITIZED) == "beikeyun" ]; then \ - ./mk_rk3328_beikeyun.sh; \ - elif [ $(PROFILE_SANITIZED) == "l1pro" ]; then \ - ./mk_rk3328_l1pro.sh; \ - elif [ $(PROFILE_SANITIZED) == "mxqpro" ]; then \ - ./mk_s905_mxqpro+.sh; \ - elif [ $(PROFILE_SANITIZED) == "x96max" ]; then \ - ./mk_s905x2_x96max.sh; \ - elif [ $(PROFILE_SANITIZED) == "zyxq" ]; then \ - ./mk_s912_zyxq.sh; \ - elif [ $(PROFILE_SANITIZED) == "gtking" ]; then \ - ./mk_s922x_gtking.sh; \ - elif [ $(PROFILE_SANITIZED) == "odroid-n2" ]; then \ - ./mk_s922x_odroid-n2.sh; \ - elif [ $(PROFILE_SANITIZED) == "vplus" ]; then \ - ./mk_h6_vplus.sh; \ - elif [ $(PROFILE_SANITIZED) == "fastrhino_r68s" ]; then \ - ./mk_rk3568_r68s.sh; \ - elif [ $(PROFILE_SANITIZED) == "hk1" ]; then \ - ./mk_s905x3_multi.sh; \ - elif [ $(PROFILE_SANITIZED) == "rock5b" ]; then \ - ./mk_rk3588_rock5b.sh; \ - elif [ $(PROFILE_SANITIZED) == "h88k" ]; then \ - ./mk_rk3588_h88k.sh; \ - fi; \ - gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED)).img || true + export DATE=$(DATE); \ + cd /www/wwwroot/op.supes.top/bcache/armvirt/64/amlogic-s9xxx-openwrt; \ + . ../modify_amlogic.sh; \ + ./make -k 5.15.100 -b $(MORE) -s $(CONFIG_TARGET_ROOTFS_PARTSIZE) endef $(eval $(call BuildImage)) diff --git a/devices/ath79_nand/.config b/devices/ath79_nand/.config index 9d3a9ed3cd26..152f5b8dd832 100644 --- a/devices/ath79_nand/.config +++ b/devices/ath79_nand/.config @@ -13,7 +13,9 @@ CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300-v2=y CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300sw=y CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300tn=y CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4500-v3=y +CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_linksys_ea4500-v3=y CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_zte_mf286=y +CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_zte_mf281=y CONFIG_PACKAGE_luci-ssl=y # uhttpd服务 diff --git a/devices/common/.config b/devices/common/.config index 51d06516c694..040aaf1c9c0a 100644 --- a/devices/common/.config +++ b/devices/common/.config @@ -46,7 +46,7 @@ CONFIG_LUCI_LANG_zh_Hans=y CONFIG_LUCI_LANG_en=y CONFIG_PACKAGE_coremark=y CONFIG_DEVEL=y -CONFIG_CCACHE=y +CONFIG_CCACHE=n CONFIG_TOOLCHAINOPTS=y CONFIG_COREMARK_OPTIMIZE_O3=y CONFIG_COREMARK_ENABLE_MULTITHREADING=y @@ -81,17 +81,12 @@ CONFIG_PACKAGE_ca-bundle=y CONFIG_PACKAGE_dockerd=m -CONFIG_PACKAGE_kmod-hermes-pci=n -CONFIG_PACKAGE_kmod-hermes-pcmcia=n -CONFIG_PACKAGE_kmod-hermes-plx=n -CONFIG_PACKAGE_kmod-ipw2100=n -CONFIG_PACKAGE_kmod-ipw2200=n -CONFIG_PACKAGE_kmod-libipw=n -CONFIG_PACKAGE_kmod-rtl8189es=n CONFIG_PACKAGE_kmod-drm-nouveau=n CONFIG_PACKAGE_kmod-rtl8821cu=n CONFIG_PACKAGE_kmod-rtl88x2bu=n +CONFIG_PACKAGE_kmod-sprd_pcie=n + CONFIG_IMAGEOPT=y CONFIG_VERSIONOPT=y diff --git a/devices/common/diy.sh b/devices/common/diy.sh index a69d97b0e79c..02dd015adafa 100644 --- a/devices/common/diy.sh +++ b/devices/common/diy.sh @@ -14,6 +14,9 @@ sed -i '/ refresh_config();/d' scripts/feeds ./scripts/feeds install -a -p kiddin9 -f ./scripts/feeds install -a +svn co https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/feeds/kiddin9/mt76 +svn co https://github.com/openwrt/openwrt/trunk/package/network/services/hostapd package/feeds/kiddin9/hostapd + echo "$(date +"%s")" >version.date sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile sed -i 's/$(TARGET_DIR)) install/$(TARGET_DIR)) install --force-overwrite --force-depends/' package/Makefile @@ -25,7 +28,9 @@ sed -i "s/procd-ujail//" include/target.mk sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk status=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status') -while [ "$status" == "in_progress" ];do +echo "$status" +while [[ "$status" == "in_progress" || "$status" == "queued" ]];do + echo "wait 5s" sleep 5 status=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status') done diff --git a/devices/common/kernel_5.15.sh b/devices/common/kernel_5.15.sh index 4df22dd12f94..eb98658de52b 100644 --- a/devices/common/kernel_5.15.sh +++ b/devices/common/kernel_5.15.sh @@ -1,6 +1,6 @@ #!/bin/bash -rm -rf tools target/linux package/kernel package/boot package/firmware/linux-firmware include/{kernel-*,netfilter.mk} +rm -rf target/linux package/kernel package/boot package/firmware/linux-firmware include/{kernel-*,netfilter.mk} latest="$(curl -sfL https://github.com/openwrt/openwrt/commits/master/include | grep -o 'href=".*>kernel: bump 5.15' | head -1 | cut -d / -f 5 | cut -d '"' -f 1)" latest="" mkdir new; cp -rf .git new/.git @@ -9,7 +9,7 @@ cd new [ "$(echo $(git log -1 --pretty=short) | grep "kernel: bump 5.15")" ] && git checkout $latest -cp -rf --parents tools target/linux package/kernel package/boot package/firmware/linux-firmware include/{kernel-*,netfilter.mk} ../ +cp -rf --parents target/linux package/kernel package/boot package/firmware/linux-firmware include/{kernel-*,netfilter.mk} ../ cd - sed -i "s/9 -Xe/extreme/" include/image.mk diff --git a/devices/ramips_mt7620/.config b/devices/ramips_mt7620/.config index f905becd9fe4..08c5d1f4198e 100644 --- a/devices/ramips_mt7620/.config +++ b/devices/ramips_mt7620/.config @@ -14,5 +14,6 @@ CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_xiaomi_miwifi-mini=y CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_youku_yk-l1=y CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_youku_yk-l1c=y CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_xiaomi_miwifi-r3=y +CONFIG_TARGET_DEVICE_ramips_mt7620_DEVICE_zbtlink_zbt-we826-32m=y CONFIG_PACKAGE_luci-ssl=y # uhttpd服务 diff --git a/devices/ramips_mt7621/.config b/devices/ramips_mt7621/.config index f378fba0a278..83f764011d04 100644 --- a/devices/ramips_mt7621/.config +++ b/devices/ramips_mt7621/.config @@ -53,5 +53,6 @@ CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jdcloud_luban=y CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1800-plus=y CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1801-plus=y CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_h3c_tx1806=y +CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_zbtlink_zbt-wg3526-32m=y CONFIG_PACKAGE_luci-ssl=y # uhttpd服务 diff --git a/devices/rockchip_armv8/patches/r6s.patch b/devices/rockchip_armv8/patches/r6s.patch index 9125c96ebbce..08f053fce79a 100644 --- a/devices/rockchip_armv8/patches/r6s.patch +++ b/devices/rockchip_armv8/patches/r6s.patch @@ -1,17 +1,8 @@ --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk -@@ -52,4 +52,22 @@ +@@ -52,4 +52,13 @@ TARGET_DEVICES += friendlyarm_nanopi-r2s -+define Device/friendlyarm_nanopi-r5c -+ DEVICE_VENDOR := FriendlyARM -+ DEVICE_MODEL := NanoPi R5C -+ SOC := rk3328 -+ DEVICE_PACKAGES := -luci-app-gpsysupgrade rtl8822ce-firmware -+ DEVICE_DTS = rockchip/rk3328-nanopi-r2s -+endef -+TARGET_DEVICES += friendlyarm_nanopi-r5c -+ +define Device/friendlyarm_nanopi-r6s + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi R6S @@ -26,25 +17,17 @@ --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network -@@ -14,6 +14,7 @@ rockchip_setup_interfaces() +@@ -16,6 +16,9 @@ rockchip_setup_interfaces() friendlyarm,nanopi-r2s|\ friendlyarm,nanopi-r4s|\ friendlyarm,nanopi-r4se|\ -+ friendlyarm,nanopi-r5c|\ - sharevdi,guangmiao-g4c|\ - xunlong,orangepi-r1-plus|\ - xunlong,orangepi-r1-plus-lts) -@@ -33,6 +34,9 @@ rockchip_setup_interfaces() - friendlyarm,nanopi-r5s) - ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0" - ;; + friendlyarm,nanopi-r6s) + ucidef_set_interfaces_lan_wan "eth1 eth0" "eth2" + ;; - *) - ucidef_set_interface_lan 'eth0' - ;; -@@ -46,10 +50,10 @@ generate_mac_from_mmc_cid() + rocktech,mpc1903|\ + sharevdi,guangmiao-g4c|\ + xunlong,orangepi-r1-plus|\ +@@ -48,10 +52,10 @@ generate_mac_from_mmc_cid() echo "$(macaddr_unsetbit_mc "$(macaddr_setbit_la "${mac_base}")")" } @@ -57,7 +40,7 @@ local address if [ -f "$eeprom_path" ]; then -@@ -90,8 +94,12 @@ rockchip_setup_macs() +@@ -94,9 +98,13 @@ rockchip_setup_macs() ;; friendlyarm,nanopi-r4s|\ friendlyarm,nanopi-r4se) @@ -65,25 +48,21 @@ - lan_mac=$(nanopi_r4s_get_mac lan) + wan_mac=$(nanopi_get_mac wan 2-0051) + lan_mac=$(nanopi_get_mac lan 2-0051) -+ ;; + ;; + friendlyarm,nanopi-r6s) + wan_mac=$(nanopi_get_mac wan 6-0053) + lan_mac=$(nanopi_get_mac lan 6-0053) - ;; ++ ;; xunlong,orangepi-r1-plus|\ xunlong,orangepi-r1-plus-lts) + lan_mac=$(cat /sys/class/net/eth1/address) --- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds +++ a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds -@@ -30,6 +30,16 @@ friendlyarm,nanopi-r5s) +@@ -30,6 +30,11 @@ friendlyarm,nanopi-r5s) hinlink,opc-h68k) ucidef_set_led_netdev "wan" "WAN" "blue:net" "eth0" ;; -+friendlyarm,nanopi-r5c) -+ ucidef_set_led_netdev "wan" "WAN" "wan_led" "eth0" "link" -+ ucidef_set_led_netdev "lan1" "LAN1" "lan1_led" "eth1" "link" -+ ucidef_set_led_netdev "lan2" "LAN2" "lan2_led" "wlan0" "link" -+ ;; +friendlyarm,nanopi-r6s) + ucidef_set_led_netdev "wan" "WAN" "wan_led" "eth2" "link" + ucidef_set_led_netdev "lan1" "LAN1" "lan1_led" "eth1" "link" @@ -95,20 +74,10 @@ --- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity +++ a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity -@@ -51,5 +51,27 @@ friendlyarm,nanopi-r5s) - set_interface_core 2 "eth1" - set_interface_core 4 "eth2" - ;; -+friendlyarm,nanopi-r5c) -+ set_interface_core 2 "eth0-0" -+ set_interface_core 2 "eth0-16" -+ set_interface_core 2 "eth0-18" -+ echo d > /sys/class/net/eth0/queues/rx-0/rps_cpus -+ set_interface_core 4 "eth1-0" -+ set_interface_core 4 "eth1-16" -+ set_interface_core 4 "eth1-18" -+ echo b > /sys/class/net/eth1/queues/rx-0/rps_cpus -+ ;; +@@ -28,6 +28,18 @@ set_interface_core() { + } + + case "$(board_name)" in +friendlyarm,nanopi-r6s) + set_interface_core 2 "eth0" + echo 3e > /sys/class/net/eth0/queues/rx-0/rps_cpus @@ -121,12 +90,14 @@ + set_interface_core 80 "eth2-18" + echo fe > /sys/class/net/eth2/queues/rx-0/rps_cpus + ;; - esac - + fastrhino,r66s|\ + friendlyarm,nanopi-r5c|\ + firefly,rk3568-roc-pc) --- a/target/linux/rockchip/image/Makefile +++ b/target/linux/rockchip/image/Makefile -@@ -80,3 +80,25 @@ +@@ -79,4 +79,17 @@ endif + include $(SUBTARGET).mk +define Image/Build @@ -139,15 +110,6 @@ + ./build.sh sd-img; \ + [ "$(MORE)" == "eflasher" ] && ./build.sh emmc-img; \ + rm -rf $(BIN_DIR)/*r6s-squashfs-sysupgrade.img.gz $(BIN_DIR)/images-for-eflasher; \ -+ elif [ $(PROFILE_SANITIZED) == "friendlyarm_nanopi-r5c" ]; then \ -+ export IMG_PREFIX="$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))"; \ -+ export BIN_DIR=$(BIN_DIR); \ -+ export TOPDIR=$(TOPDIR); \ -+ cd /www/wwwroot/op.supes.top/bcache/rockchip/armv8/friendlywrt22-rk3568; \ -+ . ../modify_packit.sh; \ -+ ./build.sh sd-img; \ -+ [ "$(MORE)" == "eflasher" ] && ./build.sh emmc-img; \ -+ rm -rf $(BIN_DIR)/*r6s-squashfs-sysupgrade.img.gz $(BIN_DIR)/images-for-eflasher; \ + fi +endef + diff --git a/devices/x86_generic/diy.sh b/devices/x86_generic/diy.sh index d8fa56b66234..606f0b408752 100644 --- a/devices/x86_generic/diy.sh +++ b/devices/x86_generic/diy.sh @@ -31,6 +31,9 @@ CONFIG_MMC_DEBUG=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ACPI=y CONFIG_MMC_SDHCI_PCI=y +CONFIG_MMC_TIFM_SD=y +CONFIG_TIFM_CORE=y +CONFIG_TIFM_7XX1=y ' >> ./target/linux/x86/config-5.15 sed -i "s/DEVICE_MODEL := x86/DEVICE_MODEL := x86\/32/" target/linux/x86/image/generic.mk