Commit graph

397 commits

Author SHA1 Message Date
bunnie
dabbfd6c35 bump all the things to absorb the SoC change 2022-11-17 19:39:18 +08:00
Gianguido Sorà
3b650871f5 chore: re-add preferences l18n entry 2022-11-14 16:25:57 +01:00
Gianguido Sorà
c1b7cfe7f4 Squashed commit of the following:
commit 474a02c2cb
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 15:06:51 2022 +0800

    refactor all vault db retrieval to use new API

    This refactors the remaining vault accessor routines to use
    the new more efficient key pre-fetching routine. This also
    fixes up an error in test case generation and hopefully resolves
    an issue with concurrency errors using the older version of
    the access routine.

commit c3ba30d55d
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 14:25:26 2022 +0800

    expand on errors reported

commit e7e110ce76
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 14:25:05 2022 +0800

    cleanup and enhance test cases

commit 6d1d297500
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 01:01:42 2022 +0800

    bump ring-xous to track latest PR

commit 11a0107e97
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 00:33:13 2022 +0800

    fix UX state after button press on dynamic modal

    This bug was hidden by the previous return of state before
    the reliquish.

    Now with the correct ordering, we end up getting a double-relinquish
    which ends up trying to swap a modal into focus which doesn't exist.

    This fixes that edge case

commit 4c45dfa6bf
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 9 00:33:01 2022 +0800

    more debugging help

commit 1129f1c3c6
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 23:05:32 2022 +0800

    bump versions after xous-names bump

commit a7162fd03c
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 22:19:38 2022 +0800

    bump xous-names dependents

commit 28f42baa44
Merge: 1bc39cd5 3ca323f0
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 22:09:56 2022 +0800

    Merge pull request #274 from betrusted-io/xous-names-tryconnect

    Add TryConnect call to xous-names

commit 3ca323f0bb
Author: Sean Cross <sean@xobs.io>
Date:   Mon Nov 7 18:46:02 2022 +0800

    xous-names: implement non-blocking TryConnect call

    This call can be used by clients to try connecting to a service. If the
    service is not available, this will fail to connect.

    Signed-off-by: Sean Cross <sean@xobs.io>

commit 3ca57bcf8b
Author: Sean Cross <sean@xobs.io>
Date:   Mon Nov 7 18:45:25 2022 +0800

    xous-api-names: add TryConnect

    This is a non-blocking version of Connect that is fallible.

    Signed-off-by: Sean Cross <sean@xobs.io>

commit 1bc39cd513
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 00:25:16 2022 +0800

    bump release notes

commit 781776b1fe
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 00:22:49 2022 +0800

    move the mount initiator back into status; fix waiting signal

    mount initiator is now back inside of the status thread
    (woo, no more app-specific dependency) and there is now a
    wait on "attempted to mount" inside the status thread which is
    the signal to clear the "waiting on boot" message.

commit 0646ec23ba
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 00:21:52 2022 +0800

    track "attempted" mounts in PDDB

    this is to allow a UX process to clear the "waiting for boot"
    indicator once an attempt has completed.

    right now, it responds *after* the mount process is done,
    so the "please waiting" text persists even doing a format.

    I think that is...appropriate?

commit 93dcfb7435
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Nov 7 00:21:27 2022 +0800

    fix hosted mode

commit 335b78d865
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 20:50:15 2022 +0800

    fix polarity of init_done flag. oops.

commit 1d7641cafa
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 18:48:23 2022 +0800

    force please wait message to clear before doing PDDB init

    While it's a kind of neat effect to have the "please wait"
    message persist right up until the point where the dialog box
    pops up, the problem is that the blit of the backplane captures
    that, so when the context is reverted that message is still there.

    On a very fast mount (empty PDDB under Renode emulation) the
    mounting call finishes so quickly that the dialog box that would
    normally trigger the redraw to clear this message never renders.

    This patch forces the screen to blank before trying to call
    PDDB init, ensuring that we don't have that persist after the
    mount, even if it is very fast.

    The downside is there is a fraction of a second where the please
    wait disappears, and the dialog box pops up. That is just the
    time it takes for the system to setup for the cryptographic
    operations.

commit 382380bd8a
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 18:48:06 2022 +0800

    fix Sender cast

commit 3ee36f41ee
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 18:45:17 2022 +0800

    remove UX delays on PDDB path

    retain just one of them going into the erase routine, because
    it consumes enough CPU that the dialog box takes a bit too long to
    pop up.

commit 880675c238
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 18:44:56 2022 +0800

    remove UX delays between dialog boxes

commit ffa8385e7c
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 18:36:20 2022 +0800

    refactor: send response packet after context has been switched

    This refactor (at least partially) fixes a "mystery delay"
    sometimes required after a dialog box swaps out. The previous
    implementation would send the response, and then swap the contexts.
    This would often cause the recipient to start drawing its UX
    before the calling app was foregrounded, causing elements to go
    missing.

    This refactor puts the response after the context swap. The main
    downside is it requires every type of modal to have a GAM
    handle to issue the redraw call, and is especially complicated
    by the fact that GAM is not clone-friendly. However, the
    trade-offs of either creating a handle dynamically or storing
    one in the object is probably worth the benefit of removing
    an open-loop delay.

commit b0f443be48
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 16:33:31 2022 +0800

    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.

commit 5a0e3e5c19
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 15:59:58 2022 +0800

    clean up bitrot in dbg-ecupdate configuration

commit 69cf629329
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 04:25:26 2022 +0800

    fix problem in tts build

commit 767580d375
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 04:17:53 2022 +0800

    bump versions

commit 30583bdf07
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:48:12 2022 +0800

    bump versions with xous change

commit e85455a077
Merge: a16304b0 c9f751f5
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:44:58 2022 +0800

    Merge pull request #271 from betrusted-io/scalar5-support

    Scalar5 support

commit a16304b0eb
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:42:07 2022 +0800

    bump release notes

commit 2a11f9dcaf
Merge: 1ca0ef7b fa90e74a
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:40:37 2022 +0800

    Merge branch 'main' of github.com:betrusted-io/xous-core into main

commit fa90e74a10
Merge: 42642310 817e758f
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:40:17 2022 +0800

    Merge pull request #270 from gsora/feat/pddb-init-notification

    feat: show boot process notifications for PDDB

commit 817e758f7c
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:36:43 2022 +0800

    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.

commit a56b8c802f
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:11:23 2022 +0800

    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.

commit e240ca6499
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:10:00 2022 +0800

    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.

commit 7eecf2b1ce
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:07:35 2022 +0800

    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.

