Welcome to the Rockbox Technical Forums!
I don't even know if you can have two different apple firmwares on the same ipod, but changing two dirnames and inverting the firmware boot selection should be pretty easy.
pinfo = disk_partinfo(1); printf("Partition 1: 0x%02x %ld MB", pinfo->type, pinfo->size / 2048); if (button_was_held) { printf("Loading Alternative Firmware..."); rc=load_raw_firmware(loadbuffer, "/alternativeos.bin"); if (rc == EOK) { return (void*)DRAM_START; } else if (rc == EFILE_NOT_FOUND) { printf("Failed to load Alternative Firmware"); printf("Loading Original Firmware..."); haveretailos = (memcmp((void*)(DRAM_START+0x20),"portalplayer",12)==0); if (haveretailos) { return (void*)DRAM_START; } } else if (rc < EFILE_NOT_FOUND) { printf("No firmware detected"); } } else if (btn==BUTTON_MENU) { printf("Loading Rockbox..."); rc=load_firmware(loadbuffer, BOOTFILE, MAX_LOADSIZE); if (rc < EOK) { printf("Error!"); printf("Can't load rockbox.ipod:"); printf(strerror(rc)); } else { return (void*)DRAM_START; } } else { printf("Loading Original Firmware..."); haveretailos = (memcmp((void*)(DRAM_START+0x20),"portalplayer",12)==0); if (haveretailos) { return (void*)DRAM_START; } } else if (rc < EFILE_NOT_FOUND) { printf("No firmware detected"); } }
I also don't get the point in renaming folders upon startup -- Rockbox can access any folder, so why rename them?(thus music). And for the original firmware you would only break it finding its database (thus music).
Page created in 0.101 seconds with 14 queries.