* Fix in fpid for proper JFFS2 identification

* Add new flag '-c' that makes 0xFFFF run as a shell
* Split the connect_via_usb() code from main()
* Add console handler for shell like usage of the flasher
This commit is contained in:
pancake committed 2007-06-10 05:41:50 +02:00
1 parent ec71146727
commit c46961d511
5 files changed
+175 -41

No files matched your search

+2 -1
View File
@@ -64,7 +64,8 @@ char *fpid_file(char *filename)
if (!memcmp(b+0x00, "\x00\x00\xa0\xe1\x00\x00\xa0\xe1", 8))
return pieces[PIECE_KERNEL];
else
if (!memcmp(b+0x00, "\x85\x19\x01\xe0", 4)) {
// JFFS2 MAGIC
if (!memcmp(b+0x00, "\x85\x19", 2)) { //\x01\xe0", 4)) {
/*/ is jffs2 */
if (size < 0x300000)
return pieces[PIECE_INITFS];