bunnie
4a57adac3d
add battery check, version print to oqc test
2021-09-20 00:05:21 +08:00
bunnie
87228ad747
basically working OQC test
2021-09-19 01:06:21 +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
029c845359
add ssid, suspend/resume test to the OQC test routine; comment out keyboard
...
keyboard routine still pending fixing a possible bug in xous allocator
2021-09-16 03:54:35 +08:00
bunnie
ce026e661d
clear warning from previous mux fix
2021-09-16 03:54:19 +08:00
bunnie
4882016d08
add a graphics test routine for OQC
...
invoked via the GAM, callable exactly once per boot for up
to 60 seconds.
2021-09-16 01:00:22 +08:00
bunnie
f0dd512d7d
bump sha2 version number so it matches what's on crates.io (for clean patching)
2021-09-15 18:53:11 +08:00
bunnie
8edb02ba40
try a version using scalars, still crashes
2021-09-15 18:29:27 +08:00
bunnie
8ce0e8c789
intermediate checkpoint of failing memory-passing for keyrawstates
2021-09-15 17:59:13 +08:00
bunnie
dfc6444d78
add killkey test to the self test suite
2021-09-14 20:15:03 +08:00
bunnie
3f1ba5e279
add com trng seed, uptime on EC; EC reset test commands
2021-09-13 23:28:54 +08:00
bunnie
d0a83b6865
add backlight test
2021-09-11 22:53:20 +08:00
bunnie
49919c6123
fix typo in check clause
2021-09-11 18:02:26 +08:00
bunnie
5bff7433a5
add internal vcc measeruments to self test
2021-09-11 18:00:22 +08:00
bunnie
e06188c5fa
add trng module to self-test
2021-09-11 00:16:55 +08:00
bunnie
6eed8deb4c
improve audio testing integration for automation framework
2021-09-10 22:54:23 +08:00
bunnie
3be7204ce6
audio test frameworks initial working cut
2021-09-10 02:56:27 +08:00
bunnie
bd89146967
commit latest formatting changes for test output
2021-09-09 22:32:08 +08:00
bunnie
549912c9d5
add rtc test
2021-09-09 16:55:56 +08:00
bunnie
7ac8b9100d
create a test case for cosine intrinsics
2021-09-08 15:10:54 +08:00
bunnie
0e94725d23
add wycheproof help message
2021-09-06 14:43:19 +08:00
bunnie
01bfc375b2
Merge branch 'main' into bunnie-dev
2021-09-06 14:40:16 +08:00
bunnie
1a55973346
adjustments to self test routines
2021-09-06 14:39:44 +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
bunnie
858a1ed019
beginnings of a factory self-test routine; expand COM functionality
2021-09-05 23:26:07 +08:00
bunnie
c2afa2b09f
fix runs index length that was not pulled in after gateware optimization
2021-08-30 00:30:44 +08:00
bunnie
c3fc3ff23f
add bbram provisioning sequence
2021-08-19 04:22:28 +08:00
bunnie
498f530165
the base layer of the AES oracle is in place for the rootkeys
2021-08-17 04:15:24 +08:00
bunnie
8a82caf2fc
intermediate check-in on rootkeys enclave
2021-08-16 23:35:36 +08:00
Sam Blenny
af25697a6f
Merge remote-tracking branch 'upstream/main' into com-wlan
2021-08-13 23:01:12 +00:00
bunnie
1c447fabef
Merge branch 'jtag-premerge' into main
2021-08-12 01:55:48 +08:00
bunnie
0234b4b22d
add shellchat jtag debug commands
2021-08-11 06:15:23 +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
5113df5eec
Merge branch 'bunnie-dev' into main
...
Use a RefCell to solve the interior mutability issue introduced
by the &mut check introduced on MemoryRanges.
2021-08-10 18:13:33 +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
bunnie
bc6ec8caf4
initial key provisioning demo working
2021-08-07 22:21:49 +08:00
Sam Blenny
8baccc0063
Remove dead code for ip shellchat command
...
This stuff was left over from an old idea that I didn't implement.
Signed-off-by: samblenny
2021-08-06 10:02:30 +00:00
Sean Cross
75fbf173a9
services: fix mutable references via as_slice_mut
...
The function `as_slice_mut()` takes a `MemoryRange` and returns a
mutable slice. Previously, this could be called on a memory range that
was not defined as `mut`.
This will be fixed in `xous-rs` so that `as_slice_mut()` can only be
called on a region that is defined as `mut`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-05 16:55:53 +08:00
bunnie
8b83fb7c65
remove heapless, go to libstd for all collections!!!!
...
*fistpump*
2021-08-04 01:25:32 +08:00
Sean Cross
b86e0a65cd
services: recognize xous as a hardware OS
...
Support `xous` as a valid OS. This allows us to build the entire kernel
under this target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-02 18:11:48 +08:00
bunnie
2714c9eb13
link in some READMEs so that rustdoc pulls them in
...
also add some bread crumbs on the more user-facing APIs to
help beginners out. Need to do a good spring cleaning of the
rustdoc tree, though. looks pretty terrible as it is.
2021-08-01 16:08:27 +08:00
bunnie
d7d052b6ff
refactor ux flow, now on a good footing
2021-07-31 03:27:16 +08:00
bunnie
86a5c34a5b
refactor root-keys to use the latest UX features
...
UX flow for requesting passwords is now more or less complete...
this yak is shaved?
2021-07-29 03:30:03 +08:00
bunnie
8cdf3c148b
clean up warnings before merge to main
2021-07-28 23:58:15 +08:00
bunnie
9ae5feab78
refactor to add helper threads to the UX format; documentation
2021-07-28 17:35:25 +08:00
bunnie
4affdabc73
password modal box now nominally works
2021-07-27 17:30:37 +08:00
bunnie
53f35f9928
intermediate work toward getting the password box going
...
lots of changes, maybe finally getting out of the UX rathole now
that basic localization is in place
2021-07-26 00:51:22 +08:00
Sam Blenny
5c93365acd
implement COM bus txrx for wlan commands
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
803f6d496f
fix passphrase length limit to match WF200 API
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
03ad8bd2e4
add support for wlan commands to com server
...
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
2bbb8d05b9
add ip shellchat command
...
This is for testing out the IP stack: list dhcp info, send pings,
send UDP message, and receive UDP message.
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
e8bdf91cc3
add wlan shell command
...
This is for turning the WF200 wifi radio on and off, setting the
SSID and password, joining an AP, leaving an AP, and checking the
AP connection status.
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
bunnie
e362e2579f
un-break hosted mode
2021-07-18 18:29:24 +08:00
bunnie
d98f296499
fixed ordering bug in spinor driver
...
works now!
2021-07-18 18:02:46 +08:00
bunnie
91fe69ca27
add some real-hardware tests for spinor writes
...
definitely still bugs.
need to sleep on it.
2021-07-18 02:36:31 +08:00
bunnie
8045e0aac8
add the keys command
...
this is the beginning of where key management goes. for now,
all you can do is just turn USB debug on and off.
2021-07-13 00:47:05 +08:00
bunnie
a4f8346c34
reflect the latest fixes to the secure boot process
...
also patch up some issues with sha512 reset and loose
ends on docs and updates
2021-07-13 00:46:31 +08:00
bunnie
1949c1bbc9
a semblance of sanity, finally
2021-07-09 23:01:50 +08:00
bunnie
d846c5ad0e
add a memory stress tester
2021-07-06 01:35:19 +08:00
bunnie
6c697de512
add l2 cache support (suspend/resume flushing)
...
also noted some performance benchmark improvements
2021-07-05 17:05:10 +08:00
bunnie
00be94d913
devboot mode support
2021-07-03 21:08:39 +08:00
bunnie
0bad1ad755
isolate a potential compiler bug
2021-06-29 00:10:46 +08:00
bunnie
8da62390ad
add RFC7748 test vectors for diffie hellman
2021-06-28 19:01:22 +08:00
bunnie
e01676d563
move the montgomery multiply code into the engine server
...
this saves a fairly substantial amount of time marshalling
re-used bits of microcode around on the benchmarks.
2021-06-28 18:41:34 +08:00
bunnie
ee87fd35a8
add hw acceleration for the affine transform on curve25519
2021-06-28 04:43:56 +08:00
bunnie
89b3875bfc
commit before working on acceleration code
2021-06-28 02:33:32 +08:00
bunnie
e2ada8f8fe
attempt to fix up some build system warts
2021-06-28 01:31:43 +08:00
bunnie
e39c2200cd
fix up the build system warts & integration with dalek crates
...
we are at least now only requiring users to use our patched
curve25519-dalek crate, which now builds cleanly in both
xous and std environments, but the higher-level crates can be
directly used from crates.io
2021-06-27 03:07:39 +08:00
bunnie
6efdb7e0db
stash a version with XousEngine25519 traits in case we want it back later
2021-06-27 00:31:15 +08:00
bunnie
9ebd181694
engine25519 core services now working
2021-06-25 19:35:31 +08:00
bunnie
f7874aab94
add in a missing redraw command
2021-06-25 03:38:54 +08:00
bunnie
75dca6bd4c
checkin for a rollback to sanity check some things
2021-06-25 02:09:42 +08:00
bunnie
afa55055ea
add serial console mux setting
2021-06-24 13:52:44 +08:00
bunnie
3b0a4f2bf4
clean up some obvious bugs
...
stuff doesn't crash but also doesn't work
2021-06-24 03:38:32 +08:00
bunnie
ae25142acb
engine25519 doesn't crash on boot, at least.
...
ManagedMemory structure for susres has some issues with large
blocks, so use "heap-allocated" structures
2021-06-24 03:17:32 +08:00
bunnie
96959bfe0d
add version reporting to boot log
2021-06-21 22:18:39 +08:00
bunnie
69a22adee9
menus basically working
2021-06-19 00:25:18 +08:00
bunnie
0f937037e4
just getting to the point of implementing defacement
...
menu now pops up. does nothing, but we can at least
change contexts for the Ux into a different Ux theme.
2021-06-18 16:20:56 +08:00
bunnie
62c9737bbc
tenuous addition of a menu object
...
things don't crash, but...haven't really validated if they work, either!
2021-06-18 04:10:41 +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
356b07dacc
works on "real hardware" but some issues with hosted mode
2021-06-16 17:03:28 +08:00
bunnie
5301f4af20
major refactor of the Ux -- can create, redirect I/O contexts
...
getting ready for Precursor to do more than just one thing.
2021-06-16 04:50:26 +08:00
bunnie
eee9f4e765
refactor xous-names to permit only a fixed number of connections
...
this prevents less trusted processes from connecting to servers
after the kernel initializations are done.
this works so long as we don't have disconnects from the kernel
servers. In order to support disconnects we will also need a
way to re-enumerate the SID to guarantee that we don't have a re-use
problem. But for now, the kernel is not designed with any practical
disconnect mechanism; there is no code that calls the Quit mechanism
on any server.
2021-06-15 17:41:14 +08:00
bunnie
a70b858812
convert to using the urandom interface
2021-06-11 16:29:25 +08:00
bunnie
abbd1574e5
add trng test and management commands
2021-06-08 21:29:23 +08:00
bunnie
b64d610d69
re-org the vex code a bit so it's not as repetative
2021-06-04 02:16:19 +08:00
bunnie
5a153d8fa9
add AES256 vex instructions support
2021-06-04 02:02:44 +08:00
bunnie
b1d027bc52
adding AES native instruction support
2021-06-04 00:49:34 +08:00
bunnie
fadc9c29ab
Merge remote-tracking branch 'origin/master' into bunnie-dev
2021-06-02 03:59:25 +08:00
bunnie
b9f3182bb9
mods for hosted mode to work again
2021-06-02 03:45:15 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
9f3647f3a3
have audio off by default on power-on to save power
2021-06-01 00:44:33 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
25a77ddb19
EC updating seems to work.
2021-05-25 05:13:20 +08:00
bunnie
c483581716
debugging some timing issues
2021-05-25 02:53:24 +08:00
bunnie
7529628053
partial progress on EC updater
2021-05-24 04:34:50 +08:00
bunnie
58edcc56f2
sha512 tests fully implemented, working through sus/res
...
note: sha512 will fail if a suspend is forced upon it!! but
it will vociferously complain if this happens.
2021-05-21 15:56:58 +08:00
bunnie
5526bc4100
add hardware support for sha512/256
2021-05-21 04:35:01 +08:00
bunnie
21a5ddb40f
sha512 hardware acceleration is working, now benchmarking
...
also need to extend hw implementation to sha512/256
2021-05-21 03:15:13 +08:00