Commit 66de1d15 authored by Adam Wujek's avatar Adam Wujek

sw/petalinux/diot-util: print uboot version

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent cc39a36a
Pipeline #3785 passed with stage
in 43 minutes and 37 seconds
......@@ -34,6 +34,7 @@
#define DTB_MODEBOOT_FILE "/sys/firmware/devicetree/base/chosen/modeboot"
#define DTB_UIMAGE_SOURCE_FILE "/sys/firmware/devicetree/base/chosen/uimage_source"
#define DTB_RESET_REASON_FILE "/sys/firmware/devicetree/base/chosen/reset_reason"
#define DTB_UBOOT_VERSION_FILE "/sys/firmware/devicetree/base/chosen/uboot_version"
#define READLINE_PROMPT "diot_util> "
......@@ -113,12 +114,15 @@ int cmd_help(char *params)
int cmd_version(char *params)
{
char buff[100];
printf("diot_util version information:\n");
printf("HW version: %d\n", SB_VER);
printf("GIT commit id: %s\n", __GIT_VER__);
printf("Build date: %s\n", __DATE__);
printf("Build time: %s\n", __TIME__);
printf("Built by: %s\n", __GIT_USR__);
printf("Uboot version: %s\n", get_file_content(DTB_UBOOT_VERSION_FILE, buff, sizeof(buff)));
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment