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| % 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 |
| (base) rvalls@umccr htsget-aws % time cross build --release --target x86_64-unknown-linux-musl | |
| Updating git submodule `https://github.com/samtools/htslib.git` | |
| Compiling libc v0.2.73 | |
| Compiling cfg-if v0.1.10 | |
| Compiling autocfg v1.0.0 | |
| Compiling proc-macro2 v1.0.19 | |
| Compiling unicode-xid v0.2.1 | |
| Compiling syn v1.0.35 | |
| Compiling lazy_static v1.4.0 | |
| Compiling log v0.4.11 |