1

I have an SPI NAND flash that I want to read/write the data to it using Raspberry Pi but since flashrom doesn't support SPI NAND and I couldn't find any tools that can do SPI NAND reading raw from the SPI interface either.

Apparently the Linux kernel can read SPI NAND using mtd driver but the jedec-nor-spi overlay only support SPI NOR flash and it won't work with the SPI NAND.

Anyone knows how I can read/write this chip? Preferrably using a RPI but I also have a FT2232H and a CH341, the chip model number is MX35LF1GE4AB and link to the datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/7666/MX35LF2GE4AB,%203V,%202Gb,%20v1.7.pdf

  • 1
    (1) 3V, 1Gb/2G-bit Serial NAND Flash Memory MX35LFxGE4AB macronix.com/Lists/Datasheet/Attachments/7666/… (2) W25Q16DV 3V 16M-Bit Serial Flash Memory with Dual and Quad SPI winbond.com/resource-files/w25q16dv_revi_nov1714_web.pdf – tlfong01 Dec 28 '19 at 5:35
  • 1
    I don't have the expertise to rolling my own code from scratch, also I don't really understand how NAND flash works so I do prefer a pre-made solution, but thanks! – minhng99 Dec 28 '19 at 8:03
  • 1
    @SandPox, Did you download and compile the correct driver ? Read the README.txt in the ZIP archive – Ephemeral Dec 28 '19 at 10:30
  • 2
    @SandPox, Ah, #Ephemeral's driver is actually a tutorial and 8051 ANSI C sample for newbie developer to port to any hardware such as Rpi. The only prerequisite is Rpi Python SpiDev or equivalent Rpi C/C++ SPI basic knowledge. See my quick and dirty reading notes: penzu.com/p/f5a3d9e2. – tlfong01 Dec 28 '19 at 14:50
  • 2
    @Ephemeral, Yes, Macronix' readme and sample codes are newbie friendly. This morning I ordered from Tao this RMB9 SPI NAND flash toy which will hopefully arrive tomorrow evening. First thing first is to write the two basic python testing functions (1) Read device ID, (2) write/read memory. The is an update (Version 0.2)) of my penzu learnng notes: penzu.com/p/418b74e3. – tlfong01 Dec 29 '19 at 8:08
1

I have looked at the code that you share above: https://github.com/flashrom/flashrom/pull/62

It has pointed Micron probe to the toshiba function, which hardcoded 64 for the size, also it seems like writing is missing entirely..

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.