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
| | |-+  256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« previous next »
  • Print
Pages: 1 [2] 3 4 5

Author Topic: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?  (Read 39873 times)

Offline DMinor

  • Member
  • *
  • Posts: 26
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #15 on: March 16, 2013, 05:33:11 PM »
Thanks Trone for the update and your efforts are greatly appreciated. Very encouraging news.
Logged

Offline DMinor

  • Member
  • *
  • Posts: 26
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #16 on: March 29, 2013, 02:55:25 PM »
Quote from: torne on March 16, 2013, 12:53:43 PM
OK, I have it booting and able to play music and generally operate, by just disabling the sanity check for whether the ATA registers are writable/readable correctly. It looks like the SATA interface doesn't implement reading back of the four address registers properly, and this is not normally important in usage of parallel ATA devices that aren't cdrom drives, which is why the original firmware works.

It still doesn't work properly, though: writing to the drive in Rockbox mostly doesn't work. It manages to save its settings, playlist control files, etc, but initialising the database hangs when it tries to write the database to disk, and while reading the device over usb works fine, you can't write to it.

So, I'll need to look at it some more, but this is a good start ;)

If you want to try this on your own device, comment out the call to check_registers() in firmware/drivers/ata.c and build; that was enough to get the one I have here to boot. But, don't expect it to work properly.

Trone, we can't wait to hear the ultimate news on the mSATA.  :) 

My dream is to have one affordable 256GB mSATA SSD ipod 5.5g of course Rockbox'ed.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #17 on: April 02, 2013, 07:40:19 AM »
The communication with the SSD is completely unreliable no matter what I do, it seems; data are corrupted randomly and writing rarely works, and even the basic identifying information about the SSD such as the model name is corrupted randomly when read :/

I need to do some more experiments, but it's really not obvious what the issue is here.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline crashtack

  • Member
  • *
  • Posts: 1
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #18 on: April 10, 2013, 12:31:01 AM »
:-(
Logged

Offline SpawnHyuuga

  • Member
  • *
  • Posts: 70
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #19 on: April 18, 2013, 02:26:48 PM »
Does anybody have the Super Talent DuraDrive ZT2 installed in an iPod? The reviews on Amazon for the drive itself are rather shaky at best, and I don't want to sink $200 on something that'll fail in 3 months, especially if it's difficult to fix, repair or replace.

I'm highly considering a KingSpec SSD instead, as it's much cheaper.
« Last Edit: April 18, 2013, 03:30:54 PM by SpawnHyuuga »
Logged
Current Devices: Sony-Ericsson Xperia Play
Coming Devices: iPod Video 5.5G (80 GB)
Former Devices: Sansa Fuze v2, Sansa Clip+

Offline Alkor

  • Member
  • *
  • Posts: 5
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #20 on: May 02, 2013, 09:33:01 AM »
torne
Ok ppl still w8 u. So good luck  ::)
Logged

Offline darrysmi

  • Member
  • *
  • Posts: 3
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #21 on: May 05, 2013, 05:21:47 AM »
Quote from: torne on April 02, 2013, 07:40:19 AM
The communication with the SSD is completely unreliable no matter what I do, it seems; data are corrupted randomly and writing rarely works, and even the basic identifying information about the SSD such as the model name is corrupted randomly when read :/

I need to do some more experiments, but it's really not obvious what the issue is here.

Thanks Torne, progress is progress :)  Thanks for investigating, hopefully its something simple...
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #22 on: May 05, 2013, 10:57:22 AM »
Try different timings in IDE0_PRI_TIMING0. Look in firmware/target/arm/pp/ata-pp5020.c. The register is set in ata_device_init() and below the function there is a comment with some other values.

Rockbox has used 0x10 from before I worked on these files. I never saw iPod 5G OF using that value. When I tried various PIO timings on my 5G 30GB iPod with stock HD, 0x10 gave the best performance, so I left it that way.

In firmware/drivers/ata.c, the first setting in set_features() sets the PIO mode. The OF would match that to the IDE0_PRI_TIMING0 value. You could try setting a slower mode, but that shouldn't be necessary.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #23 on: May 08, 2013, 08:38:14 AM »
Aha, thanks for your expertise dreamlayers :)

