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,4 @@
MACHINEOVERRIDES =. "p10bmc:"
require conf/machine/p10bmc.conf
require conf/distro/include/etcd.inc
+89
View File
@@ -0,0 +1,89 @@
DISTRO_NAME = "IBM eBMC (OpenBMC for IBM Enterprise Systems)"
# The first dtb listed is the one used by default on a BMC genesis boot.
# Need bonnell to be the first one because it contains an eeprom that's bigger
# than in the other systems. Otherwise the device driver would truncate the data
# on that eeprom on a bonnell system.
KERNEL_DEVICETREE = \
"aspeed-bmc-ibm-bonnell.dtb \
aspeed-bmc-ibm-rainier.dtb \
aspeed-bmc-ibm-rainier-4u.dtb \
aspeed-bmc-ibm-everest.dtb"
UBOOT_MACHINE = "ast2600_openbmc_spl_emmc_defconfig"
UBOOT_DEVICETREE = "ast2600-p10bmc"
SPL_BINARY = "spl/u-boot-spl.bin"
OBMC_POWER_SUPPLY_INSTANCES = "0 1 2 3"
require conf/distro/include/phosphor-mmc.inc
require conf/machine/include/ast2600.inc
require conf/machine/include/obmc-bsp-common.inc
require conf/machine/include/openpower.inc
require conf/machine/include/p10.inc
require conf/distro/include/openpower-virtual-pnor.inc
require conf/distro/include/openpower-hostfw-over-pldm.inc
require conf/distro/include/ibm-mpreboot.inc
require conf/distro/include/ibm-yaml.inc
include conf/distro/include/extra-dev-debug-tools.inc
DISTRO_FEATURES += "ibm-service-account-policy mctp"
MACHINE_FEATURES += 'phal tpm2'
SERIAL_CONSOLES = "115200;ttyS4"
MRW_XML = "witherspoon.xml"
PHOSPHOR_MRW_LICENSE = "Apache-2.0"
PHOSPHOR_MRW_LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
PHOSPHOR_MRW_URI = "git://github.com/open-power/witherspoon-xml;branch=master;protocol=https"
PHOSPHOR_MRW_REV = "c622cb5a5dd3ebc2a4eef558d1b70740f914e6f7"
VIRTUAL-RUNTIME_phosphor-hwmon-config:df-mrw = ""
PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config:df-mrw = \
"phosphor-fan-control-fan-config"
PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config:df-mrw = \
"phosphor-fan-presence-config"
SKIP_BROKEN_MRW = "1"
IMAGE_FEATURES:remove = "obmc-ikvm"
UBOOT_SIGN_ENABLE = "1"
SPL_SIGN_ENABLE = "1"
FIT_HASH_ALG = "sha512"
FIT_SIGN_ALG = "rsa4096"
FIT_SIGN_NUMBITS = "4096"
UBOOT_FITIMAGE_ENABLE = "1"
UBOOT_FIT_HASH_ALG = "sha512"
UBOOT_FIT_SIGN_ALG = "rsa4096"
UBOOT_FIT_SIGN_NUMBITS = "4096"
UBOOT_SIGN_KEYNAME = "rsa_oem_fitimage_key"
SPL_SIGN_KEYNAME = "rsa_oem_fitimage_key"
UBOOT_SIGN_KEYDIR = "${WORKDIR}"
SPL_SIGN_KEYDIR = "${WORKDIR}"
SOCSEC_SIGN_ENABLE = "1"
DEBUG_TRIGGERS = "kcs2"
PACKAGECONFIG:append:pn-debug-trigger = " triggers"
PACKAGECONFIG:pn-opkg = "curl openssl ssl-curl"
# Add zImage to images directory for Qemu
KERNEL_IMAGETYPES +=" zImage "
# Produce a .qcow2 of the wic for Qemu
IMAGE_FSTYPES +=" wic.qcow2 "
QB_ROOTFS_OPT:p10bmc="-drive file=@ROOTFS@,if=sd,format=qcow2,index=2"
QB_MACHINE:p10bmc="-machine rainier-bmc"
QB_DTB:p10bmc="aspeed-bmc-ibm-rainier.dtb"
QB_MEM:p10bmc="-m 1024"
QB_DEFAULT_FSTYPE:p10bmc="wic.qcow2"
QB_FSINFO = "wic:no-kernel-in-fs"
QB_DEFAULT_KERNEL:p10bmc="zImage"
QB_KERNEL_ROOT:p10bmc="PARTLABEL=rofs-a"
FLASH_SIZE = "16777216"
+22
View File
@@ -0,0 +1,22 @@
require conf/machine/witherspoon.conf
IMAGE_FSTYPES += "ext4 mmc-ext4-tar"
KERNEL_DEVICETREE = "${KMACHINE}-bmc-opp-${MACHINE}.dtb"
PHOSPHOR_MRW_LICENSE = "Apache-2.0"
PHOSPHOR_MRW_LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
PHOSPHOR_MRW_URI = "git://git@github.com/open-power/swift-xml;protocol=ssh;branch=master;protocol=https"
PHOSPHOR_MRW_REV = "2b59e12db44e167a1652777b770674d235ec55ba"
# 128MB flash size
FLASH_SIZE = "131072"
# 32MB read-write filesystem
FLASH_UBI_RWFS_SIZE ?= "32768"
FLASH_UBI_RWFS_TXT_SIZE ?= "32MiB"
BMC_RW_SIZE = "0x2000000"
# Inhibit swift-led-manager-config-native
PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native:df-mrw = \
"swift-led-manager-config-native"
@@ -0,0 +1,46 @@
KERNEL_DEVICETREE = "aspeed-bmc-opp-tacoma.dtb"
UBOOT_MACHINE = "ast2600_openbmc_spl_emmc_defconfig"
UBOOT_DEVICETREE = "ast2600-tacoma"
SPL_BINARY = "spl/u-boot-spl.bin"
SOCSEC_SIGN_ENABLE = "0"
OBMC_POWER_SUPPLY_INSTANCES = "0 1"
MACHINEOVERRIDES =. "ibm-ac-server:witherspoon:"
require conf/distro/include/phosphor-mmc.inc
require conf/machine/include/ast2600.inc
require conf/machine/include/obmc-bsp-common.inc
require conf/machine/include/openpower.inc
require conf/machine/include/p9.inc
require conf/distro/include/ibm-yaml.inc
require conf/distro/include/openpower-virtual-pnor.inc
require conf/distro/include/ibm-mpreboot.inc
include conf/distro/include/extra-dev-debug-tools.inc
DISTRO_FEATURES += "ibm-service-account-policy"
SERIAL_CONSOLES = "115200;ttyS4"
MRW_XML = "witherspoon.xml"
PHOSPHOR_MRW_LICENSE = "Apache-2.0"
PHOSPHOR_MRW_LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
PHOSPHOR_MRW_URI = "git://github.com/open-power/witherspoon-xml;branch=master;protocol=https"
PHOSPHOR_MRW_REV = "c622cb5a5dd3ebc2a4eef558d1b70740f914e6f7"
VIRTUAL-RUNTIME_phosphor-hwmon-config:df-mrw = ""
PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config:df-mrw = \
"phosphor-fan-control-fan-config"
PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config:df-mrw = \
"phosphor-fan-presence-config"
# The eMMC on Tacoma is just 1GB smaller than Rainier. The template file
# meta-aspeed/wic/emmc-aspeed.wks.in builds an image for the size of Rainier as
# the default. To be able to re-use that template for Tacoma, the size of the
# last partition (hostfw) was made configurable. The default size of the hostfw
# partition is 5GB, therefore setting it to 4GB for Tacoma.
WKS_HOSTFW_SIZE = "4G"
IMAGE_FEATURES:remove = "obmc-ikvm"
DEBUG_TRIGGERS = "kcs2"
PACKAGECONFIG:append:pn-debug-trigger = " triggers"
+43
View File
@@ -0,0 +1,43 @@
KMACHINE = "aspeed"
KERNEL_DEVICETREE = "${KMACHINE}-bmc-opp-${MACHINE}.dtb"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed"
PREFERRED_PROVIDER_u-boot = "u-boot-aspeed"
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed"
UBOOT_MACHINE = "ast_g5_ncsi_config"
OBMC_POWER_SUPPLY_INSTANCES = "0 1"
# A machine override for common machine configuration for all of IBM's
# "Accelerated Computing" class of systems.
MACHINEOVERRIDES =. "ibm-ac-server:"
require conf/distro/include/phosphor-ubi.inc
require conf/distro/include/openpower-mrw.inc
require conf/distro/include/openpower-ubi.inc
require conf/machine/include/ast2500.inc
require conf/machine/include/obmc-bsp-common.inc
require conf/machine/include/openpower.inc
require conf/machine/include/p9.inc
require conf/distro/include/ibm-yaml.inc
PHOSPHOR_MRW_LICENSE = "Apache-2.0"
PHOSPHOR_MRW_LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
PHOSPHOR_MRW_URI = "git://github.com/open-power/witherspoon-xml;branch=master;protocol=https"
PHOSPHOR_MRW_REV = "c622cb5a5dd3ebc2a4eef558d1b70740f914e6f7"
# Inhibit phosphor-hwmon-config-mrw
VIRTUAL-RUNTIME_phosphor-hwmon-config:df-mrw = ""
# Inhibit phosphor-fan-presence-mrw-native
PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config:df-mrw = \
"phosphor-fan-presence-config"
# Inhibit phosphor-fan-control-fan-config-mrw-native
PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config:df-mrw = \
"phosphor-fan-control-fan-config"
IMAGE_FEATURES:remove = "obmc-ikvm"
QB_DEFAULT_FSTYPE:witherspoon = "ubi.mtd"
QB_MACHINE:witherspoon = "-machine witherspoon-bmc"
QB_MEM:witherspoon = "-m 512"