Skip to content

Instantly share code, notes, and snippets.

View mcbridematt's full-sized avatar

Mathew McBride mcbridematt

View GitHub Profile
@mcbridematt
mcbridematt / a1-metal.txt
Created May 27, 2025 02:26
OpenWrt armsr/6.12 on AWS
Linux OpenWrt 6.12.30 #0 SMP Mon May 26 23:51:25 2025 aarch64 GNU/Linux
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.12.30 (buildbot@runner-fiwdnnecm-project-15763379-concurrent-0) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r0-baa73fb) 14.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Mon May 26 23:51:25 2025
[ 0.000000] KASLR enabled
[ 0.000000] efi: EFI v2.7 by EDK II
[ 0.000000] efi: SMBIOS=0x1bdb0000 SMBIOS 3.0=0x1bd90000 ACPI 2.0=0x15e10000 MEMATTR=0x1a136a98 RNG=0x12b90018 MEMRESERVE=0x15e25e98
[ 0.000000] random: crng init done
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x0000000015E10000 000024 (v02 AMAZON)
[ 0.000000] ACPI: XSDT 0x0000000015E00000 000074 (v01 AMAZON GRAVITON 00000000 AMZN 01000013)
@mcbridematt
mcbridematt / XC2C64-Blink-Test.ctl
Created January 21, 2025 01:33 — forked from elfmimi/XC2C64-Blink-Test.ctl
JTAG Boundary-Scan Examples for OpenOCD
@mcbridematt
mcbridematt / openwrt-23-05-armsr-armv8-vs-linux-5-15-defconfig.diff
Created August 17, 2023 03:39
OpenWrt 23.05 armsr/armv8 vs Linux 5.15.126 arm64 defconfig
--- linux-5.15.126/.config 2023-08-17 03:34:37.580114800 -0000
+++ openwrt-23.05/build_dir/target-aarch64_generic_musl/linux-armsr_armv8/linux-5.15.126/.config 2023-08-17 01:51:02.184114800 -0000
@@ -28,9 +28,9 @@
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
-# CONFIG_WERROR is not set
+CONFIG_WERROR=y
CONFIG_LOCALVERSION=""
-CONFIG_LOCALVERSION_AUTO=y
@mcbridematt
mcbridematt / openwrt-armsr-armv8-vs-linux-arm64-defconfig.diff
Created August 15, 2023 05:30
OpenWrt armsr/armv8 vs Linux arm64 defconfig
--- linux-6.1.45/.config 2023-08-14 05:48:23.292114800 -0000
+++ openwrt-upstream/build_dir/target-aarch64_generic_musl/linux-armsr_armv8/linux-6.1.45/.config 2023-08-15 04:57:47.364114800 -0000
@@ -29,21 +29,19 @@
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION=""
-CONFIG_LOCALVERSION_AUTO=y
+# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_DEFAULT_INIT=""
@mcbridematt
mcbridematt / ten64-no-sqm-test-results.txt
Created June 19, 2023 06:49
Ten64 SQM test suite results (SQM disabled)
Starting Flent 2.1.1 using Python 3.11.4.
Starting rrul test. Expected run time: 70 seconds.
Data file written to ./rrul-2023-06-19T063543.159322.ten64-not-sqm.flent.gz
Summary of rrul test run from 2023-06-19 06:35:43.159322
Title: 'ten64-not-sqm'
avg median 99th % # data pts
Ping (ms) ICMP : 0.14 0.13 0.30 ms 1397
Ping (ms) UDP BE : 4.22 6.79 9.47 ms 1400
@mcbridematt
mcbridematt / ten64-sqm-test-results.txt
Created June 19, 2023 06:48
Ten64 SQM test suite results
Starting Flent 2.1.1 using Python 3.11.4.
Starting rrul test. Expected run time: 70 seconds.
Data file written to ./rrul-2023-06-19T062638.230215.ten64-sqm-throughput.flent.gz
Summary of rrul test run from 2023-06-19 06:26:38.230215
Title: 'ten64-sqm-throughput'
avg median 99th % # data pts
Ping (ms) ICMP : 0.54 0.43 3.54 ms 1398
Ping (ms) UDP BE : 3.11 0.69 0.98 ms 1400
@mcbridematt
mcbridematt / sfp-10glr-31.json
Created July 1, 2022 00:21
Sample output from ethtool -m
# FS.com SFP-10GLR-31 dual rate 1/10G (Intel compatible version)
ethtool -m
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x20 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00
Transceiver type : 10G Ethernet: 10G Base-LR
Transceiver type : Ethernet: 1000BASE-LX
Encoding : 0x06 (64B/66B)
BR, Nominal : 10300MBd
@mcbridematt
mcbridematt / passthrough.sh
Created August 31, 2021 11:39
Create DPAA2 container with passed through Ethernet MAC
#!/bin/sh
DPMAC="dpmac.3"
DPRC=$(restool -s dprc create dprc.1 --label="child VM dprc" \
--options="DPRC_CFG_OPT_IRQ_CFG_ALLOWED,DPRC_CFG_OPT_SPAWN_ALLOWED,DPRC_CFG_OPT_ALLOC_ALLOWED,DPRC_CFG_OPT_OBJ_CREATE_ALLOWED")
DPNI=$(restool -s dpni create --container="${DPRC}")
restool dprc connect dprc.1 --endpoint1="${DPMAC}" --endpoint2="${DPNI}"
restool dprc assign "${DPRC}" --object="${DPNI}" --plugged=1
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 16
max scan IEs length: 142 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
@mcbridematt
mcbridematt / gist:373974faabcea64d913e191b0d0671ca
Created January 28, 2021 06:13
fix libcxxabi compile in openwrt sdk
diff --git a/package/libs/libcxxabi/Makefile b/package/libs/libcxxabi/Makefile
index 90547561b2..fe8bd0ed85 100644
--- a/package/libs/libcxxabi/Makefile
+++ b/package/libs/libcxxabi/Makefile
@@ -58,7 +58,7 @@ TARGET_CXXFLAGS += -flto
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
define Build/Prepare
- $(MAKE) -C $(TOPDIR)/package/libs/libcxx prepare
+ $(MAKE) -C $(TOPDIR)/package/feeds/base/libcxx prepare