Skip to content

Commit c6dbcaf

Browse files
evan-oxidemkeeter
andauthored
Support for observer-a (#2493)
This creates a draft `observer` app in preparation for bringup. Issue: #2409 --------- Co-authored-by: Matt Keeter <matt@oxide.computer>
1 parent adbd445 commit c6dbcaf

28 files changed

Lines changed: 2205 additions & 12 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
#:
3+
#: name = "build observer-a"
4+
#: variety = "basic"
5+
#: target = "ubuntu-22.04"
6+
#: rust_toolchain = true
7+
#: output_rules = [
8+
#: "=/work/*.zip",
9+
#: "=/work/this_is_not_signed.txt",
10+
#: ]
11+
12+
set -o errexit
13+
set -o pipefail
14+
set -o xtrace
15+
16+
exec .github/buildomat/build-one.sh observer-a app/observer/rev-a.toml default

Cargo.lock

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/observer/Cargo.toml

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

app/observer/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Observer Service Processor (SP) firmware
2+
3+
The Observer interfaces with the power shelf in the Oxide rack.
4+
This hardware is the successor to the Power Shelf Controller (PSC).
5+
6+
This folder contains the firmware that runs on its service processor (SP).
7+
8+
The Root of Trust firmware is common across multiple boards and can be found
9+
in the [`oxide-rot-1` subfolder](../oxide-rot-1).

0 commit comments

Comments
 (0)