Commit graph

10340 commits

Author SHA1 Message Date
bunnie
b0f443be48 fix race condition on relinquish focus v result return for dynamic and progress modals
There's a race condition between the return of a blocking scalar
and when focus is relinquished.

This causes chained graphics operations to get dropped sometimes.

Move the return result to after the focus switch; this allows us
to elimate some dead waits.
2022-11-06 16:33:31 +08:00
bunnie
5a0e3e5c19 clean up bitrot in dbg-ecupdate configuration 2022-11-06 15:59:58 +08:00
bunnie
69cf629329 fix problem in tts build 2022-11-06 04:25:26 +08:00
bunnie
767580d375 bump versions 2022-11-06 04:17:53 +08:00
bunnie
30583bdf07 bump versions with xous change 2022-11-06 03:48:12 +08:00
bunnie
e85455a077
Merge pull request #271 from betrusted-io/scalar5-support
Scalar5 support
2022-11-06 03:44:58 +08:00
bunnie
a16304b0eb bump release notes 2022-11-06 03:42:07 +08:00
bunnie
2a11f9dcaf Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-11-06 03:40:37 +08:00
bunnie
fa90e74a10
Merge pull request #270 from gsora/feat/pddb-init-notification
feat: show boot process notifications for PDDB
2022-11-06 03:40:17 +08:00
bunnie
817e758f7c remove the dead-wait before the PDDB is mounted
the "right" way to do this is to poll to see if trusted init is
done. once that is done, you can go ahead and try to mount the
PDDB.
2022-11-06 03:36:43 +08:00
bunnie
a56b8c802f add automounter to shellchat, and initial wait message
The initial wait message is drawn directly under where
the modals would appear, so the message "goes away"
when modals pop up.

There's still a bit of trickiness around the timing of
some of the calls. Attempting to mount the PDDB too early
before all the contexts have been registered leads to
a lot of needless defacing.

Also, the final redraw needs a short delay to allow
the system to foreground shellchat again after closing
the modals.
2022-11-06 03:11:23 +08:00
bunnie
e240ca6499 refactor the hardware boot screen
- remove a blanking operation. this makes the transision from
loader to runtime almost imperceptably smoother
- add the ability to summon the logo screen earlier in the process

Note that only GAM can call GFX, so, it's alright to expose that
API, since GAM should gate-keep and prevent abuse of that function.
2022-11-06 03:10:00 +08:00
bunnie
7eecf2b1ce remove the initial wait from PDDB; move the pop-up modal location
The initial wait message is now rendered by the first app
that owns the screen (currently shellchat).

The location where the pop-up modal is rendered is also now bracketed
directly around the mount call to avoid interference with other
edge cases that may pop up modals.
2022-11-06 03:07:35 +08:00
bunnie
0d02415c82 remove automounter from the status thread
it's now in shellchat. In general, the program that is assigned
as the initial app context is responsible for ensuring the
PDDB is mounted. Thus, if `vault` were to become a stand-alone app,
it should include some code to make sure the PDDB is mounted as
part of its boot sequence.

