Commit graph

10340 commits

Author SHA1 Message Date
bunnie
f5a9cce4ac fix minor bugs in rtc set routine 2021-07-28 23:15:53 +08:00
bunnie
e60478d8d3 checkbox and radiobox now working. 2021-07-28 23:00:25 +08:00
bunnie
9ae5feab78 refactor to add helper threads to the UX format; documentation 2021-07-28 17:35:25 +08:00
bunnie
1fc8cd969e add from_raw_parts and to_raw_parts methods
this is for sending buffers across thread boundaries to
help with argument initializaions
2021-07-28 17:34:51 +08:00
bunnie
9f3615fd3d extend RTC setting with UX
not because this is so important, but because it's a simple
test case that exercises a lot of features.
2021-07-28 04:27:14 +08:00
bunnie
b6c443145c extend modal functions; refactor status into its own server 2021-07-28 01:01:39 +08:00
bunnie
9b51edfe6c add backspace (derp) 2021-07-27 18:00:09 +08:00
bunnie
4affdabc73 password modal box now nominally works 2021-07-27 17:30:37 +08:00
bunnie
1a65cd3389 password dialog box basic layout is kind of there
a little ugly, but...this has already taken too long.
2021-07-27 04:40:12 +08:00
bunnie
24725d0465 add compiler fences to the UTRA 2021-07-26 19:22:45 +08:00
bunnie
42a1193522 add volatile_clear() to xous_ipc::String for password fields
Call this on Drop() to ensure that the string is cleared.
Written using volatile pointers and compiler fences to ensure
the clear is not optimized out or re-ordered.
2021-07-26 18:12:13 +08:00
Sean Cross
2cd42edc22 kernel: use target_os = "none" instead of baremetal
This is more portable, and plays nicer with `rust-analyzer`.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-26 15:32:59 +08:00
Sean Cross
df30fd580d kernel: add Exception(usize) as process state
When a process encounters an exception of some sort, it will enter this
state if a handler is available.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-26 15:32:03 +08:00
bunnie
53f35f9928 intermediate work toward getting the password box going
lots of changes, maybe finally getting out of the UX rathole now
that basic localization is in place
2021-07-26 00:51:22 +08:00
bunnie
86e113b678 add locale to front-end; update menus to suppress 🔇characters automatically 2021-07-26 00:49:33 +08:00
bunnie
8a3c8c3908 don't commit the autogenerated lib.rs 2021-07-26 00:12:58 +08:00
bunnie
806451fa0f add locale docs and move locale def file to an autogen-friendly location
CI will need to do an auto-build to generate different locales
for users to download/install.
2021-07-26 00:05:10 +08:00
bunnie
2b57e1c4f8 add static localization 2021-07-25 23:46:03 +08:00
Sam Blenny
a614ccffb7 Fix wlan_leave() to send correct verb
wlan_leave() was mistakenly sending the verb for WLAN_JOIN.

Signed-off-by: samblenny
2021-07-24 02:51:32 +00:00
bunnie
bc5d262431
Update README.md 2021-07-23 17:19:50 +08:00
bunnie
556f0aaea5 beginnings of a password dialog system 2021-07-22 03:04:16 +08:00
bunnie
4c777976ac clear RAM on a cold boot
since the RAM is battery backed and persistent, it's probably
a good idea just to zero-ize it before using it on a cold boot.
2021-07-22 03:03:27 +08:00
bunnie
5280d232e5 figuring out which way is up on the RootKeys implementation 2021-07-21 19:47:09 +08:00
Sam Blenny
5c93365acd implement COM bus txrx for wlan commands
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
5bf1a34eb7 temporarily change com_rs-ref; TODO: UPDATE HASH
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
803f6d496f fix passphrase length limit to match WF200 API
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
03ad8bd2e4 add support for wlan commands to com server
Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
2bbb8d05b9 add ip shellchat command
This is for testing out the IP stack: list dhcp info, send pings,
send UDP message, and receive UDP message.

Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
Sam Blenny
e8bdf91cc3 add wlan shell command
This is for turning the WF200 wifi radio on and off, setting the
SSID and password, joining an AP, leaving an AP, and checking the
AP connection status.

