Commit graph

559 commits

Author SHA1 Message Date
bunnie
30ea893c74
Merge branch 'main' into xous-rs-os-selection 2022-10-25 17:28:33 +08:00
bunnie
40374bcbcb bump xtask verifiers 2022-10-25 17:24:38 +08:00
bunnie
1b70801861 fix some typos 2022-10-23 23:20:08 +08:00
bunnie
901525e3c9 handle multiple performance manager options
by default, shellchat drives the performance management interface.
But if an alternative one is specified, it overrides shellchat.
2022-10-23 23:17:16 +08:00
bunnie
c127f00dc1 add a no-codec feature for DVT builds
specifying this turns off all dependencies that rely on the
codec, which is a different device on DVT.
2022-10-20 22:35:17 +08:00
bunnie
e47032aa23 bump verification parameters 2022-10-20 17:23:24 +08:00
bunnie
e96d711e94 add maintainer notes 2022-10-20 17:08:16 +08:00
bunnie
dcbf028c5c bump soc rev
minor rev to fix a dangling git reference
2022-10-20 04:58:48 +08:00
bunnie
56471a99e4 bump default ref to newest soc ver for svd hw 2022-10-20 04:24:46 +08:00
bunnie
74fe8c989c add dvt target
resurrecting some old hardware as an efuse testing target;
new hardware is too precious at the moment given the ridiculous
shortage of FPGAs on the market.
2022-10-18 21:47:16 +08:00
bunnie
d053baf3e3 update lockfile and check versions 2022-10-17 05:17:59 +08:00
bunnie
3a2b901f49 fix version check version pins 2022-10-15 01:42:08 +08:00
bunnie
f2ae008c25 various small fixups in crates.io to local source sync checks 2022-10-14 17:43:08 +08:00
bunnie
158ea5bb2d bump verification pins in xtask 2022-10-14 17:12:21 +08:00
bunnie
e0a85ac1cd activate flags for timestamping; re-order dependencies for easier maintenance 2022-10-14 16:23:57 +08:00
bunnie
ff30131f43 absorb more fixes into the kernel 2022-10-13 04:08:56 +08:00
bunnie
3503965f98 bump versions to absorb xous-rs changes 2022-10-13 03:41:16 +08:00
bunnie
02b80425f5 bump xous-rs to absorb change in language specification 2022-10-10 03:07:44 +08:00
bunnie
c52c02013e add command line feature flags back to xtask; detect & track language changes 2022-10-10 02:53:15 +08:00
bunnie
b2048d0066 note the previous commit for future reference in a place where i can hopefully find it :-l 2022-10-09 17:26:41 +08:00
bunnie
4aad245b31 add notes about how to maintain the XOUS_MIN_VER field 2022-10-09 14:22:02 +08:00
bunnie
a1a6ae6d6a add a note about how minver is currently broken 2022-10-09 02:36:27 +08:00
bunnie
11673da5f6 bump min xous version, as we need the version mask fix to read newer backups
even though the format is compatible, the version check isn't :(
2022-10-08 15:30:24 +08:00
bunnie
d7333a51fd bump xous-susres version check 2022-10-07 18:50:35 +08:00
bunnie
3bca9de2a0 bump version numbers for xous-kernel patch
this fixes tests in CI
2022-10-05 23:51:35 +08:00
bunnie
5c0154f730 cleanup version comparison code
this should be "clean" and working. yowch, this is really strict...
i may need to loosen this checking to make development sustainable.
2022-10-05 18:53:09 +08:00
bunnie
969f93b001 cross-repo update versions from xous-rs bump 2022-10-05 18:32:44 +08:00
bunnie
33948e70d6 initial verifier attempt
verification is sort of pointless, because:

The Cargo.toml file is parsed and reformatted by the packaging tool to normalize its contents.
Thus, the Cargo.toml file of the downloaded version never matches the Cargo.toml file that's actually used.

Unfortunately, there doesn't seem to be an easy way to check the equivalence of two Cargo.toml files,
except for recursively and deeply parsing through and comparing all the possibile keys and values of
the abstract key/value tree. This is a much bigger project than I'm prepared to figure out today.

As a hack, we compare to the Cargo.toml.orig file. Which is...kind of OK, but really, this opens us
up to attacks where someone just has to replace a version on a package or even just swap out an
entire package for a malicious one by just using package name re-assignment which is a thing that
the format supports. In other words, all this checking is kind of pointless because it's super-easy
to swap out key crates for whole other crates and have it go undetected.
2022-10-05 05:33:24 +08:00
bunnie
9c5d773cf3 cleanup CargoSpec From trait 2022-10-05 02:54:12 +08:00
bunnie
0a03782245 bump remote targets in xtask 2022-10-03 03:37:50 +08:00
bunnie
0aaf64781f add refs to remote susres 2022-10-03 02:25:00 +08:00
bunnie
679ad9b75f bump remote packages in xtask 2022-10-03 01:18:52 +08:00
bunnie
359d234971 fix some bugs in the remote build process 2022-10-03 00:25:15 +08:00
bunnie
1352e3f3df add a tiny target; testing some minimal builds 2022-10-02 21:50:05 +08:00
bunnie
b431059715 add hosted-ci target back in 2022-10-02 17:52:30 +08:00
bunnie
b4febb78ff convert all build targets to the new builder format
also organize the build targets and document what they do better.
remove bitrotted targets.
remove legacy frameworks.
2022-10-02 17:32:48 +08:00
bunnie
366434b015 initial cut at a refactored build process.
built renode, hosted, tts, app-image targets successfully.

