Commit graph

10340 commits

Author SHA1 Message Date
bunnie
1c9e2e16e7 add generated fontmap file 2024-01-29 03:38:01 +08:00
bunnie
39fb11457f cjk is not in the small font set, substitute Tall for that target 2024-01-29 03:37:25 +08:00
bunnie
f06ceea5e1 bug fixes to frame buffer driver for cramium target
now works, and works pretty well.
2024-01-29 03:34:41 +08:00
bunnie
37d35b8e27 add small memory option for fonts to loader 2024-01-29 03:34:03 +08:00
bunnie
f2d7458463 test code for fonts 2024-01-29 03:33:41 +08:00
bunnie
13041ad043 add cramium-soc target for fonts 2024-01-29 03:33:20 +08:00
bunnie
ce78a24e10 add small font directory for loader 2024-01-29 03:32:54 +08:00
bunnie
2cb295ccf0 add switches for smaller memory targets for the loader side 2024-01-29 03:32:12 +08:00
bunnie
c20f6af52d add small and regular font options
doesn't break the mapping, makes code porting easier because
the character resolution macros don't require adjustment.
2024-01-29 03:31:29 +08:00
bunnie
f9811cb998 fix swapped args in gpio set 2024-01-29 02:09:18 +08:00
buncram
89f20100b0 add cheesy ball demo to the cram-console server 2024-01-29 02:08:27 +08:00
buncram
36c8e87889 add before/after data wait states to chip select; fix bug in CSR alloc 2024-01-29 02:07:45 +08:00
buncram
8d729cee01 cleanup warnings in ifram 2024-01-29 02:06:32 +08:00
bunnie
faa867e63d fix bug in page alignment logic
size, you can do this one liner:

let aligned_size = ((unasigned_size + alignment_quanta - 1) / (alignment_quanta)) * alignment_quanta;

before i was doing this with a `let mut` + `if` statement. this is not as obvious
but more compact, probably you'll start to see this idiom more and more in the code.

I think it's also computationally efficient, because as long as
the alignment_quanta is a power of 2, the compiler does something
like a shift right with the `/` operator (and it may also do something
like a shift left with the `*` operator as well).
2024-01-28 17:08:04 +08:00
bunnie
80be6d042a fix bug in bank request logic, add debug statements 2024-01-28 17:07:07 +08:00
bunnie
64c8eb71db fix another location where scalar5 arg parsing is incorrect 2024-01-28 16:40:04 +08:00
bunnie
da0d08f7b6 fix scalar5 return parsing
there isn't an arg0 in the `ScalarMessage` return type but
that doesn't mean numbering starts at 1. So the first slot
should remain unused if you're not casting a return value
to `MessageId` (which is "just" a `usize` but "feels wrong")
2024-01-28 16:38:05 +08:00
bunnie
017e7b1492 add missing register ranges: iox, aoc 2024-01-28 16:02:34 +08:00
bunnie
e4b0362024 make space for fonts in loader + sig verification code 2024-01-28 16:02:12 +08:00
bunnie
528abf3b9f fix bugs in baremetal udma API 2024-01-28 16:01:33 +08:00
bunnie
be8c78a0db add font_map target for cramium 2024-01-28 02:17:31 +08:00
bunnie
70708671fe flesh out the SPIM driver back-end for the graphics driver 2024-01-28 02:16:28 +08:00
bunnie
f432968678 add fonts back into the loader for the cramium target 2024-01-28 02:15:48 +08:00
bunnie
67ca9f1d90 implement spim TX routines for UDMA 2024-01-28 02:15:21 +08:00
bunnie
7fb36635e7 add graphics-server to the cram-soc target list 2024-01-28 02:14:58 +08:00
bunnie
89f671446a cleanup warnings 2024-01-28 02:14:40 +08:00
bunnie
334495aaec add target hooks to font generation (part I)
a "small" memory target is created, which maps only a subset
of fonts to memory for targets that have extremely limited amounts
of on-chip storage.

