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