[MinnowBoard] Programming flash
Robert Johnston
robert at layer2.com
Wed Nov 5 20:39:32 UTC 2014
Hi again,
Well, another hack: I tried “internal” as the programmer and got:
robert at STS-MAX:~/Downloads/MB_UEFI_Firmware_v1.00$ sudo flashrom --programmer internal --write MINNOW.fd
[sudo] password for robert:
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.
Found chipset "Intel H67". Enabling flash write... FREG0: WARNING: Flash Descriptor region (0x00000000-0x00000fff) is read-only.
FREG2: WARNING: Management Engine region (0x00003000-0x001fffff) is locked.
Please send a verbose log to flashrom at flashrom.org if this board is not listed on
http://flashrom.org/Supported_hardware#Supported_mainboards yet.
Writes have been disabled. You can enforce write support with the
ich_spi_force programmer option, but it will most likely harm your hardware!
If you force flashrom you will get no support if something breaks.
OK.
Found Winbond flash chip "W25Q32" (4096 kB, SPI) at physical address 0xffc00000.
Write/erase is not working yet on your programmer in its current configuration.
Aborting.
So apparently it does find the W25Q32 chip, and the wiring of the headers might be correct. I will wait before forcing it to see if anybody has suggestions. I also followed the above instructions and posted this output to flashrom at flashrom.org.
Thanks
Robert
From: elinux-MinnowBoard [mailto:elinux-minnowboard-bounces at lists.elinux.org] On Behalf Of Robert Johnston
Sent: Wednesday, November 05, 2014 12:10 PM
To: 'Peter Ogden'
Cc: elinux-minnowboard at lists.osuosl.org; 'MinnowBoard Development and Community Discussion'
Subject: Re: [MinnowBoard] Programming flash
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$ <mailto: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$ <mailto: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 <mailto:robert at layer2.com>
Cc: MinnowBoard Development and Community Discussion; elinux-minnowboard at lists.osuosl.org <mailto: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/87535931/attachment-0003.html>
More information about the elinux-MinnowBoard
mailing list