10 ms·
NANDcromancy: Live Swapping NAND Flash
- bri3d 6y agoThis is a blog that is definitely worth clicking back into to read past entries. There's some really esoteric/fun stuff there like a deep dive into the Garmin smartwatch virtual machine.
- dvdkon 6y agoI've got a device which I've bricked through CFE in a similar manner, I'm probably not going to unbrick it like this though :) Any tips on a cheap way to flash parallel NAND?
- monocasa 6y agoThere's a lot of solutions for clipping a programmer on to an in circuit parallel Flash chip in the dozens of dollars range.
- merbanan 6y agoI never got a clip-on adapter working on later generation Broadcom devices. On previous ones I shorted the cs-pin to make the nand chip disappear from the SoC. Then you could flash the chip.
- monocasa 6y agoWere you trying to flash while the device was on?
- rtpg 6y agoI have never found one for TSOP-48 chips beyond the 360-clip/wii-clip, do you know of others in that space for this size of chip?
- monocasa 6y agoThere's a bunch on alibaba. A quick search also as this popping up, but I haven't tried them. https://shop.zeigren.com/ https://shop.zeigren.com/
- justdionysus 6y agoI've used a clip similar to the "360-clip" to reflash TSOP-48 NAND flash without desoldering. Honestly, I found it easier to desolder with chipquik than try to get a clip like the above to work though. Chipquik and a breakout board and then a SD/MMC controller (see: http://www.trapbit.com/reports/blueray-blues-1.pdf http://www.trapbit.com/reports/blueray-blues-1.pdf) Edit: but, also, I'm pretty bad at this stuff and hope someone jumps in with some more experience / saner advice
- bri3d 6y agoThis is totally reasonable advice IMO. TSOP clips are an option and work OK, but are expensive and fiddly. Rework onto a breakout board is usually the cheapest and easiest option, whether hot air or chipquik. Another sketchy option is deadbug to the chip in situ (using solder or microclips), or test points if you're lucky and they are provided. This can be quite questionable depending on how backfeeding power into the board via the chip's Vcc works out, but is sometimes possible.
- merbanan 6y agoArm based devices have an early boot menu accessible by holding the "a" button. From here boot with fail-safe defaults.
- monocasa 6y agoArm based devices are not consistent enough with their bootloader to allow such a thing.
- nousermane 6y agoOn the third photo in the article, there is NAND chip pinout. And it is striking how tightly pins are packed, despite so many being "no connect". In fact, out of 48 pins on the package, only 18 are actually in use (24 if we count duplicate Vcc/Vss). And that's not an outlier. As far as I can tell, this is a very common NAND chip pinout. I wonder - why was it done that way? Physical security feature? To make data recovery more difficult?
- photoGrant 6y agoMany reasons amongst which is that it’s a standard pin out of which other chips may utilise all pins. If they don’t the added bonus is the additional pins help physically secure to the board itself, as well as extra heat dissipation, etc.
- pkaye 6y agoIts a standard pinout. There are other NAND configurations like 16-bit data bus, multiple bus, multiple die that requires more pins. 16-bit data bus is pretty rare these day. Other possible reasons can be for test modes, thermal.
- userbinator 6y agohttp://www.onfi.org/specifications http://www.onfi.org/specifications - look at ONFI 4.2 page 10 for an almost-full pinout with 16-bit width and 4 independent devices ("LUNs") in one package.
- exmadscientist 6y agoThe specific package used is a TSOP-I-40L, standard registration JEDEC MO-142, controlling document here [0]. These things are super common for RAM or Flash in older designs or designs trying to avoid BGA parts (because BGAs are awful for anything but high-automation, high-volume work). The 0.5mm pin pitch is on the tighter side for gull-wing parts, but it's also super common itself. Many QFP processors are even tighter at 0.4mm pin pitch, and 0.5mm is very common for discretes and DFNs/QFNs. So it's no trouble whatsoever for assemblers; they do these things all day, every day, and won't even blink if you ask for one. The legs also make it amenable to manual rework, as shown in the article. If I were designing this part in, I wouldn't think twice about using this package (used board area aside). If there were multiple packages available for a part, this one would probably actually be high on my "ease of working with" list! [0] (Registration required) https://www.jedec.org/standards-documents/docs/mo-142-d https://www.jedec.org/standards-documents/docs/mo-142-d
- carpedimebagjoe 6y agoThere are some interesting iPhones mods where flash can be increased well beyond what was available in a particular model (16 GiB -> 256 GiB). IIRC there's some overseas magic device that transfers stuff from the original chips to the new ones. Also, HP 48G/GX ram chip piggybacking with proper bank selecting and extra address line decoding. Industrial flash I had my grubby hands on circa ~2001 was rated for 10k writes per cell, but it seemed to work 1-3 orders of magnitude longer than the datasheet. In fact, it wasn't possible to get a single cell error in a reasonable time-frame despite very carefully making sure random flash test writes were occurring and reading them back.
- segfaultbuserr 6y agoI believe the rated write cycle also considers data retention time, over the full range of its operating temperature. If the write cycle is exceeded, it's possible that it still somewhat works at room temperature, but is unable to reach its specified data retention time, especially at high temperature.