Commit graph

10340 commits

Author SHA1 Message Date
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
c7081ea944 Merge branch 'bunnie-dev' into main 2022-01-14 15:28:47 +08:00
bunnie
4f9374e860 add enhanced debugging to the COM for wf200 2022-01-14 15:27:24 +08:00
bunnie
a4bb889a5d update wlan status to a binary version with more detailed output 2022-01-14 02:23:57 +08:00
bunnie
0ba8650731 refactor SSID reporting
later on we'll have to add some UX around this but for now
the command line stuff is a bit nicer.
2022-01-13 21:12:14 +08:00
bunnie
c2bd695167 fix uniformity issue in remapping random numbers for deface op 2022-01-12 14:53:00 +08:00
bunnie
69eefb3e64 add a reboot command to the main menu 2022-01-12 14:00:31 +08:00
bunnie
898fd42bc5 Merge branch 'bunnie-dev' into main 2022-01-12 02:33:43 +08:00
bunnie
f53f86077d add a blank check step before issuing a sector erase
this should significantly speed up the initial on-boarding
for first-time users
2022-01-12 02:33:09 +08:00
bunnie
837b2d5e9b Merge branch 'bunnie-dev' into main 2022-01-12 02:05:07 +08:00
bunnie
a8d7c7e9e2 cleann up the oqc test 2022-01-12 02:01:33 +08:00
bunnie
c43e31c500 fixing some bugs on oqc test.
there's an issue with the modals that has to be fixed next...
2022-01-11 22:34:45 +08:00
bunnie
5c32c9db25 Merge branch 'bunnie-dev' into main 2022-01-11 18:29:35 +08:00
bunnie
f464e34eef debug the test oqc integration 2022-01-11 18:29:12 +08:00
bunnie
cbe7c0ce83 remove the oqc_test separate server 2022-01-11 17:26:29 +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
9a86685e8b remove the now defunct RTC service crate 2022-01-11 16:21:04 +08:00
bunnie
b161b021fe stop pump updates while we're doing the RTC setting
The RTC set dialog box is blocking, the pump will eventually
lock up the system if we don't stop it.

nb: ~200k saved in RAM with the refactor
2022-01-11 16:19:31 +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
49110a9176 add a comment about some directives 2022-01-11 12:16:25 +08:00
bunnie
994e3d7cfb refactor llio crate (phase 1): organize files into sub-systems 2022-01-11 12:02:27 +08:00
bunnie
74caa1067d Merge branch 'bunnie-dev' into main 2022-01-10 19:03:37 +08:00
bunnie
4561336ebd try to fix the CI test routine 2022-01-10 19:03:20 +08:00
bunnie
f9cc193a53 Merge branch 'bunnie-dev' into main 2022-01-10 17:13:53 +08:00
bunnie
eb0c1c4377 fix some hosted mode brokeness that came with pinning crates
the rand api was downgraded to be in line with the ed25519 crate
which removed some "modern" conveniences. Small price to pay for
less code to review.
2022-01-10 17:13:00 +08:00
bunnie
7f8d4ba63e Merge branch 'bunnie-dev' into main 2022-01-10 16:50:36 +08:00
bunnie
b3788a54af clarify the dependency policy 2022-01-10 16:50:10 +08:00
bunnie
9c2adb2c57 Merge branch 'bunnie-dev' into main 2022-01-10 16:35:56 +08:00
bunnie
995915ed4e nail down a couple more dependencies, and add a policy note to Cargo.toml
Each Cargo.toml now includes a comment which remnids maintainers
of the dependency policy for Xous (that is, nail down every dependency
to the minor number).
2022-01-10 15:54:27 +08:00
bunnie
fec180890b nail down dependencies in the related build toolchain flow
these are secondary attack surfaces -- code that isn't directly
in the kernel, but involved in the manipulation, handling, grooming
and preparation of source and binary files
2022-01-10 15:49:30 +08:00
bunnie
dd943c5416 pin down versions and harmonize versions across servers
Versions are pinned down to the minor number. Yes, this means that
we don't automatically pull in features and bug updates from crates.io,
but it also means we don't pull in new attack surfaces and code that
hasn't been tested or reviewed. I'd like this process to be very deliberate
and not automatic for Xous.

