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
| | |-+  CompactFlash based iPod mini
« previous next »
  • Print
Pages: [1] 2 3 4

Author Topic: CompactFlash based iPod mini  (Read 12349 times)

Offline dude52

  • Member
  • *
  • Posts: 15
CompactFlash based iPod mini
« on: March 15, 2007, 11:44:06 AM »
I recently performed this mod on my iPod mini:
http://geektechnique.org/projectlab/753/how-to-turn-your-ipod-mini-into-a-flash-based-ipod
I tried putting rockbox on it and it boots fine, but since it now uses a solid state flash card, accessing files has become broken. My guess is that rockbox is trying to send signals to a hard drive, but no hard drive is listening so it gets flummoxed and hangs. Is there any way to make this compatible?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: CompactFlash based iPod mini
« Reply #1 on: March 15, 2007, 12:13:28 PM »
does it work with the Apple OS? As far as I know the interfaces of the CF card and the Microdrive are completely identical, so this might be related to the addition on the website you linked:
Quote
There seem to be some questions about which CF-card works or not.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline dude52

  • Member
  • *
  • Posts: 15
Re: CompactFlash based iPod mini
« Reply #2 on: March 15, 2007, 12:16:28 PM »
It works with the apple OS. I lucked out with a card I got on ebay.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: CompactFlash based iPod mini
« Reply #3 on: March 15, 2007, 01:16:19 PM »
What format is the filesystem? Specifically, many flash cards end up FAT16 instead of FAT32.
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: CompactFlash based iPod mini
« Reply #4 on: March 15, 2007, 01:28:06 PM »
There's a page in the Rockbox wiki about exactly this - putting a CF card in an ipod mini.  But I forget the name of it...
Logged

Offline dude52

  • Member
  • *
  • Posts: 15
Re: CompactFlash based iPod mini
« Reply #5 on: March 15, 2007, 01:41:52 PM »
You were right. It looks like all I need to do is add the diff file into a build. I'll post again when I have results.

Compact Flash page
http://www.rockbox.org/twiki/bin/view/Main/MiniCF
Logged

Offline dude52

  • Member
  • *
  • Posts: 15
Re: CompactFlash based iPod mini
« Reply #6 on: March 15, 2007, 03:00:22 PM »
I tried patching rockbox with the diff file, but it failed. I'm not a big coder, so I can't tell what needs to be changed. But if someone could looks things over for me, I could test things out and post results. Any volunteers?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: CompactFlash based iPod mini
« Reply #7 on: March 15, 2007, 04:26:09 PM »
You could try searching for the lines that get changed by that patch. From a quick look ata.c:713 might be the solution ... can't try it though, and as I don't know the ATA code I might be completely wrong.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline dude52

  • Member
  • *
  • Posts: 15
Re: CompactFlash based iPod mini
« Reply #8 on: March 15, 2007, 09:42:29 PM »
I tried mucking about with the code, but no change. I notice the diff file refers to an ata.c that is at least 1400 lines long, but the current file ends at 1016. Could this portion that needs to be changed have been moved elsewhere or removed?
Logged

Offline dude52

  • Member
  • *
  • Posts: 15
Re: CompactFlash based iPod mini
« Reply #9 on: March 16, 2007, 10:22:02 AM »
It would appear that I got things to work. Essentially, there was a section of code that I commented out and that took care of things. However, the USB seems a little spotty (sometimes it works and sometimes it hangs). But I don't know if this is a result of what I commented out.

Here is the function from ata.c that was causing problems:
Quote
static int perform_soft_reset(void)
{
/* If this code is allowed to run on a Nano, the next reads from the flash will
 * time out, so we disable it. It shouldn't be necessary anyway, since the
 * ATA -> Flash interface automatically sleeps almost immediately after the
 * last command.
 */
#ifndef IPOD_NANO
   
    int ret;
    int retry_count;
   
    SET_REG(ATA_SELECT, SELECT_LBA | ata_device );
    SET_REG(ATA_CONTROL, CONTROL_nIEN|CONTROL_SRST );
    sleep(1); /* >= 5us */

    SET_REG(ATA_CONTROL, CONTROL_nIEN);
    sleep(1); /* >2ms */

    /* This little sucker can take up to 30 seconds */
    retry_count = 8;
    do
    {
        ret = wait_for_rdy();
    } while(!ret && retry_count--);

    /* Massage the return code so it is 0 on success and -1 on failure */
    ret = ret?0:-1;

    return ret;
#else
    return 0; /* Always report success */
#endif
}

I made the function return 0 whenever it gets called (ie. a success) so it doesn't bother trying to tell the flash card to sleep. If I understand correctly, one could replace IPOD_NANO with whatever the correct name for the iPod mini is. It's not IPOD_MINI because I tried that and it didn't work.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: CompactFlash based iPod mini
« Reply #10 on: March 16, 2007, 07:01:21 PM »
There are two definitions -- IPOD_MINI and IPOD_MINI2G depending on the generation of your mini. You made me quite curious, and I tried replacing the microdrive with a CF card in my mini. It worked, but only with the OF. Later I realized that the bootloader also uses ata.c and thus needs to be adjusted as well... I already reassembled my mini, but when my new battery arrives I might try it again. The mod itself is really simple to do ;)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Dankoozy

  • Member
  • *
  • Posts: 7
    • My Site
Re: CompactFlash based iPod mini
« Reply #11 on: June 22, 2007, 09:21:07 AM »
I compiled rockbox for a ipod mini 2g / compactflash. but unfortunately no ipod to test on

http://97k.eu/ul/bin/rockbox-20070621-ipodmini2g_cf.zip
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: CompactFlash based iPod mini
« Reply #12 on: June 22, 2007, 11:21:38 AM »
Dankoozy: YES! This sounds like the solution! I'm looking to buy a mini and a 16GB CompactFlash card to give to my brother, and with Rockbox installed... we can RULE THE WORLD!!  :P

Have you given thought about making it an "official" unofficial build? I'm sure lots of hardware hackers out there would love this combination!
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline dbpaddler

  • Member
  • *
  • Posts: 5
Re: CompactFlash based iPod mini
« Reply #13 on: July 14, 2007, 02:20:43 AM »
Well I've got the 16gb Adata card running on a 2nd gen mini. I can load music and play it, but not much more. I try to get the database going and the menu freezes. I try to explore the fonts and it freezes. And actually, getting it to play is sporadic as it freezes when trying to select files.

I've rockboxed my iriver h10 and my sansa e280. This is the first time I'm stumped. I loathed getting an ipod to begin with, but my Rio Carbon didn't like the 16gb card. Tempted to try a Creative Micro, but I figured I could stomach the ipod since I wasn't using Apple's firmware or itunes. I'm an extreme novice when it comes to the coding and programing of things, but I'm still willing to give this project a shot.

Was about to give dankoozy's build a shot, but it doesn't seem to exist through that link.
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: CompactFlash based iPod mini
« Reply #14 on: July 14, 2007, 11:51:27 AM »
Please note that I moved this to the hardware forum because it is not related to installation of Rockbox on an iPod.  It is, however, related to "discuss[ion] [of] the actual hardware, and very hardware specific issues with the software."  And this forum is therefore the appropriate forum for this thread.

Let me also note that it is NOT appropriate to use the "report post" button to express disagreement with my decision of where to place a thread.  The "report post" button sends an e-mail to multiple recipients, and should be used ONLY to report inappropriate posts.
« Last Edit: July 14, 2007, 11:57:46 AM by Febs »
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

  • Print
Pages: [1] 2 3 4
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  CompactFlash based iPod mini
 

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

Page created in 0.123 seconds with 15 queries.