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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Make Rockbox mount SD and not Internal memory (car deck USB)
« previous next »
  • Print
Pages: [1]

Author Topic: Make Rockbox mount SD and not Internal memory (car deck USB)  (Read 4049 times)

Offline mrbryan

  • Member
  • *
  • Posts: 2
Make Rockbox mount SD and not Internal memory (car deck USB)
« on: October 02, 2010, 11:38:08 AM »
When I connect the player in my car, it mounts only the 4gb internal memory instead of my larger SD card.

Does anyone know how to make the device mount the SD card only?




Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #1 on: October 02, 2010, 12:03:01 PM »
Rockbox should expose both storage devices as UMS.  It doesn't appear that much  can be done about forcing your car stereo to only mount one or the other.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #2 on: October 02, 2010, 12:09:12 PM »
Your car probably can't handle multiple LUNs.

You could compile a special build that only exposes the card slot over usb. To do that, add a line saying
Code: [Select]
#define HIDE_FIRST_DRIVE
near the top of firmware/usbstack/usb_storage.c

Of course, this will have the result that you can't access the internal memory from the PC anymore either, unless you keep the changed build somewhere else on the player and RoLo it when needed...

Or you could look at what HIDE_FIRST_DRIVE achieves (it's rather simple) and add a setting for this.

I think that in this situation I'd just get a cheap SD card reader though.

Edit: using HIDE_FIRST_DRIVE may lead to some unexpected behaviour if the SD card is plugged or unplugged during the USB connection. It was originally meant as a quick hack for debugging, and it doesn't take inserted/ejected status into account properly.
« Last Edit: October 02, 2010, 01:02:32 PM by gevaerts »
Logged

Offline mrbryan

  • Member
  • *
  • Posts: 2
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #3 on: October 03, 2010, 10:00:30 AM »
Cool thanks I may try that
Logged

Offline MajiKool Dragonâ„¢

  • Member
  • *
  • Posts: 147
  • I'm me!
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #4 on: October 04, 2010, 09:37:42 AM »
this would be epic if a setting for this were commited as a feature...
the majority of my music is on my microsd, and in a my bmw it only mounts the fist drive(internal storage)
« Last Edit: October 04, 2010, 10:56:05 AM by MajiKool Dragonâ„¢ »
Logged
"Isn't it funny how even the coldest weather isn't so cold when you've got people who care about you to walk through it with you." - MajiKool Dragonâ„¢
SanDisk Sansa c240v1 + 16GB µSDHC, Apple iPhone 4 iOS4.2.1 Jailbroken

Offline zaphee

  • Member
  • *
  • Posts: 44
  • mrjl@xmppnet.de
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #5 on: October 27, 2010, 07:05:23 AM »
Quote from: MajiKool Dragonâ„¢ on October 04, 2010, 09:37:42 AM
this would be epic if a setting for this were commited as a feature...
the majority of my music is on my microsd, and in a my bmw it only mounts the fist drive(internal storage)
+1, I totally agree.
Logged
iPod nano (1-st gen. ; 4GB)
Sandisk sansa Clip+ (2GB)
Android 4.0 tablet

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #6 on: October 27, 2010, 07:31:04 AM »
Quote from: zaphee on October 27, 2010, 07:05:23 AM
+1, I totally agree.

Such a shame then that all the "yeah, this would totally be awesome" posts don't mean anything if those people aren't prepared to actually do the work ;)

A fix for this was suggested by gevaerts several posts ago.


[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline zaphee

  • Member
  • *
  • Posts: 44
  • mrjl@xmppnet.de
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #7 on: October 27, 2010, 10:41:24 AM »
Quote from: [St.] on October 27, 2010, 07:31:04 AM
Quote from: zaphee on October 27, 2010, 07:05:23 AM
+1, I totally agree.

Such a shame then that all the "yeah, this would totally be awesome" posts don't mean anything if those people aren't prepared to actually do the work ;)

A fix for this was suggested by gevaerts several posts ago.


[St.]
Yeah, but not all of us are developers here ;) so we do what we can, i.e. show our interest in having such a feature.
The fix gevaerts suggested above is a temporary solution indeed, but it's not really handy for an everyday user. That's why an option in the USB driver would be actually welcome.
:)
Logged
iPod nano (1-st gen. ; 4GB)
Sandisk sansa Clip+ (2GB)
Android 4.0 tablet

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Make Rockbox mount SD and not Internal memory (car deck USB)
« Reply #8 on: October 27, 2010, 11:24:52 AM »
Saint's point is that saying "+1" doesn't do anything, other than perhaps annoy a few people who might interpret it as asking someone else to do the work for you. You would be better off not posting at all if you have nothing concrete to add.

Anyone who reads this thread, whether they are a developer or just someone who might write a patch, already knows by reading it exactly what the problem is, and gevaerts gave a big pointer to anyone on how to implement a setting. If someone with the ability feels like doing it they will do it, with or without your +1.

I would do this myself if I had a player with an SD slot, but I don't, and my motivation to work on something that I'd be dependent on someone else for all testing is not very high. Someone who owns the player in question is always more likely to do something about a player-specific issue. :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Make Rockbox mount SD and not Internal memory (car deck USB)
 

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

Page created in 0.112 seconds with 14 queries.