Commit graph

1905 commits

Author SHA1 Message Date
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
491e3e5429 remove stale referecne from debugging bbram 2021-08-22 02:31:52 +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
b4a85318c1 fix up README.md to match today's release 2021-08-20 17:52:18 +08:00
Sean Cross
fea1961812 RELEASE-0.9: add section on Remode
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-20 17:39:17 +08:00
Sean Cross
a151fb0815 README: remove an unnecessary step from renode
The Renode steps no longer require you to install the -none target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-20 15:55:35 +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
d9cf901ae2 update precursors to v0.9.0 SoC build 2021-08-20 02:24:45 +08:00
bunnie
983aca8d70 note default branch change 2021-08-20 01:29:31 +08:00
bunnie
e7bbf209d0 add back-link to 0.8 for API docs 2021-08-20 01:28:04 +08:00
bunnie
2a37f616d3 release 0.9 notes 2021-08-20 01:25:23 +08:00
bunnie
693ec91f0e finalize formatting run 2021-08-20 00:26:16 +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
3f679bd1e9 alphebetize the rustfmt list 2021-08-20 00:06:17 +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
49c94f63d4 Merge branch 'main' into bunnie-dev 2021-08-19 13:41:55 +08:00
Sean Cross
1e2f31a753 Cargo: add lockfile settings for xtask
xtask now includes libcurl and unzip in order to be able to extract the
toolchain.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-19 11:58:55 +08: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
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
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
66a68f1757 emulation: use riscv32imac-unknown-xous-elf loader
Use the new target for the loader.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:23:09 +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
83f88f6fde xous: hosted: improve performance by removing a copy
Remove one copy step when receiving packets. This should improve
performance of Hosted mode by around 1.5x.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:22:07 +08:00
Sean Cross
7dee05082c xous: syscall: add function to modify memory ptr
Add a function to modify the pointer of a MemoryRange. This is used by
`hosted` mode in order to modify memory pointers when we receive them
from the remote client.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:21:19 +08:00
Sean Cross
f5de6551bc loader: cargo: load packages that work with xous target
Load versions of the dalek crates that support the xous target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:19:41 +08:00
Sean Cross
c9c02b5d93 loader: initial riscv32imac-unknown-xous compat
Initial changes required to get the loader building for the
`riscv32imac-unknown-xous-elf` target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:18:56 +08:00
Sean Cross
f952d0d9fe loader: cargo: add support for -xous- target_os
Add link commands to the cargo config so that the loader can be built
for the `riscv32imac-unknown-xous-elf` target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:17:53 +08:00
Sean Cross
184274782c kernel: config: temporarily remove support for lto
LTO is currently broken with Rust 1.54.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:16:13 +08:00
Sean Cross
bb0339652a kernel: use local copy of riscv crate
A local copy of the `riscv` crate is used in order to get support for
the `xous` target_os.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:15:29 +08:00
Sean Cross
19653e9c53 kernel: compatibility with riscv32imac-unknown-xous-elf
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:14:24 +08:00
Sean Cross
3c10127ed4 imports: riscv: add version with -xous support
Add a local version of the `riscv` crate with support for `-xous-` as an
OS. This allows us to build our kernel using
`riscv32imac-unknown-xous-elf` as a target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-18 18:13:06 +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