The `rand` crate is almost pinned down to a single version, except
for an odd dependency that's pulled in by hosted mode that depends
on rand 0.8.4 via a subordinate dependency via the `tempfile` crate.
Pondering if it's worth it to try and eliminate that, because the
0.8.4 version doesn't get compiled into any version that touches
real hardware. It just makes it harder to analyze the Cargo.lock
file, mostly. I think I'll leave it as-is.
2022-01-10 15:39:55 +08:00
bunnie
d06d58b132 harmonize rand crate to 0.7.4 (version used by ed25519-dalek) 2022-01-10 15:03:23 +08:00
bunnie
4819703d20 trim unnecessary sha3 dependency 2022-01-10 14:59:41 +08:00
bunnie
b275b1d3c2 move some low-level hardware facing services to "Late" suspend status
So far it's been no problem to suspend these in any order, but as
more services come to rely upon them it's better if they suspend after
any client applications have been suspended.
2022-01-10 13:48:49 +08:00
bunnie
c5fe1bc99b add sequencing to suspend/resume order of operations
this is necessary because we want to make sure that the SPINOR
service does not shut down before the PDDB service finishes syncing
its disks.
2022-01-10 13:45:56 +08:00
bunnie
780759259c Merge branch 'bunnie-dev' into main 2022-01-10 01:22:53 +08:00
bunnie
b3b6a9e8ec fix error in new length constant 2022-01-10 01:22:33 +08:00
bunnie
8d9adabb7c Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-01-10 00:48:43 +08:00
bunnie
3750ede2d9 Merge branch 'bunnie-dev' into main 2022-01-10 00:48:25 +08:00
bunnie
9a34de0065 rework flash memory locs; add command for re-creating a factory new device 2022-01-09 22:33:36 +08:00
bunnie
8a34d3706a
Update flash.md 2022-01-09 18:00:38 +08:00
bunnie
1950492375 Merge branch 'bunnie-dev' into main 2022-01-09 14:07:47 +08:00
bunnie
744d6ae091 reduce system workload checking network connection state
an activity_interval Arc::AtomicU32 is shared between the
connection manager thread and the main net thread. Every
time there is a packet received, the activity interval is
bumped to 0. If two interval polls pass, then a more
expensive wlan_status() call is issued to the COM to see
if we're really still connected.

On a typcial network, the ARP traffic alone is sufficient
to keep the status timeout from happening. The status interval
is currently set at slightly over 10 seconds, so if you fall
off the network entirely, about 20 seconds will pass before
an automatic rejoin is issued. This can be adjusted by tuning
the POLL_INTERVAL_MS variable inside the net service's
connection_manager.rs module.
2022-01-09 14:03:20 +08:00
bunnie
dd18d94a03 e2e demo of pddb working now, we can store an ssid/password pair...finally. 2022-01-09 13:12:36 +08:00
bunnie
7aa2c7b054 a very basic e2e pddb application that tries to restore a network connection
lots of problems to solve still, but let's pick that up on the refactor
stage -- for now we want to get some evidence that the pddb API is
workable.
2022-01-09 01:29:28 +08:00
bunnie
5523d81669 add commands to check mount status and to initiate mount manually 2022-01-08 23:33:10 +08:00
bunnie
ea3b78c18c Merge branch 'bunnie-dev' into main 2022-01-08 01:06:17 +08:00
bunnie
19f95e6bab fix kernel test build 2022-01-08 01:00:20 +08:00
bunnie
0a4c77520d fix test compilation issue 2022-01-08 00:46:59 +08:00