Commit graph

10340 commits

Author SHA1 Message Date
bunnie
1c0a9fab34
Update RELEASE-v0.9.md 2022-04-23 00:13:22 +08:00
bunnie
8d0e3e6958 Merge branch 'main' into usbdev 2022-04-22 19:41:03 +08:00
bunnie
c539a1348e
Merge pull request #140 from gsora/feature/multi-text-modals
feature: multi-text TextEntry modals
2022-04-22 19:39:24 +08:00
Gianguido Sorà
548049d8d5 restore format on save for vscode 2022-04-22 12:21:42 +02:00
Gianguido Sorà
1fb0c2e6a2
Merge pull request #1 from betrusted-io/multi-text-modals
Multi text modals
2022-04-22 12:02:58 +02:00
bunnie
987f40f5de minor fixes to multi-modals input
- track field heights using the drawing height directly
- use an &mut reference in the text processing section so changes stick
- other minor cosmetic improvements
2022-04-22 17:44:25 +08:00
bunnie
34c2ffe1a3 fix password entry to work with the new return type
also requires a call to `reset_action_payloads` for the
number of field elements to be recorded correctly!
2022-04-22 17:43:26 +08:00
bunnie
55197e97f4 fix white space 2022-04-22 15:56:11 +08:00
bunnie
4ddd414ed6 fix modals API in the PDDB migration code 2022-04-22 15:55:15 +08:00
bunnie
dd462aebb2 remove trailing/open white spaces 2022-04-22 15:54:43 +08:00
bunnie
2c3143f790 Merge branch 'main' into multi-text-modals 2022-04-22 15:54:18 +08:00
bunnie
bac6c25bfe conversion toward standard testing method 2022-04-22 15:10:51 +08:00
bunnie
fa1ddbebaf Merge branch 'main' into usbdev 2022-04-22 02:57:39 +08:00
bunnie
750de11674 add a SoC version that includes a strawman USB device block
this block needs to be first activated by flipping a mux,
and then drivers need to be written. wooo...drivers...
2022-04-22 02:56:33 +08:00
bunnie
02daea2f0e add a note for STAGING area as well 2022-04-22 02:48:52 +08:00
bunnie
5bdd3a9f51 modifications to prepare for enhanced USB security
The next release will feature an access control on USB so that
root keys and the encrypted gateware cannot be read back and
transitively the writes would be guttered (but this is not a problem
because the write target address is not set by the memory location
of the write, it's actually set by the location specified in
the program command to the FLASH).

This means that the updating program has to be modified accordingly;
now, for writes, a single location is targeted (and as alluded above,
this is funneled to a write FIFO buffer, and then the actual address is
set with the page program command); and for readback, attempts to read
back the SoC area are flagged and noted as impossible due to security
precautions.
2022-04-22 02:48:43 +08:00
bunnie
19a025975e add a note for STAGING area as well 2022-04-22 02:47:55 +08:00
bunnie
d9322366cf modifications to prepare for enhanced USB security
The next release will feature an access control on USB so that
root keys and the encrypted gateware cannot be read back and
transitively the writes would be guttered (but this is not a problem
because the write target address is not set by the memory location
of the write, it's actually set by the location specified in
the program command to the FLASH).

This means that the updating program has to be modified accordingly;
now, for writes, a single location is targeted (and as alluded above,
this is funneled to a write FIFO buffer, and then the actual address is
set with the page program command); and for readback, attempts to read
back the SoC area are flagged and noted as impossible due to security
precautions.
2022-04-22 02:44:04 +08:00
bunnie
b58b8df398 add a maintainer's note 2022-04-22 02:43:49 +08:00
bunnie
ef4ac4f58b fix more merge problems 2022-04-21 18:01:24 +08:00
bunnie
188a18976c clean up merge conflicts 2022-04-21 17:57:42 +08:00
bunnie
c3e5b23dd3 Merge branch 'main' into usbdev 2022-04-21 17:56:28 +08:00
Sean Cross
b829783e7d emulation: wf200: implement "Disconnect" verb
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 12:00:12 +08:00
Sean Cross
a74199829a emulation: add initial TLV320AIC3100
This audio codec lives on I2C and doesn't really do much for us.
However, by adding this device we can now pass `test oqc`.

