Commit graph

51 commits

Author SHA1 Message Date
bunnie
f334199ee6 commit host mode debugging 2021-08-12 23:01:34 +08:00
bunnie
ec6a3fd1a3 self-signing working, but the patch to use the SHA hash engine seems to be disregarded... 2021-08-09 03:27:43 +08:00
bunnie
d86c78eea8 partial progress on self-signing 2021-08-03 04:58:34 +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
Sean Cross
aaa4407e21 sign-image: enable kernel image signing
Previously we only supported signing the loader. This also adds the
kernel as a thing that can be signed.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-15 16:39:35 +08:00
Sean Cross
f0bd6c6cd3 Merge branch 'sign-image' 2021-07-13 20:11:27 +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
2b19f31da9 set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +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
Sean Cross
31551a6227 tools: add sign-image
Add a Rust implementation of `sign-image`. This enables us to sign the
binary on any platform that can compile Rust.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-07-11 16:34:23 +08:00
bunnie
dfb8d89866 add comments about where to get packages from 2021-07-11 14:13:34 +08:00
bunnie
1949c1bbc9 a semblance of sanity, finally 2021-07-09 23:01:50 +08:00
bunnie
057d9895a6 beginnings of image signing 2021-07-06 17:31:09 +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
22906ce366 make the defaults for usb_update.py map to something immediately usable in-situ 2021-07-02 04:27:26 +08:00
bunnie
25ea2c9cf9 move obsolete script into tools directory and update readme 2021-06-30 00:12:46 +08:00
bunnie
7ff4824eb6 add routines to copy audio test files to the device 2021-06-23 19:07:59 +08:00
bunnie
d5c30fae00 tighten up the CPU halt periods to just around the USB burst reads 2021-06-12 15:13:35 +08:00
bunnie
75f15df723 relax polling of target ready in trng test script 2021-06-12 04:26:30 +08:00
bunnie
c1734334fb add retries around all functions 2021-06-12 03:41:45 +08:00
bunnie
406aa9405d put the trng tester host-side helpe script inside the tools directory 2021-06-12 01:50:17 +08:00
bunnie
758bb64578 Merge branch 'bunnie-dev' of github.com:betrusted-io/xous-core into bunnie-dev 2021-06-02 04:04:21 +08:00
bunnie
1f7add35a1 update docs for usb updater 2021-06-02 04:04:04 +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
8145473167 remove what i think is no longer a necessary comment 2021-05-25 05:31:21 +08:00
bunnie
8398d22102 fix readme 2021-05-25 03:56:19 +08:00
bunnie
40b4f26dcb fix alignment bug on erase blocks for usb_update.py 2021-05-25 03:54:37 +08:00
bunnie
548126d1b6 add a maintenance note to the docs 2021-05-23 15:11:11 +08:00
bunnie
e1d0dc2178 add USB updater scripts to xous-core 2021-05-23 14:55:43 +08:00
Sean Cross
f7ae13da44 tools: run cargo fmt on pnam
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-19 14:20:22 +08:00
Sean Cross
2e4fb672ab arguments: document and add pnam tag
The `PNam` tag stores information in the kernel about process names.
This can be used at runtime to discover what process maps to what
program name.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-10 14:37:33 +08:00
Sean Cross
86140dfb35 tools: specify v0.4 for log
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-06 16:36:34 +08:00
Sean Cross
7b50d00eb8 repo: run cargo fmt
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
hasheddan
a4d18d6db2
Update tools README.md links to other docs
Fixes links in tools directory README.md to top-level documentation.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-12-06 10:40:45 -06:00
Sean Cross
96df91f53b create-image: support generating an image from an svd
Now that we can parse svd files, support creating an image using an svd
instead of a csv file.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 11:37:44 +08:00
Sean
ba320184b0 tools: create-image: print out error when csr.csv can't be opened
Signed-off-by: Sean <xobs@ci.betrusted.io>
2020-10-03 20:32:31 +08:00
Sean Cross
10ecacd136 kernel: native: create process for initial processes
These all need to bootstrap themselves.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-09 23:08:54 +08:00
Sean Cross
09be029ad0 tools: refactor to make clippy happy
This fixes a lot of small clippy warnings.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-29 20:02:58 +08:00
Sean Cross
14bb1ac1e5 kernel: working on getting process termination functioning
Signed-off-by: Sean Cross <sean@xobs.io>
2020-06-22 17:42:24 +08:00
Sean Cross
973945fce2 tools: read-tags: fix bad pointer arithmetic
This removes raw pointer usage that could cause unaligned accesses.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-06-15 12:30:21 +08:00
Sean Cross
7da67f050a tools: fix most clippy warnings
Signed-off-by: Sean Cross <sean@xobs.io>
2020-06-15 12:04:23 +08:00
Sean Cross
5aa3358bc0 tools: generate byte addresses for mini elf files
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-12 15:29:26 +08:00
Sean Cross
4645816674 tools: elf: add comment and dead code for alignment fixing
This issue was spotted when the kernel address was wrong.  This fixed
the test, but was indicative of something else being wrong.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 14:43:15 +08:00
Sean Cross
edf723e107 create-image: verify the kernel image address is sane
Rust inconsistently applies linker scripts.  Verify the image being
added has a script that makes sense.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 14:42:01 +08:00
Sean Cross
36dbc97a61 tools: pad inie and xkrn tags to 4-bytes
This fixes an issue where images were not word-aligned.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 13:12:27 +08:00
Sean Cross
6959b4ef77 tools: rename from xous-tools
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 12:46:20 +08:00