Commit graph

10340 commits

Author SHA1 Message Date
nworbnhoj
a89a344480 update mtxchat README.md 2023-09-25 21:10:35 +10:00
nworbnhoj
61c1747475 integrate tls trusted root_store into mtxchat
Set up tls with rustls::ClientConnection,
BUT - on Error::InvalidCertificate - then
probe the host for the untrusted certificate chain and prompt the user
to perhaps trust one of the certificates in the chain - then try again.
2023-09-25 11:22:47 +10:00
bunnie
e6c61455ba update PIO code for SoC integration
- add duart debug for bare iron testing
- add wait states on FIFO commits for when CPU clock is much
faster than PIO clock.

more wait states will be needed for correct operation in the
future
2023-09-22 22:19:32 +08:00
bunnie
b8125a5b1f add @xobs patch to get a local-only interface working
EC can talk to the emulated/fake network, but this network
does not have connectivity to the outside world.
2023-09-21 18:39:32 +08:00
bunnie
122febafea remove status from mtxcli 2023-09-20 22:13:33 +08:00
bunnie
08827633ac bring Chat dependencies up to date 2023-09-19 19:41:56 +08:00
bunnie
a00672cd27 fix missing use statements in tls lib 2023-09-19 19:39:27 +08:00
bunnie
0ebc921083
Merge pull request #415 from betrusted-io/revert-414-revert-409-tls.probe
Revert "Revert "Tls.probe""
2023-09-19 19:28:44 +08:00
bunnie
b3e9108bb7
Merge branch 'main' into revert-414-revert-409-tls.probe 2023-09-19 19:28:30 +08:00
bunnie
3b4bfb3a3a bump lockfile 2023-09-19 19:14:39 +08:00
bunnie
0bfb004213 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-09-19 19:13:44 +08:00
bunnie
9f57ad96fd
Merge pull request #408 from nworbnhoj/chat
mtxchat app and chat library
2023-09-19 19:09:56 +08:00
bunnie
c5d81ef08b
initialize menu before mounting PDDB
This is necessary because mounting the PDDB is a "secure" operation, and secure ops will fail until all UX contexts are occupied.

This problem does not manifest in hosted mode because we cheat and automount the PDDB in hosted mode.
2023-09-19 19:08:36 +08:00
bunnie
05d7e26ab7
remove status which is not a target
status doesn't have a `lib` configuration, so it can't be a target for mtxchat
2023-09-19 17:45:22 +08:00
bunnie
7a9f216405
bump xous pins
this should help the merge go more smoothly
2023-09-19 17:37:02 +08:00
bunnie
9561f6364b note the current regressions in the release notes :-/ 2023-09-19 15:01:23 +08:00
bunnie
0d7601ddb8 turn off aggressive optimizations
In Rust 1.72, too many things are breaking when default optimizations
are turned on, and I don't have the time to figure out what is breaking.