commit 0d02415c82
Author: bunnie <bunnie@kosagi.com>
Date:   Sun Nov 6 03:05:30 2022 +0800

    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.

commit 45009a01d9
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Nov 5 23:06:47 2022 +0800

    add debugging hints for figuring out context switch bugs in the future

commit 7c4ca05922
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Nov 5 23:06:18 2022 +0800

    adjust modal trust level down so it's not identical to chat

commit c9f751f5f0
Author: Sean Cross <sean@xobs.io>
Date:   Sat Nov 5 18:44:01 2022 +0800

    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>

commit da5647539f
Author: Sean Cross <sean@xobs.io>
Date:   Sat Nov 5 18:39:54 2022 +0800

    kernel: syscall: add support for return_scalar5

    Add kernel support for returning 5 scalars.

    Signed-off-by: Sean Cross <sean@xobs.io>

commit c8bb039c41
Author: Sean Cross <sean@xobs.io>
Date:   Sat Nov 5 18:39:06 2022 +0800

    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>

commit 1ca0ef7b1f
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Nov 5 16:30:29 2022 +0800

    clean up warning

commit 601f3476f4
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Nov 5 16:19:15 2022 +0800

    initial delay on NTP poller

    no point in clogging up the boot sequence with requests that
    will almost certainly fail.

commit d277ae9551
Author: Gianguido Sorà <me@gsora.xyz>
Date:   Fri Nov 4 17:31:27 2022 +0100

    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.

commit 4264231033
Merge: 5de44a95 f861af76
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Nov 4 17:06:40 2022 +0800

    Merge branch 'main' of github.com:betrusted-io/xous-core into main

commit 5de44a9502
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Nov 4 17:05:51 2022 +0800

    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. :-/

commit 0d9a39a349
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Nov 4 17:05:32 2022 +0800

    print debug information when a key goes missing in bulk read

    this helps debug problems down the road

commit f861af7620
Author: Sean Cross <sean@xobs.io>
Date:   Fri Nov 4 12:27:13 2022 +0800

    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>

commit 3a8457852f
Author: Sean Cross <sean@xobs.io>
Date:   Fri Nov 4 12:26:05 2022 +0800

    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>

commit d74673ab29
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Nov 4 03:55:57 2022 +0800

    allow main menu to be used if there are no root keys

commit ed09ee03ef
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Nov 4 03:53:03 2022 +0800

    bump to latest ring-xous version

commit af91ec97cd
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 23:28:08 2022 +0800

    bump release notes

commit 80a1bd3654
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 23:18:13 2022 +0800

    resolve issue #267

commit 4dc7135e0e
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 23:06:20 2022 +0800

    update the instructions to build soc.svd, and add note about verification

commit 01f660b04d
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 21:11:58 2022 +0800

    didn't meant to check in that script

commit ff2a7f8240
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 21:06:04 2022 +0800

    some more debugging to help trace through dict sync issues

commit b04dcc21ef
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 21:04:14 2022 +0800

    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

commit 6c2e86d876
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 21:03:40 2022 +0800

    add support for small-sized PDDB images plus some debugging info

commit 5c624e7e52
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 21:01:11 2022 +0800

    add a flush after every PDDB write

    uncommitted data will lead to corruption later on

commit c91837c10b
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 18:33:22 2022 +0800

    fix max dicts in analyzer scripts

commit 719020b08b
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 17:23:11 2022 +0800

    don't allow polls to the unmount to turn true until other callbacks have been allowed

commit 3bdf157f9d
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 17:22:22 2022 +0800

    enhance debugging output on pddb analyzer

commit 779cc61c56
Author: Sean Cross <sean@xobs.io>
Date:   Thu Nov 3 12:31:22 2022 +0800

    emulation: spinor: implement erasesector4byte

    Implement this command, which is used by the system for bulk erases.

    Signed-off-by: Sean Cross <sean@xobs.io>

commit 0c52a7a3ff
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:58:36 2022 +0800

    the merge requested pulled multiple other crate versions backwards

    this fixes it, hopefully.

commit c04cc0e61c
Merge: 7af04b70 f59bbc2d
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:54:00 2022 +0800

    Merge branch 'main' of github.com:betrusted-io/xous-core into main

commit f59bbc2d2b
Merge: ebc0739b 6332bf1c
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:53:38 2022 +0800

    Merge pull request #266 from Foundation-Devices/driver-refactor

    kernel: Drivers refactor.

commit 6332bf1c90
Merge: 2cf4622f ebc0739b
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:53:23 2022 +0800

    Merge branch 'main' into driver-refactor

commit 2cf4622f68
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:50:36 2022 +0800

    commit lockfile and verification pins

commit 80094aef1e
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:49:28 2022 +0800

    I see what's happening. The PR originator versions are very out of date.

    hopefully this fixes the issue.

commit bbb7e279cd
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:42:59 2022 +0800

    bump kernel version (this time with feeling)

commit ba46c6b04a
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:41:24 2022 +0800

    bump kernel version

commit 7af04b7000
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Nov 3 01:38:18 2022 +0800

    a bit more debugging around dictionary creation

commit 6d2be1b6d7
Author: bunnie <bunnie@kosagi.com>
Date:   Wed Nov 2 21:52:28 2022 +0800

    add va printouts

commit d8807e6cea
Author: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
Date:   Wed Nov 2 14:29:53 2022 +0100

    kernel: Move rand driver to platform module.

    Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>

commit b334e5bc31
Author: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
Date:   Wed Nov 2 13:30:20 2022 +0100

    kernel: Split debug shell and uart driver.

    I've added a `platform` module to store all platform specific code, (not
    architecture specific) as some platforms will require custom drivers, e.g.
    for debug output and for the random number generation code.  The platform
    code is in charge of mapping any peripherals needed to work, also to
    initialize any other parts of the kernel that require drivers, for example
    the debug shell.

    Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>

commit ebc0739bee
Author: bunnie <bunnie@kosagi.com>
Date:   Tue Nov 1 21:25:04 2022 +0800

    fix some defaults to make the Renode path cleaner to start

commit f738781a40
Author: bunnie <bunnie@kosagi.com>
Date:   Tue Nov 1 21:18:33 2022 +0800

    make the default pin 'a', as it is on Renode

commit 4e2d79942e
Author: bunnie <bunnie@kosagi.com>
Date:   Tue Nov 1 21:17:07 2022 +0800

    upgrade pdddbg to use basis decryption routines from the common libs

