bunnie
a7d8a4c1e0
clear ARP cache on DHCP renew (AP change edge case)
2021-10-17 15:29:45 +08:00
bunnie
665d7d7713
only update net config if it's changed since the last renewal
2021-10-16 00:15:23 +08:00
bunnie
f1296d0dfd
convert route table to use heap not static memory, since we have heap
2021-10-15 15:44:16 +08:00
bunnie
da8987e531
restore power management
2021-10-13 02:10:18 +08:00
bunnie
ef70daf7bb
fix hosted mode build config
2021-10-13 02:07:55 +08:00
bunnie
df9bdce6dc
fix some cosmetic issues
2021-10-13 02:03:12 +08:00
bunnie
ec34b01bd9
pings working with smoltcp (can originate and respond)
2021-10-13 01:57:00 +08:00
bunnie
b93109cad2
cleaning up net event loop, still figuring out APIs and integration
...
currently there is some issue with ARPs not sure where it's breaking,
suspect issue on EC side...
2021-10-11 05:21:01 +08:00
bunnie
26069c023a
intermediate commit trying to trace down how this receive process works.
2021-10-10 21:12:09 +08:00
bunnie
e06d946bcd
simplify error handling code
...
confirmed that ignoring the error on a write is probably what we want --
it will truncate the string
2021-10-10 20:55:54 +08:00
bunnie
5fa8f2a6a3
discard errors on log write
...
this at least removes a panic that crashes processes. it does
mean that some log messages can get silently lost, but this is
better than crashing if the arguments to the logger can't be
parsed for some reason?
2021-10-10 18:32:00 +08:00
bunnie
7a724a15cf
fix permissions
2021-10-10 02:26:31 +08:00
bunnie
61e21cce19
would be helpful to add the devices.rs file
2021-10-10 02:26:15 +08:00
bunnie
c8decc85c2
std::time doesn't exist, make a wrapper around Ticktimer for smoltcp
2021-10-10 02:20:01 +08:00
bunnie
74a3c6df44
disastrous first draft of figuring out how to integrate smoltcp using a ping example.
2021-10-10 01:57:31 +08:00
bunnie
560c6e4197
something packet-oid is coming out of the serial port now?
2021-10-09 02:12:12 +08:00
bunnie
b43eb56346
add some skeleton for a net crate; testing COM interrupts
2021-10-08 20:01:13 +08:00
bunnie
23edeb9b5a
add wlan dhcp to oqc test
2021-10-07 00:57:22 +08:00
bunnie
81653ec94b
wot. how are these changes not being saved.
2021-10-04 17:37:17 +08:00
bunnie
f0c33bc99c
tighten up operator flow for factory tests
2021-10-04 17:25:49 +08:00
bunnie
e4c79a5f47
start to lay out skeleton for pddb
2021-10-04 14:50:30 +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
a629681c59
re-enable the watchdog timer for the master branch
2021-09-25 22:36:35 +08:00
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
74207851ac
don't even include the code to print server ID
2021-09-18 02:22:06 +08:00
bunnie
bdbaba027b
improve drawing performance
...
the trailing update after every event seems redundant now that
the gam is cleaned up
also fix a bug that causes overflow text on tl fitted text
to overflow the drawing region
2021-09-18 02:21:12 +08:00
bunnie
5df4e38caf
add some debug helpers for suspend/resume
2021-09-18 02:19:43 +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
21fb59c4d9
fix incorrect &mut self in library call
2021-09-16 03:53:36 +08:00
bunnie
9aef2eb7b4
fix dirty rectangles on resume
2021-09-16 03:53:04 +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
5c33e84858
fix hosted mode missing audio dummy functions
2021-09-10 22:58:03 +08:00
bunnie
6eed8deb4c
improve audio testing integration for automation framework
2021-09-10 22:54:23 +08:00
bunnie
beed5c395a
add volume control functions to the codec
2021-09-10 22:53:41 +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
ccbe7c479f
improve braille testing flags, make them more consistent
...
i wonder if there isn't a workspace-level way to flip a flag...
2021-09-07 19:11: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
dbab3d2b27
adjust L2 cache flush region to 512k
...
although te cache is only 128k, experiments show that the cache
is not reliably flushed until 512k is written. Not sure why...
2021-08-29 18:28:25 +08:00
bunnie
4c05ee2fe6
patch to fix backspace on console injection
2021-08-29 13:28:06 +08:00
bunnie
f4232a3236
stabilize suspend/resume a bit
...
- introduce wfi backoff during the suspend process
- increase the region of cache flush - seems to improve
stability
- remove some print calls to avoid interference during
the sleeping process
2021-08-29 12:04:20 +08:00
bunnie
e2ce3cad2c
make sure that the power states get set correctly early in the resume process
2021-08-27 15:47:27 +08:00
bunnie
57574495d8
handle case of sleep request before resume is fully completed
2021-08-24 23:35:32 +08:00
bunnie
f5b69a8cef
fix hosted mode
2021-08-24 23:34:33 +08:00
bunnie
3188225030
modularize the layout crate
2021-08-24 19:19:06 +08:00
bunnie
ebf0a02345
a patch for issue #73
...
the problem is that during the computation of the lines, the
cursor isn't wrapping to the next line if the last character
would render "into" the edge of the box. adding a trailing
space to any incoming strings forces the line to wrap.
you can aggravate this condition by typing the following
sentence into the shell:
this is a test of a message that is too long a message
when it fails, it renders
this is a test of a messag
e that is too long a messag
adding the trailing space causes it to render as
this is a test of a messag
e that is too long a messa
ge
which is the desired behavior
2021-08-24 17:58:39 +08:00
bunnie
47fef3c2d0
clean out debug messages and scaffolding
2021-08-24 01:48:30 +08:00
bunnie
387b5d22e5
another fix for issue #75 : llio resume failure
...
Found the following KP on resume. This time it looks like it's
failing in a syscall, during a send_message call. There's no
more visibility into what causes this, so this commit tries to clean
up some loose ends in the resume path that could send messages before
the system is ready. Namely, the console mux call got condensed into
an abridged version that doesn't send log messages (you couldn't see
them anyways...), and the I2C engine now pauses suspend until
the current transaction at hand completes. I suspect it's quite
likely that it's the I2C engine that's causing the issues...
LLIO -> PID 14
Jumping to loader...
PROGRAM HALT: CPU Exception on PID 14: Store page fault of 0x00000000 at 0x0003a02e
Current thread 2:
Thread 2:
PC:0003a02e SP:7ffff170 RA:00036290
GP:00000000 TP:60000000
T0:00000000 T1:000000f0 T2:00000030
T3:00000080 T4:000000f4 T5:ffffffff T6:0000008f
S0:7ffff1d0 S1:7ffff228 S2:00000007 S3:00000007
S4:00000001 S5:00000004 S6:00037996 S7:00010e34
S8:00011548 S9:000101bc S10:7fffff4c S11:0003c000
A0:0000000e A1:00000000 A2:00000004 A3:00000000
A4:00000000 A5:00000000 A6:00000000 A7:00000000
0003a028 <_xous_syscall>:
3a028: 00000073 ecall
3a02c: 4282 lw t0,0(sp)
3a02e: 00a2a023 sw a0,0(t0)
3a032: 00b2a223 sw a1,4(t0)
3a036: 00c2a423 sw a2,8(t0)
3a03a: 00d2a623 sw a3,12(t0)
3a03e: 00e2a823 sw a4,16(t0)
3a042: 00f2aa23 sw a5,20(t0)
3a046: 0102ac23 sw a6,24(t0)
3a04a: 0112ae23 sw a7,28(t0)
3a04e: 8082 ret
0003623c <_ZN4xous7syscall12send_message17h44786a68889a5f1dE>:
pub fn send_message(connection: CID, message: Message) -> core::result::Result<Result, Error> {
3623c: 7175 addi sp,sp,-144
3623e: c706 sw ra,140(sp)
36240: c522 sw s0,136(sp)
36242: c326 sw s1,132(sp)
36244: 84aa mv s1,a0
36246: 4549 li a0,18
crate::arch::syscall(call)
36248: 4214 lw a3,0(a2)
3624a: 4258 lw a4,4(a2)
3624c: 04a10023 sb a0,64(sp)
36250: c2ae sw a1,68(sp)
36252: c4b6 sw a3,72(sp)
36254: c6ba sw a4,76(sp)
36256: 4608 lw a0,8(a2)
36258: 464c lw a1,12(a2)
3625a: 4a14 lw a3,16(a2)
3625c: 4a50 lw a2,20(a2)
3625e: c8aa sw a0,80(sp)
36260: caae sw a1,84(sp)
36262: ccb6 sw a3,88(sp)
36264: ceb2 sw a2,92(sp)
let mut ret = crate::Result::Ok;
36266: d082 sw zero,96(sp)
let args = call.as_args();
36268: 0828 addi a0,sp,24
3626a: 008c addi a1,sp,64
3626c: 00000097 auipc ra,0x0
36270: 8da080e7 jalr -1830(ra) # 35b46 <_ZN4xous7syscall7SysCall7as_args17h7e6c318e8a926fa8E>
args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], &mut ret,
36274: 4562 lw a0,24(sp)
36276: 45f2 lw a1,28(sp)
36278: 5602 lw a2,32(sp)
3627a: 5692 lw a3,36(sp)
3627c: 5722 lw a4,40(sp)
3627e: 57b2 lw a5,44(sp)
36280: 5842 lw a6,48(sp)
36282: 58d2 lw a7,52(sp)
36284: 1080 addi s0,sp,96
_xous_syscall(
36286: c022 sw s0,0(sp)
36288: 00004097 auipc ra,0x4
3628c: da0080e7 jalr -608(ra) # 3a028 <_xous_syscall>
crate::Result::Error(e) => Err(e),
36290: 5586 lw a1,96(sp)
36292: 5516 lw a0,100(sp)
36294: 4605 li a2,1
36296: 00c59563 bne a1,a2,362a0 <_ZN4xous7syscall12send_message17h44786a68889a5f1dE+0x64>
Err(e) => Err(e),
3629a: c0c8 sw a0,4(s1)
2021-08-24 01:39:48 +08:00
bunnie
80cae0d446
intermediate progress on issue #74
...
still not fixed, but things are leaned up.
2021-08-23 05:12:21 +08:00
bunnie
198ef3d0c8
attempt to address issue #75
...
resume failure was seen due to a crash in the engine-25519 process,
in particular, it's crashing on a try_send_message call.
Seems like probably the loader -> kernel transition could have
left some turds in the curve25519 engine, triggering an interrupt
when the system is not yet stable.
this attempts to smooth that over.
2021-08-23 05:07:38 +08:00
bunnie
5042da07fb
refactor wdt to be more reliable and simpler
2021-08-23 05:07:21 +08:00
bunnie
cf747f2844
fix keyboard repeat; accidentally eliminated it during power optimizations
2021-08-22 18:52:33 +08:00
bunnie
24d1bed9f8
restore thread in hosted mode
2021-08-22 17:52:28 +08:00
bunnie
5df8275c00
major refactor of the keyboard server
...
This one gets rid of a ton of awful, crufty code that was pre-std.
It also removes the following features:
- raw scancode reporting: nobody uses them, and they've never been tested.
They can be added in later if someone wants to e.g. build a MAME emulator.
- multi-listener: there is no good reason to do this on a secure system.
multi-listener is basically a keyboard logger. It's better if we just
control it to a single keyboard listener.
2021-08-22 17:13:36 +08:00
bunnie
abd8eadfd8
modify the console behavior to better capture panics on resume
...
switches to kernel console on suspend, keeps it in kernel
console on resume for a few hundred ms before switching back
to our original setting
2021-08-22 14:28:06 +08:00
bunnie
1cd95649df
expand the rootkeys environment sanity check to include the GAM
2021-08-22 02:41:22 +08:00
bunnie
4d3a8c2ced
fix issue #81
...
background clears were going beyond their borders, and also
introducing a new border of their own. fixed.
2021-08-22 02:18:02 +08:00
bunnie
5706c9e525
fix stale comment
2021-08-22 02:17:53 +08:00
bunnie
8d6a9f6b46
add some helper scripts for development
2021-08-22 00:41:22 +08:00
bunnie
20fd465acd
a little more cleanup/re-org
2021-08-22 00:37:53 +08:00
bunnie
ca8bead919
improve organization of the modal crate
2021-08-22 00:29:42 +08:00
bunnie
55c72097db
well, now we know the signtaure check works.
...
gateware was missing the signature area due to a problem in
the preparation script. now fixed.
2021-08-20 04:32:30 +08:00
bunnie
74531517dd
move more crates to standardized formatting
2021-08-20 00:24:16 +08:00
bunnie
d801749e18
move more crates to standardized formatting
2021-08-20 00:19:16 +08:00
bunnie
340048aac9
move more crates into stardized formatting
2021-08-20 00:04:46 +08:00
bunnie
fd4e047d62
move trng into the standardized formatting set with some exceptions
2021-08-20 00:00:15 +08:00
bunnie
6f5be1e4bb
aes-tests into standard formatting
2021-08-19 23:52:54 +08:00
bunnie
7f3d2e3ce3
move xous-names into standard formatting
2021-08-19 23:51:20 +08:00
bunnie
323b2ed261
move more crates into standard formatting
2021-08-19 23:48:53 +08:00
bunnie
c0ce66ee51
fix permissions. windows is sort of stupid and makes everything +x
2021-08-19 23:34:29 +08:00
bunnie
2a2c75f420
add a rustfmt.toml and run rust fmt on the project
...
notably directories written by bunnie are excluded.
2021-08-19 23:33:23 +08:00
bunnie
c44547336b
clean up xtask run warnings
2021-08-19 04:49:23 +08:00
bunnie
c3fc3ff23f
add bbram provisioning sequence
2021-08-19 04:22:28 +08:00
bunnie
2c6abd627d
modularize rootkeys implementation slightly
2021-08-18 00:09:01 +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
a1967a2128
make parblock size parametrizeabel (almost)
...
there's a weird bit where GenericArray needs a U-size (U16)
to match the CONST declaration.
2021-08-17 00:53:26 +08:00
bunnie
eff5d3d9e6
Merge remote-tracking branch 'origin/main' into bunnie-dev
2021-08-17 00:02:59 +08:00
bunnie
944a506f7a
aes ops are there but we need to wrap it in a UX...
2021-08-17 00:02:24 +08:00
bunnie
8a82caf2fc
intermediate check-in on rootkeys enclave
2021-08-16 23:35:36 +08:00
Sean Cross
88b63916e4
graphics-server: run rustfmt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 22:52:06 +08:00
Sean Cross
2a77c38a6a
minifb: remove fps limiter
...
The fps limiter ends up blocking the whole system due to how it limits
the framerate.
If we want to put in a proper rate limiter, we should move the Server
into a different thread and keep just the framebuffer on the main
thread.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 22:51:13 +08:00
bunnie
ccc577f8d7
clean up the update flow
2021-08-16 02:46:54 +08:00
bunnie
353311b987
fix USB update flow
2021-08-15 16:03:18 +08:00
bunnie
a19fc87687
clean up warnings, and fix some hosted mode issues
2021-08-15 00:46:16 +08:00
bunnie
47489dc990
Merge pull request #79 from samblenny/com-wlan
...
Add wlan shellchat command
2021-08-14 23:14:27 +08:00
bunnie
c88c986aea
clean up key signing routines, finally everything "seems" to work
2021-08-14 19:46:42 +08:00
bunnie
b4ee254001
finally, a semblance of sanity...
2021-08-14 16:24:19 +08:00
Sam Blenny
af25697a6f
Merge remote-tracking branch 'upstream/main' into com-wlan
2021-08-13 23:01:12 +00:00
bunnie
ee4368e747
gateware update code in place
2021-08-13 06:00:21 +08:00
bunnie
f334199ee6
commit host mode debugging
2021-08-12 23:01:34 +08:00
bunnie
192109d09a
add some skeletal jtag access routines to rootkeys
2021-08-12 02:32:38 +08:00
bunnie
1c447fabef
Merge branch 'jtag-premerge' into main
2021-08-12 01:55:48 +08:00
bunnie
3d65d7d5ed
add some docnotes on the resolution to the problem
2021-08-12 01:42:58 +08:00
bunnie
aaf16dcf5e
light refactor to the GAM to solve a deadlock issue
...
This is a "no good choice" situation but there is a problem with
progress bars.
You want progress bars to update quickly, and you don't want
to have to context switch out for the entire graphics stack to
come back to you to approve the drawing of your progress bar update.
On the other hand, you don't want to short-circuit all the checks
on drawing stuff to the screen for the sake of progress bars --
right now, there are a number of checks in place to make sure you
can't draw stuff on parts of the screen you shouldn't, to avoid
fake messages and dialog boxes.
I had managed to work out a way to get a dialog box to redraw without
violating the security rules -- each redraw is checked by the defacing
routine -- however, due to the way I was computing the height of
the modal I was causing the dialog box to be resized to its largest
size and then shrunk again to fit the text every iteration. This
in essence also caused the defacement routine to run repeatedly,
which caused the GAM to also issue repeated redraw requests to
the main loop.
These redraw requests can't be serviced until the task being tracked
by the progress bar is completed. As the progress bar gets redrawn
almost a hundred times as part of the task, roughly a hundred messages
arrive in the server's queue before it can handle a single one.
This results in a deadlock situation on completion of the progress
bar, because we want to fire off a message to ourselves to go to
the next state in the Ux routine.
There are a few possible solutions to this:
1. Multi thread the heck out of the routine doing the progress bar,
so the dialog box and the slider are each in their own threads
with their own responders and then the thing doing the computation
is doing some Mutex-guarded-Arc thing.
2. Do some very unsafe bodge to allow sliders to do direct draws
that are unchecked
3. Add a check so that if the size of the dialog box doesn't change,
defacement isn't recomputed and thus redraw messages aren't sent back.
(1) doesn't work for a number of reasons -- in a general case, it's
probably OK, but it does cause a lot more memory usage (and we are
lean on memory); but more importantly, for this use case, our routine
is interacting with CSRs and those don't implement Send so you can't
pass them into a thread via a closure. You could maybe put the dialog
boxes themselves into an Arc Mutex thing but because this routine
was heavily coded to re-use the heavyweight Ux resources this becomes
a bit cumersome to code.
(2) is terrible
(3) ended up working and what is in this commit. I think it's OK
because a progress bar generally doesn't require changing the
size of a window to update its state; therefore the redraw is
deface-safe (since you aren't changing the bounds of what you were
already approved to draw in). Of course, if you have some sort
of a progress bar implementation that changes the size of the messages
reported up top so that the dialog box has to change size over and
over again, you still end up in the deadlock situation!
2021-08-12 01:25:35 +08:00
bunnie
0ccd487f5a
test case now failing, now we can solve the problem faster
2021-08-11 23:22:15 +08:00
Sean Cross
e38366c99a
log-server: refactor to remove rkyv and custom Strings
...
This removes all custom string formatting from the `log-server`.
This should improve performance, because we're not roundtripping between
various archive formats. We instead do a single copy and operate
directly on that buffer. We also now write bytes directly, as opposed to
creating intermediate strings.
This fixes a memory issue that was introduced recently.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-11 10:59:31 +08:00
bunnie
0234b4b22d
add shellchat jtag debug commands
2021-08-11 06:15:23 +08:00
bunnie
799bb6050e
add jtag commands, reboot after burn
2021-08-11 06:15:04 +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
3be03bfb8b
fix debug statements
2021-08-10 22:41:15 +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
4b175df36b
fix multithreaded gateware verification at boot
2021-08-10 05:08:09 +08:00
bunnie
cf3ed935e7
add staging location lockout and xous-names completion checking
2021-08-10 04:30:45 +08:00
bunnie
184bb8405f
getting closer to a finalized flow.
2021-08-10 03:04:03 +08:00
bunnie
352b725f7a
add an abort option to the initialization flow
2021-08-10 02:48:32 +08:00
bunnie
29f7cbe53b
refactor main menu to give options for rootkey operations
2021-08-10 01:54:35 +08:00
bunnie
7edc119472
clean up debug spew
2021-08-09 14:06:54 +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
ec6a3fd1a3
self-signing working, but the patch to use the SHA hash engine seems to be disregarded...
2021-08-09 03:27:43 +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
Sam Blenny
53a0bf2827
Use com_rs::serdes::StringDes for wlan status
...
Switch to using the new com_rs::serdes::StringDes struct for
deserializing the COM protocol response to WLAN_STATUS.
With this change, `wlan status` will receive a string of up to 64
bytes and print it to the shellchat log. Status string formatting
is handled by the betrusted-ec EC firmware code.
Signed-off-by: samblenny
2021-08-06 08:30:16 +00:00
bunnie
86845dd093
fix permissions
2021-08-06 02:34:35 +08:00
bunnie
82aaeb072f
gateware HMAC verification now working!
2021-08-06 02:33:52 +08:00
bunnie
40b671ffac
refactor for sha256 software emulation native in the engine512 crate
2021-08-05 22:07:21 +08: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
7921b0216f
try to improve system stability in debug modes
2021-08-04 22:40:53 +08:00
bunnie
c81a9a7644
whups a buffer wasn't saved during the refactor
2021-08-04 02:05:26 +08:00
bunnie
ef671dd6a3
fix up xous-names and resolve issue #26 thanks to stdlib
...
also frees up about 24k of unused RAM, i'll take it!
2021-08-04 01:59:17 +08:00
bunnie
8b83fb7c65
remove heapless, go to libstd for all collections!!!!
...
*fistpump*
2021-08-04 01:25:32 +08:00
bunnie
34d44ee9e7
start to remove heapless and commit to libstd flow
2021-08-04 00:07:47 +08:00
Sam Blenny
ba4ca72703
Use com_rs::serdes::StringSer for wlan ssid & pass
...
Switch to using the new com_rs::serdes::StringSer struct for
serializing the COM protocol arguments to WLAN_SET_SSID and
WLAN_SET_PASS. The point is to reduce the amount of ad hoc,
untested packing and unpacking.
Signed-off-by: samblenny
2021-08-03 14:04:20 +00:00
bunnie
cabcce9ab2
fix minor issues for std integration
2021-08-03 18:23:04 +08:00
bunnie
68ea69c2ed
Merge branch 'bunnie-dev' into main
2021-08-03 17:22:10 +08:00
bunnie
f638d01289
fix a minor issue in hosted mode
2021-08-03 16:57:54 +08:00
bunnie
01d6c61bb6
commit before merging main stuff
...
want to capture in the libstd improvements before we get too much
version drift
2021-08-03 16:54:42 +08:00
bunnie
07bf3478fa
add the KEYROM patching database for rewriting bitstreams with new keys
...
This code was originally in https://github.com/betrusted-io/rom-locate .
However, the majority of that crate is concerned with creating the database
files necessary for the patching, and it pulls in a lot of dependencies.
Changing hardware targets is considered to be a "huge" change for this
project, so we're pushing the code generator directly into xous-core,
and commiting the generated code directly. The theory is that we would
probably never have to modify this code, since it's so intimately linked
to the hardware; it's a bit like committing an include file with
register offsets for a particular peripheral.
2021-08-03 16:28:17 +08:00
bunnie
d86c78eea8
partial progress on self-signing
2021-08-03 04:58:34 +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
d112d49524
clean up UX work before switching back into crypto work
2021-08-01 17:52:15 +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
e968798fff
fix defacement ordering
2021-08-01 15:06:28 +08:00
bunnie
cfd5e18549
add a progress bar/slider element. getting there.
2021-08-01 04:02:15 +08:00
bunnie
1d3eaa4f9a
fix a stale dialog box message
2021-07-31 04:02:18 +08:00
bunnie
d56e58cb06
ux now to the point of gathering all the required passwords.
2021-07-31 03:54:10 +08:00
bunnie
d7d052b6ff
refactor ux flow, now on a good footing
2021-07-31 03:27:16 +08:00
bunnie
41843db988
intermediate progress on the main UX flow again
...
does not build clean because still deciding on how to handle
UX feedback.
2021-07-30 19:04:02 +08:00
bunnie
151d1ee229
add tests to bcrypt and fix some corner cases
2021-07-30 15:28:47 +08:00
bunnie
919e9e87ff
add bcrypt for password hashing, take care of life cycle of plaintext
2021-07-30 04:07:10 +08:00
bunnie
17be958d87
convert defacement to an XOR
...
this ensures that "all back" dialog boxes that are fake
are also defaced (as opposed to just drawing black, which
would not deface a "fake" dialog box).
2021-07-29 22:13:44 +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
78c0b30382
refactor menu
...
- move it to the status thread, out of the GAM
- this allows us to refactor the menu code into its own module
2021-07-29 01:04:22 +08:00
bunnie
8b992bbe38
fix shorter-than-one-line text fitting problem
...
right character gets cut off, but it's because the cursor is
the top left of the last character. add one character height plus
margin to the shortening, because the margin itself could be 0
in many case.
2021-07-29 01:02:44 +08:00
bunnie
03a9719884
Merge branch 'bunnie-dev' into main
2021-07-28 23:58:46 +08:00
bunnie
8cdf3c148b
clean up warnings before merge to main
2021-07-28 23:58:15 +08:00
bunnie
f5a9cce4ac
fix minor bugs in rtc set routine
2021-07-28 23:15:53 +08:00
bunnie
e60478d8d3
checkbox and radiobox now working.
2021-07-28 23:00:25 +08:00
bunnie
9ae5feab78
refactor to add helper threads to the UX format; documentation
2021-07-28 17:35:25 +08:00
bunnie
9f3615fd3d
extend RTC setting with UX
...
not because this is so important, but because it's a simple
test case that exercises a lot of features.
2021-07-28 04:27:14 +08:00
bunnie
b6c443145c
extend modal functions; refactor status into its own server
2021-07-28 01:01:39 +08:00
bunnie
9b51edfe6c
add backspace (derp)
2021-07-27 18:00:09 +08:00
bunnie
4affdabc73
password modal box now nominally works
2021-07-27 17:30:37 +08:00
bunnie
1a65cd3389
password dialog box basic layout is kind of there
...
a little ugly, but...this has already taken too long.
2021-07-27 04:40:12 +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
bunnie
86e113b678
add locale to front-end; update menus to suppress 🔇 characters automatically
2021-07-26 00:49:33 +08:00
bunnie
2b57e1c4f8
add static localization
2021-07-25 23:46:03 +08:00
Sam Blenny
a614ccffb7
Fix wlan_leave() to send correct verb
...
wlan_leave() was mistakenly sending the verb for WLAN_JOIN.
Signed-off-by: samblenny
2021-07-24 02:51:32 +00:00
bunnie
bc5d262431
Update README.md
2021-07-23 17:19:50 +08:00
bunnie
556f0aaea5
beginnings of a password dialog system
2021-07-22 03:04:16 +08:00
bunnie
5280d232e5
figuring out which way is up on the RootKeys implementation
2021-07-21 19:47:09 +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
ce18716b88
add the boilerplate for the keys server
2021-07-20 01:59:52 +08:00
bunnie
d0804ed330
add some notes about the keys block
2021-07-20 01:46:14 +08: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
7257dbcaef
add cache flush after array write
2021-07-18 16:04:44 +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
904f6f6f38
add more tests
2021-07-17 23:33:57 +08:00
bunnie
168d0fc2cb
start of some basic tests
2021-07-17 17:12:23 +08:00
bunnie
cc0f37a80e
rewrite the spinor services
...
- you can only "patch" regions of memory. caller provides a slice
to the region of data they are patching, so that patches can be
computed by the lib-side code of the server.
- erasing is done with a "patch" with all 0xff's as the write data.
a sequence of pure 0xff for a page does not actually cause a write,
the condition is detected and the write is skipped after an erase.
- patches attempt to be somewhat intelligent and not re-write unchnaged
data, or erase blocks that don't need udpating. However, if a user
submits a "sparse patch" with just a couple bytes modified in a
megabyte region they can expect bad performance. Ideally, in that
scenario, each of the smaller modifications are submitted as
individual calls to the patch function, instead of regurgitating
all the data and hoping that hthe patch function does some intelligent
diffing to be as light-fingered as possible about updating the flash.
In other words, the onus is on the calling server to format
patches intelligently. The patch server does only the simplest,
safest optimizations. You don't want to be shuttling megabytes of
redundant data anyways between servers for many other reasons....!
2021-07-17 02:04:22 +08:00
bunnie
7e7ae82156
pivot spinor implementation
...
realizing some core assumptions were wrong, so, scrapping and
restarting
2021-07-15 23:00:50 +08:00
bunnie
98c0054d7e
some progress on spinor drivers
2021-07-14 00:01:09 +08:00
bunnie
69d34d38dc
Merge branch 'main' into bunnie-dev
2021-07-13 23:11:46 +08:00
bunnie
7cd8b4107a
clear keyboard state vectors on resume
...
if any keys were pressed in the middle of a suspend...
probably, the user didn't care to have them still pressed on resume!
2021-07-13 23:10:10 +08:00
bunnie
ef93196cfc
stash commit to fix a bootloader issue
2021-07-13 22:28:46 +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
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
84a2e9f768
fix status bar so that it redraws out of suspend/resume
...
the bootloader modifies the screen, so all elements must
be redrawn regardless of the pervious state change!
2021-07-11 18:47:19 +08:00
bunnie
1949c1bbc9
a semblance of sanity, finally
2021-07-09 23:01:50 +08:00
bunnie
3ac17a99db
reduce miniruns count to save on gates
2021-07-08 15:58:59 +08:00
bunnie
d846c5ad0e
add a memory stress tester
2021-07-06 01:35:19 +08:00
bunnie
2c6ba2f127
fix brokenness with ptr_meta crate
2021-07-05 17:17:33 +08:00
bunnie
6ee6316beb
Merge branch 'main' into bunnie-dev
2021-07-05 17:12:43 +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
1b5d4bd79b
push of spinor changes to validate l2cache
2021-07-05 00:08:58 +08:00
bunnie
47c1a98d13
fix the aesthetics of the suspend screen
2021-07-03 21:46:58 +08:00
bunnie
00be94d913
devboot mode support
2021-07-03 21:08:39 +08:00
bunnie
3f08dcccee
increase the susres timeout to be less aggressive
...
now that we have auto-clock throttling, fast SR cycles are not
as critical to power saving. They are more a mechanism to be
invoked based on user command, not automatically, and thus it's
not as critical to shut things down ungracefully if the CPU is
heavily loaded.
2021-06-30 19:05:20 +08:00
bunnie
674faa46d9
button up after debugging the ed25519 issue
2021-06-29 23:46:15 +08:00
bunnie
d00717bc17
try to make a simpler example
2021-06-29 01:35:03 +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
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
4a3258f6bd
Merge branch 'bunnie-dev' into main
2021-06-28 01:33:42 +08:00
bunnie
0563bfb8ad
remove local paths so we can push to CI
2021-06-28 01:32:17 +08:00
bunnie
e2ada8f8fe
attempt to fix up some build system warts
2021-06-28 01:31:43 +08:00
bunnie
7dfa77de11
Merge branch 'bunnie-dev' into main
2021-06-27 03:19:50 +08:00
bunnie
906882be71
un-break hosted mode
2021-06-27 03:19:22 +08:00
bunnie
5ab0c0b426
commit a version that should be able to build in CI now
2021-06-27 03:14:50 +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
1d9b474a6d
add in a missing redraw command
2021-06-25 09:09:42 +08:00
bunnie
1d274e4d7c
engine passs tests, but still some issues with power management
2021-06-25 04:40:06 +08:00
bunnie
6825e2e7e8
reset the i2c machine every new transaction
2021-06-25 03:41:42 +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
Sean Cross
a99839ecd6
xous: mark MemoryRange fields as private
...
Mark the private fields in a `MemoryRange` struct as being private. This
allows us to perform operations on the memory range armed with the
knowledge that the entire range is valid and unaliased.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:41:16 +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
16ec932286
refactor to sync/async apis split
2021-06-23 19:12:43 +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
e8dc10977a
clarify trng hosted mode messages, reduce noise
2021-06-21 22:21:40 +08:00
bunnie
96959bfe0d
add version reporting to boot log
2021-06-21 22:18:39 +08:00
bunnie
7ea45b8e5b
fix bias in deface lines
2021-06-21 00:54:18 +08:00
bunnie
58f0c8626f
build a skeleton for engine25519
2021-06-20 18:42:37 +08:00
bunnie
e9499586f1
right. status loop was a mess.
...
classic code rot resulting from adding stuff that was never designed
to be in part of what was originally just a test loop to show
uptime.
cleaned it up, idle CPU load drops from 8% -> 2-3%.
2021-06-20 01:55:57 +08:00
bunnie
f4fbe84b78
improve redraw performance on menu
...
it helps to actually redraw the menu instead of relying
upon status updates to redo the Ux.
2021-06-20 00:44:59 +08:00
bunnie
c0d4cbe81d
make the menu object more generic; demo with emoji selection
2021-06-19 04:44:21 +08:00
bunnie
b5630b74ce
update documentation
2021-06-19 01:36:35 +08:00
bunnie
2b5ba61552
add some useful messages on boot for the hosted mode users
2021-06-19 01:05:42 +08:00
bunnie
69a22adee9
menus basically working
2021-06-19 00:25:18 +08:00
bunnie
aa967a5a17
quiet up hosted mode build warnings
2021-06-18 22:37:08 +08:00
bunnie
769c90764c
menu Ux is now nominally doing something menu-like
2021-06-18 19:35:03 +08:00
bunnie
65cc8dd90c
defacement first-pass seems working
2021-06-18 17:40:00 +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
4b1495a8ef
change cargo xtask run to something that fails
2021-06-16 17:51:02 +08:00
bunnie
03bcf18348
clean up enum-based dispatch for Layouts, pulling in enum_dispatch crate.
2021-06-16 17:41:47 +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
13a8cf7417
it helps to save the file before committing it
2021-06-15 17:46:10 +08:00
bunnie
8cd84d3be0
Merge branch 'bunnie-dev' into ux-refactor
...
incorporates the upstreamed xous-names connection count patch
2021-06-15 17:45:07 +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
4058b56aae
intermediate checkin of UX refactor
2021-06-15 12:50:29 +08:00
bunnie
7e141aba91
commit some API changes before making even more API changes
...
yo dawg i herd u liek API changes so I made API changes to ur API changes
2021-06-14 02:51:41 +08:00
bunnie
0db9ad9e6f
add status bar extension to inform of security states
...
- inverted text indicates a trusted message. policy is enforced in the GAM.
- we don't have a way to lock the USB port yet; but at least now it's communicated.
2021-06-13 04:40:50 +08:00
bunnie
943c07e38b
improve richness of error feedback from trng
2021-06-12 15:12:44 +08:00
bunnie
ad72c0ee7d
update trng test ram locations
...
we're starting to fill up enough memory that we have to relocate
these buffers
2021-06-12 01:49:56 +08:00
bunnie
77cd652a0e
minor bugs/typos in urandomtest path
2021-06-11 16:45:53 +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
2174ab7677
upgrade TRNG with health tests and reporting facilities
2021-06-08 01:22:07 +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
7fa06866dd
remove inappropriate readme
2021-06-03 14:14:25 +08:00
bunnie
d14d987f44
Merge remote-tracking branch 'origin/aes' into bunnie-dev
2021-06-02 14:49:42 +08:00
Sean Cross
f69bbb2085
aes-test: add const versions of some functions
...
These may compile to faster code, but that hasn't been determined.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:36:07 +08:00
Sean Cross
c365fad962
services: start removing some C array -isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:28:20 +08:00
Sean Cross
ee36638b5e
aes-test: rename get_u32_* to get_u32_[bl]e
...
These functions are better described using this nomenclature.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:57:19 +08:00
Sean Cross
27c4444d7c
aes-test: more pruning of C-isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:16 +08:00
Sean Cross
e6816ce982
aes-test: fix AES-128 test vectors
...
Some values got swapped around.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:03 +08:00
Sean Cross
a137ac3848
aes-test: implement looping tests
...
Add looping tests for AES-128, -192, and -256.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:41 +08:00
Sean Cross
668a9c758d
aes-test: implement AES-192
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:28 +08:00
Sean Cross
41e9a70977
aes-test: move low_level_tests to their own mod
...
The low-level tests are useful in validating that the hardware works,
however they generally are not useful. Split them into their own module.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:22:27 +08:00
Sean Cross
7a675cdbc4
aes-test: get decryption working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:15:24 +08:00
Sean Cross
a77e8e32be
aes-test: get initial tests passing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 11:09:05 +08:00
bunnie
77ed8972f6
Merge branch 'aes' into bunnie-dev
2021-06-02 04:08:00 +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
25e6bced00
add power-on utilization reporting
...
there is now an extra field in the status bar that gives
the %'age of time that the clocks are running.
2021-06-02 01:08:31 +08:00
Sean Cross
9638c67aae
aes-test: add test program
...
This is a basic program that exercises the AES core
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:23 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
61f95363fd
mark a commit for the latest build submitted for testing
2021-06-01 15:33:48 +08:00
bunnie
9f3647f3a3
have audio off by default on power-on to save power
2021-06-01 00:44:33 +08:00
bunnie
7c55925926
intermediate check-in on wfi
2021-05-30 23:07:16 +08:00
bunnie
1e2d46366a
attempt to convert sha512 to use xous::wait_event()
...
doesn't work, for some reason the interrupt doesn't want to fire.
cross-check against hardware simulations...
2021-05-30 16:18:23 +08:00
bunnie
0e1464b815
turn off wdt for now
2021-05-30 04:50:54 +08:00
bunnie
afe8d8733d
updates to use the always-on power domain timers
2021-05-30 04:29:03 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
3c0e951803
woo i have a dvorak layout now.
2021-05-29 02:28:54 +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
30aa794f30
add reference counting on connections between servers
...
the connection number is re-used for all objects created
within a process space, so you can't `Drop` the connection
immediately when an object goes out of scope. You have to
make sure all instance of the object go out of scope. This
patch adds reference counting to all the objects so that
the `Drop` function works as intended.
2021-05-21 16:24:30 +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
Sean Cross
b617ed2f32
services: ticktimer-server: explicitly specify opcode numbers
...
These opcode numbers will be baked in at the ABI level for several
libraries such as libstd.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 12:47:02 +08:00
Sean Cross
eb7895d601
xous: add a return code to TerminateProcess
...
As part of this refactor, make `terminate_process()` a divergent call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:01:00 +08:00
bunnie
d44ad58637
sha512 now compiling, at least.
2021-05-20 03:29:26 +08:00
Sean Cross
ca1b9aa35c
log-server: fix implementation of stdout/stderr
...
The buffer was incorrectly sized.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 20:56:32 +08:00
Sean Cross
b13b458b11
log-server: validate operation with libstd
...
This makes minor changes to the panic behavior when operating with a
libstd client.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
bunnie
a8e68bcebe
fix file permissions
2021-05-19 00:39:47 +08:00
bunnie
7d9e84c456
initial frameworks around sha512 acceleration integration
2021-05-19 00:39:03 +08:00
bunnie
3f12b0a69b
add a gyro test command to shellchat
2021-05-16 16:52:27 +08:00
bunnie
5d4e716e1b
add status thread mechanism to check charger state
2021-05-16 16:30:58 +08:00
bunnie
87b6d9b6d7
add backlight commands
2021-05-16 04:29:12 +08:00
bunnie
5328e09a5b
Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev
2021-05-16 03:06:54 +08:00
bunnie
7fb7402fe0
clean up some trailing whitespace
2021-05-16 03:06:11 +08:00
bunnie
d7b64972e9
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-16 02:28:02 +08:00
bunnie
b06e8d2a81
fix issue with datetime on hosted mode on windows
...
just monkey-patch over the call in hosted mode...
2021-05-16 02:26:24 +08:00
bunnie
b36865a893
add some delay on hosted mode for failed name requests
...
helps make startup a bit more orderly on multi-core systems
2021-05-16 01:22:25 +08:00
bunnie
1ba2d004f3
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-12 23:34:13 +08:00
Sean Cross
a8e9492560
log-server: implement opcodes and stdout
...
This allows the log server to support various opcodes, and gives us
stdout as a suitable command.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
bunnie
69576695bf
give a little more time for the suspend
...
right now some graphics ops aren't completing.
2021-05-11 16:51:52 +08:00
Andrew
a68b24ab9c
#41 : Stop iterator when y exceeds one pixel beyond quadrant bounds.
2021-05-09 12:45:24 -07:00
bunnie
4bb355aec6
Merge pull request #66 from betrusted-io/bunnie-dev
...
merge in codec
2021-05-09 01:22:47 +08:00
bunnie
08a86749fe
fix hosted mode bugs
2021-05-09 01:13:16 +08:00
bunnie
a8a35fa434
roll back heapless crate on ime-frontend
2021-05-08 23:55:08 +08:00
bunnie
a24803354c
refactor xous-names to eliminate heapless
...
see issue #30
2021-05-08 23:34:08 +08:00
bunnie
391122823d
refactor heapless version in attempt to debug issue that cropped up in xous-names
...
somehow, updating the toolchain has broken the FnvIndexMap implementation
2021-05-08 18:44:23 +08:00
bunnie
b904a114fe
this commit crashes on boot
2021-05-08 16:40:44 +08:00
bunnie
7f7bdbff88
this will play the long sample. and it works! :)
2021-05-08 03:41:04 +08:00
bunnie
15fc4a6c36
audio working, trying out longer samples
2021-05-08 03:14:14 +08:00
bunnie
fe6b417643
checkpoint
2021-05-08 01:13:30 +08:00
bunnie
46fa8fa01e
extend shellchat to allow for multiple callback registrations
2021-05-07 16:22:06 +08:00
bunnie
b3a60faec2
audio checkpoint
2021-05-07 15:09:51 +08:00
bunnie
7dd66a4c18
playback is mostly working and stable
2021-05-07 05:42:39 +08:00
bunnie
adc7f8e98d
cleanup the i2c API
...
condense async/sync methods into a single one and decide which
is which based upon the presence of an Option<callback>
2021-05-06 14:03:06 +08:00
bunnie
b50aa60591
clean up some visibilities and warnings, get rid of the old, bad API
2021-05-06 05:13:23 +08:00
bunnie
bc82dbd157
transition i2c api on codec, finally found the damn race condition
2021-05-06 05:05:17 +08:00
bunnie
75bb4805b1
clean up RTC server to use the new I2C API
2021-05-06 04:16:31 +08:00
bunnie
b596c40dd6
refactor I2C to have work queue, cleaner (but untested) APIs
2021-05-06 03:40:04 +08:00
bunnie
bb5bc1d212
refactor i2c to break out the i2c machine to a separate server
...
the concurrency issues on I2C are getting hairy, and it was probably a
dubious decision from the start to merge I2C into the LLIO block; but
originally this was motivated by the idea of keeping all the
"miscellaneous slow stuff" in one process to keep the memory footprint
small and make code a bit more readable.
Keeping I2C in the same process space as the LLIO but splitting it
into its own thread and server splits the difference, by giving us
more options to deal with the concurrency, without inflating the size
of the kernel binary and allocating a lot of extra static data.
2021-05-06 00:45:14 +08:00
bunnie
eb75299dd0
Update README.md
2021-05-06 00:44:01 +08:00
bunnie
ea06df6879
test case for >1 page lends not working
2021-05-05 01:37:25 +08:00