Commit graph

10340 commits

Author SHA1 Message Date
nworbnhoj
3392b30794 fix Chat::Dialogue.post_add() duplication 2023-08-12 06:36:28 +10:00
bunnie
0931e02400 clarify reboot after bbram helper runs 2023-08-11 17:10:47 +08:00
Vihaan Jim
5186a723f5 Add GAM menu token handling
This adds the tokens for app submenus. I am now successfully able to
load `vault'!
2023-08-10 20:09:19 -04:00
Vihaan Jim
7532a34769 Switch from Vec to MemoryRange
Instead of getting the slice by creating a large Vec, I now use
MapMemory to create this region directly. There is some sort of bug
with Vec that doesn't allow creation of large Vec's, and this change
makes it possible to load much larger apps (including `vault',
although there are still issues like menus to sort out).
2023-08-10 18:11:49 -04:00
nworbnhoj
0ef1d79725 refine Chat::Dialogue.post_find() 2023-08-11 06:40:37 +10:00
nworbnhoj
dc8102c627 refine Chat::Dialogue.post_add() 2023-08-11 06:04:02 +10:00
nworbnhoj
ca211e170a implement mtxchat.connect() 2023-08-11 05:24:50 +10:00
nworbnhoj
62a3bae502 extend chat::Dialogue to accept Option<pddb_key>
extend ui.dialogue_set() to select existing Dialogue when operating offline
2023-08-10 20:22:15 +10:00
nworbnhoj
defac5ed7e implement chat.dialogue_modal()
allowing the chat UI to list & select an existing dialogue in the current pddb dict
2023-08-10 20:15:00 +10:00
Vihaan Jim
ec6fad51f5 Slight menu change
I have moved the items to load specific apps to a new menu so that it
will be easy to modify when we want to reload the list.
2023-08-09 21:43:55 -04:00
Vihaan Jim
20b978a126 Add English locales
I have not added translations for other languages yet
2023-08-09 17:33:20 -04:00
Vihaan Jim
698df7007c Add another progress bar + go back to menu
I have added another progressbar when the list of apps is being
loaded (I find that this makes stuff more clear).

