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
33 changes: 33 additions & 0 deletions meta-facebook/meta-nexthopbmc/conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "nexthopbmc"
BBFILE_PATTERN_nexthopbmc = "^${LAYERDIR}/"
BBFILE_PRIORITY_nexthopbmc = "25"

LAYERSERIES_COMPAT_nexthopbmc = "wrynose whinlatter walnascar styhead scarthgap nanbield kirkstone dunfell"

INIT_MANAGER = "systemd"
DISTRO_FEATURES:append = " systemd usrmerge"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_OPTED_OUT += "sysvinit"
29 changes: 29 additions & 0 deletions meta-facebook/meta-nexthopbmc/conf/machine/nexthopbmc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

#@TYPE: Machine
#@NAME: nexthopbmc
#@DESCRIPTION: Machine configuration for Facebook nexthopbmc

require conf/machine/fboss-lite.inc

UBOOT_MACHINE:nexthopbmc = "facebook-fblite_defconfig"

KERNEL_DEVICETREE = "aspeed/aspeed-bmc-facebook-fblite-r1.dtb"
PREFERRED_VERSION_linux-aspeed = "6.12.%"

MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-cpld"
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
##OEROOT##/meta \
##OEROOT##/meta-openembedded/meta-oe \
##OEROOT##/meta-openembedded/meta-networking \
##OEROOT##/meta-openembedded/meta-python \
##OEROOT##/meta-openembedded/meta-perl \
##OEROOT##/../.. \
##OEROOT##/meta-security \
##OEROOT##/meta-security/meta-tpm \
##OEROOT##/../../meta-aspeed \
##OEROOT##/../../meta-facebook \
##OEROOT##/../../meta-facebook/meta-nexthopbmc \
##OEROOT##/../../meta-facebook/meta-fboss-lite \
##OEROOT##/../../meta-facebook/meta-python3 \
##OEROOT##/../../meta-facebook/meta-backports \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Common targets are:
nexthopbmc-image
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

#
# Local configuration file for building the OpenBMC image.
#

# Machine Selection
MACHINE ??= "nexthopbmc"

# OpenBMC distro settings
DISTRO ?= "openbmc-fb-master"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 47242a8f293029012ae0864f91984b0160b757d9 Mon Sep 17 00:00:00 2001
From: Nate White <nate@nexthop.ai>
Date: Thu, 2 Apr 2026 15:59:52 +0100
Subject: [PATCH] Set rx delay to 0x1a which is 0x

Signed-off-by: Nate White <nate@nexthop.ai>
---
arch/arm/dts/aspeed-bmc-facebook-fblite.dts | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/dts/aspeed-bmc-facebook-fblite.dts b/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
index 625ce755..a95fda4e 100644
--- a/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
+++ b/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
@@ -55,6 +55,12 @@
};
};

+&scu {
+ mac3-clk-delay = <0x1a 0x00 /* 1000 Mbps (Gigabit) RX and TX delay */
+ 0x08 0x04 /* 100 Mbps (Fast Eth) RX and TX delay */
+ 0x08 0x04>; /* 10 Mbps (Ethernet) RX and TX delay */
+};
+
&fmc {
status = "okay";

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From ff0b4aa71232febf85d9fa76a1d9592971a4134a Mon Sep 17 00:00:00 2001
From: Nate White <nate@nexthop.ai>
Date: Fri, 6 Mar 2026 11:20:36 +0000
Subject: [PATCH] Use correct UART for nexthopbmc

---
arch/arm/dts/aspeed-bmc-facebook-fblite.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/aspeed-bmc-facebook-fblite.dts b/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
index 7f446b86..625ce755 100644
--- a/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
+++ b/arch/arm/dts/aspeed-bmc-facebook-fblite.dts
@@ -14,7 +14,7 @@
};

chosen {
- stdout-path = &uart1;
+ stdout-path = &uart5;
};

aliases {
@@ -32,7 +32,7 @@
};
};

-&uart1 {
+&uart5 {
u-boot,dm-pre-reloc;
status = "okay";
};
--
2.51.2

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# FBOSS common override
CONFIG_BAUDRATE=9600
CONFIG_BOOTARGS="console=ttyS4,9600n8 root=/dev/ram rw vmalloc=640M"
CONFIG_DM_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_ASPEED=y
CONFIG_CMD_OTP=y
CONFIG_ASPEED_ENABLE_DUAL_BOOT_WATCHDOG=y
CONFIG_PHY_FIXED=y

# Platform specific override
CONFIG_DEFAULT_DEVICE_TREE="aspeed-bmc-facebook-fblite"
CONFIG_SYS_CONFIG_NAME="facebook_fblite"
CONFIG_SYS_PROMPT="nexthopbmc-boot=> "
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "file://facebook-fblite_defconfig.append \
"
23 changes: 23 additions & 0 deletions meta-facebook/meta-nexthopbmc/recipes-bsp/u-boot/u-boot_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "file://facebook-fblite_defconfig.append \
file://0001-Use-correct-UART-for-nexthopbmc.patch \
file://0001-Set-rx-delay-to-0x1a-which-is-0x.patch \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

require recipes-core/images/fboss-lite-image.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

MTERM_CONSOLES = "57600;ttyS2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com)
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA
#
[Match]
Name=eth0

[Network]
IPv6AcceptRA=yes
DHCP=yes
VLAN=eth0.4088

[DHCP]
UseDomains=yes
UseNTP=yes
ClientIdentifier=mac
VendorClassIdentifier=OpenBMC:VENDOR_SERIAL_HERE

[DHCPv6]
UseDomains=yes
UseNTP=yes
SendVendorOption=40981:1:string:OpenBMC:VENDOR_SERIAL_HERE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com)
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program in a file named COPYING; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "file://10-eth0.network \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SERIAL_CONSOLES = "9600;ttyS4"
Loading