Skip to content

Commit

Permalink
WIP: add protectli vps6630
Browse files Browse the repository at this point in the history
  • Loading branch information
spolack committed Dec 10, 2024
1 parent e5e4576 commit b6904c1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions group_vars/model_protectli_vps6630.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
override_target: generic
target: x86/64
image_search_pattern: "*-ext4-combined-efi.img*"
model_nice: Protectli Vault Pro VP6630
int_port: eth0
wireless_profile: disable

openwrt_version: 24.10-SNAPSHOT

model__packages__to_merge:
# Dont install unncessary network kernel modules (reference: https://github.com/openwrt/openwrt/blob/main/target/linux/x86/image/64.mk)
- "-kmod-amazon-ena -kmod-amd-xgbe -kmod-bnx2 -kmod-dwmac-intel -kmod-e1000e -kmod-e1000"
- "-kmod-forcedeth -kmod-igb -kmod-ixgbe -kmod-r8169 -kmod-tg3"

- "intel-microcode"
- "kmod-igc kmod-i40e" # Network: Only igc for 2.5G Ports and i40 for SFP+ Ports are required
# - "kmod-it87-wdt" # Watchdog (only supported in kernel 6.8+)
- "lm-sensors lm-sensors-detect"
# - "kmod-hwmon-it87" # Not yet supported in mainline



# Make interface names stable and match them to whats written on the case
# TODO: Bring Upstream
custom_network_detect: |
protectli-vp6630)
ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:1c.4/0000:02:00.0"
ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:1c.5/0000:03:00.0"
ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:1c.6/0000:04:00.0"
ucidef_set_network_device_path "eth4" "pci0000:00/0000:00:1c.7/0000:05:00.0"
ucidef_set_network_device_path "sfp1" "pci0000:00/0000:00:1c.0/0000:01:00.0"
ucidef_set_network_device_path "sfp2" "pci0000:00/0000:00:1c.0/0000:01:00.1"
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 sfp1" "sfp2"
;;
# Device has two console ports
# ttyS0 - RJ45 Port
# ttyS1 - USB-C Port <- Lets use choose that for on site debugging

additional_serial_ports:
- ttyS1

imagebuilder_config:
CONFIG_TARGET_SERIAL: ttyS1

0 comments on commit b6904c1

Please sign in to comment.