now to finish porting over all the legacy targets and then
removing the old build method
2022-10-02 02:21:48 +08:00
bunnie
e2d941e3b4 remove clap from svd2repl 2022-09-29 22:31:50 +08:00
bunnie
8af0ef7961 split xtask into file modules 2022-09-29 19:05:24 +08:00
bunnie
e65884cf77 start cleanup on renode build 2022-09-27 18:10:15 +08:00
bunnie
4f2506f009 some housekeeping; remove bit-rotted test targets
these targets are so old they would need to be completely
re-written to be relevant, so just cull them.
2022-09-27 17:50:32 +08:00
bunnie
44cc459b33 fix hosted mode 2022-09-27 17:35:38 +08:00
bunnie
755556611c prep kernel for packaging
- strip out gdb-stub. Per xobs, the feature never worked, and it
depends upon a branch of a git repo which is not allowed by crates.io
Since the feature hasn't been developed, and crates.io will not
allow even an optional feature that points to a git repo, the feature
was stripped out.

- rename "kernel" to "xous-kernel", so that we can live in a crates.io
package namespace that is specific to Xous.

still have to figure out the riscv package issue.
2022-09-27 17:02:20 +08:00
bunnie
895957e53a pass the SVD config back to xtask
this is necessary because we need the full SVD path to generate
the whitelist of physical pages that can be addressed. Since the
SVD path is now domiciled in utralib, a file called "SVD_PATH"
is created in the target/ directory which contains the resolved
path to the SVD file given the abstract target/rev feature pair.
2022-09-27 15:12:28 +08:00
bunnie
3a6f69a4ad fix SVD spec toggle trigger
this fix makes it so that

1) you always get a correct build when the SVD spec is toggled
2) you don't always rebuild when nothing has changed

(2) is with the caveat that the no-change flag is only clean
after your second build (i.e. your third run will be fast).
I'm not quite sure why but I think it's because the "changes"
to the config file tracker are computed throughout the first
build and the second build still sees that file as recently
changed, so, it'll trigger a rebuild (could also just be
a race condition because the timestamp of the rebuild is
at the same second that the file was regenerated, so conservatively
you'd rebuild the next time).
2022-09-27 03:06:42 +08:00
bunnie
3bf363bf22 rework SVD files to be located in utralib crate
- default SVD file is specified now as a constant at the top of xtask
- SVD files are now tracked to commit refs in the betrused-soc tree

this is so that we don't have to guess which crate rev corresponds
to which SVD rev -- we specify it explicitly with a feature flag.
2022-09-27 01:16:29 +08:00
bunnie
91eb81000a add some breadcrumbs 2022-09-16 01:45:15 +08:00
bunnie
7dbc1f60b0 add xtask tweaks for performance counter variants (perf-image target) 2022-09-16 01:39:22 +08:00
bunnie
ea37ce2ea1 add feature gate on v2p per xobs' request 2022-09-15 14:06:07 +08:00
bunnie
44afbd7697 fix issue where large lists of apps break signing key specifier mechanism
now to specify a signing key you add it after a "--" which delimits
the list of apps
2022-09-12 13:12:18 +08:00
bunnie
5e15f798c8 add "perf" variant to targets, for performance profiling
also add a routine to manually switch over the UTRA in this case.
for whatever reason, the system is not picking up the change in
the UTRA when specified as an environment variable change --
maybe there is a hard coded link somewhere, but I can't seem
to find it.

since performnace counting is an edge case use mostly by
frankly just me, I'm not going to worry about ergonomics so
much.
2022-09-11 07:45:14 +08:00
bunnie
25d1d0144a cleanup hosted mode build and carve TLS target out 2022-08-20 00:47:28 +08:00
bunnie
7d62ca85b8 some preliminary schwags at making flamegraphs
turns out, they're pretty useless. I mean, for debugging actual
running code. it tells us basically what we know already which is
99.99% of the time is spent waiting on inter-thread messaging
in hosted mode.
2022-08-01 01:32:19 +08:00
bunnie
645291f8eb add rekey test feature as a comment-option in run 2022-07-19 03:18:01 +08:00
bunnie
1256fcb411 add min version requirement and current version to kernel and loader 2022-07-08 18:56:05 +08:00
bunnie
bba4c38f6b
Update main.rs 2022-07-05 23:13:07 +08:00
Sean Cross
c1e585c37c xtask: ensure loader is build with lto,codegenunits=1
If the loader is not build with these two parameters, then Weird Things
happen with the font table.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-07-04 22:33:38 +08:00
bunnie
5d23ad9db6 add the pddb-btest target, for secret basis stress testing 2022-07-04 17:55:23 +08:00
bunnie
66f7f0a5ab add the autobasis feature to the current xtask set 2022-07-04 04:08:55 +08:00
bunnie
770f7e1f53 add tracking allocator
has to be instrumented on functions of interest, but there is one
e.g. in shellchat now for tracking allocations to display a PNG.
2022-06-19 01:55:16 +08:00
bunnie
4eac32ba60 add submenu context generation to manifest format
adding a key of "submenu" will automatically create the corresponding
integer argument of submenu contexts for the app.

NB: you should try to only create 1 and re-use it. Menus
are resource hungry, and will rapidly eat through your connection
and thread table.
2022-06-17 18:28:07 +08:00
bunnie
1121e268b8 re-add the ditherpunk build target 2022-06-16 03:42:46 +08:00
bunnie
1728bafd72 revert custom kernel flag for ditherpunk
we should now be able to create specific threads with
increased stack sizes, instead of a blanket increase on everything
2022-06-16 03:27:14 +08:00
bunnie
3757441677 split off image generation for ditherpunk in xtask 2022-06-14 19:05:44 +08:00
bunnie
c687f7dc02 add a kernel feature flag so we can adjust stack size for ditherpunk
Don't want to make the stack size adjustment across the board
because it's helpful for managing/checking bloat as it happens.
2022-06-14 17:08:32 +08:00
bunnie
fc8e5df2b1 Merge remote-tracking branch 'origin/dither2' into dp2-merge 2022-06-14 16:45:38 +08:00
Ana Hobden
fa864ef137 Correct sha binary name
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-06-07 23:42:01 -07:00
bunnie
94b7bde983 fix spurious rebuild issue
Had two JSON entries with the same key, which meant you had
 a 50/50 chance of a rebuild being triggered depending on which
entry was picked for the build. :-/
2022-06-05 23:08:09 +08:00
bunnie
665292ce74 absorb the correct package list for renode builds
The manifest was being processed, but the package list was
going back to the original base set, which would lead to
a confusing situation of apps being listed but the binaries not
being present.
2022-06-05 13:34:26 +08:00
bunnie
81f823ff34 migrate u2f to the "vault" app
The vault app is the beginning of a multi-purpose authentication vault.
It will feature:

1. FIDO2 authentication
2. TOTP authenticators
3. Password storage to PDDB with auto-typing via keyboard HID

This is the first step on a very very long journey.
2022-05-28 01:17:54 +08:00
bunnie
05f705a931 prove that we've restored ditherpunk functionality to hosted mode
this basically brings us back to the point of the original PR,
but with the code being optional.
2022-05-27 18:05:36 +08:00
bunnie
a8e7809087 fixup feature fest 2022-05-27 17:41:22 +08:00
bunnie
a8f761722a start to lay in u2f messaging infrastructure 2022-05-26 17:58:22 +08:00
bunnie
ca275308ef Merge branch 'usbdev' into main 2022-05-17 02:31:10 +08:00
bunnie
346caad315 Add the usb-device-xous driver to the default hardware config
Also includes the USB test commands in shellchat.

This is different from the usb-test crate, in that it's fully
integrated into Xous. usb-test is just for quick-testing the USB
driver, in the absence of most of the rest of Xous.
2022-05-17 00:46:52 +08:00
bunnie
867b0efdf2 hosted mode breaks under windows due to missing .exe on some configs
I don't know why it doesn't break under a default config, but if
xous-core is cloned to a directory that doesn't match the repo
name this breaks. This patch tries to fix it for that case.
2022-05-10 17:37:41 +08:00
bunnie
fd2aa438c0 still struggling a bit to get basic USB connectivity test to pass 2022-05-05 20:51:48 +08:00
bunnie
796b7292a6 build for hardware by default 2022-05-03 01:13:11 +08:00
bunnie
74dafa4788 augment the xtask to deal with more usb-dev scenarios 2022-04-27 02:41:38 +08:00
bunnie
9768503087 Merge branch 'main' into usbdev 2022-04-25 18:44:37 +08:00
Sean Cross
fa98b865df xtask: add --no-timestamp option
Add a --no-timestamp build option to skip rebuilding `ticktimer`.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:41:35 +08:00
bunnie
188a18976c clean up merge conflicts 2022-04-21 17:57:42 +08:00
bunnie
ec34c4ba91 Merge remote-tracking branch 'origin/main' into usbdev 2022-03-31 04:37:19 +08:00
Sean Cross
e6209302e7 xtask: use assets api for determining URL
Now that we have full JSON parsing inside xtask, actually parse the
assets API endpoint to determine the correct URL.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-29 21:47:32 +08:00
Sean Cross
35857ab543 xtask: replace curl with ureq
The `ureq` package is much smaller, and may be more reliable on Linux.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-29 20:47:37 +08:00
bunnie
d736d54cee make pddbtest not part of the hw build but part of hosted mode by default 2022-03-29 16:49:18 +08:00
Sean Cross
a70aee7bad loader: move loader into main workspace
Add the loader into the main workspace, removing it from its own
sub-workspace. We can do this now that we can specify the linker script
in `build.rs`.

This improves IDE support, and should shrink disk storage requirements.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-22 02:09:18 +08:00
Sean Cross
e96a7df267 xtask: remove renode-bypass for renode-image
The `renode-bypass` flag is used for development in order to speed up
certain features. This creates invalid keys and skips many checks, which
causes problems in the main image.

Remove this flag in order to fix the Renode image.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-20 10:37:17 +08:00
Gianguido Sorà
ae2762e7f5 fix: on non-TTY terminals if forced, proceed with toolchain download and install
This is a corner case in Github CI.
2022-03-18 17:17:34 +01:00
Gianguido Sorà
ccafeb21a3 if not tty but force install is true, keep going 2022-03-18 17:05:51 +01:00
Sean Cross
65d2ec64db xtask: add --force parameter to install-toolkit
This parameter will remove the existing toolchain and target
directories, forcing a reinstall.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-18 23:35:42 +08:00
Gianguido Sorà
cbd412a461 compile for hosted and real hardware on main push 2022-03-18 15:51:58 +01:00
Sean Cross
8920e35e08 xtask: run rustfmt on package
Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-18 12:10:48 +08:00
bunnie
fbf90efe0e add a broader CI target for hosted mode
this will help prevent bugs slipping through where I forget to update
hosted mode stubs when tweaking hardware APIs
2022-03-18 03:21:46 +08:00
bunnie
6c59b32ae6 fix loader for minimal-build hardware 2022-03-14 01:18:36 +08:00
bunnie
34c9d83cba add a hack to change the locale for tts builds
unfortunately it greatly increases build times. need to think about
this but at least it prevents me from checking in a locale file that
breaks all the other dev's builds
2022-03-11 19:04:11 +08:00
bunnie
b246a369d4 lay in another layer of tts functionality
now shellchat can talk, and password entries are a thing.

next up: debug oom issues in STT when we start doing really big
strings.
2022-03-11 02:37:48 +08:00
bunnie
c44f794dfe baseline before moving onto the next stage 2022-03-11 00:03:31 +08:00
bunnie
24e295e059 right...don't check that version of xtask in. 2022-03-09 03:51:28 +08:00
bunnie
446317bdd4 add speech rate library call and default setting
350 wpm was the requested default!
2022-03-09 03:48:12 +08:00
bunnie
1227ee06ab final integration with on-line binary download of TTS exec 2022-03-09 00:25:30 +08:00
bunnie
19f09b9ed3 suppress warning messages if no apps are selected 2022-03-08 17:39:57 +08:00
bunnie
1d6fbbe5bb add the basic text to speech infrastructure.
also creates a method for isolating incompatibly licensed repos
2022-03-08 03:08:12 +08:00
bunnie
3325a96fd4 Merge branch 'main' into tts 2022-03-08 00:24:38 +08:00
bunnie
eb7d35e484 Merge branch 'ffi' into main
this add some routines and test stubs that are helpful for debugging
C FFI integrations. In particular it provides some harnessing that adapts
a minimal selection of libc functions by copypasta of various bsd/mit
licensed libc implementations. It also provides a cheesy malloc using
a Rust Vec...only suitable for simple, single-threaded work, but enough
to unlock a reasonable range of middleware.
2022-03-08 00:20:50 +08:00
bunnie
6d697691db add doc string for ffi-test 2022-03-08 00:19:27 +08:00
bunnie
f80d3f089d stash 2022-03-08 00:01:48 +08:00
bunnie
0a11350771
leave a bread crumb for image creation debugging
because I can never remember how to flip that debug environment variable on windows
2022-03-07 15:04:39 +08:00
bunnie
199ce642b3 ok this is the version that works, let's start from here. 2022-03-07 14:02:19 +08:00
bunnie
54e491840d stash to work on an aes api bug 2022-03-07 13:17:58 +08:00
bunnie
4cfd835c0c allow for explicit version pinning of crates in package specifiers for an image
This works around the issue of a dependendent crate e.g. pulling in a version
of sha2 that is an incompatible API with the one provided by the hardware
accelerator. Cargo needs to know for which sha2 crate to build, and
the current "sha2" specifier is too ambiguous.

This is done by specifying it as "sha2:0.9.8", but, this now breaks
the image creation because the actual artifact built is still a filename
of `sha2`, not `sha2:0.9.8`. This patch both adds the fully specified
version to the sha2 crate and also strips out the trailing version
number without breaking e.g. Windows builds which have a ':' built
into every path (so you can't just do a stupid split(':') to strip
off the version number).
2022-03-06 22:24:58 +08:00
bunnie
526bc959af add some facilities for testing net in libstd 2022-03-02 20:43:01 +08:00
bunnie
e7efb14bdf add a bypass for Renode to skip the signature check
- bypass causes warnings to be emitted in compilation
- stark visual change on boot screen ("jail bars" instead of gray on bottom half)
- root keys are locked out permanently from readout
- devboot canary set
2022-03-02 19:51:16 +08:00
bunnie
396b9e134a add app generalization to xtask renode commands 2022-03-02 00:00:33 +08:00
bunnie
a9a5e5c9a9 integrate app name in sec notes patch, make app name update retriggered on change 2022-02-24 19:44:24 +08:00
Gianguido Sorà
b47c7b2793 Add current app name in security notes
This commit adds the current's app name to the security bar at the top
of the screen, just beneath the status bar.
I had to add a new generated function to map app index back to its name,
along with an enum to signal whether or not the id is valid.

Signed-off-by: Gianguido Sorà <me@gsora.xyz>
2022-02-24 19:29:45 +08:00
bunnie
122221227b fix some bitrot on usb burning routines, add windows support 2022-02-12 23:18:27 +08:00
bunnie
b1859b57ae fix hw_pkgs -> pkgs thanks @gsora 2022-02-12 00:56:28 +08:00
bunnie
af52f4ae3c add apps to debug hosted mode flow 2022-02-12 00:42:19 +08:00
bunnie
4abb6548cd add a feature to turn off timestamps
specifying "no-timestamp" causes the build to be reproducible
on the same machine. of course, introducing the timestamp makes
the build no longer reproducible but it's very helpful for debugging.
2022-02-07 17:38:07 +08:00
bunnie
830d875911 slot in the ball demo for renode tests 2022-02-04 17:10:51 +08:00
bunnie
b036d55d24 add dummy app menu generation to renode 2022-02-04 17:07:57 +08:00
bunnie
f1fa030b87 fix some CI issues 2022-02-04 02:24:12 +08:00
bunnie
b498669003 use NIST SP800-38F (AES-KWP) to wrap the system key for the PDDB
this is instead of our lolfail ECB-based method with a check block.
2022-02-03 18:24:06 +08:00
bunnie
3240234e95 re-instate xtask run with command-line specified apps 2022-02-02 23:56:17 +08:00
bunnie
323f737a4b make the rebuild process smarter so we're not triggering if stuff didn't change 2022-02-02 23:25:36 +08:00
bunnie
a4752dbb59 app manifest and auto-gen infrastructure 2022-02-02 16:18:06 +08:00
bunnie
884943c3ad adjust format of autogen file 2022-01-31 23:05:11 +08:00
bunnie
faa51908d7 maybe, just maybe...we finally have version info baked into the kernel correctly. 2022-01-31 23:02:32 +08:00
bunnie
583c2e172b add a demo REPL app to help users get started with something more interactive 2022-01-24 19:06:58 +08:00
bunnie
6089672960 add localization to the demo app 2022-01-24 04:42:35 +08:00
bunnie
d2a054ec33 laying in some framework for user applications
The first "app" is just going to be a whole-framebuffer
demo that gets raw keys and does some stuff on the screen.
It's the starting point if you wanted to eg. write a simple
video game or something for the device, but you didn't care
about much of the other UX sugar.
2022-01-23 15:52:17 +08:00
bunnie
7961dbddee word wrapping take 2 - this time with ~~tests~~ 2022-01-21 00:34:12 +08:00
bunnie
0d4ab0eb47 Revert "loader: move loader into main workspace"
This reverts commit 0d72454776.
2022-01-17 22:55:39 +08:00
Sean Cross
0d72454776 loader: move loader into main workspace
Add the loader into the main workspace, removing it from its own
sub-workspace. We can do this now that we can specify the linker script
in `build.rs`.

This improves IDE support, and should shrink disk storage requirements.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-01-14 17:32:04 +08:00
Sean Cross
7cd86b4fcf Merge branch 'main' of github.com:betrusted-io/xous-core into kernel-monorepo
Signed-off-by: Sean Cross <sean@xobs.io>
2022-01-14 15:33:10 +08:00
Sean Cross
35af35381a kernel: integrate kernel into main monorepo
This moves the kernel into the main monorepo, allowing it to share
packages with the rest of the system. This change will allow us to
reduce the number of rebuilds that take place, as well as reducing disk
usage.

Note that the loader is still an indepenent project, and the integration
of that into the monorepo is pending.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-01-14 15:31:36 +08:00
bunnie
f626374b36 reduce resource usage of the oqc_test
- code is merged into shellchat so there's less alignment overhead
and some library reuse
- server is not spawned until it's needed, so the RAM load is less
2022-01-11 17:19:13 +08:00
bunnie
4f638bb49a massive refactor to eliminate the RTC crate
Saves a bit on resources and the RTC crate doesn't need
to be stand-alone now that the modals crate is a thing;
we are able to split the UX routine to manage the RTC out
of the code that actually manages the hardware.

The hardware code ended up in LLIO, and the UX ended up in the status
routine.
2022-01-11 15:45:20 +08:00
bunnie
630dd6a784 make the CI options command line driven 2022-01-02 16:41:23 +08:00
bunnie
60d6d08933 basic framework for modal API wrapping in place 2021-12-15 13:46:24 +08:00
bunnie
f5a5211851 hosted mode simulation; basic disk formatting doesn't crash.
- hosted mode uses an awful, horrific hack to simulate FLASH:
it makes a global singleton that is freely mutable. Oh but wait!
that's actually how the hardware behaves. It's up to the code
around the hardware to create those primitives. So, maybe it makes
sense that the simulation model for the hardware is terribly
unsafe and unprotected.

- the format routine at least doesn't crash and creates some
semblance of a result that looks right-ish. Need to write a
utility that helps to explore the "disk image" so we can
understand what's going on.
2021-11-12 21:15:30 +08:00
bunnie
56e82f37d3 more thoughts on the pddb.
this is definitely a rough-draft implementation and is going to
need a v2 or v3 to plug all the serious holes.
2021-11-05 03:58:58 +08:00
bunnie
46f1f60cda commit to journal of bad ideas issue #243: a misguided attempt at a PDDB API. 2021-10-31 22:58:20 +08:00
Sean Cross
dd0c01d2e4 xtask: trim version string
This prevents it from constantly asking you to upgrade.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-10-23 17:06:26 +08:00
Sean Cross
59879d4d43 xtask: look for new RUST_VERSION file for toolchain
This will allow us to know if we need to upgrade the toolchain.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-10-23 16:56:41 +08:00
bunnie
643e9a7d62 dns. needs more work, but it is at least minimally functional. 2021-10-20 05:18:54 +08:00
bunnie
b43eb56346 add some skeleton for a net crate; testing COM interrupts 2021-10-08 20:01:13 +08:00
bunnie
44615c9acf Merge branch 'main' of github.com:betrusted-io/xous-core into main 2021-10-04 17:28:35 +08:00
Sean Cross
09d7445c88 xtask: update list of base packages
The susres server is now required as a base package, as well as the two
servers that it depends on.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-09-27 19:41:24 +08:00
bunnie
5e9af8821b back out build-impacting changes from the attempt to make a test case 2021-09-26 00:55:26 +08:00
bunnie
be8a3a9acd an attempt to create the failing test case, but it seems this is too simple 2021-09-26 00:43:46 +08:00
bunnie
011466ceb5 start on a minimal test stub for the heap allocation problem 2021-09-26 00:01:59 +08:00
bunnie
c2c919ba81 add oqc test service
this works around the problem with stdlib allocator not
working quite correctly in spawned threads.
2021-09-18 02:22:35 +08:00
bunnie
e510525a0a move wycheproof-import to tools 2021-09-06 14:42:19 +08:00
Fabian Weißberg
4bb454ef10 Import x25519 vectors from Project Wycheproof
Closes #76

The test vectors in wycheproof-import/x25519_test.json correspond to the upstream commit 4672ff74d6.

For details see wycheproof-import/README.md.

Signed-off-by: Fabian Weißberg <fabian.weissberg@tu-dortmund.de>
2021-09-05 22:27:16 +02:00
Sean Cross
3c917d9be4 xtask: offer to download the toolchain
If the toolchain does not exist, offer to download it for the user.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-19 11:58:55 +08:00
Sean Cross
05801f3f06 xtask: add simple check for toolchain
This adds a simple check for the proper Rust toolchain. A more advance
test will advise on toolchain installation.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:30:35 +08:00
Sean Cross
e96d356e15 xtask: build kernel using riscv32imac-unknown-xous-elf
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:22:50 +08:00
Sean Cross
80bf296382 xtask: fix clippy warnings
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:26:28 +08:00
bunnie
ccc577f8d7 clean up the update flow 2021-08-16 02:46:54 +08:00
bunnie
35e7cfe89e jtag server now reporting ID 2021-08-10 22:46:00 +08:00
bunnie
bdd70f9502 stash to figure out build issue 2021-08-10 22:41:22 +08:00
bunnie
04dc6a4c2b refactor engine-sha512 to be named sha2
this makes patch.crates-io much easier to debug, we now
have the hardware hasher working in all the places i expect it to.
2021-08-09 04:40:33 +08:00
Sean Cross
207662414e locales: generate locales as part of normal build
This makes `locales` its own package. As a result, the system will not
rebuild the locales unless necessary.

Additionally, the `generate-locales` command has been updated to simply
force a rebuild of this file in order to keep the previous behavior.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-04 12:19:06 +08:00
Sean Cross
183caae75d Merge branch 'main' of github.com:betrusted-io/xous-core 2021-08-03 17:59:36 +08:00
Sean Cross
3645bea9c9 xtask: fix cargo libstd-test
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-03 17:45:40 +08:00
bunnie
68ea69c2ed Merge branch 'bunnie-dev' into main 2021-08-03 17:22:10 +08:00
Sean Cross
987434433e xtask: support building under riscv32imac-unknown-xous-elf
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-03 11:26:15 +08:00
Sean Cross
45008ebe36 xtask: simplify key file path extraction
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-02 11:08:52 +08:00
bunnie
b6c443145c extend modal functions; refactor status into its own server 2021-07-28 01:01:39 +08:00
bunnie
806451fa0f add locale docs and move locale def file to an autogen-friendly location
CI will need to do an auto-build to generate different locales
for users to download/install.
2021-07-26 00:05:10 +08:00
bunnie
2b57e1c4f8 add static localization 2021-07-25 23:46:03 +08:00
bunnie
5280d232e5 figuring out which way is up on the RootKeys implementation 2021-07-21 19:47:09 +08:00
bunnie
ce18716b88 add the boilerplate for the keys server 2021-07-20 01:59:52 +08:00
bunnie
01d3455a16 Merge branch 'main' into bunnie-dev 2021-07-18 12:33:16 +08:00
Sean Cross
31748ab4d4 xtask: fix build warnings due to renode refactor
The Renode refactor didn't propagate the `debug` flag. Additionally, the
`TryInto` import is no longer used.

Fix both warnings.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-15 16:44:55 +08:00
Sean Cross
b78073d7ed xtask: use rust to sign binaries, sign Renode images
This removes Python as a dependency. Additionally, Renode images are now
signed.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-15 16:41:56 +08:00
bunnie
ef93196cfc stash commit to fix a bootloader issue 2021-07-13 22:28:46 +08:00
bunnie
5d62af49a5 simple signature checks in the bootloader now
checks xous.img as a single blob before accepting it.
2021-07-12 17:16:22 +08:00
bunnie
2b19f31da9 set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +08:00
bunnie
16a746aede remove some warnings in xtask 2021-07-11 04:14:59 +08:00
bunnie
1949c1bbc9 a semblance of sanity, finally 2021-07-09 23:01:50 +08:00
bunnie
1b5d4bd79b push of spinor changes to validate l2cache 2021-07-05 00:08:58 +08:00
bunnie
674faa46d9 button up after debugging the ed25519 issue 2021-06-29 23:46:15 +08:00
bunnie
c880eda822 commit renode changes 2021-06-29 00:51:52 +08:00
bunnie
0bad1ad755 isolate a potential compiler bug 2021-06-29 00:10:46 +08:00
bunnie
7dfa77de11 Merge branch 'bunnie-dev' into main 2021-06-27 03:19:50 +08:00
Sean Cross
b1e949c4c4 xtask: add libstd-test routine
This routine takes a list of binaries to include in the resulting image.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-23 17:54:04 +08:00
bunnie
5d21ef0c76 beginnings of the curve25519 accelerator engine core driver
the engine-25519 server just takes microcode jobs and runs them
on the curve25519 accelerator engine.

