First clone this OpenOCD fork which contains patches for our target board:
git clone https://github.com/calandoa/openocd && cd openocd
Then apply some fixes/patch to the code above:
diff --git a/configure.ac b/configure.ac| sudo yum -y install git java-23-amazon-corretto-devel java-23-amazon-corretto tmux htop gcc g++ gdb zlib-devel zlib wget patch pigz | |
| cd /opt && sudo wget https://services.gradle.org/distributions/gradle-8.13-bin.zip && sudo unzip gradle-8.13-bin.zip && sudo rm gradle-8.13-bin.zip && sudo ln -sf /opt/gradle-8.13/ /opt/gradle && export PATH=$PATH:/opt/gradle/bin && cd $HOME | |
| wget https://github.com/aristocratos/btop/releases/download/v1.4.0/btop-`uname -i`-linux-musl.tbz && tar xvfj btop-`uname -i`-linux-musl.tbz && sudo mv btop/bin/btop /usr/local/bin && rm -rf btop* | |
| wget https://kojipkgs.fedoraproject.org//packages/pbzip2/1.1.13/1.el8/`uname -i`/pbzip2-1.1.13-1.el8.`uname -i`.rpm && sudo rpm -i *.rpm && rm *.rpm | |
| git clone https://github.com/nf-core/oncoanalyser && cd oncoanalyser && git checkout dev | |
| curl -s https://get.nextflow.io | bash | |
| chmod +x nextflow && sudo mv nextflow /usr/local/bin | |
| mkdir -p ~/miniconda3 | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-`uname -i`.sh -O ~/miniconda3/minic |
| % cat galaxy_partition_exploit.sh | |
| #!/bin/bash | |
| set -euo pipefail | |
| DISK="jfleatt_emmc_dump.img" # Disk image to modify | |
| SBL1_PART=3 # sbl1 partition number | |
| SBL2_PART=4 # sbl2 partition number (GUID to invalidate) | |
| INVALID_GUID="17171717-1717-1717-1717-171717171717" | |
| HACK_GUID="11111111-2222-3333-4444-555555555555" # GUID for HACK | |
| PAYLOAD_TMP="payload.bin" |
| snac init data | |
| snac adduser data | |
| wget https://codeberg.org/voron/snac-style/raw/branch/master/modern-dark.css -O data/style.css | |
| snac httpd data |
| #!/usr/bin/env python2 | |
| import time | |
| from gimpfu import * | |
| def opacity_slideshow(image, drawable):· | |
| layer = image.layers[0] | |
| for opacity_pct in range(0, 101, 3): | |
| pdb.gimp_layer_set_opacity(layer, opacity_pct) |
First clone this OpenOCD fork which contains patches for our target board:
git clone https://github.com/calandoa/openocd && cd openocd
Then apply some fixes/patch to the code above:
diff --git a/configure.ac b/configure.ac| root@ubuntu:/home/ubuntu/dev/open-plc-utils/plc# ip -c link | |
| 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 | |
| link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
| 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 | |
| link/ether 08:00:27:ab:95:77 brd ff:ff:ff:ff:ff:ff | |
| 5: enx9cbf0d001240: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 | |
| link/ether 9c:bf:0d:00:12:40 brd ff:ff:ff:ff:ff:ff | |
| ; EVSE PLC board | |
| root@ubuntu:/home/ubuntu/dev/open-plc-utils/plc# ./plcstat -t -i enx9cbf0d001240 |
| From 31eeed709cde9b32882cb4d0b9ab40e19cb6f537 Mon Sep 17 00:00:00 2001 | |
| From: Roman Valls Guimera <[email protected]> | |
| Date: Sun, 16 May 2021 21:14:21 +1000 | |
| Subject: [PATCH 01/17] Technically not sure it falls under ARMv8 for the M1, | |
| should be AARCH64 | |
| --- | |
| src/main/java/nu/pattern/OpenCV.java | 7 +++++-- | |
| 1 file changed, 5 insertions(+), 2 deletions(-) |
% brew install minio
% brew install
% minio server /tmp
ERROR Unable to use the drive /tmp: drive is not directory or mountpoint: Invalid arguments specified
% minio server /tmp/foo
% export AWS_SECRET_ACCESS_KEY=minioadmin
% export AWS_ACCESS_KEY_ID=minioadmin
% aws s3 mb --endpoint-url http://192.168.1.109:9000/ s3://bucket
make_bucket: bucket
| auto wlan0 | |
| iface wlan0 inet dhcp | |
| pre-up devmem 0x100C0080 32 0x530 | |
| pre-up echo 7 > /sys/class/gpio/export | |
| pre-up echo out > /sys/class/gpio/gpio7/direction | |
| pre-up echo 0 > /sys/class/gpio/gpio7/value | |
| pre-up modprobe mac80211 | |
| pre-up modprobe mt7601sta | |
| pre-up (sleep 3; wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf) | |
| post-down killall -q wpa_supplicant |
| usb_printer_epson_protocol = Proto("USB_PRINTER_EPSON", "USB printer EPSON") | |
| local printjob_payload = ProtoField.none("usb_printer_epson.payload", "Payload", base.HEX) | |
| usb_printer_epson_protocol.fields = { printjob_payload } | |
| function usb_printer_epson_protocol.dissector(buffer, pinfo, tree) | |
| length = buffer:len() | |
| --- We are only interested on the 16KB BULK transfers as they contain the PDF being sent? | |
| if length < 10000 then return end |