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
9336bdab6a
Merge branch 'main' into vault2
2025-10-28 23:15:41 +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
6a548de693
Merge branch 'main' into vault2
2025-10-27 00:02:26 +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
3df456532c
Merge branch 'main' into vault2
2025-10-08 01:19:08 +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
c32dde7b06
Merge branch 'main' into vault2
2025-10-06 13:45:17 +08:00
bunnie
3230fa9fc5
update verification pins
2025-10-06 13:39:16 +08:00
bunnie
8d067e6819
Merge branch 'main' into vault2
2025-10-06 01:23:21 +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
7fa4bb0cc5
Merge branch 'main' into vault2
2025-09-07 11:54:17 +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
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
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