all the fancy crypto stuff comes from other crates, which will
be filled in later.
2021-06-22 01:48:51 +08:00
bunnie
3664ff6718 clean up keyboard event handling so the GAM is the gateway server
this allows the GAM to handle authentication for listening requests.
2021-06-17 01:12:25 +08:00
bunnie
4b1495a8ef change cargo xtask run to something that fails 2021-06-16 17:51:02 +08:00
bunnie
14f8685168 update xtask to invoke urandomtest 2021-06-11 16:33:45 +08:00
bunnie
bbfe0fb605 Merge remote-tracking branch 'betrusted/aes' into bunnie-dev 2021-06-02 14:49:11 +08:00
bunnie
fadc9c29ab Merge remote-tracking branch 'origin/master' into bunnie-dev 2021-06-02 03:59:25 +08:00
Sean Cross
837885798d xtask: add renode-aes-test as a target
This generates an image that allows for testing AES.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:02:15 +08:00
bunnie
7f62851671 update xtask to be consistent with update docs 2021-05-25 05:29:00 +08:00
Sean Cross
3575a00f25 xtask: regenerate repl file as part of renode-image
Use `svd2repl` to generate the Renode platform file.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:26:18 +08:00
bunnie
7d9e84c456 initial frameworks around sha512 acceleration integration 2021-05-19 00:39:03 +08:00
bunnie
4d0de65f49 fix benchmark package issue 2021-05-16 01:23:45 +08:00
bunnie
ea06df6879 test case for >1 page lends not working 2021-05-05 01:37:25 +08:00
bunnie
f558f75116 add the skeleton for the codec server 2021-05-03 00:20:51 +08:00
bunnie
85d78439d7 fcc-agent is now deprecated 2021-05-01 21:01:46 +08:00
bunnie
6e1e74ed84 a minimal but successful touch-and-go suspend/resume cycle 2021-04-29 16:37:43 +08:00
bunnie
88f5199ba2 refactor os_timer to be integral to susres 2021-04-28 17:24:08 +08:00
bunnie
f76358e716 Merge branch 'bunnie-dev' 2021-04-27 18:55:57 +08:00
bunnie
d62f936454 start fleshing out the susres server 2021-04-27 02:53:22 +08:00
bunnie
6a703def63 commit the latest SVD files and other minor changes 2021-04-27 00:53:08 +08:00
Sean Cross
fe86d5b9e3 xtask: fix new path to soc svd file
The soc.svd file has now moved under `emulation/soc/` instead of just
under `emulation/`, due to the fact that we now have an EC to emulate as
well.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-26 09:29:54 +08:00
bunnie
2e6247838c add suspend resume test configuration 2021-04-22 18:09:17 +08:00
bunnie
ec2a87e306 make TRNG testing variants easier to configure 2021-04-20 03:21:53 +08:00
bunnie
9f9575fdd8 refine trng-tester configuration 2021-04-19 04:54:32 +08:00
bunnie
995ebdccc5 update trng tester 2021-04-19 03:47:42 +08:00
bunnie
75295485a7 fix RTC callbacks 2021-04-14 02:58:22 +08:00
bunnie
5a6956d6de initial cut of test 2021-04-13 05:10:00 +08:00
bunnie
f15266c070 callback test coding 2021-04-12 13:32:00 +08:00
bunnie
e7e10a0ec9 commit again for debugging 2021-04-09 00:29:53 +08:00
bunnie
45c90659e5 rtc first draft 2021-04-08 02:30:57 +08:00
bunnie
c55d1d860e set hosted mode default target to the full version 2021-04-07 00:53:59 +08:00
bunnie
4e8598216d Merge branch 'xous-ipc-refactor' 2021-04-07 00:50:55 +08:00
bunnie
35353f38dd bring benchmarks to v0.8 and record benchmark results 2021-04-07 00:45:11 +08:00
bunnie
ea43e236ee refactor fcc-agent for v0.8 2021-04-06 23:09:33 +08:00
bunnie
d83b7de12d update renode to minimal for test cases 2021-04-06 01:55:52 +08:00
bunnie
9ba2fb134c refactor most major modules, but Xous now crashes 2021-04-05 23:50:00 +08:00
bunnie
4a504943dc part-way through the GAM refactor 2021-04-05 05:47:17 +08:00
bunnie
75a6f779f8 initial refactor of ime-frontend 2021-04-05 03:39:14 +08:00
bunnie
8fed353a83 refactor of the imef interface part 1 2021-04-05 00:30:46 +08:00
bunnie
bd54b48f8f initial cut of a major refactor of the keyboard server
- debounce is now in hardware (requires latest version of betrusted-soc)
- key events originate from an interrupt context and propagate through
  to the listeners as messages
- attempt to reduce the use of heapless::Vec; there is an awkward
interposer step still between the array methodology and the Vec
methodology

I'm not sure if trying to eliminate the Vec is a good idea,
because...I'm finding that we're just re-implementing Vec, but
much worse.

