[MinnowBoard] Programming flash

Robert Johnston robert at layer2.com
Wed Nov 5 20:10:09 UTC 2014


Hi,

 

Well, using jumpers I connected the signals per Peter’s list below.  Then I tried to use flashrom to flash the board.  The SPI programming instructions stated that flashrom would automatically detect the W25Q32 flash.

 

As a complete hack, I tried this:

 

robert at STS-MAX:~/Downloads/MB_UEFI_Firmware_v1.00$ flashrom --programmer ft2232_spi --write MINNOW.fd

flashrom v0.9.6.1-r1563 on Linux 3.13.0-39-generic (x86_64)

flashrom is free software, get the source code at http://www.flashrom.org

 

Calibrating delay loop... OK.

Unable to open FTDI device: -3 (device not found)

Error: Programmer initialization failed.

 

I just chose the programmer at random since I couldn’t find actual instructions (they probably exist, I just didn’t find them).

 

I also tried using the “dummy” programmer, with this result:

 

robert at STS-MAX:~/Downloads/MB_UEFI_Firmware_v1.00$ flashrom --programmer dummy --write MINNOW.fd

flashrom v0.9.6.1-r1563 on Linux 3.13.0-39-generic (x86_64)

flashrom is free software, get the source code at http://www.flashrom.org

 

Calibrating delay loop... OK.

No EEPROM/flash device found.

Note: flashrom can never write if the flash chip isn't found automatically.

 

Does anyone know what “programmer” parameter I would use with flyswatter2?  Or what other parameters I would need?

 

Also, is OpenOCD a possibility for programming flash on the Minnowboard with the flyswatter2?

 

Thanks for all the help so far.

 

Thanks

 

Robert

 

From: Peter Ogden [mailto:peter.j.ogden at gmail.com] 
Sent: Wednesday, November 05, 2014 10:16 AM
To: robert at layer2.com
Cc: MinnowBoard Development and Community Discussion; elinux-minnowboard at lists.osuosl.org
Subject: RE: [MinnowBoard] Programming flash

 

Since David has tried it already I'd wait for his input, but I think this is the mapping:

J1.1 = 3.3v
J1.2 = gnd
J1.3 = gnd (only one flash chip to select)
J1.4 = tck
J1.5 = tdo
J1.6 = TDI
J1.7 = no connect
J1.8 = 3.3v

The spi flash will get powered by the programmer so don't power the MinnowBoard.

On Nov 5, 2014 10:06 AM, "Robert Johnston" <robert at layer2.com <mailto:robert at layer2.com> > wrote:

Hi Peter,

 

Thanks.  I looked at the connections shown for the 20 pin and also have the one from the eLinux org for the SPI connector.  Later today or tomorrow I will see if I can match signals.

 

David Anders also replied and is looking into it.

 

Robert

 

From: Peter Ogden [mailto:peter.j.ogden at gmail.com <mailto:peter.j.ogden at gmail.com> ] 
Sent: Tuesday, November 04, 2014 7:37 PM
To: robert at layer2.com <mailto:robert at layer2.com> ; MinnowBoard Development and Community Discussion
Cc: elinux-minnowboard at lists.osuosl.org <mailto:elinux-minnowboard at lists.osuosl.org> 
Subject: Re: [MinnowBoard] Programming flash

 

Here is the Flyswatter2 JTAG Pinout:
http://www.tincantools.com/assets/Flyswatter2%20-%2020%20Pin%20JTAG%20Connector.pdf

Links to some more info is on this page:
http://www.tincantools.com/JTAG/Flyswatter2.html

Haven't tried it myself yet.

-Peter

 

 

On Tue, Nov 4, 2014 at 7:02 PM, Robert Johnston <robert at layer2.com <mailto:robert at layer2.com> > wrote:

Hi,

 

Documentation (such as http://www.elinux.org/Minnowboard:SPI_Boot_flash) indicates that the Minnowboad flash can be programmed using the TinCanTools Flyswatter2.  But I have been unable to find either a schematic or actual cable to connect from the Flyswatter 20 pin JTAG connector to the Minnowboard 8 pin SPI connector (or even determine if those are the right connectors to use).  Can anyone point me in the right direction?

 

Thanks

 

Robert


_______________________________________________
elinux-MinnowBoard mailing list
elinux-MinnowBoard at lists.elinux.org <mailto:elinux-MinnowBoard at lists.elinux.org> 
http://lists.elinux.org/mailman/listinfo/elinux-minnowboard

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20141105/c2978660/attachment-0003.html>


More information about the elinux-MinnowBoard mailing list