Support and General Use > Hardware

iPod 5.5G w/CF card - bad battery or hardware issue?

<< < (2/6) > >>

michaelc5047:

--- Quote from: saratoga on August 16, 2008, 05:42:20 PM ---That patch changes how hardware devices are initialized on the Ipod.  If its leaving some of them enabled that should not be, then battery life will probably be decreased. 

--- End quote ---

Aha. That is good to know -- thanks. I think I will put that 6GB microdrive in and see if the battery benchmark looks any different with a standard build.

saratoga:
You could also change one of the print statements in the apps/debug_menu.c to print the value of that register (assuming one doesn't already).  Then you could see exactly what (if anything) is different between the builds.

LurkAzusa:
For the 4G the DEV_RS statement is removed (system-pp502x.c) to allow it to get past the ATA -1 error.  Are you saying that we can find the proper value for DEV_RS by modifying debug.c?  If so, what exactly should I add to debug.c?

saratoga:

--- Quote from: LurkAzusa on August 16, 2008, 09:04:11 PM ---Are you saying that we can find the proper value for DEV_RS by modifying debug.c? 

--- End quote ---

I'm saying one of the easiest ways to see the value of DEV_RS is by printing it in debug_menu.c.

michaelc5047:
Let me see if I understand what to do here:

So, under the section in debug_menu.c beginning with "#elif defined(CPU_PP502x)," I should add a new section near the end (or replace one of the pre-existing ones) with:

snprintf(buf, sizeof(buf), "DEV_RS: %08lx", DEV_RS);
        lcd_puts(0, line++, buf);

I'm just cutting and pasting and replacing DEV_INIT2 from the original code with DEV_RS. Please don't confuse me for an actual programmer, though ;-)

Then compile one build with the modified debug_menu.c file, and another one with the modified file AND Tarkan's patch, then see what the debug menu says, yes?

Does this make sense?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version