Commit graph

10340 commits

Author SHA1 Message Date
bunnie
b329023091 workaround trng trait inconsistency
0.5.1 rand_core needed for the dalek crates
0.6.3 traits everywhere else
what a mess

turns out i can just use fill_via_next() to do the same thing
without having to step on cross-generation traits. whew.

(also not in tree but doing a quick manual test that fill_via_next()
is not totally broken)
2023-02-27 02:09:07 +08:00
bunnie
8690d955d0 add a regenerated SoC
no major changes on the SoC; however, some unused blocks
were trimmed, and the timing has been tightened up.
2023-02-27 01:31:27 +08:00
bunnie
dfd4c1ab40 fix precursor platform test
the precursor platform test is a RAM stress test. This patch
improves the test slightly by making it more parameterizeable,
and having it run a bit longer.
2023-02-27 01:30:20 +08:00
bunnie
9e9e5547c9 note about deprecated features in TRNG
the messible is no more, we need to add some slack in the critical
path so trimming out some unused blocks helps.
2023-02-27 01:25:48 +08:00
bunnie
9b3aeeecc2 improve debug telemetry on llio 2023-02-27 01:25:29 +08:00
bunnie
c3a331291b undo patch for https://github.com/rust-lang/rust/issues/94182
seems to not trigger in the latest rust.
2023-02-26 17:12:34 +08:00
bunnie
aea9b95506 skip checking any ec update image that reports a length beyond our slice bounds 2023-02-26 01:22:53 +08:00
bunnie
39db006510 bump lockfile to absorb rand_core 2023-02-26 01:01:53 +08:00
bunnie
fa20b90973 add rand_core trait to functions that require fill_bytes() 2023-02-26 01:01:30 +08:00
bunnie
62c9f0d0ce remove warnings when benchmarks are on; add log telemetry
this allows us to automate testing using the benchmark code
as a stress test
2023-02-26 01:00:45 +08:00
bunnie
f3c28b4e20 implement 0.5.1 rand_core API
this is for interop with the curve25519-dalek crate
2023-02-26 01:00:02 +08:00
bunnie
64d5644ecf absorb potential MMU D$ fix from vex dev branch 2023-02-24 18:06:00 +08:00
bunnie
0b25ede0c5 refactor phase 1 of the bootloader
Removes some of the redundant copying, and also simplifies the code
for easier readability and maintainability.
2023-02-22 03:29:14 +08:00
bunnie
b8cc156cfc compact phase 1 loader
merge inie/inif routines more intelligently
2023-02-22 00:58:26 +08:00
bunnie
039de0bfe9 split loader into modules 2023-02-22 00:36:16 +08:00
bunnie
3437b94807 clean up a warning 2023-02-21 23:38:40 +08:00
bunnie
e34d740bc6 some final tweaks for cross-platform integration 2023-02-21 23:19:02 +08:00
bunnie
032bd864db parameterize the loader so it can work with multiple targets 2023-02-21 22:51:53 +08:00
bunnie
bdc0b79906 move assembly header into in-line assembly 2023-02-21 22:17:10 +08:00
bunnie
0c9f8c57c2 remove warning on unused murmur lib when no resume is enabled 2023-02-21 18:24:39 +08:00
bunnie
c4a55a3cb5 fix multiplatform details; bump version number printed 2023-02-21 18:19:12 +08:00
bunnie
0c6ee68a3b make secboot optional 2023-02-21 18:11:32 +08:00
bunnie
f95b05fdb0 fix utralib entry 2023-02-21 17:46:56 +08:00
bunnie
dd105e25f7 update loader Cargo.toml to include platform options 2023-02-21 17:44:12 +08:00
bunnie
3d88a7b3de add platform option files to loader 2023-02-21 17:43:48 +08:00
bunnie
e86f69d5a9 refactor paths to use xpack instead of sifive toolchain 2023-02-21 17:43:31 +08:00
bunnie
ecf2cf2a7e Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-02-20 17:11:17 +08:00
bunnie
342ea128e7 Merge branch 'v0.9.12-hotfix' into main 2023-02-20 17:10:58 +08:00
bunnie
3f8d22eb25 force backlight off before issuing kill command in test
this helps deconvolve the backlight current from the idle current
more reliably
2023-02-20 16:53:24 +08:00
bunnie
04d9cacad9
Update arguments.md 2023-02-19 14:58:53 +08:00
bunnie
88f542db2d
Update to have loader changes 2023-02-19 14:44:59 +08:00
bunnie
a63993963b fix ECC status register clearing
have to write the WREN register first!
2023-02-15 22:55:57 +08:00
bunnie
9444b68818 bump lock file and verifiers to absorb eh_* fixes 2023-02-15 20:37:14 +08:00
bunnie
73aa6c3b14 cleanup hosted mode warning 2023-02-15 20:35:32 +08:00
bunnie
6563ad174e bump revision 2023-02-15 20:35:16 +08:00
bunnie
fced4608b6 bump kernel package rev 2023-02-15 20:26:30 +08:00
Sean Cross
13b614a212
Merge pull request #322 from betrusted-io/eh_header
fix: #320 adds the eh_frame tags and passes them to each process
2023-02-15 07:10:27 -05:00
bunnie
08ae66a264 fix: #320
this commit adds the facilities to extract eh_frame[_header]
sections and pass it to each process.

A bump is required to `std` to extract the passed parameters.
2023-02-15 19:55:08 +08:00
bunnie
eeef91d467 increase cache flush margin
this seems to help #321. At the very least, on my test unit
an image without this crashes fairly reliably, and with this,
it can complete a few tries consecutively without fail
2023-02-14 00:15:43 +08:00
bunnie
787525fd6d increase cache flush margin
this seems to help #321. At the very least, on my test unit
an image without this crashes fairly reliably, and with this,
it can complete a few tries consecutively without fail
2023-02-14 00:12:27 +08:00
bunnie
ed45426624 Merge branch 'fix-test-range' into main 2023-02-13 14:41:44 +08:00
bunnie
6526171a28 fix the test range for latest production parameters 2023-02-13 14:30:21 +08:00
bunnie
ffe697b8c8 CHORE: cleanup some build warnings
put the load checker code behind the debug-print feature gate
2023-02-12 13:15:02 +08:00
bunnie
0184881955 commit updated kernel version 2023-02-12 12:59:46 +08:00
bunnie
80f031b7e7 bump kernel version 2023-02-12 12:58:42 +08:00
Sean Cross
5e592915d0
Merge pull request #319 from betrusted-io/page-align-programs
Add XIP loader support
2023-02-12 12:17:32 +08:00
bunnie
fa6dcdff7e add test case and bump Cargo.lock 2023-02-12 01:14:44 +08:00
bunnie
43c73c0d6c align sections of the MiniElf
Sections of the MiniElf are now aligned as required by the
source ELF requirements. This is required for direct-mapping
with XIP.

the overhead is just a few bytes every couple of programs, so it's
a small price to pay for XIP.
2023-02-12 01:13:30 +08:00
bunnie
a6b46c6275 add check function to loader
This is very helpful for debugging loader errors. Basically
it prints out the first and last 20 bytes of each section
based on the source as specified in the MiniElf format, and
then it prints the corresponding data as loaded after walking
the page tables.

Loader errors really stand out with this debugging tool.
2023-02-12 01:12:20 +08:00
bunnie
bc65b88154 fix paths so that binary packages can also be XIP 2023-02-11 18:42:50 +08:00