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 (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« previous next »
  • Print
Pages: 1 2 [3] 4 5 6

Author Topic: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]  (Read 18000 times)

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 327
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #30 on: February 17, 2021, 07:25:00 AM »
Quote from: chris_s on February 14, 2021, 01:27:00 AM
Update: in my limited testing, data corruption unfortunately still seems to occur on an iPod video when doing USB transfers in Rockbox.

Instead of disabling DMA altogether, did you try setting ATA_MAX_UDMA to 1 ?

(in rockbox/firmware/target/arm/pp/ata-target.h)

I'd hate to disable DMA for all PP-based targets...


Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #31 on: February 17, 2021, 09:13:07 AM »
Quote from: speachy on February 17, 2021, 07:25:00 AM
Quote from: chris_s on February 14, 2021, 01:27:00 AM
Update: in my limited testing, data corruption unfortunately still seems to occur on an iPod video when doing USB transfers in Rockbox.

Instead of disabling DMA altogether, did you try setting ATA_MAX_UDMA to 1 ?

(in rockbox/firmware/target/arm/pp/ata-target.h)

I'd hate to disable DMA for all PP-based targets...
I have yet to try that.. My only experience so far on the latest build has been with DMA either enabled or disabled completely . Even disabling DMA didn't seem to help on the iPod Video using an iFlash adapter and SD card, whereas the iPod 4G remains surprisingly (i.e. completely) stable in that configuration with DMA disabled! I may try setting ATA_MAX_UDMA to 1 next.

iPod 4G:
   - hard disk:
      - DMA enabled: Data corruption occurs intermittently
      - DMA disabled: stable

   - CF:
      - DMA enabled: Data corruption occurs intermittently
      - DMA disabled: stable

   - iFlash + SD
      - DMA enabled: untested
      - DMA disabled: stable
   

iPod Video (limited testing):
   - hard disk
      - DMA enabled: apparently stable
      - DMA disabled: untested

   - CF:
      - untested

   - iFlash + SD
      - DMA enabled: Data corruption occurs when testing Rockbox USB transfer
      - DMA disabled: Data corruption occurs when testing Rockbox USB transfer

   
« Last Edit: February 17, 2021, 03:42:31 PM by chris_s »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 327
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #32 on: February 17, 2021, 10:59:36 AM »
ATA/USB connectivity is provided by the core PP SoC.   But the 4G series uses a PP5020, and the 5G uses a PP5021 (which rockbox considers the same as a 5022)

From a software perspective, rockbox tweaks a few things between the 5020 and 5022 (to do with the clocking hierarchy) but otherwise treats the SoCs as incidentical.

Another thing worth trying -- disable dynamic cpu reclocking -- firmware/export/config/ipodvideo.h

#define CPU_FREQ      11289600
#define HAVE_ADJUSTABLE_CPU_FREQ

Comment out HAVE_ADJUSTABLE_CPU_FREQ and set CPU_FREQ to 30000000  (30MHz) as a first step. 

Logged

Offline b0hoon

  • Developer
  • Member
  • *
  • Posts: 74
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #33 on: February 17, 2021, 12:40:38 PM »
Hi.

This reminds me of: https://forums.rockbox.org/index.php/topic,32247.0.html. I don't remember exactly what kind of fix it was, maybe it's some sort of back to the bug, after updating the toolchain. However nobody tested this on modified players then. I mean with the adapters. Just my loose thoughts.
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #34 on: February 17, 2021, 03:41:48 PM »
Thanks! Results using UDMA 1 on the iPod 4G are very encouraging. I've been trying hard to cause data corruption, but everything seems perfectly stable so far. Will report back if I notice anything in daily usage.  :D

I’m looking forward to testing this on an iPod Video soon. Could be a few days to weeks though.

iPod 4G:
   - hard disk:
      - UDMA 2: Data corruption occurs intermittently
      - UDMA 1: stable
      - DMA disabled: stable


   - CF:
      - UDMA 2: Data corruption occurs intermittently
      - UDMA 1: stable
      - DMA disabled: stable


   - iFlash + SD
      - UDMA 2: untested (likely unstable)
      - UDMA 1: stable
      - DMA disabled: stable

Logged

Offline eicca

  • Member
  • *
  • Posts: 33
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #35 on: February 18, 2021, 11:17:52 AM »
Do these issues include the iFlash CF-SD adapter? I'm running an iPod Mini 2G with a 256GB SD card. Apple firmware gives 20 hours of playback, but Rockbox only gives 5 at best. It completely ruined my plans for this iPod. I've tried a whole bunch of different release versions and settings combinations and cannot get any improvement.

This is the second Mini I've tried. Both have been horrendous for Rockbox battery life.

I have my own thread on this in the hardware section but nobody is helping me out.
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 327
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #36 on: February 19, 2021, 06:38:24 AM »
I suspect what's going on here is that the "disable use of ATA powersave when the ATA device doesn't claim to support it" fix for data corruption completely disables all powersaving on the ATA interface -- including turning off its power supply when not needed.

The thing is we relied on those powersave commands to positively tell us that it is _safe_ to turn off the power.  Without that, we don't have any way of being sure that the device isn't doing something in the background, beyond "wait for what we hope is long enough".

(this kill-power-after-we-think-it's-safe thing is what led to the massive corruption with the iflash adapters)
Logged

Offline Telehubis

  • Member
  • *
  • Posts: 17
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #37 on: February 22, 2021, 03:40:32 AM »
Quote from: chris_s on February 17, 2021, 03:41:48 PM
I’m looking forward to testing this on an iPod Video soon. Could be a few days to weeks though.

My adapter will arrive soon - how to test data transfer corruption?
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 222
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #38 on: February 22, 2021, 08:54:33 AM »
Quote from: Telehubis on February 22, 2021, 03:40:32 AM
Quote from: chris_s on February 17, 2021, 03:41:48 PM
I’m looking forward to testing this on an iPod Video soon. Could be a few days to weeks though.

My adapter will arrive soon - how to test data transfer corruption?
In the case of the iPod video and the iFlash adapter, in my experience, it was enough to transfer a few dozen gigs of music (using the USB mode built-in to Rockbox, not using the original firmware) and check afterwards whether the database can be built successfully. Then randomly try to play a few songs from beginning to end without them skipping. Since that already failed for me, I'd see that as a good sign if it worked,  after which I suppose you could get a bit more ‘scientific’ by comparing the checksum of every copied file for example (or maybe someone has a better suggestion). Finally I would just simulate normal usage of the device and see if it remains stable and whether a file system check returns any errors after you've performed lots of restarts / re-shuffling and saving playlists  etc.

As an aside, the iPod 4G continues to be stable in daily usage with the fastest transfer mode set to UDMA 1. Really happy with that!
Logged

Offline eicca

  • Member
  • *
  • Posts: 33
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #39 on: February 22, 2021, 09:37:41 AM »
...iFlash CF-SD adapters....? Anyone........?
Logged

Offline coderex

  • Member
  • *
  • Posts: 5
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #40 on: April 08, 2021, 07:58:49 PM »
Hi all, I'm new in this community and I'm loving/hating my new iPod Classic 6th, I hope can I help to resolve my issue and others issues:

I'm actually using a 6th gen A1238 natively with a 80GB IDE using now an iFlash-quad with 4 PNY 64GB https://www.pny.com/Elite-Class-10-U1-microSD-Flash-Memory-Card?sku=P-SDUX64U185GW-GE on latest dev, I tried to format one hundred times but I cannot use more than 127GB without partition errors, I saw on iFlash
Quote
iPod 6g Classic 80Gb, 120Gb, 160Gb *Limit of 128Gb with SD cards
, is there something that can I try?
I read something about "LBA28 and 48" trying understand the source of those errors...
Using only the 127GB partition iTunes created for my rockbox system randomly I recive this message navigating on menus
Code: [Select]
*PANIC*
dc_writeback_callback() - Could not write sector /random five numbers/ (error -2147483641)
pc:0807b5cc sp:000097e0
bt end
Actually the only method to use my iPod is with OF official firmware 1.1.2 loading music through iTunes
I'm not so expert in programming but I really interest to report to help
« Last Edit: April 08, 2021, 08:10:10 PM by coderex »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 327
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #41 on: April 08, 2021, 08:09:14 PM »
Quote from: coderex on April 08, 2021, 07:58:49 PM
I'm actually using a 6th gen A1238 natively with a 80GB IDE using now an iFlash-quad with 4 PNY 64GB https://www.pny.com/Elite-Class-10-U1-microSD-Flash-Memory-Card?sku=P-SDUX64U185GW-GE on latest dev, I tried to format one hundred times but I cannot use more than 127GB without partition errors (I read on iFlash
Quote
iPod 6g Classic 80Gb, 120Gb, 160Gb *Limit of 128Gb with SD cards
, is there something that can I try?

In short, no.  127GB is a hardware limitation of this platform.
Logged

Offline coderex

  • Member
  • *
  • Posts: 5
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #42 on: April 08, 2021, 08:12:25 PM »
Is there something that I can do about those write sector errors? I read all previous posts of threads and pheraps could I try some of those setting(?)
Logged

Offline zock3r1608

  • Member
  • *
  • Posts: 1
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #43 on: April 08, 2021, 09:23:01 PM »
Hi there,

I revived my old iPod Classic 7th (MC297, 160GB Drive, Thin model) with iFlash Quad with two 400GB SanDisk Ultra UHS1 A1 cards, recommended by iFlash creator. I always used Rockbox, but with this adapter, RB ist not functioning properly enough. I can play a few songs, after that no access to the drive/flash is possible, so no songs load after then.

Even on reboot I get ATA Error with large number, so I need reset a few times to get it working again. File transfer in Disk Mode or OF works without a problem.

Does now a custom build of RB with UDMA max to 1 and disabling all power savings features of ATA interface works better than latest dev version? If it draws a bit more power no problem, I replaced battery with a bigger one.

Are there any devs outside who can fix the stability problems with ata driver? If file transfers are slower no problem, stability is highest priority. I am willing to spend money for this.
Logged

Offline coderex

  • Member
  • *
  • Posts: 5
Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
« Reply #44 on: April 09, 2021, 07:44:32 AM »
We could think about a iFlash patch for the IFlash users?
Logged

  • Print
Pages: 1 2 [3] 4 5 6
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.536 seconds with 22 queries.