diff options
author | Ataberk Özen <ataberkozen123@gmail.com> | 2020-08-19 21:43:54 +0300 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-11-25 19:34:13 +0100 |
commit | 4287f739894ba2f95aca107e785b41a053c21315 (patch) | |
tree | 0ee2cf09b7e3f489a96c75597f34b8d74c8faca1 /target/linux/ramips/mt76x8 | |
parent | 1b493aabb972af345fd286097879e3ae8e183cf9 (diff) | |
download | upstream-4287f739894ba2f95aca107e785b41a053c21315.tar.gz upstream-4287f739894ba2f95aca107e785b41a053c21315.tar.bz2 upstream-4287f739894ba2f95aca107e785b41a053c21315.zip |
ramips: add support for Xiaomi Mi Router 4C
This commit adds support for Xiaomi's Mi Router 4C device.
Specifications:
- CPU: MediaTek MT7628AN (580MHz)
- Flash: 16MB
- RAM: 64MB DDR2
- 2.4 GHz: IEEE 802.11b/g/n with Integrated LNA and PA
- Antennas: 4x external single band antennas
- WAN: 1x 10/100M
- LAN: 2x 10/100M
- LEDs: 2x yellow/blue. Programmable (labelled as power on case)
- Non-programmable (shows WAN activity)
- Button: Reset
How to install:
1- Use OpenWRTInvasion to gain telnet and ftp access.
2- Push openwrt firmware to /tmp/ using ftp.
3- Connect to router using telnet. (IP: 192.168.31.1 -
Username: root - No password)
4- Use command "mtd -r write /tmp/firmware.bin OS1" to flash into
the router..
5- It takes around 2 minutes. After that router will restart itself
to OpenWrt.
Signed-off-by: Ataberk Özen <ataberkozen123@gmail.com>
[wrap commit message, bump PKG_RELEASE for uboot-envtools, remove
dts-v1 from DTS, fix LED labels]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt76x8')
-rwxr-xr-x | target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 5 | ||||
-rwxr-xr-x | target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index f4e3fcacb5..6f0078c70a 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -137,6 +137,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "4:lan:1" "2:lan:2" "0:wan" "6@eth0" ;; + xiaomi,mi-router-4c) + ucidef_add_switch "switch0" \ + "4:lan:1" "2:lan:2" "1:wan" "6@eth0" + ;; xiaomi,miwifi-nano) ucidef_add_switch "switch0" \ "0:lan:2" "2:lan:1" "4:wan" "6@eth0" @@ -234,6 +238,7 @@ ramips_setup_macs() label_mac=$(mtd_get_mac_binary factory 0x4) wan_mac=$(mtd_get_mac_binary factory 0x28) ;; + xiaomi,mi-router-4c|\ xiaomi,mir4a-100m) wan_mac=$(mtd_get_mac_binary factory 0x4) ;; diff --git a/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount b/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount index 3c21433cc5..23f1e71b41 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount +++ b/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount @@ -8,6 +8,7 @@ boot() { [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\ echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s - ;; + xiaomi,mi-router-4c|\ xiaomi,miwifi-nano) fw_setenv flag_boot_success 1 ;; |