Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: Bilgus on November 17, 2018, 01:29:27 AM

Title: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: Bilgus on November 17, 2018, 01:29:27 AM
Rockbox has problems when using the iFlash adapters

Questions:
Is this a known issue? - Yes.
Will I have this issue - If you are using anything other than the original harddrive- YES.
Is there a fix? - NO, Not at the moment.
Is there a workaround? - Several

EDIT:
This appears to be fixed in the latest dev versions thanks to Speachy


EDIT2: (2021-03-10)
If you are using a modded iPod (CF, iFlash, SSD, whatever) it is very important that you state that in any bug report.  Similarly, please try the latest nightly or dev build before posting.  The last stable release has _many_ known issues that have long since been fixed.


EDIT3:  (2021-04-23)
We now think this finally resolved in the latest dev versions.  As an added bonus, battery life should be improved as well.
Title: Re: IPOD (ALL MODELS) iFlash Quad Issues
Post by: Bilgus on November 17, 2018, 01:32:59 AM
http://forums.rockbox.org/index.php/topic,52505.0.html
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Bilgus on December 08, 2018, 03:36:36 AM
GREAT ADVICE!!

Speaking from personal experience here: I also tried one of those iFlash mSATA adapters out in an iPod Video, with a 128GB SSD. While installation isn't so bad, I've had nothing but pain and suffering trying to get Rockbox working on this combination. Some of the issues I've experienced include:

  • Restoring the device in iTunes wasn't an issue, but the device never showed up afterwards as a proper FAT32 volume on my Linux desktop. If I tried formatting the partition as FAT32, the iPod's firmware would complain and ask me to restore it again, even if I backup its folders beforehand.
  • Related to the first point above, I could install Rockbox on the iPod, but then on startup, the bootloader would scream about not being able to find a FAT32 volume.
  • Removing the mSATA drive from the adapter and putting it into an enclosure to examine in GParted revealed that the drive had an "Unknown" filesystem on its primary partition. Evoking "fdisk -l" in the terminal showed me that the drive (let's call it /dev/sdi for convenience's sake) had two partitions: "/dev/sdi1" and "/dev/sdi2". /dev/sdi1 was approximately 100MB big, which is correct, and is an unknown filesystem, which is also correct; this is the iPod firmware partition. /dev/sdi2, on the other hand, was also an unknown filesystem, and was the rest of the volume's capacity. This isn't correct; the larger partition should be either FAT32 or HFS+, depending on if it was restored in Windows or a Mac.

I finally gave up on getting the iFlash to work after a while and decided to pick up a 128GB SSD I found on Amazon for pretty cheap: https://smile.amazon.com/gp/product/B00TPLKQLS/ref=ox_sc_saved_title_10?smid=ATVPDKIKX0DER&psc=1

I went with this SSD for two reasons: one, it's the correct size and connector for the iPod Video (and the Classic, in turn!), and two, since it's a proper PATA device, it'll function just as a hard drive should. And sure enough, it hasn't given me one lick of trouble at all since it's been in my iPod Video. I do get improved battery life and the peace of mind that my iPod has no moving parts in it anymore, and I also get expanded capacity for music, and Rockbox happily functions with it in place. If anything, an SSD like this is a far more viable option for those wanting to make their iPods solid state, since you're ensured better compatibility and it's good for those on a budget.

http://forums.rockbox.org/index.php/topic,52591.msg243244.html#msg243244
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Frankenpod on December 12, 2018, 11:16:18 AM
Perhaps should be clarified that the issues seem to be different with mSata SSD adaptors vs SDcard adaptors?

As I understand it, the advice to 'use original firmware for file transfer' applies to the latter.  I'm not sure it's either necessary or even helpful for the former case.  Both have 'issues', but I'm not sure they are the same in each case.

I could be wrong, only have the latter.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Magphil on February 05, 2020, 05:40:33 AM
Hello,

I am new to this forum and new to rockbox.
I have a ipod classic 6gen 160GB. I replaced the broken hard disk with a quad iflash card and 4 256GB samsung evo micro sd, as I was unaware of the 128GB limitation.
I installed rockbox to get 1TB space as my itune lib is over 800GB.
I did transfer the entire itunes library and so far so good, I did not hit any corruption so far.

So my question is : have you made any progress on iflash support since the last post on this thread over a year ago ? or ... am I just lucky so far and might hit a time bomb ?

