hardware

iLO - IPMI on HP servers

Download Latest firmware
http://pingtool.org/latest-hp-ilo-firmwares/
https://support.hpe.com/hpesc/public/home/driverHome?sp4ts.oid=1009143853
# download "RECOMMENDED * Online ROM Flash Component for Linux - HPE Integrated Lights-Out"

Extract firmware
chmod +x /tmp/CP0*.scexe
/tmp/CP0*.scexe --unpack=/tmp

# flash iLo firmware (local)
yes | ./CP036949.scexe

# ipmitool -I lanplus -H www1-ipmi -U Administrator -P pass1234 hpm upgrade ilo4_261.bin

Flash iLo with SSH (not tested)

Supermicro

BIOS & IPMI Downloads
https://www.supermicro.com/support/resources/bios_ipmi.php

sum (Supermicro Update Manager)
./sum -i ${BMC_IP} -u ${BMC_USER} -p ${BMC_PASS} -c UpdateBios --file /root/bin/bios/${BIOS_FW}

# load bios defaults
./sum -i ${BMC_IP} -u ${BMC_USER} -p ${BMC_PASS} -c LoadDefaultBiosCfg

# get sata info
./sum -i ${BMC_IP} -u ${BMC_USER} -p ${BMC_PASS} -c GetSataInfo

# get default BIOS settings
./sum -i ${BMC_IP} -u ${BMC_USER} -p ${BMC_PASS} -c GetDefaultBiosCfg --file supermicro_default.xml

# get current BIOS settings

Enable UEFI / PXE boot on Mellanox ConnectX NIC

Boot GRML iso
https://grml.org/download/

Enable SSH daemon
service ssh start
passwd
ip a

# ssh root@GRML_IP

Install Mellanox CLI tools (MFT)
http://www.mellanox.com/page/management_tools
apt update
apt install -y gcc make dkms linux-headers-$(uname -r)

URL=http://www.mellanox.com/downloads/MFT/mft-4.12.0-105-x86_64-deb.tgz
wget -O- ${URL} | tar xvz -C /tmp
/tmp/mft-*-deb/install.sh
mst start

Show device state
mst status
flint -d /dev/mst/mt4119_pciconf0 q

Sonoff Basic / ITEAD ESP8266

Flash ESPEasy with a FTDI adapter
sudo apt-get install -y unzip wget python-minimal python-serial
wget -q https://codeload.github.com/espressif/esptool/zip/master -qO /tmp/espressif.zip
unzip /tmp/espressif.zip -d /tmp

wget http://www.letscontrolit.com/downloads/ESPEasy_R147_RC8.zip -qO /tmp/ESPEasy_R147_RC8.zip
unzip /tmp/ESPEasy_R147_RC8.zip -d /tmp
/tmp/esptool-master/esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio --flash_size 1MB 0x0 /tmp/ESPEasy_R147_1024.bin

# Connect to temporary WiFi access point
SSID: ESP_0
pass: configesp

Sony BRAVIA KDL-55EX725

# https://github.com/chr15m/media-remote/blob/master/SNIFF.md

# get commands
curl -H "X-CERS-DEVICE-ID:MediaRemote:XX-XX-XX-XX-XX-XX" sony.fritz.box/cers/api/getRemoteCommandList

curl -H "X-CERS-DEVICE-ID:MediaRemote:XX-XX-XX-XX-XX-XX" --data '<?xml version="1.0"?>

AAAAAgAAABoAAAB5Aw==

' sony.fritz.box/IRCC

curl -H "X-CERS-DEVICE-ID:MediaRemote:XX-XX-XX-XX-XX-XX" --data '<?xml version="1.0"?>

AAAAAgAAAJcAAAAoAw==

' sony.fritz.box/IRCC

Brother MFC-1910W

Install printer
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-1910w.sh";
echo "wget $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Check for newer DEB packages
http://support.brother.com/g/b/downloadlist.aspx?c=as_ot&lang=en&prod=mfc1910w_eu_as&os=128

LSI sas2lash

LSI sas2lash

sas2flash.efi -o –sasadd 50030390040e7a10
sas2flash -o –sasadd 50030390040e7a10
sas2flash -o -listsasadd

sas2flash -o -e 7 -c 0
sas2flash -f 9207-8e.bin -c 0
sas2flash -b mptsas2.rom -c 0

# create UEFI disc
http://www.panticz.de/Create-UEFI-disc

http://www.supermicro.com/support/faqs/faq.cfm?faq=19429
http://blog.widodh.nl/2014/10/flash-lsi-2308-to-it-mode-on-a-supermicro-x10sl7-f-mainboard/
http://www.lsi.com/sep/Documents/oracle/files/SAS2_Flash_Utility_Software_Ref_Guide.pdf

Ubuntu: Ericsson H5321gw / F5521gw mini PCI-e WWAN / UMTS card

Ericsson H5321gw (Thinkpad T530)
# lsusb | grep Ericsson
Bus 003 Device 004: ID 0bdb:1926 Ericsson Business Mobile Networks BV

# fix kernel driver
echo "/etc/modprobe.d/avoid-mbib.conf" > options cdc_ncm prefer_mbim=N

cat < /etc/udev/rules.d/99-mbm.rules
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926",
ENV{ID_USB_INTERFACE_NUM}=="09", ENV{MBM_CAPABILITY}="gps_nmea"
ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1926",
ENV{ID_USB_INTERFACE_NUM}=="03", ENV{MBM_CAPABILITY}="gps_ctrl"
EOF

# force USB modem to only connect via EDGE and not 3G?

Lenovo ThinkPad

Lenovo ThinkPad L512
http://thinkwiki.de/L512

Lenovo ThinkPad L520
http://thinkwiki.de/L520

# ThinkVantage button
http://www.thinkwiki.org/wiki/ThinkPad_Button
http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work
http://www.thinkwiki.org/wiki/Installing_Ubuntu_11.04_%28Natty_Narwhal%29_on_a_ThinkPad_X220
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
156 XF86Launch1
# start calc
gsettings set org.gnome.settings-daemon.plugins.media-keys calculator 'Launch1'

Install thinkfan
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.thinkfan.sh";
echo "wget -q --no-check-certificate $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

# OPTIONAL: install lm-sensors to monitor temperatures
apt-get install -y lm-sensors

# manually set fan speed
echo level 0 | sudo tee -a /proc/acpi/ibm/fan

# read current fan settings
cat /proc/acpi/ibm/fan

# GNOME Sensors Applet
sudo apt-get install sensors-applet

# Links
http://thinkwiki.de/Thinkfan
http://zmalltalker.com/zlog/thinkfan.html
http://www.thinkwiki.org/wiki/Thermal_Sensors
http://www.thinkwiki.org/wiki/How_to_control_fan_speed
https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon#WWAN_.28Mobile_broadband.29