Commit graph

279 commits

Author SHA1 Message Date
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
Sean Cross
bd851923cc xtask: add "renode-image-debug"
This enables debug for all Renode projects.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-30 00:37:46 +08:00
Sean Cross
bb4efbe531 xtask: add "debug" command
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-29 20:50:22 +08:00
Sean Cross
81dad453cb renode: add shell back in to the Renode image
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 17:02:02 +08:00
Sean Cross
dfd11f846d hosted: fix hosted builds
We can now run `cargo xtask run` and it will do the right thing.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 13:52:43 +08:00
Sean Cross
9f6d018e20 xtask: remove shell from list of packages
This isn't useful right now.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 12:10:28 +08:00
Sean Cross
8920ab57cf xtask: remove loader, kernel from workspace to fix rebuilds
These packages modify RUSTFLAGS, which causes some packages to be
rebuilt every time. Move them out of the workspace so as to ensure they
don't use the same `target` directory.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 10:51:29 +08:00
Sean Cross
2f1973aef9 xtask: build program loader
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-17 20:01:07 +08:00
Sean Cross
00cff81b35 xtask: renode-image: rename from "image"
This reflects the target output, as well as the help text.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-17 19:48:39 +08:00
Sean Cross
acbcb0cb12 xtask: add cargo xtask command
This command can be used to build a full image.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-17 19:42:39 +08:00