summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Kconfig6
-rw-r--r--commands/ubi.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 7cc71298b7..ede1b3aa7e 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -401,13 +401,13 @@ config CMD_FLASH
config CMD_UBI
tristate
- default y if UBI
- depends on UBI
+ default y if MTD_UBI
+ depends on MTD_UBI
prompt "ubimkvol, ubirmvol, ubiattach"
config CMD_UBIFORMAT
tristate
- depends on UBI
+ depends on MTD_UBI
select LIBMTD
select LIBSCAN
select LIBUBIGEN
diff --git a/commands/ubi.c b/commands/ubi.c
index 5b57d0bd6c..2041df3fd5 100644
--- a/commands/ubi.c
+++ b/commands/ubi.c
@@ -76,7 +76,7 @@ static int do_ubiattach(int argc, char *argv[])
goto err;
}
- ret = ubi_attach_mtd_dev(user.mtd, UBI_DEV_NUM_AUTO, 0);
+ ret = ubi_attach_mtd_dev(user.mtd, UBI_DEV_NUM_AUTO, 0, 20);
if (ret < 0)
printf("failed to attach: %s\n", strerror(-ret));
else