But issue #416 makes me think that the issue isn't our code, it's
something in llvm.
2023-09-19 14:45:19 +08:00
bunnie
000d6606ce helps to actually have the line uncommented for the fix to work... 2023-09-19 01:59:38 +08:00
bunnie
d94ceb8115 add ct_eq disassembly listings so we can discuss in issue #416 2023-09-19 01:00:51 +08:00
bunnie
43b0beecd4 add work-around to keep ct_eq from being optimized out
See #416 for details
2023-09-19 00:58:50 +08:00
bunnie
bdf70ab0e4 refactor API to upgrade subtle API in attempt to fix ct_eq problem
this didn't work, but, it's probably worth leaving the change in
place because this might fix other stuff we don't know about.
2023-09-18 23:55:33 +08:00
nworbnhoj
49936abc97 fix mtxchat.login() 2023-09-18 19:10:16 +10:00
nworbnhoj
7803efec7f pass room_alias aka dialogue_id aka dialogue.pddb_key to mtxchat.listen()
this ensures that new Matrix Events received from the server are added to the correct chat::Dialogue
2023-09-18 18:49:59 +10:00
nworbnhoj
65cc7feb05 implement mtxchat.room_alias() 2023-09-18 18:24:33 +10:00
nworbnhoj
b413345ac1 fix mtxchat.client_sync() url query contruction 2023-09-18 18:21:25 +10:00
bunnie
8a67c95d70 cleanup new lints from Rust 1.72 2023-09-17 17:38:49 +08:00
Sean Cross
c1dae9d999 Merge branch 'main' of github.com:betrusted-io/xous-core 2023-09-17 16:29:59 +08:00
nworbnhoj
b890c419c9 mtxchat refine url construction 2023-09-17 11:14:43 +10:00
nworbnhoj
124f949576 fix mtxchat new_user & new_room help 2023-09-16 06:59:08 +10:00
nworbnhoj
65dcf64720 fix mtxchat login() 2023-09-16 06:57:44 +10:00
bunnie
7db56d59f9 update generated soc utralib file 2023-09-15 20:45:43 +08:00
bunnie
f04d7bebe7 update latest SVDs to RTL 2023-09-15 20:45:15 +08:00
bunnie
f49cab6ca7 cfg fixes, this time testing against both possible targets 2023-09-15 19:30:55 +08:00
bunnie
24cfa557af "fix" cramium-fpga target
this doesn't have the udma uart so just bypass that new code
2023-09-15 17:10:08 +08:00
bunnie
661b832d7e Merge branch 'cram-udma-uart' into main 2023-09-15 16:34:56 +08:00
bunnie
7e8e9e3146 bump lockfile 2023-09-15 16:34:06 +08:00
bunnie
82c7b6ebed bring the versions up to date with main for a cleaner merge 2023-09-15 16:32:04 +08:00
bunnie
0152d013e6 mod the logger to use the UDMA UART
should also be using the more efficient buffer-based DMA routine
to write characters, allowing the CPU to yield its slice more
efficiently during logging events
2023-09-15 16:26:11 +08:00
bunnie
e2ba706f4b modify loader to setup the console UART
this avoids a bunch of nasty pinmux stuff that would have to
go into the console logger at early boot
2023-09-15 16:25:44 +08:00
bunnie
5116d51de5 move kernel UART to DUART port
using the DUART means we don't get console input on the kernel
(because the DUART is incapable of this) but it's a decent compromise
I think because the DUART is fast and efficient, and mostly we want
it to capture kps?

Eventually we'll need an input mode but for now, this will get us
moving.
2023-09-15 15:21:18 +08:00
bunnie
885e877b43 add features for mdma test to control RAM src/dest regions
The MDMA controller seems broken on the FPGA board, but is working
in RTL. Add a feature flag that allows us to toggle between modes.
2023-09-15 15:09:20 +08:00
bunnie
07303dccc2 add FPGA target to loader clock settings
this might want to get a more graceful feature option wrapped
around it but i'm hoping the unpleasantness of developing on
the FPGA board is...temporary??
2023-09-15 11:25:35 +08:00
bunnie
ab8a5aefcf fix target dependency options 2023-09-15 11:25:22 +08:00
bunnie
49eaac1b46 fix port I/O settings 2023-09-15 11:25:08 +08:00
nworbnhoj
0fbd331f37 mtxchat ensure longer keys are properly replaced 2023-09-15 07:08:07 +10:00
bunnie
d47bc1af0a remove pio_generated, we should now be relying on utra 2023-09-14 16:25:14 +08:00
bunnie
2387aa4dff migrate to latest pio; tweaks to PIO tests 2023-09-14 16:24:39 +08:00
nworbnhoj
4453d9629f mtxchat update readme with prereq net tls probe matrix.org 2023-09-14 06:01:17 +10:00
nworbnhoj
61743a9c76 mtxchat tidy-up 2023-09-14 05:30:33 +10:00
nworbnhoj
7837df02d4 mtxchat break-out listen server into mod 2023-09-14 05:25:51 +10:00