commit 54e929e877
Author: bunnie <bunnie@kosagi.com>
Date:   Tue Nov 1 19:01:57 2022 +0800

    move key extraction routines to pddbcommon.py

commit 05068c5cd0
Author: bunnie <bunnie@kosagi.com>
Date:   Tue Nov 1 13:03:52 2022 +0800

    extract the renode key box as a dump

commit c74ceacfef
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Oct 31 22:33:27 2022 +0800

    add a renode mode for reading in a renode.bin

commit a0dca39fa3
Author: bunnie <bunnie@kosagi.com>
Date:   Mon Oct 31 22:14:10 2022 +0800

    key file for decrypting .System basis on Renode

commit 05252663a4
Author: Tom Marble <tmarble@info9.net>
Date:   Sat Oct 29 17:38:22 2022 -0500

    Updates mtxcli README

    Signed-off-by: Tom Marble <tmarble@info9.net>

commit 604a3765b8
Author: Tom Marble <tmarble@info9.net>
Date:   Sat Oct 29 17:34:32 2022 -0500

    Adds images of mtxcli

    Images of mtxcli
    - in the hosted environment
    - on the Precusor
    - in French

    Signed-off-by: Tom Marble <tmarble@info9.net>

commit 072170efe1
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Oct 29 18:01:18 2022 +0800

    restore the top-level settings file per xobs suggestion

commit 2fd685c513
Merge: 052817c7 38286d86
Author: Sean Cross <sean@xobs.io>
Date:   Sat Oct 29 04:52:48 2022 -0400

    Merge pull request #263 from sorpaas/sp-rename

    RemoveClockEntry -> TryRemoveClockEntry

commit 38286d8623
Author: Wei Tang <wei@that.world>
Date:   Sat Oct 29 10:47:47 2022 +0200

    RemoveClockEntry -> TryRemoveClockEntry

commit 052817c793
Merge: 3814337f 9689b3bc
Author: bunnie <bunnie@kosagi.com>
Date:   Sat Oct 29 00:39:27 2022 +0800

    Merge pull request #261 from betrusted-io/remove-vscode

    Removes VS Code artifacts

commit 9689b3bc07
Author: Tom Marble <tmarble@info9.net>
Date:   Fri Oct 28 11:23:56 2022 -0500

    Removes VS Code artifacts

    Also updates .gitignore to prevent adding IDE (VS Code, Emacs) artifacts

    Signed-off-by: Tom Marble <tmarble@info9.net>

commit 3814337f51
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 18:27:52 2022 +0800

    don't check in vscode settings

commit dd379aa9fb
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 18:16:16 2022 +0800

    bump kernel version

commit f01b2a871c
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 18:12:07 2022 +0800

    add some vscode stuff i guess to the release

commit f17e02460f
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 18:02:52 2022 +0800

    bump kernel revision

commit c17a6d3786
Author: Sean Cross <sean@xobs.io>
Date:   Fri Oct 28 17:38:25 2022 +0800

    kernel: make SYSTEM_SERVICES unmangled

    This symbol will be viewed by external tools.

    Signed-off-by: Sean Cross <sean@xobs.io>

commit fd739c2177
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:23:39 2022 +0800

    add `fr` locale to update options

commit f7eed18f48
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:18:34 2022 +0800

    bump verification and locks

commit ba28dd8795
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:11:17 2022 +0800

    bump to absorb utralib straggler configs

commit b5f4814bb4
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:10:00 2022 +0800

    cleanup some stragglers in utralib push

commit 6b296c9b48
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:04:56 2022 +0800

    fix a cargo file that got nuked in the merge

commit bcd1078fe2
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:01:38 2022 +0800

    bump lockfile

commit e60f7cc855
Merge: 0c7c90fb f8a66430
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 15:00:27 2022 +0800

    Merge branch 'i18n/adds-french-localization' into main

commit f8a6643054
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 14:55:33 2022 +0800

    bump locks

commit dfb10ed7f2
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 14:01:09 2022 +0800

    bump crate numbers to publish lang-fr change into xous-rs

commit 006a69105c
Author: Tom Marble <tmarble@info9.net>
Date:   Thu Oct 27 16:07:05 2022 -0500

    Completes the i18n_helper.py tool

    Added 'fr' translation
    Added *.json to .gitattributes

    Signed-off-by: Tom Marble <tmarble@info9.net>

commit 0c7c90fb78
Author: bunnie <bunnie@kosagi.com>
Date:   Fri Oct 28 02:55:42 2022 +0800

    have the core spinor routines automatically retry on failure

    normally we never see these failures, but, as we are seeing
    flash wear-out on the CI machine the writes can take
    long enough that we get some concurrent requests. As a work-around,
    just automatically retry a few times before throwing the error
    back to the caller.

commit d63c452fb6
Author: bunnie <bunnie@kosagi.com>
Date:   Thu Oct 27 23:00:10 2022 +0800

    catch serialization buffer edge case

    if the buffer fills up to the point where there isn't enough
    space for the 8-bytes of header, a split_at() call will fail before
    the routine even gets to decide if the record can fit.

    abort the loop if the buffer is that full.

commit 07cb2398d8
Author: Tom Marble <tmarble@info9.net>
Date:   Wed Oct 26 22:32:49 2022 -0500

    WIP: Adds new lang 'fr' for French

    Adds new Internationalization Helper tool: i18n_helper.py

    Signed-off-by: Tom Marble <tmarble@info9.net>
