Skip to content

nexthopbmca7c: introduce the Nexthop AST2720-A2 BMC - #318

Open
louis-nexthop wants to merge 1 commit into
meta:heliumfrom
nexthop-ai:nexthopbmca7c
Open

louis-nexthop wants to merge 1 commit into
meta:heliumfrom
nexthop-ai:nexthopbmca7c

Conversation

@louis-nexthop

Copy link
Copy Markdown
Contributor

Description

Add nexthopbmca7c, Nexthop's AST2720-A2 BMC card, as a child layer of meta-nexthopbmc. a7 marks the AST2700 SoC family, as in other machines' AST2700 variants, and c identifies this card. It plugs into the same x86 CPU cards as nexthopbmc, so it reuses the parent's recipes and carries only its own pins, buses and boot firmware.

  • Kernel 6.18: board device tree, which keeps the BMC off the host's power and boot-mode buses (I2C 2, 3, 8 and 9); the SB-RMI driver retries its 1-byte register-size probe, which fails on AMD hosts with SB-RMI rev 0x10 after the 2-byte attempts (only this board hits it).
  • U-Boot SDK 2023.10: board device tree with MAC0 fixed-link and MDIO0 at 8 mA (at 4 mA about 1% of switch reads were corrupt).
  • BootMCU: caps DRAM at the fitted 4 GiB (its probe reported 8 GiB on a cold boot).
  • setup-gpio / setup_i2c / setup_board overrides; a 128 MiB layout with the FIT at 0x420000 and a 32 MiB data0.
  • meta-nexthopbmc:
    • nexthopbmc-only appends move behind :nexthopbmc.
    • The image package list moves to nexthopbmc-image-common.inc, which also builds the initramfs as zstd for both machines.
    • board-utils.sh tells the boards apart by the device-tree compatible.
    • usbcons stays masked on nexthopbmc only; nexthopbmca7c serves its USB console from the virtual hub.

nexthopbmca7c builds and boots once #315 is in: that PR moves the AST2700 kernel patches, U-Boot patches and Zephyr recipes out of meta-aristabmc. The two PRs share no files and can merge in either order. For nexthopbmc, the only change is the zstd initramfs.

Motivation

Bring up OpenBMC on the AST2720-A2 BMC card.

The zstd initramfs follows the #316 discussion.

Test Plan

This branch with #315 on current helium builds nexthopbmca7c and nexthopbmc. The nexthopbmca7c image from that build, on the AST2720-A2 card after boot:

root@bmc:~# tr -d "\0" < /proc/device-tree/model; echo
Facebook Nexthopbmc BMC AST2720
root@bmc:~# uname -r
6.18.63-nexthopbmca7c-g173e1c3e645f
root@bmc:~# cat /proc/cmdline
console=ttyS12,9600n8 root=/dev/ram rw
root@bmc:~# grep MemTotal /proc/meminfo
MemTotal:        3993188 kB
root@bmc:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 003e8000 00010000 "u-boot"
mtd1: 00020000 00010000 "env"
mtd2: 00018000 00010000 "meta"
mtd3: 05be0000 00010000 "fit"
mtd4: 02000000 00010000 "data0"
mtd5: 08000000 00010000 "flash0"
mtd6: 08000000 00010000 "flash1"
root@bmc:~# boot_info.sh bmc
WDTA Timeout Count: 0
Current Boot Code Source: Master Flash
root@bmc:~# dmesg | grep -E "Machine model|Memory:|unpack rootfs|Freeing initrd|Run /init|sbrmi|ssif"
[    0.000000] Machine model: Facebook Nexthopbmc BMC AST2720
[    0.288376] Memory: 3917420K/4194304K available (14528K kernel code, 1956K rwdata, 5560K rodata, 1408K init, 524K bss, 239008K reserved, 32768K cma-reserved)
[    0.351503] Trying to unpack rootfs image as initramfs...
[    0.422143] ipmi_ssif: IPMI SSIF Interface driver
[    2.551730] Freeing initrd memory: 36484K
[   25.249264] Run /init as init process
[   39.873709] i2c i2c-11: new_device: Instantiated device sbrmi at 0x3c
[   40.078626] sbrmi 11-003c: register sbrmi-3c device
root@bmc:~# systemctl is-system-running; systemctl --failed --no-legend
running
root@bmc:~# wedge_power.sh status
Microserver power is on
root@bmc:~# ls /dev/i2c-*
/dev/i2c-0
/dev/i2c-1
/dev/i2c-10
/dev/i2c-11
/dev/i2c-4
/dev/i2c-6
root@bmc:~# systemctl is-active ssifd mTerm_server usbcons
active
active
active
root@bmc:~# lsmod | grep -E "^(g_cdc|usb_f_acm|usb_f_ecm|apml_sbrmi|apml_sbtsi)"
g_cdc                  16384  0
apml_sbtsi             12288  0
apml_sbrmi             24576  0
root@bmc:~# ls /sys/bus/i2c/drivers/ipmi-ssif-host /sys/bus/i2c/drivers/sbrmi
/sys/bus/i2c/drivers/ipmi-ssif-host:
1-0010
bind
uevent
unbind

/sys/bus/i2c/drivers/sbrmi:
11-003c
bind
module
uevent
unbind
root@bmc:~# sensors sbtsi-i2c-11-4c
sbtsi-i2c-11-4c
Adapter: 14c0fc00.i2c-bus
temp1:        +50.9 C  (low  =  +0.0 C, high = +70.0 C)

Add nexthopbmca7c, Nexthop's AST2720-A2 BMC card, as a child layer of
meta-nexthopbmc. It plugs into the same x86 CPU cards as nexthopbmc, so
it reuses the parent's recipes and carries only its own pins, buses and
boot firmware: a 6.18 board device tree and SB-RMI probe retry, the
U-Boot SDK device tree, a BootMCU DRAM cap at the fitted 4 GiB, its
setup scripts and a 128 MiB flash layout.

In meta-nexthopbmc, nexthopbmc-only appends move behind :nexthopbmc,
the image package list moves to nexthopbmc-image-common.inc, which also
builds the initramfs as zstd, and board-utils.sh tells the two boards
apart.

The machine builds once the AST2700 SoC support is shared out of
meta-aristabmc.

Signed-off-by: Louis Maliyam <louis@nexthop.ai>
@meta-cla meta-cla Bot added the CLA Signed label Nov 20, 2026
@meta-codesync

meta-codesync Bot commented Nov 20, 2026

Copy link
Copy Markdown

This pull request has been imported. If you are a Meta employee, you can view this in D133403032. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant