Skip to content

Commit

Permalink
ipq40xx: init G-DOCK 2.0 (P&W R619AC) support
Browse files Browse the repository at this point in the history
support p2w_r619ac
support p2w_r619ac-128m

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
  • Loading branch information
ptpt52 committed Nov 24, 2019
1 parent 1a2e015 commit c1ac0ca
Show file tree
Hide file tree
Showing 10 changed files with 403 additions and 3 deletions.
2 changes: 2 additions & 0 deletions package/firmware/ipq-wifi/Makefile
Expand Up @@ -26,6 +26,7 @@ endef
ALLWIFIBOARDS:= \
avm_fritzrepeater-1200 \
linksys_ea8300 \
p2w_r619ac \
qxwlan_e2600ac

ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
Expand Down Expand Up @@ -91,6 +92,7 @@ endef

$(eval $(call generate-ipq-wifi-package,avm_fritzrepeater-1200,AVM FRITZRepeater 1200))
$(eval $(call generate-ipq-wifi-package,linksys_ea8300,Linksys EA8300))
$(eval $(call generate-ipq-wifi-package,p2w_r619ac,P&W R619AC))
$(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac,Qxwlan E2600AC))

$(foreach PACKAGE,$(ALLWIFIPACKAGES),$(eval $(call BuildPackage,$(PACKAGE))))
Binary file added package/firmware/ipq-wifi/board-p2w_r619ac.bin
Binary file not shown.
6 changes: 5 additions & 1 deletion target/linux/ipq40xx/base-files/etc/board.d/02_network
Expand Up @@ -61,6 +61,8 @@ ipq40xx_setup_interfaces()
ucidef_add_switch "switch0" \
"0t@eth0" "3:lan" "4:lan" "5:wan"
;;
p2w,r619ac-128m|\
p2w,r619ac|\
zyxel,nbg6617)
ucidef_add_switch "switch0" \
"0t@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan:5"
Expand All @@ -77,7 +79,9 @@ ipq40xx_setup_macs()

case "$board" in
asus,rt-acrh17|\
asus,rt-ac58u)
asus,rt-ac58u|\
p2w,r619ac-128m|\
p2w,r619ac)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
Expand Down
Expand Up @@ -51,6 +51,8 @@ case "$FIRMWARE" in
alfa-network,ap120c-ac |\
glinet,gl-b1300 |\
linksys,ea6350v3 |\
p2w,r619ac-128m |\
p2w,r619ac |\
qcom,ap-dk01.1-c1)
caldata_extract "ART" 0x1000 0x2f20
;;
Expand Down Expand Up @@ -117,6 +119,8 @@ case "$FIRMWARE" in
alfa-network,ap120c-ac |\
glinet,gl-b1300 |\
linksys,ea6350v3 |\
p2w,r619ac-128m |\
p2w,r619ac |\
qcom,ap-dk01.1-c1)
caldata_extract "ART" 0x5000 0x2f20
;;
Expand Down
4 changes: 3 additions & 1 deletion target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
Expand Up @@ -193,7 +193,9 @@ platform_do_upgrade() {
asus_nand_upgrade_tar 20951040 "$1"
fi
;;
compex,wpj419)
compex,wpj419|\
p2w,r619ac-128m|\
p2w,r619ac)
nand_do_upgrade "$1"
;;
linksys,ea6350v3 |\
Expand Down
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "qcom-ipq4019-r619ac.dtsi"

/ {
model = "P&W R619AC 128M";
compatible = "p2w,r619ac-128m";
};

&kernel_unused {
label = "kernel";
};

&rootfs_part1 {
label = "ubi";
reg = <0x0 0x8000000>;
};

/delete-node/ &rootfs_part2;
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "qcom-ipq4019-r619ac.dtsi"

/ {
model = "P&W R619AC";
compatible = "p2w,r619ac";

chosen {
bootargs-append = " root=/dev/ubiblock0_1 rootfstype=squashfs";
};
};

0 comments on commit c1ac0ca

Please sign in to comment.