McMCCRU / SNANDer

SNANDer - Serial Nor/nAND/Eeprom programmeR (based on CH341A)
GNU General Public License v2.0
245 stars 65 forks source link

Adding support for different programmers. #14

Closed fifteenhex closed 3 years ago

fifteenhex commented 3 years ago

Hi,

I've been looking for a solution for programming SPI NAND chips for a while as flashrom can't do it.

The SoCs I'm messing around with have a weird SPI over I2C protocol and use a special USB dongle and a Windows tool. (http://linux-chenxing.org/isp/). I want to replace this with something that is open source to remove the need to have windows, use tools that are under NDA etc. flashrom already supports the SPI over I2C part for this but doesn't do SPI NAND.

Do you think it would be difficult for me to add support for using the USB dongle with this instead of the ch341a? I took a quick look at the code and it doesn't seem like it's really tightly coupled to the ch341a but I'd like to get your opinion before I start on it.

Thanks.

McMCCRU commented 3 years ago

Hi! I cannot answer your question. But you can use spi_controller.c for сh341a as an example to write the commands of your SPI controller there.

fifteenhex commented 3 years ago

Hi,

Thanks for the information. I've created a fork and I've start my work there. One more question: Is there a reason there is a local copy of libusb in the src?

Thanks,

Daniel

Droid-MAX commented 2 years ago

@fifteenhex Hi, Does your SNANDer fork support FT2232H as device to program spi flash chip or i2c eeprom?

fifteenhex commented 2 years ago

@fifteenhex Hi, Does your SNANDer fork support FT2232H as device to program spi flash chip or i2c eeprom?

No, but adding another spi controller wasn't too difficult. You could do that for the FT2232H

Droid-MAX commented 2 years ago

@fifteenhex Can you give me some guide for that? thx