Skip to content

Instantly share code, notes, and snippets.

@cstratton
cstratton / MDBT42Q-ExtraPads.png
Last active November 8, 2019 15:11
MDBT42Q-underside-pads
MDBT42Q-ExtraPads.png
@cstratton
cstratton / gist:17b69762249c772d06420bc85d15b5e8
Created February 2, 2019 23:13
Disassemble arm raw binary
arm-none-eabi-objdump -d -marm -Mforce-thumb --adjust-vma=0x8000000 -b binary _infile_ etc
it would be 0x18000 for an nrf51 after softdevice, etc
@cstratton
cstratton / gist:26a3225cf2f1732a3d89fb67faf9cbb7
Created September 19, 2018 20:20
Flashrom with low dependenices on beagle, pi, etc
git clone https://review.coreboot.org/cgit/flashrom.git
make CONFIG_SATAMV=0 CONFIG_LINUX_I2C=0 NOWARNERROR=yes CONFIG_LINUX_SPI=yes CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no
on a pi
flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000
on a beagle
@cstratton
cstratton / Makefile
Last active January 12, 2022 06:36 — forked from splhack/Makefile
A Makefile for building adb outside of a full AOSP tools build, motivated by a need to get a security-enabled ADB onto the Raspberry Pi
#ADB tool for the Raspberry Pi and similar environments not supported by the Android SDK.
#based on https://gist.github.com/splhack/958335
#This is a very simple hack for building adb on its own, using a lot of stock Linux libraries (libssl, libcrypt)
#in place of the versions shipped with AOSP, in order to avoid having to pull down a lot of code.
#git clone https://android.googlesource.com/platform/system/core system/core
#The method below does not work with the most recent version (you will see const char* conversion errors
#as a C file has been changed to a CPP one where that is more strict). However, it _can_ be made to work