diff options
author | pancake <pancake@dazo> | 2008-12-08 18:13:36 +0100 |
---|---|---|
committer | pancake <pancake@dazo> | 2008-12-08 18:13:36 +0100 |
commit | 5a96158322b4b7e8289dfd429af3e7b15a99d173 (patch) | |
tree | d095a25f2bf1485132895c1525786fa34f71f5e8 /src/console.c | |
parent | 3d427bfd7740731bfc203b047d557af564975cf6 (diff) | |
download | 0xFFFF-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.c | 7 |
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(); |