Commit graph

5452 commits

Author SHA1 Message Date
bunnie
5d596c2e00 add some code to remind myself about certain guarantees 2023-04-17 03:42:27 +08:00
bunnie
a105bcb73c these changes were not supposed to be committed 2023-04-16 02:38:09 +08:00
bunnie
6c1769328a bump lockfile 2023-04-16 02:37:28 +08:00
bunnie
a6c85fb527 fix hosted mode 2023-04-16 02:37:21 +08:00
bunnie
1392fdcf33 bump pins for updated log API 2023-04-16 02:27:37 +08:00
bunnie
911da2b92a sync to latest release candidate 2023-04-16 02:25:15 +08:00
bunnie
916ca1e11f expand key injection API.
this does mean your device is notably less secure if you're operating
with usb serial turned on, as a host can just inject arbitrary commands
into your device!
2023-04-16 02:23:59 +08:00
bunnie
5a10bb8fd8 add console management commands 2023-04-16 02:23:43 +08:00
bunnie
dde6addc18 add input-side key injection over usb serial 2023-04-16 02:23:10 +08:00
bunnie
af5b54aba2 modify xous log API crate with opcodes for console logging 2023-04-16 01:43:54 +08:00
bunnie
7a8741922d enable console connection on shellchat 2023-04-16 01:43:29 +08:00
bunnie
ce05053536 improve serial support; add stubs to allow for console i/o 2023-04-16 01:43:09 +08:00
bunnie
5e01661dbf refactor xous-log and add 'usb' feature
this feature, when selected, allows a user to trigger mirroring
console output to a USB serial device.
2023-04-16 01:42:10 +08:00
bunnie
210c501bb7 initial USB-serial mode working 2023-04-14 13:01:06 +08:00
bunnie
cb3c81d0fb fix #357: regenerate password if password field is blank in vault 2023-04-12 23:19:11 +08:00
bunnie
cbbeaa27ad prevent overwriting current process ID in case of double-interrupt
this is part of #361, per @xobs
2023-04-12 23:14:09 +08:00
bunnie
1ff1380916 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-04-12 23:09:01 +08:00
bunnie
6f89430133 add updated pins 2023-04-12 23:08:36 +08:00
bunnie
849c136b90 bump versions because API crate changed 2023-04-12 23:02:30 +08:00
Sean Cross
f8cb6811ac
Merge pull request #364 from Foundation-Devices/fix-doctest
Fix xous-rs documentation tests
2023-04-12 22:45:20 +08:00
Jean-Pierre De Jesus DIAZ
9cd614fd35
fix xous-rs documentation tests
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-04-12 16:43:29 +02:00
bunnie
904b66a6e9 absorb ebreak fix for CPU 2023-04-12 13:14:24 +08:00
bunnie
68641cccc9 bump release notes 2023-04-12 13:14:11 +08:00
bunnie
b471b604d0 add option to print panics to screen on certain kernel panic events 2023-04-10 16:11:37 +08:00
bunnie
344dd5094b make the LCD panic handler Precursor-specific 2023-04-10 15:41:59 +08:00
bunnie
2903de5b7b
Merge pull request #363 from betrusted-io/lcdpanic
kernel: initial lcdpanic implementation
2023-04-10 15:31:02 +08:00
Sean Cross
31235c2547 kernel: initial lcdpanic implementation
Panic to the LCD when the kernel panics.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-10 14:42:59 +08:00
bunnie
cb875cf54e various fixes to gdb-stub
these are from @xobs via issue #361
2023-04-09 22:15:57 +08:00
bunnie
024d95e75b sync up the precursor with what's on the releases train 2023-04-09 17:11:46 +08:00
Sean Cross
89ca18caad
Merge pull request #362 from betrusted-io/fix-resume
kernel: use correct fake interrupt cause
2023-04-09 00:32:33 -07:00
Sean Cross
dbf28fbd61 kernel: use correct fake interrupt cause
Previously, we were creating a fake interrupt that was a "user software
interrupt". Update this to be a "supervisor external interrupt" to fix
hardware resume.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-09 15:31:06 +08:00
bunnie
38026e67ff fix dependabot reported DoS vuln in zip crate dependency
seems to not break anything else
2023-04-09 14:29:50 +08:00
bunnie
2d1073faf0 add retry loop to EC version checking
sometimes it can take a bit longer for the EC to respond to
version requests. Instead of hard coding a timeout and check
poll the EC over a longer period, which leads to a system more
tolerant of the variations in startup times.
2023-04-09 14:22:54 +08:00
bunnie
d3f2de8dfa bump lockfile to match latest pins 2023-04-09 00:59:54 +08:00
bunnie
8357ab31a5 bump all pins because utralib got updated 2023-04-09 00:48:35 +08:00
bunnie
99f8fa95b2 bump lockfile before re-publishing 2023-04-09 00:46:48 +08:00
bunnie
f3dc258a6a reinstate app-uart into the svd tree 2023-04-09 00:46:28 +08:00
bunnie
66d561b2bf fix flag polarity 2023-04-09 00:46:08 +08:00
bunnie
9c94d6b4c0 bump versions because xous-rs API changed for gdb-stub 2023-04-08 23:49:24 +08:00
bunnie
ddc06313cc bump release notes and lockfile 2023-04-08 23:47:36 +08:00
bunnie
6990bc0a95 add gdb-stub option to xtask 2023-04-08 23:46:10 +08:00
bunnie
9bb574cffe
Merge pull request #360 from betrusted-io/gdb-stub-redux
Implement `gdb-stub` on 3rd UART
2023-04-08 17:49:56 +09:00
bunnie
db8348292f add force EC update to the non-initialized menu options
also bump release notes
2023-04-08 16:40:40 +08:00
bunnie
430d3550b7 move time services into the DNS crate
Time services are moved into the DNS crate so that the EC
update thread can remain running and consuming resources.