2022-11-14 16:22:46 +01:00
Gianguido Sorà
93112d68d0 chore: remove preference l18n entry to allow for merge 2022-11-14 16:20:41 +01:00
Gianguido Sorà
dd5928a7c3 feat: move timezone and utc offset into Preference lib 2022-11-14 16:15:57 +01:00
Gianguido Sorà
6176987fec feat: move time-related preferences under the Preferences menu
Time UX thread is now started from the preference manager.
PDDB is still handled in time.rs, but I'm working on that.
2022-11-14 15:43:19 +01:00
bunnie
a7162fd03c bump xous-names dependents 2022-11-07 22:19:38 +08:00
bunnie
781776b1fe move the mount initiator back into status; fix waiting signal
mount initiator is now back inside of the status thread
(woo, no more app-specific dependency) and there is now a
wait on "attempted to mount" inside the status thread which is
the signal to clear the "waiting on boot" message.
2022-11-07 00:22:49 +08:00
bunnie
5a0e3e5c19 clean up bitrot in dbg-ecupdate configuration 2022-11-06 15:59:58 +08:00
bunnie
30583bdf07 bump versions with xous change 2022-11-06 03:48:12 +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
Gianguido Sorà
1c55028af6 chore: remove wifi menu mentions from status main 2022-11-02 18:45:23 +01:00
Gianguido Sorà
83d67a663b fix: keep order of keyboard mappings in prefs view stable 2022-11-02 18:35:10 +01:00
Gianguido Sorà
251649bd44 chore: Remove keyboard menu entry from main menu 2022-11-02 18:21:20 +01:00
Gianguido Sorà
85133063eb fix: share a single keyboard instance instead of creating a new one just to restore prefs 2022-11-02 18:21:10 +01:00
Gianguido Sorà
2436d6978c feat: set keyboard layout system-wide when setting it in preferences 2022-11-02 18:20:45 +01:00
Gianguido Sorà
e6cb3979f1 chore: delete kbdmenu file kbd menu now in preferences 2022-11-02 18:20:18 +01:00
Gianguido Sorà
aa47d7c333 feat: implement keyboard layout settigns 2022-11-02 17:57:18 +01:00
Gianguido Sorà
5195dc9455 fix: load all prefs when pddb ready, restore keyboard layout on boot 2022-11-02 17:56:21 +01:00
Gianguido Sorà
52bcedc37a chore: remove wifi menu from status 2022-11-02 17:13:49 +01:00
Gianguido Sorà
4a4b49b0c8 feat: refactor preference to accomodate wifi
Also setup framework to extend the main preference menu.
2022-11-02 17:11:37 +01:00
Gianguido Sorà
87cdfe5530 chore: don't start wifi threads directly
Preferences crate will do that.
2022-11-02 17:11:17 +01:00
bunnie
ba28dd8795 bump to absorb utralib straggler configs 2022-10-28 15:11:17 +08:00
bunnie
dfb10ed7f2 bump crate numbers to publish lang-fr change into xous-rs 2022-10-28 14:01:09 +08:00
Tom Marble
006a69105c
Completes the i18n_helper.py tool
Added 'fr' translation
Added *.json to .gitattributes

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-27 16:07:05 -05:00
Gianguido Sorà
a7b950684f Merge branch 'main' into feat/user-preferences 2022-10-27 15:34:05 +02:00
Gianguido Sorà
660fee1fce chore: update crossbeam deps for status 2022-10-27 15:29:51 +02:00
Gianguido Sorà
2bb4cb2b62 feat: implement preference server in status 2022-10-27 15:18:23 +02:00
Gianguido Sorà
17b7ba2ad0 feat: wire up Preferences menu in status 2022-10-27 15:17:01 +02:00
Gianguido Sorà
a3a94ad50a chore: restructure preference loading with userprefs::Manager::all() instead of individual calls 2022-10-27 15:12:40 +02:00
Gianguido Sorà
e11bef1eff chore: create Preferences menu GAM entry and l18n 2022-10-27 14:55:56 +02:00
Tom Marble
07cb2398d8
WIP: Adds new lang 'fr' for French
Adds new Internationalization Helper tool: i18n_helper.py

Signed-off-by: Tom Marble <tmarble@info9.net>
2022-10-26 22:32:49 -05:00
bunnie
475e464efe bump versions due to svd2utra change 2022-10-27 03:04:22 +08:00
bunnie
0ee9ec1d80 bump version numbers for crate publication 2022-10-25 22:38:58 +08:00
Jean-Pierre De Jesus DIAZ
f5176ea380
Remove xous-rs unused features
The rationale is that xous-rs should have only architecture
specific code, e.g.: riscv, arm, x86, etc. To make other
crates that depend on it not specify the features.

This could be useful when using xous-rs with `libstd`
for example.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2022-10-25 13:29:15 +02:00
bunnie
d331d405ee bump version numbers for publication 2022-10-25 17:23:40 +08:00
bunnie
67fc21fbdd harmonize hosted mode selection, but retain an explicit hosted flag
In general, hosted mode is assumed "by default" if the target
is not Xous. This allows packages to be built cleanly on command
lines that don't know to pass a --feature flag to specify a target.

