diff options
author | Deng Qingfang <dengqf6@mail2.sysu.edu.cn> | 2018-12-27 13:39:16 +0800 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-12-29 16:03:30 +0100 |
commit | 5580a9dd314be953fdac9827d7819058af9bea20 (patch) | |
tree | 9fc079ae117f07da16677b7ca02ab6efb174416e /target/linux/ramips/base-files/etc/board.d | |
parent | 0599cd90e185860bbddd7dea8899f29b82368050 (diff) | |
download | upstream-5580a9dd314be953fdac9827d7819058af9bea20.tar.gz upstream-5580a9dd314be953fdac9827d7819058af9bea20.tar.bz2 upstream-5580a9dd314be953fdac9827d7819058af9bea20.zip |
ramips: add support for GeHua GHL-R-001
Specs
SoC: MT7621AT
RAM: 512MiB
Flash: 32MiB MX25L25635F SPI NOR
2.4G: MT7603EN
5G: MT7612EN
Ethernet: 4x GE ports (1x WAN, 3x LAN) with link status LEDs
USB 3.0
LEDs: POWER, 5G WIFI, 2.4G WIFI, USB, Internet.
The last two ones are controlled by GPIO
UART: There are 2 UARTs (UARTLITE1/ttyS0 and UARTLITE3/ttyS1) on board.
UARTLITE1 is close to LEDs, and UARTLITE3 is close to flash chip.
The stock u-boot uses UARTLITE1 by default. Baud rate is 57600
Flash instruction
1. telnet 192.168.9.1 2317, username is "root" and password is "admin"
One can alternatively use UART to log in
2. Put OpenWrt firmware in a FAT32 USB drive, and connect it to the router
One can alternatively download the firmware via wget through Internet
3. mtd write /path/to/openwrt.bin firmware
4. reboot
Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 1 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 35a28174cc..d5238776c2 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -254,6 +254,7 @@ netgear,r6120) oy-0001) set_wifi_led "$boardname:green:wifi" ;; +gehua,ghl-r-001|\ pbr-m1) ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2" ;; 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 f958ac2bd0..2dbd891574 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -142,6 +142,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; + gehua,ghl-r-001) + ucidef_add_switch "switch0" \ + "0:lan" "1:lan" "2:lan" "4:wan" "6@eth0" + ;; alfa-network,awusfree1|\ cs-qr10|\ d105|\ |