From d974c3c39237c8e94bb3a51d3511d18dea01043e Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Wed, 9 Dec 2015 10:32:41 +1100 Subject: Display VERSION partition info on BMC machines On supported platforms read the VERSION partition on startup and display the available versions strings in the System Information screen. This adds a skeleton hostboot.c to support possible additional BMC platform support. Signed-off-by: Sam Mendoza-Jonas --- discover/hostboot.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 discover/hostboot.c (limited to 'discover/hostboot.c') diff --git a/discover/hostboot.c b/discover/hostboot.c new file mode 100644 index 0000000..9a27b0f --- /dev/null +++ b/discover/hostboot.c @@ -0,0 +1,26 @@ +#include +#include +#include + +#include +#include +#include + +#include "hostboot.h" + +void hostboot_load_versions(struct system_info *info) +{ + int n = 0; + + n = flash_parse_version(info, &info->platform_current, true); + if (n < 0) + pb_log("Failed to read platform versions for current side\n"); + else + info->n_current = n; + + n = flash_parse_version(info, &info->platform_other, false); + if (n < 0) + pb_log("Failed to read platform versions for other side\n"); + else + info->n_other = n; +} -- cgit v1.1