I also discovered that if I use gam to "switch" to app-loader from
itself this works at bringing the menu back up
2023-08-09 14:49:54 -04:00
Vihaan Jim
9fc988186b Working + somewhat improved UI!
`app-loader' can now successfully download apps from the app server
and run them! I have also improved the UI by adding a progressbar
when an app is loading so that you know when it is done and also
replacing some panics with notifications that way the whole machine
doesn't shut down if the server has some problems.

The remaining UI work is to make sure that the menu pops back up when
you for example set the server.

I also need to add locales, a README, etc.
2023-08-09 13:49:33 -04:00
bunnie
6fc3745ebd absorb latest cramium artifacts 2023-08-09 23:18:44 +08:00
bunnie
92074230b3 cleanup spurious error on abort ack path
when the target aborts the transaction, we don't get an abort_done
interrupt, because we explicitly acknowledge the abort by asserting
it on our side (I mean, we could modify the protocol to generate
an interrupt but it would be redundant).
2023-08-09 23:17:36 +08:00
Vihaan Jim
2d74a44a89 Add almost working server/client
This creates:
1) An `xtask' command that allows someone to compile individual apps
without compiling the entire image (note that this is required because
xtask generates files that contain gam context names, and if you just
do a regular `cargo build' building the app will fail)
2) A python file app_server.py that acts as a server to give the
app-loader a list of the apps and actually send it the
3) A basic UX that allows app-loader to set the server, get the list
of apps, and load apps.

Currently, this mostly works, except that there is some random
`ShareViolation' when the app-loader loads the app.
2023-08-08 18:08:25 -04:00
bunnie
c79edf3fa5 harmonize simulation models to soc description 2023-08-09 03:10:11 +08:00
bunnie
a735cfa602 point to the latest release for restores 2023-08-08 22:22:06 +08:00
bunnie
ba5fedf353 mbox fixes for soc target 2023-08-08 21:14:29 +08:00
bunnie
4bb9e5f6e9 format debug output on RTC to be hex so we can compare it directly to other debug outputs 2023-08-08 20:30:38 +08:00
bunnie
162b87b9b0 update cramium register descriptions 2023-08-08 18:18:48 +08:00
bunnie
895afbac7c fixes to mbox test cases (cramium) 2023-08-08 18:18:32 +08:00
bunnie
fb9866291a add missing release notes 2023-08-08 14:49:25 +08:00
bunnie
cb4a2589e6 fix verifier pin and bump lockfile 2023-08-08 14:44:15 +08:00
bunnie
53469a68d0 publish package updates, sync to release tag 2023-08-08 14:35:49 +08:00
bunnie
3deccfad2f update local SoC binary to track release 2023-08-08 14:31:27 +08:00
nworbnhoj
278fb8640a embed room_modal into mtxchat::get_room_id() 2023-08-08 07:20:01 +10:00
nworbnhoj
c3379b08e0 embed login_modal into mtxchat.login() 2023-08-08 05:30:35 +10:00
bunnie
93a2dc0515 add option to type usernames as well as passwords
passwords is the "quick default", you have to pop down by
one on the menu to type a username.

This should address #401.
2023-08-08 01:19:51 +08:00
bunnie
df663c32d2 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-08-08 00:25:43 +08:00
bunnie
5c4874450e fix #400
This fix causes the script to exit if `--config` was selected.
You will need to run

`python3 -m pip install --upgrade precursorupdater`

to pull in the fix. It should be live now.

Thanks for reporting this bug.
2023-08-08 00:22:45 +08:00
bunnie
7da82f8753
Merge pull request #398 from betrusted-io/rust-1.71.0-libstd-warning
Suggested method to preserve intent of `drop` to fix clippy warning
2023-08-08 00:05:51 +08:00
bunnie
c962bab71f
Merge pull request #405 from spoelstraethan/main-1
Add backup tips and caveats
2023-08-07 23:43:47 +08:00
spoelstraethan
338cbea495
Add backup tips and caveats 2023-08-06 22:51:11 -05:00
nworbnhoj
50f06e2f78 implement mtxchat::MtxChat::listen() 2023-08-07 06:20:15 +10:00
Vihaan Jim
97bfd06bfe Cleanup
I have made `app-loader' more object oriented (to fit in with the
style of the other xous apps), and I am moving some of my personal
projects to another branch of my repo
2023-08-05 12:11:01 -04:00
Vihaan Jim
2d6e12f6b3 Fix to allow `app-loader' to switch app
`EXPECTED_APP_CONTEXTS' was added to the list of authorized
switchers. I don't think this is ideal, but I think it would be
difficult to come up with a better solution that doesn't make
`app-loader' "special" in some way.
2023-08-05 09:59:20 -04:00
Vihaan Jim
1e645a4b94 Allow registration of GAM names
This allows `app-loader' to register new names (which are then used by
the loaded apps to claim tokens). At the moment this is restricted to
apps that are pre-registered, i.e. included in the image.
2023-08-04 21:32:35 -04:00
Vihaan Jim
9eeed0d284 Add distinction between p_filesz and p_memsz
It turns out that in ELF files there *is* a difference between
file size and mem size. Mem size is the size of the chunk of memory,
but file size is the size of what we copy into there from the
file. Most of the time they are the same, which is why previously
`spawn' only considered mem size, but this caused issues.

In particular, in the xous implementation of the rust standard
library, there whenever something is allocated it has to first check
an AtomicI32 LOCKED to see if it is 0 or 1, and set it to 1 when it is
allocating so that only one thing is allocating at a time. However,
the mem size for the section containing LOCKED is larger than the file
size, meaning that `spawn' copied more of the file that it should
have. This lead to junk being put into LOCKED, which caused the new
process to assume that something else was perpetually allocating.

Now, `spawn' puts 0's in the space between the end of the file size
and the end of the memsize, which makes everything work as expected.

The only problem remaining is that when an app registers for GAM, GAM
checks whether the app is allowed to register, which is based on what
apps were included in the image. Obviously, this does not work when
you are trying to load apps that are not already in the image
2023-08-04 17:54:06 -04:00
nworbnhoj
9db7a3c2c5 refactor chat timestamp to u64 2023-08-04 09:17:43 +10:00
nworbnhoj
29d06e18bf mtxchat cache user_id 2023-08-04 05:26:34 +10:00
nworbnhoj
4deefa712f rename mtxchat get_default() to get_or() 2023-08-04 05:23:44 +10:00
bunnie
c109410352 bump lockfile 2023-08-04 01:32:32 +08:00
bunnie
e18869807a add a DMA + PIO test
validates that we can setup a DMA to bitbang an output from a region
of RAM. This will be handy for e.g. driving random displays etc.
2023-08-04 01:31:58 +08:00
bunnie
8bae8ed03d remove unused targets 2023-08-04 01:31:48 +08:00
bunnie
e05c34c6be more fixes on the register space for cramium target 2023-08-04 01:31:28 +08:00
bunnie
b127cd093f bump version pins for change to xous-rs 2023-08-03 13:29:39 +08:00
bunnie
1205f0d6fd Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-08-03 13:28:28 +08:00
bunnie
2e3c774604 pull in latest cramium artifacts 2023-08-03 13:28:04 +08:00
Sean Cross
2858ac6bbe
Merge pull request #402 from vihaanjim/process-startup-fix
Fix `ProcessStartup'
2023-08-03 08:17:52 +08:00