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/flash.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/flash.c')
-rw-r--r-- | src/flash.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |