Skip to content

Instantly share code, notes, and snippets.

@Keno
Created April 23, 2026 11:58
Show Gist options
  • Select an option

  • Save Keno/abc8c5b72645e73fadd1ff0d9616b23d to your computer and use it in GitHub Desktop.

Select an option

Save Keno/abc8c5b72645e73fadd1ff0d9616b23d to your computer and use it in GitHub Desktop.
# OpenWrt seed config for Mellanox SN3800 (Spectrum-2) ONIE installer.
#
# Populate a full .config with:
# cp .config.seed .config && make defconfig
#
# Target: x86/64 (generic device), GRUB EFI + ONIE self-extracting installer.
# Package set follows https://openwrt.org/toh/mellanox/spectrum
# ------------------------------------------------------------------ target
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_Generic=y
# ------------------------------------------------------------------ images
# ONIE_INSTALLER_IMAGES depends on GRUB_EFI_IMAGES; keep both on.
CONFIG_GRUB_IMAGES=y
CONFIG_GRUB_EFI_IMAGES=y
CONFIG_ONIE_INSTALLER_IMAGES=y
CONFIG_TARGET_IMAGES_GZIP=y
# Serial console for SN3800: RJ45 115200 8N1 on ttyS0
CONFIG_GRUB_CONSOLE=y
CONFIG_GRUB_BAUDRATE=115200
CONFIG_GRUB_TITLE="OpenWrt"
CONFIG_GRUB_TIMEOUT="5"
# ----------------------------------------------- Mellanox Spectrum packages
# Spectrum switch ASIC + firmware
CONFIG_PACKAGE_kmod-mlxsw-core=y
CONFIG_PACKAGE_kmod-mlxsw-pci=y
CONFIG_PACKAGE_kmod-mlxsw-i2c=y
CONFIG_PACKAGE_kmod-mlxsw-spectrum=y
CONFIG_PACKAGE_mlxsw_spectrum2-firmware=y
# Platform glue (LEDs, watchdog, register access, i2c)
CONFIG_PACKAGE_kmod-leds-mlxcpld=y
CONFIG_PACKAGE_kmod-mlx_wdt=y
CONFIG_PACKAGE_kmod-mlxreg=y
CONFIG_PACKAGE_kmod-i2c-i801=y
CONFIG_PACKAGE_kmod-i2c-mlxcpld=y
CONFIG_PACKAGE_kmod-i2c-mux-mlxcpld=y
# Sensors (CPU, NVMe/SATA, DIMM SPD temp)
CONFIG_PACKAGE_kmod-hwmon-coretemp=y
CONFIG_PACKAGE_kmod-hwmon-drivetemp=y
CONFIG_PACKAGE_kmod-hwmon-jc42=y
# ------------------------------------------------- handy extras on a switch
CONFIG_PACKAGE_ethtool=y
CONFIG_PACKAGE_tcpdump=y
CONFIG_PACKAGE_ip-full=y
CONFIG_PACKAGE_bridge=y
CONFIG_PACKAGE_lldpd=y
CONFIG_PACKAGE_nano=y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment