  	case CMD_PART_INFO_NUMBER:
  		snprintf(buf, sizeof(buf), "0x%x", part);
  		break;
-@@ -177,6 +181,11 @@ static int do_part_size(int argc, char * const argv[])
+@@ -177,7 +181,12 @@ static int do_part_size(int argc, char *const argv[])
  	return do_part_info(argc, argv, CMD_PART_INFO_SIZE);
  }
  
+-static int do_part_number(int argc, char *const argv[])
 +static int do_part_block(int argc, char * const argv[])
 +{
 +	return do_part_info(argc, argv, CMD_PART_INFO_BLOCK);
 +}
 +
- static int do_part_number(int argc, char * const argv[])
++static int do_part_number(int argc, char * const argv[])
  {
  	return do_part_info(argc, argv, CMD_PART_INFO_NUMBER);
-@@ -195,6 +204,8 @@ static int do_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+ }
+@@ -196,6 +205,8 @@ static int do_part(struct cmd_tbl *cmdtp, int flag, int argc,
  		return do_part_start(argc - 2, argv + 2);
  	else if (!strcmp(argv[1], "size"))
  		return do_part_size(argc - 2, argv + 2);

From f10a2fabde406a47c68ba22b47d64bf8133f88b0 Mon Sep 17 00:00:00 2001
From: Razvan Becheriu <razvan@isc.org>
Date: Sat, 26 Oct 2019 20:59:28 +0300
Subject: [PATCH] added block command which returns the block size

---
 cmd/part.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/cmd/part.c b/cmd/part.c
index 5e4e45ca6d..d78d914e7a 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -25,6 +25,7 @@

 	else if (!strcmp(argv[1], "number"))
 		return do_part_number(argc - 2, argv + 2);
 
@@ -220,6 +231,9 @@ U_BOOT_CMD(
 	"part size <interface> <dev> <part> <varname>\n"
 	"    - set environment variable to the size of the partition (in blocks)\n"
 	"      part can be either partition number or partition name\n"
