Sam Chin
526d8353fd
hello world exercise
2025-06-09 17:37:12 +08:00
bunnie
c393f590dc
build system changes to target minimum ui
2025-06-01 14:39:01 +08:00
bunnie
3787496016
start mods for vault2
2025-05-29 21:47:17 +08:00
bunnie
8c02d97081
put the feature into revision controlled source
...
this will hopefully avoid future instances of mystery feature-itis
2025-05-23 13:05:01 +08:00
bunnie
1d19076d4b
commit test config
2025-05-21 18:06:10 +08:00
bunnie
163d9430ea
current debug config
...
stash it here for now as we are going to roll back to see what's
going on.
2025-05-21 10:24:15 +08:00
bunnie
d4a713b1ac
cleanup build config
2025-05-18 04:41:41 +08:00
bunnie
3f3f64788c
intermediate config on baosec target for debugging the flash writing
2025-05-17 16:30:06 +08:00
bunnie
2c90103fd8
update the renode-swap config for bringup of the spi flash map
2025-05-15 11:57:15 +08:00
bunnie
28793c2d71
remove legacy dependency
2025-05-11 14:41:51 +08:00
bunnie
a358d89ede
modify args so we can build for testing
2025-05-06 19:05:47 +08:00
bunnie
5aece73f3c
add pddbtest to the emulation target
2025-05-06 01:49:13 +08:00
bunnie
46f4112f1a
add keystore to baosec server list
2025-05-05 01:47:37 +08:00
bunnie
22433fa25c
reconfigure toml files for pddb target testing
...
OK, i think this gets us to the starting point of shaving down
the PDDB crate from the restored baseline
2025-05-04 17:03:00 +08:00
bunnie
9ca7b38222
add pddb into the hw config
2025-05-04 03:33:37 +08:00
bunnie
2c534b6d4d
add cam-test option to xtask loader as a comment
2025-05-01 16:44:51 +08:00
bunnie
bf20cd5ecf
move focus of pddb dev to emu mode
2025-04-29 22:33:11 +08:00
bunnie
f93ab192af
fix out of place text
2025-04-29 03:47:21 +08:00
bunnie
d1860fee56
Merge branch 'main' into pddb-feat-down
2025-03-05 20:57:35 +08:00
bunnie
f91ff92b3a
add modals to the baosec emulation target
2025-03-05 20:50:34 +08:00
bunnie
2b36849683
add console to the emulation
2025-03-03 02:09:54 +08:00
bunnie
8bd01bd65d
Merge branch 'main' into pddb-feat-down
2025-02-23 12:15:49 +08:00
bunnie
aab0a06ab5
add cramium-emu as a server for hosted mode
...
takes the place of cramium-hal-service
2025-02-20 20:41:00 +08:00
bunnie
a2b0a28ee1
Merge branch 'main' into pddb-feat-down
2025-02-20 15:11:01 +08:00
bunnie
7321169854
specify hosted for kernel build in baosec-emu target
2025-02-20 13:28:33 +08:00
bunnie
e9dcdb015b
modify hosted mode specifier to clarify build intentions
2025-02-18 23:18:47 +08:00
bunnie
416cf34aa0
Merge branch 'main' into pddb-feat-down
2025-02-17 18:35:57 +08:00
bunnie
33db7cf039
configure in bao-video to the emu mode to start feeling out the changes
2025-02-13 17:30:36 +08:00
bunnie
ac7dc1b390
create baosec-emu target
...
this is meant to be a "hosted mode" equivalent for the baosec
platform that should allow us to do more rapid development of
UX related things.
2025-02-02 07:03:44 +08:00
bunnie
54ba8c9cf7
Merge branch 'main' into pddb-feat-down
2025-02-01 22:29:55 +08:00
bunnie
4f14a67504
formatting changes due to changes in nightly rust
...
needed to get a clean check on gh
2025-02-01 22:26:40 +08:00
bunnie
3b05282618
commit a configuration for testing the pddb port build
...
doesn't compile but at least we can get a list of errors
that we need to fix
2025-02-01 02:38:34 +08:00
bunnie
b23909cb2a
reconfigure xtask for better demo presentation
2025-01-20 15:27:47 +08:00
bunnie
44ec809713
add cramium-sim target
...
this allows us to build a simulation-focused xous image
this was previously called cramium-fpga but that precise
configuration is less accurate as the simulation environment
makes more shortcuts (and can include more peripherals)
than the fpga environment.
2025-01-01 22:45:07 +08:00
bunnie
f7b95dc942
configure baosec for usb dev
2024-12-22 00:28:13 +08:00
bunnie
3b21dc77c2
update verifier
2024-12-16 18:55:36 +08:00
bunnie
11ce81c6ea
add frunk to the cargo lock for cramium usb
2024-12-16 18:47:17 +08:00
bunnie
69f476b26c
Update verifier.rs
2024-12-02 19:37:09 +08:00
bunnie
00744cf61a
remove quantum-timer feature to simplify builds
...
we don't have pio block on nto; let's avoid maintaining two
versions of the code base for a non-essential feature (the
downside of not having this is that the system could end
up locking up if no processes call yield_slice(), but in
practice this happens often enough that we can get away with
it -- at least at this stage).
2024-12-02 01:00:02 +08:00
bunnie
56bd0decc9
add loader-feature flag; simplify cramium-soc target
...
the `cramium-soc` target is now the simulation target (just
the bare bones chip in a simulation harness, using the `dabao`
board configuration which is basically just a breakout board).
baosec continues to be the prototype for the first USB dongle
coming out.
2024-11-30 02:18:31 +08:00
bunnie
6c49e2a6dd
include patches for shellchat and rootkeys
2024-11-21 02:18:58 +08:00
bunnie
25c30f6cde
add bodge to work around HW configuration in patches
...
right now our patch set assumes a single HW configuration for
cryptography accelerators.
This isn't going to be true going forward. A more scalable approach
to patching accelerators is going to be needed.
For now, we're just falling back to software acceleration for
the cramium target.
2024-11-21 01:39:35 +08:00
bunnie
de12d0f73a
add usb feature to loader
2024-11-20 01:43:05 +08:00
bunnie
4b9f1fce95
move bao-video back to the swap image
...
udma decongestion proves to prevent the hardware lockup, but the
solution is only so durable.
2024-11-08 00:18:03 +08:00
bunnie
fd6c2ad4ff
shuffle around package order
...
There's a hardware bug that makes concurrent camera and SPIM
traffic unreliable. The work-around is to place the camera
code inside the XIP area so we don't have to hit SPIM to swap
in code while the camera is running.
However, we do need to figure out a more reliable fix for this.
2024-11-07 16:13:08 +08:00
bunnie
e05f9346b3
add baosec build
...
this is a slimmed down target designed for a smaller memory
footprint. there is some loss of process isolation security but
also a boost in performance due to more items sharing a memory
space.
2024-11-05 22:10:45 +08:00
bunnie
60eb2ec14b
add feature for qr code extraction
2024-11-05 01:45:45 +08:00
bunnie
a7e59ad1bb
change working set, and increase swap memory size
2024-10-27 23:28:59 +08:00
bunnie
6c1b809828
make USB a feature for the loader
2024-10-21 01:17:21 +08:00
bunnie
2d468eff60
make sram-margin explicit in cramium-soc target
2024-10-16 03:06:22 +08:00
bunnie
0580e8a2cd
organize board flags more sensibly
2024-10-04 13:09:30 +08:00
bunnie
e581eb0b06
add board selector to build args
2024-10-02 01:46:01 +08:00
bunnie
f7c33c9427
move a comment that was displaced
2024-10-01 14:40:59 +08:00
bunnie
043dfd84ae
update formatting to latest nightly rules
2024-09-24 01:49:45 +08:00
bunnie
f494da21cc
absorb new xous-ipc version
2024-09-23 22:05:50 +08:00
bunnie
e01326c8ee
update verifier pins
2024-09-23 01:47:26 +08:00
bunnie
65e3a0386b
update pin for xous-ipc verifier
2024-09-23 00:42:14 +08:00
bunnie
849ae5f874
regex search/replace instances of xous_ipc::String to String
...
codegenerator fixes
2024-09-22 14:19:46 +08:00
bunnie
311154e231
absorb version bump
2024-06-27 00:26:12 +08:00
bunnie
857203731b
adjust flags and features
2024-06-19 21:41:12 +08:00
bunnie
d3c205e3d4
add feature flag option for dumping trng
2024-06-18 00:09:21 +08:00
bunnie
7943e08c44
we were oom'ing on swap, so move some more things into rram
2024-06-15 17:37:22 +08:00
bunnie
9cbb37f466
turn off auto trng
...
we have a console now to start it manually at the right time
2024-06-14 18:21:59 +08:00
bunnie
123ff3ed66
add features for cramium target
2024-06-13 22:03:58 +08:00
bunnie
b2a8d0e7f4
add app manifest for cramium target
2024-06-13 22:03:16 +08:00
bunnie
a360f3ee52
bump xous pins for RawTrng API
2024-06-13 15:49:35 +08:00
bunnie
9bfc4c51f6
add some trng build features
2024-06-13 15:43:42 +08:00
bunnie
9dc2b15d4f
add xtask state
2024-06-12 14:17:16 +08:00
bunnie
91806a2030
add latest xtask state
2024-06-11 23:19:14 +08:00
bunnie
3cad44e6a1
add flags for usb testing
2024-06-01 13:35:56 +08:00
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
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
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
bunnie
1835f4c139
check that app paths exist in hosted mode
2024-01-27 01:13:26 +08:00
bunnie
7db25efcd5
update xtask to include the new "mandatory" service for cramium targets
2024-01-21 00:35:49 +08:00
bunnie
3192aeacbc
add v2p feature for cramium target
...
uses DMA, which is physical memory.
2024-01-19 23:20:31 +08:00
bunnie
192d38db72
add default flags to cramium-soc loader target
...
- debug loader
- board bringup mode
2024-01-18 18:01:05 +08:00
bunnie
dc43fad220
chore: fix typos
2024-01-15 02:01:19 +08:00
bunnie
83d8f12cec
chore: fix typos
2024-01-15 02:00:31 +08:00
bunnie
d7f8ebbc7a
rename symbols for spell check
2024-01-15 01:55:17 +08:00
bunnie
9234b11962
add xtask target to generate dummy versions of files for formatting checks
2024-01-15 01:52:47 +08:00
bunnie
cee320977e
add formatting bypasses to xtask-generated files
2024-01-15 01:52:32 +08:00
bunnie
a9285b672a
bump verifier
2024-01-15 00:33:25 +08:00
bunnie
7b27a7f8fd
format xtask
2024-01-14 23:10:58 +08:00
bunnie
3c3435f0dc
Merge pull request #476 from kotval/out_of_tree_app
...
Modify xtask to permit named BinaryFile
2024-01-09 04:08:23 +08:00