summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig14
-rw-r--r--cmd/bdinfo.c4
-rw-r--r--cmd/gpt.c2
-rw-r--r--cmd/itest.c3
4 files changed, 21 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index ef53156..25e3b78 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -338,6 +338,20 @@ config CMD_CRC32
help
Compute CRC32.
+config CMD_MD5SUM
+ bool "md5sum"
+ default n
+ select MD5
+ help
+ Compute MD5 checksum.
+
+config MD5SUM_VERFIY
+ bool "md5sum -v"
+ default n
+ depends on CMD_MD5SUM
+ help
+ Add -v option to verify data against an MD5 checksum.
+
config LOOPW
bool "loopw"
help
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index ae3027a..19b8fd8 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -392,6 +392,10 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,
gd->arch.secure_ram & MEM_RESERVE_SECURE_ADDR_MASK);
}
#endif
+#ifdef CONFIG_RESV_RAM
+ if (gd->arch.resv_ram)
+ print_num("Reserved ram", gd->arch.resv_ram);
+#endif
#if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH)
print_eths();
#endif
diff --git a/cmd/gpt.c b/cmd/gpt.c
index 196f506..3e98821 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -54,7 +54,7 @@ static int extract_env(const char *str, char **env)
if (e == NULL) {
#ifdef CONFIG_RANDOM_UUID
debug("%s unset. ", str);
- gen_rand_uuid_str(uuid_str, UUID_STR_FORMAT_STD);
+ gen_rand_uuid_str(uuid_str, UUID_STR_FORMAT_GUID);
setenv(s, uuid_str);
e = getenv(s);
diff --git a/cmd/itest.c b/cmd/itest.c
index 60626c7..e1896d9 100644
--- a/cmd/itest.c
+++ b/cmd/itest.c
@@ -80,7 +80,8 @@ static long evalexp(char *s, int w)
l = simple_strtoul(s, NULL, 16);
}
- return l & ((1UL << (w * 8)) - 1);
+ /* avoid overflow on mask calculus */
+ return (w >= sizeof(long)) ? l : (l & ((1UL << (w * 8)) - 1));
}
static char * evalstr(char *s)