aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2019-09-03 23:58:07 +0800
committerChuanhong Guo <gch981213@gmail.com>2019-09-04 19:26:01 +0800
commit7a21c85f7013d75bc1d30a62534a99d5f697f085 (patch)
treee3fb739dd8467f6961fea1cbbf36e903d4f0cd2d /target/linux/ramips/base-files
parent7290963d0992b9aa412e0066dcf721857fbd40f7 (diff)
downloadupstream-7a21c85f7013d75bc1d30a62534a99d5f697f085.tar.gz
upstream-7a21c85f7013d75bc1d30a62534a99d5f697f085.tar.bz2
upstream-7a21c85f7013d75bc1d30a62534a99d5f697f085.zip
ramips: improve support for Xiaomi Miwifi Nano
This patch does the following things: 1. mark u-boot-env writable 2. add bootcount support Currently, u-boot has a flag_boot_success env variable to reset. Also reset it in our firmware to follow the behavior in vendor's firmware. 3. disable usb support This router doesn't have usb port at all. 4. increase spi clock to 40MHz 5. fix pinmux groups Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/bootcount3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount
index 807801a34f..ad3dd97402 100755
--- a/target/linux/ramips/base-files/etc/init.d/bootcount
+++ b/target/linux/ramips/base-files/etc/init.d/bootcount
@@ -7,5 +7,8 @@ boot() {
samknows,whitebox-v8)
fw_setenv bootcount 0
;;
+ xiaomi,miwifi-nano)
+ fw_setenv flag_boot_success 1
+ ;;
esac
}