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
translations translations
Search



Donate

Rockbox Technical Forums


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

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iFlash Solo – perfectly reliable iPod/sd-card combos
« previous next »
  • Print
Pages: [1]

Author Topic: iFlash Solo – perfectly reliable iPod/sd-card combos  (Read 3704 times)

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
iFlash Solo – perfectly reliable iPod/sd-card combos
« on: February 11, 2021, 10:33:47 AM »
I had long resigned myself to using CF cards with Rockbox for perfectly stable operation on iPods but was surprised today to find after some fairly extensive testing that the latest dev build of Rockbox seems to work flawlessly (including USB transfers and database functionality) on an iPod 4G with an iFlash Solo SD card adapter and an 16GB SD card with only two minor code modifications:

- disable DMA (which is necessary on that device regardless of storage method for stable long-term operation)
- always return 0 for ata_disk_is_active in firmware/drivers/ata.c (otherwise the shutdown process will stall and timeout after ~15s) – I don't think this should have a negative effect?

That exact combination of components was extremely unreliable when running Rockbox just ~2 years ago. Apparently there's been some work done on the ata timings (and possibly something else?) since then, specifically with respect to the iFlash Solo?

This actually makes me wonder if it's now safe to order a large (512GB) SD card or whether I will once again run into problems then. Is the type or size of SD card supposed to make much of a difference? I've ordered a 512B Samsung EVO Select card to try my luck with it this weekend. Ideally, the setup would also work on an iPod video . All of this brings me to ask whether there are now *confirmed* combinations of hardware components that work flawlessly together. I.e. a certain iPod with a certain adapter and certain SD card using a recent build (possibly with some minor modifications). What I'm looking for is rock-solid, flawless long-term operation even using the database which my 256GB 4G CF-based Pod (with DMA disabled) has given me over the years. I thought for the longest time that there was no way to achieve this  using SD cards and Rockbox without a lot of hacking, but this recent experience seems to indicate otherwise?
« Last Edit: February 11, 2021, 10:40:04 AM by chris_s »
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #1 on: February 13, 2021, 08:55:48 AM »
Success! My Samsung EVO Select 512GB (supposedly identical to Samsung EVO Plus) arrived yesterday and I copied 400GB of songs to it, some using Rockbox’s USB mode and some using the OF, simply because the latter was faster (probably) due to the use of DMA.

In the few hours I’ve tested since then, I’ve had not an inch of trouble. Everything works perfectly so far, including database functionality, Rockbox USB transfer and playback of any transferred files.

Looks like the ATA timings in combination with the power management changes (+x ?) made all the difference. A million thanks to the Rockbox developers involved!

I’ll go back to this post to update it in case I encounter any problems, but so far it looks like I can recommend this particular setup at this time:

Hardware: iPod 4th generation (grayscale)
Adapter used: iFlash Solo (from 03/2018, not sure if there’ve been changes since then)
Cards tested:
  • (2021) Samsung EVO Select 512GB microSD (supposedly identical to Samsung EVO Plus)
  • Sandisk Ultra 16GB microSD
Build: Current developer build (422aa56243) with modifications as described in the OP

I’ll be testing the adapter and card on an iPod video in a few days to see if it works just as well on that hardware using the latest build.
« Last Edit: February 13, 2021, 09:07:57 AM by chris_s »
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #2 on: February 14, 2021, 01:22:32 AM »
Quote from: chris_s on February 13, 2021, 08:55:48 AM
I’ll be testing the adapter and card on an iPod video in a few days to see if it works just as well on that hardware using the latest build.
Didn't turn out to be the case, unfortunately. I'm getting data corruption on an Ipod video when doing USB transfers using Rockbox on the latest build. Disabling DMA didn't seem to help, either. Kind of disappointing :/ The iPod 4G on the other hand still works great.
« Last Edit: February 14, 2021, 01:29:37 AM by chris_s »
Logged

Offline nvandoorn

  • Member
  • *
  • Posts: 2
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #3 on: March 26, 2024, 06:29:20 PM »
Hey @chris_s hope you're well.

Are you still using this setup on your 4th gen iPod in current times? I just finished compiling my own build for my 4th gen iPod photo with the changes you describe and unfortunately I'm still having issues. I'm building against the latest development version (6e058fe77f48dc66a032de0a1e1cf495f85fe98f), and using an iFlash Solo with a 512GB Kingston Canvas card, which is from the iFlash approved list.

Here is the patch I've been using to test. I also confirmed my iPod is showing the right commit hash for the build.

commit d2cb7c2d01940f7c1d64b3b07f9b83d274eab57f
Author: Nick Van Doorn <nick@nv.delivery>
Date:   Tue Mar 26 15:22:32 2024 -0700

    Patch for iFlash on ipod color

diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 1c85b7bd5f..06a478bccc 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -892,7 +892,7 @@ void ata_spindown(int seconds)
 
 bool ata_disk_is_active(void)
 {
-    return ata_state >= ATA_SPINUP;
+    return 0;
 }
 
 void ata_sleepnow(void)
diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h
index 93bea58daa..59beaa1a2a 100644
--- a/firmware/export/config/ipodcolor.h
+++ b/firmware/export/config/ipodcolor.h
@@ -98,10 +98,6 @@
 #define AB_REPEAT_ENABLE
 #define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
 
-/* define this if you have a disk storage, i.e. something
-   that needs spinups and can cause skips when shaked */
-#define HAVE_DISK_STORAGE
-
 /* Define this for LCD backlight available */
 #define HAVE_BACKLIGHT
 #define HAVE_BACKLIGHT_BRIGHTNESS
@@ -159,9 +155,6 @@
 /* Define this if you want to use the PP5020 i2c interface */
 #define CONFIG_I2C I2C_PP5020
 
-/* We're able to shut off power to the HDD */
-#define HAVE_ATA_POWER_OFF
-
 /* define this if the hardware can be powered off while charging */
 //#define HAVE_POWEROFF_WHILE_CHARGING
 
@@ -211,14 +204,6 @@
 #define IPOD_ACCESSORY_PROTOCOL
 #define HAVE_SERIAL
 
-
-/* DMA is used only for reading on PP502x because although reads are ~8x faster
- * writes appear to be ~25% slower.
- */
-#ifndef BOOTLOADER
-#define HAVE_ATA_DMA
-#endif
-
 /* Define this, if you can switch on/off the lineout */
 #define HAVE_LINEOUT_POWEROFF
Logged

Offline nvandoorn

  • Member
  • *
  • Posts: 2
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #4 on: March 26, 2024, 06:53:54 PM »
Never-mind! I think one of the last changes I made must have fixed this. I was writing this post before I removed "#define HAVE_DISK_STORAGE" and "#define HAVE_ATA_POWER_OFF"

I should try turning DMA back on...
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #5 on: March 26, 2024, 08:12:43 PM »
Fwiw, the info from the OP is outdated as there've been further changes since then. The current dev build, at least in my experience should now work as-is both on an iPod video and iPod 4g (monochrome) when combined with an iFlash solo, possibly depending on the SD card used... Not sure about the iPod color though.

There's a somewhat more recent iFlash compatibility discussion going on here: https://forums.rockbox.org/index.php/topic,52560.msg253273.html
Logged

Offline segfault

  • Member
  • *
  • Posts: 1
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #6 on: March 28, 2024, 03:24:32 PM »
For what it's worth, I get intermittent ATA errors upon Rockbox startup/intermittent hangs during database build using:

  • iPod Classic with iFlash Solo
  • Rockbox dev build from ~1 week ago
  • SanDisk 512GB Extreme PRO SDXC UHS-I full size SD Card (SDSDXXD-512G-GN4IN), compatible with iFlash Solo per https://www.iflash.xyz/store/iflash-solo/

The setup typically doesn't have issues when booted into the stock iPod UI, but I was once able to get it stuck in a series of "Red X" boots that I haven't been able to reproduce since it first happened. I haven't ruled out the ribbon cable yet but it's my current suspect for the intermittent issues I'm seeing in Rockbox with this setup.
Logged

Offline Porklife

  • Member
  • *
  • Posts: 1
Re: iFlash Solo – perfectly reliable iPod/sd-card combos
« Reply #7 on: April 08, 2024, 01:29:50 PM »
It's been a few years since I messed around with Rockbox, but I always remember it being "Rock" solid.

Seems it's quite broken now. I do appreciate its free / open-source and devs give their time freely etc, so not a criticism, just an observation.

My experience:

Ipod Classic 5.5G with iFlash quad and quality micros sd.  Rockbox USB disk mode is borked. I've tried stable/daily/dev, all fail in the worst way, copy files from PC to ipod with no error message but files are corrupted on the ipod disk leading to track play weirdness
Ipod Classic 3G with iFlash CF adapter. Rockbox freezes, panics, reboots. Again stable, daily, dev builds. It's completely unusable.
Sansa e200v2 Rockbox USB disk mode borked. Copy starts but then goes slow and then fails with write error.

However on all 3 players above the stock OEM firmware performs flawlessly (albeit with the stock limitations). So suggests the hardware is not fundamentally the issue.

It would certainly be useful to have some documentation on what hardware mods and build version combinations are stable. Maybe I've just been unlucky, but 3 out of 3 fails seems like some fundamental usb/disk issues going on in the code.

Wish I had the dev skills to help out...all I can give is karma and respect...
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iFlash Solo – perfectly reliable iPod/sd-card combos
 

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

Page created in 0.066 seconds with 17 queries.