However, an explicit "hosted" flag is still retained so that we
can confirm the build system intent. This saves us from the failure
mode that we thought we were building for target A, but accidentally
ommitted the flag, and instead we've been silently building for
"hosted" mode without any warning. The main consumer of the "hosted"
flag is now just the build.rs script inside of the utralib.
2022-10-25 17:21:02 +08:00
Gianguido Sorà
fcd3217b52 fix: make sure to wait for pddb to be ready before loading prefs 2022-10-20 12:30:00 +02:00
Gianguido Sorà
d1e700058c Merge branch 'main' into feat/user-preferences 2022-10-20 11:42:44 +02:00
Gianguido Sorà
1636259003 Merge branch 'main' into feat/user-preferences 2022-10-20 10:46:01 +02:00
bunnie
805a7d528c flip back to using remote references 2022-10-20 16:30:06 +08:00
Gianguido Sorà
59c4fbd5e9 status: preference-based backlight timeout
Also rename some variables for clarity.
2022-10-18 11:52:04 +02:00
Gianguido Sorà
412b8bdd5e status: enable/disable autobacklight on boot, depending on prefs 2022-10-18 11:51:31 +02:00
Gianguido Sorà
2a8ac69120 status: proper format specifier for prefs errors 2022-10-18 11:50:11 +02:00
Gianguido Sorà
d9c706a40e status: store wlan networks in .System basis 2022-10-18 11:44:41 +02:00
bunnie
8e05925cfa somehow the transition to local paths got missed in the merge 2022-10-18 00:39:01 +08:00
bunnie
0584ad2f2c switch to local paths to see if this helps the build 2022-10-18 00:26:56 +08:00
bunnie
4d1da235a9 bump revs that depend on susres to absorb changes 2022-10-17 05:11:09 +08:00
bunnie
6dacf18213 replace remaining final few instances of com poweroff with susres poweroff 2022-10-17 05:06:39 +08:00
bunnie
d7392d3704 improve comments and add count to the user-failed mount case 2022-10-17 03:51:36 +08:00
bunnie
de41e5ecff rework password login to have a count and reboot/suspend after N retries
The implementation is a bit clumsy because the original
premise of the login loop is that it should be infalliable, and
because of the isolation of the password mechanism there isn't
a great way to pass number of failures back and forth across
that firewall (and I don't think there should be).

The application calling the password routine tracks failures
but the mounting routine has to kick that up to the main loop.
However, the PDDB main loop can't get stuck on the mount attempt
if you want to suspend, because it has to respond to the suspend
request.

So the failure message has to get kicked all the way back to the
status thread, which is what kicks off the mount, and then handled
there.
2022-10-17 02:40:51 +08:00
bunnie
3bc2860eb0 reboot -> lock device; disconnect battery -> shutdown 2022-10-17 00:19:35 +08:00
bunnie
4b368d71db bump versions of crates 2022-10-15 01:31:54 +08:00
bunnie
63a87ca1bc bump all the versions 2022-10-14 16:54:43 +08:00
Gianguido Sorà
c4e931a766 status: implement basic radio user preference 2022-10-13 17:59:34 +02:00
bunnie
ff30131f43 absorb more fixes into the kernel 2022-10-13 04:08:56 +08:00
bunnie
3503965f98 bump versions to absorb xous-rs changes 2022-10-13 03:41:16 +08:00
bunnie
f8a2ea51bb remove rkyv warnings from xous-api-names 2022-10-10 03:16:40 +08:00
bunnie
02b80425f5 bump xous-rs to absorb change in language specification 2022-10-10 03:07:44 +08:00
bunnie
2a440f6409 retry bad passwords on backups; add note that backups are not abortable
Because we unmount the PDDB and put the system in a semi-shutdown
state, backups are not abortable if you type in the wrong root password.
This patch retries the root password forever, but also adds a note
at the beginning of the process that the process cannot be stopped
once started.
2022-10-09 17:44:46 +08:00
bunnie
453aeb3596 fix boot order issue that prevents restore 2022-10-09 14:16:36 +08:00
bunnie
2ff9163789 add checksums to PDDB backup
every 1MiB block is checksummed with a sha512/256 truncated to
128 bits. This is used to confirm the media and transport integrity
only. It is not intended to be a cryptographic check, it just confirms
that the backup data was transferred correctly assuming no intentionally
malicious actors in the middle.
2022-10-09 01:10:42 +08:00
bunnie
c471ca0fbb fix overly restrictive version match on backup version 2022-10-08 15:29:37 +08:00
bunnie
a416069002 add hash protection on the metadata header
stage is set for hash protection on the PDDB data itself.
that comes next.
2022-10-08 01:22:14 +08:00
bunnie
3bca9de2a0 bump version numbers for xous-kernel patch
this fixes tests in CI
2022-10-05 23:51:35 +08:00
bunnie
969f93b001 cross-repo update versions from xous-rs bump 2022-10-05 18:32:44 +08:00
bunnie
9dcc0a3386 absorb ticktimer api bump, propagated from susres bump 2022-10-03 04:40:06 +08:00
bunnie
d2b2383d1a bump susres version 2022-10-03 04:36:32 +08:00
bunnie
b184bfbe6a move ticktimer to remote api 2022-10-03 03:37:38 +08:00
bunnie
89ca75c4bf move over to remote susres api 2022-10-03 02:24:44 +08:00
bunnie
6123e8ff9b xous-names conversion to crates.io 2022-10-03 01:18:20 +08:00
bunnie
de514ac66f rename packages in prep for upload to crates.io 2022-10-03 00:24:45 +08:00
bunnie
4e40ae6c5d move from target selectors to feature selectors for back-ends
This will allow for e.g. xous on riscv32-imac but not a precursor
target, for example: by using feature selectors we get to have
a bigger range of targets that we support, such as for implementations
that haven't been upstreamed or have official target-triples.

The downsides are:

- patch override libraries don't absorb feature flags. so, for
example, the AES crate that is used to patch other crates won't
be aware of the target features without modifying the referencing
crates.

- features are normally meant to be additive, but target features
are mutually exclusive. The mutex is enforced by a check in
utralib that throws a panic on build if two targets are accidentally
selected at the same time.
2022-10-02 02:56:44 +08:00
bunnie
fb29c9b2c1 refactor utra target line to use explicit feature targets
still need to rework the crate feature selection
2022-10-02 02:20:03 +08:00
bunnie
ecab0ba045 fix default-features in services 2022-09-27 02:44:46 +08:00
bunnie
d667d7e1f5 bump xous-ipc version 2022-09-27 01:14:43 +08:00
bunnie
f188e0f866 re-bump xous-ipc to 0.9.9 2022-09-26 16:50:38 +08:00
bunnie
507ab42836 downgrade xous-ipc to 0.9.7 until i have permissions to push a new version 2022-09-26 16:11:26 +08:00
bunnie
3579dfdd17 update xous-ipc and xous versions 2022-09-26 16:07:35 +08:00
bunnie
114d60bc53 migrate logserver API to external package 2022-09-26 14:06:46 +08:00
bunnie
85279566f0 fix #77
This adds some UX feedback in the edge case that a suspend could not
happen due to a blocking sever, e.g. a sha512 hash pending or
a SPINOR flash write/erase pending.

The UI will tell the user to retry again; usually the ops in
a normally functioning system for hashes or SPI are very short,
so we could almost just retry automatically but I think for now
I want to see if this edge case actually happens.
2022-09-24 02:40:11 +08:00
bunnie
d3daca9c5e migrate suspend/resume to the private server
this seems to resolve an issue where the time server fails to
suspend due to contention for the llio block.
2022-09-24 01:26:17 +08:00
bunnie
035bdaf986 complete wifi on/off interface
fully integrates wifi on and off commands. measured standby power
when wifi is off is "immeasurable" (0 mA), so probably < 1-2mA.

fix ui transitions so that the off request is respected, through
sleep/resume cycles as well.
2022-09-20 19:36:55 +08:00
bunnie
ec8a16f3d7 touch up some UI interactions 2022-09-20 15:54:48 +08:00
bunnie
851604f471 add translations and minor fixes to workflow 2022-09-20 01:51:40 +08:00
Gianguido Sorà
63757a3f91 Merge branch 'main' into gsora/wlan-manager 2022-09-19 11:41:35 +02:00
bunnie
ca5820cac9 add debugging note on SoC update path for hitting the paperclip reset 2022-09-18 13:46:34 +08:00
Gianguido Sorà
f63d69debc Merge branch 'main' into gsora/wlan-manager 2022-09-12 13:04:38 +02:00
bunnie
ec55f6de6d reduce the wait time on boot to PDDB mount
improves user experience, doesn't seem to impact startup
2022-08-05 04:56:37 +08:00
bunnie
b5f45ec9ec improve the wording of the menu option to setup passwords 2022-07-19 23:59:50 +08:00
bunnie
0a4702d6c3 clean up dialog messages to conform to the latest lexicon 2022-07-19 16:30:00 +08:00
bunnie
7ad418be7c fix bug where RestoreDna backup op fails to be set. 2022-07-19 05:26:48 +08:00
bunnie
d68e3c229d add "gutter" server for status thread so it doesn't block during autoupdates
this properly solves the issue of the keypress machine sending
notifications to a status thread that's not running: it creates
a dummy server that can drain the queue until the status thread
is ready to run properly.
2022-07-19 04:39:00 +08:00
bunnie
421542d9da add auto-rekey flow to boot 2022-07-19 03:17:21 +08:00
bunnie
83eb05273f sync the PDDB before doing a backup 2022-07-18 03:09:07 +08:00
bunnie
3550cec14a fix double-lock on rootkeys object 2022-07-17 03:12:49 +08:00
bunnie
37154f3350 add edge case handling for restore to new device
Just remembered that the PDDB is *locked* to a given device.
To restore to a new device, you have to unlock all the Bases,
and re-encrypt them to the new device's DNA.

This commit adds the facilities to detect this condition, but
the actual code to do this is quite involved...let's handle that
after we've got a "simple" restore to the same device going.

Why do we lock to a device's DNA? the idea is to prevent
attacks where people are taking static blocks of crypto data
and just swapping it between devices to see if they can
get something to decrypt. It also makes it harder for
an adversary to replace the physical device -- e.g., an
evil maid prepared a replacement with implants in advance, and they
image your PDDB onto the replaced device, hoping that you don't
notice. Because the PDDB is device-locked, the "evil maid"
would have to forge the devices DNA to match yours:
possible, but would require kernel mods that patch over the
reported ID; that would trigger the line across the top of the
screen; or, somehow editing the FPGA itself to force
its device ID to report the same as yours. This last attack
vector would be successful, but afaik there is no known way
to modify an FPGA's DNA code. I'm sure there is some proprietary
secret know that Xilinx uses to set it, and if you were
a large government you may be able to coerce Xilinx into giving
you those codes plus some tool that could set the fuses
plus some unfused devices (the fuses are burn-once) but....
2022-07-16 02:31:18 +08:00
bunnie
e1d946a18d other items for keyboard layout backup/restore 2022-07-16 00:39:34 +08:00
bunnie
abade9e1af minor fixes in the autoupdate flow
- do not try to create root keys if we just did an SoC update.
that's just too many things going on, we should definitely force
a clean reboot first.

- add a clean reboot step after a no-key soc update

- try to switch USB debug mode on if a backup was created
2022-07-14 19:26:09 +08:00
bunnie
239cdef1ef add enhanced debug to time 2022-07-14 03:50:13 +08:00
bunnie
d0c0fdd9ab fix forward-version autoupdate flow and change boot ordering
in order to trigger an update in early boot, all the security
sensitive servers have to have their connection tables occupied
(I guess the fancy term is the "capabilities" need to be allocated.
whatevs. #notanacademic).

This fixes the flow so those capabilities are occupied before
we get to the update check. Also fixes options to ignore updates.
2022-07-14 02:00:24 +08:00
bunnie
5847cb04cf improve resume error handling in the time block 2022-07-13 15:16:15 +08:00
bunnie
b4b6fc2a49 unbreak hosted mode 2022-07-13 05:01:36 +08:00
bunnie
85ced42465 add automatic checks for backup/restore on boot 2022-07-13 04:44:44 +08:00
bunnie
941d72f3c5 add a magic word check to the wf200 routine
avoids running an update if nothing is staged at all.
2022-07-12 03:31:54 +08:00
bunnie
ed2f029874 add SoC autoupdate flow options -- still needs testing 2022-07-11 18:36:00 +08:00
bunnie
f756c4ee66 note stats on quitting the updater thread 2022-07-11 16:27:13 +08:00
bunnie
3e8065ee56 quit the ec updater thread once we're done checking for updates
unless we're debugging, there is no more need for its resources
to be allocated.
2022-07-11 16:23:36 +08:00
bunnie
24c10dcfb2 bump the rate of update feedback slightly
slightly more aesthetic experience without too much performance
penalty.
2022-07-11 15:09:47 +08:00
bunnie
a90b5f2554 clean up autoupdate flow & clean up net link reset flow
We are now at a point where the EC update can be applied and the
net stack recovers gracefully, so no reboot is required in the
case of an EC update.
2022-07-11 15:07:53 +08:00
bunnie
d639b3db55 fix debug output 2022-07-11 04:13:04 +08:00
bunnie
70003b641f migrate ecup to the status thread
also rework the boot flow to have auto-update detect for EC updates
2022-07-11 04:05:53 +08:00
bunnie
ead5bd7dac enable gateware updates when no root keys are present 2022-06-30 22:58:54 +08:00
bunnie
77baf89d5c have time server retry on I2C error 2022-06-28 03:25:14 +08:00
bunnie
a0217d9ffd debug logic and whitespace 2022-06-28 01:14:38 +08:00
bunnie
95b4df1923 fix regression on suspend/resume on time server
seems like we're putting too much demand on the I2C bus
on resume at the moment, backing off the requests a bit
helps ease the logjam.
2022-06-28 01:13:25 +08:00
bunnie
be7d8a76a5 catch potential div by 0 on status redraw 2022-06-27 18:45:02 +08:00
bunnie
ac3f6a06fb fix status bar (ran out of precision during the floating pt refactoring) 2022-06-27 04:25:18 +08:00
bunnie
9f409fda2d fix basis search order issues
at least, it passes some simple tests. much more testing is needed.
2022-06-26 03:52:27 +08:00
bunnie
b9e1e69adb update a commment so we know not to change a particular constant 2022-06-25 00:21:46 +08:00
bunnie
78ea80f809 remove main() thread-wrapping for non-ditherpunk configs
saves a bit of memory
2022-06-19 21:39:29 +08:00
bunnie
82919637d8 remove TODO (@gsora confirmed everything is OK!) 2022-06-18 00:42:50 +08:00
bunnie
9eec4436ea some comment bookkeeping and whitespace cleanup 2022-06-18 00:17:35 +08:00
bunnie
ed555b8b7a add translations/modify wording 2022-06-18 00:02:40 +08:00
bunnie
6d2531804b
Merge pull request #191 from gsora/gsora/backlight-on-keypress
Automatic backlight on keypress
2022-06-17 23:55:44 +08:00
bunnie
cf89ebe5f5 add wrapper around main functions that need bigger stacks
This allows for `ditherpunk` config to have a much larger
stack size on select processes only.

The cost comes at a 4k fixed overhead for the sacrificial
wrapper thread, so we lose about 20k of runtime RAM, even
when ditherpunk is *not* activated (because we're
always wrapping the threads).

There is no impact on scheduling or CPU utilization, as the
wrapper thread blocks and is never scheduled once the real
main starts. However, it does subtract one thread from the
total available thread pool.
2022-06-16 03:40:19 +08:00
Gianguido Sorà
cfbc6eeed3 feat: embed plain-text name in op num, implement stored network delete 2022-06-14 16:22:23 +02:00
bunnie
8cb632180c fix fractional decimal places on integer conversions 2022-06-14 04:30:58 +08:00
bunnie
7b2fbdc88b evict f64's from the kernel, and eliminate f32 parsing
turns out these routines add quite a bit of bloat to the kernel
for only cosmetic reasons.
2022-06-14 04:14:25 +08:00
Gianguido Sorà
d7eb53664e chore: move automatic backlight in status crate
Let's not use a precious process just for some a backlight effect :-)
2022-06-13 16:33:44 +02:00
Gianguido Sorà
1ebf3316e7 feat: wire keyboard backlight controls to main menu 2022-06-10 17:14:38 +02:00
Gianguido Sorà
0ff4e569c1 Merge branch 'main' into gsora/backlight-on-keypress 2022-06-10 17:12:52 +02:00
bunnie
e32ea4d3f5 fix #174 2022-06-10 21:36:53 +08:00
Gianguido Sorà
4115c9b2cd feat: wire keyboard-backlight to status menu 2022-06-10 14:33:33 +02:00
Gianguido Sorà
014dcfd612 status: add wifi management menu 2022-06-10 12:20:39 +02:00
bunnie
9ee306315e fix warnings that result from the PDDB mutability change 2022-05-31 23:55:12 +08:00
Sean Cross
3ae9d8abf0 apps/services: remove xous::xous_main macro usage
This macro will be removed, since it is no longer necessary. Remove this
macro across the project and replace it with a standard `main()`
function.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-05-31 13:33:30 +08:00
bunnie
62cbc86aeb add automation strings 2022-05-24 23:21:26 +08:00
bunnie
c7f9688b5f have status point to the USB crate for USB checkup 2022-05-17 02:25:44 +08:00
nworbnhoj
0e561802ce enable notification modal text + qrcode
change the notification modal to accept the primary message and an
Option of independent text to display as a qrcode

pub fn show_notification(&self, notification: &str, qrtext:Option<&str>) -> Result<(), xous::Error> {}
2022-04-24 21:29:15 +10:00
bunnie
55197e97f4 fix white space 2022-04-22 15:56:11 +08:00
bunnie
2c3143f790 Merge branch 'main' into multi-text-modals 2022-04-22 15:54:18 +08:00
Gianguido Sorà
c2e619949c status: use new multi-text modals to take time 2022-04-13 15:50:07 +02:00
bunnie
cd8c762c55 patch up QR code PR, change method signature as discussed
now any modal notification can also render as a QR code
2022-04-08 15:19:56 +08:00
Gianguido Sorà
8123393a7d Merge branch 'main' into feature/multi-text-modals 2022-04-07 16:39:03 +02:00
bunnie
c36d0d4111 remove an unnecessary xns registration 2022-04-07 00:20:07 +08:00
bunnie
33d8275321 refactor I2C to use deferred message responses instead of busy waits
This is a start on issue #111, where instead of starting a throw-away
server and doing a "yield" loop to emulate blocking behavior, messages
are instead stored so they don't drop, thus keeping a blocking
message blocking.
2022-04-06 03:35:43 +08:00
Gianguido Sorà
5c975fdee4 make single-field modals accept a placeholder 2022-04-05 16:28:58 +02:00
bunnie
5b8e53aacb remove "log" feature from NTP crate, trims off some executable size 2022-04-05 13:32:23 +08:00
bunnie
532c4a4f1f add NTP to time setting via SNTP library 2022-04-05 04:19:53 +08:00
bunnie
cfcea2e094 shift the status bar a bit more
as uptime goes up, the width gets larger...
2022-04-04 04:54:37 +08:00
bunnie
ba18f3cbe2 don't try to reset the RTC alarm in hosted mode
there isn't an RTC in hosted mode!
2022-03-30 23:33:00 +08:00
bunnie
d8065b76df turn off RTC wakeup alarms
This call was originally part of the RTC driver, but when we
refactored things out, this was forgotten.

So, what would happen is, if you did a coldboot or reboot,
an alarm would get set and...well, the way the RTC blocks
is it'll keep asserting the alarm until you clear it.

This prevents the system from sleeping, and also keeps
the CPU pegged at 100% for some reason. The prevention
from sleeping makes sense to me. The CPU at 100% probably
indicates there's a problem in the event router, but
this path isn't used for anything at the moment so
we'll just open an issue and leave it as technical debt.
2022-03-30 02:27:14 +08:00
bunnie
c8382a671a move the CPU status bar slightly to address text overflow issues 2022-03-29 16:54:27 +08:00
bunnie
2da52a1d5c fix millis vs seconds bug in hosted mode 2022-03-28 15:39:42 +08:00
bunnie
bd78ba94f1 refactor time setting modals into a separate thread
modals don't work when triggered in the status thread in hosted
mode (but they do, somehow, on real hardware). I think this
is an actual locking problem that would exhibit itself if
we had a true multiprocessor system, but since real hardware
is a single processor it doesn't show.
2022-03-28 15:25:43 +08:00
bunnie
c69b9e451d unbreak hosted mode 2022-03-28 04:04:38 +08:00
bunnie
c78273f540 refactor time setting to make a little more sense
now you set time in local time. If time zone hasn't been set already,
it'll prompt you to enter a time zone.

The main oddity is now that you have to know your time zone as
an offset from UTC. This can be fixed later with a proper symbolic
TZ to numeric mapping, but, that's actually a surprisingly hard
feature to implement.
2022-03-28 03:37:27 +08:00
bunnie
ed8f4d71cf fix suspend/resume issue with RTC (forgot to mask out bits on control register) 2022-03-28 01:19:02 +08:00
bunnie
a7912b6296 fix a swap on pub/priv server to susres 2022-03-27 17:08:04 +08:00
bunnie
ee4511c35d rework menu items and ordering
init for RTC shouldn't appear until keys are initialized and
PDDB has been mounted.
2022-03-27 16:45:22 +08:00
bunnie
340cd89661 update status to use the new RTC functions for time
Time is replaced with error messages that indicate either time has not
been set ("Set Time"), or the PDDB has not been mounted (it says
"Login?"), if there is an error. otherwise it displays time
in the local timezone.

Time setting is kind of awful in that you have to enter the time
as UTC. And then a timezone as an offset in hours from UTC. It's
very bare-iron.
2022-03-27 04:06:42 +08:00
bunnie
96f0a0d2ea add the actual thread to the code base and clean up some warnings.
Next up:
 - code up libstd glue
 - code up test cases
2022-03-26 02:42:42 +08:00
bunnie
b59e2ae2bf add reference to the time server.
We still need to *start* the thread, ya know...
2022-03-26 02:37:30 +08:00
bunnie
86ab8c392d add libstd time handler glue stubs 2022-03-26 02:34:38 +08:00
bunnie
bfb8a17cd5 strip out legacy RTC calls in preparation for refactor 2022-03-24 02:19:26 +08:00
bunnie
b1f8c1ea1b add power-on indicator for tts mode 2022-03-17 18:41:12 +08:00
bunnie
19b9b817a4 add a battery disconnect option to the main menu
this will disconnect the battery and put the device in a very low power
state, and you can only power it back on again by plugging it into
a power source briefly.
2022-03-17 03:37:34 +08:00
bunnie
3f6c2a6a5f fix a misplaced comment 2022-03-11 21:26:48 +08:00
bunnie
bbccf1c2a7 reached a reasonable integration point for tts until braille protos are in
tts is working fairly well and much more stably, menus and ui
elements are wired up for tts.

just waiting for the latest braille keyboard pcb to come in and
then we'll be able to fire off some prototypes...
2022-03-11 19:08:39 +08:00
bunnie
c44f794dfe baseline before moving onto the next stage 2022-03-11 00:03:31 +08:00
bunnie
e8b13fcb44 integrate TTS into more dialog boxes and modals
also tighten up the `blocking` method for TTS for prompts that
absolutely should not be truncated or overriden.
2022-03-10 23:40:35 +08:00
bunnie
21ad8d9283 change en-audio to en-tts 2022-03-10 15:38:55 +08:00
bunnie
71d9cc38af fix (or at least improve) simultaneous tts initiation crash 2022-03-10 04:00:09 +08:00
bunnie
a9a5e5c9a9 integrate app name in sec notes patch, make app name update retriggered on change 2022-02-24 19:44:24 +08:00
Gianguido Sorà
b47c7b2793 Add current app name in security notes
This commit adds the current's app name to the security bar at the top
of the screen, just beneath the status bar.
I had to add a new generated function to map app index back to its name,
along with an enum to signal whether or not the id is valid.

Signed-off-by: Gianguido Sorà <me@gsora.xyz>
2022-02-24 19:29:45 +08:00
bunnie
764b4be6b1 clean up status line overrun if text fitting went errant 2022-02-21 00:03:28 +08:00
bunnie
8dd991b534 reduce debug spew 2022-02-15 22:25:07 +08:00
bunnie
c86df3d095 fix logic bug in usb lock status update 2022-02-06 01:31:08 +08:00
bunnie
fd5c6568d1 trim out some excess redraw calls that are slowing down boot 2022-02-05 18:55:46 +08:00
bunnie
a7c9027d05 make the COM reset no longer open loop; unblock as soon as EC responds 2022-02-05 15:44:47 +08:00
bunnie
30910dbd4f add keyboard layout setting and retention
Keyboard setting is "the one and only" exception to user settings
that are saved without encryption. This is because you need your
keyboard layout to be set in order for you to type your password.
Thus, this needed a bit of a special-case to handle its storage record.

We decided to lop off 1 page from the loader and have it store
the keyboard layout code.

Let's hope we can have the discipline to really just store that
one word of information and not later be like "gee wally, you have
a whoooole 4092 unused bytes of space we can cram unencrypted
user settings in, sure would be a waste to not put those use those".
2022-02-03 02:46:37 +08:00
bunnie
a4752dbb59 app manifest and auto-gen infrastructure 2022-02-02 16:18:06 +08:00
bunnie
05df4486ee incremental changes toward a manifest-format app system 2022-02-02 03:57:00 +08:00
bunnie
925d53f646 TCP listener is "working"
Good enough so that if you type `net server` and you hit the IP
address of the device, it'll respond with something like

Hello from Precursor!
I have been up for 86087 ms.

There's still all kinds of bugs, I'm sure. But ... I'm also not
sure /why/ you would want a web server on Precursor. This is more
just to make sure that the TCP stack isn't totally broken.

The "web server" as it may be is quite broken and doesn't parse
any headers and probably sends a bogus amount of data because
I can't figure out if the content length includes some new lines
or not. But really, this just isn't in scope. Works with Chrome,
Firefox shows the status page and then says "connection reset" and hides
all the information. Whatever, browser compatibility is well beyond
my pay grade!
2022-02-01 18:54:07 +08:00
bunnie
944a1b1672 fix format specifier 2022-02-01 01:20:23 +08:00
bunnie
7c93b16c13 minor tweaks
The japanese phrase for "disconnected" is very long and doesn't
fit in the allocated space :-/ something to think about in the future.
2022-02-01 01:19:31 +08:00
bunnie
5c91645ede Merge branch 'i18n-jp' into bunnie-dev 2022-02-01 01:04:43 +08:00
bunnie
4690075c40 clean build, but...much testing to do. 2022-01-31 04:03:31 +08:00
Jeanie
d1c443f62e
Merge branch 'i18n-jp' into i18n-jp 2022-01-30 19:25:33 +09:00
Jeanie
58e8120526 ja translations added 2022-01-30 19:23:49 +09:00
bunnie
cf485fbbb2 add a check if the stats bar overflowed its bounds, redraw secnotes if that happens 2022-01-29 17:16:52 +08:00
bunnie
0dbe05dd46 document magic constants 2022-01-28 16:33:06 +08:00
bunnie
9f124c646c more constants fixing 2022-01-28 16:31:34 +08:00
bunnie
de1f6f942d fix out of range consntant 2022-01-28 16:29:24 +08:00
bunnie
f7ea782e73 fix some ergonomics around the status bar 2022-01-28 16:28:06 +08:00
bunnie
a4d84ae290 clean up cosmetic bits on uptime rendering 2022-01-25 17:09:03 +08:00
bunnie
18b97cea83 fix battstats decimal places on wattage 2022-01-25 16:48:44 +08:00
bunnie
75d41cfb1a fiddling with icons 2022-01-25 15:17:55 +08:00
bunnie
65bd1d416a improve the iconography of the status bar 2022-01-25 15:02:25 +08:00