Commit Graph

525 Commits

Author SHA1 Message Date
Sean Cross
dfa09fc84b sw: picorvspi: fix invalid constant in main.c
The previous picorvspi code used an incorrect constant when
examining the CFM_EN bit. As a result, this mode would never
work.

Use the correct constant, in case anyone builds foboot using
a picorvspi hardware block.

This addresses #333.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-12-31 23:21:08 +08:00
Sean Cross
46556c1edf foboot-main: remove unused project
The `foboot-main` project was never completed, and probably
should never have been merged to the main branch. Move it onto
a side branch in case anyone wants to work on it.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-12-31 21:51:17 +08:00
Sean Cross
d9a72a8fde releases: add release files for v2.0.4
These were missed due to their inclusion in `.gitignore`. Add them with
`-f`.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-11-25 10:40:17 +08:00
Sean Cross
6abbd84ec5 releases: add v2.0.4
This adds release v2.0.4 to the build. This version fixes the wraparound
issue.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-11-25 10:30:56 +08:00
Sean Cross
d5bf6f1b26 gitattributes: add md files to attribute list
Signed-off-by: Sean Cross <sean@xobs.io>
2021-11-25 09:54:14 +08:00
Sean Cross
1f4401fc51 Revert "bitstream: use 32-bit csrs"
While 32-bit CSRs increase performance by 4x, they cause older software
to break.

Consider making this breaking change in 3.0.

This reverts commit bb0b1ff761.
2021-11-25 09:47:18 +08:00
Sean Cross
882ce04da8
Merge pull request #205 from tcal-x/master
Adjust doc, suggest different address for RAM LOAD.
2020-10-30 16:44:01 +08:00
Tim Callahan
e05d875ad6 Adjust doc, suggest different address for RAM LOAD. Issue #198.
Signed-off-by: Tim Callahan <tcal@google.com>
2020-10-30 00:04:29 -07:00
Other Tim
e928b868f5
Merge pull request #188 from tcal-x/add_make
Add 'make' to the instructions (to make booster.bin).
2020-10-12 18:12:02 -07:00
Tim Callahan
c22ad07bb4 Add 'make' to the instructions (to make booster.bin).
Also fix a typo in flash addresses.

Signed-off-by: Tim Callahan <tcal@google.com>
2020-10-11 23:15:38 -07:00
Sean Cross
af4d0631ed hw: specify build name as top
Without this, the generated file becomes `__main__.bin`, which is not
very helpful and breaks some other tools.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-07 09:33:28 +08:00
Sean Cross
c241e4a156 hw: don't add a ROM when there is no CPU
Litex cannot include a ROM file now if there is no CPU present, as this
generates an error.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-07 09:32:51 +08:00
Sean Cross
1712a72c3e hw: fix build after CRG patch
The recent CRG patch was missing the AsyncResetSynchronizer import,
causing the build to fail.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-07 09:31:57 +08:00
Sean Cross
0112cde405 sw: fix windows build on newer powershell versions
Some changes in `make`, or possibly in newer Powershell versions, mean
that `copy` can no longer be relied upon.

Explicitly call `cmd.exe` when running on Windows to fix this build.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-07 09:30:58 +08:00
Sean Cross
047583e029 deps: sync to latest upstream repos
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-07 09:12:05 +08:00
Sean Cross
79c21a14b0
Merge pull request #186 from enjoy-digital/master
hw/foboot-bitstream: import _CRG from litex_boards to remove dependen…
2020-10-06 16:24:41 +08:00
Florent Kermarrec
0319e2b71c hw/foboot-bitstream: import _CRG from litex_boards to remove dependency on litex_boards.targets.fomu.
This will allow the Fomu target of LiteX-Boards to be uniformized with the others targets.
2020-10-06 09:16:00 +02:00
Sean Cross
f34d5ffb5e
Merge pull request #149 from swillner/auto-boot
Add optional auto-boot after timeout
2020-08-06 22:19:26 +08:00
Sven Willner
348b658ae2
Merge branch 'master' into auto-boot 2020-08-05 15:43:44 +02:00
Sven Willner
fcec778259 Clarify error message for add_autoboot_timeout.py 2020-08-05 15:40:30 +02:00
Sven Willner
618b79f207 Bypass auto-boot when doing a nerve pinch 2020-08-05 15:37:55 +02:00
Sven Willner
793d9bc017 Fix docs 2020-08-05 15:37:31 +02:00
Sean Cross
3684493f5e
Merge pull request #148 from swillner/ram-boot
Add makefile options to simplify compiling for RAM boot
2020-08-02 16:19:52 +08:00
Sven Willner
714814b735 Fix spelling 2020-08-01 19:35:00 +02:00
Sven Willner
0572806296 Add py script to add timeout to bitstream 2020-08-01 18:22:21 +02:00
Sven Willner
45dcd3a97e Add auto-boot timeout feature 2020-08-01 18:22:21 +02:00
Sven Willner
0bd7791aad Add documentation for ram boot and boot config make options 2020-08-01 18:22:08 +02:00
Sven Willner
538a82dc9c Add options for ram boot compilation (LOAD_RAM_ADDR and LOAD_BOOT_CONFIG) 2020-08-01 18:22:08 +02:00
Sven Willner
832c3e5206 Add load target and unify makefiles 2020-08-01 18:22:08 +02:00
Sean Cross
abdd5b4fbd lxbuildenv: update to 20.6.1.1
This reduces the need to have so many submodules.

