flashcart_core icon indicating copy to clipboard operation
flashcart_core copied to clipboard

DSTT/TTDS Issue Tracking

Open handsomematt opened this issue 8 years ago • 64 comments

Instead of making new issues for each DSTT flashchip, post in here if you have an unsupported flash chip or one of the support flashchips doesn't work for you.

You can find a list of supported/unsupported flashchips at the top of this file: https://github.com/kitling/flashcart_core/blob/master/devices/dstt.cpp

When posting about an unsupported flashchip, please provide the flashchip ID (from /ntrboot/ntrboot.log when using the latest release) as well as a picture of the flashchip on the PCB.

Chips that 100% work and are tested:

  • 0xBAC2 - MX29LV400B (Most common)

handsomematt avatar Sep 06 '17 11:09 handsomematt

DSTWO

Hi there! This one is seems to be clone of DSTT too. Photos in attach Link to fw on mega - https://goo.gl/EGPncX

Images (Click to Expand)

img_5739 img_5740 img_5741 img_5742

rashevskyv avatar Sep 06 '17 16:09 rashevskyv

DSTT 0x9560

Chip: Intel 28F160B3T ID: 0x9560 Datasheet: http://pdf.datasheetcatalog.com/datasheets2/31/311549_1.pdf

Images (Click to Expand)

img_20170906_195618 jpg 2017-09-06 8 pm-01-05 img_20170906_195546

kingmercian avatar Sep 06 '17 19:09 kingmercian

I've got one with an M28W160-A chip. I couldn't find pretty much any information about the chip and I only saw 2 places that even sold them. I swear the datasheets for this one just don't exist anywhere.

Images (Click to Expand)

20170906_201951_noexif 20170906_202237_noexif

It seems like this chip is just a complete unicorn and there isn't really any information about it.

EDIT: I actually went and checked DSTT's official program to check for fake carts or not despite knowing this was a genuine cart. It outputted that the chip is an M28W160(B)B instead of an M28W160-A strangely.

DrEvilBrain avatar Sep 07 '17 00:09 DrEvilBrain

ATMEL AT49BV1614T http://www.alldatasheet.com/datasheet-pdf/pdf/56174/ATMEL/AT49BV1614T.html

DSTT Flash Checker 0.01

unknown device : 0000C21F
Good!! (^^)v

https://s26.postimg.org/5kdhcufx5/WP_20170831_22_41_06_Pro_2.jpg

WhoIsCo avatar Sep 07 '17 11:09 WhoIsCo

DSTTi

A DSTTi that I have.. Also here's a datasheet that I found for the TE28F320: http://html.alldatasheet.net/html-pdf/112565/INTEL/TE28F320/3134/20/TE28F320.html

Images (Click to Expand)

img_0404 img_0405 img_0406

LukeZGD avatar Sep 08 '17 09:09 LukeZGD

Another one: SPANSION S29JL032H70TFI03

Images (Click to Expand)

chip

I can't find the datasheet

EinyWf avatar Sep 12 '17 16:09 EinyWf

I thought my card was supported, but it's not. It's missing a "T" compared to supported card. ATMEL AT49BV802A-70TI

It says dump is fine, but it gets stuck on injecting NTRBootHax or restoring. It says reading 99% and stays that way. It didn't produce any log files using 0.3.0 of ntrboot_flasher.

https://i.imgur.com/7gT0jPs.jpg https://i.imgur.com/jt0Cfzx.jpg

http://www.alldatasheet.com/datasheet-pdf/pdf/98413/ATMEL/AT49BV802A-70TI.html

pixelmasher avatar Oct 01 '17 02:10 pixelmasher

Intel 28F160B3T reporting in. Basically the same situation as above - ntrboot_flasher is stuck on 99% reading, log file in /ntrboot is empty. Flashcard working normaly afterwards (I presume untouched)

gunsamurai avatar Oct 01 '17 16:10 gunsamurai

Anybody having the issue where it's getting stuck at 99%, please try this debug build: <didn't work, see below>

It should produce a large log file. (~~only reason the current release doesn't is probably because I wasn't fflushing every line because that seems like it'd be slow but if it's needed then...~~ fflush did nothing) Please don't try to embed it directly in a github comment, please either use https://hastebin.com or a file upload service like https://up1.secretalgorithm.com/.

kitlith avatar Oct 03 '17 01:10 kitlith

@kitling tried injecting with the debug version, got stuck at 99%. Left it for 30 minutes to an hour, came back, turned it off, and booted into GM9. There was a 0 byte log file. When I copied the debug version, it was the same size as 0.3.0. Not sure it's supposed to be the same size or not.

pixelmasher avatar Oct 03 '17 08:10 pixelmasher

Yeah, that seems to be the size it's supposed to be. (there's some alignment padding in there, I think)

Um. ugh. I'm starting to think that maybe I need to fopen and fclose for every single line. I don't like this.

kitlith avatar Oct 03 '17 18:10 kitlith

@pixelmasher Try this build. It opens and closes the file every single time. https://up1.secretalgorithm.com/#3Ai8X-28PPWGVysaMqmDUg

