Commit graph

559 commits

Author SHA1 Message Date
bunnie
04278685a4 re-organize package structure 2025-09-12 02:51:53 +08:00
bunnie
7fa4bb0cc5
Merge branch 'main' into vault2 2025-09-07 11:54:17 +08:00
bunnie
45ff0632b8 remove xtask bodges for MPW 2025-08-10 01:43:26 +08:00
bunnie
ee3cae2a8b adjust link.x based on board target
EVB is ram-based, uses jtag to load
baosec is rom-based, uses python script to load
2025-08-08 03:37:56 +08:00
bunnie
af64c1cf14 add baremetal-cramsoc target for chip bringup 2025-08-04 16:11:30 +08:00
bunnie
55f09493d6
Merge branch 'main' into vault2 2025-07-25 19:05:01 +08:00
bunnie
57ce335bd7 add verilator-only tags to appropriate locations in cramium-sim target 2025-07-24 00:30:28 +08:00
bunnie
80e367c519 add ticktimer to simulation set so we can do context switch benchamrking 2025-07-23 01:22:35 +08:00
bunnie
01701dbeef
Merge branch 'main' into vault2 2025-07-22 01:47:36 +08:00
bunnie
4dda0da6c9 swap out curve25519 backend for vexii-test targets
we don't have a curve25519 accelerator on the vexii-test device
due to a lack of space to fit it. so for vexii-test targets
we swap in the u32 (vs u32e) backend.

This requires re-writing the config.toml file based on the
presence (or absence) of a vexii-test flag.
2025-07-21 19:01:10 +08:00
bunnie
91c51920c6 add differentiated baremetal targets for bringup tasks 2025-07-10 14:57:24 +08:00
bunnie
ae06dfe1be add baremetal target
this is a minimal target for building test images that need
none of the xous goodies, but may rely upon e.g. APIs and
libraries. Closer to coding for a baremetal embedded system.
2025-06-14 01:42:23 +08:00
bunnie
b9bac3d5cf
Merge branch 'main' into vault2 2025-06-09 18:52:43 +08:00
bunnie
7d23064d08
Leave in bao-video
I think we can leave in the bao-video package without breaking the size of the swap.img file...
2025-06-09 18:50:46 +08:00
Sam Chin
a25f20d045 making console flags happy 2025-06-09 17:47:00 +08:00
Sam Chin
c291b6a11f now passing the linter 2025-06-09 17:37:12 +08:00
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
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
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
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
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
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
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