Commit graph

10340 commits

Author SHA1 Message Date
bunnie
d2a320b9c6
Merge pull request #794 from betrusted-io/chores
Chores
2026-01-29 19:31:01 +08:00
bunnie
6f71359d18 update all the locks and verifiers 2026-01-29 19:17:40 +08:00
bunnie
3f869ca389 bump utralib version for publication 2026-01-29 19:12:00 +08:00
bunnie
9c123ced58 update signer dependencies 2026-01-29 18:59:58 +08:00
bunnie
ca630c6472 add maintenance comment on USB driver 2026-01-29 18:59:29 +08:00
bunnie
88ccc7e042 fully specify the bao1x target on blitstr2 for bao1x builds 2026-01-29 18:58:55 +08:00
bunnie
4b8079c7bc
Merge pull request #791 from sbellem/fix-790
Fix #790
2026-01-29 03:10:17 +08:00
bunnie
652535bccd
Merge pull request #787 from sbellem/ci-docker-cache-minimize
Refactor dockerfiles and docker ci
2026-01-29 02:40:38 +08:00
Sylvain Bellemare
63b5c92b5c
Refactor dockerfiles and ci docker.yml 2026-01-29 02:49:19 +09:00
Sylvain Bellemare
81f17fe7fc
Fix #790 2026-01-29 02:47:09 +09:00
bunnie
3a8b3a5f6e
Merge pull request #793 from betrusted-io/baosec-lite
fix regressions
2026-01-29 00:45:24 +08:00
bunnie
b0adea6c6a fix hosted mode regression 2026-01-29 00:28:42 +08:00
bunnie
5267335346 in practice, we never want to kill the HAL service, so remove the option 2026-01-29 00:10:09 +08:00
bunnie
2805f7a14a fix deadlock on boot issue
io need to be active early on to get clocks to function on baosec
putting that in its own thread fixes the issue.
2026-01-29 00:09:10 +08:00
bunnie
1d3f264be4 fix hosted mode regression 2026-01-29 00:08:56 +08:00
bunnie
ec630d3a2d update lockfile 2026-01-28 21:12:55 +08:00
bunnie
500906cf38 update ref for sha crate 2026-01-28 20:58:26 +08:00
bunnie
176fb109f3 update verifier pin and cleanup publisher script 2026-01-28 20:54:48 +08:00
bunnie
b2cf705c59 bump ticktimer version to drop susres dependency 2026-01-28 20:53:57 +08:00
bunnie
ed76cfc5fa
Merge pull request #792 from betrusted-io/baosec-lite
merging so hardware ci can run. failure in ci seems to be a problem in docker image creation? or maybe in the ci spec. the crates.io consistency check is failing and this looks like something to do with inconsistent repo state.
2026-01-28 16:06:39 +08:00
bunnie
dc56fc7a09 fix precursor builds 2026-01-28 15:44:18 +08:00
bunnie
3bc1c23425 add missing feature flag 2026-01-28 15:31:22 +08:00
bunnie
c2640458f5 fix hosted mode and warnings 2026-01-28 15:21:39 +08:00
bunnie
a76222bda3 more dependency cleanup 2026-01-28 15:10:38 +08:00
bunnie
b84ff3d351 add a menu item to show a test QR code
this is useful for testing inter-device QR code scanning.
2026-01-28 15:10:15 +08:00
bunnie
3b0edbb442 add some more test routines - some of these will be culled shortly 2026-01-28 15:09:52 +08:00
bunnie
22c8ce4308 fix dangling susres api migration 2026-01-28 15:09:08 +08:00
bunnie
61ac848e71 add PlatformSpecific op extension to susres 2026-01-28 15:08:30 +08:00
bunnie
3e4cbe441f add apis to access clock state via the susres manager
this requires a PlatformSpecific extension to the
susres API.

