hardware
OpenWRT: ASUS RT-AC68U
Flash OpenWRT firmware
https://openwrt.org/toh/asus/rt-ac68u
# @workstation wget https://downloads.openwrt.org/releases/21.02.1/targets/bcm53xx/generic/openwrt-21.02.1-bcm53xx-generic-asus_rt-ac68u-squashfs.trx ip a add 192.168.1.5/24 dev enp0s25 ip l set dev enp0s25 up # power OFF router # hold RESET button and power ON router # open 192.168.1.1 in browser and upload firmware
Intertechno 443
ITGW-433 LAN-Gateway
Port: UDP 49880
Send command
https://www.instructables.com/Intertechno-LAN-Gateway-ITGW-433-and-OpenHAB/
wget https://content.instructables.com/ORIG/F1X/UYRR/IOEM0XQL/F1XUYRRIOEM0XQL.py -O senditgw433.py python2 senditgw433.py C 2 off
Paaring
https://github.com/tobiges/intertechno
https://github.com/psiniemi/pyitgw433
Mellanox: SR-IOV (Single Root IO Virtualization)
Install Mellanox Driver
http://www.panticz.de/mellanox/install-dirver
lspci | grep Mellanox mstconfig -y -d 18:00.1 set SRIOV_EN=1 NUM_OF_VFS=16 #cat /etc/modprobe.d/mlnx.conf #options mlx4_core num_vfs=5 probe_vf=5 apt install -y sysfsutils cat <<EOF> /etc/sysfs.d/mlnx-sriov_numvfs.conf class/net/ens6f0/device/sriov_numvfs = 8 class/net/ens6f1/device/sriov_numvfs = 8 class/net/ens7f0/device/sriov_numvfs = 8 class/net/ens7f1/device/sriov_numvfs = 8 EOF # /boot/grub/grub.cf intel_iommu=on ll /sys/class/net/en{p,s}* echo 8 > /sys/class/net/ens6f0/device/sriov_numvfs
Configure VLAN
Install Mellanox MFT
https://www.mellanox.com/products/adapter-software/firmware-tools
URL=https://www.mellanox.com/downloads/MFT/mft-4.15.0-104-x86_64-deb.tgz wget -q ${URL} -P /tmp tar xzf /tmp/mft-*-x86_64-deb.tgz -C /tmp/ sudo apt-get update sudo apt install -y gcc make dkms linux-headers-$(uname -r) /tmp/mft-*-x86_64-deb/install.sh mst start
AVM Fritz!Box
Fritz!Box Modellliste
https://de.wikipedia.org/wiki/Fritz!Box-Modellliste
Fritz!Box NAS
https://service.avm.de/help/de/FRITZ-Box-7360-v2-avme/016/hilfe_speicher_einstellungen_samba
Format USB pen
mkfs.ext3 -L usb8gb /dev/sdc1
Fallback IP
# set router to lan ip r add 169.254.0.0/16 dev enp7s0 ping 169.254.1.1 http://169.254.1.1/
Nautilus
smb://fritz.nas ftp://fritz.nas
Fix smaba v1 share access
# /etc/samba/smb.conf
[global]
client min protocol = CORE
Speed test
http://avm.de/nc/service/zack-der-speedtest-fuer-ihre-breitbandverbindung/
https:/192.168.178.1/support.lua
# from Linux iperf -c 192.168.178.1 -p 4711 -t 60 -i 10 # from Windows iperf.exe -c 192.168.178.1 -p 4712 -u -t 60 -i 10 -b 1000M
Fix 1h VPN timeout
Mellanox ConnectX-3 Pro UEFI iPXE boot
Device Type: ConnectX3Pro Part Number: MCX312B-XCC_Ax Description: ConnectX-3 Pro EN network interface card; 10GigE; dual-port SFP+; PCIe3.0 x8 8GT/s; RoHS R6 PSID: MT_1200111023 PCI Device Name: /dev/mst/mt4103_pci_cr0 Port1 MAC: ec0d9a00aab1 Port2 MAC: ec0d9a00aab2 Versions: Current Available FW 2.42.5000 N/A PXE 3.4.0752 N/A
Flash UEFI firmware
Request UEFI firmware from support@mellanox.com
http://www.panticz.de/mellanox/firmware-update
Install MFT
http://www.panticz.de/install-mellanox-mft
Flash firmware
flint -y -d /dev/mst/mt4103_pci_cr0 -i firmware fw-ConnectX3Pro-rel-2_42_5000-MCX312B-XCC_Ax-FlexBoot-3.4.752-UEFI-14.11.46.bin b
Device Type: ConnectX3Pro Part Number: MCX312B-XCC_Ax Description: ConnectX-3 Pro EN network interface card; 10GigE; dual-port SFP+; PCIe3.0 x8 8GT/s; RoHS R6 PSID: MT_1200111023 PCI Device Name: /dev/mst/mt4103_pci_cr0 Port1 MAC: ec0d9a00aab1 Port2 MAC: ec0d9a00aab2 Versions: Current Available FW 2.42.5000 N/A PXE 3.4.0752 N/A UEFI 14.11.0046 N/A
Fix iPXE boot issue (recompile ipxe.efi) when connected to LACP swith port
http://www.panticz.de/ipxe/compile
Yamaha RX-D485 / RX-V485
Yamaha Web Control
Live demo: http://yamaha.panticz.de/
Repository: https://github.com/panticz/yamaha-web-control
API
curl -q http://192.168.178.4/YamahaExtendedControl/v1/system/getFeatures | jq .
Control
# Volume Up / Down
http://192.168.178.4/YamahaExtendedControl/v1/main/setVolume?volume=up&step=5
http://192.168.178.4/YamahaExtendedControl/v1/main/setVolume?volume=down&step=5
# Change input
http://192.168.178.4/YamahaExtendedControl/v1/main/prepareInputChange?input=usb
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=net_radio
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=server
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=spotify
# Power
http://192.168.178.4/YamahaExtendedControl/v1/main/setPower?power=on
http://192.168.178.4/YamahaExtendedControl/v1/main/setPower?power=standby
# Get Device info
http://192.168.178.4/YamahaExtendedControl/v1/system/getDeviceInfo
# Get Available Device Features
http://192.168.178.4/YamahaExtendedControl/v1/system/getFeatures
# Get Network Status
http://192.168.178.4/YamahaExtendedControl/v1/system/getNetworkStatus
# Get Function Status (e.g.: Auto Power Standby)
http://192.168.178.4/YamahaExtendedControl/v1/system/getFuncStatus
# Get Location info and zone list (device)
http://192.168.178.4/YamahaExtendedControl/v1/system/getLocationInfo
# Get zone info (device|zone)
http://192.168.178.4/YamahaExtendedControl/v1/main/getStatus
# Get Sound Program List (device|zone)
http://192.168.178.4/YamahaExtendedControl/v1/main/getSoundProgramList
Update Intel NIC firmware
# Intel Ethernet Connections Boot Utility, Preboot Images und EFI-Treiber
wget https://downloadmirror.intel.com/29137/eng/Preboot.tar.gz tar xzf Preboot.tar.gz -C /tmp cd /tmp/APPS/BootUtil/Linux_x64 chmod +x bootutil64e ./bootutil64e