Skip to content

Instantly share code, notes, and snippets.

View foundObjects's full-sized avatar

Scott B foundObjects

  • SF Bay Area, CA
View GitHub Profile
@foundObjects
foundObjects / fails (Mellanox MHQH29C)
Created August 11, 2018 23:26
pcie bootlogs rockpro64 kernel 4.4.132-1075
DDR Version 1.12 20180518
In
Channel 0: LPDDR4,50MHz
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x4D
MR14=0x4D
@foundObjects
foundObjects / fails -- mellanox mhqh29c
Created August 11, 2018 23:34
pcie bootlogs rockpro64 kernel 4.18.0-rc8-1060
DDR Version 1.12 20180518
In
Channel 0: LPDDR4,50MHz
CS = 0
MR0=0x98
MR4=0x3
MR5=0xFF
MR8=0x8
MR12=0x4D
MR14=0x4D
@foundObjects
foundObjects / BE17XB8A.15A_settings.txt
Created March 16, 2019 17:27
DFI DT122-BE UEFI -- extracted (BE17XB8A.15A)
UEFI Protocol Detected
--------------------------------------------------------------------------------
String Packages
--------------------------------------------------------------------------------
Offset: Language:
--------------------------------------------------------------------------------
0x4 en-US (0x0)
@foundObjects
foundObjects / uefi_grub_setup_pve.sh
Created April 5, 2019 00:09
Proxmox 5.2/5.3 UEFI grub install
#!/bin/bash
BOOTDEV="/dev/sda"
# PVE 5.3
EFIDEV="/dev/sda2"
# PVE 5.2
# EFIDEV="/dev/sda9"
@foundObjects
foundObjects / pinebookpro-fetch-uboot1-1.sh
Created November 11, 2019 01:40
Pinebook Pro - fetch patched u-boot v1.1 from github/mrfixit2001
#!/bin/bash
mkdir -p /tmp/mrfixituboot1-1
cd /tmp/mrfixituboot1-1
for i in mrfixit_update.sh idbloader.img trust.img uboot.img
do
wget "https://raw.githubusercontent.com/mrfixit2001/updates_repo/v1.1/pinebook/filesystem/$i"
done
chmod +x mrfixit_update.sh
@foundObjects
foundObjects / boot-performance-tuning.service
Last active November 15, 2019 15:00
Pinebook Pro Ubuntu/Debian interrupt tuning
# /etc/systemd/system/boot-performance-tuning.service
# run 'systemctl daemon-reload' after installing, then 'systemctl enable boot-performance-tuning'
[Unit]
Description=PBP Performance Tuning
After=basic.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/performance-tuning.sh
@foundObjects
foundObjects / foo.txt
Created December 15, 2019 23:59
quick PBP A1/A2 sd card iozone tests
Notes: All tests run with performance governor (PBP), cards formatted ext4 & mounted noatime
Silicon Power A1 64GB:
Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
@foundObjects
foundObjects / flasher.sh
Last active May 16, 2020 18:20
This is outdated, there's an improved version located here: https://github.com/foundObjects/sbc-flasher friendly/easy sd/usb/emmc image writer with verification and support for compressed images
#!/usr/bin/env bash
#
# flasher.sh -- SBC image writer script with media verification
#
# source: https://gist.github.com/foundObjects/0645ba25bd3f97ae9ee7f41ce6a4fde1
# contact: Arglebargle @ forum.pine64.org or https://github.com/foundObjects/
# license: http://www.wtfpl.net/txt/copying/
#
# usage: flasher.sh (--verify-only) image target
@foundObjects
foundObjects / etc-kernel-postinst.d-pve-auto-removal
Last active June 17, 2020 15:44
PVE apt header package retention
#! /bin/sh
set -e
. /usr/share/pve-kernel-helper/scripts/functions
eval "$(apt-config shell APT_CONF_D Dir::Etc::parts/d)"
test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d"
config_file="${APT_CONF_D}/76pveconf"
@foundObjects
foundObjects / stuff.sh
Created October 2, 2020 04:07
fix LSP_ app spew in Arch/Gnome
echo "[Desktop Entry]
Hidden=true" > /tmp/1
find /usr -name "*lsp_plug*desktop" 2>/dev/null | cut -f 5 -d '/' | xargs -I {} cp /tmp/1 ~/.local/share/applications/{}
# find /usr -name "*lsp_plug*desktop" 2>/dev/null | cut -f 5 -d '/' | xargs -I {} echo {}