From 7a21c85f7013d75bc1d30a62534a99d5f697f085 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Tue, 3 Sep 2019 23:58:07 +0800 Subject: 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 --- target/linux/ramips/base-files/etc/init.d/bootcount | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/ramips/base-files') 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 } -- cgit v1.2.3