Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iPod 5.5G w/CF card - bad battery or hardware issue?
« previous next »
  • Print
Pages: 1 [2]

Author Topic: iPod 5.5G w/CF card - bad battery or hardware issue?  (Read 12083 times)

Offline michaelc5047

  • Member
  • *
  • Posts: 19
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #15 on: August 17, 2008, 03:23:09 PM »
Quote from: soap
I agree 100% that the numbers you posted are lower than expected with a stock battery, much less a (supposedly) higher-capacity aftermarket one.
That being said:
1 - There are lots of **** quality aftermarket batteries floating around.  Ones which aren't worth the postage they were shipped in.
2 - There are lots of fraudulently labeled, and plain ol' counterfit aftermarket batteries floating around.
3 - The only way to nail down the question (which I think is the underlying question here) "Is my battery dying already or has Rockbox regressed in terms of battery runtime?" is to test against a known benchmark - the Apple Original Firmware (R) (TM)

Yes, that was in fact my underlying question, and my thanks were sincere.  :) I also really hadn't thought of doing a benchmark on the Apple OS and comparing it against Rockbox.
« Last Edit: August 17, 2008, 03:25:12 PM by michaelc5047 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #16 on: August 17, 2008, 03:33:59 PM »
Quote from: LurkAzusa on August 16, 2008, 11:15:54 PM
Forgive me for hijacking your thread to discuss the 4G, but maybe together we can get the ipod CF corrected.

These are the values set in firmware/target/arm/system-pp502x.c for the ipod 4G

#elif defined(IPOD_4G)
        /* set minimum startup configuration */
        DEV_EN         = 0xc2020124;
        DEV_EN2        = 0x00000000;
        CACHE_PRIORITY = 0x0000003f;
        GPO32_VAL      = 0x02000000;
        DEV_INIT1      = 0x00000000;
        DEV_INIT2      = 0x40000000;

        /* reset all allowed devices */
        DEV_RS         = 0x3ffdfef8;
        DEV_RS2        = 0xffffffff;
        DEV_RS         = 0x00000000;
        DEV_RS2        = 0x00000000;

The debug menu shows the following differences, with patch applied to remark out DEV_RS=0x3ffdfef8;

DEV_EN    = C0031926
DEV_INIT1  = 00040000
DEV_RS = 00000000
DEV_RS2 = 00000000

With a patch applied to remark out the entire code above:

DEV_EN = C0831977
DEV_EN3 = 0007003F
DEV_INIT1=00040000
DEV_RS = 0000000
DEV_RS2 = 00000000

If you comment out that block, you just disable the PP power saving patch we commited last winter.  If you want good battery life, you should try to figure out which of those bits actually matters for CF support, instead of just removing all of them.

This page may be interesting to you:

http://www.rockbox.org/twiki/bin/view/Main/DeviceEnableRegistersPP502x
Logged

Offline LurkAzusa

  • Member
  • *
  • Posts: 40
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #17 on: August 17, 2008, 03:50:18 PM »
Thanks Saratoga for the reference, but I haven't a clue what to look for.  The only thing I do know is that it will boot with the DEV_RS = 0x3ffdfef8 removed.  I listed the changed values to hopefully help identify what the value should be.

Can you tell me exactly what I should change and test?  I'd really like to be able to use the the firmware unpatched.

What is the meaning of listing DEV_RS and DEV_RS2 twice in the reset section?  Does only the second set take effect?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #18 on: August 17, 2008, 04:08:47 PM »
Quote from: LurkAzusa on August 17, 2008, 03:50:18 PM
The only thing I do know is that it will boot with the DEV_RS = 0x3ffdfef8 removed. 

Try it with and without that line removed and see what changes.

Quote from: LurkAzusa on August 17, 2008, 03:50:18 PM
What is the meaning of listing DEV_RS and DEV_RS2 twice in the reset section?  Does only the second set take effect?

The comment says its resetting the devices, so I guess its desirable to turn them on and then back off during power up, perhaps to clear any settings or somehow initialize them.  If I knew exactly what that did, I could probably just fix the CF problem myself.
Logged

Offline LurkAzusa

  • Member
  • *
  • Posts: 40
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #19 on: August 17, 2008, 04:23:21 PM »
I did post the changes with the line removed.  I can't get a value with it active, as it won't boot.

So, since the DEV_RS value is 00000000, then removing that first DEV_RS line really doesn't make a difference to the battery saving code?  Can that line be permanently removed?

I'm willing to test anything to help.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #20 on: August 17, 2008, 04:40:29 PM »
Quote from: LurkAzusa on August 17, 2008, 04:23:21 PM

So, since the DEV_RS value is 00000000, then removing that first DEV_RS line really doesn't make a difference to the battery saving code?  Can that line be permanently removed?

Looking at the SVN logs, that line seems to have begun with the Sansa port, then moved to other devices, and then finally was kept by Buschel when he and I put in the power saving code for all the PP targets.  I don't know if its actually necessary though.
Logged

