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/flash.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/flash.c') diff --git a/src/flash.c b/src/flash.c index 0915f4c..94c7f29 100644 --- a/src/flash.c +++ b/src/flash.c @@ -86,6 +86,16 @@ void flash_image(const char *filename, const char *piece, const char *version) unsigned char nolofiller[128]; ushort hash = do_hash_file(filename); + if (piece == NULL) { + //exit(1); + piece = fpid_file(filename); + if (piece == NULL) { + printf("Unknown piece type\n"); + return; + } + printf("Piece type: %s\n", piece); + } + if (version) vlen = strlen(version)+1; -- cgit v1.2.3