This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11325 - Using Rockbox causes Sansa OS to refresh media even when no files have been changed
Attached to Project:
Rockbox
Opened by Dave Cochrane (FLACtastic) - Friday, 28 May 2010, 14:05 GMT+2
Last edited by Rafaël Carré (funman) - Thursday, 17 June 2010, 07:44 GMT+2
Opened by Dave Cochrane (FLACtastic) - Friday, 28 May 2010, 14:05 GMT+2
Last edited by Rafaël Carré (funman) - Thursday, 17 June 2010, 07:44 GMT+2
|
DetailsRe: Sansa Fuze v2
Daily build: r26345 Since installing the above daily build, if I switch between operating systems (i.e. from Rockbox firmware to Sansa firmware) the player ALWAYS goes through the "Refreshing your media" process. This happens even though no files have been added, deleted or changed in anyway. Try this: Install Rockbox r26345. Switch the player on (default is Rockbox OS). Switch it off. Hold down *left* and switch on again to open up Sansa OS. It refreshes media. Switch it off again, and open up Rockbox. Then switch off again and open up Sansa OS. Again, it refreshes media - every time. Even without playing any files in Rockbox. |
This task depends upon
Closed by Rafaël Carré (funman)
Thursday, 17 June 2010, 07:44 GMT+2
Reason for closing: Wont Fix
Additional comments about closing: r26875 only writes RTC WAKEUP register when explicitely enabling wakeup feature => OF will only refresh if you use wakeup
Thursday, 17 June 2010, 07:44 GMT+2
Reason for closing: Wont Fix
Additional comments about closing: r26875 only writes RTC WAKEUP register when explicitely enabling wakeup feature => OF will only refresh if you use wakeup
For me it doesn't happened for Fuze v1 r26353 with and without uSDHC card inserted.
For Clip+ it happened only with uSDHC card inserted for r26330 and r26353 as well.
In my tests it happens only when a SDHC card is inserted.
Remove card and OF refreshes media. Reboot into OF. No refresh. Reboot to RB. Do nothing but shutdown.
Reboot into OF. No refresh.
Now insert card and repeat above sequence. Final reboot into OF will refresh again.
This is repeatable and with newer OF 2.3.33.
It seems to imply that RB is now altering the SDHC media in some way that OF detects as requiring a media refresh, even when nothing is changed while in RB. Tested with svn r26251, so change must be before this.
Hope these details help track it down. With 4GB + 8GB it means waiting quite a bit during development testing.
I used dd to make image files after each of a sequence of steps and then used "cmp -lb A B" to compare them.
What I found is that the card contents remain identical even when the Sansa firmware detects changes.
If I remove the SD card when the power is off it knows that it has been removed and inserted again and this always forces a rebuild.
If I just turn power off and on with Sansa firmware then it doesn't rebuild.
If I turn power off, start RB, turn power off, start Sansa then it always does a rebuild - as though the card was removed but it wasn't.
All 5 of the image files I dumped at various steps never changed even one byte.
From this I expect that the "change detect" flag must be either on the system flash drive or other internal flash state memory.
Hope this helps.
It appears the MTABLE.SYS changes when a rebuild occurs so I presume that contains the Sansa database.
But also at byte offsets 1001, 401037, 881293 in the drive images there are changes that only seem to occur when RB is run between insertions.
I don't know what files these are actually in. I know the image is FAT format but I don't know how to view it as FAT to see what files map those bytes.
No media refresh with r26241 and r26142