summaryrefslogtreecommitdiffstats
path: root/src/console.c
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2008-12-08 18:13:36 +0100
committerpancake <pancake@dazo>2008-12-08 18:13:36 +0100
commit5a96158322b4b7e8289dfd429af3e7b15a99d173 (patch)
treed095a25f2bf1485132895c1525786fa34f71f5e8 /src/console.c
parent3d427bfd7740731bfc203b047d557af564975cf6 (diff)
download0xFFFF-5a96158322b4b7e8289dfd429af3e7b15a99d173.tar.bz2
* 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.
Diffstat (limited to 'src/console.c')
-rw-r--r--src/console.c7
1 files changed, 6 insertions, 1 deletions
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();