Sean Cross
ccdf910ec1
hw: add --seed argument
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 15:02:04 -07:00
Sean Cross
8a0df08507
foboot-bitstream: ce 5 again
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 14:49:06 -07:00
Sean Cross
4057294332
sw: clean up underflows observed during updates
...
On some platforms, something overflows and puts the system in a state
where it cannot update. By checking for underflow on various counters,
we can now update properly on these systems.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 14:48:08 -07:00
Sean Cross
da904828a0
foboot: add a check for the SPI Flash ID
...
This will prevent loading the wrong image on a device.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 13:03:07 -07:00
Sean Cross
8e2d2bd85f
make-booster: get program to compile
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 11:13:44 -07:00
Sean Cross
7c0e172587
fobootster: first working version
...
This now properly builds and runs on real hardware.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 11:13:14 -07:00
Sean Cross
ce1f5c932a
hw: foboot-bitstream: add an entry for the initial boot image
...
Add an entry for boot image 0. Previously this was getting implied, but
due to the way Python arrays work, it was getting added to the end of
the list instead of the beginning.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-17 11:11:57 -07:00
Sean Cross
82cb20c3bc
v1.7.3: move location of fourth offset
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-08 09:59:33 +08:00
Sean Cross
4e92c9fd28
Merge branch 'master' of github.com:im-tomu/foboot
2019-06-07 16:21:32 +08:00
Sean Cross
c2d334e89c
foboot-bitstream: move multiboot image 4 to 32768
...
Move the multiboot image #4 from 4096 bytes to 32768 bytes.
This helps to future-proof against larger disks which have bigger FATs.
Otherwise, the boot image could be located within the FAT, which would
cause problems.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-07 12:47:57 +08:00
Sean Cross
bf5b4d2eec
Merge pull request #4 from TomKeddie/tomk_201090605_imagesize_override
...
Add optional override of rescue image offset
2019-06-06 08:53:18 +08:00
Tom Keddie
c19d3d439c
Add explicit include of csr.h
2019-06-05 13:21:41 -07:00
Tom Keddie
56e7fc09d9
Remove warnings
2019-06-05 13:18:57 -07:00
Tom Keddie
2770730c1a
Merge branch 'master' into tomk_201090605_imagesize_override
2019-06-05 13:14:08 -07:00
Tom Keddie
1b06115e5b
Merge pull request #1 from im-tomu/master
...
Update from upstream master
2019-06-05 13:11:42 -07:00
Tom Keddie
268069e126
Add optional override of user flash image in dfu code
2019-06-05 13:08:05 -07:00
Sean Cross
9013054b3c
releases: re-release v1.7.2 with proper line endings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-26 21:16:02 +08:00
Sean Cross
53dd66df09
remove v1.7.2 to fix line endings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-26 21:14:57 +08:00
Sean Cross
a0d6ec1f64
releases: add release versions for v1.7.2
...
The previous release -- v1.7.1 -- didn't have pvt builds.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-26 20:46:31 +08:00
Sean Cross
afdd649616
Merge branch 'master' of github.com:im-tomu/foboot
2019-05-26 15:57:41 +08:00
Sean Cross
f57e9b23ea
foboot-bitstream: add "pvt" to list of values
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-26 15:44:02 +08:00
Sean Cross
bbba9a9254
releases: add v1.7.1 to release directory
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-24 08:27:17 +08:00
Sean Cross
f1f0f14d71
foboot-bitstream: use ce of 4
...
A ce of 5 resulted in a bitstream that didn't work. Hmm...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-23 22:11:54 +08:00
Sean Cross
b84a24a853
foboot-bitstream: use modern method of indicating debug
...
The litex core has changed how debug is indicated, instead preferring to
add suffixes to configurations.
Follow this convention when instantiating the main CPU.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-23 21:54:33 +08:00
Sean Cross
8807edee24
usb-desc: use PID assigned to Fomu
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-22 11:21:45 +08:00
Sean Cross
f968c20d17
lxbuildenv: update paths for bin files
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-22 11:21:19 +08:00
Sean Cross
14e46296e5
litex: use upstream version with fixed debug packet
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-22 08:41:01 +08:00
Sean Cross
ffb0845971
foboot-main: wip commit
...
Now foboot-main has been proven to kind of work. When it's loaded to
0x1a000, the recovery image is able to properly locate it and jump to
it.
What isn't yet working is USB, however we are confident that our image
is getting loaded properly, and other images load just fine, so it's a
start at least.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 21:31:01 +08:00
Sean Cross
b6f3cc503d
sw: main: fix "boot to main bootloader"
...
This gets the "main bootloader" support working.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 21:30:21 +08:00
Sean Cross
f88a76c3b0
sw: dfu: use macro for SPI flash offset
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 21:29:58 +08:00
Sean Cross
ae0df08489
sw: usb-desc: update landing URL and product name
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 21:29:29 +08:00
Sean Cross
3ad9853278
sw: usb-desc: mark product name as "static const"
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 21:28:40 +08:00
Sean Cross
58fba5b90e
hw: use ce 5
...
This lets us meet timing.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 13:17:58 +08:00
Sean Cross
47cbc614a1
hw: deps: use valentyusb v0.3.3
...
This version removes retry from the usb wishbone bridge. It was
discovered that this causes crc errors.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 13:01:36 +08:00
Sean Cross
4050898b51
sw: use foosn as the manufacturer
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 12:33:07 +08:00
Sean Cross
b708810f00
sw: dfu: fix sentinal search on null first packet
...
When the first packet is NULL, we weren't searching for the sentinal
properly. Limit the amount of data we search for.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 12:29:42 +08:00
Sean Cross
a3f1ee6d44
sw: fix typo in main
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 11:22:18 +08:00
Sean Cross
050e88ac82
Merge branch 'master' of github.com:im-tomu/foboot
2019-05-20 11:02:53 +08:00
Sean Cross
8e537a9e09
foboot-main: get basic msc working
...
It still doesn't do quite what we want, though.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 11:01:35 +08:00
Sean Cross
c5b5397529
initial commit of foboot main
...
This is an initial commit of a non-recovery version of foboot.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 10:59:48 +08:00
Sean Cross
ab16cc0119
foboot-bitstream: add "version" block
...
This block describes the various git version parameters.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-20 10:55:56 +08:00
Sean Cross
1913767ca7
tests: add simple program to test tx/rx
...
This program generates random data and makes sure it is received.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-14 19:28:29 +08:00
Sean Cross
c89bb50ebc
dfu: reset timeout to a sane value
...
Somehow it defaults to something that is very unreasonable.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-14 19:26:12 +08:00
Sean Cross
7f025eac5c
valentyusb: fix debug with multiple endpoints
...
Now we properly inhibit other endpoints, and prevent the buffer from
draining when there's a debug packet.
This also prevents an early return from DEBUG READ.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-14 15:33:00 +08:00
Sean Cross
bbfd68ed72
foboot-bitstream: use 5 ce lines
...
This doesn't change much, but it prevents nextpnr from getting into an
infinite loop.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-14 10:24:37 +08:00
Sean Cross
0f5267122b
valentyusb: use generic IO blocks
...
There's no need to use ICE40-specific IO blocks.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-14 10:23:49 +08:00
Sean Cross
8f5de3fb62
sw: usb-epfifo: remove dead code and fix usb behavior
...
This fixes USB behavior so it's much more reliable.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-12 21:48:03 +08:00
Sean Cross
8d6c3dc5fc
deps: valentyusb: use new usb pipeline
...
This pipeline removes the timing violations we had, and improves the
debug bridge by quite a lot.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-12 21:47:11 +08:00
Sean Cross
7ba476b057
examples: usb-cdcacm: fix example with good usb core
...
The USB core has changed a bit, and this fixes this example so that it
works with the new USB core.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-12 21:36:51 +08:00
Sean Cross
2adac57076
sw: epfifo: use new fifo arrangement
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-05-10 23:41:18 +08:00