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
1424eca689
remove a warning
2021-07-29 00:15:06 +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