Skip to content

Options & Scripts

c0rnelius edited this page Feb 13, 2023 · 4 revisions

Compiler options

nano userdata.txt
### COMPILER TUNING
CORES=`nproc`
CFLAGS=""
### CLANG/LLVM
CLANG_LLVM="LLVM=1 LLVM_IAS=1"
lto_clang_thin=0	# 1 to enable (Arm64 only)

Scripts

Using deb-eeprom (usb_storage.quirks)

Raspberry Pi 4B EEPROM Helper Script
deb-eeprom -h

   -U       Upgrade eeprom package
   -u       Update script

Note:
Upon install please run 'deb-eeprom -u' before using this script.

Simple wifi helper (ifupdown)

swh -h

   -s       Scan for SSID's
   -u       Bring up interface
   -d       Bring down interface
   -r       Restart interface
   -W       Edit wpa supplicant
   -I       Edit interfaces

CPU frequency scaling

governor -h

   -c       Conservative
   -o       Ondemand
   -p       Performance
   -s       Schedutil

   -r       Run
   -u       Update

A service runs 'governor -r' during boot.

Disable LED service

# Debian / Ubuntu
sudo systemctl stop leds
sudo systemctl disable leds

# Devuan
sudo update-rc.d -f leds remove