Commit graph

615 commits

Author SHA1 Message Date
bunnie
26078dcc7d add keystore to dabao configuration
After some contemplation, we should include the keystore in the
core service set featured by the dabao-xous configuration.

The pros are: any compatibility/sharing of resources
that require access to RRAM, one-way counters, UUIDs, etc.
will either require a wholly separate implementation that is
"insecure" or it could just reuse the baosec work. Furthermore,
as cryptographic accelerators are laid into the keystore,
the APIs become available to the dabao environment

The cons are: more space is used in a space-constrained
dabao environment (roughly 140k "deadweight" at the start, but
as cryptographic APIs get layered in this can grow substantially);
the key slots are "used up" in part by the scheme, which leaves
less key slots available for user-defined purposes.

This is mitigated by the fact that there are a couple thousand
key slots, and so even though we use a couple hundred of them
it's still not the whole range.

Also, the baosec/dabao feature flag can be used to feature-out
cryptographic APIs/accelerators that are too obscure or not
useful for the dabao environment, to "lighten up" the
firmware load.
2025-11-01 22:59:07 +08:00
bunnie
05c9828106
Merge pull request #712 from betrusted-io/dabao-console-default
make dabao-console a default app for the dabao target
2025-11-01 19:08:29 +08:00
bunnie
0bcd861d9c add app deduplication code
this ensures that a given app is not included more than once

significantly, this allows for an app to be in the default list
and also selectable from the menu and you don't end up with
two copies of it in the binary.
2025-11-01 14:19:58 +08:00
bunnie
23f8534d87
Merge pull request #713 from betrusted-io/app2apps
Rename 'app.uf2' to 'apps.uf2'
2025-11-01 02:57:08 +08:00
bunnie
dd144b9446 fix feature tree for dabao build
"usb" is now default for dabao-console, should not be passed
as a universal feature to all apps as not all apps have that
feature
2025-10-31 12:13:54 +08:00
bunnie
f66944990a fix feature tree for dabao build
"usb" is now default for dabao-console, should not be passed
as a universal feature to all apps as not all apps have that
feature
2025-10-31 12:12:52 +08:00
bunnie
0e399e6264 rename detached-app partition to "apps.uf2"
Per @rowr111 suggestion to make it less confusing in that
the app partition can in fact contain more than one app.
2025-10-31 11:27:42 +08:00
bunnie
770c986e72 make dabao-console a default app for the dabao target 2025-10-31 11:17:50 +08:00
bunnie
8b5f27daae change baremetal commands to require a board spec 2025-10-31 09:45:53 +08:00
bunnie
bb801a16ed update docs 2025-10-28 21:40:37 +08:00
bunnie
90c46c65c3
add altboot support to bao1x targets
specify cargo xtask baot1x-alt-boot1 and dragging this UF2
file onto the disk boots into an alternat boot1 loader that
allows updating of boot1.
2025-10-28 21:38:44 +08:00
bunnie
b769e4ada9 don't include any apps by default in dabao image
this allows the environment to specify it fully
2025-10-27 17:32:47 +08:00
bunnie
012f6f5141 make USB a default feature in dabao builds 2025-10-26 22:56:13 +08:00
bunnie
857c5875fe move the keystore to the appointed slot for access to secure regions 2025-10-24 21:13:18 +08:00
bunnie
0bd4de961a I think I won't regret putting a semver into the boot0 stage too
Even though boot0 DUART output may be inaccessible, the string
could still be found by looking in the binary and searching
for it.
2025-10-16 23:25:44 +08:00
bunnie
254780b382 add some artifacts for an early sample run
These are a bit rushed but wanted to be able to have some
serialization/tracking in the earliest samples sent to
'alpha-zero' developers.
2025-10-16 23:21:07 +08:00
bunnie
dc734dbfa8
fix version generation
This is related to a prior set of patches, we're getting CI failures
related to how tags are working (or not working); this hopefully
fixes that.
2025-10-06 23:35:35 +08:00
bunnie
3230fa9fc5 update verification pins 2025-10-06 13:39:16 +08:00
bunnie
fd6077a64d add dabao target with detached apps
cargo xtask dabao

will now generate a Xous image that targets dabao

it features 'detached apps' so that user applications can
be rapidly developed without nuking the kernel itelf each time.

the current configuration bakes the console into the app section,
but maybe that's a questionable decision.
2025-10-05 17:10:27 +08:00
bunnie
07e43d4459 minor cleanup in builder code for specifying swap regions 2025-10-04 00:55:17 +08:00
bunnie
0437a1263b remove deprecated loader features 2025-10-01 23:38:05 +08:00
bunnie
625e61cbe6 add alternate baremetal naming for consistent target prefixes 2025-10-01 00:42:42 +08:00
bunnie
9336100965 add placeholder for debugging 2025-09-29 22:19:08 +08:00
bunnie
a3a2a1de9d add baremetal support to function codes 2025-09-29 16:18:00 +08:00
bunnie
3928240081 re-org of boot sequence to 'draft final' sequence
boot0, boot1 targets added to xtask, image creation setup
to relocate the start points of each image to these locations.
2025-09-29 13:27:11 +08:00
bunnie
bfede0a1f8 update builder api to match latest features for image signing 2025-09-26 22:57:39 +08:00
bunnie
5b51da3ec0 add boot0 in help for xtask 2025-09-25 16:13:53 +08:00
bunnie
945ef16e37
Merge branch 'main' into bl0 2025-09-25 14:48:34 +08:00
Nathan Perry
fee06f0a32
xtask: exit after printing help
Causes the xtask build to print an error and exit if it doesn't
recognize the task argument. Just ran into this as a result of the
cramsoc -> bao1x rename in 1255bf1 -- the build wasn't recognizing
`baremetal-cramsoc` anymore but was proceeding with the compile anyway,
without setting the target or loader features.
2025-09-24 21:28:51 -04:00
bunnie
bd7ca4fa32 add signature header to boot/baremetal regions
also make the link.x file update based on changes to that region's
length.
2025-09-24 23:59:12 +08:00
bunnie
c117d8020e add targets for boot0 2025-09-24 01:04:31 +08:00
bunnie
ff6ff8841a fix missing api in precursor target from previous PR
also fixup some warnings from the new rustc.
2025-09-21 23:33:37 +08:00
bunnie
19ebb5196c update xtask to handle new autostatics method 2025-09-21 21:52:10 +08:00
bunnie
f2fe921ff1 fixup bao1x-sim target 2025-09-20 22:10:48 +08:00
bunnie
1255bf12d9 FLAG DAY: fix all names to harmonize around 'bao1x'
The code base had evolved through several code names, interim
names, company names and chip names that alternatively did or did
not exist.

Baochip is the definitive name of the company, and the Baochip1x
(full part number BAO1X2S4F-WA) is the definitivey part number of
the SoC. For convenience, the part number is shortened to 'bao1x'
in most feature flags and variable references.

This commit fixes all of the odd names and removes some unmaintained
early targets.
2025-09-18 21:25:51 +08:00
bunnie
04278685a4 re-organize package structure 2025-09-12 02:51:53 +08:00
bunnie
275e4c7af6 cleanup cargo hacks for build 2025-08-10 01:55:41 +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
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
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
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
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