From b6904c1abe4f9f10b6866f28f54f1a7dff4b43cf Mon Sep 17 00:00:00 2001 From: Simon Polack Date: Tue, 10 Dec 2024 12:36:47 +0100 Subject: [PATCH] WIP: add protectli vps6630 --- group_vars/model_protectli_vps6630.yml | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 group_vars/model_protectli_vps6630.yml diff --git a/group_vars/model_protectli_vps6630.yml b/group_vars/model_protectli_vps6630.yml new file mode 100644 index 000000000..7fee57fec --- /dev/null +++ b/group_vars/model_protectli_vps6630.yml @@ -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