The next step will be to implement `BetrustedI2S` which is where the
actual audio emulation occurs.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 11:42:02 +08:00
Sean Cross
aded1e9800 Merge branch 'main' of github.com:betrusted-io/xous-core 2022-04-21 10:36:55 +08:00
Sean Cross
e15649ccd5 svd2repl: add susres
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:20:19 +08:00
Sean Cross
582be287f4 emulation: add susres to emulation
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:20:00 +08:00
Sean Cross
0992b519b5 emulation: load bootloader from ROM
By loading the bootloader from ROM instead of from ELF, we ensure that
.bss and friends aren't overwritten.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:19:02 +08:00
Sean Cross
2979f4453f emulation: ensure peripherals are reset
Add a `Reset()` call to many more peripherals to ensure they are reset
when the board is reset.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:18:35 +08:00
Sean Cross
d7c2033273 emulation: keyboard: support "Wake Up" sequence
The hardcoded sequence "F1+F4" will wake a device that is suspended.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:16:36 +08:00
Sean Cross
b5a858938a emulation: add separate TAP and Linux implementations
Add one script that starts up a TAP connection as well as a second one
that uses a native Linux machine.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:15:12 +08:00
Sean Cross
86c4a6813d susres: add initial suspend/resume implementation
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:14:46 +08:00
bunnie
6a4d79dfe1 update Cargo.lock to reflect the latest PR 2022-04-21 02:43:54 +08:00
bunnie
94fff6b624 add some missing features to the release notes 2022-04-21 02:43:40 +08:00
bunnie
012a4d4673
Merge pull request #138 from vmedea/minifb-0.23
Update minifb to 0.23.0
2022-04-20 20:19:09 +02:00
bunnie
ee39b9643e add a timeout for the network to disconnect before starting update
this is to avoid panics due to malformed "packets" being received
as the EC is updating and not working correctly.
2022-04-21 01:22:17 +08:00
Mara Huldra
aa360a9733 Update minifb to 0.23.0
Minifb 0.23 fixes a serious wayland keyboard issue.
2022-04-20 18:28:16 +02:00
Sean Cross
b72b4825f0 emulation: add jtag peripheral
This initial draft of the jtag peripheral is enough to get the test
started.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-20 21:29:09 +08:00
Sean Cross
df03f8c820 emulation: bq27421: correct endianness
Because of the previous commit, endianness was incorrect and we weren't
reading the full range of values.

Correct the endianness and support continuous reads. Also expose various
settings so they may be adjusted.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-20 21:27:51 +08:00
Sean Cross
cd19fcba57 emulation: ec: i2c: allow reading multiple registers
Previously, the code would only allow for reading one register at a
time. This caused that one register to be duplicated repeatedly.

As a result, readings such as Voltage were incorrect.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-20 21:26:58 +08:00
bunnie
b39f4c38eb fix update scripts so updates don't wipe root keys :-O 2022-04-20 17:15:46 +08:00
bunnie
9878dfc1a9 add a note about resetting the device properly after an update 2022-04-20 17:03:02 +08:00
bunnie
a31030bf90 remove excess wait state and clarify wait text 2022-04-20 16:59:19 +08:00
bunnie
15105cd0b2 fix update scripts to prevent device from self-resetting during updates 2022-04-20 16:57:10 +08:00
bunnie
e6ef6f81e9 move v0.9.8 to release status on README 2022-04-20 16:11:55 +08:00
bunnie
aa6bf1230a absorb v0.9.8 tagged SoC 2022-04-20 16:11:30 +08:00
bunnie
6e306bdebf update release notes 2022-04-20 03:54:15 +08:00
bunnie
38d6765586 fix remaining bugs in migration, tested and passing on CI + real hardware 2022-04-20 03:48:05 +08:00
bunnie
4f9f1116fc fix various bugs in pddbg
note that there is still pddbg_v1 for the older version of the pddb
2022-04-20 03:47:17 +08:00
bunnie
758ed1ba31 some more fixes to pddbg to bring it up to v2. now passing CI. 2022-04-19 23:28:47 +08:00