Commit graph

507 commits

Author SHA1 Message Date
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
bunnie
66779dd479 add swap specifiers to xtask 2024-03-23 11:59:31 +08:00
bunnie
ff241b117b fix ordering of processes so that the swapper is PID 2 2024-03-23 11:59:31 +08:00
bunnie
858e2c8eb3 add swapper test code to the swapper test image 2024-03-23 11:59:31 +08:00
bunnie
ab9fe13ac8 make sure swapper is PID 2 by making it the first service added 2024-03-23 11:59:31 +08:00
bunnie
c8c67a01a3 add a renode-swap target for debugging the swapper 2024-03-23 11:59:31 +08:00
bunnie
04abd3f331 remove engine25519 from list of crates to be built 2024-03-11 18:17:07 +08:00
bunnie
5fb368ae05 partial progress on porting to ring-0.17 2024-02-09 17:18:41 +08:00
bunnie
65fd32e181 update chrono pins
This is the weirdest damn thing. All the crates say 0.4.19 as
the chrono version, but the actual version in the lockfile
is 0.4.33. And there isn't an error about it?

Anyways, this update the pins to reflect what's in the lockfile.
2024-02-08 13:51:30 +08:00
bunnie
88bebd3b00 fix hosted mode target 2024-02-06 15:10:06 +08:00
bunnie
7920c34b97 bump verifier pin 2024-02-06 14:51:24 +08:00
Sean Cross
2f0315771f xtask: support installing kernel toolchain
Now that the kernel toolchain can be different, support installing it as
well.

Signed-off-by: Sean Cross <sean@xobs.io>
2024-02-06 11:02:06 +08:00
Sean Cross
5d0180cd35 xtask: build kernel and loader with different target
The kernel and loader may need to use a different target, particularly
in the case of Precursor where the kernel and loader need an OS of
`none`.

Signed-off-by: Sean Cross <sean@xobs.io>
2024-02-06 10:34:16 +08:00
bunnie
87377a7cdc adopt ^ convention in the verifier 2024-02-01 02:17:06 +08:00
bunnie
d03fbfe91c fix misguided attempt to disambiguate version specifiers
The problem is the original way of specifying crates for remote
download is the same that Rust uses to specify a version of a crate
(e.g. the @ symbol), and so I could not differentiate between the
two cases.

Switch to using a ^ symbol for remote download crates. Hopefully
that doesn't have conflicts??
2024-02-01 02:08:34 +08:00
bunnie
b6133bf08d CHORE: fix out of date doc string 2024-02-01 02:01:08 +08:00
bunnie
886215c1b0 add --offline flag
this has become necessary because with the inclusion of a version
number in a crate name, rustc always consults the on-line index on
every build (even when it's not necessary), which can double the
build time. Using --offline reduces that thrashing.
2024-02-01 00:50:43 +08:00
bunnie
958f39f870 handle '@' version specifiers in services
this is necessary because we're going to have two versions of
sha2 in the system for a while.
2024-01-31 03:50:16 +08:00
bunnie
d0fee65186 specify the sha2 version for the service
this is because we are keeping an older version around
for a legacy ed25519 depedency, so we have to fully
specify which sha2 we want build as our server
2024-01-30 01:44:18 +08:00
bunnie
7cb07becba
Merge pull request #487 from betrusted-io/gfx-target
Cramium gfx target
2024-01-29 03:42:22 +08:00
bunnie
7fb36635e7 add graphics-server to the cram-soc target list 2024-01-28 02:14:58 +08:00