uboot-envtools: add u-boot env config for Xiaomi mi-mini
authorIvan Pavlov <AuthorReflex@gmail.com>
Wed, 2 Aug 2023 05:53:23 +0000 (08:53 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 15 Aug 2023 15:19:05 +0000 (17:19 +0200)
Add u-boot env config for Xiaomi mi-mini for using fw_printenv and fw_setenv on this board

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
(cherry picked from commit a87bc138cfccd8de06afaad81f7ba838a87fe4f8)

package/boot/uboot-envtools/files/ramips

index 5fb5c45a51bc213796103a9e45c7dbd7f3e3ab00..0abb5f6549504bdb07d0913656c4034fdc6dfa43 100644 (file)
@@ -103,6 +103,10 @@ snr,cpe-w4n-mt)
        [ -n "$idx" ] && \
                ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x1000"
        ;;
+xiaomi,miwifi-mini)
+       ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
+       ubootenv_add_uci_sys_config "/dev/mtd9" "0x0" "0x4000" "0x10000"
+       ;;
 xiaomi,mi-router-3g-v2|\
 xiaomi,mi-router-4a-gigabit|\
 xiaomi,miwifi-3c)