the main thing I'm not happy about with this change is that the
origin offset of the font table is hard-coded into the template,
but also, I'm not quite sure if there's a better way to do this
that doesn't make things unnecessarily complicated. The origin
offset *is* target specific, and the templates already
reference targets specifically in the config lists...so if this
were to be made more generic, the path you'd end up on is something
like parsing link.x files out of various configurations which seems
like an extreme amount of work for a constant that rarely changes.

So, it's a footgun, but one where mending the foot is several times
less effort than putting a safety on the footgun.
2024-01-28 02:11:09 +08:00
bunnie
9f8cfde417 update toml's to reflect baremetal->std change 2024-01-27 16:53:35 +08:00
bunnie
474d42ff87 pull in improved API to loader 2024-01-27 16:53:15 +08:00
bunnie
74219d58f5 change "baremetal" to "std" as a feature
has the opposite meaning, makes it easier to just include the
things that we don't want in kernel or loader mode
2024-01-27 16:52:39 +08:00
David Kotval
86c041beba Merge remote-tracking branch 'origin' into out_of_tree_issue 2024-01-26 16:30:26 -06:00
bunnie
c5f5d59865
Merge pull request #486 from betrusted-io/hosted-app-check
check that app paths exist in hosted mode
2024-01-27 02:17:26 +09:00
bunnie
5a0924d5d2
Merge pull request #485 from betrusted-io/rate-limit-for-reals
fix comparison on previous PR
2024-01-27 02:15:05 +09:00
bunnie
1835f4c139 check that app paths exist in hosted mode 2024-01-27 01:13:26 +08:00
bunnie
e2460db596 fix comparison on previous PR
helps to test things...couldn't do that earlier due to system
issues. this actually works now.
2024-01-26 23:14:56 +08:00
bunnie
38fe939c91 pull in crate changes for hal 2024-01-26 22:51:51 +08:00
bunnie
fe810d0666 pull in cramium HAL changes 2024-01-26 22:51:39 +08:00
bunnie
c7c384bb85 intermediate work checkin before swapping to sigchat branch 2024-01-26 22:51:13 +08:00
bunnie
e14a7ced8f pull is the refactor from the HAL 2024-01-26 22:51:00 +08:00
bunnie
e1b5487de0 refactor cramium HAL to pull ifram allocation into hw managers 2024-01-26 22:50:17 +08:00
David Kotval
1792fccf68 Merge branch 'main' into out_of_tree_issue 2024-01-25 13:24:25 -06:00
bunnie
90c13c39bb
Merge pull request #483 from betrusted-io/rate-limit-gam-debug
rate limit debug output in allow_untrustable_code()
2024-01-26 02:36:23 +09:00
bunnie
73b6d919af rate limit debug output in allow_untrustable_code() 2024-01-26 01:33:35 +08:00
bunnie
13122663f3 intermediate progress, have to switch branch 2024-01-26 01:21:06 +08:00
David Kotval
fa20e3c649 wip: debugging sigchat build fail due to missing translations 2024-01-24 16:46:08 +00:00
David Kotval
701e5b46fe feat: fill app manifest with English stubs 2024-01-24 16:45:46 +00:00
David Kotval
14da821164 fix: added English stubs to tls messages. 2024-01-24 16:42:36 +00:00
David Kotval
859aae94c9 feat: added stub to automatically fill in transaltions
A missing translation will cause a panic in the localization
macro. As a short term solution. The stub function in the
i18n_helper.py just fills anything missing with its English
placeholder. Note: After refactoring the python packing, I intend
to add an "auto machine translate" funciton as well.
2024-01-24 16:39:43 +00:00
bunnie
da23e136e6 reflect new dependencies between existing crates 2024-01-23 04:02:20 +08:00
bunnie
f23e2ee3de start fleshing out a gfx driver for the cramium target
far from complete, lots of warnings, but a good start.
most of the io setup and FB manipulation is done.

The main thing left is to puzzle through the UDMA block and
setup the SPIM accordingly.
2024-01-23 04:01:20 +08:00