Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,5 @@
DEPENDS:append:fp5280g2= " fp5280g2-yaml-config"
EXTRA_OECONF:fp5280g2= " \
INVSENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-inventory-sensors.yaml \
"
@@ -0,0 +1,47 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
# Calculate the auxiliary firmware revision to be updated in the dev_id.json
# file. It is calculated from the VERSION_ID field which currently has two
# formats. The revision field is 4 bytes, the first two bytes represent the
# count of commits from the tagging and next two bytes represent the version.
# Both fields are represented in BCD encoded format, so 9999 is the maximum
# value both fields can take. With the format "v2.1-216-ga78ace8", Petitboot
# would display the firmware revision as "Firmware version: 2.01.02160000",
# "0216" is count and the revision is "0000". With the format
# "ibm-v2.0-10-r41-0-gd0c319e" Petitboot would display the firmware revision
# as "Firmware version: 2.00.00100041", "0010" is count and the revision
# is "0041".
inherit image_version
unset do_patch[noexec]
do_patch[depends] = "os-release:do_populate_sysroot"
python do_patch() {
import json
import re
from shutil import copyfile
version_id = do_get_version(d)
# count from the commit version
count = re.findall("-(\d{1,4})-", version_id)
if not count:
return
release = re.findall("-r(\d{1,4})", version_id)
if release:
auxVer = count[0] + "{0:0>4}".format(release[0])
else:
auxVer = count[0] + "0000"
workdir = d.getVar('WORKDIR', True)
file = os.path.join(workdir, 'dev_id.json')
# Update dev_id.json with the auxiliary firmware revision
with open(file, "r+") as jsonFile:
data = json.load(jsonFile)
jsonFile.seek(0)
jsonFile.truncate()
data["aux"] = int(auxVer, 16)
json.dump(data, jsonFile)
}
@@ -0,0 +1,178 @@
{
"0" : {
"name" : "IPMB",
"is_valid" : true,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "ipmb",
"protocol_type" : "ipmb-1.0",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"1" : {
"name" : "eth1",
"is_valid" : true,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "lan-802.3",
"protocol_type" : "ipmb-1.0",
"session_supported" : "multi-session",
"is_ipmi" : true
}
},
"2" : {
"name" : "eth0",
"is_valid" : true,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "lan-802.3",
"protocol_type" : "ipmb-1.0",
"session_supported" : "multi-session",
"is_ipmi" : true
}
},
"3" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"4" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"5" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"6" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"7" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"8" : {
"name" : "INTRABMC",
"is_valid" : true,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "oem",
"protocol_type" : "oem",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"9" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"10" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"11" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"12" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"13" : {
"name" : "RESERVED",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "reserved",
"protocol_type" : "na",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"14" : {
"name" : "SELF",
"is_valid" : false,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "ipmb",
"protocol_type" : "ipmb-1.0",
"session_supported" : "session-less",
"is_ipmi" : true
}
},
"15" : {
"name" : "SMS",
"is_valid" : true,
"active_sessions" : 0,
"channel_info" : {
"medium_type" : "system-interface",
"protocol_type" : "kcs",
"session_supported" : "session-less",
"is_ipmi" : true
}
}
}
@@ -0,0 +1,251 @@
{
"inlet": [
{"instance": 1, "dbus": "/xyz/openbmc_project/sensors/temperature/inlet", "record_id": 254}
],
"baseboard": [
{"instance": 1, "dbus": "/xyz/openbmc_project/sensors/temperature/bmc_zone", "record_id": 253},
{"instance": 2, "dbus": "/xyz/openbmc_project/sensors/temperature/ocp_zone", "record_id": 252}
],
"cpu": [
{
"instance": 1,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core0_temp",
"record_id": 91
},
{
"instance": 2,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core1_temp",
"record_id": 92
},
{
"instance": 3,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core2_temp",
"record_id": 93
},
{
"instance": 4,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core3_temp",
"record_id": 94
},
{
"instance": 5,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core4_temp",
"record_id": 95
},
{
"instance": 6,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core5_temp",
"record_id": 96
},
{
"instance": 7,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core6_temp",
"record_id": 97
},
{
"instance": 8,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core7_temp",
"record_id": 98
},
{
"instance": 9,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core8_temp",
"record_id": 99
},
{
"instance": 10,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core9_temp",
"record_id": 100
},
{
"instance": 11,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core10_temp",
"record_id": 101
},
{
"instance": 12,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core11_temp",
"record_id": 102
},
{
"instance": 13,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core12_temp",
"record_id": 103
},
{
"instance": 14,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core13_temp",
"record_id": 104
},
{
"instance": 15,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core14_temp",
"record_id": 105
},
{
"instance": 16,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core15_temp",
"record_id": 106
},
{
"instance": 17,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core16_temp",
"record_id": 107
},
{
"instance": 18,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core17_temp",
"record_id": 108
},
{
"instance": 19,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core18_temp",
"record_id": 109
},
{
"instance": 20,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core19_temp",
"record_id": 110
},
{
"instance": 21,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core20_temp",
"record_id": 111
},
{
"instance": 22,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core21_temp",
"record_id": 112
},
{
"instance": 23,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core22_temp",
"record_id": 113
},
{
"instance": 24,
"dbus": "/xyz/openbmc_project/sensors/temperature/p0_core23_temp",
"record_id": 114
},
{
"instance": 25,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core0_temp",
"record_id": 115
},
{
"instance": 26,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core1_temp",
"record_id": 116
},
{
"instance": 27,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core2_temp",
"record_id": 117
},
{
"instance": 28,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core3_temp",
"record_id": 118
},
{
"instance": 29,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core4_temp",
"record_id": 119
},
{
"instance": 30,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core5_temp",
"record_id": 120
},
{
"instance": 31,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core6_temp",
"record_id": 121
},
{
"instance": 32,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core7_temp",
"record_id": 122
},
{
"instance": 33,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core8_temp",
"record_id": 123
},
{
"instance": 34,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core9_temp",
"record_id": 124
},
{
"instance": 35,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core10_temp",
"record_id": 125
},
{
"instance": 36,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core11_temp",
"record_id": 126
},
{
"instance": 37,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core12_temp",
"record_id": 127
},
{
"instance": 38,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core13_temp",
"record_id": 128
},
{
"instance": 39,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core14_temp",
"record_id": 129
},
{
"instance": 40,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core15_temp",
"record_id": 130
},
{
"instance": 41,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core16_temp",
"record_id": 131
},
{
"instance": 42,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core17_temp",
"record_id": 132
},
{
"instance": 43,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core18_temp",
"record_id": 133
},
{
"instance": 44,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core19_temp",
"record_id": 134
},
{
"instance": 45,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core20_temp",
"record_id": 135
},
{
"instance": 46,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core21_temp",
"record_id": 136
},
{
"instance": 47,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core22_temp",
"record_id": 137
},
{
"instance": 48,
"dbus": "/xyz/openbmc_project/sensors/temperature/p1_core23_temp",
"record_id": 138
}
]
}
@@ -0,0 +1,2 @@
{"id": 0, "revision": 128, "addn_dev_support": 141,
"manuf_id": 51850, "prod_id": 514, "aux": 0}
@@ -0,0 +1,6 @@
DEPENDS:append:fp5280g2= " fp5280g2-yaml-config"
EXTRA_OECONF:fp5280g2= ""
IPMI_FRU_YAML:fp5280g2="${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-fru-read.yaml"
IPMI_FRU_PROP_YAML:fp5280g2="${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-extra-properties.yaml"
@@ -0,0 +1,7 @@
DEPENDS:append:fp5280g2= " fp5280g2-yaml-config"
EXTRA_OEMESON:fp5280g2= " \
-Dsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-sensors.yaml \
-Dinvsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-inventory-sensors.yaml \
-Dfru-yaml-gen=${STAGING_DIR_HOST}${datadir}/fp5280g2-yaml-config/ipmi-fru-read.yaml \
"
@@ -0,0 +1 @@
DEFAULT_RMCPP_IFACE = "eth1"