The reason is that it allows the initial app to guide the
power-on experience, instead of delegating this to the `status`
bar, which is oblivious to the state of the app.
2022-11-06 03:05:30 +08:00
bunnie
45009a01d9 add debugging hints for figuring out context switch bugs in the future 2022-11-05 23:06:47 +08:00
bunnie
7c4ca05922 adjust modal trust level down so it's not identical to chat 2022-11-05 23:06:18 +08:00
Sean Cross
c9f751f5f0 xous: add api support for scalar5
With the addition of scalar5, existing api calls must be updated to take
advantage of it. This will allow `send_message()` to return a `scalar5`.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-05 18:44:01 +08:00
Sean Cross
da5647539f kernel: syscall: add support for return_scalar5
Add kernel support for returning 5 scalars.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-05 18:39:54 +08:00
Sean Cross
c8bb039c41 xous: add api support for Scalar5
Add syscall and return definitions for Scalar5, as well as
ReturnScalar5. This will enable us to pass up to five scalars as a
return from a blockingscalar call.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-05 18:39:06 +08:00
bunnie
1ca0ef7b1f clean up warning 2022-11-05 16:30:29 +08:00
bunnie
601f3476f4 initial delay on NTP poller
no point in clogging up the boot sequence with requests that
will almost certainly fail.
2022-11-05 16:19:15 +08:00
Gianguido Sorà
d277ae9551 feat: show boot process notifications for PDDB
This commit shows two notifications:
 1. as soon as the device boots, a notification greets the user and
 tells them everything is fine, the device is booting
 2. as soon as the user enters (or doesn't) enter the password, a
 notification tell the user Xous is loading and mounting PDDB

I spent too much time on this but I believe it's a nice UX improvement.
2022-11-04 17:31:27 +01:00
bunnie
4264231033 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-11-04 17:06:40 +08:00
bunnie
5de44a9502 don't fail if keyattribute not found in current basis when no basis specified
This is not actually an error, we just need to try another basis
down the list. This is a copypasta bug that was only caught now. :-/
2022-11-04 17:05:51 +08:00
bunnie
0d9a39a349 print debug information when a key goes missing in bulk read
this helps debug problems down the road
2022-11-04 17:05:32 +08:00
Sean Cross
f861af7620 tools: elf: fix copy-elf when gcc links program
GCC will set the text size to `0` in a certain case that `rust-lld` did
not. This causes the elf copier to add about 512 MB to the image which
it otherwise shouldn't be doing.

Add a workaround that appears to fix the issue.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-04 12:27:13 +08:00
Sean Cross
3a8457852f loader: fix build with gcc-ld
With Rust 1.65.0, we may be forced to use gdb's linker due to bug that
appeared in llvm-15:

https://github.com/rust-lang/rust/issues/103949

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-04 12:26:05 +08:00
bunnie
d74673ab29 allow main menu to be used if there are no root keys 2022-11-04 03:55:57 +08:00
bunnie
ed09ee03ef bump to latest ring-xous version 2022-11-04 03:53:03 +08:00
bunnie
af91ec97cd bump release notes 2022-11-03 23:28:08 +08:00
bunnie
80a1bd3654 resolve issue #267 2022-11-03 23:18:13 +08:00
bunnie
4dc7135e0e update the instructions to build soc.svd, and add note about verification 2022-11-03 23:06:20 +08:00
bunnie
01f660b04d didn't meant to check in that script 2022-11-03 21:11:58 +08:00
bunnie
ff2a7f8240 some more debugging to help trace through dict sync issues 2022-11-03 21:06:04 +08:00
bunnie
b04dcc21ef add smalldb flag, which builds a PDDB with a size of 4MiB
do not interchange this on devices with the full sized
PDDB, you may corrupt the database
2022-11-03 21:04:14 +08:00
bunnie
6c2e86d876 add support for small-sized PDDB images plus some debugging info 2022-11-03 21:03:40 +08:00
bunnie
5c624e7e52 add a flush after every PDDB write
uncommitted data will lead to corruption later on
2022-11-03 21:01:11 +08:00
Gianguido Sorà
85b55798cf chore: use pddb crate-level system basis name 2022-11-03 12:39:32 +01:00
bunnie
c91837c10b fix max dicts in analyzer scripts 2022-11-03 18:33:22 +08:00
bunnie
719020b08b don't allow polls to the unmount to turn true until other callbacks have been allowed 2022-11-03 17:23:11 +08:00
bunnie
3bdf157f9d enhance debugging output on pddb analyzer 2022-11-03 17:22:22 +08:00
Sean Cross
779cc61c56 emulation: spinor: implement erasesector4byte
Implement this command, which is used by the system for bulk erases.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-03 12:31:22 +08:00
bunnie
0c52a7a3ff the merge requested pulled multiple other crate versions backwards
this fixes it, hopefully.
2022-11-03 01:58:36 +08:00
bunnie
c04cc0e61c Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-11-03 01:54:00 +08:00
bunnie
f59bbc2d2b
Merge pull request #266 from Foundation-Devices/driver-refactor
kernel: Drivers refactor.
2022-11-03 01:53:38 +08:00
bunnie
6332bf1c90
Merge branch 'main' into driver-refactor 2022-11-03 01:53:23 +08:00
bunnie
2cf4622f68 commit lockfile and verification pins 2022-11-03 01:50:36 +08:00
bunnie
80094aef1e I see what's happening. The PR originator versions are very out of date.
hopefully this fixes the issue.
2022-11-03 01:49:28 +08:00
Gianguido Sorà
1c55028af6 chore: remove wifi menu mentions from status main 2022-11-02 18:45:23 +01:00
bunnie
bbb7e279cd bump kernel version (this time with feeling) 2022-11-03 01:42:59 +08:00