Commit graph

499 commits

Author SHA1 Message Date
bunnie
17a3ed6adb move graphics server to the resident set
this improves responsivitiy quite a bit
2024-05-31 20:45:07 +08:00
bunnie
6ed1b3398b cleanup debug 2024-05-31 03:35:47 +08:00
bunnie
94ee63d564 latest cram-soc build config 2024-05-29 14:05:44 +08:00
bunnie
97665d8785 bump verifier pins 2024-05-29 02:10:37 +08:00
bunnie
5599a3721e add missing dependencies for gam->keyboard->ea->spinor
yeesh....everything connected to everything...
2024-05-28 20:32:20 +08:00
bunnie
21fab71558 snapshot current testing config in xtask 2024-05-28 02:49:50 +08:00
bunnie
de7d876820 more missing prereqs for gam op 2024-05-26 12:13:13 +08:00
bunnie
2a1552b628 bring renode emulator params closer to in line with cram target 2024-05-25 14:35:17 +08:00
bunnie
01e04280b9 cleanup test/debug a little bit 2024-05-25 00:20:04 +08:00
bunnie
0877b9b274 add more testing packages to precursor staging target 2024-05-23 16:51:45 +08:00
bunnie
3e58bda6ba try putting more services into the cramium target 2024-05-23 14:47:18 +08:00
bunnie
c310f4831a a configuration that boots. 2024-05-21 18:07:23 +08:00
bunnie
b115b7e60c add swap-verbose placeholder 2024-05-18 00:09:57 +08:00
bunnie
d2d982b9f2
Merge branch 'main' into swap-opt 2024-05-16 14:56:02 +05:30
bunnie
a519bb2fa5 add resume to swap testing for completeness 2024-05-12 21:51:27 +08:00
bunnie
f1ee38cf6a remove unused feature flag that is triggering a warning 2024-05-10 00:38:29 +08:00
bunnie
12891d6af1 cleanup dangling server reference
i think this actually didn't break hosted mode because
sha2 emulation doesn't use hardware, but this cleans up
a warning at least
2024-05-10 00:08:04 +08:00
bunnie
403822277a add the verifier version bumps 2024-05-07 01:19:49 +08:00
bunnie
114a2c40bd add a flag for changing targets gracefully
at the moment an SVD pointer hangs out that messes builds up
when changing targets (sometimes) -- this is the pointer that
includes extra files in the build for targets that have disjoint
RTL sources. add a flag for cleaning this up.
2024-05-07 00:57:24 +08:00
bunnie
5ab014e715 cleanup the offsets for decrypt_src_page_at()
We had a "coincidence" before that allowed things to work,
where we had some data line up that we happened to think
was some other header data, so we "fixed" it by
subtracting the offset of the header data.

Actually, it wasn't.

Clarify that decrypt_src_page_at() offsets are relative
to the beginning of encrypted data, and not relative
to the absolute beginning of the disk.

Image creation is now fixed so that stuff lines up to what
this routine expects, and some asserts added to try and
save ourselves in the future as we try to fix other bugs
we discover over time.

loaders are hard.
2024-05-06 18:55:11 +08:00
bunnie
b8a088dc78 commit latest test config
- swap works on hardware (at least reading in the encrypted
images works)
- renode version is deliberately configured to trigger an edge
case in the swapper, and is broken -- to be debugged
2024-05-06 03:33:06 +08:00
bunnie
fbb5bb3e90 make monkeypatching more automated 2024-05-05 20:58:43 +08:00
bunnie
f2c877b7f7 add a sanity check around the aes patch
because we're doing shenanigans that we shouldn't be doing,
I think a sanity check on the environment is in order.
2024-05-05 16:28:33 +08:00
bunnie
70ec91d917 work around broken AES accelerator in MPW silicon
Haven't dug into it, but the AES instruction is not working
correctly in MPW cramium target silicon. There isn't a great way
to selectively disable hardware acceleration for sub-targets of
patched crates. So, as a work-around, we use xtask to patch
the default arguments of the AES crate, just for cramium-soc
targets, to use software emulated AES. This allows us to move
on with bring-up. To wit, there is another AES accelerator
on-chip that could be much faster than RV32 AES acceleration
(and with better DPA characteristics), and to use that option,
we might have to use a patch like this anyways, because Rust
doesn't have a good way to pass feature flags through patched
crates like this.
2024-05-05 16:18:38 +08:00
bunnie
f510616e99 remove spim-test from boot since it's already done by swapper 2024-05-05 03:27:47 +08:00
bunnie
d3bbe54da7 convert cramium target to use swap 2024-05-04 21:41:15 +08:00
bunnie
c5af025bb2 rework swap args for testing 2024-05-04 01:44:49 +08:00
bunnie
c2c91a2ee5 placeholder for spim tester flags 2024-04-30 17:03:36 +08:00
bunnie
cb43368e7a add the quantum timer feature by default to the cramium config 2024-04-29 03:40:47 +08:00
bunnie
ced0b09881 add the console app to the default build 2024-04-28 02:41:06 +08:00
bunnie
8746fc5a76 add --with-jump flag for image creation of cramium target 2024-04-26 18:12:47 +08:00
bunnie
0f8fabb0b2 add debugging to kernel while we work out the issues 2024-04-09 18:29:38 +08:00
bunnie
b802af6edc add explicit resume support to renode image
don't do resume on swap builds -- our stack is too deep to
support the clean boot marker
2024-04-08 23:43:05 +08:00
bunnie
73aeae480d add plaintext debug output for swap image 2024-04-08 23:41:48 +08:00
bunnie
42063c222e add explicit build flags to swap target 2024-04-06 22:56:25 +08:00
bunnie
eeeb9281c0 enable debugging in loader 2024-04-05 16:44:55 +08:00
bunnie
89daf48c39 the image creator is sensitive to the target for swap configs 2024-04-04 19:23:26 +08:00
bunnie
d4eac7325f fix ram offsets for precursor swap config 2024-04-04 19:23:07 +08:00
bunnie
dd0b012706 specify swap file name 2024-04-04 18:32:19 +08:00
bunnie
74df4f77dc bump verifier pins 2024-04-01 15:57:34 +08:00
bunnie
5add97db90 Merge remote-tracking branch 'eupn/xtask-simplify' into swap 2024-04-01 14:20:45 +08:00
eupn
92d66d5a63
xtask: fix clippy 2024-03-31 21:40:41 +04:00
eupn
495c342ab0
xtask: rename BuildStream's to_str to as_str
This naming more closely reflects the ownership semantic
2024-03-31 21:40:18 +04:00
eupn
e7da909372
xtask: rustfmt 2024-03-31 21:36:08 +04:00
eupn
ec31a592ab
xtask: fix clippy 2024-03-31 21:36:01 +04:00
eupn
09a6ea2823
xtask: fix comment typos 2024-03-31 21:35:51 +04:00
eupn
12ef383353
xtask: simplify lists 2024-03-31 21:35:35 +04:00
eupn
698cc497c9
xtask: elide lifetimes 2024-03-31 21:35:07 +04:00
bunnie
2d68807d51
Merge branch 'main' into swap 2024-03-28 18:39:19 -07:00
bunnie
ced6dd9e63 fix bug in create-image invocation
its arguments require the 0x decorator to define hex,
whereas arguments to xtask don't. A little confusing, but
only if you actually ever call create-image -- which nobody
does, to a first order.
2024-03-23 11:59:31 +08:00