Commit graph

10340 commits

Author SHA1 Message Date
bunnie
c37349778e put todo! placeholders for minielf handling of inis 2024-04-06 07:47:18 -07:00
bunnie
cdbd5dc0f4 add structure to differentiate image type
we now have three image types: inie, inif, inis; migrate
away from a simple "xip" flag to something that can differentiate
between all three options.
2024-04-06 07:47:18 -07:00
bunnie
a732eed679 make kernel aware of the IniS type
this should now introduce a crash in the kernel when an IniS
process is in the image set; previously we didn't try to
schedule and run them.
2024-04-06 07:47:18 -07:00
bunnie
28d07da7f1 add the flash offset of the swap region in swap args
Each platform interprets this differently.

On Precursor, it's the offset in FLASH of the swap region.

Probably, flags should be added to configure this somehow for each
platform, but still figuring a lot of things out.

The plan is on Cramium for the swap data to always be at 0
in the external SPI, so, we don't store an offset (field is
ignored).
2024-04-05 16:45:24 +08:00
bunnie
eeeb9281c0 enable debugging in loader 2024-04-05 16:44:55 +08:00
bunnie
95cd8289de
Merge pull request #527 from betrusted-io/bunnie-patch-1
remove debug-print from loader
2024-04-05 01:13:37 -07:00
bunnie
13790fc5e4
remove debug-print from loader
this shouldn't be here in main.
2024-04-05 16:12:11 +08:00
bunnie
6639e1f2e1 add renode configs for swap 2024-04-04 22:16:23 +08:00
bunnie
2a68ee098f fix main memory patching for swap config on precursor 2024-04-04 19:24:38 +08:00
bunnie
cf32b4edb5 patching routine for memory regions.
ended up not being used because main memory is a special case :P
2024-04-04 19:24:17 +08:00
bunnie
aff3620bdf make argument start/offset visible
so we can patch it up for the swap testing on precursor
2024-04-04 19:23:49 +08:00
bunnie
89daf48c39 the image creator is sensitive to the target for swap configs 2024-04-04 19:23:26 +08:00
bunnie
d4eac7325f fix ram offsets for precursor swap config 2024-04-04 19:23:07 +08:00
bunnie
9c0ac72aae add storage for the swap encryption key
This is set to 0 in the image creator, but the keying ceremony
should set this to something more secure after the device has
been initialized (and likewise, re-encrypt the swap region
to match the new, secure key).
2024-04-04 18:45:16 +08:00
bunnie
39e8184b5d chore: add a comment 2024-04-04 18:45:02 +08:00
bunnie
01ef436bd0 absorb new dependencies 2024-04-04 18:34:45 +08:00
bunnie
7facdf5e7d add cryptographic libraries to the image creator manifest 2024-04-04 18:34:23 +08:00
bunnie
932f13b532 rework create-image to put inis objects into the detached swap region 2024-04-04 18:34:00 +08:00
bunnie
e1dbd6726b add the swap_writer module to the library 2024-04-04 18:33:29 +08:00
bunnie
9eebf5dd05 add the swap writer
This will take the buffer that is generated from a xous argument
and encrypts it to the prescribed "detached swap" format.
2024-04-04 18:32:45 +08:00
bunnie
dd0b012706 specify swap file name 2024-04-04 18:32:19 +08:00
bunnie
9a260d4213
Merge pull request #526 from betrusted-io/fixup-swap
Fixup swap
2024-04-01 03:13:26 -07:00
bunnie
cc75520bc2 fix missing commands in non-swap path 2024-04-01 18:11:35 +08:00
bunnie
d9a27ea3d7 remove unnecessary print 2024-04-01 18:11:22 +08:00
bunnie
d77c3871c5 Merge branch 'swap-image-loader' of github.com:betrusted-io/xous-core into swap-image-loader 2024-04-01 16:08:41 +08:00
bunnie
4e843fbc42 put placeholders for inis handling, phase 2 2024-04-01 01:08:28 -07:00
bunnie
baf61a4efa put placeholders to handle inis in phase1 2024-04-01 01:08:28 -07:00
bunnie
184ab780d9 put todo! placeholders for minielf handling of inis 2024-04-01 01:08:28 -07:00
bunnie
bae3102e87 add structure to differentiate image type
we now have three image types: inie, inif, inis; migrate
away from a simple "xip" flag to something that can differentiate
between all three options.
2024-04-01 01:08:28 -07:00
bunnie
9afc7cd605 make kernel aware of the IniS type
this should now introduce a crash in the kernel when an IniS
process is in the image set; previously we didn't try to
schedule and run them.
2024-04-01 01:08:28 -07:00
bunnie
06d8a35221
Merge pull request #523 from betrusted-io/swap-fix-hosted
Swap fix hosted
2024-04-01 01:00:21 -07:00
bunnie
b64b78a1f1 absorb updated xous pins in lockfile 2024-04-01 15:58:31 +08:00
bunnie
7d38d1761e add missing config flags 2024-04-01 15:58:16 +08:00
bunnie
b3f695dbc2 fix missing config flag 2024-04-01 15:57:50 +08:00
bunnie
74df4f77dc bump verifier pins 2024-04-01 15:57:34 +08:00
bunnie
4a1f32cffd clean up warning that emerged in rust updates 2024-04-01 15:57:19 +08:00
bunnie
be5969686d add notes about encrypted swap coming into the system 2024-04-01 15:51:14 +08:00
bunnie
d6b33159a5 stage version pin bump 2024-04-01 15:46:26 +08:00
bunnie
ac6ef88910 add curve25519-dalek to maintenance of pins 2024-04-01 15:43:39 +08:00
bunnie
95a10e93ca cleanup warning when swap is not used / hosted mode 2024-04-01 15:38:51 +08:00
bunnie
39d549e9a0 cleanup hosted mode warnings 2024-04-01 15:38:32 +08:00
bunnie
6c4e899a5a cleanup comment formatting 2024-04-01 15:38:07 +08:00
bunnie
5a3a8584ff put placeholders for inis handling, phase 2 2024-04-01 15:29:38 +08:00
bunnie
e5ecdc88f5 put placeholders to handle inis in phase1 2024-04-01 15:29:23 +08:00
bunnie
cb7cbd9357 put todo! placeholders for minielf handling of inis 2024-04-01 15:28:53 +08:00
bunnie
a6696aaf77 add structure to differentiate image type
we now have three image types: inie, inif, inis; migrate
away from a simple "xip" flag to something that can differentiate
between all three options.
2024-04-01 15:28:04 +08:00
bunnie
0989f22417 make kernel aware of the IniS type
this should now introduce a crash in the kernel when an IniS
process is in the image set; previously we didn't try to
schedule and run them.
2024-04-01 15:27:24 +08:00
bunnie
a37b2c06e1
Merge pull request #512 from betrusted-io/swap
WIP: Encrypted Swap
2024-04-01 00:23:43 -07:00
bunnie
e89c869581
Merge pull request #522 from betrusted-io/chore-warning
cleanup warning that has crept up in hosted mode
2024-03-31 23:31:27 -07:00
bunnie
376eff8790 cleanup warning that has crept up in hosted mode 2024-04-01 14:28:02 +08:00