Offline michaelc5047

  • Member
  • *
  • Posts: 19
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #21 on: August 18, 2008, 03:35:50 AM »
Ok, 13 hours and 2 minutes later, the iPod (w/CF card) is still playing (although the battery indicator is far into the "red zone" and almost out) in the original Apple firmware. Now, with a CF card, I'd hope for better battery life than that, but it's still quite a bit better than the 9hr 45m I got out of Rockbox.

It occurs to me that with the CF build w/the patch to allow the iPod to boot from the aData card, I'm using a non-SVN bootloader (installed from ipodpatcher v2.0 "with v2.0 bootloaders"). Could compiling a fresh bootloader from SVN make any difference in battery life in Rockbox?

EDIT: YES, a current SVN bootloader did make a difference. I got 10h40m out of it with the same settings after compiling a new bootloader and a new Rockbox install from current SVN (and modifying system-pp502x.c to get it to boot.)
« Last Edit: August 18, 2008, 11:09:36 PM by michaelc5047 »
Logged

Offline LurkAzusa

  • Member
  • *
  • Posts: 40
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #22 on: August 20, 2008, 10:27:08 PM »
Did your ipod boot with the new bootloader, but without modifying the DEV_RS line?

My 4G gets 13 hours with the apple firmware and 9.2 hours with the modified DEV_RS line.  I haven't done anything about the bootloader.

I wanted to post a bug in the tracker, but can't because of the freeze.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #23 on: August 20, 2008, 10:44:27 PM »
What does the freeze have to do with posting bugs?
Logged

Offline michaelc5047

  • Member
  • *
  • Posts: 19
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #24 on: August 20, 2008, 11:04:42 PM »
Quote from: LurkAzusa on August 20, 2008, 10:27:08 PM
Did your ipod boot with the new bootloader, but without modifying the DEV_RS line?

With the new bootloader and with modifying the DEV_RS line.

So -- to summarize:

w/old bootloader and modified DEV_RS line: 9hrs 45m
w/new bootloader and modified DEV_RS line: 10hrs 40m.
Original firmware: 13+ hours.
Logged

Offline LurkAzusa

  • Member
  • *
  • Posts: 40
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #25 on: August 21, 2008, 01:08:19 AM »
I registered, logged in and only get a blank page on the tracker.

Update:  I was able to reach the page, entered the information and submit.  The page goes blank, and I don't see it listed.

Can someone please enter a report about the ipod4G and ipodVideo using ADATA 16 and 32 Gb Compact Flash returns a ATA-1 error and won't boot.  Commenting out the DEV_RS=0x3ffdfef8 on the ipod4G allows rockbox to load.
« Last Edit: August 21, 2008, 01:26:59 AM by LurkAzusa »
Logged

Offline michaelc5047

  • Member
  • *
  • Posts: 19
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #26 on: August 22, 2008, 12:15:13 PM »
Update: definitely a bad battery. Got a replacement 580mAh battery, did another battery bench, got 13 hours (12h 59m) out of it. Updated the iPod runtime wiki with results.
Logged

Offline tarkan

  • Member
  • *
  • Posts: 7
    • Tarkan Akdam's BORED
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #27 on: September 30, 2008, 07:23:45 PM »
Hi Guys,

I thought I would chime in. I have patched a version to see DEV_RS / RS2 in the debug menu. The result is that DEV_RS / RS2 in the patched version or non-patched version is 0x00000000.

I do not think the removal of the DEV_RS line causes any increase in power consumption nor does it effect the power saving modules.

To check this I will do a battery benchmark test using patched and non-patched version of Rockbox using my Sandisk Extreme card (this card works without needing the patch).

I will post my findings later this week.

regards, Tarkan
Logged
-------
Visit my website
www.tarkan.info

Offline dementio

  • Member
  • *
  • Posts: 7
Re: iPod 5.5G w/CF card - bad battery or hardware issue?
« Reply #28 on: October 07, 2008, 08:42:05 AM »
Michael,
I have an IPod v5.5 with Tarkan's mod using an A-Data Speedy 32Gb.
If you can compile your own from svn, make the following change to firmware/target/arm/system-pp502x.c

[Look for your IPod type just above the lines, ex. #elif defined (IPOD_VIDEO)]
(it's the first appearance of the word VIDEO)
Remove line:
DEV_RS         = 0x3ffffef8;

once you make this change, all you have to do is compile your own, with whatever patches you want.
Logged
Apple iPod Video 30GB (Tarkan's iFlash Ipod Flash Adaptor, A-Data CompactFlash Speedy 32Gb, 580mAh LiPo Battery, & Cosmetic mods) & Sansa Fuze V2

"People who say it cannot be done should not interrupt those who are doing it."
George Bernard Shaw

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iPod 5.5G w/CF card - bad battery or hardware issue?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.104 seconds with 14 queries.