Commit graph

1622 commits

Author SHA1 Message Date
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
bunnie
98c0054d7e some progress on spinor drivers 2021-07-14 00:01:09 +08:00
bunnie
69d34d38dc Merge branch 'main' into bunnie-dev 2021-07-13 23:11:46 +08:00
bunnie
7cd8b4107a clear keyboard state vectors on resume
if any keys were pressed in the middle of a suspend...

probably, the user didn't care to have them still pressed on resume!
2021-07-13 23:10:10 +08:00
bunnie
78394b869a Merge branch 'main' of github.com:betrusted-io/xous-core into main 2021-07-13 22:42:57 +08:00
bunnie
b8b034086c actually use the curve25519 engine in the loader
forgot to apply a patch.crates-io in the Cargo.toml file
for the loader, so we were using u32 software backend emulation.
2021-07-13 22:40:57 +08:00
bunnie
ef93196cfc stash commit to fix a bootloader issue 2021-07-13 22:28:46 +08:00
Sean Cross
7c0e6ba81d loader: print an error on invalid public key
Instead of silently panicking, print an error to the screen and /then/
panic.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-13 20:07:11 +08:00
bunnie
cd28546d60 Merge branch 'bunnie-dev' into main 2021-07-13 01:02:26 +08:00
bunnie
2a417557a5 update renode artifacts 2021-07-13 01:02:08 +08:00
bunnie
135cffcb16 Merge branch 'bunnie-dev' into main 2021-07-13 00:48:12 +08:00
bunnie
8045e0aac8 add the keys command
this is the beginning of where key management goes. for now,
all you can do is just turn USB debug on and off.
2021-07-13 00:47:05 +08:00
bunnie
a4f8346c34 reflect the latest fixes to the secure boot process
also patch up some issues with sha512 reset and loose
ends on docs and updates
2021-07-13 00:46:31 +08:00
bunnie
5d62af49a5 simple signature checks in the bootloader now
checks xous.img as a single blob before accepting it.
2021-07-12 17:16:22 +08:00
bunnie
65ee3609ed
Update flash.md 2021-07-12 16:02:23 +08:00
bunnie
2b19f31da9 set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +08:00
bunnie
84a2e9f768 fix status bar so that it redraws out of suspend/resume
the bootloader modifies the screen, so all elements must
be redrawn regardless of the pervious state change!
2021-07-11 18:47:19 +08:00
bunnie
b31ff527a3 more help for dealing with python shittiness 2021-07-11 17:01:56 +08:00
bunnie
3359267eb0 update with some hints that hopefully make installation easier 2021-07-11 17:00:38 +08:00
bunnie
dfb8d89866 add comments about where to get packages from 2021-07-11 14:13:34 +08:00
bunnie
cfd3339b5a add a note about python dependencies 2021-07-11 04:35:36 +08:00
bunnie
8007eabd54 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2021-07-11 04:15:26 +08:00
bunnie
16a746aede remove some warnings in xtask 2021-07-11 04:14:59 +08:00
bunnie
5c5cd36830 update the soc svd and precursors 2021-07-11 04:05:21 +08:00
bunnie
1949c1bbc9 a semblance of sanity, finally 2021-07-09 23:01:50 +08:00
bunnie
3ac17a99db reduce miniruns count to save on gates 2021-07-08 15:58:59 +08:00
Sean Cross
2599031cd7 Merge branch 'main' of github.com:betrusted-io/xous-core 2021-07-07 14:34:19 +08:00
Sean Cross
4e17946960 kernel: riscv: ensure stack is 16-byte aligned
Make sure processes are set up such that the stack is aligned to a
16-byte boundary.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-07 14:34:05 +08:00
Sean Cross
d96b6c15c8 loader: ensure stack is 16-byte aligned
The stack must be 16-byte aligned in order for `u32` to work properly,
as the compiler assumes these values are aligned.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-07 14:32:08 +08:00
bunnie
657ac115a0
Update flash.md 2021-07-07 00:43:19 +08:00
bunnie
057d9895a6 beginnings of image signing 2021-07-06 17:31:09 +08:00
bunnie
c51c8081b4 update another build that solves some WDT issues
opened a task to look at WDT stability. seems like we're
still not there yet...
2021-07-06 02:07:31 +08:00
bunnie
d846c5ad0e add a memory stress tester 2021-07-06 01:35:19 +08:00
Sean Cross
2339b7315f emulation: memlcd: add DEVBOOT register and defacement
Add this new register as well as the defacement that occurs when it is
enabled.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-05 17:35:15 +08:00
Sean Cross
c1d41bb168 emulation: repl: shrink memory range for sram
Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-05 17:34:58 +08:00
Sean Cross
2c2fdaa1b4 emulation: sync svd from precursors
Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-05 17:18:29 +08:00
bunnie
2c6ba2f127 fix brokenness with ptr_meta crate 2021-07-05 17:17:33 +08:00
bunnie
6ee6316beb Merge branch 'main' into bunnie-dev 2021-07-05 17:12:43 +08:00
bunnie
6c697de512 add l2 cache support (suspend/resume flushing)
also noted some performance benchmark improvements
2021-07-05 17:05:10 +08:00
bunnie
1b5d4bd79b push of spinor changes to validate l2cache 2021-07-05 00:08:58 +08:00
bunnie
79ce51c32c Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-07-04 02:15:13 +08:00
bunnie
a25f244426 Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-07-04 01:50:55 +08:00
bunnie
f63b29cadd fix bugs in the trng tester helper script 2021-07-04 01:50:31 +08:00
bunnie
47c1a98d13 fix the aesthetics of the suspend screen 2021-07-03 21:46:58 +08:00
bunnie
00be94d913 devboot mode support 2021-07-03 21:08:39 +08:00
bunnie
22906ce366 make the defaults for usb_update.py map to something immediately usable in-situ 2021-07-02 04:27:26 +08:00
bunnie
3f08dcccee increase the susres timeout to be less aggressive
now that we have auto-clock throttling, fast SR cycles are not
as critical to power saving. They are more a mechanism to be
invoked based on user command, not automatically, and thus it's
not as critical to shut things down ungracefully if the CPU is
heavily loaded.
2021-06-30 19:05:20 +08:00
bunnie
25ea2c9cf9 move obsolete script into tools directory and update readme 2021-06-30 00:12:46 +08:00