The problem is that we are out of connections in the connection table
(it's limited to 32 total), and in order to allow a "force update"
function for the EC we need to hold on to more connections than
are possible.

The "time" service is fairly self contained and could be moved
elsewhere. It sort of logically fit in the status crate initially
because the status crate manages preferences and displays the
current time on the screen, but it's modular enough that we could
put the service in any process space, at a minor trade-off of
the time UX function being public. This was avoided for a long
time because it could be a security risk but in the end the records
that store time zone and offsets are in the PDDB, which are accessible
to anyone who knows the names of these records, which is in the end
equivalent to knowing the name of the time UX server.

Thus the time UX server was made a dynamically registered "public"
server with just one connection (so only a minor downgrade in security,
the only vector exists in between boot and when the time servers
connect up), and the time server itself was slotted into the DNS
server's process space.

The DNS server was chosen because the DNS service itself is
very lightweight and will be unlikely to grow any heavier, so there
is little risk in merging the time service into the DNS crate's
process connection allocation.
2023-04-08 00:30:07 +08:00
bunnie
6e33ceba24 fix translations 2023-04-07 16:27:16 +08:00
bunnie
f8913ac944 initial steps toward #335
adds the menu item and handler for a force update
revises some of the wording of the menus so they are more
self-consistent

leaves the EC update handler thread running permanently so
that force updates can be caught and handled
2023-04-07 16:22:22 +08:00
bunnie
4d118e72b8 fix 355
The resolution is to close the previously open basis if one with
the smae name is opened. This is in part because there isn't
a universally sensible/deterministic way of resolving behavior
in this case, and partially because the structure of the basis
map is a hash map keyed by name ... to differentiate basis with
same name/different password would require...leaking some information
about the password? i guess we could go strictly by opening order
by adding an opening parameter but basis management is already
confusing enough.

A message is popped up to indicate when the previous basis is
being unmounted.
2023-04-07 14:51:37 +08:00
Sean Cross
6016f951ef kernel: gdb: unpause process on disconnect
Resume the debugged process when the debugger disconnects.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-06 14:34:13 +08:00
Sean Cross
916a0bde42 kernel: fixup gdb guardrails
The riscv target requires stepi to be implemented, which we now do.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-06 11:23:35 +08:00
Sean Cross
7c2ffbb34e kernel: implement gdb server
The gdb server runs on an additional serial port and provides
process-level debugging to the kernel.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-06 10:48:45 +08:00