uboot-envtools: add settings for Synology DS213j
authorDaniel Golle <daniel@makrotopia.org>
Sun, 19 Nov 2023 22:04:02 +0000 (22:04 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 20 Nov 2023 13:40:17 +0000 (13:40 +0000)
Add settings to be able to access the U-Boot environment on the
Synology DS213j NAS.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-envtools/files/mvebu

index 63b5132608a694d1da0b7277ce1d8505c0d2b27b..c4ce76cf24087baa41e4a5f79b20ba67f2c2f781 100644 (file)
@@ -68,6 +68,10 @@ methode,edpu)
        ubootenv_add_uci_config "/dev/mtd0" "0x180000" "0x10000" "0x10000"
        fi
        ;;
+synology,ds213j)
+       idx="$(find_mtd_index u-boot-env)"
+       [ -n "$idx" ] && ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
+       ;;
 esac
 
 config_load ubootenv