Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: codyteam on August 27, 2019, 11:36:35 AM

Title: Remove OF on iPod Classic 120GB
Post by: codyteam on August 27, 2019, 11:36:35 AM
Is there a possibility to remove the OF on the iPod Classic? I don't really like how when I plug it in while its off, it auto boots the OF, cluttering my iPod. Is it possible to be removed?
Title: Re: Remove OF on iPod Classic 120GB
Post by: bobba_mosfet on August 27, 2019, 04:09:30 PM
If you had searched thoroughly you might have found this:
http://forums.rockbox.org/index.php/topic,42520.0.html

...

Here is the .patch file I used when I made these modifications myself:
Code: [Select]
--- ipod6g.c 2019-05-13 23:17:17.212288000 +0100
+++ "ipod6g (copy 1).c" 2019-05-13 23:47:38.047876458 +0100
@@ -372,12 +372,13 @@
             btn = button_read_device();
         }
         /* Enter OF, diagmode and diskmode using ONB */
-        if ((btn == BUTTON_MENU)
+/*        if ((btn == BUTTON_MENU)
                 || (btn == (BUTTON_SELECT|BUTTON_LEFT))
                 || (btn == (BUTTON_SELECT|BUTTON_PLAY))) {
             fw = FW_APPLE;
             rc = kernel_launch_onb();
         }
+*/
     }
 
     lcd_init();
@@ -409,12 +410,13 @@
         filesystem_init();
 
         /* We wait until HDD spins up to check for hold button */
-        if (button_hold()) {
+/*        if (button_hold()) {
             fw = FW_APPLE;
             printf("Executing OF...");
             ata_sleepnow();
             rc = kernel_launch_onb();
         }
+*/
     }
 
     if (rc != 0) {

I have attached the binary bootloader I compiled some time ago (rename the fake jpg extension to .ipod):
Quote
bootloader-ipod6g.ipod: pre-compiled bootloader modified to prevent launching official firmware as this corrupts all disks > ~127GB (flash with # mk6gboot --bl-inst bootloader-ipod6g_modif.ipod )
Title: Re: Remove OF on iPod Classic 120GB
Post by: codyteam on August 27, 2019, 04:27:10 PM
Thank you!