However, for the purpose of movement of data across
IPC boundaries, it's more robust to use primitive types,
because serializing Vec is not possible without either
forking the heapless crate to derive the rkyv traits; or, we'd
have to do some probably quite dangerous conversion of the Vec
to a raw slice which also doesn't feel nice.
2021-04-04 01:42:30 +08:00
bunnie
dea8cb8388 fix typos and start on the graphics server 2021-04-02 22:57:02 +08:00
bunnie
25dc27f2f7 add drop implementation to servers 2021-04-02 22:01:40 +08:00
bunnie
d6fd42b593 COM refactor of callbacks 2021-04-02 16:40:17 +08:00
bunnie
d21c0fa3e7 refactor of COM
this was much harder than I liked.
2021-04-02 05:43:47 +08:00
bunnie
dc2519c5ef trying out new API names 2021-04-01 03:47:10 +08:00
bunnie
e889765caf refactor the Ticktimer API. 2021-03-28 18:14:41 +08:00
bunnie
5075313a19 adjust minimal image 2021-03-26 18:15:34 +08:00
Sean Cross
fa23a7fa21 xtask: build renode-test with rkyv-test-*
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:17:20 +08:00
bunnie
0940894b27 add a minimal target 2021-03-25 02:40:00 +08:00
bunnie
bb3d96de27 Merge branch 'master' of https://github.com/betrusted-io/xous-core into HEAD 2021-03-25 02:37:58 +08:00
bunnie
8763cf3133 stash before merge 2021-03-24 22:48:23 +08:00
Sean Cross
2d7dda93a9 kernel-test: add testcase for ticktimer/kernel bustage
The ticktimer server breaks spectacularly with this.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-24 12:51:06 +08:00
Sean Cross
751dc8ee3a kernel-test: add test for ticktimer-server
This test is an attempt to fix `sleep_ms()`.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-18 20:10:58 +08:00
bunnie
835bee2c75 lay in foundations to support the sleep function 2021-03-11 01:45:54 +08:00
Sean Cross
7271e54f2f xtask: build packages in parallel
This speeds up rebuilds where nothing has changed.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-10 09:48:20 +08:00
bunnie
b5411851fd rudimentary shellchat -- commit for help on debug Move message 2021-03-09 03:52:39 +08:00
bunnie
2b768e9b86 fix warnings in initial API 2021-03-03 23:27:30 +08:00
bunnie
e62256b3df clean up hosted mode warnings 2021-03-03 22:50:46 +08:00
bunnie
50b521266f Merge remote-tracking branch 'origin/hardware' into hardware 2021-03-03 22:09:57 +08:00
bunnie
b04e57f5a4 prepare for a merg 2021-03-03 22:09:45 +08:00
Sean Cross
0c6cb9135e services: add kernel-test
This was used to demonstrate the message passing bug.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-03 21:22:26 +08:00
bunnie
8f809c2a51 start layering in the IME front end and prediction APIs 2021-03-03 14:53:33 +08:00
bunnie
9804290854 add some primers to the status loop
this helps the screen-up time appear faster, so we aren't
waiting for a full poll interval for new data to appear before
the system apears to be powered on
2021-03-02 21:57:52 +08:00
bunnie
c9d7b1c504 add parsing for the <constants> extensions most recently added into Litex 2021-03-02 02:05:34 +08:00
bunnie
70aa5b792b check in for inspection 2021-03-01 14:40:39 +08:00
bunnie
bee1f796ee add rounded rectangle drawing 2021-03-01 01:49:22 +08:00
bunnie
2744bf5678 fix warnings 2021-02-27 15:53:23 +08:00
bunnie
0dc40f4185 attempt to separate fontmaps and loader out of kernel 2021-02-27 02:12:19 +08:00
bunnie
cfa63cb574 integrate latest blitstr (v0.5.0) 2021-02-26 05:01:20 +08:00
bunnie
463e2ad77d fixup GAM APIs to latest rkyv standard, fix drawable computation 2021-02-26 03:37:48 +08:00
bunnie
6528bc77d4 refactor GAM to use rkyv 2021-02-19 04:02:29 +08:00
Sean Cross
1394e1c7d5 xtask: use hw_pkgs to build renode image
This ensures the renode image has the same set of packages as hardware.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-16 20:25:08 +08:00
bunnie
7e0902344c move XousBuffer to xous-rs 2021-02-13 01:42:31 +08:00
bunnie
9f79367d1c Merge branch 'hardware-rkyv' into hardware 2021-02-12 01:56:50 +08:00
bunnie
24e7885779 change out hw-image servers for rkyv testing 2021-02-12 01:51:42 +08:00
Sean Cross
6162284d76 xtask: add missing programs to renode_image
These were missing from renode_image but were present in hardware.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:21:23 +08:00
bunnie
8ed37a0dcb add API framework for LLIO 2021-01-27 13:33:03 +08:00
bunnie
3cd175fb49 support one-off test images in xtask 2021-01-22 16:40:00 +08:00
bunnie
fb10311fbc run some benchmarks on hosted 2021-01-22 04:25:13 +08:00
bunnie
31e58c3337 add benchmarks. this commit exhibits a mysterious problem with Lookup API 2021-01-22 04:11:02 +08:00
bunnie
53dfda13bf test shell with the usize->u32 changes 2021-01-22 01:36:36 +08:00
bunnie
f247e557e8 now to the point of testing the general message flow in hosted mode 2021-01-19 18:58:57 +08:00
bunnie
cc66c3911a starting to lay out initial framework for the graphical abstraction manager (GAM) 2021-01-17 04:02:08 +08:00
bunnie
8a1991876f add basic TRNG service 2021-01-13 15:04:14 +08:00
bunnie
cd4ea5ed17 make the run variant not break 2021-01-12 04:20:37 +08:00
bunnie
f166073954 first draft of keyboard server 2021-01-11 06:11:15 +08:00
bunnie
4a32baf12f fix SVD sample file issues that are breaking CI 2021-01-09 02:38:02 +08:00
bunnie
a8d31cb7e2 update README and add xous-names into renode image 2021-01-09 02:23:01 +08:00
bunnie
7781749371 Merge branch 'master' of github.com:betrusted-io/xous-core 2021-01-09 02:16:18 +08:00
Sean Cross
b71349f142 xtask: remove xous-names from renode image
This snuck in there from another branch.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-08 11:03:33 +08:00
bunnie
9716eba039 Merge remote-tracking branch 'origin/master' into hardware 2021-01-07 20:34:04 +08:00
Sean Cross
037bbdc430 xtask: emulation: add nameserver to renode image
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 18:51:57 +08:00
bunnie
dcdd33e594 copy svd file to renode emulation every time on build 2021-01-06 22:08:29 +08:00
bunnie
0d869870ae this code works in hosted mode but fails on hardware 2021-01-05 15:48:51 +08:00
bunnie
cce89395f6 test framework for xous-names 2021-01-04 23:34:18 +08:00
bunnie
b7263f7ef0 Merge remote-tracking branch 'origin/master' into hardware 2021-01-04 03:19:23 +08:00
Sean Cross
7b50d00eb8 repo: run cargo fmt
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
bunnie
b9a31f7d99 try to layer in the fcc agent 2020-12-31 19:31:12 +08:00
bunnie
8d36974a86 add trng-tester crate (just the beginning) 2020-12-14 23:30:58 +08:00
bunnie
7488018e22 get wdt mods compiling into xtask run 2020-12-13 02:03:15 +08:00
bunnie
e1c4b702a9 add WDT support to xous-core 2020-12-13 01:54:25 +08:00
bunnie
fa12e513cd inital take at com 2020-11-24 22:45:10 +08:00
Sean Cross
09452a5ee8 xtask: remove unused CsvFile option
We don't use csv files anymore.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-15 12:00:09 +08:00
Sean Cross
4e55967abc xtask: use renode svd instead of csv
The CSV is no longer used, because it is not in sync with the SVD
anymore. The SVD file now includes everything we need, so the CSV is
redundant.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-15 11:58:44 +08:00
bunnie
ac4d79ea68 logging server bringup 2020-10-14 23:01:57 +08:00
bunnie
d5668be9b6 Merge branch 'master' of https://github.com/betrusted-io/xous-core into ticktimer 2020-10-13 04:15:01 +08:00
Sean Cross
5e4c702c02 xtask: fix renode build
This properly sets the environment variable required for UTRA.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-12 22:25:55 +08:00
bunnie
98f648f30f attempt to add a ticktimer server 2020-10-12 19:08:16 +08:00
bunnie
a397981355 change references to "ci" to "hw-image" 2020-10-06 00:57:26 +08:00
Sean Cross
53b4918c54 xtask: create ci command that builds xous.img
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 12:25:32 +08:00
Sean Cross
eb97fcf9fb xtask: add ci command
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 11:59:48 +08:00
Sean Cross
019d520b26 xtask: print message when building the kernel
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-30 17:54:58 +08:00