Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steal Fomu EVT RPi based programming tool? #3

Open
mithro opened this issue Jul 6, 2019 · 2 comments
Open

Steal Fomu EVT RPi based programming tool? #3

mithro opened this issue Jul 6, 2019 · 2 comments

Comments

@mithro
Copy link

mithro commented Jul 6, 2019

The Fomu EVT boards where RPi based hats too. Thus @xobs wrote a great little tool for bitbanging SPI to program the iCE40 and SPI on the board (even supports things like QPI mode!).

Take a look at https://github.com/im-tomu/fomu-flash - more than happy to add your board as a target option.

(There is also a tool which builds a RPi image with all the ice40 tooling at https://github.com/im-tomu/fomu-pi-gen too.)

@Wren6991
Copy link
Owner

Wren6991 commented Jul 7, 2019

I rather wanted the fun of doing this myself! 😢 Thank you for the link to the tools, they look handy. If I end up modifying these then I will submit a PR.

Is there an advantage of the Fomu ROM patching vs icebram?

@xobs
Copy link

xobs commented Jul 8, 2019

The advantage to the Fomu ROM patching vs icebram is that it's less to keep track of, and ends up being faster:

  • icebram requires an input ROM, an output ROM, an input hexfile, and an input binary. Foboot just requires an input ROM and an input binary.
  • The icebram hexfile needs to be in a specific order, and I ended up needing to come up with additional tools to massage the bitstream into the correct format. fomu-flash works on binary images.
  • fomu-flash is near-instant, whereas icebram took several seconds

In the end, both accomplish the same thing, so if you're already using icebram then there's no need to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants