aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-06-21 00:56:38 +0800
committerMathias Kresin <dev@kresin.me>2018-06-21 22:00:02 +0200
commited40173dfcbc8a870d1747dea3f9a265d0205369 (patch)
treefe5359f4869f0974cd8f29ef12d4eb30c119385e /target/linux/ramips/base-files/etc/board.d/02_network
parentf9a42ae2d707b63b2bbe72945a2816da7d4fe30c (diff)
downloadupstream-ed40173dfcbc8a870d1747dea3f9a265d0205369.tar.gz
upstream-ed40173dfcbc8a870d1747dea3f9a265d0205369.tar.bz2
upstream-ed40173dfcbc8a870d1747dea3f9a265d0205369.zip
ramips: Add support for Phicomm K2G
Specification: - SoC: MediaTek MT7620A - Flash: 8 MB - RAM: 64 MB - Ethernet: 4 FE ports and 1 GE port (RTL8211F on port 5) - Wireless radio: MT7620 for 2.4G and MT7612E for 5G, both equipped with external PA. - UART: 1 x UART on PCB - 57600 8N1 Flash instruction: The U-boot is based on Ralink SDK so we can flash the firmware using UART: 1. Configure PC with a static IP address and setup an TFTP server. 2. Put the firmware into the tftp directory. 3. Connect the UART line as described on the PCB. 4. Power up the device and press 2, follow the instruction to set device and tftp server IP address and input the firmware file name. U-boot will then load the firmware and write it into the flash. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/02_network')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 6d9b28f2c5..d2c15f8f46 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -309,6 +309,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"1:lan:2" "2:lan:1" "4:wan" "6@eth0"
;;
+ phicomm,k2g)
+ ucidef_add_switch "switch0" \
+ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5:wan" "6@eth0"
+ ;;
re350-v1)
ucidef_add_switch "switch0" \
"0:lan" "6@eth0"
@@ -507,7 +511,8 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(mtd_get_mac_binary factory 46)
;;
- oy-0001)
+ oy-0001|\
+ phicomm,k2g)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
;;