Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Dec 21, 2024
1 parent a48a7a8 commit 53916c5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "ipq8074.dtsi"
#include "ipq8074-ac-cpu.dtsi"
#include "ipq8074-ess.dtsi"
#include "ipq8074-nss.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

Expand Down Expand Up @@ -353,4 +352,4 @@
&dp6 {
status = "okay";
phy-handle = <&qca8081_28>;
};
};
38 changes: 24 additions & 14 deletions devices/qualcommax_ipq807x/patches/ap8220.patch
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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 53916c5

Please sign in to comment.