Granted, we didn't have submodules anymore anyway...

Signed-off-by: Sean Cross <sean@xobs.io>
2020-06-01 17:14:06 +08:00
Sean Cross
f01995a2cd sync litex version and patch system.h to fix compatibility
The latest version of litex changes the way files are included, which
breaks the build.  This updates the litex repositories, and fixes the
build.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-15 17:50:32 +08:00
Sean Cross
063108418b deps: sync with latest deps
The package `compiler_rt` is now a required depenency.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-04-28 18:45:27 +08:00
Sean Cross
a899f2800c litex: test sync
Signed-off-by: Sean Cross <sean@xobs.io>
2020-04-09 15:10:11 +08:00
Sean Cross
7dba5b348a foboot-bitstream: remove more "litex_boards.partner" entries
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:53:25 +08:00
Sean Cross
e8f2a3f26e foboot-bitstream: remove "partner" path from litex_boards
This changed recently.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:50:30 +08:00
Sean Cross
fdf71bbe12 deps: litex-boards: sync with upstream
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:50:15 +08:00
Sean Cross
8db847fe2e lxbuildenv: update to 2020.2.18.1
This fixes a bug in Python's `sys.exit()`.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:45:50 +08:00
Sean Cross
bb0b1ff761 bitstream: use 32-bit csrs
This experimental change allows for easier writing of 32-bit registers,
and doesn't appear to adversely affect routing on the ice40.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:35:43 +08:00
Sean Cross
4c06d1dc32 sw: port to newer litex accessors
The litex register accessor functions have changed.  Use the new
function names.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:34:31 +08:00
Sean Cross
5e33e64464 deps: litex: grab latest version
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:27:53 +08:00
Sean Cross
e76d5f96c4 dfu: don't let users write more than 1.5 MB of stuff
The flash would loop around and cause boot issues.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:26:22 +08:00
Sean Cross
601f86f31d gitmodules: remove lxsocdoc
It has been integrated into litex.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:25:22 +08:00
Sean Cross
acb766e058 rtl: sbwarmboot: use upstream litex soc doc
lxsocdoc is no longer maintained.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:24:52 +08:00
Sean Cross
12bb0dba97 bitstream: generate svd as part of build
The svd file can be generated prior to building software, so generate it
as part of the build now rather than after the fact.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:24:09 +08:00
Sean Cross
42c89d12de bitstream: use "minimal" variant rather than "min"
The name "min" was deprecated and is no longer available.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:23:42 +08:00
Sean Cross
be98d4abff bitstream: specify vexriscv_debug in mem_map
This is a requirement of modern litex.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:23:01 +08:00
Sean Cross
4ce54f1b5b bitstream: use upstream litex doc documentation
lxsocdoc is now integrated into upstream litex.

This is required now in order to add new memory sections.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:22:40 +08:00
Sean Cross
fa435a44d2 update litex
Signed-off-by: Sean Cross <sean@xobs.io>
2020-02-13 08:18:09 +08:00
Sean Cross
7ced4b7ec2 litex: add csr fixes
Signed-off-by: Sean Cross <sean@xobs.io>
2020-01-30 15:40:55 +08:00
Sean Cross
7bf4238db2 Merge branch 'master' of github.com:im-tomu/foboot 2020-01-29 10:45:56 +08:00