I did have some concern when I transfered a few albums only using copy/file explorer on windows 10 (transfer would be very slow and stop for over 20 seconds before resuming) .
To transfer the entire lib, I used Goodsync software (backup sofware using directory comparaison) and did not experience any pause during copy. Took 20 hours.

Cheers
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Frankenpod on February 05, 2020, 06:22:12 AM
I think the file-writing errors appear only randomly and occasionally and can be subtle (but for others can completely screw-up playback).  And they appear to vary depending on the type and brand of card used.
Some people say they never have any problems, others find playback is hopeless and is only fixed by syncing with the original-firmware.

 Have you tried building the database on the ipod?  That seems to frequently reveal the problem.

  Also have you tried using some sort of 'fingerprinting' software to do a precise comparison between files on the ipod and the original?  You might find there are differences even if you don't notice them in playing.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Magphil on February 05, 2020, 07:25:40 AM
I think the file-writing errors appear only randomly and occasionally and can be subtle (but for others can completely screw-up playback).  And they appear to vary depending on the type and brand of card used.
Some people say they never have any problems, others find playback is hopeless and is only fixed by syncing with the original-firmware.

 Have you tried building the database on the ipod?  That seems to frequently reveal the problem.

  Also have you tried using some sort of 'fingerprinting' software to do a precise comparison between files on the ipod and the original?  You might find there are differences even if you don't notice them in playing.

I did build the database on the ipod. It is very big ... some 110K entries.
I jusr read about the simulator, but cannot download it as the site seems to be down.  I did not try any sort of fingerprinting.
I will need to re-sync soon as I have extracted all the album arts on the pc using http://vcardenasblog.blogspot.com/2008/09/album-art-extracter-for-rockbox.html (http://vcardenasblog.blogspot.com/2008/09/album-art-extracter-for-rockbox.html)

Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: KeithSPG on March 22, 2020, 06:45:33 PM
I just got a 4x iFlash adapter for an iPod Video (5thgen) with a single 256 Gb Samsung Evo card in it. I ran into the same problem. It seems as though the file transfer is too fast and the file is not actually written to the SD card completely, only the first portion when mounted as a disc in rockbox. It was a 2+ hour transfer and all I got was skipping. I took the advice and rebooted it in iPod disc mode and transferred files in 12+ hours! So far no skips. Is there a way we can throttle the transfer speed to ensure that it writes? I am sure it can transfer faster than iPod disc mode. I love the sound quality improvement over a BT connection to my phone in the car! Thanks for the hard work!

On another note, I also have an iPod mini 2nd gen that I am trying to get to 128Gb. The type 2 CF adapter works fine as a disc, but the iPod firmware would not write to it. I ordered a Type 1 iFlash adapter and will see if it is any better. It was strange to me that it worked fine as a disc, I coule read, format, write and enything to it, just iPod would not restore to it so I was unable to put rockbox on it. Will see how the next one works.

Keith
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: adubs on May 10, 2020, 09:50:54 AM
  • Give a Dev an iFlash iPod

I'd be willing to do this. I have a 2nd gen mini with the SD-CF iflash adapter that doesnt make it very far without a panic. I'm certainly not smart enough to know what to do with it as far as approaching the problem and I would be hopeless to try and help solve it.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: TeslaMark on June 23, 2020, 06:07:08 AM
Hi, i wish i had seen or been informed about this issue before i purchased the quad SD card flash and a 128GB Sandisk Ultra Pro card.  I can transfer files across and some play but certain tracks ALAC 1005kbps VBR completely crash the Rockbox software.  Its very frustrating.  I get a data abort at4000c908 and the player locks up requiring a reboot to get working again but it never plays the file further than the same point.  I tried the different versions of Rockbox including the development version, the stable version and the release candidate.  I wont lie, rockbox has been a real anticlimax so far.  It looks like an amazing piece of software and teases great functionality but so far its completely unusable with an iflash.  I noticed people selling these online on eBay as 500gb etc, how have they managed to make them work ?  or are they selling bricks?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: TeslaMark on June 23, 2020, 11:44:42 AM
I think i have stumbled upon the fix for this on the Ipod 5.5G.  Or at least a workaround.

Here are the steps to follow.

starting with a working iPod

1) Open Aomei Partition  tool and clear all the partitions

2) Format as Fat 32 if it lets you (if it doesn't dont worry as iTunes will do it).

3) Restore with iTunes for Windows

