From 9169482f640ca840ff478ddd03ee2cb275d21c23 Mon Sep 17 00:00:00 2001 From: Sungbo Eo Date: Fri, 27 Sep 2019 00:21:25 +0900 Subject: ramips: add support for ipTIME A1004ns ipTIME A1004ns is a 2.4/5GHz band AC750 router, based on MediaTek MT7620A. Specifications: - SoC: MT7620A - RAM: DDR2 128MB - Flash: SPI NOR 16MB - WiFi: - 2.4GHz: SoC internal - 5GHz: MT7610EN - Ethernet: 5x 10/100/1000Mbps - Switch: MT7530BU - USB: 1x 2.0 - UART: - J2: 3.3V, TX, RX, GND (3.3V is the square pad) / 57600 8N1 Installation via web interface: 1. Flash **initramfs** image through the stock web interface. 2. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Revert to stock firmware: 1. Perform sysupgrade with stock image. Signed-off-by: Sungbo Eo --- target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/mt7620') diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index 44a9db6ece..8ae50b3df5 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -143,7 +143,8 @@ ramips_setup_interfaces() "0:lan" "1:lan" "5:wan" "6@eth0" ;; iodata,wn-ac1167gr|\ - iodata,wn-ac733gr3) + iodata,wn-ac733gr3|\ + iptime,a1004ns) ucidef_add_switch "switch0" ucidef_add_switch_attr "switch0" "enable" "false" ucidef_add_switch "switch1" \ @@ -312,6 +313,9 @@ ramips_setup_macs() iodata,wn-ac733gr3) wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr) ;; + iptime,a1004ns) + wan_mac=$(mtd_get_mac_binary u-boot 0x1fc40) + ;; iptime,a104ns) wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2) ;; -- cgit v1.2.3