Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
drwxrwxr-x 0/0 0 2026-01-29 05:17 ./
drwxrwxr-x 0/0 0 2026-01-29 03:26 ./lib/
lrwxrwxrwx 0/0 0 2026-01-29 03:26 ./lib/ld-musl-aarch64.so.1 -> /usr/lib/libc.so
drwxrwxr-x 0/0 0 2026-01-29 05:17 ./root/
-rw------- 0/0 6 2026-01-29 05:17 ./root/.ash_history
drwxrwxr-x 0/0 0 2026-01-29 02:46 ./var/
drwxrwxr-x 0/0 0 2026-01-29 03:27 ./var/lib/
-rw-r--r-- 0/0 2125 2026-01-29 05:17 ./var/lib/sysroot-build-state.json
drwxrwxr-x 0/0 0 2026-01-29 05:17 ./var/lib/sysroot-build-reports/
Oct 24 13:26:59 6b75337 pppd[149780]: Plugin /usr/lib/pppd/2.4.9/nm-pppd-plugin.so loaded.
Oct 24 13:26:59 6b75337 NetworkManager[149780]: Plugin /usr/lib/pppd/2.4.9/nm-pppd-plugin.so loaded.
Oct 24 13:26:59 6b75337 pppd[149780]: nm-ppp-plugin: initializing
Oct 24 13:26:59 6b75337 pppd[149780]: pppd 2.4.9 started by root, uid 0
Oct 24 13:26:59 6b75337 pppd[149780]: nm-ppp-plugin: status 2 / phase 'serial connection'
Oct 24 13:26:59 6b75337 pppd[149780]: Removed stale lock on ttyS0 (pid 12494)
Oct 24 13:26:59 6b75337 pppd[149780]: Using interface ppp0
Oct 24 13:26:59 6b75337 pppd[149780]: nm-ppp-plugin: status 4 / phase 'establish'
Oct 24 13:26:59 6b75337 pppd[149780]: Connect: ppp0 <--> /dev/ttyS0
Oct 24 13:27:00 6b75337 pppd[149780]: nm-ppp-plugin: status 5 / phase 'authenticate'
@jadonk
jadonk / README.md
Last active October 16, 2025 16:03
Wrong OSC DELTA in Zephyr

OSC circuits

BeaglePlay

BeaglePlay has 7.5pF capacitors on the HFOSC.

image

BeagleConnect Freedom

@jadonk
jadonk / Hack.md
Last active October 1, 2025 01:42

ChatGPT came up with this to make the change persist.

# 1) Create a minimal plugin dir with just "generic"
mkdir -p /mnt/state/root-overlay/usr/lib/ModemManager/generic-only
cp /usr/lib/ModemManager/libmm-plugin-generic.so \
   /mnt/state/root-overlay/usr/lib/ModemManager/generic-only/

# 2) Add a systemd drop-in to change ExecStart
mkdir -p /mnt/state/root-overlay/etc/systemd/system/ModemManager.service.d
@jadonk
jadonk / gist:aefb15f313c417bbaeb03ad2803c0f03
Created September 22, 2025 23:16
Hack around cc1352-flasher getting bad file type
cat <EOF >~/.magic
216 belong 0x7bb972b9 application/octet-stream
EOF
export MAGIC="$HOME/.magic"
west flash -d build/bcf/ot_coap_server
git clone https://github.com/zephyrproject-rtos/zephyr
cd zephyr
python -m venv zephyr-env
source zephyr-env/bin/activate
pip install -r scripts/requirements.txt
pip install cc1352-flasher
west init -l .
west build -b beagleconnect_freedom -d build/bcf/echo_server samples/net/sockets/echo_server -- -DOVERLAY_CONFIG=overlay-802154-subg.conf
west build -b beagleconnect_freedom -d build/bcf/ot_shell samples/net/openthread/shell
west build -b beagleconnect_freedom -d build/bcf/ot_coap_client samples/net/openthread/coap -T sample.net.openthread.ftd.coap.client
what board should I use?
Answer
To determine which board to use, let's consider the options provided in the documentation.
You can check out the different boards at: index.rst.
This document lists various boards, including BeaglePlay, BeagleBone, PocketBeagle, and BeagleBoard, each with its unique features and purposes.
@jadonk
jadonk / Makefile
Last active April 10, 2025 00:50
Broken AM62x PRU code with dmesg log
# This Makefile tries to provide some defaults for building single-file programs on Beagle
# platforms in part by adding an additional suffix ahead of the source file extension. The
# original purpose was to provide ability to run these programs in the Cloud9 IDE environment.
#
# Optional definitions
#
# TARGET - executable to create (currently supports single .c, .cpp or .asm source)
# should have .<proc>(<n>) extension (lower case, check below for valid options)
# without TARGET, as of now, we don't have any build targets
# TODO: work with a list of targets, rather than a single file
import time
import datetime
import gpiod
gpio2 = gpiod.find_line('GPIO2')
gpio2.request(consumer='five_min_toggle', type=gpiod.LINE_REQ_DIR_OUT, default_val=0)
prev_rem = -1
while True:
now = datetime.datetime.now()