Rockbox Technical Forums

Third Party => Repairing and Upgrading Rockbox Capable Players => Topic started by: ansewy789123 on August 12, 2017, 12:02:57 PM

Title: SanDisk Sansa Clip+ Recovery nand
Post by: ansewy789123 on August 12, 2017, 12:02:57 PM
 Hello! Tell me please how to restore nand ? Removed nand from the player restored with

ru.aliexpress.com/item/TSOP48-Flash-Eraser-Support-TSOP48-pin-AU6989SNHL-GT-UFD-Controller-NAND-Flash-Sorting-Erasing-Burn-in/32766446082.html?spm=a2g0v.10010108.1000016.1.Qxkw3H&isOrigTitle=true

Nand working 100% but the player does not see it. As it should be stitched nand, so that the player sees it?
Thank you so much! With me a gift  :)
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: saratoga on August 12, 2017, 03:11:27 PM
What did you flash to the NAND? 

Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: ansewy789123 on August 12, 2017, 04:30:14 PM
Nand I have formatted (not a player) and installed there the firmware (also not in the player)
I have 4 GB is defined as follows:
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: Mihail Zenkov on August 12, 2017, 05:33:34 PM
Are you have some reaction from player (message on screen or usb drive)?
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: ansewy789123 on August 12, 2017, 06:36:49 PM
Player is detected only 32 mb.
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: Mihail Zenkov on August 13, 2017, 02:23:41 AM
Did you do dump of nand before writing on it? Maybe firmware should be written with some offset or should have some special formatting.

We still don't know how internal drive work: from software (driver) point it looks like ordinary SD card. So player should have sd to nand controller and probably some configuration bits for it.

Dongs at IRC (https://www.rockbox.org/irc/log-20170101) try replace nand. You can try to ask him.
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: ansewy789123 on August 13, 2017, 02:04:19 PM
I formatted NAND, and then put in the firmware. And, perhaps, the size of the flash drive is different, because of this does not work in the player? (The working NAND in Figure 1 of the player, and the second is not a robotic NAND in the player, see Figure 2)
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: saratoga on August 13, 2017, 02:40:48 PM
There is some information on the AMS SD formatting on the wiki, but it is complex because so many different players and two hardware revisions exist, so not all of it may be exactly right on the clip+.  My memory is that the stock firmware is stored as an image at the start of the SD which is hidden by the firmware.  The rockbox SD driver can read/write this area, but we hide it to keep the user from damaging the stock firmware.  When you short out the NAND and get the player to boot up in the "recovery" mode, you see the entire SD up to the first few GB, including the firmware.  Below the level of the SD (and unaccessible to rockbox) is the raw NAND, which probably includes some additional space used to store the SD to NAND cell mapping. 

I think ideally you would need an image from a desoldered NAND chip to flash to a new NAND.  This should set up the NAND with all the SD translation tables.  If you don't have that, the SD controller may be smart enough to recreate it, or it may refuse to boot.  I don't think anyone beyond Dongs ever looked at it, and he did not get it working. 
Title: Re: SanDisk Sansa Clip+ Recovery nand
Post by: ansewy789123 on August 15, 2017, 01:22:26 PM
thanks for answers! Tell me please, is this JTAG correct for the firmware of the player?

https://ru.aliexpress.com/item/USB-Blaster-Rev-C-Universal-Edition-FPGA-CPLD-Download-line-download-cable/32433221548.html?spm=a2g0v.10010108.1000016.1.38f7f731m9KgbM&isOrigTitle=true