Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10023 - iTunes communication for software USB targets

Attached to Project: Rockbox
Opened by Jonas Häggqvist (rasher) - Saturday, 14 March 2009, 22:08 GMT+2
Last edited by Jonas Häggqvist (rasher) - Saturday, 14 March 2009, 23:29 GMT+2
Task Type Patches
Category Drivers
Status New
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

This patch will make an e200 present its SD card as an ipod mini 2G when queried by iTunes. It does this by changing a number of things:

1) Responding to SCSI inqueries
2) Using Ipod USB vid/pid and other usb details

The patch also enables logf for the usb_storage.c because I'm in a bit of a hurry.

To use this, make sure you have a partition on the SD card of type 0 (any size should do) and also the appropriate Ipod file structure (can be generated with e.g. gtkpod).
   itunes_FS10023_v1.diff (25.1 KiB)
 firmware/export/config-e200.h   |    4 
 firmware/usbstack/usb_core.c    |   28 -
 firmware/usbstack/usb_storage.c |  574 ++++++++++++++++++++++++++++++++++++----
 firmware/target/arm/ata-sd-pp.c |    8 
 4 files changed, 545 insertions(+), 69 deletions(-)

This task depends upon

Comment by Jonas Häggqvist (rasher) - Monday, 16 March 2009, 20:45 GMT+2
Slightly less messy patch. It uses the main memory rather than the SD card. Again, make sure you have an appropriate layout (a partition of type 0 somewhere) and the iPod_Control directory.

I've been unable to copy AAC files to my Sansa with this, but I'm fairly sure that's because I removed AAC support from the XML at one point and iTunes remembers this. I doubt this'll be a problem for anyone else.
   itunes_FS10023_v2.diff (14.5 KiB)
 firmware/export/config-e200.h   |    4 
 firmware/usbstack/usb_core.c    |   28 --
 firmware/usbstack/usb_storage.c |  494 +++++++++++++++++++++++++++++++++++++++-
 firmware/target/arm/ata-sd-pp.c |    6 
 4 files changed, 504 insertions(+), 28 deletions(-)

Comment by Frank Gevaerts (fg) - Tuesday, 17 March 2009, 20:23 GMT+2
This patch adds the code to accept itunes time setting. Not tested yet, and the rockbox side of things (i.e. actually setting the time) is left as an exercise to the reader.
   ipod_settime.diff (2.5 KiB)
 firmware/usbstack/usb_storage.c |   33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

Loading...