Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions fboss/platform/configs/icecube800banw/fw_util.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
{
"fwConfigs": {
"cpu_cpld": {
"upgrade": [
{
"commandType": "jam",
"jamArgs": {
"jamExtraArgs": [
"-aprogram",
"-fmarconi_cpu_cpld",
"-v"
]
}
}
],
"version": {
"versionType": "sysfs",
"path": "/run/devmap/inforoms/CPU_FPGA_INFO_ROM/fw_ver"
},
"priority": 2
},
"smb_fpga": {
"upgrade": [
{
Expand Down
11 changes: 11 additions & 0 deletions fboss/platform/firmware_onboarding/configs/icecube800banw/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")

oncall("fboss_platform")

export_file(
name = "spec",
src = "spec.json",
visibility = [
"//fboss/platform/firmware_onboarding/...",
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"spec_version": "1.0",

"platform": {
"name": "icecube800banw",
"silicon": [
{ "name": "TH6" }
]
},

"components": [
{
"name": "smb_fpga",
"platform_identifier": "icecube800banw",
"location": "Switch Main Board",
"display_location": "smb",
"field_replaceable": false,
"firmware": {
"priority": 1,
"shared_with_platforms": []
}
},
{
"name": "cpu_cpld",
"platform_identifier": "icecube800banw",
"location": "System Control Module",
"display_location": "scm",
"field_replaceable": true,
"firmware": {
"priority": 2,
"shared_with_platforms": []
}
}
]
}
1 change: 1 addition & 0 deletions fboss/platform/firmware_onboarding/validator/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ python_unittest(
network_access = network_access_utils.none(),
resources = {
"//fboss/platform/firmware_onboarding/configs/icecube800bc:spec": "tests/icecube800bc.json",
"//fboss/platform/firmware_onboarding/configs/icecube800banw:spec": "tests/icecube800banw.json",
},
deps = [":preflight"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
run_preflight,
)


_CANONICAL_PLATFORMS: list[str] = [
"icecube800bc",
]
_CANONICAL_PLATFORMS: list[str] = ["icecube800bc", "icecube800banw"]


class CanonicalExamplesTest(unittest.TestCase):
Expand Down Expand Up @@ -73,7 +70,5 @@ def test_each_canonical_spec_passes_preflight(self) -> None:
# stays in sync if new tiers (e.g. `[depcheck]`) are added.
hard = [e for e in errors if _is_hard_failure(e)]
self.assertEqual(
hard,
[],
f"{platform}/spec.json failed preflight: {errors}",
hard, [], f"{platform}/spec.json failed preflight: {errors}"
)
Loading