bunnie
ad72c0ee7d
update trng test ram locations
...
we're starting to fill up enough memory that we have to relocate
these buffers
2021-06-12 01:49:56 +08:00
bunnie
77cd652a0e
minor bugs/typos in urandomtest path
2021-06-11 16:45:53 +08:00
bunnie
a70b858812
convert to using the urandom interface
2021-06-11 16:29:25 +08:00
bunnie
abbd1574e5
add trng test and management commands
2021-06-08 21:29:23 +08:00
bunnie
2174ab7677
upgrade TRNG with health tests and reporting facilities
2021-06-08 01:22:07 +08:00
bunnie
b64d610d69
re-org the vex code a bit so it's not as repetative
2021-06-04 02:16:19 +08:00
bunnie
5a153d8fa9
add AES256 vex instructions support
2021-06-04 02:02:44 +08:00
bunnie
b1d027bc52
adding AES native instruction support
2021-06-04 00:49:34 +08:00
bunnie
7fa06866dd
remove inappropriate readme
2021-06-03 14:14:25 +08:00
bunnie
d14d987f44
Merge remote-tracking branch 'origin/aes' into bunnie-dev
2021-06-02 14:49:42 +08:00
Sean Cross
f69bbb2085
aes-test: add const versions of some functions
...
These may compile to faster code, but that hasn't been determined.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:36:07 +08:00
Sean Cross
c365fad962
services: start removing some C array -isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 14:28:20 +08:00
Sean Cross
ee36638b5e
aes-test: rename get_u32_* to get_u32_[bl]e
...
These functions are better described using this nomenclature.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:57:19 +08:00
Sean Cross
27c4444d7c
aes-test: more pruning of C-isms
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:16 +08:00
Sean Cross
e6816ce982
aes-test: fix AES-128 test vectors
...
Some values got swapped around.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:52:03 +08:00
Sean Cross
a137ac3848
aes-test: implement looping tests
...
Add looping tests for AES-128, -192, and -256.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:41 +08:00
Sean Cross
668a9c758d
aes-test: implement AES-192
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 13:44:28 +08:00
Sean Cross
41e9a70977
aes-test: move low_level_tests to their own mod
...
The low-level tests are useful in validating that the hardware works,
however they generally are not useful. Split them into their own module.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:22:27 +08:00
Sean Cross
7a675cdbc4
aes-test: get decryption working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 12:15:24 +08:00
Sean Cross
a77e8e32be
aes-test: get initial tests passing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-02 11:09:05 +08:00
bunnie
77ed8972f6
Merge branch 'aes' into bunnie-dev
2021-06-02 04:08:00 +08:00
bunnie
fadc9c29ab
Merge remote-tracking branch 'origin/master' into bunnie-dev
2021-06-02 03:59:25 +08:00
bunnie
b9f3182bb9
mods for hosted mode to work again
2021-06-02 03:45:15 +08:00
bunnie
25e6bced00
add power-on utilization reporting
...
there is now an extra field in the status bar that gives
the %'age of time that the clocks are running.
2021-06-02 01:08:31 +08:00
Sean Cross
9638c67aae
aes-test: add test program
...
This is a basic program that exercises the AES core
Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-01 20:01:23 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
61f95363fd
mark a commit for the latest build submitted for testing
2021-06-01 15:33:48 +08:00
bunnie
9f3647f3a3
have audio off by default on power-on to save power
2021-06-01 00:44:33 +08:00
bunnie
7c55925926
intermediate check-in on wfi
2021-05-30 23:07:16 +08:00
bunnie
1e2d46366a
attempt to convert sha512 to use xous::wait_event()
...
doesn't work, for some reason the interrupt doesn't want to fire.
cross-check against hardware simulations...
2021-05-30 16:18:23 +08:00
bunnie
0e1464b815
turn off wdt for now
2021-05-30 04:50:54 +08:00
bunnie
afe8d8733d
updates to use the always-on power domain timers
2021-05-30 04:29:03 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
3c0e951803
woo i have a dvorak layout now.
2021-05-29 02:28:54 +08:00
bunnie
25a77ddb19
EC updating seems to work.
2021-05-25 05:13:20 +08:00
bunnie
c483581716
debugging some timing issues
2021-05-25 02:53:24 +08:00
bunnie
7529628053
partial progress on EC updater
2021-05-24 04:34:50 +08:00
bunnie
30aa794f30
add reference counting on connections between servers
...
the connection number is re-used for all objects created
within a process space, so you can't `Drop` the connection
immediately when an object goes out of scope. You have to
make sure all instance of the object go out of scope. This
patch adds reference counting to all the objects so that
the `Drop` function works as intended.
2021-05-21 16:24:30 +08:00
bunnie
58edcc56f2
sha512 tests fully implemented, working through sus/res
...
note: sha512 will fail if a suspend is forced upon it!! but
it will vociferously complain if this happens.
2021-05-21 15:56:58 +08:00
bunnie
5526bc4100
add hardware support for sha512/256
2021-05-21 04:35:01 +08:00
bunnie
21a5ddb40f
sha512 hardware acceleration is working, now benchmarking
...
also need to extend hw implementation to sha512/256
2021-05-21 03:15:13 +08:00
Sean Cross
b617ed2f32
services: ticktimer-server: explicitly specify opcode numbers
...
These opcode numbers will be baked in at the ABI level for several
libraries such as libstd.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 12:47:02 +08:00
Sean Cross
eb7895d601
xous: add a return code to TerminateProcess
...
As part of this refactor, make `terminate_process()` a divergent call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:01:00 +08:00
bunnie
d44ad58637
sha512 now compiling, at least.
2021-05-20 03:29:26 +08:00
Sean Cross
ca1b9aa35c
log-server: fix implementation of stdout/stderr
...
The buffer was incorrectly sized.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 20:56:32 +08:00
Sean Cross
b13b458b11
log-server: validate operation with libstd
...
This makes minor changes to the panic behavior when operating with a
libstd client.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:12:01 +08:00
bunnie
a8e68bcebe
fix file permissions
2021-05-19 00:39:47 +08:00
bunnie
7d9e84c456
initial frameworks around sha512 acceleration integration
2021-05-19 00:39:03 +08:00
bunnie
3f12b0a69b
add a gyro test command to shellchat
2021-05-16 16:52:27 +08:00
bunnie
5d4e716e1b
add status thread mechanism to check charger state
2021-05-16 16:30:58 +08:00
bunnie
87b6d9b6d7
add backlight commands
2021-05-16 04:29:12 +08:00
bunnie
5328e09a5b
Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev
2021-05-16 03:06:54 +08:00
bunnie
7fb7402fe0
clean up some trailing whitespace
2021-05-16 03:06:11 +08:00
bunnie
d7b64972e9
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-16 02:28:02 +08:00
bunnie
b06e8d2a81
fix issue with datetime on hosted mode on windows
...
just monkey-patch over the call in hosted mode...
2021-05-16 02:26:24 +08:00
bunnie
b36865a893
add some delay on hosted mode for failed name requests
...
helps make startup a bit more orderly on multi-core systems
2021-05-16 01:22:25 +08:00
bunnie
1ba2d004f3
Merge remote-tracking branch 'betrusted/master' into bunnie-dev
2021-05-12 23:34:13 +08:00
Sean Cross
a8e9492560
log-server: implement opcodes and stdout
...
This allows the log server to support various opcodes, and gives us
stdout as a suitable command.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-12 21:22:15 +08:00
bunnie
69576695bf
give a little more time for the suspend
...
right now some graphics ops aren't completing.
2021-05-11 16:51:52 +08:00
Andrew
a68b24ab9c
#41 : Stop iterator when y exceeds one pixel beyond quadrant bounds.
2021-05-09 12:45:24 -07:00
bunnie
4bb355aec6
Merge pull request #66 from betrusted-io/bunnie-dev
...
merge in codec
2021-05-09 01:22:47 +08:00
bunnie
08a86749fe
fix hosted mode bugs
2021-05-09 01:13:16 +08:00
bunnie
a8a35fa434
roll back heapless crate on ime-frontend
2021-05-08 23:55:08 +08:00
bunnie
a24803354c
refactor xous-names to eliminate heapless
...
see issue #30
2021-05-08 23:34:08 +08:00
bunnie
391122823d
refactor heapless version in attempt to debug issue that cropped up in xous-names
...
somehow, updating the toolchain has broken the FnvIndexMap implementation
2021-05-08 18:44:23 +08:00
bunnie
b904a114fe
this commit crashes on boot
2021-05-08 16:40:44 +08:00
bunnie
7f7bdbff88
this will play the long sample. and it works! :)
2021-05-08 03:41:04 +08:00
bunnie
15fc4a6c36
audio working, trying out longer samples
2021-05-08 03:14:14 +08:00
bunnie
fe6b417643
checkpoint
2021-05-08 01:13:30 +08:00
bunnie
46fa8fa01e
extend shellchat to allow for multiple callback registrations
2021-05-07 16:22:06 +08:00
bunnie
b3a60faec2
audio checkpoint
2021-05-07 15:09:51 +08:00
bunnie
7dd66a4c18
playback is mostly working and stable
2021-05-07 05:42:39 +08:00
bunnie
adc7f8e98d
cleanup the i2c API
...
condense async/sync methods into a single one and decide which
is which based upon the presence of an Option<callback>
2021-05-06 14:03:06 +08:00
bunnie
b50aa60591
clean up some visibilities and warnings, get rid of the old, bad API
2021-05-06 05:13:23 +08:00
bunnie
bc82dbd157
transition i2c api on codec, finally found the damn race condition
2021-05-06 05:05:17 +08:00
bunnie
75bb4805b1
clean up RTC server to use the new I2C API
2021-05-06 04:16:31 +08:00
bunnie
b596c40dd6
refactor I2C to have work queue, cleaner (but untested) APIs
2021-05-06 03:40:04 +08:00
bunnie
bb5bc1d212
refactor i2c to break out the i2c machine to a separate server
...
the concurrency issues on I2C are getting hairy, and it was probably a
dubious decision from the start to merge I2C into the LLIO block; but
originally this was motivated by the idea of keeping all the
"miscellaneous slow stuff" in one process to keep the memory footprint
small and make code a bit more readable.
Keeping I2C in the same process space as the LLIO but splitting it
into its own thread and server splits the difference, by giving us
more options to deal with the concurrency, without inflating the size
of the kernel binary and allocating a lot of extra static data.
2021-05-06 00:45:14 +08:00
bunnie
eb75299dd0
Update README.md
2021-05-06 00:44:01 +08:00
bunnie
ea06df6879
test case for >1 page lends not working
2021-05-05 01:37:25 +08:00
bunnie
d17ae106f1
kernel panic on memory lend
2021-05-05 00:58:48 +08:00
bunnie
7a7e77d346
intermediate checkin, taking a break
2021-05-04 19:08:56 +08:00
bunnie
61611caddd
some general ideas to debug later
2021-05-04 02:47:03 +08:00
bunnie
f8979d6341
intermediate progress on audio. doesn't compile.
2021-05-04 02:22:35 +08:00
bunnie
a4ca725c2a
add a reset to an i2c core
2021-05-03 21:24:37 +08:00
bunnie
01e2c7edca
migrate to an interrupt-handler only I2C handler
...
the amount of time it takes to send messages to initiate each
packet is too slow, and causing timeouts. By handling the I2C
directly in an interrupt handler, we accelerate the bus, at
the expense of no visibility via log/trace messages.
2021-05-03 18:53:17 +08:00
bunnie
d65e91f792
refactor i2c to be in the implementation block
2021-05-03 18:14:58 +08:00
bunnie
50174f99e5
re-org the codec crate so that it can accommodate gnarly backends
...
This is in anticipation of:
1) supply chain issues causing CODEC chips to change out
2) host integration being a PITA
2021-05-03 00:31:05 +08:00
bunnie
f558f75116
add the skeleton for the codec server
2021-05-03 00:20:51 +08:00
bunnie
dcb9956bcc
add a "skeleton" server which is a template for other servers
2021-05-03 00:19:45 +08:00
bunnie
abf308e82d
try to trace down issue #61
2021-05-02 16:39:08 +08:00
bunnie
a2280639d9
forgot to uncomment a line
2021-05-02 16:13:06 +08:00
bunnie
05df98d1c1
disable suspend/resume support in hosted mode
...
hosted mode doesn't have suspend/resume support, and it's
not worth debugging subtle issues on that side of the fence
that seem to be OS-dependent.
2021-05-02 16:10:51 +08:00
bunnie
0621fed5d6
back up debugging statements
2021-05-02 12:51:41 +08:00
bunnie
8b29fc4dd3
make the sleep note screen a little more aesthetic
2021-05-02 03:57:40 +08:00
bunnie
0ca2f58c6e
add a note to indicate if we're in cold sleep
...
it's not terribly aesthetic right now, but we can fix that later.
2021-05-02 03:36:54 +08:00
bunnie
b17753ce8b
retrofit the rest of the servers for suspend/resume
...
we can now do suspend/resume in the xous chat!
2021-05-02 01:38:44 +08:00
bunnie
85d78439d7
fcc-agent is now deprecated
2021-05-01 21:01:46 +08:00
bunnie
c7f1fe0817
cleanup after debugging ticktimer
...
the problem was that the load signal was not being respected
by the hardware, small patch to FPGA required but now all is OK.
2021-05-01 20:56:12 +08:00
bunnie
b28dff273f
intermediate checkin figuring out ticktimer issue
...
seems to be a hardware problem with the loading routine
2021-05-01 19:13:22 +08:00
bunnie
087bb39ea7
chase down some bugs
...
noted there is a heisenbug on the ticktimer, it only manifests
when the log level is at info. go figure!
2021-05-01 02:26:28 +08:00
bunnie
20040c5e02
fix a bogus error path that primarily trips up hosted mode
2021-05-01 01:12:32 +08:00
bunnie
142d512ffb
remove a redundant check
2021-05-01 00:49:27 +08:00
bunnie
46fe3885dc
cleanup more turds left over during the bringup of suspend/resume
2021-05-01 00:35:32 +08:00
bunnie
260b154741
clean up some boot process holdovers
2021-04-30 23:28:31 +08:00
bunnie
640ddb48e8
suspend/resume now works to hardware
2021-04-30 19:29:36 +08:00
bunnie
7053c2b7c6
able to detect the clean suspend, now figuring out how to resume
2021-04-30 05:00:03 +08:00
bunnie
0e2d57c9fb
retrofit the kernel and loader to handle resume
...
and now the even harder debuggening begins...zomg o_O
2021-04-30 01:55:38 +08:00
bunnie
2d3a643d20
retrofit COM for suspend/resume
2021-04-29 23:53:35 +08:00
bunnie
a55735fb1f
add llio to suspend/resume set
2021-04-29 23:15:47 +08:00
bunnie
1014b53726
clean up some hosted mode errors
...
hosted mode is still a bit broken, but we'll figure that
out later. at least it compiles.
2021-04-29 17:24:38 +08:00
bunnie
19847f8fd4
add suspend/resume to the TRNG
2021-04-29 17:24:31 +08:00
bunnie
6e1e74ed84
a minimal but successful touch-and-go suspend/resume cycle
2021-04-29 16:37:43 +08:00
bunnie
bbcf698ff3
flesh out a simple touch-and-go suspend/resume demo loop
...
now the debuggening begins. lord help us.
2021-04-29 02:56:53 +08:00
bunnie
768eb548be
fix some typos etc.
2021-04-29 00:23:18 +08:00
bunnie
2df2e654dd
add some more comments
2021-04-28 19:31:08 +08:00
bunnie
cad9c15849
intermediate save of suspend resume
...
building an awful rube-goldberg contraption of a "clean-suspend"
record.
2021-04-28 19:28:04 +08:00
bunnie
6d8fb5beec
add a murmur3 hash implementation for checking the clean boot record
2021-04-28 18:29:41 +08:00
bunnie
88f5199ba2
refactor os_timer to be integral to susres
2021-04-28 17:24:08 +08:00
bunnie
3043769170
move the os_timer into the susres server, so we can suspend it
...
also clean up various syntax errors
2021-04-28 15:38:56 +08:00
bunnie
3153d6aa66
intermediate progress on suspend/resume
2021-04-28 04:15:25 +08:00
bunnie
9997749c4c
fix soc version
2021-04-27 21:32:43 +08:00
bunnie
77ad54e193
fix hosted mode compatibility issues
2021-04-27 18:55:05 +08:00
bunnie
d2e9d35d37
modify loader to block out suspend resume pages per Xobs review
2021-04-27 18:47:55 +08:00
bunnie
68ed591189
start to flesh out API, allocate clean suspend page
2021-04-27 03:56:57 +08:00
bunnie
d62f936454
start fleshing out the susres server
2021-04-27 02:53:22 +08:00
bunnie
3fe52b31c5
add some debug for the trng CI process
2021-04-27 01:37:58 +08:00
bunnie
6a703def63
commit the latest SVD files and other minor changes
2021-04-27 00:53:08 +08:00
bunnie
94505ae6c5
improve some error messages
2021-04-27 00:52:52 +08:00
bunnie
00e3cd55fd
fix generic error message
2021-04-27 00:46:24 +08:00
bunnie
655c92a36c
clean up ticktimer susres prototype code
2021-04-27 00:40:50 +08:00
bunnie
a1bcfb469e
add another call to make sure the RTC is initialized correctly
2021-04-27 00:40:29 +08:00
bunnie
a4678ee95c
remove dependency of xous-names on ticktimer; use d11ctimeout instead
...
this allows susres to manage ticktimer and have secured namespace
integration
2021-04-27 00:39:18 +08:00
bunnie
85211bb57d
add susres server skeleton
2021-04-27 00:38:51 +08:00
bunnie
f86f295fa5
add some version commands
2021-04-26 01:11:45 +08:00
bunnie
4ecd7c06ac
trying to fix renode stuff, but not quite there
2021-04-23 21:49:13 +08:00
bunnie
c385f4bdd5
fix hosted mode boot vs RTC alarm clear
2021-04-23 17:59:12 +08:00
bunnie
4022462144
fix RTC wakeup alarm code
2021-04-23 17:51:12 +08:00
bunnie
061284ec5f
debugging BOOST mode glitch issue
...
Here's an arcane bug for you:
When powering down, the Spartan 7 3.3V I/O drivers will
output a roughly 800us wide glitch as 3.3V falls below around
1.7V, if the 0.95V core voltage comes down first (which it does
because we have an active discharge on 0.95V, but not on 3.3V).
In this case, it's just wide and high enough to cause the
BOOST mode line to engage, which takes the BOOST output
and ties it to VBUS, which is just enough for the system to
think you're powering it back on again. Which is not what
you want when powering down.
The ultimate fix was to put a heftier pull-down on the BOOST
line so that it can't trip the BOOST output into the VBUS.
Another option could be more active discharge FETs, but that
would require a full board spin and we are already at certification,
so we'll stick with the stronger pull-down on BOOST. It seems to
be a robust fix in the worst corner cases we can find.
The downside is that when powering an external USB device,
you are burning an extra 30mW of power overcoming the pull-down,
but typically, any external USB devices plugged into Precursor
will burn far in excess of that, so the delta should be negligible.
2021-04-23 15:33:14 +08:00
bunnie
f97b61a788
add the killbounce command
2021-04-23 01:49:03 +08:00
bunnie
52a9116edb
add various sleep/ship/kill/coldboot commands
2021-04-22 18:08:19 +08:00
bunnie
076ee3588e
add blank screen for ship mode
2021-04-22 18:07:41 +08:00
bunnie
ca63091f98
add ship mode command
2021-04-22 18:07:27 +08:00
bunnie
e5343bceb9
retrofit system to use the new device-based CSR image
2021-04-20 19:27:29 +08:00
bunnie
ec2a87e306
make TRNG testing variants easier to configure
2021-04-20 03:21:53 +08:00
bunnie
9f9575fdd8
refine trng-tester configuration
2021-04-19 04:54:32 +08:00
bunnie
995ebdccc5
update trng tester
2021-04-19 03:47:42 +08:00
bunnie
b85650f5a6
minor tweaks to SSID scan and FCC infra
...
-fix help string in FCC
-try resetting SSID scan state machine after sleep cycle & timeout
2021-04-18 13:38:42 +08:00
bunnie
53f3ca20f0
add SSID scanning
2021-04-16 23:58:30 +08:00
bunnie
b2c0608b0b
initial cut at SSID scanning
2021-04-16 23:07:31 +08:00
bunnie
bda82246cf
fix typos
2021-04-16 23:07:16 +08:00
bunnie
459026983c
minor formatting issue
2021-04-16 23:06:49 +08:00
bunnie
22d676cc59
add reporting of sleep current
2021-04-16 19:58:05 +08:00
bunnie
8dc5bf434b
hosted mode vibration debug message
2021-04-16 19:30:56 +08:00
bunnie
809f0445e1
add vibe command
2021-04-16 19:27:48 +08:00
bunnie
fc4ae9851f
revert braille-specific debug config
2021-04-16 18:57:34 +08:00
bunnie
0ef50b178f
basic chording is working
2021-04-16 18:01:48 +08:00
bunnie
d807098ed1
more mods for the braille branch
2021-04-16 05:34:08 +08:00
bunnie
1841233d2c
add "slow mode" for braille debugging
2021-04-16 04:21:21 +08:00
bunnie
ac40075140
add keyboard input via UART
2021-04-16 04:11:25 +08:00
bunnie
1378203427
clean up warning
2021-04-16 01:13:56 +08:00
bunnie
ffb38957bf
remove debug on listeners
2021-04-15 18:43:33 +08:00
bunnie
024a072a7c
absorb WDT fix to eliminate a race condition
2021-04-15 18:40:00 +08:00
bunnie
24ae5686c8
closing in on a final PDS set
2021-04-15 13:44:32 +08:00
bunnie
11ad8e4824
finalize FCC test files
2021-04-15 05:49:01 +08:00
bunnie
93400df67c
an initial cut at fcc test commands
2021-04-15 04:10:47 +08:00
bunnie
9f4dc8a7b1
add wifi reset opcodes
2021-04-14 22:43:23 +08:00
bunnie
9647c47c2c
refine/update docs for unhooking callbacks
2021-04-14 03:20:40 +08:00
bunnie
75295485a7
fix RTC callbacks
2021-04-14 02:58:22 +08:00
bunnie
1994b730b7
improve cb test structure and try out bool-based cb registration
2021-04-13 16:46:49 +08:00
bunnie
c2eaece3c8
add library file
2021-04-13 05:10:17 +08:00
bunnie
5a6956d6de
initial cut of test
2021-04-13 05:10:00 +08:00
bunnie
82dd9f2a91
Merge branch 'bunnie-dev' into cb-test
2021-04-12 23:16:48 +08:00
bunnie
fbe2b7d961
Merge remote-tracking branch 'betrusted/fix-section-loading' into bunnie-dev
2021-04-12 20:49:40 +08:00
Sean Cross
ac9570a767
log-server: remove UB in log server init
...
Previously, the log server would call `setup` on an uninitialized
struct. This is very undefined behavior, and risked running into
optimization errors.
This reworks the log server such that the singleton is protected by a
`None` value that gets initialized.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-12 17:47:26 +08:00
bunnie
c984756539
add the initial templates
2021-04-12 13:32:13 +08:00
bunnie
f1d97fe428
RTC cmdline function mostly working
...
seems there is some issue with de-registering/disconnecting
connections though, need to make simpler test cases to diagnose
2021-04-10 01:01:51 +08:00
bunnie
4957effe9c
fix up callbacks
2021-04-09 18:56:44 +08:00
bunnie
84853c696a
drop message should be non-blocking
2021-04-09 18:53:41 +08:00
bunnie
2916eb3775
relocate the destroy callback call to after the server exits
2021-04-09 18:51:43 +08:00
bunnie
162bf01819
intermediate check in of callback destroy problem
2021-04-09 18:06:21 +08:00
bunnie
aed2325f68
fix some minor bugs in hosted mode
...
memory is not page-aligned so `if !cfg()`-out the alignment
checks in hosted mode
2021-04-09 17:31:36 +08:00
bunnie
8b93dd0c63
RTC server now basically working
...
There is an issue with the rtc commandline time checking
with respect to unhooking its callback, maybe related to
the new disconnect/destroy server code
2021-04-09 05:24:29 +08:00
bunnie
fbcb795693
this delta makes it work
2021-04-09 00:34:43 +08:00
bunnie
e7e10a0ec9
commit again for debugging
2021-04-09 00:29:53 +08:00
bunnie
856934c2c9
some progress, but check in to recreate previous crash
2021-04-09 00:15:42 +08:00
bunnie
a9de4782c5
crashing on load when logger is in callback
2021-04-08 23:07:02 +08:00
bunnie
0fa3d3c969
begin debugging of the RTC
2021-04-08 04:38:01 +08:00
bunnie
45c90659e5
rtc first draft
2021-04-08 02:30:57 +08:00
bunnie
0f9eea10d9
flesh out callback handling of events in LLIO
2021-04-07 18:29:50 +08:00
bunnie
50fa517f3f
Update README.md
2021-04-07 01:24:41 +08:00
bunnie
12bb5ee972
Update README.md
2021-04-07 00:59:25 +08:00
bunnie
39db5084ab
Update README.md
2021-04-07 00:58:28 +08:00
bunnie
d5aef77bdc
clean up warnings, as much as they make sense to clean up
2021-04-07 00:48:48 +08:00
bunnie
35353f38dd
bring benchmarks to v0.8 and record benchmark results
2021-04-07 00:45:11 +08:00
bunnie
795c2a38da
remove now-defunct shell server
2021-04-06 23:09:53 +08:00
bunnie
ea43e236ee
refactor fcc-agent for v0.8
2021-04-06 23:09:33 +08:00
bunnie
ca349ec1b0
clean up minor bugs and other issues
2021-04-06 22:38:11 +08:00
bunnie
b9162fda3d
gettin' there! major modules now mostly working under v0.8
2021-04-06 19:32:35 +08:00
bunnie
24e9408ce0
fix most of the inter-server bugs
...
still some issue with the predictions showing a longer length
than expected, but this is progress.
2021-04-06 02:48:55 +08:00
bunnie
8c12dbe2af
found a bug.
2021-04-06 01:52:26 +08:00
bunnie
9ba2fb134c
refactor most major modules, but Xous now crashes
2021-04-05 23:50:00 +08:00
bunnie
4a504943dc
part-way through the GAM refactor
2021-04-05 05:47:17 +08:00
bunnie
75a6f779f8
initial refactor of ime-frontend
2021-04-05 03:39:14 +08:00
bunnie
8fed353a83
refactor of the imef interface part 1
2021-04-05 00:30:46 +08:00
bunnie
9cc94d05ec
cleanup warnings
2021-04-04 21:25:26 +08:00
bunnie
44899d073e
clean up some efforts to fix log trace level
2021-04-04 18:25:53 +08:00
bunnie
9416e9dbe0
turn off trace on keyboard
2021-04-04 18:23:49 +08:00
bunnie
6d4916972b
keyboard refactor now working
2021-04-04 18:23:26 +08:00
bunnie
659b050c0e
put the borrow in the right place :-/
2021-04-04 02:17:14 +08:00
bunnie
da7ace04d4
rebuild and prep for testing on hardware
2021-04-04 02:15:46 +08:00
bunnie
8786b6db7b
should be borrowing the name server object to make connections
2021-04-04 02:15:29 +08:00
bunnie
bd54b48f8f
initial cut of a major refactor of the keyboard server
...
- debounce is now in hardware (requires latest version of betrusted-soc)
- key events originate from an interrupt context and propagate through
to the listeners as messages
- attempt to reduce the use of heapless::Vec; there is an awkward
interposer step still between the array methodology and the Vec
methodology
I'm not sure if trying to eliminate the Vec is a good idea,
because...I'm finding that we're just re-implementing Vec, but
much worse.
However, for the purpose of movement of data across
IPC boundaries, it's more robust to use primitive types,
because serializing Vec is not possible without either
forking the heapless crate to derive the rkyv traits; or, we'd
have to do some probably quite dangerous conversion of the Vec
to a raw slice which also doesn't feel nice.
2021-04-04 01:42:30 +08:00
bunnie
aa04241aa4
restrict visibility of Opcode
2021-04-03 00:57:30 +08:00
bunnie
b9ff993845
refactor graphics server
2021-04-03 00:53:30 +08:00
bunnie
dea8cb8388
fix typos and start on the graphics server
2021-04-02 22:57:02 +08:00
bunnie
25dc27f2f7
add drop implementation to servers
2021-04-02 22:01:40 +08:00
bunnie
c972666f41
implement Drop on Com object
2021-04-02 19:01:11 +08:00
bunnie
39153f6fba
cleanup warnings
2021-04-02 18:07:39 +08:00
bunnie
2cb519b8ee
cleanup logging
2021-04-02 17:58:20 +08:00
bunnie
c6645c6626
add comment to remind myself on how callbacks should work
2021-04-02 17:58:03 +08:00
bunnie
906f8779a8
cleanup details
2021-04-02 17:57:33 +08:00
bunnie
d6fd42b593
COM refactor of callbacks
2021-04-02 16:40:17 +08:00
bunnie
da255cc1ab
use macro expansion for argument extraction of scalars
2021-04-02 15:38:38 +08:00
bunnie
e3733fa64c
refactor callback methodology to match 0.8 conventions
2021-04-02 15:38:15 +08:00
bunnie
d21c0fa3e7
refactor of COM
...
this was much harder than I liked.
2021-04-02 05:43:47 +08:00
bunnie
5a6ce66d7e
clean up log messages now that we can identify the logging source
2021-04-02 03:10:13 +08:00
bunnie
68b9addd45
redo ticktimer/trng to use the new convenience functions
2021-04-02 02:45:00 +08:00
bunnie
fe2a464dd2
cleanup warnings in trng server
2021-04-02 01:56:22 +08:00
bunnie
7210f100f4
upgrade log server to pass rich message types
2021-04-02 01:54:17 +08:00
bunnie
85fdb7453d
remove unused code
2021-04-01 17:24:13 +08:00
bunnie
a3adf797b0
refactor TRNG server to new API
2021-04-01 17:20:36 +08:00
bunnie
2407f17267
fix typos
2021-04-01 17:20:28 +08:00
bunnie
aab0bf459c
update API to more compliant names
2021-04-01 16:43:22 +08:00
bunnie
dc2519c5ef
trying out new API names
2021-04-01 03:47:10 +08:00
bunnie
470b5c6440
finalize API refactor for xous-names
2021-03-30 02:13:23 +08:00
bunnie
23ae292e3d
found the stupid bug
2021-03-29 05:20:21 +08:00
bunnie
c6371e86e7
fix other minor errors
2021-03-29 04:44:03 +08:00
bunnie
f35d478cf0
attempt to refactor xous_names
2021-03-29 04:35:11 +08:00
bunnie
88d66f4fd2
partial refactor but need to switch branches
2021-03-28 19:36:55 +08:00
bunnie
e889765caf
refactor the Ticktimer API.
2021-03-28 18:14:41 +08:00
Sean Cross
45239c61ef
rkyv-test-server: use xous-ipc buffer
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:25:02 +08:00
Sean Cross
fdce58d06e
ipc: convert project to use xous-ipc
...
This rewrites the entire project so that most runnable projects now use
`xous-ipc` instead of `xous::String` where possible.
This also removes `rkyv` from the list of dependencies in `xous-rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:33 +08:00
Sean Cross
f6c2ee4410
rkyv-test-client: use new log_message_send()
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:17:03 +08:00
Sean Cross
8760de0406
rkyv-test-server: add log_message_send to test Send messages
...
This uncovered a bug in the kernel where Send messages didn't work.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:16:21 +08:00
Sean Cross
f58f82a40d
rkyv-test-server: support multiple callbacks for one client
...
There doesn't seem to be a compelling reason to limit clients to just
one callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:42:35 +08:00
Sean Cross
c1fe20c06b
services: allow for multiple callbacks
...
This means we can have multiple clients requesting a callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:41:15 +08:00
Sean Cross
561a0c3e27
rkyv-test-client: make doubling string dynamic
...
This tests for emoji as well as making sure it's working as intended.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:40:47 +08:00
Sean Cross
22b50d080b
rkyv-test-client: dynamically generate log message string
...
By dynamically generating the log message string, we ensure dynamic
buffer adjustments are accepted.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:33:30 +08:00
Sean Cross
e27db818ef
rkyv-test-server: accept any string-like arguments
...
As long as we can turn an argument into a string, that's good enough for
us.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:32:42 +08:00
Sean Cross
0f455a9a02
rkyv-test-client: use new double_string call
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:16:26 +08:00
Sean Cross
ff180ca737
rkyv-test-server: add DoubleString api call
...
This demonstrates how we might use strings in syscalls.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:15:57 +08:00
Sean Cross
461f5c5f8d
rkyv-test-server: buffer: add from_memory_message_mut()
...
This enables passing data back to the caller by modifying the original
message `offset` field.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:15:13 +08:00
Sean Cross
fd255d8f53
services: add rkyv-test-client and rkyv-test-server
...
These servers demonstrate how we might use rkyv in the future.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 23:39:35 +08:00
Sean Cross
6efc6bdfd5
services: kernel-test: add loopback test
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 16:01:57 +08:00
Sean Cross
52c993556f
services: gam: use create_thread_4
...
This replaces create_thread_simple() which is unsound and has been
deprecated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 13:15:42 +08:00
Sean Cross
006101835e
services: shellchat: use create_thread_0
...
This replaces create_thread_simple() which is deprecated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 13:15:16 +08:00
Sean Cross
6cdd9b4b4c
services: use shorter timeout for thread 4
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 11:31:50 +08:00
Sean Cross
5367697b54
services: kernel-test: use create_thread_n
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 11:12:44 +08:00
Sean Cross
4cbfe5f90f
services: log-server: use create_thread_1()
...
This moves away from the deprecated `create_thread_simple()` call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 10:54:22 +08:00
bunnie
bb3d96de27
Merge branch 'master' of https://github.com/betrusted-io/xous-core into HEAD
2021-03-25 02:37:58 +08:00
bunnie
8763cf3133
stash before merge
2021-03-24 22:48:23 +08:00
Sean Cross
ca24b74cd2
Merge remote-tracking branch 'origin/master' into fix-create-thread
2021-03-24 12:52:01 +08:00
Sean Cross
2d7dda93a9
kernel-test: add testcase for ticktimer/kernel bustage
...
The ticktimer server breaks spectacularly with this.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-24 12:51:06 +08:00
bunnie
9541523d76
move GPIO mapping earlier in LLIO so we can capture the boot prompt
2021-03-23 23:10:26 +08:00
Sean Cross
e894dbd7b8
Merge branch 'fix-messages'
2021-03-23 21:58:11 +08:00
Sean Cross
d16d0c9bd8
ticktimer-server: set quantum to 10ms
...
This is an experiment to see if this shorter time improves things.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:43:35 +08:00
Sean Cross
e624c184cd
ticktimer-server: rewrite sleep server as deadline
...
Use deadlines for sleep, rather than calculating the amount of remaining
time.
This keeps time consistent, because it means we don't have to
recalculate all sleeps whenever one expires.
It also allows us to take advantage of the hardware which will fire an
interrupt if we schedule a wakeup in the past.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:41:30 +08:00
Sean Cross
89cf0c1ab1
ticktimer-server: run rustfmt on Cargo.toml
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:37:52 +08:00
Sean Cross
91647592ca
kernel-test: implement sleep test
...
This patch implements a simple sleep test.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 19:53:54 +08:00
Sean Cross
751dc8ee3a
kernel-test: add test for ticktimer-server
...
This test is an attempt to fix `sleep_ms()`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-18 20:10:58 +08:00
bunnie
184a284da5
sleep_ms() bug exhibitition
2021-03-18 17:34:48 +08:00
bunnie
6677d79834
initial RTC framework
2021-03-18 16:22:08 +08:00
bunnie
db5e56fd1a
futzing with structures to try and figure out a threading issue
2021-03-18 16:21:43 +08:00
bunnie
ca07645dce
remove loop polling on GAM, seems unecessary
2021-03-18 16:21:10 +08:00
bunnie
dacedc3b74
Merge pull request #52 from betrusted-io/hardware
...
Refactor system to use rkyv 0.4.1
2021-03-18 04:56:32 +08:00
bunnie
9c49940e1d
add callback test back into shellchat
2021-03-18 04:22:17 +08:00
bunnie
2d5c1dd6db
leverage min_const_generics and cleanup
...
the spoils of a hard fought battle to refactor to rkyv 0.4.1
2021-03-18 04:00:38 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +08:00
bunnie
8fbd900a4c
Merge branch 'hardware-no-cb' into rkyv-refactor
...
Bring the two branches up to date, while also laying the groundwork
for XousServerName to be used as a native index type in xous-names
so we aren't burdening xous::String with a hasher
2021-03-17 16:06:06 +08:00
bunnie
edb099d3f2
fix hosted mode with dummy i2c emulation calls
2021-03-16 19:28:01 +08:00
bunnie
eda33b5de7
factor out the shellchat callback, which mysterious breaks things
2021-03-16 18:03:12 +08:00
bunnie
d74b3189e6
it builds, at least.
2021-03-16 16:37:38 +08:00
bunnie
8b8cad067c
add the i2c file proper
2021-03-16 15:52:30 +08:00
bunnie
eff3e7d7bf
incremental i2c changes
2021-03-16 15:52:13 +08:00
bunnie
f9439b48d6
checking in a refactor that we're going to abort
2021-03-16 12:27:29 +08:00
bunnie
d68e3e8cf4
an attempt to refactor to rkyv 0.4.1
...
unfortunately, it looks like deserialize requires an alloc??
2021-03-16 02:02:53 +08:00
bunnie
ab1b839900
checkpoint before figuring out how to deal with the String rkyv version issue...
2021-03-16 00:11:23 +08:00
bunnie
be38661a1e
half-baked i2c stuff, but about to tear a bunch of it out
2021-03-15 14:58:48 +08:00
bunnie
2f71f2a1f5
add/test facility for handling async callbacks from shell commands
2021-03-14 00:39:27 +08:00
bunnie
6d2697667b
Merge pull request #51 from betrusted-io/hardware
...
Merge xobs changes to make typing much easier
2021-03-13 18:20:39 +08:00
bunnie
0950467a37
Merge branch 'hardware' of https://github.com/betrusted-io/xous-core into hardware
2021-03-13 18:15:37 +08:00
bunnie
5c1940a019
change the name of the window
2021-03-13 18:15:30 +08:00
Sean Cross
14c9d62046
gam: make sure opcodes are only available in-crate
...
This prevents them from accidentally being used outside of the crate.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-13 18:05:33 +08:00
Sean Cross
e1890b1717
graphics-server: buffer keypresses
...
Buffer keypresses so that keys are not lost. This improves
responsiveness, although there are still kernel plumbing issues.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-13 18:01:12 +08:00
bunnie
88dd44c0d6
Update README.md
2021-03-11 23:12:30 +08:00
bunnie
ded21973d4
Update README.md
2021-03-11 23:09:53 +08:00
bunnie
2957c3d99e
fix errant dot from screenshot tool
2021-03-11 23:07:05 +08:00
bunnie
beb3e0fec6
add a screenshot of shellchat
2021-03-11 23:04:04 +08:00
bunnie
4006df3c4f
add instructions on how to make commands
2021-03-11 22:54:24 +08:00