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
| | |-+  Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac  (Read 31234 times)

Offline shasheene

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #15 on: November 04, 2014, 10:56:41 PM »
Thanks copper, your build now lets my 120GB device to mount on OS X Yosemite
Logged

Offline citizenkeith

  • Member
  • *
  • Posts: 5
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #16 on: February 12, 2015, 08:23:29 AM »
Thank you Copper. I just switched to a Macbook and it's great that I can manage my iPod Classic now.
Logged

Offline Marc.L

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #17 on: May 05, 2015, 02:04:01 PM »
Sorry for pushing this old thread, i have an iPod classic 6g and i have had the same issue that my mac won´t mount the iPod anymore. So i followed the instructions and build my own build with the vendor of an other USB drive. This worked like charm. In systemreport the iPod is shown with the vendor and hardware ids i have chosen. But when i eject the iPod and replug it the MAC again will do nothing, there isn´t even a USB device in Systemrepot. After i restart the MAC it works again for exactly one time. Is there anything else i could do?
Logged

Offline tri4k

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #18 on: July 12, 2015, 08:08:03 AM »
Hey guys. I'm also having trouble with an iPod classic mounting to my Mac. Using Windows I installed emCORE then the latest version of rockbox with the utility, then upon finding this thread I downloaded the fixed .rockbox file uploaded above, and extracted this to the iPod. However, the iPod takes ages to show up and then will randomly just disconnect again. It makes it impossible to actually copy any files onto it. I've tried running first aid on the drive using disk utility but the iPod simply disconnects before it has a chance to run through.
« Last Edit: July 12, 2015, 08:13:18 AM by tri4k »
Logged

Offline theptr

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #19 on: November 29, 2016, 02:24:47 PM »
Hi Saint,

I just made an account to say thanks for the guide

Quote from: [Saint] on September 27, 2013, 12:07:38 AM
Quote from: ashy7 on September 26, 2013, 04:48:20 AM
So basically, I'm screwed?

No, not at all.

But, it depends on  how much effort you're wanting to put into this. There are a few options:

1 - Get dual-boot working on the iPod Classic
2 - Smash it with a hammer
3 - Give up
4 - Patch out the devices VID/PID and re-compile a build with a new VID/PID combination so things stop thinking it is an iPod.

Options 1 through 3 are either insanely difficult, rather destructive, or defeatist...so lets roll with option 4. :)

Basically, what is happening is that Rockbox is using the original V/PID combination:
(/rockbox/firmware/export/config/ipod6g.h line(s) 241-242)

Code: [Select]
#define USB_VENDOR_ID 0x05AC

This is the vendor ID for Apple Inc.

Code: [Select]
#define USB_PRODUCT_ID 0x1261

This product ID tells us it is an iPod Classic 6G - which we already knew.

Some software (rightfully) sees this combination of vendor and product IDs and makes certain assumptions about it, expecting to be able to talk to the device in a very specific way. A Rockboxed iPod Classic pretty much breaks all these assumptions. The firmware partition is resized, the original firmware is not present at all, Rockbox has no IAP (iPod Accessory Protocol) support on this device (yet), there's no serial connection (yet)...like I said earlier, it pretty much isn't an iPod anymore.

There several ways to deal with this:

1 - Rockbox gets its own vendor and batch of process IDs from the Openmoko project and uses this exclusively.
2 - Rockbox gets its own vendor and batch of process IDs from the Openmoko project and allows the user to select between this and the original V/PID.
3 - Rockbox allows the user to provide their own arbitrary V/PID combination.
4 - Rockbox does nothing and users are required to make the required changes themselves when/if they encounter such issues.
5 - The Sun explodes making none of this relevant as man battles to survive as it is forced underground into a Matrix-style subterranean land.


In my mind, option 2 is the "right" way to handle this (...but, option 5 would be pretty cool too, except for the killer robots and all), but these things take time, and someone with a willingness to make it happen.

What we are looking at here however, is what will help you right now...and that is option number 4.

To do this, you will need to set up a Rockbox development environment to build Rockbox yourself.
The easiest way to do this is with a Live CD/DVD/USB or a virtual machine.

Rockbox provides a pre-built VirtualBox Ubuntu virtual machine image you may use for this. This image comes with git and the ARM toolchain pre-installed.

After setting up either a virtual machine or a LiveCD (If you do not use the supplied VirtualBox image or use a LiveCD, you will first need to configure the environment using the "getting started" section of our Linux Simple Guide to Compiling) you will then need to checkout the Rockbox source code.

However way you went about it, you should now have either a LiveCD or VirtualBox virtual machine with the required dependencies, the ARM toolchain, and the Rockbox source code and are now ready to make the changes to the source and recompile. From your git checkout of the Rockbox source repository, navigate to the small snippet of code I pointed to earlier in /rockbox/firmware/export/config/ipod6g.h (lines 241 and 242).

Now, we know we want to change the V/PID, but...what do we change it to?

Well. That's actually a tough question. Do we invent an arbitrary value? Do we use a known value from an existing device? ...both may potentially have undesirable consequences. What I had done myself in the past (to avoid similar detection problems with an iPod and a car audio head unit) is use the V/PID of a generic USB mass storage device.

The process of finding USB V/PIDs is describes briefly here. On linux (for instance, in your new virtual machine or LiveCD), it would look something like this:

Code: [Select]
saint@saint-desktop:~$ lsusb
Bus 001 Device 001: ID 123a:456b Imaginary Devices Inc.

In this example, the USB_VENDOR_ID is 123a, and the USB_Product_ID is 456b. These are the values you would use to replace the original values in ipod6g.h.
Now that the V/PID is changed in the device config in the source, we can compile our build!

