Skip to content

Instantly share code, notes, and snippets.

View mcbridematt's full-sized avatar

Mathew McBride mcbridematt

View GitHub Profile
@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
Using kernel:
Linux ls1043 4.9.107 #0 SMP PREEMPT Thu Jun 14 09:47:49 2018 aarch64 GNU/Linux
name : rsa
driver : rsa-caam
module : kernel
priority : 3000
refcnt : 1
selftest : passed
internal : no
@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
@mcbridematt
mcbridematt / freebsd-13-boot.txt
Created October 19, 2020 07:23
FreeBSD 13.0 snapshoot boot log on Ten64 (USB drive)
U-Boot 2020.07-rc1-00404-g175d0de361-dirty (Oct 05 2020 - 23:58:12 +0000)
SoC: LS1088AE Rev1.0 (0x87030010)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz CPU4(A53):1600 MHz CPU5(A53):1600 MHz
CPU6(A53):1600 MHz CPU7(A53):1600 MHz
Bus: 700 MHz DDR: 2100 MT/s
Reset Configuration Word (RCW):