I will experiment with that later.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #24 on: May 08, 2013, 05:35:32 PM »
Well, that works, it seems. Left it on PIO 4, and changed the timing to the one from pio80mhz[4] (0x3131) and lo and behold check_registers now passes and nothing is corrupted any more. :)

Do we have any idea what the timing value actually means here? I could change it to 0x3131 for everyone but it seems like we should maybe copy the OF better and use the one that matches the PIO mode we are using?
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline DMinor

  • Member
  • *
  • Posts: 26
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #25 on: May 08, 2013, 07:48:01 PM »
Quote from: torne on May 08, 2013, 05:35:32 PM
Well, that works, it seems. Left it on PIO 4, and changed the timing to the one from pio80mhz[4] (0x3131) and lo and behold check_registers now passes and nothing is corrupted any more. :)

Do we have any idea what the timing value actually means here? I could change it to 0x3131 for everyone but it seems like we should maybe copy the OF better and use the one that matches the PIO mode we are using?
You are the man Torne, and thanks for the great news. Words can't express my appreciation for what you (and the entire RB team) have been doing for so many RB lovers including myself.
« Last Edit: May 09, 2013, 04:11:07 AM by DMinor »
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #26 on: May 08, 2013, 11:45:30 PM »
Quote from: torne on May 08, 2013, 05:35:32 PM
Well, that works, it seems. Left it on PIO 4, and changed the timing to the one from pio80mhz[4] (0x3131) and lo and behold check_registers now passes and nothing is corrupted any more. :)

Great! It's nice to know you got that working.

Quote from: torne on May 08, 2013, 05:35:32 PM
Do we have any idea what the timing value actually means here? I could change it to 0x3131 for everyone but it seems like we should maybe copy the OF better and use the one that matches the PIO mode we are using?

This is based on iPod 5G startup code in flash. I think these are timing values for PIO modes 0 through 4, based on how the function using them is written.  The OF first uses value 0 and then after setting PIO mode 4 via the set feature command switches to value 4 (0x3131).  For mwdma and udma, the OF actually checks what the drive supports and sets values based on that, but no detection is performed for PIO.

Support for PIO 3 and 4 can be detected from identify device info and Rockbox does detect them and set 2, 3 or 4 appropriately. This could be used by defining ATA_SET_PIO_TIMING and implementing ata_set_pio_timings with IDE0_PRI_TIMING0 = pio80mhz[mode]. I think it's unlikely that any drives not supporting PIO 4 would be encountered, but this might as well be used since the supporting code is already present. In ata_device_init, IDE0_PRI_TIMING0 = pio80mhz[0] should be used to match the OF. Using the 80 MHz value for PIO0 at a lower CPU frequency is probably fine.

I think this would be a good thing, because of how various adapter boards are popular now and problems like this will come up again. I suspect 0x10 violates the spec but works with most storage devices because the signal path is so short.  The performance decrease is small even with PIO, and now most reads are done via DMA.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #27 on: May 09, 2013, 06:18:00 AM »
OK, I'll go ahead and do it like that.

However, while Rockbox appears to work correctly including both reading and writing files, plugging in USB hangs the device immediately. I'm not sure if this is related or not, I'll need to experiment more :/
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline DMinor

  • Member
  • *
  • Posts: 26
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #28 on: May 10, 2013, 05:08:22 AM »
Quote from: torne on May 09, 2013, 06:18:00 AM
OK, I'll go ahead and do it like that.

However, while Rockbox appears to work correctly including both reading and writing files, plugging in USB hangs the device immediately. I'm not sure if this is related or not, I'll need to experiment more :/

By the way, have you tried using an external amp with the ipod? Would a LOD cable hang the device also?
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: 256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
« Reply #29 on: May 12, 2013, 05:43:04 PM »
Posted a patch for this here: http://gerrit.rockbox.org/r/#/c/469/

There's an ipodvideo test build of this available here if anyone wants to try: http://whitefang.wolfpuppy.org.uk/temp/rockbox-piotimings.zip - if you try this let me know how it works. On the device I have this is not 100% functional yet; it boots and plays audio but test_disk hangs and USB behaves badly.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: 1 [2] 3 4 5
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  256GB mSATA SSD for iPod 5g/5.5g - possible with current release of Rockbox?
 

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

Page created in 0.156 seconds with 22 queries.