Assuming all went well, in a minute or so (depending greatly on the speed of your machine) you should end up with a newly compiled Rockbox binary which is a dirty, dirty liar and tells the host it is nothing more than <whatever_device_you_burgled_the_V/PID_combination_from>. Mount the device and extract this build to the root of the device (you can use your virtual machine for this - since your Mac not playing nice is the reason we're here in the first place), safely eject, and restart the device.

All going to plan, your Mac, car head units, Amarok, and a whole host of other things that rely on detecting an iPod in such a fashion should now see the device as generic removable storage and all should be well with the world.


If you get stuck at any point, don't hesitate to ask questions. Its how we learn things.

If you prefer, you may be able to get hold of myself (or others willing to help you) over at our IRC channel (#rockbox) on Freenode, there is an IRC web-client available here. I go by the nick [Saint] there also, good luck, take care.


[Saint]
Logged

Offline ccpizz

  • Member
  • *
  • Posts: 2
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #20 on: March 05, 2017, 08:36:05 AM »
I made a fork with the modified USB_VENDOR_ID on github: https://github.com/elFua/rockbox

Download zip: https://github.com/elFua/rockbox/releases/download/ipod6g_5265b09/rockbox-full-ipod6g_5265b09.zip (built on 5-mar-2017)

here is the relevant diff: https://github.com/elFua/rockbox/commit/7c3c1a2586018f12696c445b8c3e77a724383232
« Last Edit: March 05, 2017, 10:28:49 AM by ccpizz »
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 405
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #21 on: May 04, 2017, 09:15:23 PM »
We actually got a block of USB IDs from Openmoko a while back, and I pushed a patch to gerrit to move all the targets to them:

http://gerrit.rockbox.org/r/#/c/1603/

For convenience, here is a build of that patch for the ipod6g:

https://fwei.tk/rockbox-ipod6g-usbid.zip
Logged
No support questions by PM, please.

Offline sonicmouse

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #22 on: May 24, 2018, 10:08:11 AM »
Quote from: __builtin on May 04, 2017, 09:15:23 PM
We actually got a block of USB IDs from Openmoko a while back, and I pushed a patch to gerrit to move all the targets to them:

http://gerrit.rockbox.org/r/#/c/1603/

For convenience, here is a build of that patch for the ipod6g:

https://fwei.tk/rockbox-ipod6g-usbid.zip

Sorry to bump an old thread, but I just encountered a similar issue with my Ford Sync not recognizing my 6g iPod with rockbox. I'm guessing that last post has the build I need, but the link is dead :(

Is anyone able to host this file again, or is there another link floating around? I wasn't sure if the post before that also has the relevant file I'd need.

-----Edit: Link was fixed by the host. Big thanks!
« Last Edit: May 25, 2018, 10:57:55 AM by sonicmouse »
Logged

Offline tyser

  • Member
  • *
  • Posts: 3
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #23 on: August 10, 2020, 06:01:17 PM »
I am replying to an old thread, because this is the thread that has the most relevant information, the thing that comes up on google, the thread that clearly people scour looking for help as it's near 30k views, etc., so no I do not wish to start a new thread

i have an ipod video 60gb version, have modded it with the tarkan adapter, used rockbox for years before that and since. trying to get the ipod to work with the 2017 Subaru Forester. it is compatible with the ipod 5g, works fine in OF. i don't want to convert thousands of flac files so i can use the ipod in the car, and want to be able to use the head unit/steering wheel controls for obvious safety reasons so want to figure out how to get it to connect with rockbox as it won't recognize is at all.

i just went through several hours of figuring out how to edit the the vendor/product ids in the source code and recompile. i replaced the values referring to this link
https://gerrit.rockbox.org/r/#/c/1603/3/firmware/export/config/ipodvideo.h
recompiled in the provided ubuntu/virtualbox links from the tutorial, freshly formatted the ipod in windows, put the rockbox folder and a couple albums on there and tried it out.

when booting into rockbox, the HU used to say something like "failed to authorize/connect" which it does not do anymore, it doesn't do anything, actually. it still recognized the ipod when booting into OF, which i don't understand since i supposedly went through all of the trouble of trying to prevent that so that it would only recognize it as a generic usb device, which it does not do!

any tips, suggestions, advice? am i the only person on the planet still trying to do this kind of thing?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9274
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #24 on: August 10, 2020, 10:57:18 PM »
Quote from: tyser on August 10, 2020, 06:01:17 PM
when booting into rockbox, the HU used to say something like "failed to authorize/connect" which it does not do anymore, it doesn't do anything, actually. it still recognized the ipod when booting into OF, which i don't understand since i supposedly went through all of the trouble of trying to prevent that so that it would only recognize it as a generic usb device, which it does not do!

If you change the VID it should recognize the device as a generic USB thumb drive or portable hard drive.  Assuming your car stereo can play music from external storage devices, I'd expect it to at least play MP3 files and maybe WMA/AAC.  FLAC support on a car stereo isn't very common so I doubt those are going to work.  You might need to look at the manual to see how your stereo handles USB thumb drives. 
Logged

Offline tyser

  • Member
  • *
  • Posts: 3
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #25 on: August 13, 2020, 04:58:56 PM »
thanks for your reply. i did check and the correct values display in device manager when booting into rockbox so i did do the install correctly, guess it's on me to figure out beyond that  8)
Logged

Offline dorites

  • Member
  • *
  • Posts: 1
Re: Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
« Reply #26 on: August 11, 2023, 12:39:33 AM »
Hi, sorry, is there a build of this patch that works with the ipod5g? I tried to put this build onto my 5th gen to no avail and I don't believe I have the means to get involved in patching rockbox.
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Problems with Rockboxed iPod classic (6g slim 160gb) with Mac
 

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

Page created in 0.05 seconds with 17 queries.