-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
From 21bbc6fbed2122945184500e4fdefe2598c1a1e5 Mon Sep 17 00:00:00 2001 | ||
From: coolsnowwolf <[email protected]> | ||
Date: Wed, 16 Oct 2024 23:10:43 +0800 | ||
Subject: [PATCH] ipq807x: add support for Aliyun AP8220 | ||
--- a/package/boot/uboot-envtools/files/qualcommax_ipq807x | ||
+++ b/package/boot/uboot-envtools/files/qualcommax_ipq807x | ||
@@ -19,7 +19,8 @@ netgear,wax630) | ||
;; | ||
compex,wpq873|\ | ||
edgecore,eap102|\ | ||
-zyxel,nbg7815) | ||
+zyxel,nbg7815|\ | ||
+aliyun,ap8220) | ||
idx="$(find_mtd_index 0:appsblenv)" | ||
[ -n "$idx" ] && \ | ||
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1" | ||
|
||
--- | ||
target/linux/qualcommax/image/ipq807x.mk | 13 + | ||
.../qualcommax/ipq807x/base-files/etc/board.d/02_network | 3 + | ||
.../base-files/lib/upgrade/platform.sh | 4 + | ||
4 files changed, 376 insertions(+) | ||
|
||
diff --git a/target/linux/qualcommax/image/ipq807x.mk b/target/linux/qualcommax/image/ipq807x.mk | ||
index 6406d001311f21..05b0ff8c125f16 100644 | ||
--- a/target/linux/qualcommax/image/ipq807x.mk | ||
+++ b/target/linux/qualcommax/image/ipq807x.mk | ||
@@ -33,6 +33,19 @@ define Build/wax6xx-netgear-tar | ||
|
@@ -46,8 +46,18 @@ index 6406d001311f21..05b0ff8c125f16 100644 | |
asus,rt-ax89x) | ||
ucidef_set_interfaces_lan_wan "10g-sfp 10g-copper lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8" "wan" | ||
;; | ||
diff --git a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh | ||
index 4c8a38c261c972..b0c42dde058a5d 100644 | ||
@@ -97,7 +100,10 @@ ipq807x_setup_macs() | ||
[ "$wan_mac" != "00:00:00:00:00:00" ] || wan_mac="$(get_mac_binary "$(find_mtd_chardev mac)" 0x20000)" | ||
lan_mac="$(macaddr_add "$wan_mac" 1)" | ||
label_mac="$wan_mac" | ||
- | ||
+ ;; | ||
+ aliyun,ap8220) | ||
+ wan_mac=$(cat /dev/mtd12 | head -n 4 | grep "product.mac" | awk -F " " '{print $2}') | ||
+ lan_mac=$(macaddr_add "$wan_mac" 1) | ||
;; | ||
esac | ||
|
||
--- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh | ||
+++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh | ||
@@ -140,6 +140,10 @@ platform_do_upgrade() { | ||
|