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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansa USB & Database Refresh
« previous next »
  • Print
Pages: [1]

Author Topic: Sansa USB & Database Refresh  (Read 3060 times)

Offline Avalon

  • Member
  • *
  • Posts: 88
Sansa USB & Database Refresh
« on: June 25, 2010, 01:33:48 PM »
I have a Fuze V1 and I find that the Sansa OS database refresh after a minor change to the Rockbox database is really slow.  I don't use the Sansa OS anymore, so I would like to avoid this if possible.

Until the USB interface is completed with the Fuze and other Sansa products, I was wondering if there could be a simple work around.  Is there a way in the boot up code to fool the Sansa OS into thinking there is a very small or no database present so that it would not refresh it at all on reboot?

This would work for me since I only use the RockBox OS.

Is this something that could be done or does it create other problems?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansa USB & Database Refresh
« Reply #1 on: June 25, 2010, 01:56:35 PM »
Theres no way to do that.
Logged

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Sansa USB & Database Refresh
« Reply #2 on: June 25, 2010, 03:32:17 PM »
Thks for getting back.

That's too bad....is there some other way to avoid the Sansa OS refresh?

I have a Sansa E260 as well and the USB function in RockBox is great!  There seems to be a major difficulty in getting a similar function in the Fuze.  If there is some workaround, it would be greatly appreciated.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Sansa USB & Database Refresh
« Reply #3 on: June 25, 2010, 04:04:28 PM »
No, there's no way to avoid it at all.

There's no "major difficulty" in supporting USB on the Fuze, it just takes time and testing to get it to work. USB on the chip used in the Fuze is being worked on currently.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Sansa USB & Database Refresh
« Reply #4 on: June 25, 2010, 04:13:44 PM »
Great!

Many thanks to the developers. 
Logged

Offline BI0906BMXK

  • Member
  • *
  • Posts: 6
Re: Sansa USB & Database Refresh
« Reply #5 on: June 25, 2010, 06:06:14 PM »
While your player is connected to USB using OF, hold the power button until the player turns off.  This way when you unplug the USB cable it will not perform the "Sansa Refresh" because it will be turned off.
Logged

Offline Avalon

  • Member
  • *
  • Posts: 88
Re: Sansa USB & Database Refresh
« Reply #6 on: June 25, 2010, 06:21:16 PM »
Thank you very much.

I tried your suggestion and it does exactly what I was looking for.

No Sansa OS database refresh!!!

Logged

Offline Piki

  • Member
  • *
  • Posts: 12
Re: Sansa USB & Database Refresh
« Reply #7 on: June 25, 2010, 07:20:14 PM »
What about booting into Rockbox and holding down the Select button (the button inside the scroll wheel) while plugging in the USB so Rockbox stays loaded when it's charging? The only problem with this is that you can't put stuff on and take stuff off.
Logged
--Piki

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansa USB & Database Refresh
« Reply #8 on: June 26, 2010, 12:08:09 AM »
Quote from: Piki on June 25, 2010, 07:20:14 PM
What about booting into Rockbox and holding down the Select button (the button inside the scroll wheel) while plugging in the USB so Rockbox stays loaded when it's charging? The only problem with this is that you can't put stuff on and take stuff off.

Charging in the OF doesn't involve a database refresh either unless you add a file, so I don't think this addresses the problem.
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Sansa USB & Database Refresh
« Reply #9 on: June 27, 2010, 03:56:14 AM »
Quote from: Avalon on June 25, 2010, 01:33:48 PM
Is this something that could be done or does it create other problems?
I think that on my C240 I made the database directory for the OF read only to fix this - it tries to do the update then discovers it cant write the files and aborts pretty quickly. My memory on the details is vague as the C240 has had Rockbox USB for a long time now.
Logged

Offline Vague Rant

  • Member
  • *
  • Posts: 49
    • Vague Rant
Re: Sansa USB & Database Refresh
« Reply #10 on: June 27, 2010, 05:30:55 AM »
The newer Sansas don't use a directory for the database, just a file in the root; I've tried marking it as read-only and even replacing it with a 0-byte file then marking it as read-only, but the best result I got was file system corruption, with database refreshes being written regardless of any changes I made. Once or twice I've had the database refresh fail due to a lack of space, so it may be possible to pad the file system out in order to cause the database to fail, but this may make updating Rockbox or updating Rockbox's own database, etc. difficult.

EDIT: On my Clip+, the "Not enough space for Music DB. Please free 90MB" error doesn't appear until I get down to about 1MB of free space on the device. From here it's impossible to boot the Sansa firmware except in USB mode; it simply shows the error then shuts down. This may be useful for anyone compiling their own Rockbox builds who doesn't want to see the refresh every time. As mentioned, though, this imposes a pretty harsh limit on any additional content, whether compiling with a new plugin or, e.g., writing the Rockbox database for the first time, so you'll have to make sure you've got all your major space-takers done before padding the drive. Still, it's not too hard to remove your pad file, copy across your stuff, adjust the size of your padder and continue; it'd also be necessary to remove the pad file any time the bootloader needs updating.
« Last Edit: June 27, 2010, 06:31:32 AM by Vague Rant »
Logged
Sansa Clip+

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Sansa USB & Database Refresh
« Reply #11 on: June 27, 2010, 04:08:59 PM »
Quote from: Vague Rant on June 27, 2010, 05:30:55 AM
The newer Sansas don't use a directory for the database, just a file in the root;
Oh, sorry - no help after all :-(
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansa USB & Database Refresh
 

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

Page created in 0.109 seconds with 14 queries.