Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: pascal06 on April 25, 2020, 02:08:37 PM

Title: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on April 25, 2020, 02:08:37 PM
Hello everybody,
I've got a Sansa Clip zip since a long time now and it still works as a charm.
I updated to last Rockbox 3.15 with success.
I recently bought 3 Sandisk 64gb SDXC, all 3 are exactly the same.
I formated them in FAT32 with Gparted on Unbuntu 18.
Two of them works ok with Rockbox, they are full of various audio format (APE, FLAC, MP3).
But the third makes me really mad. Indeed, whatever file I want to play makes Rockbox unstable. Much of the time the file seems to be played but there is no sound. If I want to stop, it continues to plays. If I want to shut-down my clip zip, I have to push stop button for almost 30 sec before it really shut down. Sometimes, it freeze completly.
I tried to format the card several time (always FAT32), with several tool even with Windows too. All the files on this particular card are playable without any problem under Linux, Windows and even an Android phone.
I verified the card and it hasn't any error. If I plug my Clip zip on usb with this card into it, all files are accessible from the host without any problem and can be played .
Very crazy.
Your help would be really appreciated !
Thanks a lot in advance,

Pascal
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on April 25, 2020, 05:37:55 PM
I tried something again: complet format in exFat, then in Fat32...
Copy some audio file, play, can't stop... Try to shut-down, the it a white screen appear:
*PANIC*
dc_writeback_c
allback() - Could not write sector 640962
(error -24)
pc:30078a28 sp:3bt end
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on April 26, 2020, 01:07:15 PM
Finally I've got it !
First I did a low level formatting with HDD LLF Low Level Format Tool
and format again in FAT32.
In fact I followed most of
http://forums.rockbox.org/index.php/topic,51941.msg240386.html#msg240386
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on May 01, 2020, 01:00:23 PM
Hello,
almost one week later, the same card have the same issue... And I didn't use it since last time !
However, I found new strange behaviour.
I remarked that this card have this issue on all the songs when the battery is almost empty.
When the battery is full, only a few song has this issue. I don't know exactly how many, and wich format are affected.
When a particular song presents this issue, and if I can shut down the clip zip, then if I plug the charger, and try to play again the "problematic" song, it is then playable !
If I unplug the charger when this song is played, it continues without issue... If I then shutdown and restart, the song isn't playable.
Crazy isn't it ? So, what's wrong with it?
Can you help me ?
Thanks in advance.
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on May 03, 2020, 09:44:28 AM
To moderator,
sorry, but I think I posted this subject in the wrong forum. Can you move it to "hardware" please ?
I think it would be judicious.
Thanks in advance.
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: Bilgus on May 03, 2020, 11:43:58 AM
If the card isn't taking writes it is probably bad
It could be flaky and maybe it needs higher voltage levels idk

You could try a build with higher voltage levels or just mark it as a bad card for the device and use it for something else
 
You might do a flash test with 3rd party tools to see how stable it really is
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on November 30, 2021, 05:56:03 AM
If the card isn't taking writes it is probably bad
It could be flaky and maybe it needs higher voltage levels idk

You could try a build with higher voltage levels or just mark it as a bad card for the device and use it for something else
 
You might do a flash test with 3rd party tools to see how stable it really is

Hello,
more than one year latter, I did test on this famous card.
I tested it with badblocks command under linux, then with a a series of tools called "Fight Fake Flash" (see https://www.cyberciti.biz/faq/linux-check-the-physical-health-of-a-usb-stick-flash-drive/)
I did a quick capacity tests with f3probe:
Code: [Select]
sudo f3probe --destructive --time-ops /dev/mmcblk0
F3 probe 8.0
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.

WARNING: Probing normally takes from a few seconds to 15 minutes, but
         it can take longer. Please be patient.

Good news: The device `/dev/mmcblk0' is the real thing

Device geometry:
         *Usable* size: 58.36 GB (122388480 blocks)
        Announced size: 58.36 GB (122388480 blocks)
                Module: 64.00 GB (2^36 Bytes)
Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
   Physical block size: 512.00 Byte (2^9 Bytes)

Probe time: 3'05"
 Operation: total time / count = avg time
      Read: 723.2ms / 4816 = 150us
     Write: 2'56" / 4192321 = 42us
     Reset: 1us / 1 = 1us
So I conclude that my card hasn't any problem.
You talks about voltage, I searched in the sources, the only thing related to voltage is a member of the struct sdmmc_config_t sdmmc_config in /rockbox-dbb7371065/firmware/target/arm/imx233/sdmmc-imx233.c:
Code: [Select]
const struct sdmmc_config_t sdmmc_config[] =
{
#ifdef SANSA_FUZEPLUS
    /* The Fuze+ uses pin #B0P8 for power */
    {
        .name = "microSD",
        .flags = POWER_PIN | POWER_INVERTED | REMOVABLE,
        .power_pin = PIN(0, 8),
        .ssp = 1,
        .mode = SD_MODE,
    },
    /* The Fuze+ uses pin #B1P29 for power */
    {
        .name = "eMMC",
        .flags = POWER_PIN | POWER_INVERTED | WINDOW | POWER_DELAY,
        .power_pin = PIN(1, 29),
        .power_delay = HZ / 5, /* extra delay, to ramp up voltage? */
        .ssp = 2,
        .mode = MMC_MODE,
    },
Have you any other clue ?
Thanks a lot in advance.

Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on December 01, 2021, 02:41:15 PM
Wow...
The badblocks command I used yesterday wipe the card completely by writing bit patterns, so it's impossible that stays something weird on it.
I formatted it (FAT32) again today, so I can say that the card is in a clean state. I copied my files, tested it... Same problem !
I have mostly FLAC files: is this format well supported by Rockbox?
Thanks a lot in advance.
Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: saratoga on December 01, 2021, 10:37:11 PM
Maybe there is already a build with these changes floating around that you could test, but if you can compile, make this change for the line above for the Clip Zip and see if the SD card works better:

https://git.rockbox.org/cgit/rockbox.git/commit/firmware/target/arm/as3525?id=c75aac84243abef6a5b7e2e84863cef13931ee8f

Title: Re: Rockbox on Clip Zip hang on particular micro sd
Post by: pascal06 on December 03, 2021, 07:43:14 AM
Maybe there is already a build with these changes floating around that you could test, but if you can compile, make this change for the line above for the Clip Zip and see if the SD card works better:
https://git.rockbox.org/cgit/rockbox.git/commit/firmware/target/arm/as3525?id=c75aac84243abef6a5b7e2e84863cef13931ee8f
Hi Saratoga, thanks a lot for the link. I will test it.
I thought about another thing: is file name with special characters could induce this kind of problem ?