├── .env ├── .github └── workflows │ ├── build-snapshot.yml │ └── release.yml ├── .gitignore ├── README.md ├── configs ├── config-18.x.yml ├── config-19.07.8.yml ├── config-19.x.yml ├── config-21.02-rc2.yml ├── config-21.02.0.yml ├── config-21.02.2.yml ├── config-21.x.yml ├── config-22.03.0.yml ├── config-22.03.2.yml ├── config-22.03.4.yml ├── config-docker_qsdk11.5.yml ├── config-mt798x-7.6.6.1.yml ├── config-qsdk11.5.yml ├── config-qsdk11.yml ├── config-qsdk53.yml ├── config-siflower-18.x.yml ├── config-trunk.yml ├── config-wlan-ap-5.4.yml ├── config-wlan-ap.yml └── config.yml ├── feeds ├── README.md └── glinet │ └── helloworld │ ├── Makefile │ └── src │ ├── Makefile │ └── helloworld.c ├── files-wlan-ap-5.4 └── openwrt │ └── package │ ├── network │ ├── services │ │ ├── dnsmasq │ │ │ └── patches │ │ │ │ └── 300-remove-limit-hostname.patch │ │ └── ppp │ │ │ └── files │ │ │ └── ppp.sh │ └── utils │ │ └── iwinfo │ │ └── patches │ │ └── 0002-fix-kmgmt-names.patch │ └── system │ └── opkg │ └── patches │ ├── 001-support-db.patch │ └── 002-conffile-use-standard-output.patch ├── patches-18.x ├── 0001-pending-scripts-add-gen_config.py.patch ├── 0002-scripts-update-feed-script.patch └── README.md ├── patches-19.07.8 ├── 0002-scripts-update-feed-script.patch ├── 0006-package-busybox-enable-fractional-arguments-for-slee.patch ├── 0007-kernel-wext-support-old-private-wifi-driver.patch ├── 0008-kernel-usb-tethering-samsung-s10-mac-zero.patch ├── 0009-kernel-support-fast-forward.patch ├── 0010-kernel-fix-mac-increment.patch ├── 0011-ramips-mmc-fix-mount-fail-for-some-32G-Card.patch ├── 0012-ramips-fix-reset-for-mt7530.patch ├── 0013-package-wireless-tools-fix-iwpriv-segment-fault.patch ├── 0014-iwinfo.patch ├── 0015-package-hostapd-close-SMPS-mode-state-switching-info.patch ├── 0016-package-mac80211-support-tuningcaps-for-QCA9531.patch ├── 0017-image-support-gl-metadata-and-compatable-1806.patch ├── 0018-imagebuilder-files-always-overwrite.patch ├── 0019-upgrade-compatable-1806.patch ├── 0020-upgrade-fix-process-kill-failed.patch ├── 0021-firmware-update.patch ├── 0022-kernel-usb-fix-usb-net-card.patch ├── 0023-kernel-add-rtl8192eu.patch ├── 0024-upgrade-compatable-1806.patch ├── 0025-ath79-add-some-modem-support.patch ├── 0026-target-add-some-gl-inet-model-support.patch ├── 0027-base-files-set-bootcount-for-ar300m.patch ├── 0028-boot-fix-mtk-wifi-config.patch ├── 0029-ramips-mt300n-v2-i2c-gpio-reuse.patch ├── 0030-target-ramips-fix-esw-rt3050-panic.patch ├── 0031-target-ramips-fix-irq-affinity-GL-MT1300.patch ├── 0100-Target-Support-glinet-hardware-information.patch ├── 0101-gpio-button-support-see-current-state.patch ├── 0102-feat-sdk4.0-metadata.patch ├── 0103-opkg-support-database.patch ├── 0105-fix-opkg-database-synchronization-update.patch ├── 0107-kernel-leds-support-gradient-in-led-trigger-timer.patch ├── 0108-target-ramips-add-et6326-led-driver-for-GL-MT1300.patch ├── 0110-feat-hostapd-add-send-dev-connect-and-dev-disconnect.patch ├── 0111-fit-crash_log-for-ar750-ar750s-xe300-x750-e750-x1200.patch ├── 0112-add-support-for-b1300th.patch └── README.md ├── patches-19.x ├── 0002-scripts-update-feed-script.patch ├── 0003-feeds-add-gl-feeds.patch ├── 0005-package-openvpn-update-to-2.5.0.patch ├── 0006-package-busybox-enable-fractional-arguments-for-slee.patch ├── 0007-kernel-wext-support-old-private-wifi-driver.patch ├── 0008-kernel-usb-tethering-samsung-s10-mac-zero.patch ├── 0009-kernel-support-fast-forward.patch ├── 0010-kernel-fix-mac-increment.patch ├── 0011-ramips-mmc-fix-mount-fail-for-some-32G-Card.patch ├── 0012-ramips-fix-reset-for-mt7530.patch ├── 0013-package-wireless-tools-fix-iwpriv-segment-fault.patch ├── 0014-iwinfo.patch ├── 0015-package-hostapd-close-SMPS-mode-state-switching-info.patch ├── 0016-package-mac80211-support-tuningcaps-for-QCA9531.patch ├── 0017-image-support-gl-metadata-and-compatable-1806.patch ├── 0018-imagebuilder-files-always-overwrite.patch ├── 0019-upgrade-compatable-1806.patch ├── 0020-upgrade-fix-process-kill-failed.patch ├── 0021-firmware-update.patch ├── 0022-kernel-usb-fix-usb-net-card.patch ├── 0023-kernel-add-rtl8192eu.patch ├── 0024-upgrade-compatable-1806.patch ├── 0025-ath79-add-some-modem-support.patch ├── 0026-target-add-some-gl-inet-model-support.patch ├── 0027-base-files-set-bootcount-for-ar300m.patch ├── 0028-boot-fix-mtk-wifi-config.patch ├── 0029-ramips-mt300n-v2-i2c-gpio-reuse.patch ├── 0030-target-ramips-fix-esw-rt3050-panic.patch ├── 0031-target-ramips-fix-irq-affinity-GL-MT1300.patch ├── 0032-ramips-fix-mt76x8-WAN-LAN-leakage-during-router-boot.patch ├── 0100-Target-Support-glinet-hardware-information.patch ├── 0101-gpio-button-support-see-current-state.patch ├── 0102-feat-sdk4.0-metadata.patch ├── 0103-opkg-support-database.patch ├── 0105-fix-opkg-database-synchronization-update.patch ├── 0107-kernel-leds-support-gradient-in-led-trigger-timer.patch ├── 0108-target-ramips-add-et6326-led-driver-for-GL-MT1300.patch ├── 0110-feat-hostapd-add-send-dev-connect-and-dev-disconnect.patch ├── 0111-fit-crash_log-for-ar750-ar750s-xe300-x750-e750-x1200.patch ├── 0112-add-support-for-b1300th.patch ├── 0113-fix-b1300th-dts-and-sysupgrade.patch ├── 0114-fix-ath10k-collapse.patch ├── 0115-ipq40xx-fix-b1300th-partition-name.patch ├── 0116-ipq40xx-fix-b1300th-partition.patch └── README.md ├── patches-21.02.0 ├── 0001-ath79-add-support-for-gl-xe300.patch ├── 0002-ath79-add-support-for-gl-mifi.patch ├── 0003-add-modem-support.patch ├── 0004-add-RS485-support.patch ├── 0005-add-spinand-support.patch ├── 0006-led-netdev-trigger-by-wwanx.patch ├── 0007-ath79-add-support-for-gl-ar300m.patch ├── 0008-ath79-add-support-for-gl-x300b.patch ├── 0009-ath79-add-support-for-gl-ar150.patch ├── 0010-ath79-add-support-for-gl-usb150.patch ├── 0011-add-support-gl-ar750-ar750s.patch ├── 0012-ath79-add-support-for-gl-x750.patch └── 0013-support-fast-forward.patch ├── patches-21.02.2 ├── 0001-ath79-add-support-for-gl-xe300.patch ├── 0002-ath79-add-support-for-gl-mifi.patch ├── 0002-scripts-update-feed-script.patch ├── 0003-add-modem-support.patch ├── 0004-add-RS485-support.patch ├── 0005-add-spinand-support.patch ├── 0006-led-netdev-trigger-by-wwanx.patch ├── 0007-ath79-add-support-for-gl-ar300m.patch ├── 0008-ath79-add-support-for-gl-x300b.patch ├── 0009-ath79-add-support-for-gl-ar150.patch ├── 0010-ath79-add-support-for-gl-usb150.patch ├── 0011-add-support-gl-ar750-ar750s.patch ├── 0012-ath79-add-support-for-gl-x750.patch ├── 0013-add-support-for-gl-a1300.patch ├── 0014-ath79-add-support-for-gl-s200.patch ├── 0015-ipq40xx-add-smp-network-performance-optimization.patch ├── 0016-enable-2.4G-vht.patch ├── 0017-add-glient-info-for-x86.patch ├── 0017-ipq40xx-add-modem-support-and-compatible-with-a1300_update_dts.patch ├── 0017-ipq40xx-support-EM160R-EM060K-EM120K-RM520N-modem.patch ├── 0018-Fix-the-compilation-error-caused-by-the-long-road.patch ├── 0019-revert-spi-qup-driver-to-v4.14.patch ├── 0020-update-21.02-feeds.conf.default-feeds.patch ├── 0021-diag-support-status_led_breathing.patch ├── 0022-add-packages-support-append-glinet-private-packages.patch ├── 0023-fix-GD5F1GQ5UExxG-ecc-info.patch ├── 0023-fix-x86-firewall.patch ├── 0024-network_initialization_add-wan_mac-lan_mac.patch ├── 0025-a1300-remove-nand-sysupgrade.bin.patch ├── 0027-b1300-update-dts.patch ├── 0028-b1300-adapt-to-sdk4.patch ├── 0029-ipq40xx-add-support-for-gl-ap1300.patch ├── 0030-add-default-wan-vlan-for-pppoe-vlan-setup.patch ├── 0031-s200-add-wan_mac-lan_mac.patch ├── 0032-b1300-ap1300-export-gpio.patch ├── 0033-add-b1300-ap1300-led-default-config.patch ├── 0034-fix-switch-link-failure-connected-with-100M-cable.patch ├── 0036-ipq-add-flash-script-into-factory-image-adapt-for-ap.patch └── 0037-kernel-add-support-RFC-4191-Route-Information-Option.patch ├── patches-21.x ├── 0001-pending-scripts-add-gen_config.py.patch ├── 0002-scripts-update-feed-script.patch ├── 0010-Kernel-support-SPI-nand-GD5F1GQ5UE.patch ├── 0011-Kernel-add-quectel-modes-support.patch ├── 0100-ATH79-support-glinet-xe300.patch └── README.md ├── patches-22.03.0 ├── 0001-fix-scripts-feeds-support-setup.patch ├── 0002-fix-add-append-gl-metadata.patch ├── 0003-fix-gl-mt1300-adapts-to-glinet-SDK4.0.patch ├── 0004-fix-mt7615-wifi-init-DBDC-by-default.patch ├── 0006-fix-wireguard-support-hotplug.patch ├── 0007-fix-switch-button-execute-etc-rc.button-switch.patch ├── 0008-fix-gl-mt1300-support-sdhci-by-default.patch ├── 0009-fix-mt1300-dts-add-log-part.patch ├── 0010-fix-ramips-mtdoops-add-_panic_write.patch ├── 0011-feat-enable-2.4g-vht.patch ├── 0012-fix-opkg-support-db.patch └── 0013-mac80211-support-disable-dfs-cac-dynamically.patch ├── patches-22.03.2 ├── 0001-fix-scripts-feeds-support-setup.patch ├── 0002-fix-add-append-gl-metadata.patch ├── 0003-fix-gl-mt1300-adapts-to-glinet-SDK4.0.patch ├── 0004-fix-mt7615-wifi-init-DBDC-by-default.patch ├── 0006-fix-wireguard-support-hotplug.patch ├── 0007-fix-switch-button-execute-etc-rc.button-switch.patch ├── 0008-fix-gl-mt1300-support-sdhci-by-default.patch ├── 0009-fix-mt1300-dts-add-log-part.patch ├── 0010-fix-ramips-mtdoops-add-_panic_write.patch ├── 0011-feat-enable-2.4g-vht.patch ├── 0012-fix-opkg-support-db.patch ├── 0015-add-modem-support.patch ├── 0016-gl-x300b-add-rs485-support.patch ├── 0017-ath79-eth-support-ifname.patch ├── 0018-add-switch-driver-ag71xx_ar7240.patch ├── 0019-fix-led-netdev-trigger-by-wwanx.patch ├── 0020-fix-ar8337-switch-reset.patch ├── 0022-ipq40xx-fix-wireguard-support-hotplug.patch ├── 0024-fix-add-dhcpv6-hotplug.patch ├── 0025-fix-dnsmasq-mount-tmp-resolv.conf.xxx.patch ├── 0026--mt1300-configure-dbdc-in-dts.patch ├── 0027-mac80211-indicate-scanning-state-via-debugfs.patch ├── 0028-mac80211-support-bypass-cac.patch ├── 0029-mac80211-support-set-dfs-channel-available-via-debug.patch ├── 0030-fix-ath79-crash-log-and-wireguard-support.patch ├── 0031-modify-image-rootfs-size-to-512M.patch ├── 0401-ipq40xx-add-support-for-gl-s1300-emmc.patch ├── 1001-add-mv1000-uboot-envtools-partition.patch ├── 1002-adapt-to-mv1000-usb-devise.patch ├── 2001-ath79-e750-crash-after-restart-5g-wifi.patch ├── 2002-Kernel-support-EM060K.patch ├── 3001-ath79-adjust-01_leds.patch ├── 3002-ath79-adjust-02_network.patch ├── 3003-ath79-adjust-nand.mk.patch ├── 3004-ath79-adjust-platform.sh.patch ├── 3005-ath79-adjust-ath10k-caldata.patch ├── 3006-mvebu-adjust-01-leds.patch ├── 3007-mvebu-adjust-02_network.patch ├── 3008-mvebu-adjust-usb-devise.patch ├── 3009-mvebu-adjust-platform-sh.patch ├── 3010-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch ├── 3011-update-mvebu-fwtools-script.patch ├── 3012-mvebu-adjust-cortexa53.patch ├── 3013-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch ├── 4001-support-x300b-target.patch ├── 4002-support-xe300-target.patch ├── 4003-support-x750-target.patch ├── 4004-support-ar750s-target.patch ├── 4005-support-mv1000-target.patch └── 4006-support-e750-target.patch ├── patches-22.03.4 ├── 0001-fix-scripts-feeds-support-setup.patch ├── 0002-fix-add-append-gl-metadata.patch ├── 0011-feat-enable-2.4g-vht.patch ├── 1000-gpio-button-hotplug-Add-KEY_SETUP.patch ├── 1001-add-mv1000-uboot-envtools-partition.patch ├── 1002-adapt-to-mv1000-usb-devise.patch ├── 1003-iwinfo-support-mtk-private-wifi-driver.patch ├── 1004-mt76-dbdc-configurable-via-dts.patch ├── 1005-fix-mt7615-wifi-init-DBDC-by-default.patch ├── 1006-fix-add-dhcpv6-hotplug.patch ├── 1007-fix-dnsmasq-mount-tmp-resolv.conf.xxx.patch ├── 1008-mac80211-indicate-scanning-state-via-debugfs.patch ├── 1009-mac80211-support-bypass-cac.patch ├── 1010-mac80211-support-set-dfs-channel-available-via-debug.patch ├── 1011-fix-opkg-support-db.patch ├── 2000-fix-wireguard-support-hotplug.patch ├── 2001-ath79-e750-crash-after-restart-5g-wifi.patch ├── 2002-kernel-support-EM060K-and-EM05G.patch ├── 2003-ath10k-Read-eeprom-data-preferentially.patch ├── 2004-kernel-wext-support-old-private-wifi-driver.patch ├── 2005-fix-mtdoops-add-_panic_write.patch ├── 2006-add-modem-support.patch ├── 2007-fix-led-netdev-trigger-by-wwanx.patch ├── 2008-rs485-auto-txrx.patch ├── 2008-solved-2.4G-wifi-disconnection-problem.patch ├── 3000-ath79-eth-support-ifname.patch ├── 3001-ath79-adjust-01_leds.patch ├── 3002-ath79-adjust-02_network.patch ├── 3003-ath79-adjust-nand.mk.patch ├── 3004-ath79-adjust-platform.sh.patch ├── 3005-ath79-adjust-ath10k-caldata.patch ├── 3006-mvebu-adjust-01-leds.patch ├── 3007-mvebu-adjust-02_network.patch ├── 3008-mvebu-adjust-usb-devise.patch ├── 3009-mvebu-adjust-platform-sh.patch ├── 3010-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch ├── 3011-update-mvebu-fwtools-script.patch ├── 3012-mvebu-adjust-cortexa53.patch ├── 3013-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch ├── 3014-add-switch-driver-ag71xx_ar7240.patch ├── 3015-fix-ar8337-switch-reset.patch ├── 3016-fix-mt7628-esw-carrier-status.patch ├── 4001-support-x300b-target.patch ├── 4002-support-xe300-target.patch ├── 4003-support-x750-target.patch ├── 4004-support-ar750s-target.patch ├── 4005-support-mv1000-target.patch ├── 4006-support-e750-target.patch ├── 4007-support-ar300m-target.patch ├── 4008-support-ar750-target.patch ├── 4009-GL-MT300N-V2-adapted-to-GL.iNet-SDK-4.X.patch ├── 4010-GL-MT1300-adapted-to-GL.iNet-SDK-4.x.patch └── 4011-ipq40xx-add-support-for-gl-s1300-emmc.patch ├── patches-mt798x-7.6.6.1 ├── 0001-scripts-update-feed-script.patch ├── 0002-init-from-mediatek-sdk-v7.6.6.1.patch ├── 0004-image-add-append-gl-metadata.patch ├── 0008-mksquashfs4-add-root-owned-option.patch ├── 0009-packages-support-append-glinet-private-packages.patch ├── 0400-modules-add-support-lg-vl600.patch ├── 0403-compat-gpy211-external-flash.patch ├── 0404-block2mtd-support-multi-partition-map.patch ├── 1000-gpio-button-hotplug-add-name-switch.patch ├── 1001-fstool-support-emmc-part-name.patch ├── 1002-iwinfo-support-mtk-private-wifi-driver.patch ├── 1003-package-ppp-fix-ipv6.patch ├── 1004-package-dnsmasq-remove-limit-hostname.patch ├── 1005-package-opkg-use-db-and-standard-output-for-conffile.patch ├── 1006-wifi-reuse-netifd.patch ├── 1007-kernel-add-ramoops-module-support.patch ├── 1008-Fix-the-compilation-error-caused-by-the-long-road.patch ├── 1009-dnsmasq-supprot-passthrough.patch ├── 1010-odhcpd-add-hotplug.patch ├── 2000-gpio-add-named-gpio-exports.patch ├── 2001-wireguard-support-hotplug.patch ├── 2002-kernel-add-some-modem-support-for-gl.patch ├── 2003-kernel-fix-phylink-resolve-fixed-link.patch ├── 2004-kernel-nand-fix-crash-log-for-gl.patch ├── 2005-Kernel-support-EM160R-EM060K-EM120K-RM520N.patch ├── 2006-Kernel-support-software-acceleration.patch ├── 2007-Kernel-fix-led-netdev-trigger.patch ├── 3001-mt7981-adjust-01_leds.patch ├── 3001-mt7981-adjust-02_network.patch ├── 3002-mt7981-adjust-mt7981.mk.patch ├── 3004-target-mediatek-mtkhnat-fix-for-gl.patch ├── 3005-wext-increase-scan-data-length.patch ├── 3006-kernel-common-eth-Remove-SGMII_FIXED_2G5-from-Maxlin.patch ├── 3007-kernel-common-eth-Fix-HSGMII-link-down-issue.patch ├── 3008-support-uart1-no-use-cts-and-rts.patch ├── 3009-target-mediatek-mt798x-hnat-no-support-nat6.patch ├── 3010-target-mediatek-fix-compare-macaddr-in-hwnat-driver.patch ├── 4001-support-MT2500-target.patch ├── 4002-support-X3000-target.patch ├── 4003-support-XE3000-target.patch ├── 4004-support-MT3000.patch ├── 4010-support-Qihoo-360T7.patch └── 4011-support-original-360t7-uboot.patch ├── patches-qsdk11 ├── 0001-scripts-update-feed-script.patch └── README.md ├── patches-qsdk53 ├── 0001-pending-scripts-add-gen_config.py.patch ├── 0002-scripts-update-feed-script.patch ├── 0003-Makefile-auto-generate-img.patch ├── 0004-improve-feeds.conf.default.patch ├── 0008-kernel-GPIO-openthread-SPI.patch └── README.md ├── patches-siflower-18.x ├── 0002-scripts-update-feed-script.patch ├── 0003-add-gitignore.patch ├── 0004-fix-use-openwrt18.06-feeds.patch ├── 0005-fix-gcc-detect-error-on-ubuntu20.10.patch ├── 0101-fix-Add-metadata-and-adapt-GLiNet-firmware-upgrade.patch ├── 0102-fix-configure-the-WiFi-configuration-according-to-th.patch ├── 0103-fix-modify-the-Siflower-SDK-according-to-the-feature.patch ├── 0104-fix-iproute2-depends.patch ├── 0106-sft1200-support-nand-tar-upgrade.patch ├── 0107-fix-delete-siflower-guest-and-lease-wifi-iface.patch ├── 0200-feat-support-nand-compile.patch ├── 0201-feat-siflower-add-usb-nand-gpio-feature.patch ├── 0300-feat-spi-nand-support-gigadevice.patch ├── 0301-fix-avoid-radar-channel-when-auto.patch ├── 0303-fix-disable-hwnat-on-vpn-or-tethering.patch ├── 0304-fix-EC20-dongle-panic.patch ├── 0305-fix-pppd-automatically-reconnects.patch ├── 0306-fix-delete-usb-statistics-debug.patch ├── 0307-feat-add-UE-country-code.patch ├── 0308-fix-DMA-alignment-to-start-at-allocated-boundary.patch ├── 0309-fix-sta-enable-ieee80211r-by-default.patch ├── 0900-fix-u-boot-compile-error.patch ├── 4000-fix-ubuntu-21.04-compile-error.patch ├── 4001-fix-m4-compile-error.patch ├── 4002-fix-update-cmake-to-3.19.1.patch ├── 4003-fix-update-mklibs-to-0.1.35.patch ├── 4004-fix-update-firewall-to-2019-11-22.patch ├── 4005-fix-delete-gl-feeds.patch ├── 4006-fix-video-videobuf2-compile-error.patch ├── 4007-fix-bluetooth-compile-error.patch ├── 4008-fix-radio-for-phy.patch ├── 4009-fix-libubox-compile-error.patch ├── 4010-fix-change-feeds.conf-sorting.patch ├── 4011-ix-add-ieee80211-init-script.patch ├── 4012-fix-limit-wifi-max-power.patch ├── 4013-fix-change-band-name.patch ├── 4014-fix-update-ca-cert-to-20210119.patch ├── 4016-fix-support-mtd-oops-nand-write.patch ├── 4017-fix-switch-button-execute-etc-rc.button-switch.patch ├── 4018-fix-5g-band-set-acs_noradar-as-1.patch ├── 4019-fix-feeds-use-github.com.patch ├── 4020-fix-plugin-add-database-record.patch ├── 4021-wireguard-support-hotplug-for-gl.patch ├── 4022-firewall-support-src-as-a-zone-in-rule.patch ├── 9000-add-support-GL.iNET-SF1200-target.patch ├── 9001-add-support-GL.iNET-SFT1200-target.patch ├── 9002-fix-sft1200-dts-adapt-to-sdk4.patch └── 9003-fix-support-sysupgrade-T.patch ├── patches-trunk ├── 0001-pending-scripts-add-gen_config.py.patch ├── 0002-scripts-update-feed-script.patch └── README.md ├── patches-wlan-ap-5.4 ├── 0001-ax1800-axt1800-fit-dts-for-gl-inet.patch ├── 0002-wifi-ax-fix-gen-macaddr.patch ├── 0003-ipq807x-add-wireguard-support.patch ├── 0005-ipq807x-change-the-suffix-of-nand-factory.bin-to-img.patch ├── 0006-wifi-ax-add-kmod-hwmon-core-dependent-for-ath11k.patch ├── 0007-ipq807x-fix-gl-ax1800-switch-button-high-active-leve.patch ├── 0008-ipq807x-use-append-metadata-gl.patch ├── 0009-ipq807x-add-modem-support-for-gl.inet.patch ├── 0010-wireguard-add-hotplug-support.patch ├── 0011-axt1800-fix-dts-for-sdhci.patch ├── 0012-gl-axt1800-fix-gl-fan-dts.patch └── openwrt │ ├── 0001-Revert-base-files-set-default-password-to-openwifi.patch │ ├── 0002-Revert-base-files-ignore-sysupgrade-that-was-not-our.patch │ ├── 0003-gen_config-add-version-info.patch │ ├── 0004-gpio-button-hotplug-notify-with-label.patch │ ├── 0005-ipq-factory-image-uboot-web-compatibility.patch │ ├── 0006-fix-bridge-isolate.patch │ ├── 0007-kernel-fix-build-fail-for-bridge.patch │ ├── 0008-image-add-append-metadata-gl-support.patch │ ├── 0009-support-append-glinet-private-packages.patch │ ├── 0010-ipq-add-flash-script-into-factory-image.patch │ ├── 0011-add-inet-diag-support.patch │ ├── 0012-fixed-openwrt-feeds-hash.patch │ └── 0013-update-lib-version.patch ├── patches-wlan-ap ├── 0001-ath11k-wifi-update-GL-AXT1800-BDF.patch ├── 0002-ipq807x-use-append-gl-metadata-for-gl-ax1800.patch ├── 0003-ipq807x-change-name-nand-factory-img.patch ├── 0004-ipq807x-fix-bridge-isolate.patch ├── 0005-dts-fix-dts-for-gl-ax1800.patch ├── 0005-dts-fix-dts-for-gl-axt1800.patch ├── 0006-add-support-gpio-export-driver.patch ├── 0007-fix-missing-kernel-symbol.patch ├── 0008-ipq807x-wireguard-support-hotplug-for-gl.patch ├── 0010-ipq807x-show-symbol-udp-tunnel-for-wireguard.patch ├── 0012-ipq807x-fix-tethering-ipheth.patch ├── 0013-ipq807x-hack-mtdoops-for-gl.patch ├── 0014-ipq807x-fix-usb-modem-driver-for-gl.patch ├── 0015-ipq807x-add-support-novatel-rndis.patch ├── 0016-ipq807x-fix-sdhci-detect-failed-during-booting.patch ├── 0016-support-kmod-raw-diag.patch ├── 0019-update-ipq6018-wifi-fw-to-11.5cs.patch ├── 0020-fix-axt1800-wifi-mac-detect.patch ├── 0023-ax1800-kernel-config-sync-with-axt1800.patch ├── 0024-ipq-export-gpio-value-from-sys-kernel-debug-gpio.patch ├── 0025-Support-EM160R-EM060k-EM120K-RM520N-modem.patch ├── 0027-fix-ax1800-ble-not-disabled-when-4.1.0-release-2-kee.patch ├── 0029-mac80211-enable-scan-with-ap.patch ├── 0030-mac80211-indicate-scanning-state-via-debugfs.patch ├── 0031-mac80211-support-bypass-cac.patch ├── 0032-ipq807x-fix-qca-nss-clients-feed.patch ├── 0033-mac80211-support-set-dfs-channel-available-via-debug.patch ├── 0034-ath11k-mask-160MHz-support-in-5G-band-for-gl-axt1800.patch └── openwrt │ ├── 0001-image-support-append-gl-metadata.patch │ ├── 0002-support-append-glinet-private-packages.patch │ ├── 0003-base-files-set-default-password-to-empty.patch │ ├── 0004-gpio-button-hotplug-notify-with-label.patch │ ├── 0005-ipq-add-flash-script-into-factory-image.patch │ ├── 0006-Revert-base-files-ignore-sysupgrade-that-was-not-our.patch │ ├── 0007-ipq-factory-image-uboot-web-compatibility.patch │ ├── 0008-scripts-gen_config-add-version-info.patch │ ├── 0009-kernel-fix-build-br_netfilter-fail.patch │ ├── 0010-package-ppp-fix-ipv6.patch │ ├── 0011-package-dnsmasq-remove-limit-hostname.patch │ ├── 0012-package-iwinfo-fix-kmgmt-names.patch │ ├── 0013-opkg-use-db-and-use-standard-output-for-conffile.patch │ ├── 0014-package-exfat-fix-build-fail.patch │ ├── 0015-kernel-fix-dependency-of-kmod-nf-nat6.patch │ ├── 0016-include-ipt_nat6-depends-ip6t_MASQUERADE.patch │ ├── 0017-kmod-mmc-fix-ko-path.patch │ ├── 0018-fix-all-kmods-compile-error.patch │ ├── 0019-add-inet-diag-support.patch │ ├── 0020-fixed-openwrt-feeds-hash.patch │ ├── 0021-kernel-fix-missing-symbol.patch │ └── 0022-gcc-fix-build-fail-on-ubuntu-22.04.patch ├── profiles ├── README.md ├── glinet_a1300.yml ├── glinet_ap1300.yml ├── glinet_ar150.yml ├── glinet_ar300m.yml ├── glinet_ar750.yml ├── glinet_ar750s.yml ├── glinet_ax1800.yml ├── glinet_axt1800.yml ├── glinet_axt1800_v4_1.yml ├── glinet_b1300.yml ├── glinet_common.yml ├── glinet_debug.yml ├── glinet_depends.yml ├── glinet_depends_s200.yml ├── glinet_e750.yml ├── glinet_mifi.yml ├── glinet_mt1300.yml ├── glinet_mt2500.yml ├── glinet_mt3000.yml ├── glinet_mt300n-v2.yml ├── glinet_mt7981_wifi.yml ├── glinet_mv1000.yml ├── glinet_n300.yml ├── glinet_nas.yml ├── glinet_s1300.yml ├── glinet_s200.yml ├── glinet_sf1200.yml ├── glinet_sft1200.yml ├── glinet_snapshot.yml ├── glinet_usb150.yml ├── glinet_vixmini.yml ├── glinet_x3000.yml ├── glinet_x300b.yml ├── glinet_x750-nor.yml ├── glinet_x86.yml ├── glinet_xe300.yml ├── glinet_xe3000.yml ├── imagebuilder_21_02.yml ├── imagebuilder_22_03.yml ├── imagebuilder_mt1300.yml ├── imagebuilder_mt7981.yml ├── imagebuilder_siflower.yml ├── imagebuilder_wlan_ap.yml ├── istore.yml ├── luci.yml ├── mt7981-360-t7-108M.yml ├── mt7981-360-t7.yml ├── openwrt_common.yml ├── target_ath79_gl-ar150.yml ├── target_ath79_gl-ar300m-lite.yml ├── target_ath79_gl-ar300m-nand.yml ├── target_ath79_gl-ar300m-nor.yml ├── target_ath79_gl-ar750.yml ├── target_ath79_gl-ar750s.yml ├── target_ath79_gl-e750.yml ├── target_ath79_gl-mifi.yml ├── target_ath79_gl-s200.yml ├── target_ath79_gl-x300b-nor-nand.yml ├── target_ath79_gl-x300b-nor.yml ├── target_ath79_gl-x300b.yml ├── target_ath79_gl-x750-nor.yml ├── target_ath79_gl-x750.yml ├── target_ath79_gl-xe300.yml ├── target_ipq40xx_gl-a1300.yml ├── target_ipq40xx_gl-ap1300.yml ├── target_ipq40xx_gl-b1300.yml ├── target_ipq40xx_gl-b1300th.yml ├── target_ipq40xx_gl-s1300-emmc.yml ├── target_ipq40xx_gl-s1300.yml ├── target_mt7981_360t7-108M.yml ├── target_mt7981_360t7.yml ├── target_mt7981_gl-mt2500.yml ├── target_mt7981_gl-mt3000.yml ├── target_mt7981_gl-x3000.yml ├── target_mt7981_gl-xe3000.yml ├── target_mvebu_gl-mv1000.yml ├── target_qsdk11_5_gl-ax1800.yml ├── target_qsdk11_5_gl-axt1800.yml ├── target_qsdk11_gl-s1300.yml ├── target_qsdk53_gl-s1300.yml ├── target_ramips_gl-mt1300.yml ├── target_ramips_gl-mt300n-v2.yml ├── target_ramips_microuter-n300.yml ├── target_ramips_vixmini.yml ├── target_rockchip_r2s.yml ├── target_siflower_gl-sf1200.yml ├── target_siflower_gl-sft1200.yml ├── target_wlan_ap-gl-ax1800-5-4.yml ├── target_wlan_ap-gl-ax1800-common-5-4.yml ├── target_wlan_ap-gl-ax1800-common.yml ├── target_wlan_ap-gl-ax1800.yml ├── target_wlan_ap-gl-axt1800-5-4.yml ├── target_wlan_ap-gl-axt1800.yml ├── target_x86-64.yml ├── v4.2.3.yml └── v4.3.2.yml ├── requirements.txt ├── scripts ├── gen_config.py ├── openwrt │ └── gen_config.py └── wlan-ap │ └── gen_config.py └── setup.py /.env: -------------------------------------------------------------------------------- 1 | https_proxy=http://192.168.99.211:10809 2 | -------------------------------------------------------------------------------- /.github/workflows/build-snapshot.yml: -------------------------------------------------------------------------------- 1 | # This is a basic workflow to help you get started with Actions 2 | 3 | name: GL.iNet snapshot firmware 4 | 5 | # Controls when the action will run. 6 | on: 7 | # Triggers the workflow on push or pull request events but only for the main branch 8 | schedule: 9 | - cron: '0 17 * * *' 10 | 11 | # Allows you to run this workflow manually from the Actions tab 12 | workflow_dispatch: 13 | 14 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 15 | jobs: 16 | # This workflow contains a single job called "build" 17 | build: 18 | # The type of runner that the job will run on 19 | runs-on: self-hosted 20 | timeout-minutes: 720 21 | 22 | # Steps represent a sequence of tasks that will be executed as part of the job 23 | steps: 24 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 25 | - uses: actions/checkout@v2 26 | 27 | # build source code 28 | - name: build 29 | run: | 30 | echo "COMPILE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV} 31 | cd ~/work/runner-script/sdk4_script && ./build_firmware_by_source $GITHUB_REPOSITORY $GITHUB_WORKSPACE $GITHUB_REF $GITHUB_RUN_ID $GITHUB_ACTOR snapshot 32 | 33 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Create Release 8 | 9 | jobs: 10 | build: 11 | name: Create Release 12 | runs-on: self-hosted 13 | timeout-minutes: 720 14 | steps: 15 | - name: Checkout code 16 | uses: actions/checkout@v2 17 | 18 | - name: build 19 | run: | 20 | echo "COMPILE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV} 21 | cd ~/work/runner-script/sdk4_script && ./build_firmware_by_source $GITHUB_REPOSITORY $GITHUB_WORKSPACE $GITHUB_REF $GITHUB_RUN_ID $GITHUB_ACTOR release 22 | 23 | - name: Release 24 | uses: softprops/action-gh-release@v1 25 | env: 26 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 27 | with: 28 | body_path: /home/glinet/work/_github/gl_release_note 29 | prerelease: true 30 | 31 | - name: notify 32 | run: | 33 | echo "send notify" 34 | cd ~/work/runner-script/util && ./send_resease_notify $GITHUB_REPOSITORY $GITHUB_WORKSPACE $GITHUB_REF_NAME $GITHUB_RUN_ID $GITHUB_ACTOR release 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /openwrt* 2 | allpkg 3 | gl-axt1800 4 | qsdk* 5 | /wlan-ap 6 | mt7981 7 | mt798x 8 | feeds/dl 9 | feeds/glinet 10 | -------------------------------------------------------------------------------- /configs/config-18.x.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/gl-inet/openwrt.git 2 | branch: develop 3 | git_clone_dir: openwrt-18.06 4 | openwrt_root_dir: openwrt-18.06 5 | revision: c7ff4f3290b7cd621c142917918c8ec6bd374b37 6 | 7 | patch_folders: 8 | - patches-18.x/ -------------------------------------------------------------------------------- /configs/config-19.07.8.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v19.07.8 3 | git_clone_dir: openwrt-19.07/openwrt-19.07.8 4 | openwrt_root_dir: openwrt-19.07/openwrt-19.07.8 5 | revision: 31f2f76cd5d7745e28fae3797d79b746360461f5 6 | 7 | patch_folders: 8 | - patches-19.07.8/ 9 | -------------------------------------------------------------------------------- /configs/config-19.x.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v19.07.7 3 | git_clone_dir: openwrt-19.07/openwrt-19.07.7 4 | openwrt_root_dir: openwrt-19.07/openwrt-19.07.7 5 | revision: d5ae5658730a82312a20e68220f92f611b11d094 6 | 7 | patch_folders: 8 | - patches-19.x/ -------------------------------------------------------------------------------- /configs/config-21.02-rc2.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v21.02.0-rc2 3 | git_clone_dir: openwrt-21.02/openwrt-21.02.0-rc2 4 | openwrt_root_dir: openwrt-21.02/openwrt-21.02.0-rc2 5 | revision: 3e09cc496912264df05487ef0fae656c75a18a41 6 | 7 | patch_folders: 8 | - patches-21.x/ 9 | -------------------------------------------------------------------------------- /configs/config-21.02.0.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v21.02.0 3 | git_clone_dir: openwrt-21.02/openwrt-21.02.0 4 | openwrt_root_dir: openwrt-21.02/openwrt-21.02.0 5 | revision: b2ae4233149dfd78f2ac00bb5327695bcacdc255 6 | 7 | patch_folders: 8 | - patches-21.02.0/ 9 | -------------------------------------------------------------------------------- /configs/config-21.02.2.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v21.02.2 3 | git_clone_dir: openwrt-21.02/openwrt-21.02.2 4 | openwrt_root_dir: openwrt-21.02/openwrt-21.02.2 5 | revision: 30e2782e0647a837044ada77ce86b29c5af8a9f2 6 | 7 | patch_folders: 8 | - patches-21.02.2/ 9 | -------------------------------------------------------------------------------- /configs/config-21.x.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v21.02.0-rc1 3 | git_clone_dir: openwrt-21.02/openwrt-21.02.0-rc1 4 | openwrt_root_dir: openwrt-21.02/openwrt-21.02.0-rc1 5 | revision: 2ce89a35788fcd768a4a872d3d4f5a3a131b1d43 6 | 7 | patch_folders: 8 | - patches-21.x/ -------------------------------------------------------------------------------- /configs/config-22.03.0.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v22.03.0 3 | git_clone_dir: openwrt-22.03/openwrt-22.03.0 4 | openwrt_root_dir: openwrt-22.03/openwrt-22.03.0 5 | revision: 17bd6b04777d71d081ddf4ff8fbf44ccaf6f422e 6 | 7 | patch_folders: 8 | - patches-22.03.0/ 9 | -------------------------------------------------------------------------------- /configs/config-22.03.2.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v22.03.2 3 | git_clone_dir: openwrt-22.03/openwrt-22.03.2 4 | openwrt_root_dir: openwrt-22.03/openwrt-22.03.2 5 | revision: ea845f76ea2406a4c70d96141d6386b81bba5431 6 | 7 | patch_folders: 8 | - patches-22.03.2/ 9 | -------------------------------------------------------------------------------- /configs/config-22.03.4.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | branch: v22.03.4 3 | git_clone_dir: openwrt-22.03/openwrt-22.03.4 4 | openwrt_root_dir: openwrt-22.03/openwrt-22.03.4 5 | revision: 94adc23fa693d1b129ce1718573dfb12594f20f8 6 | 7 | patch_folders: 8 | - patches-22.03.4/ 9 | -------------------------------------------------------------------------------- /configs/config-docker_qsdk11.5.yml: -------------------------------------------------------------------------------- 1 | repo: /home/glinet/work/qsdk_source/gl-axt1800 2 | git_clone_dir: gl-axt1800 3 | qsdk_repo: /home/glinet/work/qsdk-11.5-repo.tar.xz 4 | openwrt_root_dir: gl-axt1800/qsdk 5 | qca_spf_repo: /home/glinet/work/qsdk_source/qca-networking-spf 6 | gen_script: gen-qsdk11.5.sh 7 | qsdk: true 8 | 9 | patch_folders: 10 | - patches-qsdk11/ 11 | -------------------------------------------------------------------------------- /configs/config-mt798x-7.6.6.1.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/openwrt/openwrt.git 2 | git_clone_dir: mt7981/ 3 | openwrt_root_dir: mt7981/ 4 | revision: bcaabe6d0586fabab72aa1fc6c06b8f83b6dfa0c 5 | 6 | patch_folders: 7 | - patches-mt798x-7.6.6.1 8 | -------------------------------------------------------------------------------- /configs/config-qsdk11.5.yml: -------------------------------------------------------------------------------- 1 | repo: https://gitlab.com/gl.sdk4.0/gl.router/gl-axt1800.git 2 | branch: master 3 | git_clone_dir: gl-axt1800 4 | qsdk_repo: /home/glinet/work/qsdk-11.5-repo.tar.xz 5 | openwrt_root_dir: gl-axt1800/qsdk 6 | qca_spf_repo: https://gitlab.com/gl.sdk4.0/gl.router/qca-networking-spf.git 7 | qca_spf_branch: r11.5_00002.1 8 | gen_script: gen-qsdk11.5.sh 9 | qsdk: true 10 | 11 | patch_folders: 12 | - patches-qsdk11/ 13 | -------------------------------------------------------------------------------- /configs/config-qsdk11.yml: -------------------------------------------------------------------------------- 1 | repo: https://gitlab.com/gl.router/gl-b1300-gl-s1300-product/qsdk11.git 2 | branch: master 3 | git_clone_dir: qsdk11 4 | openwrt_root_dir: qsdk11 5 | revision: 3e947e2c88ac9e273e970761a87f56e4fa50c664 6 | 7 | patch_folders: 8 | - patches-qsdk11/ 9 | -------------------------------------------------------------------------------- /configs/config-qsdk53.yml: -------------------------------------------------------------------------------- 1 | repo: https://gitlab.com/gl.router/gl-b1300-gl-s1300-product/qsdk53.git 2 | branch: allpkg 3 | git_clone_dir: qsdk53 4 | openwrt_root_dir: qsdk53 5 | revision: aa12b0bcdee056a3cd5e21c444a45b6c0d74cfe5 6 | 7 | patch_folders: 8 | - patches-qsdk53/ -------------------------------------------------------------------------------- /configs/config-siflower-18.x.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/Siflower/1806_SDK.git 2 | branch: release 3 | git_clone_dir: openwrt-18.06/siflower 4 | openwrt_root_dir: openwrt-18.06/siflower/openwrt-18.06 5 | revision: d5ed0258fc22f60e00ec025b802d175f33da6e41 6 | 7 | patch_folders: 8 | - patches-siflower-18.x/ 9 | -------------------------------------------------------------------------------- /configs/config-trunk.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/gl-inet/openwrt.git 2 | branch: openwrt-trunk 3 | git_clone_dir: openwrt-trunk 4 | openwrt_root_dir: openwrt-trunk 5 | revision: b7349722a31deb5b7ec5f7698b1ab8a0afa4a56d 6 | 7 | patch_folders: 8 | - patches-trunk/ -------------------------------------------------------------------------------- /configs/config-wlan-ap-5.4.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/Telecominfraproject/wlan-ap.git 2 | branch: main 3 | git_clone_dir: wlan-ap 4 | openwrt_root_dir: wlan-ap/openwrt 5 | revision: d4442efbfee4f5d4da2827e334a22d7ec965a491 6 | 7 | patch_folders: 8 | - patches-wlan-ap-5.4 9 | 10 | files_folders: 11 | - files-wlan-ap-5.4/ 12 | 13 | wlan_ap: true 14 | next: true 15 | -------------------------------------------------------------------------------- /configs/config-wlan-ap.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/Telecominfraproject/wlan-ap.git 2 | branch: v2.6.0 3 | git_clone_dir: wlan-ap 4 | openwrt_root_dir: wlan-ap/openwrt 5 | 6 | patch_folders: 7 | - patches-wlan-ap 8 | 9 | wlan_ap: true 10 | -------------------------------------------------------------------------------- /configs/config.yml: -------------------------------------------------------------------------------- 1 | repo: https://github.com/gl-inet/openwrt.git 2 | branch: openwrt-19.07.7 3 | git_clone_dir: openwrt-19.07.7 4 | openwrt_root_dir: openwrt-19.07.7 5 | revision: e0b067cc33f85dab4a4b69de91598f79aac7af17 6 | 7 | patch_folders: 8 | - patches-19.x/ -------------------------------------------------------------------------------- /feeds/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/feeds/README.md -------------------------------------------------------------------------------- /feeds/glinet/helloworld/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # Copyright (C) 2017 OpenWrt.org 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # See /LICENSE for more information. 7 | # 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=helloworld 11 | PKG_VERSION:=1.0.0 12 | PKG_RELEASE:=1 13 | 14 | include $(INCLUDE_DIR)/package.mk 15 | 16 | define Package/helloworld 17 | SECTION:=base 18 | CATEGORY:=gl-inet 19 | TITLE:=Helloworld -- prints a snarky message 20 | endef 21 | 22 | 23 | define Package/helloworld/description 24 | If you can't figure out what this program does, you're probably 25 | brain-dead and need immediate medical attention. 26 | endef 27 | 28 | 29 | define Build/Prepare 30 | mkdir -p $(PKG_BUILD_DIR) 31 | $(CP) ./src/* $(PKG_BUILD_DIR)/ 32 | endef 33 | 34 | 35 | define Package/helloworld/install 36 | $(INSTALL_DIR) $(1)/bin 37 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/bin/ 38 | endef 39 | 40 | 41 | $(eval $(call BuildPackage,helloworld)) 42 | 43 | -------------------------------------------------------------------------------- /feeds/glinet/helloworld/src/Makefile: -------------------------------------------------------------------------------- 1 | #build a Makefile for helloworld.c 2 | helloworld: helloworld.o 3 | $(CC) $(LDFLAGS) helloworld.o -o helloworld 4 | 5 | helloworld.o: helloworld.c 6 | $(CC) $(LDFLAGS) -c helloworld.c 7 | 8 | clean: 9 | rm *.o helloworld 10 | -------------------------------------------------------------------------------- /feeds/glinet/helloworld/src/helloworld.c: -------------------------------------------------------------------------------- 1 | /************************************************************************* 2 | > File Name: helloworld.c 3 | > Author: Lancer 4 | > Mail: luoyejiang0701@qq.com 5 | > Created Time: Tue 18 Jul 2017 12:02:56 PM CST 6 | ************************************************************************/ 7 | 8 | #include 9 | #include 10 | 11 | int main(void) 12 | { 13 | printf("Hello World.\n"); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /files-wlan-ap-5.4/openwrt/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch: -------------------------------------------------------------------------------- 1 | Index: dnsmasq-2.85/src/rfc2131.c 2 | =================================================================== 3 | --- dnsmasq-2.85.orig/src/rfc2131.c 4 | +++ dnsmasq-2.85/src/rfc2131.c 5 | @@ -724,7 +724,7 @@ size_t dhcp_reply(struct dhcp_context *c 6 | borken_opt = 1; 7 | else 8 | daemon->dhcp_buff[len] = 0; 9 | - if (legal_hostname(daemon->dhcp_buff)) 10 | + // if (legal_hostname(daemon->dhcp_buff)) 11 | client_hostname = daemon->dhcp_buff; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /files-wlan-ap-5.4/openwrt/package/network/utils/iwinfo/patches/0002-fix-kmgmt-names.patch: -------------------------------------------------------------------------------- 1 | Index: libiwinfo-2021-06-09-c0414642/iwinfo_lib.c 2 | =================================================================== 3 | --- libiwinfo-2021-06-09-c0414642.orig/iwinfo_lib.c 4 | +++ libiwinfo-2021-06-09-c0414642/iwinfo_lib.c 5 | @@ -37,6 +37,8 @@ const char *IWINFO_KMGMT_NAMES[] = { 6 | "NONE", 7 | "802.1X", 8 | "PSK", 9 | + "SAE", 10 | + "OWE", 11 | }; 12 | 13 | const char *IWINFO_AUTH_NAMES[] = { 14 | -------------------------------------------------------------------------------- /files-wlan-ap-5.4/openwrt/package/system/opkg/patches/002-conffile-use-standard-output.patch: -------------------------------------------------------------------------------- 1 | --- a/libopkg/opkg_install.c 2 | +++ b/libopkg/opkg_install.c 3 | @@ -1151,7 +1151,7 @@ static int resolve_conffiles(pkg_t * pkg 4 | char *new_conffile; 5 | sprintf_alloc(&new_conffile, "%s-opkg", 6 | root_filename); 7 | - opkg_msg(ERROR, 8 | + opkg_msg(NOTICE, 9 | "Existing conffile %s " 10 | "is different from the conffile in the new package." 11 | " The new conffile will be placed at %s.\n", 12 | --- a/opkg-2021-06-13-1bf042dd/libopkg/pkg.c 13 | +++ b/libopkg/pkg.c 14 | @@ -1409,7 +1409,7 @@ int pkg_run_script(pkg_t * pkg, const ch 15 | return 0; 16 | } 17 | 18 | - sprintf_alloc(&cmd, "%s %s", path, args); 19 | + sprintf_alloc(&cmd, "%s %s 2>&1", path, args); 20 | free(path); 21 | { 22 | const char *argv[] = { "/bin/sh", "-c", cmd, NULL }; 23 | -------------------------------------------------------------------------------- /patches-18.x/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-18.x/README.md -------------------------------------------------------------------------------- /patches-19.07.8/0007-kernel-wext-support-old-private-wifi-driver.patch: -------------------------------------------------------------------------------- 1 | From 8d43240dfb090a91b8dabd4b5ce6beebc19cbc8b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:40:12 +0800 4 | Subject: [PATCH 06/26] kernel: wext: support old private wifi driver 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../950-wext-support-old-private-wifi-driver.patch | 14 ++++++++++++++ 9 | 1 file changed, 14 insertions(+) 10 | create mode 100644 target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 11 | 12 | diff --git a/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch b/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 13 | new file mode 100644 14 | index 0000000000..8168e1baa8 15 | --- /dev/null 16 | +++ b/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 17 | @@ -0,0 +1,14 @@ 18 | +--- a/net/wireless/wext-core.c 19 | ++++ b/net/wireless/wext-core.c 20 | +@@ -957,6 +957,11 @@ static int wireless_process_ioctl(struct 21 | + else if (private) 22 | + return private(dev, iwr, cmd, info, handler); 23 | + } 24 | ++ 25 | ++ /* Old driver API : call driver ioctl handler */ 26 | ++ if (dev->netdev_ops->ndo_do_ioctl) 27 | ++ return dev->netdev_ops->ndo_do_ioctl(dev, (struct ifreq *)iwr, cmd); 28 | ++ 29 | + return -EOPNOTSUPP; 30 | + } 31 | + 32 | -- 33 | 2.17.1 34 | 35 | -------------------------------------------------------------------------------- /patches-19.07.8/0008-kernel-usb-tethering-samsung-s10-mac-zero.patch: -------------------------------------------------------------------------------- 1 | From 107da775fd23ed8b385b494efbffb557f1a75add Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:40:59 +0800 4 | Subject: [PATCH 07/26] kernel: usb: tethering samsung s10 mac zero 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../952-usb-tethering-samsung-s10-mac-zero.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 11 | 12 | diff --git a/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch b/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 13 | new file mode 100644 14 | index 0000000000..089aaffac3 15 | --- /dev/null 16 | +++ b/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 17 | @@ -0,0 +1,13 @@ 18 | +--- a/drivers/net/usb/rndis_host.c 19 | ++++ b/drivers/net/usb/rndis_host.c 20 | +@@ -435,6 +435,10 @@ generic_rndis_bind(struct usbnet *dev, s 21 | + else 22 | + ether_addr_copy(net->dev_addr, bp); 23 | + 24 | ++ /* correct samsung S10 zero mac address */ 25 | ++ if((bp[0] == 0) && (bp[1] == 0) && (bp[2] == 0)) 26 | ++ eth_hw_addr_random(net); 27 | ++ 28 | + /* set a nonzero filter to enable data transfers */ 29 | + memset(u.set, 0, sizeof *u.set); 30 | + u.set->msg_type = cpu_to_le32(RNDIS_MSG_SET); 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-19.07.8/0011-ramips-mmc-fix-mount-fail-for-some-32G-Card.patch: -------------------------------------------------------------------------------- 1 | From 50cd6e2767af2258347a851d8af783a8b4ed8f97 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:44:42 +0800 4 | Subject: [PATCH 10/26] ramips: mmc: fix mount fail for some 32G Card. 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c | 6 +----- 9 | 1 file changed, 1 insertion(+), 5 deletions(-) 10 | 11 | diff --git a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 12 | index 4ced4b6605..b2af486c5f 100644 13 | --- a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 14 | +++ b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 15 | @@ -63,11 +63,7 @@ 16 | 17 | #define DRV_NAME "mtk-sd" 18 | 19 | -#if defined(CONFIG_SOC_MT7620) 20 | -#define HOST_MAX_MCLK (48000000) /* +/- by chhung */ 21 | -#elif defined(CONFIG_SOC_MT7621) 22 | -#define HOST_MAX_MCLK (50000000) /* +/- by chhung */ 23 | -#endif 24 | +#define HOST_MAX_MCLK (40000000) /* +/- by chhung */ 25 | #define HOST_MIN_MCLK (260000) 26 | 27 | #define HOST_MAX_BLKSZ (2048) 28 | -- 29 | 2.17.1 30 | 31 | -------------------------------------------------------------------------------- /patches-19.07.8/0013-package-wireless-tools-fix-iwpriv-segment-fault.patch: -------------------------------------------------------------------------------- 1 | From 1b3bc7cd5251a3a61ac4300761953a2f0d090f01 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:51:37 +0800 4 | Subject: [PATCH 12/26] package/wireless-tools: fix iwpriv segment fault 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../005-fix-iwpriv-ra0-e2p-segment-fault.patch | 11 +++++++++++ 9 | 1 file changed, 11 insertions(+) 10 | create mode 100644 package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 11 | 12 | diff --git a/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch b/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 13 | new file mode 100644 14 | index 0000000000..310b1bfcf8 15 | --- /dev/null 16 | +++ b/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 17 | @@ -0,0 +1,11 @@ 18 | +--- a/iwpriv.c 19 | ++++ b/iwpriv.c 20 | +@@ -259,7 +259,7 @@ set_private_cmd(int skfd, /* Socket */ 21 | + int priv_num) /* Number of descriptions */ 22 | + { 23 | + struct iwreq wrq; 24 | +- u_char buffer[4096]; /* Only that big in v25 and later */ 25 | ++ u_char buffer[20 * 1024]; /* Only that big in v25 and later */ 26 | + int i = 0; /* Start with first command arg */ 27 | + int k; /* Index in private description table */ 28 | + int temp; 29 | -- 30 | 2.17.1 31 | 32 | -------------------------------------------------------------------------------- /patches-19.07.8/0018-imagebuilder-files-always-overwrite.patch: -------------------------------------------------------------------------------- 1 | From 8cd986988fa56055de90c38ba6c2d2906fde28e7 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:34:01 +0800 4 | Subject: [PATCH 17/26] imagebuilder: files always overwrite 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | include/rootfs.mk | 11 +++++++---- 9 | 1 file changed, 7 insertions(+), 4 deletions(-) 10 | 11 | diff --git a/include/rootfs.mk b/include/rootfs.mk 12 | index f2d2494ae2..a156f5022f 100644 13 | --- a/include/rootfs.mk 14 | +++ b/include/rootfs.mk 15 | @@ -61,9 +61,6 @@ ifdef CONFIG_CLEAN_IPKG 16 | endif 17 | 18 | define prepare_rootfs 19 | - $(if $(2),@if [ -d '$(2)' ]; then \ 20 | - $(call file_copy,$(2)/.,$(1)); \ 21 | - fi) 22 | @mkdir -p $(1)/etc/rc.d 23 | @mkdir -p $(1)/var/lock 24 | @( \ 25 | @@ -75,7 +72,13 @@ define prepare_rootfs 26 | echo "postinst script $$script has failed with exit code $$ret" >&2; \ 27 | exit 1; \ 28 | fi; \ 29 | - done; \ 30 | + done || true \ 31 | + ) 32 | + $(if $(2),@if [ -d '$(2)' ]; then \ 33 | + $(call file_copy,$(2)/.,$(1)); \ 34 | + fi) 35 | + @( \ 36 | + cd $(1); \ 37 | for script in ./etc/init.d/*; do \ 38 | grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \ 39 | if ! echo " $(3) " | grep -q " $$(basename $$script) "; then \ 40 | -- 41 | 2.17.1 42 | 43 | -------------------------------------------------------------------------------- /patches-19.07.8/0019-upgrade-compatable-1806.patch: -------------------------------------------------------------------------------- 1 | From 9dcbe56bfc96632400998487f21873f38b75951f Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:37:55 +0800 4 | Subject: [PATCH 18/26] upgrade: compatable 1806 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/lib/upgrade/fwtool.sh | 3 ++- 9 | 1 file changed, 2 insertions(+), 1 deletion(-) 10 | 11 | diff --git a/package/base-files/files/lib/upgrade/fwtool.sh b/package/base-files/files/lib/upgrade/fwtool.sh 12 | index a0b3fb0a04..f39ad51dd6 100644 13 | --- a/package/base-files/files/lib/upgrade/fwtool.sh 14 | +++ b/package/base-files/files/lib/upgrade/fwtool.sh 15 | @@ -44,13 +44,14 @@ fwtool_check_image() { 16 | } 17 | 18 | device="$(cat /tmp/sysinfo/board_name)" 19 | + device_old=`awk -F': ' '/machine/ {print tolower($NF)}' /proc/cpuinfo |cut -d ' ' -f2` 20 | 21 | json_select supported_devices || return 1 22 | 23 | json_get_keys dev_keys 24 | for k in $dev_keys; do 25 | json_get_var dev "$k" 26 | - [ "$dev" = "$device" ] && return 0 27 | + [ "$dev" = "$device" -o "$dev" = "$device_old" -o "$dev" = glinet,"$device_old" ] && return 0 28 | done 29 | 30 | echo "Device $device not supported by this image" 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-19.07.8/0020-upgrade-fix-process-kill-failed.patch: -------------------------------------------------------------------------------- 1 | From 7a98998d6f2097fbfbb45772fc78edaab1d8867b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:39:22 +0800 4 | Subject: [PATCH 19/26] upgrade: fix process kill failed 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/lib/upgrade/stage2 | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 12 | index 41a3b2aeb3..758765726a 100755 13 | --- a/package/base-files/files/lib/upgrade/stage2 14 | +++ b/package/base-files/files/lib/upgrade/stage2 15 | @@ -102,7 +102,7 @@ kill_remaining() { # [ [ ] ] 16 | done 17 | 18 | let loop_limit-- 19 | - [ $loop_limit -eq 0 ] && { 20 | + [ $loop_limit -eq 0 ] && [ $sig = "KILL" ] && { 21 | echo 22 | echo "Failed to kill all processes." 23 | exit 1 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-19.07.8/0022-kernel-usb-fix-usb-net-card.patch: -------------------------------------------------------------------------------- 1 | From 6fd318236bf0ecf108393d93c67713915ef2374c Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:43:54 +0800 4 | Subject: [PATCH 21/26] kernel: usb: fix usb net card 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/usb.mk | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk 12 | index 4778f07aee..04b9756fe9 100644 13 | --- a/package/kernel/linux/modules/usb.mk 14 | +++ b/package/kernel/linux/modules/usb.mk 15 | @@ -188,7 +188,7 @@ define KernelPackage/usb-gadget-eth 16 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \ 17 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \ 18 | $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko 19 | - AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm) 20 | + AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether) 21 | $(call AddDepends/usb) 22 | endef 23 | 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-19.07.8/0023-kernel-add-rtl8192eu.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-19.07.8/0023-kernel-add-rtl8192eu.patch -------------------------------------------------------------------------------- /patches-19.07.8/0027-base-files-set-bootcount-for-ar300m.patch: -------------------------------------------------------------------------------- 1 | From 19ff46ebe34cc79e01ef251160cb0ba54c722448 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 27 Apr 2021 10:57:57 +0800 4 | Subject: [PATCH 26/26] base-files: set bootcount for ar300m 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/etc/diag.sh | 12 ++++++++++++ 9 | 1 file changed, 12 insertions(+) 10 | 11 | diff --git a/package/base-files/files/etc/diag.sh b/package/base-files/files/etc/diag.sh 12 | index 8eb36c6feb..1df38f1acf 100644 13 | --- a/package/base-files/files/etc/diag.sh 14 | +++ b/package/base-files/files/etc/diag.sh 15 | @@ -1,6 +1,7 @@ 16 | #!/bin/sh 17 | # Copyright (C) 2006-2019 OpenWrt.org 18 | 19 | +. /lib/functions.sh 20 | . /lib/functions/leds.sh 21 | 22 | boot="$(get_dt_led boot)" 23 | @@ -45,6 +46,17 @@ set_led_state() { 24 | esac 25 | } 26 | 27 | + 28 | set_state() { 29 | [ -n "$boot" -o -n "$failsafe" -o -n "$running" -o -n "$upgrade" ] && set_led_state "$1" 30 | + [ "$1" = "done" ] && { 31 | + local board=$(board_name) 32 | + case $board in 33 | + glinet,gl-ar300m|\ 34 | + glinet,gl-ar300m-nor|\ 35 | + glinet,gl-ar300m-nand) 36 | + fw_setenv "bootcount" 0 37 | + ;; 38 | + esac 39 | + } 40 | } 41 | -- 42 | 2.17.1 43 | 44 | -------------------------------------------------------------------------------- /patches-19.07.8/0028-boot-fix-mtk-wifi-config.patch: -------------------------------------------------------------------------------- 1 | From 6e848b8d14f7b2418fbca8ec4bb0ba8dbe22e4f3 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 29 Jun 2021 15:17:11 +0800 4 | Subject: [PATCH] boot: fix mtk wifi config 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/etc/init.d/boot | 3 +++ 9 | 1 file changed, 3 insertions(+) 10 | 11 | diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot 12 | index 09b7f44c79..38c31d1958 100755 13 | --- a/package/base-files/files/etc/init.d/boot 14 | +++ b/package/base-files/files/etc/init.d/boot 15 | @@ -43,6 +43,9 @@ boot() { 16 | sleep 1 17 | } 18 | 19 | + # for some private wifi driver 20 | + /sbin/wifi config 21 | + 22 | /bin/config_generate 23 | uci_apply_defaults 24 | 25 | -- 26 | 2.17.1 27 | 28 | -------------------------------------------------------------------------------- /patches-19.07.8/0029-ramips-mt300n-v2-i2c-gpio-reuse.patch: -------------------------------------------------------------------------------- 1 | From e6588a4f0845d25f362c2d1930976e8efd18a380 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Fri, 24 Sep 2021 15:51:09 +0800 4 | Subject: [PATCH] ramips: mt300n-v2 i2c gpio reuse 5 | 6 | --- 7 | target/linux/ramips/dts/GL-MT300N-V2.dts | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts 11 | index 7b33181..d442c97 100755 12 | --- a/target/linux/ramips/dts/GL-MT300N-V2.dts 13 | +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts 14 | @@ -96,7 +96,7 @@ 15 | &pinctrl { 16 | state_default: pinctrl0 { 17 | gpio { 18 | - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; 19 | + ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c"; 20 | ralink,function = "gpio"; 21 | }; 22 | }; 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-19.07.8/0031-target-ramips-fix-irq-affinity-GL-MT1300.patch: -------------------------------------------------------------------------------- 1 | From be2555b2c8be0f014789bfa5666d7063e6853f3d Mon Sep 17 00:00:00 2001 2 | From: gl-zhaojianhui 3 | Date: Mon, 8 Nov 2021 18:38:39 +0800 4 | Subject: [PATCH] target/ramips: fix irq affinity GL-MT1300 5 | 6 | Signed-off-by: gl-zhaojianhui 7 | --- 8 | target/linux/ramips/base-files/etc/init.d/set-irq-affinity | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | diff --git a/target/linux/ramips/base-files/etc/init.d/set-irq-affinity b/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 12 | index 9a3afefa5a..e31dd6e6d8 100755 13 | --- a/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 14 | +++ b/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 15 | @@ -26,6 +26,5 @@ start() { 16 | return 17 | fi 18 | 19 | - set_irq_affinity mt76x2e $mask1 20 | - set_irq_affinity mt7603e $mask2 21 | + set_irq_affinity ra0 $mask1 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-19.07.8/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-19.07.8/README.md -------------------------------------------------------------------------------- /patches-19.x/0003-feeds-add-gl-feeds.patch: -------------------------------------------------------------------------------- 1 | From c651e43b66011a5a2296d09855d35073a7ee6c44 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 14 Apr 2021 14:11:09 +0800 4 | Subject: [PATCH 01/15] feeds: add gl-feeds 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | feeds.conf.default | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/feeds.conf.default b/feeds.conf.default 12 | index 841430159c..ae0ba003fc 100644 13 | --- a/feeds.conf.default 14 | +++ b/feeds.conf.default 15 | @@ -1,3 +1,4 @@ 16 | +src-git gl https://github.com/gl-inet/gl-feeds.git;19.07.7 17 | src-git packages https://git.openwrt.org/feed/packages.git^90af10d01579425369bd474051b6d3ddaf32a7e3 18 | src-git luci https://git.openwrt.org/project/luci.git^34e0d656a41befd9720be35c4831c9f136a67c59 19 | src-git routing https://git.openwrt.org/feed/routing.git^e26b4745209655976b7d124465b1dc53ade632f9 20 | -- 21 | 2.17.1 22 | 23 | -------------------------------------------------------------------------------- /patches-19.x/0007-kernel-wext-support-old-private-wifi-driver.patch: -------------------------------------------------------------------------------- 1 | From 8d43240dfb090a91b8dabd4b5ce6beebc19cbc8b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:40:12 +0800 4 | Subject: [PATCH 06/26] kernel: wext: support old private wifi driver 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../950-wext-support-old-private-wifi-driver.patch | 14 ++++++++++++++ 9 | 1 file changed, 14 insertions(+) 10 | create mode 100644 target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 11 | 12 | diff --git a/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch b/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 13 | new file mode 100644 14 | index 0000000000..8168e1baa8 15 | --- /dev/null 16 | +++ b/target/linux/generic/pending-4.14/950-wext-support-old-private-wifi-driver.patch 17 | @@ -0,0 +1,14 @@ 18 | +--- a/net/wireless/wext-core.c 19 | ++++ b/net/wireless/wext-core.c 20 | +@@ -957,6 +957,11 @@ static int wireless_process_ioctl(struct 21 | + else if (private) 22 | + return private(dev, iwr, cmd, info, handler); 23 | + } 24 | ++ 25 | ++ /* Old driver API : call driver ioctl handler */ 26 | ++ if (dev->netdev_ops->ndo_do_ioctl) 27 | ++ return dev->netdev_ops->ndo_do_ioctl(dev, (struct ifreq *)iwr, cmd); 28 | ++ 29 | + return -EOPNOTSUPP; 30 | + } 31 | + 32 | -- 33 | 2.17.1 34 | 35 | -------------------------------------------------------------------------------- /patches-19.x/0008-kernel-usb-tethering-samsung-s10-mac-zero.patch: -------------------------------------------------------------------------------- 1 | From 107da775fd23ed8b385b494efbffb557f1a75add Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:40:59 +0800 4 | Subject: [PATCH 07/26] kernel: usb: tethering samsung s10 mac zero 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../952-usb-tethering-samsung-s10-mac-zero.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 11 | 12 | diff --git a/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch b/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 13 | new file mode 100644 14 | index 0000000000..089aaffac3 15 | --- /dev/null 16 | +++ b/target/linux/generic/pending-4.14/952-usb-tethering-samsung-s10-mac-zero.patch 17 | @@ -0,0 +1,13 @@ 18 | +--- a/drivers/net/usb/rndis_host.c 19 | ++++ b/drivers/net/usb/rndis_host.c 20 | +@@ -435,6 +435,10 @@ generic_rndis_bind(struct usbnet *dev, s 21 | + else 22 | + ether_addr_copy(net->dev_addr, bp); 23 | + 24 | ++ /* correct samsung S10 zero mac address */ 25 | ++ if((bp[0] == 0) && (bp[1] == 0) && (bp[2] == 0)) 26 | ++ eth_hw_addr_random(net); 27 | ++ 28 | + /* set a nonzero filter to enable data transfers */ 29 | + memset(u.set, 0, sizeof *u.set); 30 | + u.set->msg_type = cpu_to_le32(RNDIS_MSG_SET); 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-19.x/0011-ramips-mmc-fix-mount-fail-for-some-32G-Card.patch: -------------------------------------------------------------------------------- 1 | From 50cd6e2767af2258347a851d8af783a8b4ed8f97 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:44:42 +0800 4 | Subject: [PATCH 10/26] ramips: mmc: fix mount fail for some 32G Card. 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c | 6 +----- 9 | 1 file changed, 1 insertion(+), 5 deletions(-) 10 | 11 | diff --git a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 12 | index 4ced4b6605..b2af486c5f 100644 13 | --- a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 14 | +++ b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c 15 | @@ -63,11 +63,7 @@ 16 | 17 | #define DRV_NAME "mtk-sd" 18 | 19 | -#if defined(CONFIG_SOC_MT7620) 20 | -#define HOST_MAX_MCLK (48000000) /* +/- by chhung */ 21 | -#elif defined(CONFIG_SOC_MT7621) 22 | -#define HOST_MAX_MCLK (50000000) /* +/- by chhung */ 23 | -#endif 24 | +#define HOST_MAX_MCLK (40000000) /* +/- by chhung */ 25 | #define HOST_MIN_MCLK (260000) 26 | 27 | #define HOST_MAX_BLKSZ (2048) 28 | -- 29 | 2.17.1 30 | 31 | -------------------------------------------------------------------------------- /patches-19.x/0013-package-wireless-tools-fix-iwpriv-segment-fault.patch: -------------------------------------------------------------------------------- 1 | From 1b3bc7cd5251a3a61ac4300761953a2f0d090f01 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 15:51:37 +0800 4 | Subject: [PATCH 12/26] package/wireless-tools: fix iwpriv segment fault 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../005-fix-iwpriv-ra0-e2p-segment-fault.patch | 11 +++++++++++ 9 | 1 file changed, 11 insertions(+) 10 | create mode 100644 package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 11 | 12 | diff --git a/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch b/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 13 | new file mode 100644 14 | index 0000000000..310b1bfcf8 15 | --- /dev/null 16 | +++ b/package/network/utils/wireless-tools/patches/005-fix-iwpriv-ra0-e2p-segment-fault.patch 17 | @@ -0,0 +1,11 @@ 18 | +--- a/iwpriv.c 19 | ++++ b/iwpriv.c 20 | +@@ -259,7 +259,7 @@ set_private_cmd(int skfd, /* Socket */ 21 | + int priv_num) /* Number of descriptions */ 22 | + { 23 | + struct iwreq wrq; 24 | +- u_char buffer[4096]; /* Only that big in v25 and later */ 25 | ++ u_char buffer[20 * 1024]; /* Only that big in v25 and later */ 26 | + int i = 0; /* Start with first command arg */ 27 | + int k; /* Index in private description table */ 28 | + int temp; 29 | -- 30 | 2.17.1 31 | 32 | -------------------------------------------------------------------------------- /patches-19.x/0018-imagebuilder-files-always-overwrite.patch: -------------------------------------------------------------------------------- 1 | From 8cd986988fa56055de90c38ba6c2d2906fde28e7 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:34:01 +0800 4 | Subject: [PATCH 17/26] imagebuilder: files always overwrite 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | include/rootfs.mk | 11 +++++++---- 9 | 1 file changed, 7 insertions(+), 4 deletions(-) 10 | 11 | diff --git a/include/rootfs.mk b/include/rootfs.mk 12 | index f2d2494ae2..a156f5022f 100644 13 | --- a/include/rootfs.mk 14 | +++ b/include/rootfs.mk 15 | @@ -61,9 +61,6 @@ ifdef CONFIG_CLEAN_IPKG 16 | endif 17 | 18 | define prepare_rootfs 19 | - $(if $(2),@if [ -d '$(2)' ]; then \ 20 | - $(call file_copy,$(2)/.,$(1)); \ 21 | - fi) 22 | @mkdir -p $(1)/etc/rc.d 23 | @mkdir -p $(1)/var/lock 24 | @( \ 25 | @@ -75,7 +72,13 @@ define prepare_rootfs 26 | echo "postinst script $$script has failed with exit code $$ret" >&2; \ 27 | exit 1; \ 28 | fi; \ 29 | - done; \ 30 | + done || true \ 31 | + ) 32 | + $(if $(2),@if [ -d '$(2)' ]; then \ 33 | + $(call file_copy,$(2)/.,$(1)); \ 34 | + fi) 35 | + @( \ 36 | + cd $(1); \ 37 | for script in ./etc/init.d/*; do \ 38 | grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \ 39 | if ! echo " $(3) " | grep -q " $$(basename $$script) "; then \ 40 | -- 41 | 2.17.1 42 | 43 | -------------------------------------------------------------------------------- /patches-19.x/0019-upgrade-compatable-1806.patch: -------------------------------------------------------------------------------- 1 | From 9dcbe56bfc96632400998487f21873f38b75951f Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:37:55 +0800 4 | Subject: [PATCH 18/26] upgrade: compatable 1806 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/lib/upgrade/fwtool.sh | 3 ++- 9 | 1 file changed, 2 insertions(+), 1 deletion(-) 10 | 11 | diff --git a/package/base-files/files/lib/upgrade/fwtool.sh b/package/base-files/files/lib/upgrade/fwtool.sh 12 | index a0b3fb0a04..f39ad51dd6 100644 13 | --- a/package/base-files/files/lib/upgrade/fwtool.sh 14 | +++ b/package/base-files/files/lib/upgrade/fwtool.sh 15 | @@ -44,13 +44,14 @@ fwtool_check_image() { 16 | } 17 | 18 | device="$(cat /tmp/sysinfo/board_name)" 19 | + device_old=`awk -F': ' '/machine/ {print tolower($NF)}' /proc/cpuinfo |cut -d ' ' -f2` 20 | 21 | json_select supported_devices || return 1 22 | 23 | json_get_keys dev_keys 24 | for k in $dev_keys; do 25 | json_get_var dev "$k" 26 | - [ "$dev" = "$device" ] && return 0 27 | + [ "$dev" = "$device" -o "$dev" = "$device_old" -o "$dev" = glinet,"$device_old" ] && return 0 28 | done 29 | 30 | echo "Device $device not supported by this image" 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-19.x/0020-upgrade-fix-process-kill-failed.patch: -------------------------------------------------------------------------------- 1 | From 7a98998d6f2097fbfbb45772fc78edaab1d8867b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:39:22 +0800 4 | Subject: [PATCH 19/26] upgrade: fix process kill failed 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/lib/upgrade/stage2 | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 12 | index 41a3b2aeb3..758765726a 100755 13 | --- a/package/base-files/files/lib/upgrade/stage2 14 | +++ b/package/base-files/files/lib/upgrade/stage2 15 | @@ -102,7 +102,7 @@ kill_remaining() { # [ [ ] ] 16 | done 17 | 18 | let loop_limit-- 19 | - [ $loop_limit -eq 0 ] && { 20 | + [ $loop_limit -eq 0 ] && [ $sig = "KILL" ] && { 21 | echo 22 | echo "Failed to kill all processes." 23 | exit 1 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-19.x/0022-kernel-usb-fix-usb-net-card.patch: -------------------------------------------------------------------------------- 1 | From 6fd318236bf0ecf108393d93c67713915ef2374c Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 26 Apr 2021 19:43:54 +0800 4 | Subject: [PATCH 21/26] kernel: usb: fix usb net card 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/usb.mk | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk 12 | index 4778f07aee..04b9756fe9 100644 13 | --- a/package/kernel/linux/modules/usb.mk 14 | +++ b/package/kernel/linux/modules/usb.mk 15 | @@ -188,7 +188,7 @@ define KernelPackage/usb-gadget-eth 16 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \ 17 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \ 18 | $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko 19 | - AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm) 20 | + AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether) 21 | $(call AddDepends/usb) 22 | endef 23 | 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-19.x/0023-kernel-add-rtl8192eu.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-19.x/0023-kernel-add-rtl8192eu.patch -------------------------------------------------------------------------------- /patches-19.x/0027-base-files-set-bootcount-for-ar300m.patch: -------------------------------------------------------------------------------- 1 | From 19ff46ebe34cc79e01ef251160cb0ba54c722448 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 27 Apr 2021 10:57:57 +0800 4 | Subject: [PATCH 26/26] base-files: set bootcount for ar300m 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/etc/diag.sh | 12 ++++++++++++ 9 | 1 file changed, 12 insertions(+) 10 | 11 | diff --git a/package/base-files/files/etc/diag.sh b/package/base-files/files/etc/diag.sh 12 | index 8eb36c6feb..1df38f1acf 100644 13 | --- a/package/base-files/files/etc/diag.sh 14 | +++ b/package/base-files/files/etc/diag.sh 15 | @@ -1,6 +1,7 @@ 16 | #!/bin/sh 17 | # Copyright (C) 2006-2019 OpenWrt.org 18 | 19 | +. /lib/functions.sh 20 | . /lib/functions/leds.sh 21 | 22 | boot="$(get_dt_led boot)" 23 | @@ -45,6 +46,17 @@ set_led_state() { 24 | esac 25 | } 26 | 27 | + 28 | set_state() { 29 | [ -n "$boot" -o -n "$failsafe" -o -n "$running" -o -n "$upgrade" ] && set_led_state "$1" 30 | + [ "$1" = "done" ] && { 31 | + local board=$(board_name) 32 | + case $board in 33 | + glinet,gl-ar300m|\ 34 | + glinet,gl-ar300m-nor|\ 35 | + glinet,gl-ar300m-nand) 36 | + fw_setenv "bootcount" 0 37 | + ;; 38 | + esac 39 | + } 40 | } 41 | -- 42 | 2.17.1 43 | 44 | -------------------------------------------------------------------------------- /patches-19.x/0028-boot-fix-mtk-wifi-config.patch: -------------------------------------------------------------------------------- 1 | From 6e848b8d14f7b2418fbca8ec4bb0ba8dbe22e4f3 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 29 Jun 2021 15:17:11 +0800 4 | Subject: [PATCH] boot: fix mtk wifi config 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/etc/init.d/boot | 3 +++ 9 | 1 file changed, 3 insertions(+) 10 | 11 | diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot 12 | index 09b7f44c79..38c31d1958 100755 13 | --- a/package/base-files/files/etc/init.d/boot 14 | +++ b/package/base-files/files/etc/init.d/boot 15 | @@ -43,6 +43,9 @@ boot() { 16 | sleep 1 17 | } 18 | 19 | + # for some private wifi driver 20 | + /sbin/wifi config 21 | + 22 | /bin/config_generate 23 | uci_apply_defaults 24 | 25 | -- 26 | 2.17.1 27 | 28 | -------------------------------------------------------------------------------- /patches-19.x/0029-ramips-mt300n-v2-i2c-gpio-reuse.patch: -------------------------------------------------------------------------------- 1 | From e6588a4f0845d25f362c2d1930976e8efd18a380 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Fri, 24 Sep 2021 15:51:09 +0800 4 | Subject: [PATCH] ramips: mt300n-v2 i2c gpio reuse 5 | 6 | --- 7 | target/linux/ramips/dts/GL-MT300N-V2.dts | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts 11 | index 7b33181..d442c97 100755 12 | --- a/target/linux/ramips/dts/GL-MT300N-V2.dts 13 | +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts 14 | @@ -96,7 +96,7 @@ 15 | &pinctrl { 16 | state_default: pinctrl0 { 17 | gpio { 18 | - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; 19 | + ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c"; 20 | ralink,function = "gpio"; 21 | }; 22 | }; 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-19.x/0031-target-ramips-fix-irq-affinity-GL-MT1300.patch: -------------------------------------------------------------------------------- 1 | From be2555b2c8be0f014789bfa5666d7063e6853f3d Mon Sep 17 00:00:00 2001 2 | From: gl-zhaojianhui 3 | Date: Mon, 8 Nov 2021 18:38:39 +0800 4 | Subject: [PATCH] target/ramips: fix irq affinity GL-MT1300 5 | 6 | Signed-off-by: gl-zhaojianhui 7 | --- 8 | target/linux/ramips/base-files/etc/init.d/set-irq-affinity | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | diff --git a/target/linux/ramips/base-files/etc/init.d/set-irq-affinity b/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 12 | index 9a3afefa5a..e31dd6e6d8 100755 13 | --- a/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 14 | +++ b/target/linux/ramips/base-files/etc/init.d/set-irq-affinity 15 | @@ -26,6 +26,5 @@ start() { 16 | return 17 | fi 18 | 19 | - set_irq_affinity mt76x2e $mask1 20 | - set_irq_affinity mt7603e $mask2 21 | + set_irq_affinity ra0 $mask1 22 | } 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-19.x/0114-fix-ath10k-collapse.patch: -------------------------------------------------------------------------------- 1 | From b9c37f8a41102cb09bcc180b9df698e759666e68 Mon Sep 17 00:00:00 2001 2 | From: gl-yangweiping 3 | Date: Fri, 29 Apr 2022 04:42:06 -0400 4 | Subject: [PATCH] fix ath10k collapse 5 | 6 | --- 7 | .../ath79/patches-4.14/941-fix-ath10-crashes.patch | 11 +++++++++++ 8 | 1 file changed, 11 insertions(+) 9 | create mode 100644 target/linux/ath79/patches-4.14/941-fix-ath10-crashes.patch 10 | 11 | diff --git a/target/linux/ath79/patches-4.14/941-fix-ath10-crashes.patch b/target/linux/ath79/patches-4.14/941-fix-ath10-crashes.patch 12 | new file mode 100644 13 | index 0000000000..0a4cf1f8c8 14 | --- /dev/null 15 | +++ b/target/linux/ath79/patches-4.14/941-fix-ath10-crashes.patch 16 | @@ -0,0 +1,11 @@ 17 | +--- a/drivers/net/wireless/ath/ath10k/pci.c 18 | ++++ b/drivers/net/wireless/ath/ath10k/pci.c 19 | +@@ -1940,8 +1940,6 @@ static int ath10k_pci_bmi_wait(struct at 20 | + ret = 0; 21 | + goto out; 22 | + } 23 | +- 24 | +- schedule(); 25 | + } 26 | + 27 | + ret = -ETIMEDOUT; 28 | -- 29 | 2.17.1 30 | 31 | -------------------------------------------------------------------------------- /patches-19.x/0115-ipq40xx-fix-b1300th-partition-name.patch: -------------------------------------------------------------------------------- 1 | From 163914d5809f02e38bf0c5fbfe89c69e1fab8421 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Hongjian.Zhang" 3 | Date: Thu, 23 Jun 2022 12:07:45 +0800 4 | Subject: [PATCH] ipq40xx: fix b1300th partition name 5 | 6 | --- 7 | .../files-4.14/arch/arm/boot/dts/qcom-ipq4018-gl-b1300th.dts | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-gl-b1300th.dts b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-gl-b1300th.dts 11 | index d655a0b456..c39d4b30ef 100644 12 | --- a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-gl-b1300th.dts 13 | +++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4018-gl-b1300th.dts 14 | @@ -238,11 +238,11 @@ 15 | #size-cells = <1>; 16 | 17 | partition@0 { 18 | - label = "ubi0"; 19 | + label = "fwa"; 20 | reg = <0x00000000 0x08000000>; 21 | }; 22 | partition@08000000 { 23 | - label = "ubi1"; 24 | + label = "fwb"; 25 | reg = <0x08000000 0x08000000>; 26 | }; 27 | partition@10000000 { 28 | -- 29 | 2.17.1 30 | 31 | -------------------------------------------------------------------------------- /patches-19.x/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-19.x/README.md -------------------------------------------------------------------------------- /patches-21.02.2/0020-update-21.02-feeds.conf.default-feeds.patch: -------------------------------------------------------------------------------- 1 | From 0a7bc224946df8c38a98fa69a7a5df52a6259d0b Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Wed, 8 Mar 2023 04:10:23 -0500 4 | Subject: [PATCH] update-21.02-feeds.conf.default-feeds 5 | 6 | --- 7 | feeds.conf.default | 8 ++++---- 8 | 1 file changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/feeds.conf.default b/feeds.conf.default 11 | index 3dfca3a7df..1db3438e2f 100644 12 | --- a/feeds.conf.default 13 | +++ b/feeds.conf.default 14 | @@ -1,4 +1,4 @@ 15 | -src-git packages https://git.openwrt.org/feed/packages.git^b0ccc356900f6e1e1dc613d0ea980d5572f553dd 16 | -src-git luci https://git.openwrt.org/project/luci.git^cc582ebfb3cb2782db841ad2a4e908d1df4046f9 17 | -src-git routing https://git.openwrt.org/feed/routing.git^10d3ffd8b30186b49538167bac1fa1bf9c88f860 18 | -src-git telephony https://git.openwrt.org/feed/telephony.git^001ae7137c88bb679284bfac5087cde65b5abf9a 19 | +src-git packages https://git.openwrt.org/feed/packages.git^477e23e85dfac98ba2372fecdcbf2013584a1542 20 | +src-git luci https://git.openwrt.org/project/luci.git^a0c73faf502684bca2ffbdab511510f37d799b76 21 | +src-git routing https://git.openwrt.org/feed/routing.git^83bb4b5d97a3af49d561d469be965c427bfc0db2 22 | +src-git telephony https://git.openwrt.org/feed/telephony.git^920fbc5c0a2e4badf51bceff42e9a1e3eb693462 23 | -- 24 | 2.17.1 25 | 26 | -------------------------------------------------------------------------------- /patches-21.02.2/0024-network_initialization_add-wan_mac-lan_mac.patch: -------------------------------------------------------------------------------- 1 | From 60a6cbe78dc8fa75e16e9fe9ab77b42e35b89e9e Mon Sep 17 00:00:00 2001 2 | From: gl-yangweiping 3 | Date: Wed, 31 Aug 2022 06:26:10 -0400 4 | Subject: [PATCH] add wan_mac lan_mac 5 | 6 | --- 7 | target/linux/ipq40xx/base-files/etc/board.d/02_network | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network 11 | index 7c7700bbc9..6e66350043 100755 12 | --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network 13 | +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network 14 | @@ -182,6 +182,10 @@ ipq40xx_setup_macs() 15 | lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base) 16 | label_mac="$lan_mac" 17 | ;; 18 | + glinet,gl-a1300) 19 | + wan_mac=$(mtd_get_mac_binary ART 0) 20 | + lan_mac=$(macaddr_add "$wan_mac" 1) 21 | + ;; 22 | esac 23 | 24 | [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac 25 | -- 26 | 2.17.1 27 | 28 | -------------------------------------------------------------------------------- /patches-21.02.2/0025-a1300-remove-nand-sysupgrade.bin.patch: -------------------------------------------------------------------------------- 1 | From 4c67145cae7ae578d1d69244f6b9b44e6fe6fbc3 Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Wed, 7 Sep 2022 14:16:46 +0800 4 | Subject: [PATCH] a1300: remove nand-sysupgrade.bin 5 | 6 | --- 7 | target/linux/ipq40xx/image/generic.mk | 5 +++-- 8 | 1 file changed, 3 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk 11 | index d9ace7711c..0071677cfb 100644 12 | --- a/target/linux/ipq40xx/image/generic.mk 13 | +++ b/target/linux/ipq40xx/image/generic.mk 14 | @@ -486,7 +486,6 @@ TARGET_DEVICES += glinet_gl-ap1300 15 | 16 | define Device/glinet_gl-a1300 17 | $(call Device/FitImage) 18 | - $(call Device/UbiFit) 19 | DEVICE_VENDOR := GL.iNet 20 | DEVICE_MODEL := GL-A1300 21 | SOC := qcom-ipq4018 22 | @@ -495,8 +494,10 @@ define Device/glinet_gl-a1300 23 | PAGESIZE := 2048 24 | IMAGE_SIZE := 131072k 25 | KERNEL_INSTALL := 1 26 | + KERNEL_IN_UBI := 1 27 | DEVICE_PACKAGE := ipq-wifi-glinet_gl-a1300 28 | - IMAGES += sysupgrade.tar 29 | + IMAGES := nand-factory.img sysupgrade.tar 30 | + IMAGE/nand-factory.img := append-ubi 31 | IMAGE/sysupgrade.tar := sysupgrade-tar | append-gl-metadata 32 | endef 33 | TARGET_DEVICES += glinet_gl-a1300 34 | -- 35 | 2.25.1 36 | 37 | -------------------------------------------------------------------------------- /patches-21.02.2/0027-b1300-update-dts.patch: -------------------------------------------------------------------------------- 1 | From 9833e7fe9ce5bc1173dc25ed71ac41127c55920d Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Wed, 28 Sep 2022 17:10:01 +0800 4 | Subject: [PATCH] b1300: update dts 5 | 6 | --- 7 | .../arm/boot/dts/qcom-ipq4029-gl-b1300.dts | 21 +++++++++++++++++++ 8 | 1 file changed, 21 insertions(+) 9 | 10 | diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts 11 | index a735d8e3ac..1b80d0d742 100644 12 | --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts 13 | +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts 14 | @@ -30,6 +30,27 @@ 15 | led-upgrade = &power; 16 | }; 17 | 18 | + gl_hw { 19 | + compatible = "gl-hw-info"; 20 | + 21 | + #address-cells = <1>; 22 | + #size-cells = <1>; 23 | + model = "b1300"; 24 | + wan = "eth1"; 25 | + lan = "eth0"; 26 | + usb-port = "1-1"; 27 | + flash_size = <32>; 28 | + reset-button = "gpio-63"; 29 | + radio = "radio0 radio1"; 30 | + factory_data { 31 | + device_mac = "ART", "0x0"; 32 | + device_ddns = "ART", "0x10"; 33 | + device_sn_bak = "ART", "0x20"; 34 | + device_sn = "ART", "0x30"; 35 | + country_code = "ART", "0x88"; 36 | + }; 37 | + }; 38 | + 39 | memory { 40 | device_type = "memory"; 41 | reg = <0x80000000 0x10000000>; 42 | -- 43 | 2.25.1 44 | 45 | -------------------------------------------------------------------------------- /patches-21.02.2/0030-add-default-wan-vlan-for-pppoe-vlan-setup.patch: -------------------------------------------------------------------------------- 1 | From 2ed47ed11fd789bd8eacb1d75eec9dbdf103d82b Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Fri, 14 Oct 2022 10:30:46 +0800 4 | Subject: [PATCH] add default wan vlan for pppoe vlan setup 5 | 6 | --- 7 | target/linux/ipq40xx/base-files/etc/board.d/02_network | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network 11 | index 1a7a7c2d37..2b3f710458 100755 12 | --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network 13 | +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network 14 | @@ -100,7 +100,7 @@ ipq40xx_setup_interfaces() 15 | glinet,gl-s1300) 16 | ucidef_set_interfaces_lan_wan "eth0" "eth1" 17 | ucidef_add_switch "switch0" \ 18 | - "0u@eth0" "3:lan" "4:lan" 19 | + "0u@eth0" "3:lan" "4:lan" "0u@eth1" "5:wan" 20 | ;; 21 | mobipromo,cm520-79f) 22 | ucidef_add_switch "switch0" \ 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-21.02.2/0034-fix-switch-link-failure-connected-with-100M-cable.patch: -------------------------------------------------------------------------------- 1 | From c3a07b20739a9c10906a8c49b2c09ed0c1f8e57e Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Wed, 16 Nov 2022 19:00:24 +0800 4 | Subject: [PATCH] fix switch link failure connected with 100M cable 5 | 6 | --- 7 | .../linux/ipq40xx/files/drivers/net/phy/ar40xx.c | 14 -------------- 8 | 1 file changed, 14 deletions(-) 9 | 10 | diff --git a/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c b/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c 11 | index ca7f0ca350..84ddcf155d 100644 12 | --- a/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c 13 | +++ b/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c 14 | @@ -1408,20 +1408,6 @@ ar40xx_sw_mac_polling_task(struct ar40xx_priv *priv) 15 | */ 16 | usleep_range(100, 200); 17 | 18 | - if (speed == AR40XX_PORT_SPEED_100M) { 19 | - u16 phy_val = 0; 20 | - /* Enable @100M, if down to 10M 21 | - * clock will change smoothly 22 | - */ 23 | - ar40xx_phy_dbg_read(priv, i-1, 24 | - 0, 25 | - &phy_val); 26 | - phy_val |= 27 | - AR40XX_PHY_MANU_CTRL_EN; 28 | - ar40xx_phy_dbg_write(priv, i-1, 29 | - 0, 30 | - phy_val); 31 | - } 32 | priv->ar40xx_port_old_link[i] = link; 33 | } 34 | } 35 | -- 36 | 2.25.1 37 | 38 | -------------------------------------------------------------------------------- /patches-21.02.2/0037-kernel-add-support-RFC-4191-Route-Information-Option.patch: -------------------------------------------------------------------------------- 1 | From 22de75a612b7c60ea36ec6687400cd3a7ef53fdb Mon Sep 17 00:00:00 2001 2 | From: lancersky 3 | Date: Mon, 5 Jun 2023 16:38:30 +0800 4 | Subject: [PATCH] kernel: add support RFC 4191 Route Information Options 5 | 6 | Signed-off-by: lancersky 7 | --- 8 | target/linux/ath79/config-5.4 | 3 +++ 9 | 1 file changed, 3 insertions(+) 10 | 11 | diff --git a/target/linux/ath79/config-5.4 b/target/linux/ath79/config-5.4 12 | index 60f57692e2..a7b7fbe103 100644 13 | --- a/target/linux/ath79/config-5.4 14 | +++ b/target/linux/ath79/config-5.4 15 | @@ -248,3 +248,6 @@ CONFIG_TICK_CPU_ACCOUNTING=y 16 | CONFIG_TINY_SRCU=y 17 | CONFIG_USB_SUPPORT=y 18 | CONFIG_USE_OF=y 19 | +CONFIG_IPV6=y 20 | +CONFIG_IPV6_ROUTER_PREF=y 21 | +CONFIG_IPV6_ROUTE_INFO=y 22 | -- 23 | 2.40.0 24 | 25 | -------------------------------------------------------------------------------- /patches-21.x/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-21.x/README.md -------------------------------------------------------------------------------- /patches-22.03.0/0004-fix-mt7615-wifi-init-DBDC-by-default.patch: -------------------------------------------------------------------------------- 1 | From d5c10dc93685c84239e3fec212838aa39b857b67 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 27 Sep 2022 12:13:36 +0800 4 | Subject: [PATCH] fix: mt7615 wifi init DBDC by default 5 | 6 | --- 7 | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index 6aa46b0c74..22b3c823cc 100644 12 | --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -111,7 +111,7 @@ END { 15 | get_band_defaults() { 16 | local phy="$1" 17 | 18 | - for c in $(__get_band_defaults "$phy"); do 19 | + for c in `echo $(__get_band_defaults "$phy") | awk '{for(i=NF;i>0;i--){print $i}}'`; do 20 | local band="${c%%:*}" 21 | c="${c#*:}" 22 | local chan="${c%%:*}" 23 | @@ -174,7 +174,7 @@ detect_mac80211() { 24 | set wireless.radio${devidx}.channel=${channel} 25 | set wireless.radio${devidx}.band=${mode_band} 26 | set wireless.radio${devidx}.htmode=$htmode 27 | - set wireless.radio${devidx}.disabled=1 28 | + #set wireless.radio${devidx}.disabled=1 29 | 30 | set wireless.default_radio${devidx}=wifi-iface 31 | set wireless.default_radio${devidx}.device=radio${devidx} 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /patches-22.03.0/0008-fix-gl-mt1300-support-sdhci-by-default.patch: -------------------------------------------------------------------------------- 1 | From 49a01620d8687597bee710d358c2d668e4c30694 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 10 Oct 2022 11:23:24 +0800 4 | Subject: [PATCH] fix: gl-mt1300 support sdhci by default 5 | 6 | --- 7 | target/linux/ramips/image/mt7621.mk | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk 11 | index 6c937a2409..61a77c3d94 100644 12 | --- a/target/linux/ramips/image/mt7621.mk 13 | +++ b/target/linux/ramips/image/mt7621.mk 14 | @@ -692,7 +692,7 @@ define Device/glinet_gl-mt1300 15 | DEVICE_VENDOR := GL.iNet 16 | DEVICE_MODEL := GL-MT1300 17 | OLD_SUPPORTED_DEVICES := gl-mt1300 18 | - DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 19 | + DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-sdhci-mt7620 20 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-gl-metadata 21 | endef 22 | TARGET_DEVICES += glinet_gl-mt1300 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.0/0009-fix-mt1300-dts-add-log-part.patch: -------------------------------------------------------------------------------- 1 | From d0df617b77d67c842308d2f04687052c13b46c12 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 18 Oct 2022 11:17:31 +0800 4 | Subject: [PATCH] fix: mt1300 dts add log part 5 | 6 | --- 7 | target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts | 7 ++++++- 8 | 1 file changed, 6 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 11 | index c488d72e36..54ff1019b1 100644 12 | --- a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 13 | +++ b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 14 | @@ -119,7 +119,12 @@ 15 | partition@50000 { 16 | compatible = "denx,uimage"; 17 | label = "firmware"; 18 | - reg = <0x50000 0x1fb0000>; 19 | + reg = <0x50000 0x1f90000>; 20 | + }; 21 | + 22 | + partition@1ff0000 { 23 | + label = "log"; 24 | + reg = <0x1fe0000 0x20000>; 25 | }; 26 | }; 27 | }; 28 | -- 29 | 2.34.1 30 | 31 | -------------------------------------------------------------------------------- /patches-22.03.0/0010-fix-ramips-mtdoops-add-_panic_write.patch: -------------------------------------------------------------------------------- 1 | From 03e26f26d9151977c5b7a0aef378d0faddb80086 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 18 Oct 2022 11:15:45 +0800 4 | Subject: [PATCH] fix: mtdoops add _panic_write 5 | 6 | --- 7 | .../patches-5.10/857-mtd-oops-add-panic-write.patch | 13 +++++++++++++ 8 | 1 file changed, 13 insertions(+) 9 | create mode 100644 target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 10 | 11 | diff --git a/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch b/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 12 | new file mode 100644 13 | index 0000000000..50231e50e6 14 | --- /dev/null 15 | +++ b/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 16 | @@ -0,0 +1,13 @@ 17 | +Index: linux-5.10.138/drivers/mtd/spi-nor/core.c 18 | +=================================================================== 19 | +--- linux-5.10.138.orig/drivers/mtd/spi-nor/core.c 20 | ++++ linux-5.10.138/drivers/mtd/spi-nor/core.c 21 | +@@ -3207,6 +3207,8 @@ int spi_nor_scan(struct spi_nor *nor, co 22 | + 23 | + mtd->_write = spi_nor_write; 24 | + 25 | ++ mtd->_panic_write = spi_nor_write; 26 | ++ 27 | + /* Init flash parameters based on flash_info struct and SFDP */ 28 | + ret = spi_nor_init_params(nor); 29 | + if (ret) 30 | -- 31 | 2.34.1 32 | 33 | -------------------------------------------------------------------------------- /patches-22.03.2/0004-fix-mt7615-wifi-init-DBDC-by-default.patch: -------------------------------------------------------------------------------- 1 | From d5c10dc93685c84239e3fec212838aa39b857b67 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 27 Sep 2022 12:13:36 +0800 4 | Subject: [PATCH] fix: mt7615 wifi init DBDC by default 5 | 6 | --- 7 | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index 6aa46b0c74..22b3c823cc 100644 12 | --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -111,7 +111,7 @@ END { 15 | get_band_defaults() { 16 | local phy="$1" 17 | 18 | - for c in $(__get_band_defaults "$phy"); do 19 | + for c in `echo $(__get_band_defaults "$phy") | awk '{for(i=NF;i>0;i--){print $i}}'`; do 20 | local band="${c%%:*}" 21 | c="${c#*:}" 22 | local chan="${c%%:*}" 23 | @@ -174,7 +174,7 @@ detect_mac80211() { 24 | set wireless.radio${devidx}.channel=${channel} 25 | set wireless.radio${devidx}.band=${mode_band} 26 | set wireless.radio${devidx}.htmode=$htmode 27 | - set wireless.radio${devidx}.disabled=1 28 | + #set wireless.radio${devidx}.disabled=1 29 | 30 | set wireless.default_radio${devidx}=wifi-iface 31 | set wireless.default_radio${devidx}.device=radio${devidx} 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /patches-22.03.2/0008-fix-gl-mt1300-support-sdhci-by-default.patch: -------------------------------------------------------------------------------- 1 | From 49a01620d8687597bee710d358c2d668e4c30694 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 10 Oct 2022 11:23:24 +0800 4 | Subject: [PATCH] fix: gl-mt1300 support sdhci by default 5 | 6 | --- 7 | target/linux/ramips/image/mt7621.mk | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk 11 | index 6c937a2409..61a77c3d94 100644 12 | --- a/target/linux/ramips/image/mt7621.mk 13 | +++ b/target/linux/ramips/image/mt7621.mk 14 | @@ -692,7 +692,7 @@ define Device/glinet_gl-mt1300 15 | DEVICE_VENDOR := GL.iNet 16 | DEVICE_MODEL := GL-MT1300 17 | OLD_SUPPORTED_DEVICES := gl-mt1300 18 | - DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 19 | + DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-sdhci-mt7620 20 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-gl-metadata 21 | endef 22 | TARGET_DEVICES += glinet_gl-mt1300 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.2/0009-fix-mt1300-dts-add-log-part.patch: -------------------------------------------------------------------------------- 1 | From d0df617b77d67c842308d2f04687052c13b46c12 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 18 Oct 2022 11:17:31 +0800 4 | Subject: [PATCH] fix: mt1300 dts add log part 5 | 6 | --- 7 | target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts | 7 ++++++- 8 | 1 file changed, 6 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 11 | index c488d72e36..54ff1019b1 100644 12 | --- a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 13 | +++ b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts 14 | @@ -119,7 +119,12 @@ 15 | partition@50000 { 16 | compatible = "denx,uimage"; 17 | label = "firmware"; 18 | - reg = <0x50000 0x1fb0000>; 19 | + reg = <0x50000 0x1f90000>; 20 | + }; 21 | + 22 | + partition@1ff0000 { 23 | + label = "log"; 24 | + reg = <0x1fe0000 0x20000>; 25 | }; 26 | }; 27 | }; 28 | -- 29 | 2.34.1 30 | 31 | -------------------------------------------------------------------------------- /patches-22.03.2/0010-fix-ramips-mtdoops-add-_panic_write.patch: -------------------------------------------------------------------------------- 1 | From 03e26f26d9151977c5b7a0aef378d0faddb80086 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 18 Oct 2022 11:15:45 +0800 4 | Subject: [PATCH] fix: mtdoops add _panic_write 5 | 6 | --- 7 | .../patches-5.10/857-mtd-oops-add-panic-write.patch | 13 +++++++++++++ 8 | 1 file changed, 13 insertions(+) 9 | create mode 100644 target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 10 | 11 | diff --git a/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch b/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 12 | new file mode 100644 13 | index 0000000000..50231e50e6 14 | --- /dev/null 15 | +++ b/target/linux/ramips/patches-5.10/857-mtd-oops-add-panic-write.patch 16 | @@ -0,0 +1,13 @@ 17 | +Index: linux-5.10.138/drivers/mtd/spi-nor/core.c 18 | +=================================================================== 19 | +--- linux-5.10.138.orig/drivers/mtd/spi-nor/core.c 20 | ++++ linux-5.10.138/drivers/mtd/spi-nor/core.c 21 | +@@ -3207,6 +3207,8 @@ int spi_nor_scan(struct spi_nor *nor, co 22 | + 23 | + mtd->_write = spi_nor_write; 24 | + 25 | ++ mtd->_panic_write = spi_nor_write; 26 | ++ 27 | + /* Init flash parameters based on flash_info struct and SFDP */ 28 | + ret = spi_nor_init_params(nor); 29 | + if (ret) 30 | -- 31 | 2.34.1 32 | 33 | -------------------------------------------------------------------------------- /patches-22.03.2/0024-fix-add-dhcpv6-hotplug.patch: -------------------------------------------------------------------------------- 1 | From 10848f66a164795863c85361483791434e07ff13 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Wed, 23 Nov 2022 11:18:35 +0800 4 | Subject: [PATCH] fix: add dhcpv6 hotplug 5 | 6 | --- 7 | package/network/ipv6/odhcp6c/files/dhcpv6.script | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script 11 | index b1a99ed986..0d295afa52 100755 12 | --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script 13 | +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script 14 | @@ -133,6 +133,7 @@ setup_interface () { 15 | 16 | if [ -z "$gw" -o "$duplicate" = 1 ]; then 17 | proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" 18 | + env -i ACTION="ifup" INTERFACE="$INTERFACE" DEVICE="$DEVICE" ADDR="$addr" MASK="$mask" "GW"="$gw" METRIC="$metric" VALID="$valid" /sbin/hotplug-call dhcpv6 19 | else 20 | for prefix in $PREFIXES $ADDRESSES; do 21 | local paddr="${prefix%%,*}" 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-22.03.2/0025-fix-dnsmasq-mount-tmp-resolv.conf.xxx.patch: -------------------------------------------------------------------------------- 1 | From 67e05cf16a0c562c85cb61de3d849ad7b370229f Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 5 Dec 2022 10:11:47 +0800 4 | Subject: [PATCH] fix: dnsmasq mount /tmp/resolv.conf.xxx 5 | 6 | --- 7 | package/network/services/dnsmasq/files/dnsmasq.init | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init 11 | index c4ca3eb2db..618f101835 100755 12 | --- a/package/network/services/dnsmasq/files/dnsmasq.init 13 | +++ b/package/network/services/dnsmasq/files/dnsmasq.init 14 | @@ -1173,6 +1173,7 @@ dnsmasq_start() 15 | procd_add_jail_mount $EXTRA_MOUNT $RFC6761FILE $TRUSTANCHORSFILE 16 | procd_add_jail_mount $dnsmasqconffile $dnsmasqconfdir $resolvdir $user_dhcpscript 17 | procd_add_jail_mount /etc/passwd /etc/group /etc/TZ /etc/hosts /etc/ethers 18 | + procd_add_jail_mount /tmp/resolv.conf.vpn /tmp/resolv.conf.auto /tmp/resolv.conf.wg /tmp/resolv.conf.ovpn 19 | procd_add_jail_mount_rw /var/run/dnsmasq/ $leasefile 20 | case "$logfacility" in */*) 21 | [ ! -e "$logfacility" ] && touch "$logfacility" 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-22.03.2/0031-modify-image-rootfs-size-to-512M.patch: -------------------------------------------------------------------------------- 1 | From d9a02dfb7e3589f813ccb9f0508af2111db81f6d Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Sun, 26 Feb 2023 23:29:38 -0500 4 | Subject: [PATCH] modify image rootfs size to 512M 5 | 6 | --- 7 | config/Config-images.in | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/config/Config-images.in b/config/Config-images.in 11 | index dcd7575c3e..b676e0f018 100644 12 | --- a/config/Config-images.in 13 | +++ b/config/Config-images.in 14 | @@ -297,7 +297,7 @@ menu "Target Images" 15 | config TARGET_ROOTFS_PARTSIZE 16 | int "Root filesystem partition size (in MiB)" 17 | depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS 18 | - default 104 19 | + default 512 20 | help 21 | Select the root filesystem partition size. 22 | 23 | -- 24 | 2.17.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.2/1001-add-mv1000-uboot-envtools-partition.patch: -------------------------------------------------------------------------------- 1 | From 25f925b53c5c772a125b89b373b04a3e982ec422 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Sun, 26 Feb 2023 23:31:47 -0500 4 | Subject: [PATCH] add mv1000 uboot-envtools 5 | 6 | --- 7 | package/boot/uboot-envtools/files/mvebu | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/package/boot/uboot-envtools/files/mvebu b/package/boot/uboot-envtools/files/mvebu 11 | index cffd396ae1..757b69779b 100644 12 | --- a/package/boot/uboot-envtools/files/mvebu 13 | +++ b/package/boot/uboot-envtools/files/mvebu 14 | @@ -26,7 +26,8 @@ cznic,turris-omnia) 15 | ubootenv_add_uci_config "/dev/mtd0" "0xf0000" "0x10000" "0x10000" 16 | fi 17 | ;; 18 | -glinet,gl-mv1000) 19 | +glinet,gl-mv1000|\ 20 | +gl-mv1000) 21 | ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x8000" "1" 22 | ;; 23 | globalscale,espressobin|\ 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-22.03.2/1002-adapt-to-mv1000-usb-devise.patch: -------------------------------------------------------------------------------- 1 | From b8b39a3904c5b686b3ff3b5808459d608f46aec5 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Mon, 27 Feb 2023 01:22:07 -0500 4 | Subject: [PATCH] adapt-to-mv1000-usb-devise 5 | 6 | --- 7 | package/kernel/linux/modules/usb.mk | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk 11 | index 1fc3541f10..763b6fced3 100644 12 | --- a/package/kernel/linux/modules/usb.mk 13 | +++ b/package/kernel/linux/modules/usb.mk 14 | @@ -169,7 +169,7 @@ define KernelPackage/usb-gadget-eth 15 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \ 16 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \ 17 | $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko 18 | - AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm) 19 | + AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether) 20 | $(call AddDepends/usb) 21 | endef 22 | 23 | -- 24 | 2.17.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.2/2001-ath79-e750-crash-after-restart-5g-wifi.patch: -------------------------------------------------------------------------------- 1 | From dc72742a570787fd2a78ffdac2f6ff861519eabf Mon Sep 17 00:00:00 2001 2 | From: Yin Ni 3 | Date: Mon, 20 Mar 2023 02:26:50 -0700 4 | Subject: [PATCH] ath79: e750 crash after restart 5g wifi 5 | 6 | Signed-off-by: Yin Ni 7 | --- 8 | .../patches/970-crash-after-restart-5g-wifi.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/kernel/ath10k-ct/patches/970-crash-after-restart-5g-wifi.patch 11 | 12 | diff --git a/package/kernel/ath10k-ct/patches/970-crash-after-restart-5g-wifi.patch b/package/kernel/ath10k-ct/patches/970-crash-after-restart-5g-wifi.patch 13 | new file mode 100644 14 | index 0000000000..32ed8ede53 15 | --- /dev/null 16 | +++ b/package/kernel/ath10k-ct/patches/970-crash-after-restart-5g-wifi.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: b/ath10k-5.15/pci.c 19 | +=================================================================== 20 | +--- a/ath10k-5.15/pci.c 21 | ++++ b/ath10k-5.15/pci.c 22 | +@@ -2571,7 +2571,7 @@ static int ath10k_pci_bmi_wait(struct at 23 | + goto out; 24 | + } 25 | + 26 | +- schedule(); 27 | ++ //schedule(); 28 | + } 29 | + 30 | + ret = -ETIMEDOUT; 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-22.03.2/3004-ath79-adjust-platform.sh.patch: -------------------------------------------------------------------------------- 1 | From fadb8f5b740ec0b685aa7ad271d492632e2f7ebe Mon Sep 17 00:00:00 2001 2 | From: niyin 3 | Date: Sat, 28 Jan 2023 22:27:44 -0800 4 | Subject: [PATCH] ath79 adjust platform.sh 5 | 6 | --- 7 | target/linux/ath79/nand/base-files/lib/upgrade/platform.sh | 3 +++ 8 | 1 file changed, 3 insertions(+) 9 | 10 | diff --git a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 11 | index ea77345b06..3255b64d61 100644 12 | --- a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 13 | +++ b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 14 | @@ -18,6 +18,9 @@ platform_do_upgrade() { 15 | glinet,gl-ar300m-nor) 16 | glinet_nand_nor_do_upgrade "$1" 17 | ;; 18 | + glinet,gl-x300b-nor|\ 19 | + glinet,gl-x300b-nor-nand|\ 20 | + glinet,gl-x750-nor|\ 21 | glinet,gl-ar750s-nor|\ 22 | glinet,gl-ar750s-nor-nand) 23 | nand_nor_do_upgrade "$1" 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch: -------------------------------------------------------------------------------- 1 | From 4d83e8a3ccdd1ea9ffe6cef5428eada4145a6f34 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Wed, 12 Apr 2023 05:33:00 -0400 4 | Subject: [PATCH] ath79 adjust ath10k caldata 5 | 6 | --- 7 | .../nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 5 +++++ 8 | 1 file changed, 5 insertions(+) 9 | 10 | diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 11 | index e5c26d6bb5..26851e8604 100644 12 | --- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 13 | +++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 14 | @@ -18,6 +18,11 @@ case "$FIRMWARE" in 15 | caldata_extract "art" 0x5000 0x844 16 | ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1) 17 | ;; 18 | + glinet,gl-x750-nor|\ 19 | + glinet,gl-x750-nor-nand) 20 | + caldata_extract "art" 0x5000 0x844 21 | + ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 3) 22 | + ;; 23 | netgear,r6100) 24 | caldata_extract "caldata" 0x5000 0x844 25 | ;; 26 | -- 27 | 2.17.1 28 | 29 | -------------------------------------------------------------------------------- /patches-22.03.2/3006-mvebu-adjust-01-leds.patch: -------------------------------------------------------------------------------- 1 | From 1592185f17d4f13518d95a24b9289aab374540af Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Sat, 25 Feb 2023 04:16:01 -0500 4 | Subject: [PATCH] mvebu-adjust-01-leds 5 | 6 | --- 7 | .../linux/mvebu/cortexa53/base-files/etc/board.d/01_leds | 7 +++++-- 8 | 1 file changed, 5 insertions(+), 2 deletions(-) 9 | mode change 100644 => 100755 target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 10 | 11 | diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 12 | old mode 100644 13 | new mode 100755 14 | index 4dce204f14..0f7b53a8dd 15 | --- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 16 | +++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 17 | @@ -1,3 +1,5 @@ 18 | +#!/bin/sh 19 | +# 20 | # SPDX-License-Identifier: GPL-2.0-only 21 | 22 | . /lib/functions/uci-defaults.sh 23 | @@ -7,8 +9,9 @@ board_config_update 24 | board=$(board_name) 25 | 26 | case "$board" in 27 | -glinet,gl-mv1000) 28 | - ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan" 29 | +glinet,gl-mv1000|\ 30 | +gl-mv1000) 31 | + ucidef_set_led_netdev "wan" "WAN" "gl-mv1000:white:wan" "wan" 32 | ;; 33 | esac 34 | 35 | -- 36 | 2.17.1 37 | 38 | -------------------------------------------------------------------------------- /patches-22.03.2/3012-mvebu-adjust-cortexa53.patch: -------------------------------------------------------------------------------- 1 | From 61725b10deb08c3e39dd239164a436c999675543 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Mon, 27 Feb 2023 01:42:57 -0500 4 | Subject: [PATCH] mvebu-adjust-cortexa53 5 | 6 | --- 7 | target/linux/mvebu/image/cortexa53.mk | 11 ++++++----- 8 | 1 file changed, 6 insertions(+), 5 deletions(-) 9 | 10 | diff --git a/target/linux/mvebu/image/cortexa53.mk b/target/linux/mvebu/image/cortexa53.mk 11 | index bfaa597d9a..6f560f728e 100644 12 | --- a/target/linux/mvebu/image/cortexa53.mk 13 | +++ b/target/linux/mvebu/image/cortexa53.mk 14 | @@ -1,10 +1,11 @@ 15 | -define Device/glinet_gl-mv1000 16 | - $(call Device/Default-arm64) 17 | - DEVICE_VENDOR := GL.iNet 18 | - DEVICE_MODEL := GL-MV1000 19 | +define Device/gl-mv1000-emmc 20 | + $(call Device/Default-arm64-emmc) 21 | + DEVICE_TITLE := GL.iNet GL-MV1000 EMMC 22 | SOC := armada-3720 23 | + DEVICE_DTS := armada-gl-mv1000-emmc 24 | + SUPPORTED_DEVICES := gl-mv1000-emmc 25 | endef 26 | -TARGET_DEVICES += glinet_gl-mv1000 27 | +TARGET_DEVICES += gl-mv1000-emmc 28 | 29 | define Device/globalscale_espressobin 30 | $(call Device/Default-arm64) 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-22.03.4/1000-gpio-button-hotplug-Add-KEY_SETUP.patch: -------------------------------------------------------------------------------- 1 | From 343f2ab0330c56c3f00fb93a8851d778ddc6ee1c Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Fri, 26 May 2023 15:05:06 +0800 4 | Subject: [PATCH] gpio-button-hotplug: Add KEY_SETUP 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 12 | index 522085bb2f..7cf03955de 100644 13 | --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 14 | +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 15 | @@ -100,6 +100,7 @@ static struct bh_map button_map[] = { 16 | BH_MAP(KEY_WIMAX, "wwan"), 17 | BH_MAP(KEY_WLAN, "wlan"), 18 | BH_MAP(KEY_WPS_BUTTON, "wps"), 19 | + BH_MAP(KEY_SETUP, "switch"), 20 | }; 21 | 22 | /* -------------------------------------------------------------------------*/ 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.4/1001-add-mv1000-uboot-envtools-partition.patch: -------------------------------------------------------------------------------- 1 | From 25f925b53c5c772a125b89b373b04a3e982ec422 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Sun, 26 Feb 2023 23:31:47 -0500 4 | Subject: [PATCH] add mv1000 uboot-envtools 5 | 6 | --- 7 | package/boot/uboot-envtools/files/mvebu | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/package/boot/uboot-envtools/files/mvebu b/package/boot/uboot-envtools/files/mvebu 11 | index cffd396ae1..757b69779b 100644 12 | --- a/package/boot/uboot-envtools/files/mvebu 13 | +++ b/package/boot/uboot-envtools/files/mvebu 14 | @@ -26,7 +26,8 @@ cznic,turris-omnia) 15 | ubootenv_add_uci_config "/dev/mtd0" "0xf0000" "0x10000" "0x10000" 16 | fi 17 | ;; 18 | -glinet,gl-mv1000) 19 | +glinet,gl-mv1000|\ 20 | +gl-mv1000) 21 | ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x8000" "1" 22 | ;; 23 | globalscale,espressobin|\ 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-22.03.4/1002-adapt-to-mv1000-usb-devise.patch: -------------------------------------------------------------------------------- 1 | From b8b39a3904c5b686b3ff3b5808459d608f46aec5 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Mon, 27 Feb 2023 01:22:07 -0500 4 | Subject: [PATCH] adapt-to-mv1000-usb-devise 5 | 6 | --- 7 | package/kernel/linux/modules/usb.mk | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk 11 | index 1fc3541f10..763b6fced3 100644 12 | --- a/package/kernel/linux/modules/usb.mk 13 | +++ b/package/kernel/linux/modules/usb.mk 14 | @@ -169,7 +169,7 @@ define KernelPackage/usb-gadget-eth 15 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ecm_subset.ko \ 16 | $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_rndis.ko \ 17 | $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ether.ko 18 | - AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm) 19 | + AUTOLOAD:=$(call AutoLoad,52,usb_f_ecm g_ether) 20 | $(call AddDepends/usb) 21 | endef 22 | 23 | -- 24 | 2.17.1 25 | 26 | -------------------------------------------------------------------------------- /patches-22.03.4/1005-fix-mt7615-wifi-init-DBDC-by-default.patch: -------------------------------------------------------------------------------- 1 | From d5c10dc93685c84239e3fec212838aa39b857b67 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 27 Sep 2022 12:13:36 +0800 4 | Subject: [PATCH] fix: mt7615 wifi init DBDC by default 5 | 6 | --- 7 | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index 6aa46b0c74..22b3c823cc 100644 12 | --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -111,7 +111,7 @@ END { 15 | get_band_defaults() { 16 | local phy="$1" 17 | 18 | - for c in $(__get_band_defaults "$phy"); do 19 | + for c in `echo $(__get_band_defaults "$phy") | awk '{for(i=NF;i>0;i--){print $i}}'`; do 20 | local band="${c%%:*}" 21 | c="${c#*:}" 22 | local chan="${c%%:*}" 23 | @@ -174,7 +174,7 @@ detect_mac80211() { 24 | set wireless.radio${devidx}.channel=${channel} 25 | set wireless.radio${devidx}.band=${mode_band} 26 | set wireless.radio${devidx}.htmode=$htmode 27 | - set wireless.radio${devidx}.disabled=1 28 | + #set wireless.radio${devidx}.disabled=1 29 | 30 | set wireless.default_radio${devidx}=wifi-iface 31 | set wireless.default_radio${devidx}.device=radio${devidx} 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /patches-22.03.4/1006-fix-add-dhcpv6-hotplug.patch: -------------------------------------------------------------------------------- 1 | From 10848f66a164795863c85361483791434e07ff13 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Wed, 23 Nov 2022 11:18:35 +0800 4 | Subject: [PATCH] fix: add dhcpv6 hotplug 5 | 6 | --- 7 | package/network/ipv6/odhcp6c/files/dhcpv6.script | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script 11 | index b1a99ed986..0d295afa52 100755 12 | --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script 13 | +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script 14 | @@ -133,6 +133,7 @@ setup_interface () { 15 | 16 | if [ -z "$gw" -o "$duplicate" = 1 ]; then 17 | proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" 18 | + env -i ACTION="ifup" INTERFACE="$INTERFACE" DEVICE="$DEVICE" ADDR="$addr" MASK="$mask" "GW"="$gw" METRIC="$metric" VALID="$valid" /sbin/hotplug-call dhcpv6 19 | else 20 | for prefix in $PREFIXES $ADDRESSES; do 21 | local paddr="${prefix%%,*}" 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-22.03.4/1007-fix-dnsmasq-mount-tmp-resolv.conf.xxx.patch: -------------------------------------------------------------------------------- 1 | From 67e05cf16a0c562c85cb61de3d849ad7b370229f Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 5 Dec 2022 10:11:47 +0800 4 | Subject: [PATCH] fix: dnsmasq mount /tmp/resolv.conf.xxx 5 | 6 | --- 7 | package/network/services/dnsmasq/files/dnsmasq.init | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init 11 | index c4ca3eb2db..618f101835 100755 12 | --- a/package/network/services/dnsmasq/files/dnsmasq.init 13 | +++ b/package/network/services/dnsmasq/files/dnsmasq.init 14 | @@ -1173,6 +1173,7 @@ dnsmasq_start() 15 | procd_add_jail_mount $EXTRA_MOUNT $RFC6761FILE $TRUSTANCHORSFILE 16 | procd_add_jail_mount $dnsmasqconffile $dnsmasqconfdir $resolvdir $user_dhcpscript 17 | procd_add_jail_mount /etc/passwd /etc/group /etc/TZ /etc/hosts /etc/ethers 18 | + procd_add_jail_mount /tmp/resolv.conf.vpn /tmp/resolv.conf.auto /tmp/resolv.conf.wg /tmp/resolv.conf.ovpn 19 | procd_add_jail_mount_rw /var/run/dnsmasq/ $leasefile 20 | case "$logfacility" in */*) 21 | [ ! -e "$logfacility" ] && touch "$logfacility" 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-22.03.4/2001-ath79-e750-crash-after-restart-5g-wifi.patch: -------------------------------------------------------------------------------- 1 | From f09b1cb8f95e96e278dd49e1e4dd45a71dbbf14e Mon Sep 17 00:00:00 2001 2 | From: Yin Ni 3 | Date: Wed, 3 May 2023 21:05:36 -0700 4 | Subject: [PATCH] ath10k: e750 crash after restart 5g wifi 5 | 6 | Signed-off-by: Yin Ni 7 | --- 8 | .../ath10k/992-ath79-adjust-ath10k-caldata.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/kernel/mac80211/patches/ath10k/992-ath79-adjust-ath10k-caldata.patch 11 | 12 | diff --git a/package/kernel/mac80211/patches/ath10k/992-ath79-adjust-ath10k-caldata.patch b/package/kernel/mac80211/patches/ath10k/992-ath79-adjust-ath10k-caldata.patch 13 | new file mode 100644 14 | index 0000000000..df37efad10 15 | --- /dev/null 16 | +++ b/package/kernel/mac80211/patches/ath10k/992-ath79-adjust-ath10k-caldata.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: b/drivers/net/wireless/ath/ath10k/pci.c 19 | +=================================================================== 20 | +--- a/drivers/net/wireless/ath/ath10k/pci.c 21 | ++++ b/drivers/net/wireless/ath/ath10k/pci.c 22 | +@@ -2261,7 +2261,7 @@ static int ath10k_pci_bmi_wait(struct at 23 | + goto out; 24 | + } 25 | + 26 | +- schedule(); 27 | ++ //schedule(); 28 | + } 29 | + 30 | + ret = -ETIMEDOUT; 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-22.03.4/2004-kernel-wext-support-old-private-wifi-driver.patch: -------------------------------------------------------------------------------- 1 | From 438c8a7f880d3350e82ea34c20127f2a0040eda9 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 8 May 2023 11:32:35 +0800 4 | Subject: [PATCH] kernel: wext: support old private wifi driver 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../922-wext-support-old-private-wifi-driver.patch | 14 ++++++++++++++ 9 | 1 file changed, 14 insertions(+) 10 | create mode 100644 target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch 11 | 12 | diff --git a/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch b/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch 13 | new file mode 100644 14 | index 0000000000..f112996698 15 | --- /dev/null 16 | +++ b/target/linux/generic/hack-5.10/922-wext-support-old-private-wifi-driver.patch 17 | @@ -0,0 +1,14 @@ 18 | +--- a/net/wireless/wext-core.c 19 | ++++ b/net/wireless/wext-core.c 20 | +@@ -956,6 +956,11 @@ static int wireless_process_ioctl(struct 21 | + else if (private) 22 | + return private(dev, iwr, cmd, info, handler); 23 | + } 24 | ++ 25 | ++ /* Old driver API : call driver ioctl handler */ 26 | ++ if (dev->netdev_ops->ndo_do_ioctl) 27 | ++ return dev->netdev_ops->ndo_do_ioctl(dev, (struct ifreq *)iwr, cmd); 28 | ++ 29 | + return -EOPNOTSUPP; 30 | + } 31 | + 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /patches-22.03.4/2005-fix-mtdoops-add-_panic_write.patch: -------------------------------------------------------------------------------- 1 | From 8bbe35ea9f62e35d5efa1966804139544e179649 Mon Sep 17 00:00:00 2001 2 | From: Xinfa Deng 3 | Date: Thu, 25 May 2023 15:14:00 +0800 4 | Subject: [PATCH] fix: mtdoops add _panic_write 5 | 6 | --- 7 | .../hack-5.10/921-mtd-oops-add-panic-write.patch | 11 +++++++++++ 8 | 1 file changed, 11 insertions(+) 9 | create mode 100644 target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch 10 | 11 | diff --git a/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch b/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch 12 | new file mode 100644 13 | index 0000000000..9da5579eaa 14 | --- /dev/null 15 | +++ b/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch 16 | @@ -0,0 +1,11 @@ 17 | +--- a/drivers/mtd/spi-nor/core.c 18 | ++++ b/drivers/mtd/spi-nor/core.c 19 | +@@ -3207,6 +3207,8 @@ int spi_nor_scan(struct spi_nor *nor, co 20 | + 21 | + mtd->_write = spi_nor_write; 22 | + 23 | ++ mtd->_panic_write = spi_nor_write; 24 | ++ 25 | + /* Init flash parameters based on flash_info struct and SFDP */ 26 | + ret = spi_nor_init_params(nor); 27 | + if (ret) 28 | -- 29 | 2.34.1 30 | 31 | -------------------------------------------------------------------------------- /patches-22.03.4/3004-ath79-adjust-platform.sh.patch: -------------------------------------------------------------------------------- 1 | From 2deec9c27ef787b05b10d6a7de867e1ea52e7b1b Mon Sep 17 00:00:00 2001 2 | From: Luo Chongjun 3 | Date: Thu, 4 May 2023 19:17:54 +0800 4 | Subject: [PATCH] ath79 adjust platform.sh 5 | 6 | --- 7 | target/linux/ath79/nand/base-files/lib/upgrade/platform.sh | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 11 | index ea77345b06..afd363d115 100644 12 | --- a/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 13 | +++ b/target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 14 | @@ -18,6 +18,10 @@ platform_do_upgrade() { 15 | glinet,gl-ar300m-nor) 16 | glinet_nand_nor_do_upgrade "$1" 17 | ;; 18 | + glinet,gl-x300b-nor|\ 19 | + glinet,gl-x300b-nor-nand|\ 20 | + glinet,gl-x750-nor|\ 21 | + glinet,gl-ar750|\ 22 | glinet,gl-ar750s-nor|\ 23 | glinet,gl-ar750s-nor-nand) 24 | nand_nor_do_upgrade "$1" 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /patches-22.03.4/3005-ath79-adjust-ath10k-caldata.patch: -------------------------------------------------------------------------------- 1 | From 74492b5cbbf570ce777502367e308604c4393f93 Mon Sep 17 00:00:00 2001 2 | From: Luo Chongjun 3 | Date: Thu, 4 May 2023 19:22:11 +0800 4 | Subject: [PATCH] ath79 adjust ath10k caldata 5 | 6 | --- 7 | .../base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 7 +++++++ 8 | 1 file changed, 7 insertions(+) 9 | 10 | diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 11 | index e5c26d6bb5..2b45ecc1ff 100644 12 | --- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 13 | +++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 14 | @@ -13,11 +13,18 @@ case "$FIRMWARE" in 15 | caldata_extract "art" 0x5000 0x844 16 | ath10k_patch_mac $(mtd_get_mac_binary art 0x12) 17 | ;; 18 | + glinet,gl-ar750|\ 19 | + glinet,gl-e750|\ 20 | glinet,gl-ar750s-nor|\ 21 | glinet,gl-ar750s-nor-nand) 22 | caldata_extract "art" 0x5000 0x844 23 | ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1) 24 | ;; 25 | + glinet,gl-x750-nor|\ 26 | + glinet,gl-x750-nor-nand) 27 | + caldata_extract "art" 0x5000 0x844 28 | + ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 3) 29 | + ;; 30 | netgear,r6100) 31 | caldata_extract "caldata" 0x5000 0x844 32 | ;; 33 | -- 34 | 2.25.1 35 | 36 | -------------------------------------------------------------------------------- /patches-22.03.4/3006-mvebu-adjust-01-leds.patch: -------------------------------------------------------------------------------- 1 | From 1592185f17d4f13518d95a24b9289aab374540af Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Sat, 25 Feb 2023 04:16:01 -0500 4 | Subject: [PATCH] mvebu-adjust-01-leds 5 | 6 | --- 7 | .../linux/mvebu/cortexa53/base-files/etc/board.d/01_leds | 7 +++++-- 8 | 1 file changed, 5 insertions(+), 2 deletions(-) 9 | mode change 100644 => 100755 target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 10 | 11 | diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 12 | old mode 100644 13 | new mode 100755 14 | index 4dce204f14..0f7b53a8dd 15 | --- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 16 | +++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds 17 | @@ -1,3 +1,5 @@ 18 | +#!/bin/sh 19 | +# 20 | # SPDX-License-Identifier: GPL-2.0-only 21 | 22 | . /lib/functions/uci-defaults.sh 23 | @@ -7,8 +9,9 @@ board_config_update 24 | board=$(board_name) 25 | 26 | case "$board" in 27 | -glinet,gl-mv1000) 28 | - ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan" 29 | +glinet,gl-mv1000|\ 30 | +gl-mv1000) 31 | + ucidef_set_led_netdev "wan" "WAN" "gl-mv1000:white:wan" "wan" 32 | ;; 33 | esac 34 | 35 | -- 36 | 2.17.1 37 | 38 | -------------------------------------------------------------------------------- /patches-22.03.4/3012-mvebu-adjust-cortexa53.patch: -------------------------------------------------------------------------------- 1 | From 61725b10deb08c3e39dd239164a436c999675543 Mon Sep 17 00:00:00 2001 2 | From: Weiping Yang 3 | Date: Mon, 27 Feb 2023 01:42:57 -0500 4 | Subject: [PATCH] mvebu-adjust-cortexa53 5 | 6 | --- 7 | target/linux/mvebu/image/cortexa53.mk | 11 ++++++----- 8 | 1 file changed, 6 insertions(+), 5 deletions(-) 9 | 10 | diff --git a/target/linux/mvebu/image/cortexa53.mk b/target/linux/mvebu/image/cortexa53.mk 11 | index bfaa597d9a..6f560f728e 100644 12 | --- a/target/linux/mvebu/image/cortexa53.mk 13 | +++ b/target/linux/mvebu/image/cortexa53.mk 14 | @@ -1,10 +1,11 @@ 15 | -define Device/glinet_gl-mv1000 16 | - $(call Device/Default-arm64) 17 | - DEVICE_VENDOR := GL.iNet 18 | - DEVICE_MODEL := GL-MV1000 19 | +define Device/gl-mv1000-emmc 20 | + $(call Device/Default-arm64-emmc) 21 | + DEVICE_TITLE := GL.iNet GL-MV1000 EMMC 22 | SOC := armada-3720 23 | + DEVICE_DTS := armada-gl-mv1000-emmc 24 | + SUPPORTED_DEVICES := gl-mv1000-emmc 25 | endef 26 | -TARGET_DEVICES += glinet_gl-mv1000 27 | +TARGET_DEVICES += gl-mv1000-emmc 28 | 29 | define Device/globalscale_espressobin 30 | $(call Device/Default-arm64) 31 | -- 32 | 2.17.1 33 | 34 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/0008-mksquashfs4-add-root-owned-option.patch: -------------------------------------------------------------------------------- 1 | From 1944b5065a88da93ec59ac36a50d8512fcc4c3ef Mon Sep 17 00:00:00 2001 2 | From: Luo Chongjun 3 | Date: Thu, 19 Jan 2023 10:02:53 +0800 4 | Subject: [PATCH] mksquashfs4 add root-owned option 5 | 6 | --- 7 | include/image.mk | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/include/image.mk b/include/image.mk 11 | index 6c356d25c9..cae8cf1a87 100644 12 | --- a/include/image.mk 13 | +++ b/include/image.mk 14 | @@ -226,7 +226,7 @@ $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S)) 15 | 16 | define Image/mkfs/squashfs-common 17 | $(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \ 18 | - -nopad -noappend -root-owned \ 19 | + -nopad -no-exports -noappend -root-owned \ 20 | -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \ 21 | -processors 1 22 | endef 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/0400-modules-add-support-lg-vl600.patch: -------------------------------------------------------------------------------- 1 | From 75dc11fc93e46b3c511958c0ba5c5e209dafeb49 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Thu, 20 Oct 2022 12:20:00 +0800 4 | Subject: [PATCH] modules: add support lg-vl600 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/usb.mk | 11 +++++++++++ 9 | 1 file changed, 11 insertions(+) 10 | 11 | diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk 12 | index 93f99f7cbe..a791a5f990 100644 13 | --- a/package/kernel/linux/modules/usb.mk 14 | +++ b/package/kernel/linux/modules/usb.mk 15 | @@ -1470,6 +1470,17 @@ endef 16 | 17 | $(eval $(call KernelPackage,usb-net-pl)) 18 | 19 | +define KernelPackage/usb-net-vl600 20 | + TITLE:=LG VL600 modem dongle 21 | + KCONFIG:=CONFIG_USB_VL600 22 | + FILES:=$(LINUX_DIR)/drivers/net/usb/lg-vl600.ko 23 | + AUTOLOAD:=$(call AutoProbe,lg-vl600) 24 | + DEPENDS:=+kmod-usb-net-cdc-ether 25 | + $(call AddDepends/usb-net) 26 | +endef 27 | + 28 | +$(eval $(call KernelPackage,usb-net-vl600)) 29 | + 30 | define KernelPackage/usb-hid 31 | TITLE:=Support for USB Human Input Devices 32 | KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y 33 | -- 34 | 2.25.1 35 | 36 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/1000-gpio-button-hotplug-add-name-switch.patch: -------------------------------------------------------------------------------- 1 | From b233038896c42288189b22525002350b29630c81 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 22 Jun 2022 18:30:11 +0800 4 | Subject: [PATCH] gpio-button-hotplug: add name 'switch' 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 12 | index fcaf7f59de..d3657a3da9 100644 13 | --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 14 | +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 15 | @@ -100,6 +100,7 @@ static struct bh_map button_map[] = { 16 | BH_MAP(KEY_WIMAX, "wwan"), 17 | BH_MAP(KEY_WLAN, "wlan"), 18 | BH_MAP(KEY_WPS_BUTTON, "wps"), 19 | + BH_MAP(KEY_SETUP, "switch"), 20 | }; 21 | 22 | /* -------------------------------------------------------------------------*/ 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/1003-package-ppp-fix-ipv6.patch: -------------------------------------------------------------------------------- 1 | From 28dd27e933916445f3fbfb438f873eb01b4b9270 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 13 Jul 2022 10:10:52 +0800 4 | Subject: [PATCH] package/ppp: fix ipv6 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/network/services/ppp/files/ppp.sh | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh 12 | index b553effd88..78a712b41a 100755 13 | --- a/package/network/services/ppp/files/ppp.sh 14 | +++ b/package/network/services/ppp/files/ppp.sh 15 | @@ -140,6 +140,7 @@ ppp_generic_setup() { 16 | ${localip:+$localip:} \ 17 | ${lcp_failure:+lcp-echo-interval $lcp_interval lcp-echo-failure $lcp_failure $lcp_adaptive} \ 18 | ${ipv6:++ipv6} \ 19 | + ${ipv6:-noipv6} \ 20 | ${autoipv6:+set AUTOIPV6=1} \ 21 | ${ip6table:+set IP6TABLE=$ip6table} \ 22 | ${peerdns:+set PEERDNS=$peerdns} \ 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/1004-package-dnsmasq-remove-limit-hostname.patch: -------------------------------------------------------------------------------- 1 | From f3a50d2b1d965abdd403c60c01fd5a89d188e37d Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 13 Jul 2022 10:56:49 +0800 4 | Subject: [PATCH] package/dnsmasq: remove limit hostname 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../dnsmasq/patches/300-remove-limit-hostname.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 11 | 12 | diff --git a/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch b/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 13 | new file mode 100644 14 | index 0000000000..cf0086a19f 15 | --- /dev/null 16 | +++ b/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: dnsmasq-2.85/src/rfc2131.c 19 | +=================================================================== 20 | +--- dnsmasq-2.85.orig/src/rfc2131.c 21 | ++++ dnsmasq-2.85/src/rfc2131.c 22 | +@@ -724,7 +724,7 @@ size_t dhcp_reply(struct dhcp_context *c 23 | + borken_opt = 1; 24 | + else 25 | + daemon->dhcp_buff[len] = 0; 26 | +- if (legal_hostname(daemon->dhcp_buff)) 27 | ++ // if (legal_hostname(daemon->dhcp_buff)) 28 | + client_hostname = daemon->dhcp_buff; 29 | + } 30 | + 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/2003-kernel-fix-phylink-resolve-fixed-link.patch: -------------------------------------------------------------------------------- 1 | From 2549668921d0521884b76d3b49fbd04bab9bf65d Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 24 Aug 2022 19:25:30 +0800 4 | Subject: [PATCH] kernel: fix phylink resolve fixed-link 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../hack-5.4/801-fix-phylink-resolve-fixed.patch | 12 ++++++++++++ 9 | 1 file changed, 12 insertions(+) 10 | create mode 100644 target/linux/generic/hack-5.4/801-fix-phylink-resolve-fixed.patch 11 | 12 | diff --git a/target/linux/generic/hack-5.4/801-fix-phylink-resolve-fixed.patch b/target/linux/generic/hack-5.4/801-fix-phylink-resolve-fixed.patch 13 | new file mode 100644 14 | index 0000000000..971fbce35b 15 | --- /dev/null 16 | +++ b/target/linux/generic/hack-5.4/801-fix-phylink-resolve-fixed.patch 17 | @@ -0,0 +1,12 @@ 18 | +Index: linux-5.4.188/drivers/net/phy/phylink.c 19 | +=================================================================== 20 | +--- linux-5.4.188.orig/drivers/net/phy/phylink.c 21 | ++++ linux-5.4.188/drivers/net/phy/phylink.c 22 | +@@ -494,7 +494,6 @@ static void phylink_resolve(struct work_ 23 | + 24 | + case MLO_AN_FIXED: 25 | + phylink_get_fixed_state(pl, &link_state); 26 | +- phylink_mac_config_up(pl, &link_state); 27 | + break; 28 | + 29 | + case MLO_AN_INBAND: 30 | -- 31 | 2.25.1 32 | 33 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/3001-mt7981-adjust-01_leds.patch: -------------------------------------------------------------------------------- 1 | From e50477baeb6edb590fce64cb505988fd5b4b49ef Mon Sep 17 00:00:00 2001 2 | From: Luo Chongjun 3 | Date: Thu, 19 Jan 2023 12:17:10 +0800 4 | Subject: [PATCH 1/2] mt7981 adjust 01_leds 5 | 6 | --- 7 | .../mt7981/base-files/etc/board.d/01_leds | 20 +++++++++++++++++++ 8 | 1 file changed, 20 insertions(+) 9 | create mode 100755 target/linux/mediatek/mt7981/base-files/etc/board.d/01_leds 10 | 11 | diff --git a/target/linux/mediatek/mt7981/base-files/etc/board.d/01_leds b/target/linux/mediatek/mt7981/base-files/etc/board.d/01_leds 12 | new file mode 100755 13 | index 0000000000..e5e5aca029 14 | --- /dev/null 15 | +++ b/target/linux/mediatek/mt7981/base-files/etc/board.d/01_leds 16 | @@ -0,0 +1,20 @@ 17 | + 18 | +. /lib/functions/uci-defaults.sh 19 | + 20 | +board_config_update 21 | + 22 | +board=$(board_name) 23 | + 24 | +case "$board" in 25 | +glinet,xe3000-emmc |\ 26 | +glinet,x3000-emmc) 27 | + ucidef_set_led_netdev "wlan2g" "WLAN2G" "wifi:2g" "ra0" 28 | + ucidef_set_led_netdev "wlan5g" "WLAN5G" "wifi:5g" "rax0" 29 | + ucidef_set_led_default "power" "POWER" "power" "1" 30 | + ;; 31 | +esac 32 | + 33 | +board_config_flush 34 | + 35 | +exit 0 36 | + 37 | -- 38 | 2.25.1 39 | 40 | -------------------------------------------------------------------------------- /patches-mt798x-7.6.6.1/3010-target-mediatek-fix-compare-macaddr-in-hwnat-driver.patch: -------------------------------------------------------------------------------- 1 | From cbfde88afc04efa95e20802919e30260c457d560 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 28 Feb 2023 15:41:08 +0800 4 | Subject: [PATCH] target/mediatek: fix compare macaddr in hwnat driver 5 | 6 | Use ether_addr_equal to compare macaddr instead of strncmp 7 | 8 | Signed-off-by: Jianhui Zhao 9 | --- 10 | .../drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c 14 | index 1041579f16..8b48dbba29 100644 15 | --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c 16 | +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c 17 | @@ -298,7 +298,7 @@ void foe_clear_entry(struct neighbour *neigh) 18 | *((u32 *)h_dest) = swab32(entry->ipv4_hnapt.dmac_hi); 19 | *((u16 *)&h_dest[4]) = 20 | swab16(entry->ipv4_hnapt.dmac_lo); 21 | - if (strncmp(h_dest, neigh->ha, ETH_ALEN) != 0) { 22 | + if (!ether_addr_equal(h_dest, neigh->ha)) { 23 | pr_info("%s: state=%d\n", __func__, 24 | neigh->nud_state); 25 | cr_set_field(hnat_priv->ppe_base[i] + PPE_TB_CFG, 26 | -- 27 | 2.34.1 28 | 29 | -------------------------------------------------------------------------------- /patches-qsdk11/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-qsdk11/README.md -------------------------------------------------------------------------------- /patches-qsdk53/0003-Makefile-auto-generate-img.patch: -------------------------------------------------------------------------------- 1 | From b16581ac045779a196e124c57b3f4a2cc1ac5ea5 Mon Sep 17 00:00:00 2001 2 | From: Lancer 3 | Date: Fri, 9 Apr 2021 17:50:21 +0800 4 | Subject: [PATCH] Makefile: auto generate img 5 | 6 | --- 7 | Makefile | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Makefile b/Makefile 11 | index dd62226..45d550e 100644 12 | --- a/Makefile 13 | +++ b/Makefile 14 | @@ -110,7 +110,7 @@ prereq: $(target/stamp-prereq) tmp/.prereq_packages 15 | fi 16 | 17 | prepare: .config $(tools/stamp-install) $(toolchain/stamp-install) 18 | -world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) FORCE 19 | +world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) si FORCE 20 | $(_SINGLE)$(SUBMAKE) -r package/index 21 | 22 | .PHONY: clean dirclean prereq prepare world package/symlinks package/symlinks-install package/symlinks-clean 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-qsdk53/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-qsdk53/README.md -------------------------------------------------------------------------------- /patches-siflower-18.x/0003-add-gitignore.patch: -------------------------------------------------------------------------------- 1 | From ab388036902fd79788821c8060f99cdd79876daf Mon Sep 17 00:00:00 2001 2 | From: Yejiang Luo 3 | Date: Tue, 1 Jun 2021 11:09:55 +0800 4 | Subject: [PATCH] add gitignore 5 | 6 | --- 7 | openwrt-18.06/.gitignore | 3 +++ 8 | 1 file changed, 3 insertions(+) 9 | create mode 100644 openwrt-18.06/.gitignore 10 | 11 | diff --git a/openwrt-18.06/.gitignore b/openwrt-18.06/.gitignore 12 | new file mode 100644 13 | index 0000000..96c9bc3 14 | --- /dev/null 15 | +++ b/openwrt-18.06/.gitignore 16 | @@ -0,0 +1,3 @@ 17 | +feeds/* 18 | +package/* 19 | +dl/* 20 | -- 21 | 2.7.4 22 | 23 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0102-fix-configure-the-WiFi-configuration-according-to-th.patch: -------------------------------------------------------------------------------- 1 | From 567ecf0289f829e7fa306dfdb958f6b0f5f7e09e Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Thu, 27 May 2021 15:17:18 +0800 4 | Subject: [PATCH] fix: configure the WiFi configuration according to the 5 | features of GLiNet 6 | 7 | Signed-off-by: GL.iNet-Xinfa.Deng 8 | --- 9 | .../package/kernel/sf_smac/config/sfwifi-a28.sh | 4 +-- 10 | 1 files changed, 2 insertions(+), 2 deletions(-) 11 | 12 | diff --git a/openwrt-18.06/package/kernel/sf_smac/config/sfwifi-a28.sh b/openwrt-18.06/package/kernel/sf_smac/config/sfwifi-a28.sh 13 | index 780c586..6474cca 100755 14 | --- a/openwrt-18.06/package/kernel/sf_smac/config/sfwifi-a28.sh 15 | +++ b/openwrt-18.06/package/kernel/sf_smac/config/sfwifi-a28.sh 16 | @@ -56,8 +56,8 @@ insmod_umac(){ 17 | use_80=${use_80-1} 18 | custregd=${custregd-0} 19 | lp_clk_ppm=${lp_clk_ppm-1000} 20 | - addr_maskall=${addr_maskall-0} 21 | - not_send_null=${not_send_null-0} 22 | + addr_maskall=${addr_maskall-1} 23 | + not_send_null=${not_send_null-1} 24 | ps_on=${ps_on-1} 25 | tx_lft=${tx_lft-100} 26 | tdls=${tdls-1} 27 | -- 28 | 2.7.4 29 | 30 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0104-fix-iproute2-depends.patch: -------------------------------------------------------------------------------- 1 | From b00110c3c28b05fa61c24c8928b55a53eb6a7624 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Fri, 18 Jun 2021 17:09:15 +0800 4 | Subject: [PATCH] fix: iproute2 depends 5 | 6 | --- 7 | openwrt-18.06/package/network/utils/iproute2/Makefile | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/openwrt-18.06/package/network/utils/iproute2/Makefile b/openwrt-18.06/package/network/utils/iproute2/Makefile 11 | index c79d751..e9cfdd9 100644 12 | --- a/openwrt-18.06/package/network/utils/iproute2/Makefile 13 | +++ b/openwrt-18.06/package/network/utils/iproute2/Makefile 14 | @@ -47,7 +47,7 @@ $(call Package/iproute2/Default) 15 | VARIANT:=full 16 | PROVIDES:=ip 17 | ALTERNATIVES:=300:/sbin/ip:/sbin/ip-full 18 | - DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl 19 | + DEPENDS:=+libnl-tiny +(PACKAGE_devlink||PACKAGE_rdma):libmnl +libcap 20 | endef 21 | 22 | define Package/tc 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0201-feat-siflower-add-usb-nand-gpio-feature.patch: -------------------------------------------------------------------------------- 1 | From c354e5a0ca8ad862c3c1f3c1b71a13a2d634939f Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Mon, 21 Jun 2021 15:44:41 +0800 4 | Subject: [PATCH] feat: siflower add usb nand gpio feature 5 | 6 | Signed-off-by: GL.iNet-Xinfa.Deng 7 | --- 8 | openwrt-18.06/target/linux/siflower/sf19a28-fullmask/target.mk | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/openwrt-18.06/target/linux/siflower/sf19a28-fullmask/target.mk b/openwrt-18.06/target/linux/siflower/sf19a28-fullmask/target.mk 12 | index af34c96..868da4a 100644 13 | --- a/openwrt-18.06/target/linux/siflower/sf19a28-fullmask/target.mk 14 | +++ b/openwrt-18.06/target/linux/siflower/sf19a28-fullmask/target.mk 15 | @@ -6,6 +6,7 @@ SUBTARGET:=sf19a28-fullmask 16 | BOARDNAME:=sf19a28 full mask based boards 17 | ARCH_PACKAGES:=mips_siflower 18 | CPU_TYPE:=mips-interAptiv 19 | +FEATURES+=usb nand gpio 20 | 21 | define Target/Description 22 | Build firmware images for siflower sf19a28 full mask based boards. 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0301-fix-avoid-radar-channel-when-auto.patch: -------------------------------------------------------------------------------- 1 | From eacb29b49b7b8c35528dd5f47c4c977829c9fa8e Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Wed, 20 Apr 2022 10:37:16 +0800 4 | Subject: [PATCH] fix: avoid radar channel when auto 5 | 6 | --- 7 | .../services/hostapd/patches/772-disable-acs-select-radar-chan.patch | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/openwrt-18.06/package/network/services/hostapd/patches/772-disable-acs-select-radar-chan.patch b/openwrt-18.06/package/network/services/hostapd/patches/772-disable-acs-select-radar-chan.patch 11 | index 9621ce5..342e0db 100644 12 | --- a/openwrt-18.06/package/network/services/hostapd/patches/772-disable-acs-select-radar-chan.patch 13 | +++ b/openwrt-18.06/package/network/services/hostapd/patches/772-disable-acs-select-radar-chan.patch 14 | @@ -8,7 +8,7 @@ Index: hostapd-2019-08-08-ca8c2bd2/src/ap/acs.c 15 | 16 | +static int acs_radar_chan(const struct hostapd_channel_data *chan) 17 | +{ 18 | -+ const int allowed[] = { 52, 56, 60, 64 }; 19 | ++ const int allowed[] = { 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165 }; 20 | + unsigned int i; 21 | + for (i = 0; i < ARRAY_SIZE(allowed); i++) 22 | + if (chan->chan == allowed[i]) 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0305-fix-pppd-automatically-reconnects.patch: -------------------------------------------------------------------------------- 1 | From 46b06cd25022e7329479f60a580bf1ec913fca04 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Sat, 16 Oct 2021 09:35:43 +0800 4 | Subject: [PATCH] fix: pppd automatically reconnects 5 | 6 | --- 7 | openwrt-18.06/package/network/services/ppp/files/ppp.sh | 2 ++ 8 | 1 file changed, 2 insertions(+) 9 | 10 | diff --git a/openwrt-18.06/package/network/services/ppp/files/ppp.sh b/openwrt-18.06/package/network/services/ppp/files/ppp.sh 11 | index 3606fd3..2e18a54 100755 12 | --- a/openwrt-18.06/package/network/services/ppp/files/ppp.sh 13 | +++ b/openwrt-18.06/package/network/services/ppp/files/ppp.sh 14 | @@ -111,6 +111,8 @@ ppp_generic_setup() { 15 | } 16 | } 17 | 18 | + [ -n "$keepalive" ] || keepalive="5 1" 19 | + 20 | local lcp_failure="${keepalive%%[, ]*}" 21 | local lcp_interval="${keepalive##*[, ]}" 22 | local lcp_adaptive="lcp-echo-adaptive" 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0309-fix-sta-enable-ieee80211r-by-default.patch: -------------------------------------------------------------------------------- 1 | From cc7aa08b523c031864cee794a51b27d85e9b274f Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Tue, 19 Apr 2022 11:09:24 +0800 4 | Subject: [PATCH] fix: sta enable ieee80211r by default 5 | 6 | --- 7 | openwrt-18.06/package/network/services/hostapd/files/hostapd.sh | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/openwrt-18.06/package/network/services/hostapd/files/hostapd.sh b/openwrt-18.06/package/network/services/hostapd/files/hostapd.sh 11 | index 67c2d82..ff0c644 100644 12 | --- a/openwrt-18.06/package/network/services/hostapd/files/hostapd.sh 13 | +++ b/openwrt-18.06/package/network/services/hostapd/files/hostapd.sh 14 | @@ -872,7 +872,7 @@ wpa_supplicant_add_network() { 15 | ;; 16 | esac 17 | 18 | - set_default ieee80211r 0 19 | + set_default ieee80211r 1 20 | set_default multi_ap 0 21 | 22 | local key_mgmt='NONE' 23 | -- 24 | 2.7.4 25 | 26 | -------------------------------------------------------------------------------- /patches-siflower-18.x/0900-fix-u-boot-compile-error.patch: -------------------------------------------------------------------------------- 1 | From b4b5009063617ac070f281ee8c09782710be2943 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Tue, 27 Jul 2021 14:59:21 +0800 4 | Subject: [PATCH] fix: u-boot compile error 5 | 6 | Signed-off-by: GL.iNet-Xinfa.Deng 7 | --- 8 | .../tools/mkimage/patches/211-u64_redefine_fix.patch | 11 +++++++++++ 9 | 1 file changed, 11 insertions(+) 10 | create mode 100644 openwrt-18.06/tools/mkimage/patches/211-u64_redefine_fix.patch 11 | 12 | diff --git a/openwrt-18.06/tools/mkimage/patches/211-u64_redefine_fix.patch b/openwrt-18.06/tools/mkimage/patches/211-u64_redefine_fix.patch 13 | new file mode 100644 14 | index 0000000..d2850b6 15 | --- /dev/null 16 | +++ b/openwrt-18.06/tools/mkimage/patches/211-u64_redefine_fix.patch 17 | @@ -0,0 +1,11 @@ 18 | +--- a/include/compiler.h 19 | ++++ b/include/compiler.h 20 | +@@ -66,7 +66,7 @@ typedef uint8_t __u8; 21 | + typedef uint16_t __u16; 22 | + typedef uint32_t __u32; 23 | + typedef unsigned int uint; 24 | +-typedef uint64_t __u64; 25 | ++/* typedef uint64_t __u64; */ 26 | + #ifndef linux 27 | + typedef int __kernel_daddr_t; 28 | + typedef unsigned int __kernel_ino_t; 29 | -- 30 | 2.7.4 31 | 32 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4003-fix-update-mklibs-to-0.1.35.patch: -------------------------------------------------------------------------------- 1 | From 6b382ba2646903650da707cdebc1922b3f947a44 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 8 Nov 2022 18:27:26 +0800 4 | Subject: [PATCH] fix: update mklibs to 0.1.35 5 | 6 | --- 7 | openwrt-18.06/tools/mklibs/Makefile | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/openwrt-18.06/tools/mklibs/Makefile b/openwrt-18.06/tools/mklibs/Makefile 11 | index 507c2fd39..882684052 100644 12 | --- a/openwrt-18.06/tools/mklibs/Makefile 13 | +++ b/openwrt-18.06/tools/mklibs/Makefile 14 | @@ -18,6 +18,7 @@ HOST_FIXUP:=autoreconf 15 | include $(INCLUDE_DIR)/host-build.mk 16 | 17 | HOST_CFLAGS += -I$(CURDIR)/include 18 | +HOST_CPPFLAGS += -std=gnu++98 19 | 20 | define Host/Install 21 | $(INSTALL_BIN) \ 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4005-fix-delete-gl-feeds.patch: -------------------------------------------------------------------------------- 1 | From c09d1f5f672fa6cc32104970f82e33fd0a9bc68b Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 8 Nov 2022 18:36:13 +0800 4 | Subject: [PATCH] fix: delete gl feeds 5 | 6 | --- 7 | openwrt-18.06/feeds.conf.default | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/feeds.conf.default b/openwrt-18.06/feeds.conf.default 11 | index 3bb472ea2..311ab4abb 100644 12 | --- a/openwrt-18.06/feeds.conf.default 13 | +++ b/openwrt-18.06/feeds.conf.default 14 | @@ -1,5 +1,4 @@ 15 | -src-git gl https://github.com/gl-inet/gl-feeds.git;18.06 16 | -src-git packages https://git.openwrt.org/feed/packages.git^35e0b737ab496f5b51e80079b0d8c9b442e223f5 17 | +src-git packages https://git.openwrt.org/feed/packages.git^1236ebb5051bcb4151d62c20fa001a1dc5178dde 18 | src-git luci https://git.openwrt.org/project/luci.git^f64b1523447547032d5280fb0bcdde570f2ca913 19 | src-git routing https://git.openwrt.org/feed/routing.git^1b9d1c419f0ecefda51922a7845ab2183d6acd76 20 | src-git telephony https://git.openwrt.org/feed/telephony.git^b9d7b321d15a44c5abb9e5d43a4ec78abfd9031b 21 | -- 22 | 2.34.1 23 | 24 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4006-fix-video-videobuf2-compile-error.patch: -------------------------------------------------------------------------------- 1 | From 090c589d7f58f795d3365515782c59922ba80ff6 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 8 Nov 2022 19:34:33 +0800 4 | Subject: [PATCH] fix: video-videobuf2 compile error 5 | 6 | --- 7 | openwrt-18.06/package/kernel/linux/modules/video.mk | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/linux/modules/video.mk b/openwrt-18.06/package/kernel/linux/modules/video.mk 11 | index 7e300bf48..80a29d0c7 100644 12 | --- a/openwrt-18.06/package/kernel/linux/modules/video.mk 13 | +++ b/openwrt-18.06/package/kernel/linux/modules/video.mk 14 | @@ -320,7 +320,8 @@ define KernelPackage/video-videobuf2 15 | $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-common.ko@ge4.16 \ 16 | $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-v4l2.ko@ge4.16 \ 17 | $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-memops.ko@ge4.16 \ 18 | - $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-vmalloc.ko@ge4.16 19 | + $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-vmalloc.ko@ge4.16 \ 20 | + $(LINUX_DIR)/drivers/dma-buf/dma-shared-buffer.ko 21 | AUTOLOAD:=$(call AutoLoad,65,videobuf2-core videobuf-v4l2@ge4.4 videobuf2-memops videobuf2-vmalloc) 22 | $(call AddDepends/video) 23 | endef 24 | -- 25 | 2.34.1 26 | 27 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4007-fix-bluetooth-compile-error.patch: -------------------------------------------------------------------------------- 1 | From af6a15cbf4867600c08664871688f1ce6ff8258a Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 8 Nov 2022 19:33:37 +0800 4 | Subject: [PATCH] fix: bluetooth compile error 5 | 6 | --- 7 | openwrt-18.06/package/kernel/linux/modules/other.mk | 7 +------ 8 | 1 file changed, 1 insertion(+), 6 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/linux/modules/other.mk b/openwrt-18.06/package/kernel/linux/modules/other.mk 11 | index c52140504..7c6bf73cd 100644 12 | --- a/openwrt-18.06/package/kernel/linux/modules/other.mk 13 | +++ b/openwrt-18.06/package/kernel/linux/modules/other.mk 14 | @@ -52,12 +52,7 @@ define KernelPackage/bluetooth 15 | $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \ 16 | $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \ 17 | $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \ 18 | - $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \ 19 | - $(LINUX_DIR)/drivers/bluetooth/btusb.ko 20 | -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.1.0)),1) 21 | - FILES+= \ 22 | - $(LINUX_DIR)/drivers/bluetooth/btintel.ko 23 | -endif 24 | + $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko 25 | AUTOLOAD:=$(call AutoProbe,bluetooth rfcomm bnep hidp hci_uart btusb) 26 | endef 27 | 28 | -- 29 | 2.34.1 30 | 31 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4008-fix-radio-for-phy.patch: -------------------------------------------------------------------------------- 1 | From 3dbe2197354ee3bcd75f4ad5c8b2962c76795310 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Tue, 8 Nov 2022 19:35:43 +0800 4 | Subject: [PATCH] fix: radio for phy 5 | 6 | --- 7 | .../package/kernel/mac80211/files/lib/wifi/mac80211.sh | 3 +-- 8 | 1 file changed, 1 insertion(+), 2 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index 1aa2804dc..e3f7a3564 100755 12 | --- a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -67,8 +67,7 @@ detect_mac80211() { 15 | devidx=$(($devidx + 1)) 16 | done 17 | 18 | - for _dev in `ls /sys/class/ieee80211/ -r`; do 19 | - _dev="/sys/class/ieee80211/$_dev" 20 | + for _dev in /sys/class/ieee80211/*; do 21 | [ -e "$_dev" ] || continue 22 | 23 | dev="${_dev##*/}" 24 | -- 25 | 2.34.1 26 | 27 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4010-fix-change-feeds.conf-sorting.patch: -------------------------------------------------------------------------------- 1 | From a92b114df90f4608df8e0f2a5b8d2a10e872deee Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Wed, 9 Nov 2022 10:38:28 +0800 4 | Subject: [PATCH] fix: change feeds.conf sorting 5 | 6 | --- 7 | openwrt-18.06/scripts/feeds | 8 ++++---- 8 | 1 file changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/scripts/feeds b/openwrt-18.06/scripts/feeds 11 | index 46c5f5cb9..de7595751 100755 12 | --- a/openwrt-18.06/scripts/feeds 13 | +++ b/openwrt-18.06/scripts/feeds 14 | @@ -894,10 +894,6 @@ sub setup { 15 | 16 | open(my $fd, ">>feeds.conf"); 17 | 18 | - if ($opts{b}) { 19 | - printf $fd "src-include defaults feeds.conf.default\n"; 20 | - } 21 | - 22 | while (my $entry = shift @ARGV) { 23 | my ($type, $name, $src) = split /,/, $entry; 24 | 25 | @@ -915,6 +911,10 @@ sub setup { 26 | printf $fd "%s %s %s\n", $type, $name, $src; 27 | } 28 | 29 | + if ($opts{b}) { 30 | + printf $fd "src-include defaults feeds.conf.default\n"; 31 | + } 32 | + 33 | return 0; 34 | } 35 | 36 | -- 37 | 2.34.1 38 | 39 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4011-ix-add-ieee80211-init-script.patch: -------------------------------------------------------------------------------- 1 | From 629375434d0c1f41db5f62155667a23503ccdea5 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Wed, 9 Nov 2022 12:08:07 +0800 4 | Subject: [PATCH] fix: add ieee80211 init script 5 | 6 | --- 7 | .../package/base-files/files/etc/init.d/ieee80211 | 11 +++++++++++ 8 | 1 file changed, 11 insertions(+) 9 | create mode 100755 openwrt-18.06/package/base-files/files/etc/init.d/ieee80211 10 | 11 | diff --git a/openwrt-18.06/package/base-files/files/etc/init.d/ieee80211 b/openwrt-18.06/package/base-files/files/etc/init.d/ieee80211 12 | new file mode 100755 13 | index 000000000..dfb0999fe 14 | --- /dev/null 15 | +++ b/openwrt-18.06/package/base-files/files/etc/init.d/ieee80211 16 | @@ -0,0 +1,11 @@ 17 | +#!/bin/sh /etc/rc.common 18 | +# Copyright (C) 2008 OpenWrt.org 19 | + 20 | +START=50 21 | + 22 | +start() { 23 | + for phy in `ls /sys/class/ieee80211` 24 | + do 25 | + env -i ACTION="add" DEVICENAME="$phy" sh /etc/hotplug.d/ieee80211/99-gl-detect 26 | + done 27 | +} 28 | -- 29 | 2.34.1 30 | 31 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4013-fix-change-band-name.patch: -------------------------------------------------------------------------------- 1 | From 6caab26bf40c3a909d5a6cbd7f71ea64d5131636 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Thu, 10 Nov 2022 15:09:06 +0800 4 | Subject: [PATCH] fix: change band name 5 | 6 | --- 7 | .../package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index e3f7a3564..4927d576a 100755 12 | --- a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -82,7 +82,7 @@ detect_mac80211() { 15 | ht_capab="" 16 | ssidprefix="" 17 | noscan="0" 18 | - band="2.4G" 19 | + band="2g" 20 | htcodex="0" 21 | txpower="20" 22 | 23 | @@ -93,7 +93,7 @@ detect_mac80211() { 24 | mode_band="a" 25 | channel="161" 26 | ssidprefix="-5G" 27 | - band="5G" 28 | + band="5g" 29 | txpower="25" 30 | iw phy "$dev" info | grep -q 'VHT Capabilities' && htmode="VHT80" 31 | } 32 | -- 33 | 2.34.1 34 | 35 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4016-fix-support-mtd-oops-nand-write.patch: -------------------------------------------------------------------------------- 1 | From ad7fb0421e358a99518afb9f2f00cc786f43cef5 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 14 Nov 2022 12:21:12 +0800 4 | Subject: [PATCH] fix: support mtd oops nand write 5 | 6 | --- 7 | .../linux-4.14.90/drivers/mtd/nand/spi/spi_nand_core.c | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/linux-4.14.90-dev/linux-4.14.90/drivers/mtd/nand/spi/spi_nand_core.c b/linux-4.14.90-dev/linux-4.14.90/drivers/mtd/nand/spi/spi_nand_core.c 11 | index 338c75b7d..1b6c4c4ea 100644 12 | --- a/linux-4.14.90-dev/linux-4.14.90/drivers/mtd/nand/spi/spi_nand_core.c 13 | +++ b/linux-4.14.90-dev/linux-4.14.90/drivers/mtd/nand/spi/spi_nand_core.c 14 | @@ -1079,6 +1079,7 @@ static int spinand_init(struct spinand_device *spinand) 15 | mtd->_read = spinand_mtd_compat_read; 16 | mtd->_write_oob = spinand_mtd_write; 17 | mtd->_write = spinand_mtd_compat_write; 18 | + mtd->_panic_write = spinand_mtd_compat_write; 19 | mtd->_block_isbad = spinand_mtd_block_isbad; 20 | mtd->_block_markbad = spinand_mtd_block_markbad; 21 | mtd->_block_isreserved = spinand_mtd_block_isreserved; 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4017-fix-switch-button-execute-etc-rc.button-switch.patch: -------------------------------------------------------------------------------- 1 | From 09c603fb217deada0bf50b1e08d3bc88860645c1 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 14 Nov 2022 19:48:28 +0800 4 | Subject: [PATCH] fix: switch button execute etc rc.button switch 5 | 6 | --- 7 | openwrt-18.06/package/kernel/button-hotplug/src/button-hotplug.c | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/button-hotplug/src/button-hotplug.c b/openwrt-18.06/package/kernel/button-hotplug/src/button-hotplug.c 11 | index 5294a9700..e038702cc 100644 12 | --- a/openwrt-18.06/package/kernel/button-hotplug/src/button-hotplug.c 13 | +++ b/openwrt-18.06/package/kernel/button-hotplug/src/button-hotplug.c 14 | @@ -88,6 +88,7 @@ static struct bh_map button_map[] = { 15 | BH_MAP(KEY_RFKILL, "rfkill"), 16 | BH_MAP(KEY_WPS_BUTTON, "wps"), 17 | BH_MAP(KEY_WIMAX, "wwan"), 18 | + BH_MAP(KEY_SETUP, "switch"), 19 | }; 20 | 21 | /* -------------------------------------------------------------------------*/ 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4018-fix-5g-band-set-acs_noradar-as-1.patch: -------------------------------------------------------------------------------- 1 | From 20098384f2ae0d01b9b78004270198e0834a99eb Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 14 Nov 2022 15:46:27 +0800 4 | Subject: [PATCH] fix: 5g band set acs_noradar as 1 5 | 6 | --- 7 | openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 11 | index 4927d576a..8dc299755 100755 12 | --- a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 13 | +++ b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh 14 | @@ -164,6 +164,7 @@ detect_mac80211() { 15 | set wireless.default_radio${devidx}.wps_label=0 16 | 17 | EOF 18 | + [ "$band" == "5g" ] && uci -q set wireless.radio${devidx}.acs_noradar="1" 19 | uci -q commit wireless 20 | 21 | devidx=$(($devidx + 1)) 22 | -- 23 | 2.34.1 24 | 25 | -------------------------------------------------------------------------------- /patches-siflower-18.x/4019-fix-feeds-use-github.com.patch: -------------------------------------------------------------------------------- 1 | From deb76130ee942f22ef5b32b193be8f645c1c6e69 Mon Sep 17 00:00:00 2001 2 | From: gl-dengxinfa 3 | Date: Mon, 21 Nov 2022 16:33:27 +0800 4 | Subject: [PATCH] fix: feeds use github.com 5 | 6 | --- 7 | openwrt-18.06/feeds.conf.default | 8 ++++---- 8 | 1 file changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/openwrt-18.06/feeds.conf.default b/openwrt-18.06/feeds.conf.default 11 | index 311ab4abb..204798765 100644 12 | --- a/openwrt-18.06/feeds.conf.default 13 | +++ b/openwrt-18.06/feeds.conf.default 14 | @@ -1,4 +1,4 @@ 15 | -src-git packages https://git.openwrt.org/feed/packages.git^1236ebb5051bcb4151d62c20fa001a1dc5178dde 16 | -src-git luci https://git.openwrt.org/project/luci.git^f64b1523447547032d5280fb0bcdde570f2ca913 17 | -src-git routing https://git.openwrt.org/feed/routing.git^1b9d1c419f0ecefda51922a7845ab2183d6acd76 18 | -src-git telephony https://git.openwrt.org/feed/telephony.git^b9d7b321d15a44c5abb9e5d43a4ec78abfd9031b 19 | +src-git packages https://github.com/openwrt/packages.git^1236ebb5051bcb4151d62c20fa001a1dc5178dde 20 | +src-git luci https://github.com/openwrt/luci.git^f64b1523447547032d5280fb0bcdde570f2ca913 21 | +src-git routing https://github.com/openwrt/routing.git^1b9d1c419f0ecefda51922a7845ab2183d6acd76 22 | +src-git telephony https://github.com/openwrt/telephony.git^b9d7b321d15a44c5abb9e5d43a4ec78abfd9031b 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /patches-trunk/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/patches-trunk/README.md -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0002-wifi-ax-fix-gen-macaddr.patch: -------------------------------------------------------------------------------- 1 | From 75535f2faf877838e412c4439311cf9971a16c98 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 23 May 2022 15:50:48 +0800 4 | Subject: [PATCH] wifi-ax: fix gen macaddr 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | feeds/wifi-ax/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/feeds/wifi-ax/mac80211/files/lib/netifd/wireless/mac80211.sh b/feeds/wifi-ax/mac80211/files/lib/netifd/wireless/mac80211.sh 12 | index 87abe4ea..7632d4d5 100644 13 | --- a/feeds/wifi-ax/mac80211/files/lib/netifd/wireless/mac80211.sh 14 | +++ b/feeds/wifi-ax/mac80211/files/lib/netifd/wireless/mac80211.sh 15 | @@ -558,7 +558,7 @@ mac80211_generate_mac() { 16 | macidx=$(($id + 1)) 17 | 18 | local use_global=0 19 | - [ "$id" -gt 0 -a "$macidx" -le "$num_global_macaddr" ] && use_global=1 20 | + [ "$id" -gt 0 -a "$id" -lt "$num_global_macaddr" ] && use_global=1 21 | 22 | [ "$((0x$mask1))" -gt 0 -a "$use_global" -lt 1 ] && { 23 | b1="0x$1" 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0005-ipq807x-change-the-suffix-of-nand-factory.bin-to-img.patch: -------------------------------------------------------------------------------- 1 | From dc760635ca3a6d37c3b2ca0f1d7f27fe86f9750b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 23 May 2022 18:11:22 +0800 4 | Subject: [PATCH] ipq807x: change the suffix of nand-factory.bin 5 | 6 | changed to nand-factory.img 7 | 8 | Signed-off-by: Jianhui Zhao 9 | --- 10 | feeds/ipq807x/ipq807x/image/Makefile | 4 ++-- 11 | 1 file changed, 2 insertions(+), 2 deletions(-) 12 | 13 | diff --git a/feeds/ipq807x/ipq807x/image/Makefile b/feeds/ipq807x/ipq807x/image/Makefile 14 | index 3a219e6d..49c6cc5a 100644 15 | --- a/feeds/ipq807x/ipq807x/image/Makefile 16 | +++ b/feeds/ipq807x/ipq807x/image/Makefile 17 | @@ -13,9 +13,9 @@ define Device/Default 18 | ROOTFSNAME_IN_UBI := ubi_rootfs 19 | BLOCKSIZE := 128k 20 | PAGESIZE := 2048 21 | - IMAGES := sysupgrade.tar nand-factory.bin 22 | + IMAGES := sysupgrade.tar nand-factory.img 23 | IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata 24 | - IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand 25 | + IMAGE/nand-factory.img := append-ubi | qsdk-ipq-factory-nand 26 | KERNEL_NAME := Image 27 | KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb 28 | KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0006-wifi-ax-add-kmod-hwmon-core-dependent-for-ath11k.patch: -------------------------------------------------------------------------------- 1 | From e0e1d9be02a977a6dfbdc63236051dc99e2fcd61 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 24 May 2022 11:09:43 +0800 4 | Subject: [PATCH] wifi-ax: add kmod-hwmon-core dependent for ath11k 5 | 6 | If kmod-hwmon-core was selected, the kmod-ath11k depend kmod-hwmon-core. 7 | 8 | Signed-off-by: Jianhui Zhao 9 | --- 10 | feeds/wifi-ax/mac80211/ath.mk | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/feeds/wifi-ax/mac80211/ath.mk b/feeds/wifi-ax/mac80211/ath.mk 14 | index 9b2b8270..13ce880e 100644 15 | --- a/feeds/wifi-ax/mac80211/ath.mk 16 | +++ b/feeds/wifi-ax/mac80211/ath.mk 17 | @@ -284,7 +284,7 @@ define KernelPackage/ath11k 18 | TITLE:=Atheros 802.11ax wireless cards support 19 | URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k 20 | DEPENDS+= @TARGET_ipq807x +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT \ 21 | - +@DRIVER_11AX_SUPPORT +kmod-qca-nss-drv 22 | + +@DRIVER_11AX_SUPPORT +kmod-qca-nss-drv +kmod-hwmon-core 23 | FILES:= \ 24 | $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko 25 | endef 26 | -- 27 | 2.25.1 28 | 29 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0007-ipq807x-fix-gl-ax1800-switch-button-high-active-leve.patch: -------------------------------------------------------------------------------- 1 | From 1106a7e2eb083eccc65da1102652cdc733d5379b Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 24 May 2022 11:28:29 +0800 4 | Subject: [PATCH] ipq807x: fix gl-ax1800 switch button high active level 5 | 6 | The active status of the switch button in the DTS configuration 7 | is the opposite of that marked on the product housing. 8 | 9 | The switch button should be activated at high GPIO level. 10 | 11 | Signed-off-by: Jianhui Zhao 12 | --- 13 | .../files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dtsi | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dtsi b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dtsi 17 | index f8d44187..3ec66b9b 100644 18 | --- a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dtsi 19 | +++ b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dtsi 20 | @@ -276,7 +276,7 @@ 21 | switch { 22 | label = "switch"; 23 | linux,code = ; 24 | - gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; 25 | + gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>; 26 | linux,input-type = <1>; 27 | debounce-interval = <60>; 28 | }; 29 | -- 30 | 2.25.1 31 | 32 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0008-ipq807x-use-append-metadata-gl.patch: -------------------------------------------------------------------------------- 1 | From dc09e9c1c940b6b9d567072d427894b8ec47639e Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 24 May 2022 15:28:13 +0800 4 | Subject: [PATCH] ipq807x: use append-metadata-gl for gl-ax1800/gl-axt1800 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | feeds/ipq807x/ipq807x/image/ipq60xx.mk | 2 ++ 9 | 1 file changed, 2 insertions(+) 10 | 11 | diff --git a/feeds/ipq807x/ipq807x/image/ipq60xx.mk b/feeds/ipq807x/ipq807x/image/ipq60xx.mk 12 | index 9b31098b..f9ebf382 100644 13 | --- a/feeds/ipq807x/ipq807x/image/ipq60xx.mk 14 | +++ b/feeds/ipq807x/ipq807x/image/ipq60xx.mk 15 | @@ -60,6 +60,7 @@ define Device/glinet_ax1800 16 | SUPPORTED_DEVICES := glinet,ax1800 17 | DEVICE_DTS_CONFIG := config@cp03-c1 18 | DEVICE_PACKAGES := ath11k-wifi-gl-ax1800 -kmod-usb-dwc3-of-simple kmod-usb-dwc3-qcom kmod-usb3 19 | + IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata-gl 20 | endef 21 | TARGET_DEVICES += glinet_ax1800 22 | 23 | @@ -69,6 +70,7 @@ define Device/glinet_axt1800 24 | SUPPORTED_DEVICES := glinet,axt1800 25 | DEVICE_DTS_CONFIG := config@cp03-c1 26 | DEVICE_PACKAGES := ath11k-wifi-gl-ax1800 -kmod-usb-dwc3-of-simple kmod-usb-dwc3-qcom kmod-usb3 27 | + IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata-gl 28 | endef 29 | TARGET_DEVICES += glinet_axt1800 30 | 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/0012-gl-axt1800-fix-gl-fan-dts.patch: -------------------------------------------------------------------------------- 1 | From 91e02eb9d2b509a1f8ffc272544e840954a0e848 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Thu, 28 Jul 2022 11:10:54 +0800 4 | Subject: [PATCH] gl-axt1800: fix gl-fan dts 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-axt1800.dts | 5 ++--- 9 | 1 file changed, 2 insertions(+), 3 deletions(-) 10 | 11 | diff --git a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-axt1800.dts b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-axt1800.dts 12 | index 483a6559..8bedb393 100644 13 | --- a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-axt1800.dts 14 | +++ b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-axt1800.dts 15 | @@ -27,9 +27,8 @@ 16 | 17 | gl_fan { 18 | compatible = "gl-fan"; 19 | - #address-cells = <1>; 20 | - #size-cells = <0>; 21 | - fan_speed_gpio = <31>; 22 | + interrupt-parent = <&tlmm>; 23 | + interrupts = <31 IRQ_TYPE_EDGE_RISING>; 24 | }; 25 | }; 26 | 27 | -- 28 | 2.25.1 29 | 30 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0002-Revert-base-files-ignore-sysupgrade-that-was-not-our.patch: -------------------------------------------------------------------------------- 1 | From 173140db64fdc371962d0802b359b462d54e37e9 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 24 May 2022 11:36:43 +0800 4 | Subject: [PATCH 2/3] Revert "base-files: ignore sysupgrade that was not ours" 5 | 6 | This reverts commit a222d4943e328cd6c8929bee4bb0712c66e2ee42. 7 | --- 8 | package/base-files/files/lib/preinit/80_mount_root | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root 12 | index 7cf16e68e0..3f75411a43 100644 13 | --- a/package/base-files/files/lib/preinit/80_mount_root 14 | +++ b/package/base-files/files/lib/preinit/80_mount_root 15 | @@ -17,8 +17,7 @@ missing_lines() { 16 | do_mount_root() { 17 | mount_root 18 | boot_run_hook preinit_mount_root 19 | - (tar tf /sysupgrade.tgz | grep ucentral) 2> /dev/null 20 | - [ $? -eq 0 ] && { 21 | + [ -f /sysupgrade.tgz ] && { 22 | echo "- config restore -" 23 | cp /etc/passwd /etc/group /etc/shadow /tmp 24 | cd / 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0004-gpio-button-hotplug-notify-with-label.patch: -------------------------------------------------------------------------------- 1 | From 41003199b7a78b54ffb441fb04f2fba00a136232 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 23 May 2022 17:57:53 +0800 4 | Subject: [PATCH] gpio-button-hotplug: notify with label 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 12 | index 9575c6245b..db50ddf198 100644 13 | --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 14 | +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 15 | @@ -286,7 +286,7 @@ static void gpio_keys_handle_button(struct gpio_keys_button_data *bdata) 16 | if (bdata->seen == 0) 17 | bdata->seen = seen; 18 | 19 | - button_hotplug_create_event(button_map[bdata->map_entry].name, type, 20 | + button_hotplug_create_event(bdata->b->desc ? bdata->b->desc : button_map[bdata->map_entry].name, type, 21 | (seen - bdata->seen) / HZ, state); 22 | bdata->seen = seen; 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0005-ipq-factory-image-uboot-web-compatibility.patch: -------------------------------------------------------------------------------- 1 | From 15429c752e2e68cc633936a2f08dc8881fcae991 Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Wed, 9 Feb 2022 20:50:24 +0800 4 | Subject: [PATCH] ipq: factory image uboot web compatibility 5 | 6 | Signed-off-by: Dongming Han 7 | --- 8 | scripts/mkits-qsdk-ipq-image.sh | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/scripts/mkits-qsdk-ipq-image.sh b/scripts/mkits-qsdk-ipq-image.sh 12 | index 87890cc43c..959200d0ae 100755 13 | --- a/scripts/mkits-qsdk-ipq-image.sh 14 | +++ b/scripts/mkits-qsdk-ipq-image.sh 15 | @@ -30,7 +30,7 @@ echo "\ 16 | /dts-v1/; 17 | 18 | / { 19 | - description = \"OpenWrt factory image\"; 20 | + description = \"Flashing factory image\"; 21 | #address-cells = <1>; 22 | 23 | images {" > ${OUTPUT} 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0006-fix-bridge-isolate.patch: -------------------------------------------------------------------------------- 1 | From 16e53377e20c9d0c7110d872e7dd30c8b24854d9 Mon Sep 17 00:00:00 2001 2 | From: gl-luochongjun 3 | Date: Mon, 14 Feb 2022 17:40:17 +0800 4 | Subject: [PATCH] fix bridge isolate 5 | 6 | --- 7 | .../files/etc/uci-defaults/14_fix_bridge_isolate | 14 ++++++++++++++ 8 | 1 file changed, 14 insertions(+) 9 | create mode 100644 package/base-files/files/etc/uci-defaults/14_fix_bridge_isolate 10 | 11 | diff --git a/package/base-files/files/etc/uci-defaults/14_fix_bridge_isolate b/package/base-files/files/etc/uci-defaults/14_fix_bridge_isolate 12 | new file mode 100644 13 | index 0000000000..46c8e678a0 14 | --- /dev/null 15 | +++ b/package/base-files/files/etc/uci-defaults/14_fix_bridge_isolate 16 | @@ -0,0 +1,14 @@ 17 | +#!/bin/sh 18 | + 19 | +. /lib/functions.sh 20 | +board=$(board_name) 21 | + 22 | +case "$board" in 23 | + glinet,axt1800|\ 24 | + glinet,ax1800) 25 | + uci set network.@device[0].multicast_to_unicast='0' 26 | + uci commit network 27 | + ;; 28 | +esac 29 | + 30 | + 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0007-kernel-fix-build-fail-for-bridge.patch: -------------------------------------------------------------------------------- 1 | From ca34635e983199ede4772771669e3347a8a65187 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 24 May 2022 12:17:49 +0800 4 | Subject: [PATCH] kernel: fix build fail for bridge 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/netfilter.mk | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk 12 | index e2bb1d0681..afd421e4c9 100644 13 | --- a/package/kernel/linux/modules/netfilter.mk 14 | +++ b/package/kernel/linux/modules/netfilter.mk 15 | @@ -859,7 +859,7 @@ define KernelPackage/br-netfilter 16 | TITLE:=Bridge netfilter support modules 17 | DEPENDS:=+kmod-ipt-core 18 | FILES:=$(LINUX_DIR)/net/bridge/br_netfilter.ko 19 | - KCONFIG:=CONFIG_BRIDGE_NETFILTER 20 | + KCONFIG:=CONFIG_BRIDGE_NETFILTER=y 21 | AUTOLOAD:=$(call AutoProbe,br_netfilter) 22 | endef 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap-5.4/openwrt/0012-fixed-openwrt-feeds-hash.patch: -------------------------------------------------------------------------------- 1 | From 8de5e839218a47b646fa69d36f2fc5c5997bfa6b Mon Sep 17 00:00:00 2001 2 | From: gl-luochongjun 3 | Date: Mon, 18 Jul 2022 10:49:37 +0800 4 | Subject: [PATCH] fixed openwrt feeds hash 5 | 6 | --- 7 | feeds.conf.default | 6 +++--- 8 | 1 file changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/feeds.conf.default b/feeds.conf.default 11 | index 3d24cb7c27..7ca310050b 100644 12 | --- a/feeds.conf.default 13 | +++ b/feeds.conf.default 14 | @@ -1,4 +1,4 @@ 15 | -src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02 16 | -src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02 17 | -src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-21.02 18 | +src-git packages https://git.openwrt.org/feed/packages.git^78bcd00c13587571b5c79ed2fc3363aa674aaef7 19 | +src-git routing https://git.openwrt.org/feed/routing.git^a0d61bddb3ce4ca54bd76af86c28f58feb6cc044 20 | +src-git telephony https://git.openwrt.org/feed/telephony.git^0183c1adda0e7581698b0ea4bff7c08379acf447 21 | #src-link custom /usr/src/openwrt/custom-feed 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /patches-wlan-ap/0003-ipq807x-change-name-nand-factory-img.patch: -------------------------------------------------------------------------------- 1 | From e041d883da5fdfc2bbea2056867dd94b20cfe928 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 11:58:12 +0800 4 | Subject: [PATCH] ipq807x: change name nand-factory.img 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | feeds/ipq807x/ipq807x/image/Makefile | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/feeds/ipq807x/ipq807x/image/Makefile b/feeds/ipq807x/ipq807x/image/Makefile 12 | index 3a219e6d..49c6cc5a 100644 13 | --- a/feeds/ipq807x/ipq807x/image/Makefile 14 | +++ b/feeds/ipq807x/ipq807x/image/Makefile 15 | @@ -13,9 +13,9 @@ define Device/Default 16 | ROOTFSNAME_IN_UBI := ubi_rootfs 17 | BLOCKSIZE := 128k 18 | PAGESIZE := 2048 19 | - IMAGES := sysupgrade.tar nand-factory.bin 20 | + IMAGES := sysupgrade.tar nand-factory.img 21 | IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata 22 | - IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand 23 | + IMAGE/nand-factory.img := append-ubi | qsdk-ipq-factory-nand 24 | KERNEL_NAME := Image 25 | KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb 26 | KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb 27 | -- 28 | 2.25.1 29 | 30 | -------------------------------------------------------------------------------- /patches-wlan-ap/0004-ipq807x-fix-bridge-isolate.patch: -------------------------------------------------------------------------------- 1 | From 51c6862c8764ba91d42578a3056a9753414a0ac2 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 12:05:33 +0800 4 | Subject: [PATCH] ipq807x: fix bridge isolate 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../etc/uci-defaults/14_fix_bridge_isolate | 14 ++++++++++++++ 9 | 1 file changed, 14 insertions(+) 10 | create mode 100644 feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_bridge_isolate 11 | 12 | diff --git a/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_bridge_isolate b/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_bridge_isolate 13 | new file mode 100644 14 | index 00000000..46c8e678 15 | --- /dev/null 16 | +++ b/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_bridge_isolate 17 | @@ -0,0 +1,14 @@ 18 | +#!/bin/sh 19 | + 20 | +. /lib/functions.sh 21 | +board=$(board_name) 22 | + 23 | +case "$board" in 24 | + glinet,axt1800|\ 25 | + glinet,ax1800) 26 | + uci set network.@device[0].multicast_to_unicast='0' 27 | + uci commit network 28 | + ;; 29 | +esac 30 | + 31 | + 32 | -- 33 | 2.25.1 34 | 35 | -------------------------------------------------------------------------------- /patches-wlan-ap/0007-fix-missing-kernel-symbol.patch: -------------------------------------------------------------------------------- 1 | From ef9b7f1af3c56025407739347cb8419af37010b6 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 15:51:01 +0800 4 | Subject: [PATCH] ipq807x: fix missing kernel symbol 5 | 6 | CONFIG_IP6_NF_TARGET_MASQUERADE 7 | 8 | Signed-off-by: Jianhui Zhao 9 | --- 10 | feeds/ipq807x/ipq807x/config-4.4 | 1 + 11 | 1 file changed, 1 insertion(+) 12 | 13 | diff --git a/feeds/ipq807x/ipq807x/config-4.4 b/feeds/ipq807x/ipq807x/config-4.4 14 | index af9953ae..2f8d74a7 100644 15 | --- a/feeds/ipq807x/ipq807x/config-4.4 16 | +++ b/feeds/ipq807x/ipq807x/config-4.4 17 | @@ -827,3 +827,4 @@ CONFIG_DIAG_CHAR=y 18 | # CONFIG_CRYPTO_DEV_QCEDEV is not set 19 | # CONFIG_CRYPTO_DEV_QCRYPTO is not set 20 | # CONFIG_MHI_BUS_TEST is not set 21 | +# CONFIG_IP6_NF_TARGET_MASQUERADE is not set 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /patches-wlan-ap/0010-ipq807x-show-symbol-udp-tunnel-for-wireguard.patch: -------------------------------------------------------------------------------- 1 | From 474233728e7d9b863424bc62a263fbf0e24895d0 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 12 Jul 2022 11:49:05 +0800 4 | Subject: [PATCH] ipq807x: show symbol udp-tunnel for wireguard 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../patches/113-show-symbol-udp-tunnel.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 feeds/ipq807x/ipq807x/patches/113-show-symbol-udp-tunnel.patch 11 | 12 | diff --git a/feeds/ipq807x/ipq807x/patches/113-show-symbol-udp-tunnel.patch b/feeds/ipq807x/ipq807x/patches/113-show-symbol-udp-tunnel.patch 13 | new file mode 100644 14 | index 00000000..b8e93e7d 15 | --- /dev/null 16 | +++ b/feeds/ipq807x/ipq807x/patches/113-show-symbol-udp-tunnel.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/net/ipv4/Kconfig 19 | +=================================================================== 20 | +--- linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016.orig/net/ipv4/Kconfig 21 | ++++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/net/ipv4/Kconfig 22 | +@@ -308,7 +308,7 @@ config NET_IPVTI 23 | + on top. 24 | + 25 | + config NET_UDP_TUNNEL 26 | +- tristate 27 | ++ tristate "udp tunnel" 28 | + select NET_IP_TUNNEL 29 | + default n 30 | + 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap/0023-ax1800-kernel-config-sync-with-axt1800.patch: -------------------------------------------------------------------------------- 1 | From 3aeebef3953f02243419009204d08ae546e1d69c Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Fri, 9 Sep 2022 15:06:26 +0800 4 | Subject: [PATCH] ax1800 kernel config sync with axt1800 5 | 6 | --- 7 | feeds/ipq807x/ipq807x/config-4.4 | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/feeds/ipq807x/ipq807x/config-4.4 b/feeds/ipq807x/ipq807x/config-4.4 11 | index 2f8d74a7..c64eca49 100644 12 | --- a/feeds/ipq807x/ipq807x/config-4.4 13 | +++ b/feeds/ipq807x/ipq807x/config-4.4 14 | @@ -828,3 +828,4 @@ CONFIG_DIAG_CHAR=y 15 | # CONFIG_CRYPTO_DEV_QCRYPTO is not set 16 | # CONFIG_MHI_BUS_TEST is not set 17 | # CONFIG_IP6_NF_TARGET_MASQUERADE is not set 18 | +CONFIG_SENSORS_PWM_FAN=m 19 | -- 20 | 2.25.1 21 | 22 | -------------------------------------------------------------------------------- /patches-wlan-ap/0027-fix-ax1800-ble-not-disabled-when-4.1.0-release-2-kee.patch: -------------------------------------------------------------------------------- 1 | From cfd044f39ffa8d82e9e08cc477063c3c07e146c3 Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Tue, 15 Nov 2022 15:17:20 +0800 4 | Subject: [PATCH] fix ax1800 ble not disabled when 4.1.0 release 2 keepsetting 5 | 6 | --- 7 | .../etc/uci-defaults/14_fix_ble_keepsetting | 14 ++++++++++++++ 8 | 1 file changed, 14 insertions(+) 9 | create mode 100755 feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_ble_keepsetting 10 | 11 | diff --git a/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_ble_keepsetting b/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_ble_keepsetting 12 | new file mode 100755 13 | index 00000000..c9b221b2 14 | --- /dev/null 15 | +++ b/feeds/ipq807x/ipq807x/base-files/etc/uci-defaults/14_fix_ble_keepsetting 16 | @@ -0,0 +1,14 @@ 17 | +#!/bin/sh 18 | + 19 | +. /lib/functions.sh 20 | +board=$(board_name) 21 | + 22 | +if [ "$board" = "glinet,ax1800" ]; then 23 | + pwd=`cat /etc/shadow | grep 'root:$1$*'` 24 | + if [ -n "$pwd" ];then 25 | + if [ -f /usr/sbin/ble_config_wifi ]; then 26 | + uci set glconfig.general.blueconfig='1' 27 | + uci commit glconfig 28 | + fi 29 | + fi 30 | +fi 31 | \ No newline at end of file 32 | -- 33 | 2.25.1 34 | 35 | -------------------------------------------------------------------------------- /patches-wlan-ap/0029-mac80211-enable-scan-with-ap.patch: -------------------------------------------------------------------------------- 1 | From 802e04b7a71e090d590ea848a58e296ff2d7f88a Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Thu, 15 Dec 2022 09:16:55 +0800 4 | Subject: [PATCH] mac80211: enable scan with ap 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../patches/pending/301-enable-scan-with-ap.patch | 12 ++++++++++++ 9 | 1 file changed, 12 insertions(+) 10 | create mode 100644 feeds/wifi-ax/mac80211/patches/pending/301-enable-scan-with-ap.patch 11 | 12 | diff --git a/feeds/wifi-ax/mac80211/patches/pending/301-enable-scan-with-ap.patch b/feeds/wifi-ax/mac80211/patches/pending/301-enable-scan-with-ap.patch 13 | new file mode 100644 14 | index 00000000..fac25699 15 | --- /dev/null 16 | +++ b/feeds/wifi-ax/mac80211/patches/pending/301-enable-scan-with-ap.patch 17 | @@ -0,0 +1,12 @@ 18 | +Index: backports-20210222_001-4.4.60-b157d2276/net/mac80211/cfg.c 19 | +=================================================================== 20 | +--- backports-20210222_001-4.4.60-b157d2276.orig/net/mac80211/cfg.c 21 | ++++ backports-20210222_001-4.4.60-b157d2276/net/mac80211/cfg.c 22 | +@@ -2629,6 +2629,7 @@ static int ieee80211_scan(struct wiphy * 23 | + */ 24 | + fallthrough; 25 | + case NL80211_IFTYPE_AP: 26 | ++ break; 27 | + /* 28 | + * If the scan has been forced (and the driver supports 29 | + * forcing), don't care about being beaconing already. 30 | -- 31 | 2.34.1 32 | 33 | -------------------------------------------------------------------------------- /patches-wlan-ap/0032-ipq807x-fix-qca-nss-clients-feed.patch: -------------------------------------------------------------------------------- 1 | From ebd7c79e65ee403149a11870a91a9bf9fc20dd03 Mon Sep 17 00:00:00 2001 2 | From: Arif Alam 3 | Date: Fri, 31 Mar 2023 17:46:14 -0400 4 | Subject: [PATCH] ipq807x: fix qca-nss-clients feed 5 | 6 | Signed-off-by: Arif Alam 7 | --- 8 | feeds/ipq807x/qca-nss-clients/Makefile | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/feeds/ipq807x/qca-nss-clients/Makefile b/feeds/ipq807x/qca-nss-clients/Makefile 12 | index 683baf2d..bb89a9e1 100644 13 | --- a/feeds/ipq807x/qca-nss-clients/Makefile 14 | +++ b/feeds/ipq807x/qca-nss-clients/Makefile 15 | @@ -5,7 +5,7 @@ PKG_NAME:=qca-nss-clients 16 | PKG_SOURCE_PROTO:=git 17 | PKG_BRANCH:=master 18 | PKG_RELEASE:=2 19 | -PKG_SOURCE_URL:=https://source.codeaurora.org/quic/qsdk/oss/lklm/nss-clients/ 20 | +PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/nss-clients 21 | PKG_MIRROR_HASH:=802bf8b2dac8da0549e108b873afd982d127370c07d6574ece71f902eafe7698 22 | PKG_VERSION:=153998d70fdba508a59a28c13a606032cbf32686 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0003-base-files-set-default-password-to-empty.patch: -------------------------------------------------------------------------------- 1 | From 17c966a382c534c5d087c561fb34534c1a018eea Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Sat, 22 Jan 2022 10:41:25 +0800 4 | Subject: [PATCH] base-files: set default password to empty 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/base-files/files/etc/shadow | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow 12 | index 5b3f32ce64..4b4154f21f 100644 13 | --- a/package/base-files/files/etc/shadow 14 | +++ b/package/base-files/files/etc/shadow 15 | @@ -1,4 +1,4 @@ 16 | -root:$1$Ev771IIe$RHpqhCLW3U6c5tg9MrkQD/:18473:0:99999:7::: 17 | +root::0:0:99999:7::: 18 | daemon:*:0:0:99999:7::: 19 | ftp:*:0:0:99999:7::: 20 | network:*:0:0:99999:7::: 21 | -- 22 | 2.25.1 23 | 24 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0004-gpio-button-hotplug-notify-with-label.patch: -------------------------------------------------------------------------------- 1 | From cec8c0b4406586f901d81a0821ba1e2c58b849ff Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 7 Feb 2022 14:13:06 +0800 4 | Subject: [PATCH] gpio-button-hotplug: notify with label 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 12 | index 9575c6245b..db50ddf198 100644 13 | --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 14 | +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c 15 | @@ -286,7 +286,7 @@ static void gpio_keys_handle_button(struct gpio_keys_button_data *bdata) 16 | if (bdata->seen == 0) 17 | bdata->seen = seen; 18 | 19 | - button_hotplug_create_event(button_map[bdata->map_entry].name, type, 20 | + button_hotplug_create_event(bdata->b->desc ? bdata->b->desc : button_map[bdata->map_entry].name, type, 21 | (seen - bdata->seen) / HZ, state); 22 | bdata->seen = seen; 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0006-Revert-base-files-ignore-sysupgrade-that-was-not-our.patch: -------------------------------------------------------------------------------- 1 | From 0db2a8654d3392fc1209b3212866515ec2f29a02 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Wed, 9 Feb 2022 18:22:37 +0800 4 | Subject: [PATCH] Revert "base-files: ignore sysupgrade that was not ours" 5 | 6 | This reverts commit 6234f49137870506fd764ab5e9c5725c8e2eacb5. 7 | --- 8 | package/base-files/files/lib/preinit/80_mount_root | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root 12 | index 7cf16e68e0..3f75411a43 100644 13 | --- a/package/base-files/files/lib/preinit/80_mount_root 14 | +++ b/package/base-files/files/lib/preinit/80_mount_root 15 | @@ -17,8 +17,7 @@ missing_lines() { 16 | do_mount_root() { 17 | mount_root 18 | boot_run_hook preinit_mount_root 19 | - (tar tf /sysupgrade.tgz | grep ucentral) 2> /dev/null 20 | - [ $? -eq 0 ] && { 21 | + [ -f /sysupgrade.tgz ] && { 22 | echo "- config restore -" 23 | cp /etc/passwd /etc/group /etc/shadow /tmp 24 | cd / 25 | -- 26 | 2.25.1 27 | 28 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0007-ipq-factory-image-uboot-web-compatibility.patch: -------------------------------------------------------------------------------- 1 | From 15429c752e2e68cc633936a2f08dc8881fcae991 Mon Sep 17 00:00:00 2001 2 | From: Dongming Han 3 | Date: Wed, 9 Feb 2022 20:50:24 +0800 4 | Subject: [PATCH] ipq: factory image uboot web compatibility 5 | 6 | Signed-off-by: Dongming Han 7 | --- 8 | scripts/mkits-qsdk-ipq-image.sh | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/scripts/mkits-qsdk-ipq-image.sh b/scripts/mkits-qsdk-ipq-image.sh 12 | index 87890cc43c..959200d0ae 100755 13 | --- a/scripts/mkits-qsdk-ipq-image.sh 14 | +++ b/scripts/mkits-qsdk-ipq-image.sh 15 | @@ -30,7 +30,7 @@ echo "\ 16 | /dts-v1/; 17 | 18 | / { 19 | - description = \"OpenWrt factory image\"; 20 | + description = \"Flashing factory image\"; 21 | #address-cells = <1>; 22 | 23 | images {" > ${OUTPUT} 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0009-kernel-fix-build-br_netfilter-fail.patch: -------------------------------------------------------------------------------- 1 | From 1a11604d2efb7c6ff6ea7ccefdc60785e3611e97 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 15:59:30 +0800 4 | Subject: [PATCH] kernel: fix build br_netfilter fail 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/netfilter.mk | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk 12 | index 1be05e182a..8ad91784f3 100644 13 | --- a/package/kernel/linux/modules/netfilter.mk 14 | +++ b/package/kernel/linux/modules/netfilter.mk 15 | @@ -859,7 +859,7 @@ define KernelPackage/br-netfilter 16 | TITLE:=Bridge netfilter support modules 17 | DEPENDS:=+kmod-ipt-core 18 | FILES:=$(LINUX_DIR)/net/bridge/br_netfilter.ko 19 | - KCONFIG:=CONFIG_BRIDGE_NETFILTER 20 | + KCONFIG:=CONFIG_BRIDGE_NETFILTER=y 21 | AUTOLOAD:=$(call AutoProbe,br_netfilter) 22 | endef 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0010-package-ppp-fix-ipv6.patch: -------------------------------------------------------------------------------- 1 | From e3193bb2501f93a10926acec4630f587889a0f9a Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 16:02:58 +0800 4 | Subject: [PATCH] package/ppp: fix ipv6 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/network/services/ppp/files/ppp.sh | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh 12 | index b553effd88..78a712b41a 100755 13 | --- a/package/network/services/ppp/files/ppp.sh 14 | +++ b/package/network/services/ppp/files/ppp.sh 15 | @@ -140,6 +140,7 @@ ppp_generic_setup() { 16 | ${localip:+$localip:} \ 17 | ${lcp_failure:+lcp-echo-interval $lcp_interval lcp-echo-failure $lcp_failure $lcp_adaptive} \ 18 | ${ipv6:++ipv6} \ 19 | + ${ipv6:-noipv6} \ 20 | ${autoipv6:+set AUTOIPV6=1} \ 21 | ${ip6table:+set IP6TABLE=$ip6table} \ 22 | ${peerdns:+set PEERDNS=$peerdns} \ 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0011-package-dnsmasq-remove-limit-hostname.patch: -------------------------------------------------------------------------------- 1 | From 433edf8526efc5a8072330d6a22d9289fc9f3931 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 16:04:04 +0800 4 | Subject: [PATCH] package/dnsmasq: remove limit hostname 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../dnsmasq/patches/300-remove-limit-hostname.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 11 | 12 | diff --git a/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch b/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 13 | new file mode 100644 14 | index 0000000000..3e9d7c53ea 15 | --- /dev/null 16 | +++ b/package/network/services/dnsmasq/patches/300-remove-limit-hostname.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: dnsmasq-2.85/src/rfc2131.c 19 | +=================================================================== 20 | +--- dnsmasq-2.85.orig/src/rfc2131.c 21 | ++++ dnsmasq-2.85/src/rfc2131.c 22 | +@@ -724,7 +724,7 @@ size_t dhcp_reply(struct dhcp_context *c 23 | + borken_opt = 1; 24 | + else 25 | + daemon->dhcp_buff[len] = 0; 26 | +- if (legal_hostname(daemon->dhcp_buff)) 27 | ++ // if (legal_hostname(daemon->dhcp_buff)) 28 | + client_hostname = daemon->dhcp_buff; 29 | + } 30 | + 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0012-package-iwinfo-fix-kmgmt-names.patch: -------------------------------------------------------------------------------- 1 | From 07ed17e88fec1b00fb05275a33ce44aa7d86cec3 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 16:05:34 +0800 4 | Subject: [PATCH] package/iwinfo: fix kmgmt names 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../utils/iwinfo/patches/0002-fix-kmgmt-names.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/network/utils/iwinfo/patches/0002-fix-kmgmt-names.patch 11 | 12 | diff --git a/package/network/utils/iwinfo/patches/0002-fix-kmgmt-names.patch b/package/network/utils/iwinfo/patches/0002-fix-kmgmt-names.patch 13 | new file mode 100644 14 | index 0000000000..c8ef0c5a5d 15 | --- /dev/null 16 | +++ b/package/network/utils/iwinfo/patches/0002-fix-kmgmt-names.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: libiwinfo-2021-06-09-c0414642/iwinfo_lib.c 19 | +=================================================================== 20 | +--- libiwinfo-2021-06-09-c0414642.orig/iwinfo_lib.c 21 | ++++ libiwinfo-2021-06-09-c0414642/iwinfo_lib.c 22 | +@@ -37,6 +37,8 @@ const char *IWINFO_KMGMT_NAMES[] = { 23 | + "NONE", 24 | + "802.1X", 25 | + "PSK", 26 | ++ "SAE", 27 | ++ "OWE", 28 | + }; 29 | + 30 | + const char *IWINFO_AUTH_NAMES[] = { 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0014-package-exfat-fix-build-fail.patch: -------------------------------------------------------------------------------- 1 | From 7ec29795671f5629962106214e342fec4cb2ac5c Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 17:00:52 +0800 4 | Subject: [PATCH] package/exfat: fix build fail 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | .../kernel/exfat/patches/001-fix-build-fail.patch | 13 +++++++++++++ 9 | 1 file changed, 13 insertions(+) 10 | create mode 100644 package/kernel/exfat/patches/001-fix-build-fail.patch 11 | 12 | diff --git a/package/kernel/exfat/patches/001-fix-build-fail.patch b/package/kernel/exfat/patches/001-fix-build-fail.patch 13 | new file mode 100644 14 | index 0000000000..9f72ff1bf0 15 | --- /dev/null 16 | +++ b/package/kernel/exfat/patches/001-fix-build-fail.patch 17 | @@ -0,0 +1,13 @@ 18 | +Index: linux-exfat-oot-5.12.3/file.c 19 | +=================================================================== 20 | +--- linux-exfat-oot-5.12.3.orig/file.c 21 | ++++ linux-exfat-oot-5.12.3/file.c 22 | +@@ -243,7 +243,7 @@ void exfat_truncate(struct inode *inode, 23 | + { 24 | + struct super_block *sb = inode->i_sb; 25 | + struct exfat_sb_info *sbi = EXFAT_SB(sb); 26 | +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) 27 | ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 28 | + unsigned int blocksize = i_blocksize(inode); 29 | + #else 30 | + unsigned int blocksize = 1 << inode->i_blkbits; 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0015-kernel-fix-dependency-of-kmod-nf-nat6.patch: -------------------------------------------------------------------------------- 1 | From 00f5e19dc6cf4a1a05b6da5b13824ea74103ec3a Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 17:29:26 +0800 4 | Subject: [PATCH] kernel: fix dependency of kmod-nf-nat6 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | include/netfilter.mk | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/include/netfilter.mk b/include/netfilter.mk 12 | index cee40ee008..9a3cdbbba8 100644 13 | --- a/include/netfilter.mk 14 | +++ b/include/netfilter.mk 15 | @@ -185,6 +185,7 @@ $(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_RT, $(P_V6)ip6t_rt)) 16 | $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT, $(P_XT)nf_nat),)) 17 | $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT_REDIRECT, $(P_XT)nf_nat_redirect, lt 4.18),)) 18 | $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT_IPV4, $(P_V4)nf_nat_ipv4, lt 4.18),)) 19 | +$(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT6,CONFIG_NF_NAT_IPV6, $(P_V6)nf_nat_ipv6, lt 4.18),)) 20 | $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT_MASQUERADE_IPV4, $(P_V4)nf_nat_masquerade_ipv4, lt 4.18),)) 21 | 22 | $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_NAT, $(P_XT)xt_nat),)) 23 | -- 24 | 2.25.1 25 | 26 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0016-include-ipt_nat6-depends-ip6t_MASQUERADE.patch: -------------------------------------------------------------------------------- 1 | From 1eeb537d7140593ebdb3046338d596a9a87eea80 Mon Sep 17 00:00:00 2001 2 | From: "GL.iNet-Xinfa.Deng" 3 | Date: Wed, 9 Feb 2022 14:27:13 +0800 4 | Subject: [PATCH] include: ipt_nat6 depends ip6t_MASQUERADE 5 | 6 | --- 7 | include/netfilter.mk | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/include/netfilter.mk b/include/netfilter.mk 11 | index 9a3cdbb..6207d9a 100644 12 | --- a/include/netfilter.mk 13 | +++ b/include/netfilter.mk 14 | @@ -191,6 +191,7 @@ $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT_MASQUERADE_IPV4, $(P_V 15 | $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_NAT, $(P_XT)xt_nat),)) 16 | $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_IP_NF_NAT, $(P_V4)iptable_nat),)) 17 | $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_NAT, $(P_V6)ip6table_nat),)) 18 | +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_MASQUERADE, $(P_V6)ip6t_MASQUERADE),)) 19 | $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_NPT, $(P_V6)ip6t_NPT),)) 20 | $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT6,CONFIG_NF_NAT_MASQUERADE_IPV6, $(P_V6)nf_nat_masquerade_ipv6, lt 4.18),)) 21 | 22 | -- 23 | 2.7.4 24 | 25 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0017-kmod-mmc-fix-ko-path.patch: -------------------------------------------------------------------------------- 1 | From 98d63f7d8526ea4d1e5249a49c46d0e759037e65 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Mon, 11 Jul 2022 17:49:15 +0800 4 | Subject: [PATCH] kmod-mmc: fix ko path 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | package/kernel/linux/modules/other.mk | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk 12 | index 8e3642ab9a..c297a1d004 100644 13 | --- a/package/kernel/linux/modules/other.mk 14 | +++ b/package/kernel/linux/modules/other.mk 15 | @@ -380,7 +380,7 @@ define KernelPackage/mmc 16 | CONFIG_SDIO_UART=n 17 | FILES:= \ 18 | $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \ 19 | - $(LINUX_DIR)/drivers/mmc/core/mmc_block.ko 20 | + $(LINUX_DIR)/drivers/mmc/card/mmc_block.ko 21 | AUTOLOAD:=$(call AutoProbe,mmc_core mmc_block,1) 22 | endef 23 | 24 | -- 25 | 2.25.1 26 | 27 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0020-fixed-openwrt-feeds-hash.patch: -------------------------------------------------------------------------------- 1 | From 8de5e839218a47b646fa69d36f2fc5c5997bfa6b Mon Sep 17 00:00:00 2001 2 | From: gl-luochongjun 3 | Date: Mon, 18 Jul 2022 10:49:37 +0800 4 | Subject: [PATCH] fixed openwrt feeds hash 5 | 6 | --- 7 | feeds.conf.default | 6 +++--- 8 | 1 file changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/feeds.conf.default b/feeds.conf.default 11 | index 3d24cb7c27..7ca310050b 100644 12 | --- a/feeds.conf.default 13 | +++ b/feeds.conf.default 14 | @@ -1,4 +1,4 @@ 15 | -src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02 16 | -src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02 17 | -src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-21.02 18 | +src-git packages https://git.openwrt.org/feed/packages.git^78bcd00c13587571b5c79ed2fc3363aa674aaef7 19 | +src-git routing https://git.openwrt.org/feed/routing.git^a0d61bddb3ce4ca54bd76af86c28f58feb6cc044 20 | +src-git telephony https://git.openwrt.org/feed/telephony.git^0183c1adda0e7581698b0ea4bff7c08379acf447 21 | #src-link custom /usr/src/openwrt/custom-feed 22 | -- 23 | 2.25.1 24 | 25 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0021-kernel-fix-missing-symbol.patch: -------------------------------------------------------------------------------- 1 | From 774baafb7b625a680a08c375f380e524caff0e45 Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Tue, 6 Dec 2022 12:04:41 +0800 4 | Subject: [PATCH] kernel: fix missing symbol 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | target/linux/generic/config-4.4 | 2 ++ 9 | 1 file changed, 2 insertions(+) 10 | 11 | diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4 12 | index 4e7602f236..a321548eea 100644 13 | --- a/target/linux/generic/config-4.4 14 | +++ b/target/linux/generic/config-4.4 15 | @@ -630,6 +630,7 @@ CONFIG_CC_STACKPROTECTOR_NONE=y 16 | # CONFIG_CIFS_DEBUG2 is not set 17 | # CONFIG_CIFS_FSCACHE is not set 18 | # CONFIG_CIFS_NFSD_EXPORT is not set 19 | +# CONFIG_NFSD_PNFS is not set 20 | CONFIG_CIFS_POSIX=y 21 | # CONFIG_CIFS_SMB2 is not set 22 | CONFIG_CIFS_STATS=y 23 | @@ -955,6 +956,7 @@ CONFIG_DOUBLEFAULT=y 24 | CONFIG_DQL=y 25 | # CONFIG_DRAGONRISE_FF is not set 26 | # CONFIG_DRM is not set 27 | +# CONFIG_DM_REQ_CRYPT is not set 28 | # CONFIG_DS1682 is not set 29 | # CONFIG_DTLK is not set 30 | # CONFIG_DUMMY is not set 31 | -- 32 | 2.25.1 33 | 34 | -------------------------------------------------------------------------------- /patches-wlan-ap/openwrt/0022-gcc-fix-build-fail-on-ubuntu-22.04.patch: -------------------------------------------------------------------------------- 1 | From 28c1868c680e7e5d09f64b34a999c6f23da247cb Mon Sep 17 00:00:00 2001 2 | From: Jianhui Zhao 3 | Date: Sat, 10 Dec 2022 21:41:51 +0800 4 | Subject: [PATCH] gcc: fix build fail on ubuntu-22.04 5 | 6 | Signed-off-by: Jianhui Zhao 7 | --- 8 | toolchain/gcc/common.mk | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk 12 | index d9372f9961..c436429c63 100644 13 | --- a/toolchain/gcc/common.mk 14 | +++ b/toolchain/gcc/common.mk 15 | @@ -94,6 +94,7 @@ GCC_CONFIGURE:= \ 16 | CFLAGS="-O2 -fbracket-depth=512 -pipe" \ 17 | CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \ 18 | ) \ 19 | + CXXFLAGS=--std=c++14 \ 20 | $(HOST_SOURCE_DIR)/configure \ 21 | --with-bugurl=$(BUGURL) \ 22 | --with-pkgversion="$(PKGVERSION)" \ 23 | -- 24 | 2.34.1 25 | 26 | -------------------------------------------------------------------------------- /profiles/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FUjr/gl-infra-builder/54419b12e8cc08116ab8c3138e93de00ccd2afe9/profiles/README.md -------------------------------------------------------------------------------- /profiles/glinet_a1300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | # - name: glinet 5 | #path: ../feeds_dir/glinet 6 | - name: glinet 7 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 8 | revision: 7009319c3596ef938db7649c90d2d58f43d7d06e 9 | 10 | packages: 11 | - gl-sdk4-adguardhome 12 | - gl-sdk4-led 13 | - gl-sdk4-mqtt 14 | - gl-sdk4-cloud-batch-manage 15 | 16 | diffconfig: | 17 | -------------------------------------------------------------------------------- /profiles/glinet_ar150.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_axt1800.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | 4 | feeds: 5 | - name: glinet 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 7 | revision: 7009319c3596ef938db7649c90d2d58f43d7d06e 8 | 9 | packages: 10 | - gl-sdk4-led 11 | - gl-sdk4-adguardhome 12 | - gl-sdk4-ui-adguardhome 13 | - gl-sdk4-sms-forward 14 | - gl-sdk4-mqtt 15 | - gl-sdk4-cloud-batch-manage 16 | 17 | diffconfig: | 18 | -------------------------------------------------------------------------------- /profiles/glinet_axt1800_v4_1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | 4 | feeds: 5 | - name: glinet 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 7 | branch: v4.1.0 8 | 9 | packages: 10 | - kmod-gl-sdk4-fan 11 | - gl-sdk4-led 12 | - gl-sdk4-adguardhome 13 | - gl-sdk4-timer 14 | - gl-sdk4-igmp 15 | - gl-sdk4-sms-forward 16 | 17 | diffconfig: | 18 | -------------------------------------------------------------------------------- /profiles/glinet_debug.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: enable GDB nad debug information 3 | 4 | packages: 5 | - gdbserver 6 | 7 | diffconfig: | 8 | CONFIG_DEBUG=y 9 | CONFIG_NO_STRIP=y 10 | CONFIG_DEVEL=y 11 | CONFIG_TOOLCHAINOPTS=y 12 | CONFIG_LIBC_USE_GLIBC=y 13 | -------------------------------------------------------------------------------- /profiles/glinet_mifi.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_mt3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies for the GL.iNET MT3000 3 | 4 | feeds: 5 | - name: mt7981_private 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt7981-feeds.git 7 | revision: ebc8d5c447e1d2e0e13c0568a8514da68f8aa618 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 7009319c3596ef938db7649c90d2d58f43d7d06e 11 | 12 | packages: 13 | - gl-sdk4-led 14 | - gl-sdk4-adguardhome 15 | - gl-sdk4-timer 16 | - gl-sdk4-igmp 17 | - gl-sdk4-mwan3 18 | - gl-sdk4-ui-hwnat 19 | - gl-sdk4-mqtt 20 | - gl-sdk4-cloud-batch-manage -------------------------------------------------------------------------------- /profiles/glinet_n300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_nas.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: GL nas utils 3 | 4 | packages: 5 | - gl-sdk4-nas-utils 6 | - gl-sdk4-nas-web 7 | - gl-sdk4-exfat-utils 8 | - gl-sdk4-webdav 9 | - samba4-server 10 | - samba4-libs 11 | - samba4-utils 12 | - minidlna 13 | - blkid 14 | - kmod-fs-ext4 15 | - kmod-fs-ntfs 16 | - kmod-fs-vfat 17 | - kmod-fs-exfat 18 | - kmod-usb-storage-uas 19 | - ntfs-3g 20 | - ntfs-3g-utils 21 | - dosfstools 22 | - e2fsprogs 23 | 24 | 25 | 26 | diffconfig: | 27 | CONFIG_SAMBA4_SERVER_VFSX=y 28 | CONFIG_SAMBA4_SERVER_AD_DC=y 29 | CONFIG_BUSYBOX_CONFIG_ADDGROUP=y 30 | CONFIG_BUSYBOX_CONFIG_FEATURE_ADDUSER_TO_GROUP=y 31 | CONFIG_BUSYBOX_CONFIG_ADDUSER=y 32 | CONFIG_BUSYBOX_CONFIG_CHPASSWD=y 33 | CONFIG_BUSYBOX_CONFIG_DELUSER=y 34 | CONFIG_BUSYBOX_CONFIG_DELGROUP=y 35 | CONFIG_BUSYBOX_CONFIG_FEATURE_DEL_USER_FROM_GROUP=y 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /profiles/glinet_sf1200.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_snapshot.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: /home/glinet/work/tmp/gl-sdk4-collect 6 | - name: gl_feed_common 7 | uri: https://github.com/gl-inet/gl-feeds.git 8 | branch: common 9 | -------------------------------------------------------------------------------- /profiles/glinet_usb150.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_vixmini.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - helloworld 9 | 10 | diffconfig: | 11 | 12 | -------------------------------------------------------------------------------- /profiles/glinet_x3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies for the GL.iNET X3000 3 | 4 | feeds: 5 | - name: mt7981_private 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt7981-feeds.git 7 | revision: ebc8d5c447e1d2e0e13c0568a8514da68f8aa618 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 2581f37967d7cb2ed880cc77a21e9728e38b660a 11 | 12 | packages: 13 | - kmod-gl-pcie-modem 14 | - gl-sdk4-led 15 | - gl-sdk4-adguardhome 16 | - gl-sdk4-timer 17 | - gl-sdk4-igmp 18 | - gl-sdk4-mwan3 19 | - gl-sdk4-passthrough 20 | - gl-sdk4-sms-forward 21 | - gl-sdk4-2b 22 | - gl-sdk4-ui-hwnat 23 | - gl-sdk4-ui-netnat 24 | - gl-ble-daemon 25 | - gl-ble-to-remote 26 | - gl-ble-sdk 27 | - kmod-usb-serial-ch343 28 | - gl-sdk4-ui-bluetoothdevices 29 | - gl-sdk4-ui-bluetoothremotemanage 30 | - gl-sdk4-ui-bluetoothreport 31 | - gl-sdk4-ui-bluetoothsettings 32 | 33 | diffconfig: | 34 | CONFIG_PACKAGE_gl-sdk4-ui-btnsettings=n 35 | CONFIG_PACKAGE_gl-sdk4-switch-button=n 36 | CONFIG_BUSYBOX_CUSTOM=y 37 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_INTERACTIVE=y 38 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_CPU=y 39 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_DECIMALS=y 40 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_PROCESS=y 41 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOPMEM=y 42 | CONFIG_PACKAGE_coreutils=y 43 | CONFIG_PACKAGE_coreutils-sleep=y 44 | CONFIG_BUSYBOX_CONFIG_TIMEOUT=y 45 | -------------------------------------------------------------------------------- /profiles/glinet_xe3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies for the GL.iNET XE3000 3 | 4 | feeds: 5 | - name: mt7981_private 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt7981-feeds.git 7 | revision: e6a33d4d6c25266d10bab39c26cca0c362414093 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 20a32bea2b6814e26cbb9c7321febee3ce1bb365 11 | 12 | packages: 13 | - kmod-gl-pcie-modem 14 | - kmod-gl-sdk4-black_white_list 15 | - gl-sdk4-mtk-wifi-v2 16 | - gl-sdk4-led 17 | - gl-sdk4-adguardhome 18 | - gl-sdk4-timer 19 | - gl-sdk4-igmp 20 | - gl-sdk4-mwan3 21 | - gl-sdk4-passthrough 22 | - gl-sdk4-sms-forward 23 | - gl-sdk4-ui-hwnat 24 | - gl-sdk4-ui-netnat 25 | - gl-sdk4-mcu 26 | - gl-sdk4-2b 27 | 28 | diffconfig: | 29 | CONFIG_PACKAGE_gl-sdk4-ui-btnsettings=n 30 | CONFIG_PACKAGE_gl-sdk4-switch-button=n 31 | CONFIG_BUSYBOX_CUSTOM=y 32 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_INTERACTIVE=y 33 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_CPU=y 34 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_DECIMALS=y 35 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_PROCESS=y 36 | CONFIG_BUSYBOX_CONFIG_FEATURE_TOPMEM=y 37 | CONFIG_PACKAGE_coreutils=y 38 | CONFIG_PACKAGE_coreutils-sleep=y 39 | CONFIG_BUSYBOX_CONFIG_TIMEOUT=y 40 | -------------------------------------------------------------------------------- /profiles/imagebuilder_21_02.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet imagebuilder 3 | 4 | diffconfig: | 5 | CONFIG_IB=y 6 | CONFIG_IB_STANDALONE=y 7 | CONFIG_SDK=y 8 | CONFIG_ALL_NONSHARED=y 9 | -------------------------------------------------------------------------------- /profiles/imagebuilder_22_03.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet imagebuilder 3 | 4 | diffconfig: | 5 | CONFIG_IB=y 6 | CONFIG_IB_STANDALONE=y 7 | CONFIG_ALL_NONSHARED=y 8 | CONFIG_SDK=y 9 | -------------------------------------------------------------------------------- /profiles/imagebuilder_mt1300.yml: -------------------------------------------------------------------------------- 1 | 2 | --- 3 | description: Add the glinet imagebuilder 4 | 5 | diffconfig: | 6 | CONFIG_IB=y 7 | CONFIG_IB_STANDALONE=y 8 | CONFIG_ALL_NONSHARED=y 9 | -------------------------------------------------------------------------------- /profiles/imagebuilder_mt7981.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet imagebuilder 3 | 4 | diffconfig: | 5 | CONFIG_IB=y 6 | CONFIG_IB_STANDALONE=y 7 | CONFIG_SDK=y 8 | CONFIG_ALL_NONSHARED=y 9 | CONFIG_PACKAGE_kmod-dax=n 10 | CONFIG_PACKAGE_kmod-dm=n 11 | CONFIG_PACKAGE_kmod-dm-raid=n 12 | CONFIG_PACKAGE_kmod-mt7915=n 13 | CONFIG_PACKAGE_kmod-mt7915e=n 14 | CONFIG_PACKAGE_kmod-sound-soc-ac97=n 15 | CONFIG_PACKAGE_kmod-sound-soc-core=n 16 | CONFIG_PACKAGE_kmod-sound-soc-mt79xx=n 17 | CONFIG_PACKAGE_kmod-sound-soc-spdif=n 18 | -------------------------------------------------------------------------------- /profiles/imagebuilder_siflower.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet imagebuilder 3 | 4 | diffconfig: | 5 | CONFIG_IB=y 6 | CONFIG_SDK=y 7 | CONFIG_IB_STANDALONE=y 8 | 9 | -------------------------------------------------------------------------------- /profiles/istore.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the istore dependencies 3 | 4 | feeds: 5 | - name: istore_core 6 | uri: https://github.com/luochongjun/istore.git 7 | branch: main 8 | - name: istore_ui 9 | uri: https://github.com/linkease/nas-packages-luci.git 10 | branch: main 11 | - name: istore_feeds 12 | uri: https://github.com/luochongjun/istore_feeds.git 13 | branch: main 14 | 15 | packages: 16 | - luci-app-istorex 17 | - luci-app-linkease 18 | - luci-app-ttyd 19 | - bash 20 | 21 | diffconfig: | 22 | CONFIG_BUSYBOX_CONFIG_CHPASSWD=n 23 | -------------------------------------------------------------------------------- /profiles/luci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the LUCI dependencies 3 | 4 | feeds: 5 | - name: glinet 6 | path: ../feeds_dir/glinet 7 | 8 | packages: 9 | - luci 10 | - luci-base 11 | - luci-mod-rpc 12 | - wpad-openssl 13 | 14 | diffconfig: | 15 | CONFIG_LUCI_LANG_zh_Hans=y 16 | CONFIG_PACKAGE_wpad-basic=n 17 | CONFIG_PACKAGE_wpad=n 18 | -------------------------------------------------------------------------------- /profiles/mt7981-360-t7-108M.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies for the GL.iNET MT3000 3 | 4 | feeds: 5 | - name: mt7981_private 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt7981-feeds.git 7 | revision: c4306a00ef9b5067e83e30378ddd6b5fdaf0ce84 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 9f4a704d13a5e6d18f8f7daccdc26997688b023f 11 | 12 | packages: 13 | - gl-sdk4-led 14 | - gl-sdk4-adguardhome 15 | - gl-sdk4-timer 16 | - gl-sdk4-igmp 17 | - gl-sdk4-mwan3 18 | - gl-sdk4-ui-hwnat 19 | -------------------------------------------------------------------------------- /profiles/mt7981-360-t7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the glinet dependencies for the GL.iNET MT3000 3 | 4 | feeds: 5 | - name: mt7981_private 6 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt7981-feeds.git 7 | revision: c4306a00ef9b5067e83e30378ddd6b5fdaf0ce84 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 9f4a704d13a5e6d18f8f7daccdc26997688b023f 11 | 12 | packages: 13 | - gl-sdk4-led 14 | - gl-sdk4-adguardhome 15 | - gl-sdk4-timer 16 | - gl-sdk4-igmp 17 | - gl-sdk4-mwan3 18 | - gl-sdk4-ui-hwnat 19 | -------------------------------------------------------------------------------- /profiles/openwrt_common.yml: -------------------------------------------------------------------------------- 1 | --- 2 | description: Add the LUCI dependencies 3 | feeds: 4 | - name: glinet 5 | path: ../feeds_dir/glinet 6 | 7 | packages: 8 | - luci 9 | - luci-base 10 | - luci-mod-rpc 11 | - kmod-usb-storage 12 | - kmod-usb-uhci 13 | - comgt 14 | - chat 15 | - uqmi 16 | - blkid 17 | - ntfs-3g 18 | - ntfs-3g-utils 19 | - dosfstools 20 | - e2fsprogs 21 | - usbmuxd 22 | - kmod-usb2 23 | - kmod-usb-ohci 24 | - kmod-usb-acm 25 | - kmod-usb-net-huawei-cdc-ncm 26 | - kmod-usb-serial 27 | - kmod-usb-serial-option 28 | - kmod-usb-serial-wwan 29 | - kmod-usb-net-cdc-ether 30 | - kmod-usb-net-qmi-wwan 31 | - kmod-fs-ext4 32 | - kmod-fs-ntfs 33 | - kmod-fs-vfat 34 | - kmod-fs-exfat 35 | - kmod-usb-net-ipheth 36 | - kmod-usb-net-rndis 37 | - kmod-usb-serial-ch341 38 | 39 | diffconfig: | 40 | CONFIG_LUCI_LANG_zh_Hans=y 41 | CONFIG_BUSYBOX_CUSTOM=y 42 | CONFIG_BUSYBOX_CONFIG_FEATURE_FLOAT_SLEEP=y 43 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar150.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar150 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR150 6 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar300m-lite.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar300m-lite 3 | target: ath79 4 | subtarget: generic 5 | description: Build image for the GL.iNET AR300M Lite 6 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar300m-nand.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar300m-nand 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR300M NAND Flash 6 | feeds: 7 | - name: gl_feed_common 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: gl_feeds_22_03 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | branch: 22.03.2 13 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar300m-nor.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar300m-nor 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR300M NOR Flash 6 | feeds: 7 | - name: gl_feed_common 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: gl_feeds_22_03 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | branch: 22.03.2 13 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar750.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar750 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR750 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 14 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-ar750s.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ar750s-nor-nand 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR750S 6 | feeds: 7 | - name: gl_feed_common 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: gl_feeds_22_03 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | branch: 22.03.2 13 | 14 | packages: 15 | - tor:gl_feed_common 16 | - smstools3:gl_feed_common 17 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-e750.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-e750 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET E750 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 14 | 15 | packages: 16 | - tor:gl_feed_common 17 | - smstools3:gl_feed_common 18 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-mifi.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glnet_gl-ar150 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET AR150 6 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-x300b-nor-nand.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x300b-nor-nand 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET X300B 6 | feeds: 7 | - name: gl_feeds_commmon 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | revision: c3c61a5e480a44e90389fe37d7d0f07938139ada 10 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-x300b-nor.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x300b-nor 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET X300B 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 14 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-x300b.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x300b-nor 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET X300B 6 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-x750-nor.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x750-nor 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET X750 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 14 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-x750.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x750-nor 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET X750 6 | -------------------------------------------------------------------------------- /profiles/target_ath79_gl-xe300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-xe300-nor-nand 3 | target: ath79 4 | subtarget: nand 5 | description: Build image for the GL.iNET XE300 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 -------------------------------------------------------------------------------- /profiles/target_ipq40xx_gl-ap1300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-ap1300 3 | target: ipq40xx 4 | subtarget: generic 5 | description: Build image for the GL.iNET AP1300 6 | feeds: 7 | - name: gl_feeds_commmon 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: gl_feeds 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | revision: b0b2d6c2a563be5787bde3acb7b5cf4e83ddc0ce 13 | 14 | packages: 15 | - wireless-regdb 16 | - wget-ssl 17 | - arp-scan 18 | - i2c-tools 19 | 20 | diffconfig: | 21 | CONFIG_PACKAGE_kmod-shortcut-fe-cm=y 22 | CONFIG_PACKAGE_wpad-basic-wolfssl=n 23 | CONFIG_PACKAGE_ath10k-firmware-qca4019=m 24 | CONFIG_PACKAGE_ath10k-firmware-qca4019-ct=y 25 | CONFIG_PACKAGE_kmod-ath10k=m 26 | CONFIG_PACKAGE_kmod-ath10k-ct=y 27 | CONFIG_ATH10K_LEDS=y 28 | CONFIG_ATH10K-CT_LEDS=y 29 | CONFIG_ATH10K_THERMAL=y 30 | CONFIG_SIGNATURE_CHECK=y 31 | CONFIG_KERNEL_DEVMEM=y 32 | CONFIG_BUSYBOX_CONFIG_BLKID=y 33 | CONFIG_BUSYBOX_CONFIG_DEVMEM=y 34 | CONFIG_BUSYBOX_CONFIG_TLS=y 35 | CONFIG_PACKAGE_dnscrypt-proxy2=y 36 | CONFIG_PACKAGE_badblocks=y 37 | CONFIG_PACKAGE_ipq-wifi-glinet_gl-ap1300=y 38 | CONFIG_PACKAGE_ip-tiny=y 39 | -------------------------------------------------------------------------------- /profiles/target_ipq40xx_gl-b1300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-b1300 3 | target: ipq40xx 4 | subtarget: generic 5 | description: Build image for the GL.iNET B1300 6 | feeds: 7 | - name: gl_feed_common 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: gl_feeds_22_03 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | branch: 22.03.2 13 | 14 | packages: 15 | - wireless-regdb 16 | - wget-ssl 17 | - arp-scan 18 | 19 | diffconfig: | 20 | CONFIG_PACKAGE_kmod-shortcut-fe-cm=y 21 | CONFIG_PACKAGE_wpad-basic-wolfssl=n 22 | CONFIG_PACKAGE_ath10k-firmware-qca4019=m 23 | CONFIG_PACKAGE_ath10k-firmware-qca4019-ct=y 24 | CONFIG_PACKAGE_kmod-ath10k=m 25 | CONFIG_PACKAGE_kmod-ath10k-ct=y 26 | CONFIG_ATH10K_LEDS=y 27 | CONFIG_ATH10K-CT_LEDS=y 28 | CONFIG_ATH10K_THERMAL=y 29 | CONFIG_SIGNATURE_CHECK=y 30 | CONFIG_KERNEL_DEVMEM=y 31 | CONFIG_BUSYBOX_CONFIG_BLKID=y 32 | CONFIG_BUSYBOX_CONFIG_DEVMEM=y 33 | CONFIG_BUSYBOX_CONFIG_TLS=y 34 | CONFIG_PACKAGE_libfdisk=y 35 | CONFIG_PACKAGE_fdisk=y 36 | CONFIG_PACKAGE_kmod-usb-storage-extras=y 37 | CONFIG_PACKAGE_libfdisk=y 38 | CONFIG_PACKAGE_libsmartcols=y 39 | CONFIG_PACKAGE_dnscrypt-proxy2=y 40 | CONFIG_PACKAGE_badblocks=y 41 | CONFIG_PACKAGE_ip-tiny=y 42 | -------------------------------------------------------------------------------- /profiles/target_ipq40xx_gl-b1300th.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-b1300th 3 | target: ipq40xx 4 | subtarget: generic 5 | description: Build image for the GL.iNET B1300TH 6 | -------------------------------------------------------------------------------- /profiles/target_ipq40xx_gl-s1300-emmc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-s1300-emmc 3 | target: ipq40xx 4 | subtarget: generic 5 | description: Build image for the GL.iNET S1300 EMMC 6 | -------------------------------------------------------------------------------- /profiles/target_ipq40xx_gl-s1300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-s1300 3 | target: ipq40xx 4 | subtarget: generic 5 | description: Build image for the GL.iNET S1300 6 | -------------------------------------------------------------------------------- /profiles/target_mt7981_360t7-108M.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: mt7981-360-t7-108M 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET 360T7 108M 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: ac1ff5fb455c6d304aa435abb1c3eccf4878e28b 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 581563a214d313c367d7ffe5a1e9038fc18292ed 14 | - name: gl_feed_mtk 15 | uri: https://github.com/gl-inet/gl-feeds.git 16 | revision: 5e48f72b4020fca612bedc480231c9081a00efa4 17 | 18 | packages: 19 | - ethtool 20 | - iwinfo 21 | - wireless-tools 22 | - gl-sdk4-mtk-wifi-v2 23 | - kmod-conninfra-mt7981-ko 24 | - kmod-mt-wifi-mt7981-ko 25 | - kmod-warp-mt7981-ko 26 | - kmod-mediatek_hnat 27 | - kmod-gl-sdk4-fan 28 | - mii_mgr 29 | - mtkhnat_util 30 | - regs 31 | - luci 32 | - 8021xd 33 | - fwdd 34 | - kmod-mtfwd 35 | - kmod-mtqos 36 | -------------------------------------------------------------------------------- /profiles/target_mt7981_360t7.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: mt7981-360-t7-108M 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET 360T7 108M 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: ac1ff5fb455c6d304aa435abb1c3eccf4878e28b 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 581563a214d313c367d7ffe5a1e9038fc18292ed 14 | - name: gl_feed_mtk 15 | uri: https://github.com/gl-inet/gl-feeds.git 16 | revision: 5e48f72b4020fca612bedc480231c9081a00efa4 17 | 18 | packages: 19 | - ethtool 20 | - iwinfo 21 | - wireless-tools 22 | - gl-sdk4-mtk-wifi-v2 23 | - kmod-conninfra-mt7981-ko 24 | - kmod-mt-wifi-mt7981-ko 25 | - kmod-warp-mt7981-ko 26 | - kmod-mediatek_hnat 27 | - kmod-gl-sdk4-fan 28 | - mii_mgr 29 | - mtkhnat_util 30 | - regs 31 | - luci 32 | - 8021xd 33 | - fwdd 34 | - kmod-mtfwd 35 | - kmod-mtqos 36 | - kmod-zram 37 | - tailscale 38 | - tailscaled 39 | - dhcpdiscover 40 | - zram-swap 41 | - zerotier 42 | - kmod-fs-nfs-v4 43 | - kmod-fs-nfsd 44 | - nfs-kernel-server 45 | - nfs-utils-libs 46 | - vsftpd-tls 47 | -------------------------------------------------------------------------------- /profiles/target_mt7981_gl-mt2500.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-mt2500 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET MT2500 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: 4fd97cfe3c89f7277911375d9aa0ce85ac6d27c7 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 581563a214d313c367d7ffe5a1e9038fc18292ed 14 | 15 | packages: 16 | - tailscale:gl_feed_common 17 | - fwdd 18 | - mii_mgr 19 | - losetup 20 | - mkf2fs 21 | - e2fsprogs 22 | - blkid 23 | - blockdev 24 | - kmod-fs-ext4 25 | - kmod-fs-f2fs 26 | - kmod-fs-vfat 27 | - kmod-nls-cp437 28 | - regs 29 | - switch 30 | - mtk-base-files 31 | - mtk_factory_rw 32 | - ethtool 33 | - kmod-mediatek_hnat 34 | - kmod-mtfwd 35 | - kmod-mtqos 36 | - mtkhnat_util 37 | - gdisk 38 | - mmc-utils 39 | -------------------------------------------------------------------------------- /profiles/target_mt7981_gl-mt3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-mt3000 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET MT3000 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: 4fd97cfe3c89f7277911375d9aa0ce85ac6d27c7 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 581563a214d313c367d7ffe5a1e9038fc18292ed 14 | - name: gl_feed_mtk 15 | uri: https://github.com/gl-inet/gl-feeds.git 16 | revision: 68fada73d27dcf9b4485d87c96d0ec710a5fd163 17 | 18 | packages: 19 | - ethtool 20 | - iwinfo 21 | - wireless-tools 22 | - gl-sdk4-mtk-wifi-v2 23 | - luci-app-mtkwifi 24 | - kmod-conninfra-mt7981-ko 25 | - kmod-mt-wifi-mt7981-ko 26 | - kmod-warp-mt7981-ko 27 | - kmod-mediatek_hnat 28 | - kmod-gl-sdk4-fan 29 | - mii_mgr 30 | - mtkhnat_util 31 | - regs 32 | - luci 33 | - 8021xd 34 | - fwdd 35 | - kmod-mtfwd 36 | - kmod-mtqos 37 | -------------------------------------------------------------------------------- /profiles/target_mt7981_gl-x3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-x3000 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET X3000 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: d39ec6a2e436ed03aa037788bc6114810da3ed2f 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 68dc5722d4dd9a2f8388998343590be0a8a20b99 14 | - name: gl_feed_mtk 15 | uri: https://github.com/gl-inet/gl-feeds.git 16 | revision: 1629222c11f26bd3fd58da2a0ce827399ddcf53b 17 | 18 | packages: 19 | - ethtool 20 | - iwinfo 21 | - mmc-utils 22 | - losetup 23 | - mkf2fs 24 | - blockdev 25 | - gdisk 26 | - wireless-tools 27 | - gl-sdk4-mtk-wifi-v2 28 | - luci-app-mtkwifi 29 | - kmod-conninfra-mt7981-ko 30 | - kmod-mt-wifi-mt7981-ko 31 | - kmod-warp-mt7981-ko 32 | - kmod-mediatek_hnat 33 | - kmod-gl-sdk4-fan 34 | - kmod-shortcut-fe 35 | - kmod-shortcut-fe-cm 36 | - mii_mgr 37 | - mtkhnat_util 38 | - regs 39 | - 8021xd 40 | - fwdd 41 | - kmod-mtfwd 42 | - kmod-mtqos 43 | -------------------------------------------------------------------------------- /profiles/target_mt7981_gl-xe3000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-xe3000 3 | target: mediatek 4 | subtarget: mt7981 5 | description: Build image for the GL.iNET XE3000 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | revision: 8c1b4a9c3d13b640126d366f0a2b9f534af4cdc0 11 | - name: gl_feed_21_02 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | revision: 68dc5722d4dd9a2f8388998343590be0a8a20b99 14 | - name: gl_feed_mtk 15 | uri: https://github.com/gl-inet/gl-feeds.git 16 | revision: 1629222c11f26bd3fd58da2a0ce827399ddcf53b 17 | 18 | packages: 19 | - ethtool 20 | - iwinfo 21 | - mmc-utils 22 | - losetup 23 | - mkf2fs 24 | - blockdev 25 | - gdisk 26 | - wireless-tools 27 | - luci-app-mtkwifi 28 | - kmod-conninfra-mt7981-ko 29 | - kmod-mt-wifi-mt7981-ko 30 | - kmod-warp-mt7981-ko 31 | - kmod-mediatek_hnat 32 | - kmod-gl-sdk4-fan 33 | - kmod-shortcut-fe 34 | - kmod-shortcut-fe-cm 35 | - mii_mgr 36 | - mtkhnat_util 37 | - regs 38 | - 8021xd 39 | - fwdd 40 | - kmod-mtfwd 41 | - kmod-mtqos 42 | -------------------------------------------------------------------------------- /profiles/target_mvebu_gl-mv1000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: gl-mv1000-emmc 3 | target: mvebu 4 | subtarget: cortexa53 5 | description: Build image for the GL.iNET MV1000 6 | feeds: 7 | - name: gl_feeds_commmon 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | revision: eace3976ffc38aaa3e3cd8d4bba9053dbb9bf8d7 10 | - name: gl_feeds_22_03 11 | uri: https://github.com/gl-inet/gl-feeds.git 12 | revision: 195dca0e10af66665aa59e33dc17edb784379732 13 | 14 | packages: 15 | - tor:gl_feed_common 16 | - smstools3:gl_feed_common 17 | 18 | diffconfig: | 19 | CONFIG_TARGET_ROOTFS_PARTSIZE=512 20 | -------------------------------------------------------------------------------- /profiles/target_qsdk11_5_gl-ax1800.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: gl-ax1800 3 | target: ipq 4 | subtarget: ipq60xx_64 5 | description: Build image for the GL.iNET AX1800 6 | 7 | diffconfig: | 8 | CONFIG_TARGET_ROOTFS_UBIFS=y 9 | CONFIG_COLLECT_KERNEL_DEBUG=y 10 | CONFIG_KERNEL_DYNAMIC_DEBUG=y 11 | CONFIG_PKG_CC_STACKPROTECTOR_REGULAR=y 12 | CONFIG_KERNEL_CC_STACKPROTECTOR_REGULAR=y 13 | CONFIG_PKG_FORTIFY_SOURCE_2=y 14 | CONFIG_PKG_RELRO_FULL=y 15 | CONFIG_DEVEL=y 16 | CONFIG_LOCALMIRROR="https://www.codeaurora.org/mirrored_source/quic/qsdk/" 17 | CONFIG_GIT_MIRROR="https://source.codeaurora.org/quic/qsdk/" 18 | CONFIG_TOOLCHAINOPTS=y 19 | CONFIG_GCC_USE_VERSION_5=y 20 | CONFIG_LIBC_USE_MUSL=y 21 | CONFIG_PACKAGE_kmod-crypto-qce=y 22 | CONFIG_PACKAGE_kmod-qca-ovsmgr=n 23 | CONFIG_PACKAGE_kmod-qca-psdk=m 24 | CONFIG_PACKAGE_kmod-bootconfig=n 25 | CONFIG_PACKAGE_kmod-usb-f-qdss=n 26 | CONFIG_PACKAGE_uclibcxx=y 27 | CONFIG_WIFI_TARGET_WIFI_2_0=n 28 | CONFIG_WIFI_LOG_UTILS=y 29 | CONFIG_PACKAGE_qca-lowi=n 30 | CONFIG_PACKAGE_qca-wifi-cyp-fw-hw1-11.0-asic=y 31 | CONFIG_PACKAGE_dnsmasq-dhcpv6=n 32 | CONFIG_PACKAGE_dnsmasq_full_dnssec=n -------------------------------------------------------------------------------- /profiles/target_qsdk11_5_gl-axt1800.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: gl-axt1800 3 | target: ipq 4 | subtarget: ipq60xx_64 5 | description: Build image for the GL.iNET AXT1800 6 | 7 | packages: 8 | - libunbound-light 9 | 10 | diffconfig: | 11 | CONFIG_TARGET_ROOTFS_UBIFS=y 12 | CONFIG_COLLECT_KERNEL_DEBUG=y 13 | CONFIG_KERNEL_DYNAMIC_DEBUG=y 14 | CONFIG_PKG_CC_STACKPROTECTOR_REGULAR=y 15 | CONFIG_KERNEL_CC_STACKPROTECTOR_REGULAR=y 16 | CONFIG_PKG_FORTIFY_SOURCE_2=y 17 | CONFIG_PKG_RELRO_FULL=y 18 | CONFIG_DEVEL=y 19 | CONFIG_LOCALMIRROR="https://www.codeaurora.org/mirrored_source/quic/qsdk/" 20 | CONFIG_GIT_MIRROR="https://source.codeaurora.org/quic/qsdk/" 21 | CONFIG_TOOLCHAINOPTS=y 22 | CONFIG_GCC_USE_VERSION_5=y 23 | CONFIG_LIBC_USE_MUSL=y 24 | CONFIG_PACKAGE_kmod-crypto-qce=y 25 | CONFIG_PACKAGE_kmod-qca-ovsmgr=n 26 | CONFIG_PACKAGE_kmod-qca-psdk=m 27 | CONFIG_PACKAGE_kmod-bootconfig=n 28 | CONFIG_PACKAGE_kmod-usb-f-qdss=n 29 | CONFIG_PACKAGE_uclibcxx=y 30 | CONFIG_WIFI_TARGET_WIFI_2_0=n 31 | CONFIG_WIFI_LOG_UTILS=y 32 | CONFIG_PACKAGE_qca-lowi=n 33 | CONFIG_PACKAGE_qca-wifi-cyp-fw-hw1-11.0-asic=y 34 | CONFIG_PACKAGE_dnsmasq-dhcpv6=n 35 | CONFIG_PACKAGE_dnsmasq_full_dnssec=n 36 | -------------------------------------------------------------------------------- /profiles/target_ramips_gl-mt1300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-mt1300 3 | target: ramips 4 | subtarget: mt7621 5 | description: Build image for the GL.iNET MT1300 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 -------------------------------------------------------------------------------- /profiles/target_ramips_gl-mt300n-v2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_gl-mt300n-v2 3 | target: ramips 4 | subtarget: mt76x8 5 | description: Build image for the GL.iNET MT300N-V2 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | - name: gl_feeds_22_03 12 | uri: https://github.com/gl-inet/gl-feeds.git 13 | branch: 22.03.2 -------------------------------------------------------------------------------- /profiles/target_ramips_microuter-n300.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: microuter-n300 3 | target: ramips 4 | subtarget: mt76x8 5 | description: Build image for the GL.iNET Microuter N300 -------------------------------------------------------------------------------- /profiles/target_ramips_vixmini.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_vixmini 3 | target: ramips 4 | subtarget: mt76x8 5 | description: Build image for the GL.iNET VIXMINI -------------------------------------------------------------------------------- /profiles/target_rockchip_r2s.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: friendlyarm_nanopi-r2s 3 | target: rockchip 4 | subtarget: rockchip_armv8 5 | description: Build image for the R2S model 6 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-ax1800-5-4.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_ax1800 3 | description: Build image for the GL.iNET AX1800 4 | image: bin/targets/ipq807x/ipq60xx/openwrt-ipq807x-glinet_ax1800-squashfs-sysupgrade.tar 5 | include: 6 | - target_wlan_ap-gl-ax1800-common-5-4 7 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-ax1800-common-5-4.yml: -------------------------------------------------------------------------------- 1 | --- 2 | target: ipq807x 3 | subtarget: ipq60xx 4 | feeds: 5 | - name: ipq807x 6 | path: ../../feeds/ipq807x 7 | - name: gl_feed_common 8 | uri: https://github.com/gl-inet/gl-feeds.git 9 | branch: common 10 | - name: luci 11 | uri: https://github.com/openwrt/luci.git 12 | revision: 1c3b32dc1bec15e3076a447762b1c4f94eb75fb7 13 | 14 | include: 15 | - wifi-ax 16 | 17 | packages: 18 | - wget-ssl 19 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-ax1800-common.yml: -------------------------------------------------------------------------------- 1 | --- 2 | target: ipq807x 3 | subtarget: ipq60xx 4 | feeds: 5 | - name: gl_feeds_wlanap 6 | uri: https://github.com/gl-inet/gl-feeds.git 7 | revision: 5df1bae20bf4f2bd39168707e6363bcf8bdf5f29 8 | - name: ipq807x 9 | path: ../../feeds/ipq807x 10 | - name: wifi_ax 11 | path: ../../feeds/wifi-ax 12 | - name: gl_feed_common 13 | uri: https://github.com/gl-inet/gl-feeds.git 14 | revision: 4fd97cfe3c89f7277911375d9aa0ce85ac6d27c7 15 | - name: luci 16 | uri: https://github.com/openwrt/luci.git 17 | revision: 1c3b32dc1bec15e3076a447762b1c4f94eb75fb7 18 | 19 | packages: 20 | - wireless-regdb 21 | - wget-ssl 22 | - kmod-wireguard-backport 23 | - wpad-openssl 24 | - wireless-regdb 25 | 26 | diffconfig: | 27 | CONFIG_PACKAGE_wpad-basic=n 28 | CONFIG_PACKAGE_wpad=n 29 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-ax1800.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_ax1800 3 | description: Build image for the GL.iNET AX1800 4 | image: bin/targets/ipq807x/ipq60xx/openwrt-ipq807x-glinet_ax1800-squashfs-sysupgrade.tar 5 | include: 6 | - target_wlan_ap-gl-ax1800-common 7 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-axt1800-5-4.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_axt1800 3 | description: Build image for the GL.iNET AXT1800 4 | image: bin/targets/ipq807x/ipq60xx/openwrt-ipq807x-glinet_axt1800-squashfs-sysupgrade.tar 5 | include: 6 | - target_wlan_ap-gl-ax1800-common-5-4 7 | 8 | packages: 9 | - kmod-hwmon-pwmfan 10 | -------------------------------------------------------------------------------- /profiles/target_wlan_ap-gl-axt1800.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: glinet_axt1800 3 | description: Build image for the GL.iNET AXT1800 4 | image: bin/targets/ipq807x/ipq60xx/openwrt-ipq807x-glinet_axt1800-squashfs-sysupgrade.tar 5 | include: 6 | - target_wlan_ap-gl-ax1800-common 7 | 8 | packages: 9 | - kmod-hwmon-pwmfan 10 | - kmod-gl-sdk4-fan 11 | -------------------------------------------------------------------------------- /profiles/target_x86-64.yml: -------------------------------------------------------------------------------- 1 | --- 2 | profile: generic 3 | target: x86 4 | subtarget: 64 5 | description: Build image for the x86_64 6 | 7 | feeds: 8 | - name: gl_feed_common 9 | uri: https://github.com/gl-inet/gl-feeds.git 10 | branch: common 11 | 12 | diffconfig: | 13 | CONFIG_TARGET_IMAGES_GZIP=n 14 | -------------------------------------------------------------------------------- /profiles/v4.2.3.yml: -------------------------------------------------------------------------------- 1 | feeds: 2 | - name: gl_feed_common 3 | uri: https://github.com/gl-inet/gl-feeds.git 4 | revision: 8c1b4a9c3d13b640126d366f0a2b9f534af4cdc0 5 | - name: gl_feeds_22_03 6 | uri: https://github.com/gl-inet/gl-feeds.git 7 | revision: 195dca0e10af66665aa59e33dc17edb784379732 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: 7009319c3596ef938db7649c90d2d58f43d7d06e 11 | -------------------------------------------------------------------------------- /profiles/v4.3.2.yml: -------------------------------------------------------------------------------- 1 | feeds: 2 | - name: gl_feed_common 3 | uri: https://github.com/gl-inet/gl-feeds.git 4 | revision: 8c1b4a9c3d13b640126d366f0a2b9f534af4cdc0 5 | - name: gl_feeds_22_03 6 | uri: https://github.com/gl-inet/gl-feeds.git 7 | revision: 195dca0e10af66665aa59e33dc17edb784379732 8 | - name: glinet 9 | uri: https://gitlab.com/gl.sdk4.0/gl.router/gl-sdk4-collect.git 10 | revision: db00d3e7ce7ef74ec4da95de8fd79bd735899b52 11 | - name: mt76x8 12 | uri: https://gitlab.com/gl.sdk4.0/gl.router/mt76x8-feed.git 13 | revision: 1930f0d0b5218ef154b7ebcf28b492a3bd688b5d 14 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pyyaml 2 | --------------------------------------------------------------------------------