Hi, just found FlashRom and looks to be a good base to start from for my needs.
I have a USB->SPI bridge device (MCP2210) and on it's SPI bus is a "S25FL128S" device.
It looks as though there is no direct support for accessing via the MCP2210.
I assume that I would need to write a "programmer" to get this to work ???
I have a MCP2210 access library that seems to work well via "/dev/hidraw".
Any advice/recommendations very welcome.
It may be that someone has already done this ...
Regards, Bob _____
Bob Selby Senior Engineer, Software - LTV Newbury
Snell a Quantel Company Innovation in the Multi-Screen World
T +44 (0) 1635 48222 Extn 3753
Turnpike Road, Newbury, Berkshire, RG14 2NX, UK
Routing http://www.snellgroup.com/products/routing/ | Modular Infrastructure http://www.snellgroup.com/products/modular-infrastructure/ | Conversion & Restoration http://www.snellgroup.com/products/conversion-and-restoration/ | Live Production http://www.snellgroup.com/products/production-and-master-control-switch ing/ | Automation & Media Management http://www.snellgroup.com/products/automation-and-media-management/ | Control & Monitoring http://www.snellgroup.com/products/control-and-monitoring/
This email and any attachments are confidential, may be legally privileged and are intended for the use of the addressee only. If you are not the intended recipient, please note that any use, disclosure, printing or copying of this email is strictly prohibited and may be unlawful. If received in error, please delete this email and any attachments and confirm this to the sender.
Snell Limited, registered number 1160119 Registered in England, registered office at 31 Turnpike Road, Newbury, Berkshire, RG14 2NX, U.K.
On Wed, Mar 25, 2015 at 3:46 AM, Robert Selby Robert.Selby@snellgroup.com wrote:
Hi, just found FlashRom and looks to be a good base to start from for my needs.
I have a USB->SPI bridge device (MCP2210) and on it’s SPI bus is a “ S25FL128S” device.
It looks as though there is no direct support for accessing via the MCP2210.
I assume that I would need to write a “programmer” to get this to work ???
Yes, you will need to make flashrom speak to the MCP2210.
I have a MCP2210 access library that seems to work well via “/dev/hidraw” .
That should work so long as you can wrap generic data into a protocol that MCP2210 will understand.
I'm not sure about the existing library using /dev/hidraw... If you want to use libusb then you might want to check out ft2232_spi.c as an example.
Any advice/recommendations very welcome.
It may be that someone has already done this …
Regards, Bob
- _____ *
*Bob Selby*
Senior Engineer, Software - LTV Newbury
*Snell a** Quantel*
- Company *Innovation in the
Multi-Screen World
T +44 (0) 1635 48222 Extn 3753
Turnpike Road, Newbury, Berkshire, RG14 2NX, UK
*Routing* http://www.snellgroup.com/products/routing/ | *Modular Infrastructure* http://www.snellgroup.com/products/modular-infrastructure/ | *Conversion & Restoration* http://www.snellgroup.com/products/conversion-and-restoration/ | *Live Production* http://www.snellgroup.com/products/production-and-master-control-switching/ | *Automation & Media Management* http://www.snellgroup.com/products/automation-and-media-management/ | *Control & Monitoring* http://www.snellgroup.com/products/control-and-monitoring/
This email and any attachments are confidential, may be legally privileged and are intended for the use of the addressee only. If you are not the intended recipient, please note that any use, disclosure, printing or copying of this email is strictly prohibited and may be unlawful. If received in error, please delete this email and any attachments and confirm this to the sender.
Snell Limited, registered number 1160119 Registered in England, registered office at 31 Turnpike Road, Newbury, Berkshire, RG14 2NX, U.K.
flashrom mailing list flashrom@flashrom.org http://www.flashrom.org/mailman/listinfo/flashrom
On Wed, 25 Mar 2015 10:46:41 -0000 "Robert Selby" Robert.Selby@snellgroup.com wrote:
Hi, just found FlashRom and looks to be a good base to start from for my needs.
I have a USB->SPI bridge device (MCP2210) and on it's SPI bus is a "S25FL128S" device.
It looks as though there is no direct support for accessing via the MCP2210.
I assume that I would need to write a "programmer" to get this to work ???
I have a MCP2210 access library that seems to work well via "/dev/hidraw".
Any advice/recommendations very welcome.
It may be that someone has already done this ...
I don't know that device at all, but there are various programmer modules in flashrom that can give you hints how to add support for it. "/dev/hidraw" sounds as if it is Linux-specific therefore I suggest you take a look at linux_spi.c and mstarddc_spi.c.
To get an idea of how to hook up the programmer and what else is necessary for a complete patch you can take a look at the patch that added the mstar ddc driver: http://code.coreboot.org/p/flashrom/source/commit/1860/ or the preliminary (and probably broken) programmer driver creation script: http://patchwork.coreboot.org/patch/3836/
Many thanks :-)
-----Original Message----- From: Stefan Tauner [mailto:stefan.tauner@alumni.tuwien.ac.at] Sent: 25 March 2015 22:14 To: Robert Selby Cc: flashrom@flashrom.org Subject: Re: [flashrom] Support for programming device on SPI via USB bridge?
On Wed, 25 Mar 2015 10:46:41 -0000 "Robert Selby" Robert.Selby@snellgroup.com wrote:
Hi, just found FlashRom and looks to be a good base to start from for my needs.
I have a USB->SPI bridge device (MCP2210) and on it's SPI bus is a "S25FL128S" device.
It looks as though there is no direct support for accessing via the MCP2210.
I assume that I would need to write a "programmer" to get this to work ???
I have a MCP2210 access library that seems to work well via "/dev/hidraw".
Any advice/recommendations very welcome.
It may be that someone has already done this ...
I don't know that device at all, but there are various programmer modules in flashrom that can give you hints how to add support for it. "/dev/hidraw" sounds as if it is Linux-specific therefore I suggest you take a look at linux_spi.c and mstarddc_spi.c.
To get an idea of how to hook up the programmer and what else is necessary for a complete patch you can take a look at the patch that added the mstar ddc driver: http://code.coreboot.org/p/flashrom/source/commit/1860/ or the preliminary (and probably broken) programmer driver creation script: http://patchwork.coreboot.org/patch/3836/
-- Kind regards/Mit freundlichen Grüßen, Stefan Tauner
This email and any attachments are confidential, may be legally privileged and are intended for the use of the addressee only. If you are not the intended recipient, please note that any use, disclosure, printing or copying of this email is strictly prohibited and may be unlawful. If received in error, please delete this email and any attachments and confirm this to the sender.
Snell Limited, registered number 1160119 Registered in England, registered office at 31 Turnpike Road, Newbury, Berkshire, RG14 2NX, U.K.