summaryrefslogtreecommitdiffstats
path: root/src/fpid.c
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-06-10 05:41:50 +0200
committerpancake <pancake@dazo>2007-06-10 05:41:50 +0200
commitc46961d511ce87859e3bdd18ecf42ccd70ca525a (patch)
tree56b9117ff9a117baed25c2d1dd8fc3bc5280ad86 /src/fpid.c
parentec71146727eb352c57e0ddb5b38858f4a7780c6b (diff)
download0xFFFF-c46961d511ce87859e3bdd18ecf42ccd70ca525a.tar.bz2
* 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
Diffstat (limited to 'src/fpid.c')
-rw-r--r--src/fpid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fpid.c b/src/fpid.c
index 93bf205..af2724d 100644
--- a/src/fpid.c
+++ b/src/fpid.c
@@ -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];