diff options
-rw-r--r-- | rbutil/sansapatcher/sansapatcher.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c index 55f5245bd9..e96b202fed 100644 --- a/rbutil/sansapatcher/sansapatcher.c +++ b/rbutil/sansapatcher/sansapatcher.c | |||
@@ -540,6 +540,9 @@ static int load_original_firmware(struct sansa_t* sansa, unsigned char* buf, str | |||
540 | 540 | ||
541 | set_mi4header(buf,mi4header); | 541 | set_mi4header(buf,mi4header); |
542 | 542 | ||
543 | /* Add Rockbox-specific header */ | ||
544 | memcpy(buf+0x1f8,"RBOFe200",8); | ||
545 | |||
543 | return 0; | 546 | return 0; |
544 | } | 547 | } |
545 | 548 | ||
@@ -604,7 +607,8 @@ int sansa_add_bootloader(struct sansa_t* sansa, char* filename, int type) | |||
604 | } | 607 | } |
605 | 608 | ||
606 | if (memcmp(sectorbuf+0x200+0x1f8,"RBBL",4)!=0) { | 609 | if (memcmp(sectorbuf+0x200+0x1f8,"RBBL",4)!=0) { |
607 | fprintf(stderr,"[ERR] Not a Rockbox bootloader, aborting.\n"); | 610 | fprintf(stderr,"[ERR] %s is not a Rockbox bootloader, aborting.\n", |
611 | filename); | ||
608 | return -1; | 612 | return -1; |
609 | } | 613 | } |
610 | } else { | 614 | } else { |