4) iTunes will leave the partition in 2 parts, a small partition with the bootloader inside and the large partition of the remainder of the drive labeled Ipod.

5) Open Rockbox installer and only install the Bootloader

6) Reopen Aomei Partition Tool and Format iPod Partition as Fat 32

7) Go back to Rockbox installer and install the main program and all optional additions but exclude the Bootloader (as you already have it)

8 ) Once its done eject the Ipod and hold down the centre button and the Menu button until the apple logo appears, then immediately hold down the centre button and play/pause until the iPod boots up in target disk mode.

9) Create a Folder called Music and copy all music folders inside.

10) Eject the drive and it works without skips and without crashing with errors. 

Hope that helps.  Remember the key is to transfer files to the iPod in disk mode
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: speachy on July 13, 2020, 07:53:14 PM
Everyone still fighting with these iFlash adapter issues, please try a daily build from 2020-07-13 or newer, and let us know how it goes.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: Frankenpod on July 14, 2020, 05:35:06 AM
Hi, i wish i had seen or been informed about this issue before i purchased the quad SD card flash and a 128GB Sandisk Ultra Pro card.  I can transfer files across and some play but certain tracks ALAC 1005kbps VBR completely crash the Rockbox software.  Its very frustrating.  I get a data abort at4000c908 and the player locks up requiring a reboot to get working again but it never plays the file further than the same point.  I tried the different versions of Rockbox including the development version, the stable version and the release candidate.  I wont lie, rockbox has been a real anticlimax so far.  It looks like an amazing piece of software and teases great functionality but so far its completely unusable with an iflash.  I noticed people selling these online on eBay as 500gb etc, how have they managed to make them work ?  or are they selling bricks?

