Thank You for your continued support and contributions!
if (button_was_held || (btn==BUTTON_MENU)) { /* If either the hold switch was on, or the Menu button was held, then try the Apple firmware */ printf("Loading original firmware..."); /* First try an apple_os.ipod file on the FAT32 partition (either in .rockbox or the root) */ rc=load_firmware(loadbuffer, "apple_os.ipod", MAX_LOADSIZE); if (rc == EOK) { printf("apple_os.ipod loaded."); return (void*)DRAM_START; } else if (rc == EFILE_NOT_FOUND) { /* If apple_os.ipod doesn't exist, then check if there is an Apple firmware image in RAM */ haveramos = (memcmp((void*)(DRAM_START+0x20),"portalplayer",12)==0); if (haveramos) { /* We have a copy of the retailos in RAM, lets just run it. */ printf("RetailOS in RAM, running"); return (void*)DRAM_START; } } else if (rc < EFILE_NOT_FOUND) { printf("Error!"); printf("Can't load apple_os.ipod:"); printf(strerror(rc)); } /* Everything failed - just loop forever */ printf("No RetailOS detected"); } else if (btn==BUTTON_PLAY) {
if (button_was_held || (btn==BUTTON_MENU)) { /* If either the hold switch was on, or the Menu button was held, then try the Apple firmware */
/* Reset settings if the hold button is turned on */ if (button_hold())#endif { splash(HZ*2, str(LANG_RESET_DONE_CLEAR)); settings_reset(); } else
Yes, but it would be advisable to leave it in or change the button as that is really for your safety should you near-brick it.
By the way, I can make a custom build for you with these tweaks enabled
Quote from: whiskers75 on December 31, 2012, 10:45:32 AMBy the way, I can make a custom build for you with these tweaks enabled Thanks, I might come back to you about that. Until now, I have successfully compiled and installed Rockbox including the bootloader, but somehow I'm commenting the wrong if-statement. It runs, but still resets if the hold-switch is set...
Although, it is true that you can ALWAYS go into disk mode and reflash.
Hi all,just a short post to tell you: it worked. Rockbox now boots flawlessly with the hold-switch on and I'm still able to boot into the original OS by holding "menu" if I really need to (that is sometimes necessary when the battery is really drained. In that case, Rockbox, which cannot charge while switched off, somehow cannot sustain itself by external power alone and keeps rebooting over and over. Booting into the original OS and charging the battery for a few minutes there does the trick...).Thanks to all for the help!
Page created in 0.068 seconds with 17 queries.