In addition to that, a DeepSleep op is added so we're
no longer overloading the meaning of the SuspendRequest
operation.
2026-01-28 15:07:22 +08:00
bunnie
75f75ebffa add hooks for oem-baosec-lite in the clock and power management 2026-01-28 15:04:06 +08:00
bunnie
6ae6b22ff3 more cleanup from susres localization 2026-01-28 15:03:40 +08:00
bunnie
a28df43d71 update dependencies 2026-01-28 00:37:03 +08:00
bunnie
cc090eaff8 remove susres from verifier and version bump 2026-01-28 00:36:41 +08:00
bunnie
45632385d5 downgrade susres to a common api
doesn't make sense to push this to crates.io because it's not
common across all platforms, I think.
2026-01-28 00:36:05 +08:00
bunnie
ece9b9943c add module 2026-01-27 22:20:56 +08:00
bunnie
f288a18040 add a first whack at an lis2dh12 accelerometer driver
This is a ball of Claude-generated code which was guided by
the datasheets, some trait APIs and other prompt info.
The prompt used to generate the code is appended to this file.

The result is structurally pretty similar to the accelerometer
driver templates I've seen provided by the vendor, except in Rust
and with Xous idioms, so I think this is a pretty reasonable
whack at reducing boilerplate. There's way more features in these
accelerometers than I have time to write getters/setters for.

The few functions I have used look good insofar as getter/setters,
but there are some oddly specific defaults in the file that should
probably be corrected, probably due to over-prompting of the code
generator. I'll work through these over time.
2026-01-27 22:10:14 +08:00
bunnie
1db717a63f add put_pixel_unchecked() trait in API
this is for implementing checked, higher-performance loops
like blits.
2026-01-27 22:09:37 +08:00
bunnie
b34f4a4c6f remove failure case in Drop implementation
this is some technical debt - Drop doesn't coordinate across
all instances of an object and so the disconnect isn't able
to know exactly when to disconnect. This will require some
guru meditation later on to correct this in a "proper" fashion.
2026-01-27 22:08:28 +08:00
bunnie
385c356801 refactor clock computations & add routine to determine fd
this is a prelude to clock tuning the internal bus networks
for bandwidth. The "trivial" thing of just cranking the speed
up to the edge and letting the dividers didn't seem to help
performance much, though; this could be due to the clock synchronizers
beating against each other.
2026-01-27 22:07:07 +08:00
bunnie
5a3319ae57 optimize camera frame rate
it's now around 30Hz.
2026-01-27 22:06:18 +08:00
bunnie
f7c00eb985 fix some rendering artifacts and add todo's on the QR code rendering 2026-01-27 22:04:51 +08:00
bunnie
ac20b43aaa update gc2145 comments 2026-01-27 22:02:24 +08:00
bunnie
1cb23dd4a2 change power-on order of display and add unchecked variant of put pixel
- remove bounds checking for accelerating blits that are already checked
- fix the command ordering for display power-on to remove "noise"
during power-on of the display.
2026-01-27 21:51:50 +08:00
bunnie
e8219cda58 adjust boot delays to make screen-up a bit faster 2026-01-27 21:38:19 +08:00
bunnie
d6a5c636bb "best" config with current lens 2026-01-27 17:33:22 +08:00
bunnie
955c85b22e move statics initialization to top, adjust oled power-on timing
- statics need to be initialized before IRQs are turned on.
- oled power-on sequence is adjusted to clean up display on "rough"
power-on transients
2026-01-25 18:34:43 +08:00
bunnie
026ba8654a remember debug-countermeasures option as a comment 2026-01-25 18:33:14 +08:00
bunnie
9d5851bd98 adjust attack threshold trip for recording attack
in practice we're seeing multiple trips to the glitch detector
when power down discharge is slow.
2026-01-25 18:32:24 +08:00
bunnie
146405fb57
Merge pull request #789 from betrusted-io/baosec-lite
Baosec lite
2026-01-25 00:58:06 +08:00
bunnie
84e276f712 add BIO sketch for qspi to 8080 converter
quick feasibility study to confirm that BIO can convert
a QSPI video stream into 8080-style display stream support.
One of those quirky weird applications that I think BIO is
kind of perfect for.

I think it should work, at the speeds required, but nothing
compares to actual hardware testing.
2026-01-24 23:55:22 +08:00