Gianguido Sorà
7062c46032
document how everything works a little more
2023-04-24 20:18:57 +02:00
Gianguido Sorà
f95ae6c042
Merge branch 'main' into gsora/sleep-on-lock
2023-04-24 18:38:17 +02:00
Vihaan Jim
3d3b1c9bcf
Working Hello World example
...
The apploader creates a new process (right now just the hello world
app) and then adds an item to the `app-menu' that allows the app to be
run.
2023-04-22 14:31:16 -04:00
Gianguido Sorà
6abf497ac9
services/status: if early sleep flag is present, sleep immediately
...
This flag is only set if the user selects "Lock (reboot)".
This way, the device sleeps immediately after boot, and makes easier turning it on and off in a safe manner.
2023-04-21 18:12:36 +02:00
Gianguido Sorà
523ec0ac80
services/keyboard: remove explicit early settings FLASH access
...
Use early_settings service.
2023-04-21 18:11:04 +02:00
Gianguido Sorà
e6d44795a1
early_settings: first commit
2023-04-21 18:10:36 +02:00
eupn
e80a2072a6
ticktimer: add an extra counter as a base reference for delays
2023-04-21 19:21:25 +04:00
eupn
ab2ea4d313
ticktimer: move some functions into impl modules
...
It will allow implementations to override these functions when desired.
2023-04-21 19:18:59 +04:00
bunnie
7d3f0cd0f8
revert #368
...
this somehow causes the build to break, and I just checked and
I don't see warnings on our build. There must be some config
differences on hosts, but I'm not sure what it is...
2023-04-21 14:16:28 +08:00
bunnie
81fd7571d2
Merge pull request #368 from Foundation-Devices/warnings
...
Fix various warnings
2023-04-21 14:01:40 +08:00
bunnie
96839568f4
Merge branch 'main' into warnings
2023-04-21 14:01:30 +08:00
bunnie
0b9199bc25
fix regression due to #366
...
Boxing the `Codec` object and sticking it on the heap causes
audio playback to hard-lock (no kp, no other explanation given).
Not sure what the issue is, but a cleaner fix is arguably to simply
increase the stack size so the objects can be allocated there.
I suspect the problem may have to do with how the FIFO structures
are memory-mapped and somehow this does not play nice with
Box (there are `unsafe` routines within it).
2023-04-21 13:43:50 +08:00
bunnie
9b7dbcee2a
fix manifest feature issue
2023-04-21 13:43:27 +08:00
Jean-Pierre De Jesus DIAZ
8c62e84284
services/aes-test: update to use the aes crate
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
bc585d0569
xtask: fix aes-test packages
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
792754a7e2
services/aes-test: use single lifetime for AesEcbTest
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
1dbc8700a1
services/aes-test: remove kind field and rename struct
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
dc528c4bc3
services/aes: use cfg(target_arch = riscv32) for vex AES
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
834bc09867
services/aes: always use no_std
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
14e9b4162b
xous-rs: move vex AES functions to services/aes
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:42:18 +02:00
Jean-Pierre De Jesus DIAZ
60a5acbfcf
tools/sign_image: fix warnings
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:41:15 +02:00
Jean-Pierre De Jesus DIAZ
bef83c7a19
services/usb-device-xous: fix keyboard feature warning
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 15:39:37 +02:00
Jean-Pierre De Jesus DIAZ
271689058f
services/aes: remove unused hex-literal dependency
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 14:15:01 +02:00
Jean-Pierre De Jesus DIAZ
83d04ad6ef
services/aes: remove reference to missing hazmat module
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-20 14:14:00 +02:00
Sean Cross
fd5f280e0c
Merge pull request #366 from betrusted-io/rust-1.69.0-fixes
...
Rust 1.69.0 fixes
2023-04-20 17:21:45 +08:00
Sean Cross
5e5cc9352b
services: aes: fix () warnings on vex
...
Rust 1.69 adds more warnings on excess punctuation. Remove this to clear
up the warning.
Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-20 13:14:36 +08:00
Sean Cross
ef077ed7de
codec: place codec object into heap
...
The codec object contains a lot of data including a `FrameRing` buffer
as well as some other services. With the latest version of Rust, this
has grown large and no longer fits onto the stack. As a result, it
crashes with a stack overflow immediately upon boot.
Move the Codec onto the heap. This frees up stack and allows it to run
under Rust 1.69.0.
Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-20 13:06:33 +08:00
Sean Cross
97da54437e
kernel: allow debug of crashed processes
...
When a process crashes, report this in the kernel console and offer to
attach a debugger.
Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-20 13:06:02 +08:00
bunnie
5206da5296
bump release notes
2023-04-17 14:28:58 +08:00
bunnie
fa8ace0771
reduce debug noise
2023-04-17 03:59:47 +08:00
bunnie
f6f3e7a658
Merge pull request #365 from betrusted-io/usb-serial
...
USB serial support (console and HW TRNG modes)
2023-04-17 03:50:48 +08:00
bunnie
1f03977084
bump lockfile
2023-04-17 03:48:17 +08:00
bunnie
814be033dc
add HW TRNG serial mode; simplify console mode calls
2023-04-17 03:47:48 +08:00
bunnie
f15e3920cb
add "eager" USB serial sending of data; enables use as HW TRNG serial dongle
2023-04-17 03:47:15 +08:00
bunnie
83107035d4
refactor TRNG test mode
...
instead of using statically compiled parameters, we now have
a dynamically selected test mode. In the "Cprng" mode we can
use this also to extract randomness for e.g. use as a HW TRNG
USB source.
2023-04-17 03:46:08 +08:00
bunnie
5d596c2e00
add some code to remind myself about certain guarantees
2023-04-17 03:42:27 +08:00
bunnie
a105bcb73c
these changes were not supposed to be committed
2023-04-16 02:38:09 +08:00
bunnie
6c1769328a
bump lockfile
2023-04-16 02:37:28 +08:00
bunnie
a6c85fb527
fix hosted mode
2023-04-16 02:37:21 +08:00
bunnie
1392fdcf33
bump pins for updated log API
2023-04-16 02:27:37 +08:00
bunnie
911da2b92a
sync to latest release candidate
2023-04-16 02:25:15 +08:00
bunnie
916ca1e11f
expand key injection API.
...
this does mean your device is notably less secure if you're operating
with usb serial turned on, as a host can just inject arbitrary commands
into your device!
2023-04-16 02:23:59 +08:00
bunnie
5a10bb8fd8
add console management commands
2023-04-16 02:23:43 +08:00
bunnie
dde6addc18
add input-side key injection over usb serial
2023-04-16 02:23:10 +08:00
bunnie
af5b54aba2
modify xous log API crate with opcodes for console logging
2023-04-16 01:43:54 +08:00
bunnie
7a8741922d
enable console connection on shellchat
2023-04-16 01:43:29 +08:00
bunnie
ce05053536
improve serial support; add stubs to allow for console i/o
2023-04-16 01:43:09 +08:00
bunnie
5e01661dbf
refactor xous-log and add 'usb' feature
...
this feature, when selected, allows a user to trigger mirroring
console output to a USB serial device.
2023-04-16 01:42:10 +08:00
Vihaan Jim
d16a37be6b
Merge branch 'main' of https://github.com/betrusted-io/xous-core
2023-04-15 10:16:29 -04:00
bunnie
210c501bb7
initial USB-serial mode working
2023-04-14 13:01:06 +08:00