diff --git a/cmd/Kconfig b/cmd/Kconfig
index 87ee2ea613f0b54120c205057ec06b4543ddfb71..92576f57348facdc94838050916026297eeb92a1 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1255,6 +1255,7 @@ config CMD_UBI
 	tristate "Enable UBI - Unsorted block images commands"
 	select CRC32
 	select MTD_UBI
+	select CMD_MTDPARTS
 	default y if NAND_SUNXI
 	help
 	  UBI is a software layer above MTD layer which admits use of LVM-like