Skip to content

Commit cc3ff37

Browse files
mkeeternathanaelhuffmanAaron-Hartwigrmustaccbcantrill
authored
Cosmo support (#2013)
Co-authored-by: Nathanael Huffman <[email protected]> Co-authored-by: Aaron-Hartwig <[email protected]> Co-authored-by: Robert Mustacchi <[email protected]> Co-authored-by: Bryan Cantrill <[email protected]>
1 parent 5680547 commit cc3ff37

File tree

69 files changed

+7399
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7399
-279
lines changed

.github/workflows/build-boards.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,33 @@ jobs:
192192
image: ${{ matrix.image }}
193193
os: ${{ inputs.os }}
194194

195+
build-cosmo:
196+
if: ${{ inputs.board-set == 'cosmo' || inputs.board-set == 'all' }}
197+
name: build-cosmo
198+
strategy:
199+
matrix:
200+
build: [cosmo-a, cosmo-a-lab, cosmo-a-dev]
201+
include:
202+
- build: cosmo-a
203+
app_name: cosmo-a
204+
app_toml: app/cosmo/rev-a.toml
205+
image: default
206+
- build: cosmo-a-lab
207+
app_name: cosmo-a-lab
208+
app_toml: app/cosmo/rev-a-lab.toml
209+
image: default
210+
- build: cosmo-a-dev
211+
app_name: cosmo-a-dev
212+
app_toml: app/cosmo/rev-a-dev.toml
213+
image: default
214+
uses: ./.github/workflows/build-one.yml
215+
with:
216+
build: ${{ matrix.build }}
217+
app_name: ${{ matrix.app_name }}
218+
app_toml: ${{ matrix.app_toml }}
219+
image: ${{ matrix.image }}
220+
os: ${{ inputs.os }}
221+
195222
build-devboards:
196223
if: ${{ inputs.board-set == 'devboards' || inputs.board-set == 'all' }}
197224
name: build-devboards

Cargo.lock

Lines changed: 41 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/cosmo/Cargo.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[package]
2+
edition = "2021"
3+
readme = "README.md"
4+
name = "cosmo"
5+
version = "0.1.0"
6+
7+
[features]
8+
traptrace = ["ringbuf"]
9+
dump = ["kern/dump"]
10+
11+
[dependencies]
12+
cortex-m = { workspace = true }
13+
cortex-m-rt ={ workspace = true }
14+
cfg-if = { workspace = true }
15+
stm32h7 = { workspace = true, features = ["rt", "stm32h753"] }
16+
ringbuf = { path = "../../lib/ringbuf", optional = true }
17+
18+
drv-stm32h7-startup = { path = "../../drv/stm32h7-startup", features = ["h753"] }
19+
kern = { path = "../../sys/kern" }
20+
21+
[build-dependencies]
22+
build-util = {path = "../../build/util"}
23+
24+
# this lets you use `cargo fix`!
25+
[[bin]]
26+
name = "cosmo"
27+
test = false
28+
bench = false
29+
30+
[lints]
31+
workspace = true

app/cosmo/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Cosmo Service Processor (SP) firmware
2+
3+
The Cosmo is the SP5-based compute sled in the Oxide rack.
4+
5+
This folder contains the firmware that runs on its service processor (SP).
6+
7+
The Root of Trust firmware is common across multiple boards and can be found
8+
in the [`oxide-rot-1` subfolder](../oxide-rot-1).

0 commit comments

Comments
 (0)