From 5a96158322b4b7e8289dfd429af3e7b15a99d173 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 8 Dec 2008 18:13:36 +0100 Subject: * Implement and test direct file FIASCO flash - openfiasco receives options for grepping for pieces and be verbose - fixed flashing order using grep options xloader, secondary, kernel, initfs, rootfs - Tested and working - Added parser for the hw revision string * Autodetect device hw revision and setup the subversion string on the fly. --- src/console.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/console.c') diff --git a/src/console.c b/src/console.c index 3206903..7098f36 100644 --- a/src/console.c +++ b/src/console.c @@ -46,8 +46,13 @@ void cmd_help(char *line) void cmd_info(char *line) { + char *p, str[128]; get_sw_version(); - get_hw_revision(); // get hardware revision: + get_hw_revision(str, 128); // get hardware revision: + p = strstr(str, "hw_rev:"); + if (p) // TODO: delimit string by comma + printf("SubVersionString autodetected: '%s'\n", p+7); + else printf("SubVersionString autodetected: (error)\n"); get_root_device(); // only for flashing get_usb_mode(); get_rd_mode(); -- cgit v1.2.3