diff options
author | Tom Rini <trini@konsulko.com> | 2022-04-15 08:04:16 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-15 08:04:16 -0400 |
commit | 74ae732d80f54540d3a244e0e28e66d263e6a57e (patch) | |
tree | e0ac006d78607573b9e00c1213a8e7bb56cf15a0 /cmd/ubi.c | |
parent | 42a2d90cf51acea56bf19006ed5688c93c099ff0 (diff) | |
parent | b8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee (diff) |
Merge branch '2022-04-14-assorted-updates'
- Apple M1 Ultra support, TI power domain fix, atsha204a big endian
support, LED cleanups and support for default-state, increase malloc
pool on sandbox, ubifs bugfix, further serial cleanup / semihost
support, fix a few cases around enabling/disabling FS support in SPL,
clean up duplication of table_compute_checksum()
Diffstat (limited to 'cmd/ubi.c')
-rw-r--r-- | cmd/ubi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/ubi.c b/cmd/ubi.c index fe8ac58bac0..fccbfdf48d9 100644 --- a/cmd/ubi.c +++ b/cmd/ubi.c @@ -511,6 +511,11 @@ int ubi_part(char *part_name, const char *vid_header_offset) struct mtd_info *mtd; int err = 0; + if (ubi && ubi->mtd && !strcmp(ubi->mtd->name, part_name)) { + printf("UBI partition '%s' already selected\n", part_name); + return 0; + } + ubi_detach(); mtd_probe_devices(); |