Just sync your music using the original firmware rather than in rockbox mode.  That works fine for me and for most people with the problem you are having (it's mentioned all over this forum, in multiple threads).  The problem is with rockbox writing to the disk, so syncing in rockbox mode creates all those problems (building the database can have trouble also).  As long as rockbox doesn't have to write much to the disk it works fine.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on August 10, 2020, 11:55:25 AM
Everyone still fighting with these iFlash adapter issues, please try a daily build from 2020-07-13 or newer, and let us know how it goes.

I tried with one the latest daily build for Ipod Mini 2g. File playback now seems to work. But when initialising the DB I get this error. It will then fail to boot once and then successfully boot.

(https://i.imgur.com/fFtD8ji.jpg)
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: __builtin on August 10, 2020, 02:44:36 PM
Everyone still fighting with these iFlash adapter issues, please try a daily build from 2020-07-13 or newer, and let us know how it goes.

I tried with one the latest daily build for Ipod Mini 2g. File playback now seems to work. But when initialising the DB I get this error. It will then fail to boot once and then successfully boot.

(https://i.imgur.com/fFtD8ji.jpg)

That smells like a DB bug to me.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on August 10, 2020, 04:37:29 PM
Everyone still fighting with these iFlash adapter issues, please try a daily build from 2020-07-13 or newer, and let us know how it goes.

I tried with one the latest daily build for Ipod Mini 2g. File playback now seems to work. But when initialising the DB I get this error. It will then fail to boot once and then successfully boot.

(https://i.imgur.com/fFtD8ji.jpg)

That smells like a DB bug to me.

You were right! There's one mp3 it crashes on. Can't see any errors with the file or why that would be. This is on the dev build, stable just crashes when trying to update the DB even without the problem file.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: speachy on August 10, 2020, 04:54:40 PM
You were right! There's one mp3 it crashes on. Can't see any errors with the file or why that would be. This is on the dev build, stable just crashes when trying to update the DB even without the problem file.

I'm glad to hear it's working a lot better.  That said, even b0rked files shouldn't cause the DB engine to crash.  Can you create a bug in our tracker and attach the mp3 file?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on August 10, 2020, 05:09:45 PM
You were right! There's one mp3 it crashes on. Can't see any errors with the file or why that would be. This is on the dev build, stable just crashes when trying to update the DB even without the problem file.

I'm glad to hear it's working a lot better.  That said, even b0rked files shouldn't cause the DB engine to crash.  Can you create a bug in our tracker and attach the mp3 file?

Sure here is the report.

https://www.rockbox.org/tracker/task/13230
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: cataclem on August 15, 2020, 05:19:48 AM
Hi, i wish i had seen or been informed about this issue before i purchased the quad SD card flash and a 128GB Sandisk Ultra Pro card.  I can transfer files across and some play but certain tracks ALAC 1005kbps VBR completely crash the Rockbox software.  Its very frustrating.  I get a data abort at4000c908 and the player locks up requiring a reboot to get working again but it never plays the file further than the same point.  I tried the different versions of Rockbox including the development version, the stable version and the release candidate.  I wont lie, rockbox has been a real anticlimax so far.  It looks like an amazing piece of software and teases great functionality but so far its completely unusable with an iflash.  I noticed people selling these online on eBay as 500gb etc, how have they managed to make them work ?  or are they selling bricks?

try to move the files after you enter under apple system with enter+play
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: tcj on August 24, 2020, 03:44:42 AM
You were right! There's one mp3 it crashes on. Can't see any errors with the file or why that would be. This is on the dev build, stable just crashes when trying to update the DB even without the problem file.
How did you identify this one file to be corrupt?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on August 24, 2020, 07:52:58 AM
You were right! There's one mp3 it crashes on. Can't see any errors with the file or why that would be. This is on the dev build, stable just crashes when trying to update the DB even without the problem file.
How did you identify this one file to be corrupt?

Go to system > debug > metadata log. Then rebuild the database. As each file is parsed, it will be logged to /metadata.log. If the database parser fails, the last file logged is probably responsible. Try removing it and rebuilding the database. If you find a file that crashes the database, please upload it to our bug tracker.

See Troubleshooting database problems for more info https://www.rockbox.org/wiki/DataBase (https://www.rockbox.org/wiki/DataBase)

It ended up being quite a lot of files so I gave up. Are you encountering the same issue?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on September 04, 2020, 10:56:44 AM
Update from me.
Using an iflash adapter in an ipod mini 2g with daily build. It works damn near perfect.
Database builds fine, playback is fine.
I'm having an issue where it wont charge when running rockbox only of. It has the animation but doesn't charge.
It also takes a couple of button presses after unlocking for a button to actually register. I'm not sure if this is hardware or software.

But it makes damn fine music player. I will post a battery bench. I've done one and got
10hr.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: speachy on November 03, 2020, 10:11:15 PM
FYI, just landed a fix that should improve the situation with mSATA SSD adapters in PortalPlayer-based players, including most iPods.

So try out tonight's build (2020-11-04) or newer, and let us know how it goes.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on November 19, 2020, 09:10:53 AM
FYI, just landed a fix that should improve the situation with mSATA SSD adapters in PortalPlayer-based players, including most iPods.

So try out tonight's build (2020-11-04) or newer, and let us know how it goes.
Got the daily version running. Seems to be working fine will report any issues.
I am still having an issue with the button responses. If I take my ipod out my pocket and press play/pause it wont register immediately. But a left and right movement on the clickwheel registers immediately.
So i usually change the volume up and down to get a quicker response on the pause button. Any ideas on what maylbe causing this?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues {SOLVED!?]
Post by: Bilgus on November 19, 2020, 09:30:08 AM
This appears to be solved now thanks to Speachy
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: chris_s on November 29, 2020, 08:35:28 AM
It also takes a couple of button presses after unlocking for a button to actually register. I'm not sure if this is hardware or software.

I am still having an issue with the button responses. If I take my ipod out my pocket and press play/pause it wont register immediately. But a left and right movement on the clickwheel registers immediately.
So i usually change the volume up and down to get a quicker response on the pause button. Any ideas on what maylbe causing this?
I had the same issue on my iPod. The patch I linked to in the last post of this thread has completely fixed it for me and has shown no negative side effects over the years:
https://forums.rockbox.org/index.php/topic,52208.msg241612.html#msg241612
(The line numbers from that patch may have to be slightly adjusted in the latest revision, I.e. the „else if“ part needs to be inserted after line 261. Also, a delay of 1000 instead of 2000 seemed to be sufficient in my case)
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: roastpotatoes on December 06, 2020, 09:47:45 AM
It also takes a couple of button presses after unlocking for a button to actually register. I'm not sure if this is hardware or software.

I am still having an issue with the button responses. If I take my ipod out my pocket and press play/pause it wont register immediately. But a left and right movement on the clickwheel registers immediately.
So i usually change the volume up and down to get a quicker response on the pause button. Any ideas on what maylbe causing this?
I had the same issue on my iPod. The patch I linked to in the last post of this thread has completely fixed it for me and has shown no negative side effects over the years:
https://forums.rockbox.org/index.php/topic,52208.msg241612.html#msg241612
(The line numbers from that patch may have to be slightly adjusted in the latest revision, I.e. the „else if“ part needs to be inserted after line 261. Also, a delay of 1000 instead of 2000 seemed to be sufficient in my case)

Thanks Chris! Looks like the patch has since been committed, I'll try a new dev build and see of its fixed :)
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: roastpotatoes on December 10, 2020, 05:06:41 PM
This is indeed fixed in the latest dev build.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues
Post by: chris_s on February 13, 2021, 10:04:12 AM
FYI, just landed a fix that should improve the situation with mSATA SSD adapters in PortalPlayer-based players, including most iPods.

So try out tonight's build (2020-11-04) or newer, and let us know how it goes.
This appears to be solved now thanks to Speachy
Thank you!! Things are looking very good now, although some minor modifications to the dev build (https://forums.rockbox.org/index.php/topic,53744) still appear to be necessary (on iPod 4Gs at least).
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: 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.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on February 17, 2021, 07:25: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...


Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: chris_s on February 17, 2021, 09:13:07 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
   
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy 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. 

Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: b0hoon 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.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: chris_s 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
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: eicca 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.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy 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)
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: Telehubis on February 22, 2021, 03:40:32 AM
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?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: chris_s on February 22, 2021, 08:54:33 AM
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!
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: eicca on February 22, 2021, 09:37:41 AM
...iFlash CF-SD adapters....? Anyone........?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: coderex 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 (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
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 08, 2021, 08:09:14 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 (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.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: coderex 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(?)
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: zock3r1608 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.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: coderex on April 09, 2021, 07:44:32 AM
We could think about a iFlash patch for the IFlash users?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 20, 2021, 03:08:29 PM
I just got an iFlash Quad and am using it with a 256gb sd card in an iPod 5.5 (80gb). The specific problem I am having is that my files are all overwritten by chunks of other songs. I used WinDiff to check after transfer and almost every track has bits of other files sprinkled in.

I've just read this thread and I'll try it again in Disk Mode and report back. Is there any kind of info I can provide that would help? I'd hate for anyone to have to go back to iTunes.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 20, 2021, 03:54:51 PM
I just got an iFlash Quad and am using it with a 256gb sd card in an iPod 5.5 (80gb). The specific problem I am having is that my files are all overwritten by chunks of other songs. I used WinDiff to check after transfer and almost every track has bits of other files sprinkled in.

I've just read this thread and I'll try it again in Disk Mode and report back. Is there any kind of info I can provide that would help? I'd hate for anyone to have to go back to iTunes.

Important question:  What version of rockbox are you using?

Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 20, 2021, 05:20:04 PM
I'm using 1.4.1.

I saw earlier posts suggesting using the dailies but I wasn't sure if those fixes were rolled into stable by now because the posts seemed to be from awhile ago.

Another question I had, if transferring stuff in disk mode works will Rockbox be able to build its database properly? Is writing to the card still going to be a problem?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: saratoga on April 20, 2021, 05:31:57 PM
1.4.1 is the installer, not the rockbox version.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 20, 2021, 05:48:41 PM
Oh, sorry. Stable 3.15.

Incidentally, transferring in disk mode seems to be working. I'm halfway through verifying files and no errors so far; in previous attempts an average file was about 15% errors.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 20, 2021, 05:56:22 PM
3.15 is known to be quite problematic with the iFlash adapters.

If you could, please try the latest nightly or dev build and see if data transfer is reliable in Rockbox's USB mode. 
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 20, 2021, 06:36:02 PM
I've switched to the Development version and it looks like it's behaving the same as before.

The transfer is much faster, but according to WinMerge very few files are the same between the source and destination.

It mostly seems like there is different data written over the files. I've played a few before and it was clearly intercutting sections of other songs.

I posted some of what Winmerge is saying here
https://pbs.twimg.com/media/Ezc3wgzWEAYMDO3?format=jpg&name=medium
https://pbs.twimg.com/media/Ezc3wgzWUAAL-uw?format=jpg&name=large
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 21, 2021, 06:49:39 AM
Ok, I'm going to post a series of test builds, please try each one in turn and tell me if the file corruption still happens when copying files:

  https://www.shaftnet.org/~pizza/ipodvideo-test1.zip



Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 21, 2021, 04:10:12 PM
 
Ok, I'm going to post a series of test builds, please try each one in turn and tell me if the file corruption still happens when copying files:
  https://www.shaftnet.org/~pizza/ipodvideo-test1.zip

Thanks. This one didn't help. Pretty consistent file damage, multiple freezes over a 20 minute file transfer.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 21, 2021, 04:13:35 PM
Thanks. This one didn't help. Pretty consistent file damage, multiple freezes over a 20 minute file transfer.

Ok, thanks.  Now for round 2:

  https://www.shaftnet.org/~pizza/ipodvideo-test2.zip
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 21, 2021, 05:03:17 PM
Thanks. This one didn't help. Pretty consistent file damage, multiple freezes over a 20 minute file transfer.

Ok, thanks.  Now for round 2:

  https://www.shaftnet.org/~pizza/ipodvideo-test2.zip
No dice with this one either.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 22, 2021, 07:00:33 AM
No dice with this one either.

Ok.  Two requests.  First, try #3:

 https://www.shaftnet.org/~pizza/ipodvideo-test3.zip

Regardless of the outcome of that test build, please go into the debug menu and generate an ATA identify dump, and then send me /ata_identify.bin.

(system / debug / dump ata identify info)

I _think_ I know what's going on but I'd like to test
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 22, 2021, 08:59:50 AM
And after #3 (which I actually expect to work) please try #4:

 https://www.shaftnet.org/~pizza/ipodvideo-test4.zip

Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 01:25:44 PM
Alright, I'll do these tests shortly.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 02:10:06 PM
#3 didn't change things. I'm attaching the identity file. It's got a different name, is this the right one?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 02:32:41 PM
#4 has not changed the situation.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 22, 2021, 04:11:19 PM
Well, drat.  Can you try one more for me:

 https://www.shaftnet.org/~pizza/ipodvideo-test6.zip

If this doesn't work, there's yet another failure mode in play.  Sigh.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 04:50:59 PM
Well, drat.  Can you try one more for me:

 https://www.shaftnet.org/~pizza/ipodvideo-test6.zip

If this doesn't work, there's yet another failure mode in play.  Sigh.
This one seems to be working. The 1gb of test files that the other versions had failed on has transferred correctly. It will take a while to transfer and verify my collection so I'll post again tomorrow and let you know how that goes.

Thanks for your help.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 22, 2021, 05:28:35 PM
I have one more:

 https://www.shaftnet.org/~pizza/ipodvideo-test7.zip

This should be functionally equivalent to -test6, but with the new behavior disabled for non-SSDs.

If that works well I'll see if I can find folks with non-modded devices to test it out too.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 06:41:01 PM
Cool, I'll try that now.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 22, 2021, 07:08:35 PM
#7 came up clean on 1gb. Starting the big transfer now.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 23, 2021, 09:12:57 AM
Okay, the power management fixes are now merged, and builds are being generated now.  No reported regressions on unmodded hardware (mini2g, 4g greyscale, 5g video) and SSD-modded hardware appears to be vastly improved.

Hopefully this is the end of the filash issues, at least on the <6g stuff.

Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: docvalentine on April 23, 2021, 02:24:54 PM
WinMerge reports 180gb of transferred files are identical to source. Thanks so much for taking the time to address this.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: Telehubis on April 26, 2021, 03:42:18 AM
Okay, the power management fixes are now merged, and builds are being generated now.  No reported regressions on unmodded hardware (mini2g, 4g greyscale, 5g video) and SSD-modded hardware appears to be vastly improved.

Hopefully this is the end of the filash issues, at least on the <6g stuff.

Will this also work&improve 5/5.5G models?
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: silverbear on April 27, 2021, 05:14:26 PM
I have an SSD modded ipod and have encountered problems with file transfer. As a result, I usually load my ipod via the original software. However, I still have an issue with large flac files. Have any of you encountered this? I would be very interested in any pointers as to how to calculate the maximum file size so I can split up my files accordingly. 
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: speachy on April 27, 2021, 06:23:45 PM
I have an SSD modded ipod and have encountered problems with file transfer. As a result, I usually load my ipod via the original software. However, I still have an issue with large flac files. Have any of you encountered this? I would be very interested in any pointers as to how to calculate the maximum file size so I can split up my files accordingly.

Please read the first post in this thread.
Title: Re: IPOD (ALL MODELS) iFlash Adapter Issues [SOLVED!?]
Post by: grave35 on April 30, 2021, 06:39:39 PM
del.