Commit Graph

474 Commits

Author SHA1 Message Date
dependabot-preview[bot]
0fba2271e8
build(deps): bump hw/deps/lxsocdoc from 94be729 to eb6fcdd
Bumps [hw/deps/lxsocdoc](https://github.com/xobs/lxsocdoc) from `94be729` to `eb6fcdd`.
- [Release notes](https://github.com/xobs/lxsocdoc/releases)
- [Commits](94be729709...eb6fcdd495)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 08:08:41 +00:00
Sean Cross
ae2c39a1ac
Merge pull request #46 from wom-bat/master
Explain seed argument to foboot-bitstream.py
2020-01-25 18:13:46 +08:00
Peter Chubb
ccbefad269 Add big fat warning on updating bootloader
plus info on how to test a bootloader.
2020-01-24 12:57:27 +11:00
Peter Chubb
e6d04b8739 Add instructions for building dfu-util flashable image
Fixes #47
2020-01-23 10:57:15 +11:00
Peter Chubb
485d232563 Explain seed argument to foboot-bitstream.py
Update README to say what to do if the place-and-route process fails
to find an appropriate solution.
2020-01-23 10:27:02 +11:00
Sean Cross
be3dc254c5
LICENSE: fill in with contents of apache-2.0
Turns out that in order to apply the Apache license to your work, you're supposed
to ignore the section entitled "How to apply the Apache License to your work".
2020-01-22 20:09:33 +08:00
Sean Cross
4f24c432a8
Merge pull request #30 from enjoy-digital/yosys_template
Yosys/Build template update
2020-01-03 10:16:51 +08:00
Florent Kermarrec
0c2b05cbe6 hw/foboot-bitstream: provide yosys/build_template before override.
Since overridesof the template are done at precise locations (ex: yosys_template[2] += ...),
it's probably better to provide the template in foboot-bitstream. This allow more flexibility
for LiteX's default templates to change/evolve, while also easing foboot-bitstream code understanding.

The override code could also be simplified with the templates provided.
2020-01-02 10:35:37 +01:00
Florent Kermarrec
11f2fa8796 hw/foboot-bitstream: keep up to date with LiteX's iCE40 backend
Arachne-pnr support removed, use yosys/build_template insead of nextpnr_yosys/build_template
2020-01-02 10:35:25 +01:00
Sean Cross
bef4d6dfe5
Merge pull request #29 from david-sawatzke/doc-patch
Add note on where Boot Flags should be located
2020-01-02 10:23:27 +08:00
David Sawatzke
d8a4da6d85 Add note on where Boot Flags should be located
The first 32 words are searched
2019-12-30 17:16:14 +01:00
Sean Cross
c9571b5f4c releases: v2.0.3
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 23:33:58 +08:00
Sean Cross
447c5dac48 valentyusb: fix usb reset irq storm
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 22:17:33 +08:00
Sean Cross
5f4d07d76f releases: release v2.0.2
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 11:55:52 +08:00
Sean Cross
41e34afcbf releases: release v2.0.2
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 11:54:50 +08:00
Sean Cross
4468a55485 release: add script to make releases
This is used to produce all binaries required for release.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 10:33:56 +08:00
Sean Cross
c8872c1088 sw: don't clear OUT buffer during usb_recv
If there is data already in the OUT buffer, don't throw it away.

This was necessary when using `epfifo` due to the way it shared OUT and
SETUP packets.  However, it is causing reliability issues with eptri.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 09:47:52 +08:00
Sean Cross
bd41cbc2b5 valentyusb: get better-documented version
This improves some documentation around the eptri interface.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 08:56:50 +08:00
Sean Cross
065c0fa8b7 sw: add information to determine why it didn't update
This will be useful if it needs troubleshooting in the future.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 18:10:23 +08:00
Sean Cross
9f86fc5c96 main: initialize spi to ensure it's active
Initialize the SPI flash prior to checking for the bootloader.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 17:50:16 +08:00
Sean Cross
5718d41608 sw: accept alternate SPI ID for PVT
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:43:48 +08:00
Sean Cross
acdccf5f98 booster: change magic number for booster
Since the USB and flash communication layers are different, change the
magic number for booster.  This will prevent previous versions of foboot
from trying to launch our updater with the wrong version.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:36:45 +08:00
Sean Cross
5b5b98c6d4 sw: eptri: add a note about reset condition length
It isn't followed yet, but the note is there so I know where to look.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:36:01 +08:00
Sean Cross
0b49f2f493 sw: don't init/deinit spi at first
This was necessary due to a misunderstanding on how to use picorvspi,
but we don't even use that module anymore.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:35:20 +08:00
Sean Cross
c21b6ff7ff booster: remove obsolete usb-epfifo.c
This file isn't used anymore since we don't support epfifo.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:34:54 +08:00
Sean Cross
d10fdd580f hw: version: use 8 characters for git revision
By deafult, git only shows 7 characters.  Increase this to 8.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:33:49 +08:00
Sean Cross
b087089960 booster: don't connect usb unless in an error condition
Booster is so fast now that we probably don't need USB support.  If
there's an error condition, however, start up USB so we can hook up the
debugger.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:33:05 +08:00
Sean Cross
7f7f23be33 releases: remove updaters
There is a chance that they won't work correctly, so remove them.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 14:23:33 +08:00
Sean Cross
c79f831b63 rtl: version: always include git revision
Even when building a tagged release, include the git revision.  This
prevents the git revision from being reported as `00000000`.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 13:07:08 +08:00
Sean Cross
9b264dc7c4 v2.0.1: add svd file describing soc
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 11:53:29 +08:00
Sean Cross
57f7a8bb95 v2.0.1: generate release files
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 15:55:21 +08:00
Sean Cross
0156e211eb foboot: don't re-enter updater when spi id doesn't match
Consult the spi_id prior to jumping to the updater.  This will
ensure that if the wrong image is flashed, it won't get
re-executed during a reboot.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 14:00:05 +08:00
Sean Cross
8802d488c5 hw: foboot-bitstream: fix no-cpu build
When building without a CPU, the `self.cpu` property is not None, but
rather CPUNone.  This change was made upstream and broke no-cpu builds.

Fix these builds by checking for an instance of CPUNone.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 13:44:15 +08:00
Sean Cross
77632b0c9f rtl: sbled: fix pin mapping for EVT
The blue and green channels were swapped.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 13:24:59 +08:00
Sean Cross
e7ec80a592 Merge remote-tracking branch 'xobs/master'
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 15:15:06 +08:00
Sean Cross
c9a0d9d01d releases: add binaries for foboot-v2.0.0
This is the first release of Foboot v2.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 15:11:19 +08:00
Sean Cross
a6fd320f52 Merge branch 'foboot-2' of github.com:im-tomu/foboot into foboot-2 2019-11-25 13:58:18 +08:00
Sean Cross
249404cf41 deps: sync latest versions of dependencies
This just ensures we're forwards-compatible.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 13:24:10 +08:00
Sean Cross
f36a52453e hw: bitstream: move memory range for litex compatability
The latest version of litex requires that we move this memory range up
by 0x80000000 to build.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 12:53:54 +08:00
Sean Cross
aa00485f43 sw: include hardware version in product description
This addresses #21.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 09:34:00 +08:00
Sean Cross
24a9d7e4c7 hw: define C macros indicating hardware revision
These macros can be used by the bios to indicate hardware revision.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 09:34:00 +08:00
Sean Cross
eb054ba3d4 sw: include hardware version in product description
This addresses #21.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 09:15:10 +08:00
Sean Cross
405918134e foboot-bitstream: encode spi flash information into platform
Different platforms have different spi flash sizes and different numbers
of dummy bits to send.  Encode this information in the platform to
simplify spi flash addition.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 21:58:38 +08:00
Sean Cross
c376d30811 hw: deps: update litex-boards to have hacker spiflash4x
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 21:58:09 +08:00
Sean Cross
4d9680ed25 booster: blink error pattern on failure
Set the LED to red, and blink a continuous pattern to inform the user
what failed.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:32:32 +08:00
Sean Cross
6a147238aa booster: build with -O2
Earlier we were building with -O0, which is useful for debugging, but
is not particularly fast.  Build with -O2 now for speeeeed.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:11:51 +08:00
Sean Cross
3e51649c7e gitignore: ignore swapfiles and make-booster
The pattern for swapfiles was incorrect.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:11:27 +08:00
Sean Cross
0b61bfcdc7 booster: get booster working with foboot-2
This fixes the spi driver so that it works with foboot-2.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:10:12 +08:00
Sean Cross
4d6746d584 booster: make-booster: print hash on output
Next time I need to debug the hash, this will come in handy.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:09:14 +08:00
Sean Cross
fb08d194ca foboot: spi: fix spiId and remove dead code
Remove code that doesn't get called.

Also, remove the `spi_id` global.  It conflicted with one from
the linker, which was causing contention.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 20:08:24 +08:00