Signed-off-by: samblenny
2021-07-21 09:06:12 +00:00
bunnie
0d3c936d43
Update flash.md 2021-07-21 00:03:29 +08:00
bunnie
ce18716b88 add the boilerplate for the keys server 2021-07-20 01:59:52 +08:00
bunnie
d0804ed330 add some notes about the keys block 2021-07-20 01:46:14 +08:00
bunnie
b0d70cde97
Update flash.md 2021-07-18 20:18:49 +08:00
bunnie
fe581d23ac update renode svd 2021-07-18 18:52:07 +08:00
bunnie
e362e2579f un-break hosted mode 2021-07-18 18:29:24 +08:00
bunnie
d98f296499 fixed ordering bug in spinor driver
works now!
2021-07-18 18:02:46 +08:00
bunnie
7257dbcaef add cache flush after array write 2021-07-18 16:04:44 +08:00
bunnie
825322c730 add explicit .iter() for arrays so we still work with Rust 1.51 2021-07-18 16:04:22 +08:00
bunnie
01d3455a16 Merge branch 'main' into bunnie-dev 2021-07-18 12:33:16 +08:00
bunnie
62764cbf39 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2021-07-18 12:31:51 +08:00
bunnie
8cb4362824 trying to merge...what are all these changes? 2021-07-18 12:31:29 +08:00
Sean Cross
6f77ab8344 xous: add cache_flush() call
This call is designed to flush the CPU caches by calling the `FENCE`
instruction.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-18 10:31:10 +08:00
bunnie
91fe69ca27 add some real-hardware tests for spinor writes
definitely still bugs.

need to sleep on it.
2021-07-18 02:36:31 +08:00
bunnie
c662ca7fdd
Update flash.md 2021-07-17 23:55:36 +08:00
bunnie
904f6f6f38 add more tests 2021-07-17 23:33:57 +08:00
bunnie
168d0fc2cb start of some basic tests 2021-07-17 17:12:23 +08:00
bunnie
cc0f37a80e rewrite the spinor services
- you can only "patch" regions of memory. caller provides a slice
to the region of data they are patching, so that patches can be
computed by the lib-side code of the server.

- erasing is done with a "patch" with all 0xff's as the write data.
a sequence of pure 0xff for a page does not actually cause a write,
the condition is detected and the write is skipped after an erase.

- patches attempt to be somewhat intelligent and not re-write unchnaged
data, or erase blocks that don't need udpating. However, if a user
submits a "sparse patch" with just a couple bytes modified in a
megabyte region they can expect bad performance. Ideally, in that
scenario, each of the smaller modifications are submitted as
individual calls to the patch function, instead of regurgitating
all the data and hoping that hthe patch function does some intelligent
diffing to be as light-fingered as possible about updating the flash.

In other words, the onus is on the calling server to format
patches intelligently. The patch server does only the simplest,
safest optimizations. You don't want to be shuttling megabytes of
redundant data anyways between servers for many other reasons....!
2021-07-17 02:04:22 +08:00
bunnie
7e7ae82156 pivot spinor implementation
realizing some core assumptions were wrong, so, scrapping and
restarting
2021-07-15 23:00:50 +08:00
Sean Cross
d248ab3cc7 emulation: engine: always update registers on write
These registers get reset when the hardware is reset, however the engine
may still be running. Ensure it's not running when the device is reset.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-15 18:23:36 +08:00
Sean Cross
3f1593e56e emulation: engines: cache registers in RAM
Don't consult RAM every time we want to read a register. This improves
performance at the cost of potentially having stale registers.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-15 18:10:38 +08:00