kitlith avatar Oct 03 '17 22:10 kitlith

@kitling Tried last build, here is the log - https://hastebin.com/hinesecego.md

gunsamurai avatar Oct 03 '17 22:10 gunsamurai

10 lines? that's it? Something's not right.

EDIT: it does tell us one thing: it's reading just fine for you, but getting stuck on erase. why aren't we seeing the individual read/erase commands though...

EDIT 2: because I didn't add logs for every one. the logs that are there are exactly what's supposed to be there.

EDIT 3: I think it's probably getting stuck here: https://github.com/kitling/flashcart_core/blob/master/devices/dstt.cpp#L213

kitlith avatar Oct 03 '17 22:10 kitlith

As kiting suggest me, i post my issue here. I have a dstt with a chip 0x9389: INTEL 28F800B3B. I never can be flashed before, but with the new 0.3 ver build works but stuck at 99% when i try to inject ntrboot. So i ran the debug tool posted by kitling and i will post the log here. I hope that this help to improve this amazing tool and thanks in advance again ntrboot.log

Valkry avatar Oct 03 '17 23:10 Valkry

I have a M28W160-A like @DrEvilBrain , the card is now compatible but remains stuck reading 99% when injecting ntrboot.

Images

img_20171004_160814 For some reason the sticker in upside down?

img_20170918_213349

Last build logs: https://hastebin.com/aqepuyiqag.md

m1n6m1 avatar Oct 04 '17 14:10 m1n6m1

So the issue is pretty much here like @kitling said: https://github.com/kitling/flashcart_core/blob/master/devices/dstt.cpp#L212

I never finished the error checking code in the erase blocks function, but sometimes erasing simply wouldn't set the bytes to 0xFF and something different.

Proper error checking and debugging needs to be added there.

handsomematt avatar Oct 06 '17 00:10 handsomematt

At the very least, we need time-outs so that we don't infloop and get stuck forever. (probably an error return if the timeout has to trigger.)

kitlith avatar Oct 06 '17 05:10 kitlith

I uploaded a test build with @HandsomeMatt's recent fix (#73) included, if anyone wants to try: https://up1.secretalgorithm.com/#XyfwMMe60Cx6bZdx9zjFQg (works for me)

TobiX avatar Oct 08 '17 13:10 TobiX

I tried the new compiled version and now stuck at 0% the chip is a 0x9389: INTEL 28F800B3B

Images

error

ttds

no log created by the way but i can create a backup of the card without a hassle

I found the datasheet for my chip, so i upload here 311549_1.pdf

Valkry avatar Oct 08 '17 17:10 Valkry

@Valkry I suspect at 0% erasing? Try this build to (hopefully) get a log file: https://up1.secretalgorithm.com/#jc6eivAFCn83kXGKBUDBVA - You should be able to enable debug logging from the main menu (press Y, runs much slower, since that creates a lot of log output)

TobiX avatar Oct 08 '17 22:10 TobiX

Tried this build (Intel 28F160B3T, stuck at 0%) - here is the logfile - https://up1.secretalgorithm.com/#j9kenS_p7TW-thuxilIsRg

gunsamurai avatar Oct 08 '17 23:10 gunsamurai

@TobiX yeah, it stuck at 0% erasing I was able to create a logfile, but is very big... Anyway here is my log, I hope that this help... ntrboot.log

Valkry avatar Oct 09 '17 01:10 Valkry

@kitling I finally got to try the build you posted. It produced tiny log files. I tried injecting and restoring. Left them stuck at 99% for about 10 minutes+.

ntrboot-restore.log ntrboot-inject.log

pixelmasher avatar Oct 09 '17 06:10 pixelmasher

I don't think that build is up to date, the log file should be saying:

logMessage(LOG_DEBUG, "DSTT: erase_block(0x%08x)", offset); instead it's just saying erase(0x%08x)

Download Build - tested with my device this build works fine and is the latest on git.

handsomematt avatar Oct 09 '17 12:10 handsomematt

I have this R4 which is a DSTT clone, it only works after using TTDS Stage2 Launcher made by Apache Thunder. It cannot be updated, and I don't know where to look the datasheet. GM9 Dump.zip ntrboot.log The R4

MiiJack avatar Oct 09 '17 14:10 MiiJack

@MiiJack DSTT: Flashchip ID = 0x20504f54 - basically the interface to the flash chip doesn't exist like it does on the DSTT chips, so whilst it may be a clone in the sense that it runs the same software, the FPGA is different and doesn't support flashing the flashchip.

handsomematt avatar Oct 09 '17 14:10 handsomematt

@HandsomeMatt I tried your build and this is the log created ntrboot.log

Valkry avatar Oct 09 '17 17:10 Valkry

Is the Micron 0x922c which requires a different flash method going to be supported (soonish)? Is there more information you need like a dump,log file or something like that?

herrfridolin avatar Oct 11 '17 16:10 herrfridolin

@HandsomeMatt I tried your build from couple days ago. It gets past the 99%, but gets stuck at 0%. Still gives tiny log files. ntrboot-inject.log ntrboot-restore.log

pixelmasher avatar Oct 11 '17 22:10 pixelmasher