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
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« previous next »
  • Print
Pages: [1]

Author Topic: Customizable paths for last.fm scrobbling, tagcache DB and runtime information  (Read 2437 times)

Offline runiq

  • Member
  • *
  • Posts: 4
Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« on: December 27, 2009, 09:05:53 AM »
Hey everybody,

First of all, thanks for developing rockbox, of course.

That being said, I'm using rockbox on a Sansa e200 which comes with a microSD slot. Having read that flash memory can only be written to a limited number of times, I think it might be a nice idea to specify the paths where the information mentioned in the headline is saved to (which would be, in my case, the exchangeable microSD card). The information in these files changes only in little increments, but relatively often, and thus increases wear on the internal memory of a player when saved in the standard .rockbox directory. Were it saved to the external memory, wear wouldn't be much of a problem over the lifetime of a player, as the microSD card could easily be switched for a new one.

To be honest, I don't know how much erase/write cycles it takes to wear out a significant amount of memory with scrobbling and RT info logging enabled. I'd like my DAP to last as long as possible, though.

I know these three aren't related very much, but I hope it's not too hard to implement. If someone could point me into the right direction, I'd also take a stab at it myself, though I'm not much of a coder.
Logged

Offline tomers

  • Developer
  • Member
  • *
  • Posts: 76
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #1 on: December 27, 2009, 09:31:09 AM »
Hello Runiq,

I think that your feature requests complicates things unnecessarily.
If you are worried about the wear of your internal flash memory, you can install Rockbox on the SD card instead, having all the settings saved there too.

The following is taken from the Rockbox manual of the Cowon D2 player. I'm quite sure that it should work for any player that has SD slot:

Quote
If you have chosen to install to an SD card and it is inserted at power on, Rockbox will boot from that card and use it as the primary drive for storing settings, etc. If there is no SD card inserted, Rockbox will boot from the internal memory

I couldn't find and information on the possibility to install Rockbox on an SD card, in the e200's users manual. But as I just said, I think it is possible. This information should be added to the manual  :-\.

Quote from: runiq on December 27, 2009, 09:05:53 AM
To be honest, I don't know how much erase/write cycles it takes to wear out...

Regarding the write endurance of the internal flash memory, it is a bit of investigation to determine which type of flash your e200 contains.

If you know which flash you got, some information on flash memory write endurance capabilities can be found in Wikipedia.


Quote from: runiq on December 27, 2009, 09:05:53 AM
I'd like my DAP to last as long as possible, though.
I believe your battery will wear out much sooner than the internal flash  ;D. I got no technical info about it, but nevertheless. Although I think it is relatively easy to replace battery on these type of players (there are screws to open it).
Logged

Offline runiq

  • Member
  • *
  • Posts: 4
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #2 on: December 27, 2009, 10:05:31 AM »
Thanks for the exhaustive information, your solution is much better and simpler than what I proposed. I haven't read the D2 manual before, so I didn't even know installing to miSD was possible at all. I'll look into adding it to the manual myself if starting Rockbox from miSD works.

Also, thanks for the links regarding write endurance, very much appreciated!

Quote
I believe your battery will wear out much sooner than the internal flash. I got no technical info about it, but nevertheless. Although I think it is relatively easy to replace battery on these type of players (there are screws to open it).

Yep, that's one of the reasons why I chose to buy it in the first place. :)

(Edit for typos)
« Last Edit: December 27, 2009, 10:12:01 AM by runiq »
Logged

Offline tomers

  • Developer
  • Member
  • *
  • Posts: 76
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #3 on: December 27, 2009, 11:13:43 AM »
Quote from: runiq on December 27, 2009, 10:05:31 AM
I'll look into adding it to the manual myself if starting Rockbox from miSD works.
Please do it as part of the FS#10880 task I just opened (you can post a patch there).

Quote from: runiq on December 27, 2009, 10:05:31 AM
Also, thanks for the links regarding write endurance, very much appreciated!
Thanks  :D
Logged

Offline runiq

  • Member
  • *
  • Posts: 4
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #4 on: December 27, 2009, 01:10:47 PM »
I just tried moving the .rockbox directory from the player's root dir to the mSD, but Rockbox complained that it couldn't find the mi4 file and just booted the original firmware instead. After that, I tried using sansapatcher to install the bootloader to the microSD card instead of the player's root dir, but that wouldn't work either because sansapatcher didn't let me install the bootloader to a non-E200/C200 volume. (In retrospect, this was a stupid idea anyway. :) ) So I uninstalled the bootloader and reinstalled it to the player's root directory using the newest sansapatcher (0.8), but still no luck - Rockbox won't find the .rockbox directory if it's on the mSD.

The D2 manual says the SD card driver is still experimental, so I assume it isn't even implemented yet in the Sansa ports?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #5 on: December 27, 2009, 01:17:46 PM »
The feature exists on the D2 because the D2's internal memory is read-only for Rockbox, so booting off the SD card is necessary to even be able to save settings at all. Because this isn't necessary on other players, it wasn't added to their bootloaders I imagine (which are kept as simple as possible for many reasons).

These devices have plenty of write cycles, and there's usually wear levelling at the hardware level. There are people using the Ondio 128 (a flash player) for 7 or more years now who haven't experienced flash failure. Meanwhile dozens or hundreds of people have experienced other hardware failures in their newer flash players (broken headphone jacks, etc).

Speaking the odds, you're more likely to have your player break for some other reason, or decide you want a fancier newer player, than see the limited write cycles of flash seriously impede your use of the player during its normal lifetime.
Logged

Offline runiq

  • Member
  • *
  • Posts: 4
Re: Customizable paths for last.fm scrobbling, tagcache DB and runtime information
« Reply #6 on: December 27, 2009, 02:05:04 PM »
Quote from: Llorean on December 27, 2009, 01:17:46 PM
[…]

Speaking the odds, you're more likely to have your player break for some other reason, or decide you want a fancier newer player, than see the limited write cycles of flash seriously impede your use of the player during its normal lifetime.

Thanks for clearing that up, you're probably right.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Customizable paths for last.fm scrobbling, tagcache DB and runtime information
 

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

Page created in 0.079 seconds with 15 queries.