diff options
-rw-r--r-- | bootloader/main-pp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c index 99200da1b9..86e9868554 100644 --- a/bootloader/main-pp.c +++ b/bootloader/main-pp.c | |||
@@ -620,6 +620,22 @@ void* main(void) | |||
620 | error(0, 0); | 620 | error(0, 0); |
621 | 621 | ||
622 | } else { | 622 | } else { |
623 | #if 0 /* e200: enable to be able to dump the hidden partition */ | ||
624 | if(btn & BUTTON_UP) | ||
625 | { | ||
626 | int fd; | ||
627 | pinfo = disk_partinfo(1); | ||
628 | fd = open("/part.bin", O_CREAT|O_RDWR); | ||
629 | char sector[512]; | ||
630 | for(i=0; i<40960; i++){ | ||
631 | printf("dumping sector %d", i); | ||
632 | lcd_update(); | ||
633 | ata_read_sectors(pinfo->start + i,1 , sector); | ||
634 | write(fd,sector,512); | ||
635 | } | ||
636 | close(fd); | ||
637 | } | ||
638 | #endif | ||
623 | printf("Loading Rockbox..."); | 639 | printf("Loading Rockbox..."); |
624 | rc=load_mi4(loadbuffer, BOOTFILE, MAX_LOADSIZE); | 640 | rc=load_mi4(loadbuffer, BOOTFILE, MAX_LOADSIZE); |
625 | if (rc < EOK) { | 641 | if (rc < EOK) { |